errno: Port to Minix.
[gnulib.git] / ChangeLog
1 2011-07-31  Bruno Haible  <bruno@clisp.org>
2
3         errno: Port to Minix.
4         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
5         ECONNABORTED are defined.
6         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
7         GNULIB_defined_ECONNABORTED): New macros.
8         * lib/strerror-override.h (strerror_override): Test also
9         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
10         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
11         ECONNABORTED.
12         * doc/posix-headers/errno.texi: Mention the Minix problem.
13
14 2011-07-31  Bruno Haible  <bruno@clisp.org>
15
16         Work around declaration collisions on Minix.
17         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
18         defined, set REPLACE_MBSINIT.
19         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
20         defined, set REPLACE_MBRTOWC.
21         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
22         set REPLACE_MBRLEN.
23         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
24         defined, set REPLACE_MBSRTOWCS.
25         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
26         defined, set REPLACE_WCRTOMB.
27         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
28         defined, set REPLACE_WCSRTOMBS.
29
30 2011-07-31  Bruno Haible  <bruno@clisp.org>
31
32         Add support for Minix with ACK compiler.
33         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
34         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
35         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
36
37 2011-07-31  Bruno Haible  <bruno@clisp.org>
38
39         Documentation about Minix.
40         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
41         * doc/glibc-headers/*.texi: Likewise.
42         * doc/posix-functions/*.texi: Likewise.
43         * doc/glibc-functions/*.texi: Likewise.
44
45 2011-07-31  Bruno Haible  <bruno@clisp.org>
46
47         snippet/warn-on-use: Fix indentation.
48         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
49
50 2011-07-25  Jim Meyering  <meyering@redhat.com>
51
52         tests: test-update-copyright.sh: remove unnecessary "rm" commands
53         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
54         commands.
55
56 2011-07-27  Jim Meyering  <meyering@redhat.com>
57
58         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
59         * top/maint.mk (gl_extract_significant_defines_): Now that
60         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
61         gnulib/lib/signal.in.h, and now that we recommend to
62         define-if-undefined those two symbols in application code,
63         we must filter them out of the "significant" list.
64         This avoids a "make syntax-check" failure in coreutils.
65
66 2011-07-26  Eric Blake  <eblake@redhat.com>
67
68         warnings: add comments about previous patch
69         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
70         * m4/include_next.m4: Likewise.
71         * m4/warn-on-use.m4: Likewise.
72         * m4/warnings.m4: Likewise, and simplify use.
73         Suggested by Stefano Lattarini.
74
75         include-next, warnings: support older autoconf
76         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
77         AS_VAR_PUSHDEF in a way that works with older autoconf.
78         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
79         Reported by Daniel P. Berrange.
80
81 2011-07-25  Bruno Haible  <bruno@clisp.org>
82
83         fseek, ftell: Fix doc.
84         * doc/posix-functions/fseek.texi: Reword statement about
85         AC_SYS_LARGEFILE.
86         * doc/posix-functions/ftell.texi: Likewise.
87
88 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
89             Bruno Haible  <bruno@clisp.org>
90
91         Add dependencies to the 'largefile' module.
92         * modules/fopen (Depends-on): Add 'largefile'.
93         * modules/freopen (Depends-on): Likewise.
94         * modules/fseeko (Depends-on): Likewise.
95         * modules/ftello (Depends-on): Likewise.
96         * modules/glob (Depends-on): Likewise.
97         * modules/lseek (Depends-on): Likewise.
98         * modules/lstat (Depends-on): Likewise.
99         * modules/mkostemp (Depends-on): Likewise.
100         * modules/mkostemps (Depends-on): Likewise.
101         * modules/mkstemp (Depends-on): Likewise.
102         * modules/mkstemps (Depends-on): Likewise.
103         * modules/open (Depends-on): Likewise.
104         * modules/openat (Depends-on): Likewise.
105         * modules/pread (Depends-on): Likewise.
106         * modules/pwrite (Depends-on): Likewise.
107         * modules/scandir (Depends-on): Likewise.
108         * modules/stat (Depends-on): Likewise.
109         * modules/tmpfile (Depends-on): Likewise.
110         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
111         since the containing module now depends on the largefile module.
112         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
113         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
114         off_t is fixed by gnulib.
115         * doc/posix-functions/freopen.texi: Likewise.
116         * doc/posix-functions/fseeko.texi: Likewise.
117         * doc/posix-functions/fstatat.texi: Likewise.
118         * doc/posix-functions/ftello.texi: Likewise.
119         * doc/posix-functions/glob.texi: Likewise.
120         * doc/posix-functions/lseek.texi: Likewise.
121         * doc/posix-functions/lstat.texi: Likewise.
122         * doc/posix-functions/mkstemp.texi: Likewise.
123         * doc/posix-functions/open.texi: Likewise.
124         * doc/posix-functions/openat.texi: Likewise.
125         * doc/posix-functions/pread.texi: Likewise.
126         * doc/posix-functions/pwrite.texi: Likewise.
127         * doc/posix-functions/scandir.texi: Likewise.
128         * doc/posix-functions/stat.texi: Likewise.
129         * doc/posix-functions/tmpfile.texi: Likewise.
130         * doc/glibc-functions/mkostemp.texi: Likewise.
131         * doc/glibc-functions/mkostemps.texi: Likewise.
132         * doc/glibc-functions/mkstemps.texi: Likewise.
133
134 2011-07-25  Bruno Haible  <bruno@clisp.org>
135
136         fcntl: Move AC_LIBOBJ invocation to module description.
137         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
138         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
139
140         fcntl: Remove call-in from fchdir.m4.
141         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
142         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
143
144         dup3: Remove potential call-in from fchdir.m4.
145         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
146         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
147
148         dup2: Move AC_LIBOBJ invocation to module description.
149         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
150         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
151         Don't invoke AC_LIBOBJ.
152         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
153
154         dup2: Remove call-in from fchdir.m4.
155         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
156         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
157
158         fclose: Move AC_LIBOBJ invocation to module description.
159         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
160         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
161         to 1.
162         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
163
164         fclose: Remove call-in from close.m4.
165         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
166         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
167
168         close: Move AC_LIBOBJ invocation to module description.
169         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
170         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
171         1.
172         * modules/close (configure.ac): Invoke AC_LIBOBJ.
173
174         close: Remove call-in from fchdir.m4.
175         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
176         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
177
178         open: Move AC_LIBOBJ invocation to module description.
179         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
180         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
181         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
182
183         open: Remove call-in from fchdir.m4.
184         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
185         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
186
187         fchdir: Start to remove gl_REPLACE_* idiom.
188         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
189         (gl_FUNC_FCHDIR): Invoke it.
190
191 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
192
193         * lib/ftell.c (ftell): Comment out cast.
194
195         close: use gl_REPLACE_FCLOSE only if defined
196         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
197         is defined.  The close module doesn't depend on the fclose module
198         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
199         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
200         I reproduced the problem with "./gnulib-tool --test close sys_socket".
201
202 2011-07-24  Jim Meyering  <meyering@redhat.com>
203
204         test-select.h: avoid warning when using gcc's -Wmissing-declarations
205         * tests/test-select.h (test_function): Declare as "static".
206
207 2011-07-24  Bruno Haible  <bruno@clisp.org>
208
209         doc: Mention the effects of AC_SYS_LARGEFILE.
210         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
211         on this function.
212         * doc/posix-functions/aio_error.texi: Likewise.
213         * doc/posix-functions/aio_fsync.texi: Likewise.
214         * doc/posix-functions/aio_read.texi: Likewise.
215         * doc/posix-functions/aio_return.texi: Likewise.
216         * doc/posix-functions/aio_suspend.texi: Likewise.
217         * doc/posix-functions/aio_write.texi: Likewise.
218         * doc/posix-functions/fgetpos.texi: Likewise.
219         * doc/posix-functions/fopen.texi: Likewise.
220         * doc/posix-functions/freopen.texi: Likewise.
221         * doc/posix-functions/fsetpos.texi: Likewise.
222         * doc/posix-functions/fstatvfs.texi: Likewise.
223         * doc/posix-functions/ftruncate.texi: Likewise.
224         * doc/posix-functions/ftw.texi: Likewise.
225         * doc/posix-functions/getrlimit.texi: Likewise.
226         * doc/posix-functions/glob.texi: Likewise.
227         * doc/posix-functions/lio_listio.texi: Likewise.
228         * doc/posix-functions/lockf.texi: Likewise.
229         * doc/posix-functions/mkstemp.texi: Likewise.
230         * doc/posix-functions/mmap.texi: Likewise.
231         * doc/posix-functions/nftw.texi: Likewise.
232         * doc/posix-functions/openat.texi: Likewise.
233         * doc/posix-functions/opendir.texi: Likewise.
234         * doc/posix-functions/posix_fadvise.texi: Likewise.
235         * doc/posix-functions/posix_fallocate.texi: Likewise.
236         * doc/posix-functions/pread.texi: Likewise.
237         * doc/posix-functions/pwrite.texi: Likewise.
238         * doc/posix-functions/readdir.texi: Likewise.
239         * doc/posix-functions/readdir_r.texi: Likewise.
240         * doc/posix-functions/rewinddir.texi: Likewise.
241         * doc/posix-functions/scandir.texi: Likewise.
242         * doc/posix-functions/seekdir.texi: Likewise.
243         * doc/posix-functions/setrlimit.texi: Likewise.
244         * doc/posix-functions/statvfs.texi: Likewise.
245         * doc/posix-functions/telldir.texi: Likewise.
246         * doc/posix-functions/tmpfile.texi: Likewise.
247         * doc/posix-functions/truncate.texi: Likewise.
248         * doc/glibc-functions/fallocate.texi: Likewise.
249         * doc/glibc-functions/fstatfs.texi: Likewise.
250         * doc/glibc-functions/fts_children.texi: Likewise.
251         * doc/glibc-functions/fts_read.texi: Likewise.
252         * doc/glibc-functions/getdirentries.texi: Likewise.
253         * doc/glibc-functions/mkostemp.texi: Likewise.
254         * doc/glibc-functions/mkostemps.texi: Likewise.
255         * doc/glibc-functions/mkstemps.texi: Likewise.
256         * doc/glibc-functions/preadv.texi: Likewise.
257         * doc/glibc-functions/pwritev.texi: Likewise.
258         * doc/glibc-functions/sendfile.texi: Likewise.
259         * doc/glibc-functions/statfs.texi: Likewise.
260
261 2011-07-24  Bruno Haible  <bruno@clisp.org>
262
263         doc: Fix typo.
264         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
265
266 2011-07-24  Bruno Haible  <bruno@clisp.org>
267
268         doc: Mention fsusage.
269         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
270
271 2011-07-24  Bruno Haible  <bruno@clisp.org>
272
273         doc: Mention new glibc headers and functions.
274         * doc/glibc-headers/gshadow.texi: New file.
275         * doc/glibc-functions/endsgent.texi: New file.
276         * doc/glibc-functions/fgetsgent.texi: New file.
277         * doc/glibc-functions/fgetsgent_r.texi: New file.
278         * doc/glibc-functions/getsgent.texi: New file.
279         * doc/glibc-functions/getsgent_r.texi: New file.
280         * doc/glibc-functions/getsgnam.texi: New file.
281         * doc/glibc-functions/getsgnam_r.texi: New file.
282         * doc/glibc-functions/putsgent.texi: New file.
283         * doc/glibc-functions/setsgent.texi: New file.
284         * doc/glibc-functions/sgetsgent.texi: New file.
285         * doc/glibc-functions/sgetsgent_r.texi: New file.
286         * doc/glibc-functions/malloc_info.texi: New file.
287         * doc/glibc-functions/preadv.texi: New file.
288         * doc/glibc-functions/pwritev.texi: New file.
289         * doc/glibc-functions/register_printf_modifier.texi: New file.
290         * doc/glibc-functions/register_printf_specifier.texi: New file.
291         * doc/glibc-functions/register_printf_type.texi: New file.
292         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
293         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
294         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
295         * doc/glibc-functions/pthread_getname_np.texi: New file.
296         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
297         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
298         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
299         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
300         * doc/glibc-functions/pthread_setname_np.texi: New file.
301         * doc/glibc-functions/pthread_sigqueue.texi: New file.
302         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
303         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
304         * doc/glibc-functions/qsort_r.texi: New file.
305         * doc/glibc-functions/quick_exit.texi: New file.
306         * doc/glibc-functions/syncfs.texi: New file.
307         * doc/gnulib.texi: Include them.
308         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
309         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
310         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
311         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
312         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
313         * doc/glibc-functions/execvpe.texi: Likewise.
314
315 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
316
317         ftell: don't include <unistd.h>
318         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
319         guaranteed to define off_t, and the ftell module depends on the
320         stdio module.
321
322         ftell: do not assume wraparound signed arithmetic
323         * lib/ftell.c: Include <limits.h>.
324         (ftell): Don't assume wraparound signed arithmetic.
325
326 2011-07-24  Bruno Haible  <bruno@clisp.org>
327
328         close: No longer depend on module 'fclose'.
329         * modules/close (Depends-on): Remove fclose.
330         * NEWS: Mention the change.
331         Suggested by Sam Steingold <sds@gnu.org>.
332
333 2011-07-24  Bruno Haible  <bruno@clisp.org>
334
335         fsusage: Enable large volume support on AIX >= 5.2.
336         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
337         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
338         instead of STAT_STATVFS.
339         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
340
341         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
342         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
343         f_blocks field only on MacOS X.
344
345         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
346         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
347         * modules/fsusage (Depends-on): Add largefile.
348
349 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
350
351         * README: Modernize discussion of signed integers.
352         Assuming overflow wraparound is no longer safe.
353         Mention ones' complement and signed magnitude.
354
355 2011-07-22  Bruno Haible  <bruno@clisp.org>
356
357         select tests, pselect tests: Refactor.
358         * tests/test-select.h: New file, extracted from tests/test-select.c.
359         (select_fn): New type.
360         (test, do_select, do_select_nowait, do_select_wait, test_tty,
361         test_connect_first, test_accept_first, test_pair, test_socket_pair,
362         test_pipe): Add my_select argument.
363         (test_function): Renamed from main. Add my_select argument.
364         * tests/test-select.c: Move most code to tests/test-select.h. Include
365         test-select.h.
366         * modules/select-tests (Files): Add tests/test-select.h.
367         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
368         (my_select, main): New functions.
369         * modules/pselect-tests (Files): Add tests/test-select.h,
370         tests/macros.h, tests/signature.h.
371         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
372         (configure.ac): Check for <sys/wait.h>.
373
374 2011-07-22  Bruno Haible  <bruno@clisp.org>
375
376         sys_select tests: Check the signature of FD_*.
377         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
378         signature tests from here...
379         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
380         here.
381         * modules/sys_select-tests (Files): Add tests/signature.h.
382
383 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
384
385         largefile: new module, replacing large-inode
386         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
387         * MODULES.html.sh: Add largefile, remove large-inode.
388         * modules/largefile, m4/largefile.m4: New files.
389         * modules/large-inode, m4/large-inode.m4: Remove.
390
391         fsusage: port to MacOS X 10.7 with 4 TiB file systems
392         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
393         implementations that use only 32 bits to count blocks.
394         On typical hosts with 1024-byte blocks, this fails with file
395         systems as small as 4 TiB.  Problem reported by Herb Wartens
396         <http://debbugs.gnu.org/9140> and this should also fix a similar
397         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
398
399         large-inode: New module
400         * MODULES.html.sh: Add it.
401         * modules/large-inode, m4/large-inode.m4: New files.
402
403         extensions: Enable extensions on MacOS X 10.5 and later.
404         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
405
406 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
407
408         file-has-acl: use acl_extended_file_nofollow if available
409         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
410         (acl_extended_file): New macro.
411         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
412         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
413
414 2011-07-21  Bruno Haible  <bruno@clisp.org>
415
416         Declare system functions in a way that works with C++.
417         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
418         declare fdopendir as extern "C".
419         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
420         declare frexpl as extern "C".
421         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
422         declare gai_strerror as extern "C".
423         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
424         programs, declare gai_strerror as extern "C".
425         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
426         declare getlogin_r as extern "C".
427         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
428         as extern "C".
429         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
430         declare ldexpl as extern "C".
431         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
432         as extern "C".
433         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
434         program, declare getmntinfo as extern "C".
435         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
436         stpncpy as extern "C".
437         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
438         program, declare __xpg_strerror_r as extern "C".
439         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
440         strndup as extern "C".
441         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
442         declare memset and bzero as extern "C".
443         Reported by Sam Steingold <sds@gnu.org>.
444
445 2011-07-12  Jim Meyering  <meyering@redhat.com>
446
447         maint.mk: prohibit inclusion of "verify.h" without use
448         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
449
450 2011-07-19  Pádraig Brady  <P@draigBrady.com>
451
452         timer-time: A new module to check for timer_settime()
453         * m4/timer_time.m4: Check for the posix function.
454         * modules/timer-time: Add the new module.
455         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
456         Mention it.
457
458 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
459             Bruno Haible  <bruno@clisp.org>
460
461         pthread_sigmask: assume POSIX threads if --avoid=threadlib
462         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
463         not defined, assume POSIX threads and look for pthread_sigmask in
464         $LIBS, without changing $CPPFLAGS.
465
466 2011-07-19  Bruno Haible  <bruno@clisp.org>
467
468         strstr: Update cross-compilation guess.
469         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
470         CPUs, guess no, in view of glibc
471         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
472         Suggested by Eric Blake. Reported by Reuben Thomas.
473
474 2011-07-19  Pádraig Brady  <P@draigBrady.com>
475
476         getopt-gnu: suppress core dumps from detection code
477         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
478         to suppress core dumps that may well occur on glibc systems.
479         * modules/getopt-gnu: Depend on nocrash.
480
481 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
482
483         pthread_sigmask: ensure usleep is declared
484         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
485         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
486
487 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
488
489         doc: Document NonStop portability issues.
490         * doc/posix-functions/sigaction.texi (sigaction):
491         * doc/posix-headers/signal.texi (signal.h):
492         Document NonStop.  See Joachim Schmitz in
493         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
494
495 2011-07-15  Bruno Haible  <bruno@clisp.org>
496
497         ffsl, ffsll: Avoid unportable behaviour.
498         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
499
500 2011-07-15  Bruno Haible  <bruno@clisp.org>
501
502         ffs: More tests.
503         * tests/test-ffs.c (NBITS): New macro.
504         (main): Add more tests.
505         * tests/test-ffsl.c (NBITS): New macro.
506         (main): Add more tests.
507         * tests/test-ffsll.c (NBITS): New macro.
508         (main): Add more tests.
509
510 2011-07-15  Eric Blake  <eblake@redhat.com>
511
512         ffsl, ffsll: new modules
513         * modules/ffsl: New file.
514         * modules/ffsll: Likewise.
515         * m4/ffsl.m4: Likewise.
516         * m4/ffsll.m4: Likewise.
517         * lib/ffsl.c: Likewise.
518         * lib/ffsl.h: Likewise.
519         * lib/ffsll.c: Likewise.
520         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
521         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
522         * modules/string (Makefile.am): Substitute witnesses.
523         * lib/strings.in.h (ffsl, ffsll): Declare.
524         * modules/ffsl-tests: New test file.
525         * modules/ffsll-tests: Likewise.
526         * tests/test-ffsl.c: Likewise.
527         * tests/test-ffsll.c: Likewise.
528         * MODULES.html.sh (Integer arithmetic functions): Mention it.
529         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
530         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
531
532         ffs: fix m4 prerequisite
533         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
534
535         ffs: avoid undefined behavior
536         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
537         * tests/test-ffs.c (naive, main): Avoid signed shifts.
538         Reported by Bruno Haible.
539
540 2011-07-12  Bruno Haible  <bruno@clisp.org>
541
542         pthread_sigmask: Rely on module 'threadlib'.
543         * modules/pthread_sigmask (Depends-on): Add threadlib.
544         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
545         is defined.
546
547 2011-07-12  Bruno Haible  <bruno@clisp.org>
548
549         regex: Depend on module 'strcase'.
550         * modules/regex (Depends-on): Add strcase, for strcasecmp().
551
552 2011-07-12  Jim Meyering  <meyering@redhat.com>
553
554         warn-on-use: fix typo in file name
555         * modules/snippet/warn-on-use (Files): Correct file name:
556         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
557
558 2011-07-12  Bruno Haible  <bruno@clisp.org>
559
560         strings: Document module.
561         * doc/posix-headers/strings.texi: Mention module 'strings'.
562
563 2011-07-12  Bruno Haible  <bruno@clisp.org>
564
565         Rename module '_Noreturn' to 'snippet/_Noreturn'.
566         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
567         (Files, Makefile.am): Update.
568         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
569         * modules/stdlib (Depends-on): Update.
570
571 2011-07-12  Bruno Haible  <bruno@clisp.org>
572
573         * NEWS: Mention the changes.
574
575         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
576         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
577         (Files, Makefile.am): Update.
578         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
579         * modules/arpa_inet (Depends-on): Update.
580         * modules/ctype (Depends-on): Update.
581         * modules/dirent (Depends-on): Update.
582         * modules/fcntl-h (Depends-on): Update.
583         * modules/glob (Depends-on): Update.
584         * modules/iconv-h (Depends-on): Update.
585         * modules/inttypes-incomplete (Depends-on): Update.
586         * modules/langinfo (Depends-on): Update.
587         * modules/locale (Depends-on): Update.
588         * modules/math (Depends-on): Update.
589         * modules/netdb (Depends-on): Update.
590         * modules/poll-h (Depends-on): Update.
591         * modules/pty (Depends-on): Update.
592         * modules/search (Depends-on): Update.
593         * modules/signal (Depends-on): Update.
594         * modules/spawn (Depends-on): Update.
595         * modules/stdio (Depends-on): Update.
596         * modules/stdlib (Depends-on): Update.
597         * modules/string (Depends-on): Update.
598         * modules/strings (Depends-on): Update.
599         * modules/sys_file (Depends-on): Update.
600         * modules/sys_ioctl (Depends-on): Update.
601         * modules/sys_select (Depends-on): Update.
602         * modules/sys_socket (Depends-on): Update.
603         * modules/sys_stat (Depends-on): Update.
604         * modules/sys_time (Depends-on): Update.
605         * modules/sys_times (Depends-on): Update.
606         * modules/sys_utsname (Depends-on): Update.
607         * modules/sys_wait (Depends-on): Update.
608         * modules/termios (Depends-on): Update.
609         * modules/time (Depends-on): Update.
610         * modules/unistd (Depends-on): Update.
611         * modules/wchar (Depends-on): Update.
612         * modules/wctype-h (Depends-on): Update.
613         * MODULES.html.sh (Support for building libraries and executables):
614         Update.
615
616         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
617         * modules/snippet/unused-parameter: Renamed from
618         modules/unused-parameter.
619         (Files, Makefile.am): Update.
620         * build-aux/snippet/unused-parameter.h: Renamed from
621         build-aux/unused-parameter.h.
622         * modules/selinux-h (Depends-on): Update.
623         * modules/unistr/base (Depends-on): Update.
624         * MODULES.html.sh (Core language properties): Update.
625
626         Rename module 'link-warning' to 'snippet/link-warning'.
627         * modules/snippet/link-warning: Renamed from modules/link-warning.
628         (Files, Makefile.am): Update.
629         * build-aux/snippet/link-warning.h: Renamed from
630         build-aux/link-warning.h.
631         * MODULES.html.sh (Support for building libraries and executables):
632         Update.
633
634         Rename module 'c++defs' to 'snippet/c++defs'.
635         * modules/snippet/c++defs: Renamed from modules/c++defs.
636         (Files, Makefile.am): Update.
637         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
638         * modules/arpa_inet (Depends-on): Update.
639         * modules/ctype (Depends-on): Update.
640         * modules/dirent (Depends-on): Update.
641         * modules/fcntl-h (Depends-on): Update.
642         * modules/glob (Depends-on): Update.
643         * modules/iconv-h (Depends-on): Update.
644         * modules/langinfo (Depends-on): Update.
645         * modules/locale (Depends-on): Update.
646         * modules/math (Depends-on): Update.
647         * modules/netdb (Depends-on): Update.
648         * modules/poll-h (Depends-on): Update.
649         * modules/pty (Depends-on): Update.
650         * modules/search (Depends-on): Update.
651         * modules/signal (Depends-on): Update.
652         * modules/spawn (Depends-on): Update.
653         * modules/stdio (Depends-on): Update.
654         * modules/stdlib (Depends-on): Update.
655         * modules/string (Depends-on): Update.
656         * modules/strings (Depends-on): Update.
657         * modules/sys_ioctl (Depends-on): Update.
658         * modules/sys_select (Depends-on): Update.
659         * modules/sys_socket (Depends-on): Update.
660         * modules/sys_stat (Depends-on): Update.
661         * modules/sys_time (Depends-on): Update.
662         * modules/sys_wait (Depends-on): Update.
663         * modules/termios (Depends-on): Update.
664         * modules/time (Depends-on): Update.
665         * modules/unistd (Depends-on): Update.
666         * modules/wchar (Depends-on): Update.
667         * modules/wctype-h (Depends-on): Update.
668
669         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
670         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
671         (Files, Makefile.am): Update.
672         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
673         * modules/argv-iter (Depends-on): Update.
674         * modules/arpa_inet (Depends-on): Update.
675         * modules/dirent (Depends-on): Update.
676         * modules/fcntl-h (Depends-on): Update.
677         * modules/fnmatch (Depends-on): Update.
678         * modules/getopt-posix (Depends-on): Update.
679         * modules/glob (Depends-on): Update.
680         * modules/iconv-h (Depends-on): Update.
681         * modules/inttypes-incomplete (Depends-on): Update.
682         * modules/locale (Depends-on): Update.
683         * modules/math (Depends-on): Update.
684         * modules/netdb (Depends-on): Update.
685         * modules/search (Depends-on): Update.
686         * modules/signal (Depends-on): Update.
687         * modules/spawn (Depends-on): Update.
688         * modules/stdio (Depends-on): Update.
689         * modules/stdlib (Depends-on): Update.
690         * modules/string (Depends-on): Update.
691         * modules/strings (Depends-on): Update.
692         * modules/sys_socket (Depends-on): Update.
693         * modules/sys_stat (Depends-on): Update.
694         * modules/sys_time (Depends-on): Update.
695         * modules/sys_times (Depends-on): Update.
696         * modules/sys_utsname (Depends-on): Update.
697         * modules/time (Depends-on): Update.
698         * modules/unistd (Depends-on): Update.
699         * modules/wchar (Depends-on): Update.
700         * MODULES.html.sh (Support for building libraries and executables):
701         Update.
702
703 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
704
705         Improvements on _Noreturn and related modules.
706
707         modules/_Exit-tests: test _Noreturn too
708         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
709         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
710         (main): Use them.
711
712         stdnoreturn, stdnoreturn-tests: remove modules
713         They're not needed here and a bit premature for use elsewhere.  See
714         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
715         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
716         * tests/test-stdnoreturn.c: Remove files.
717         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
718         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
719         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
720         and using noreturn.
721         * modules/openat, modules/sigpipe-die, modules/xalloc:
722         * modules/xmemdup0, modules/xstrtol:
723         Remove dependency on stdnoreturn.
724
725         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
726         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
727         Reparenthesize to avoid GCC warning.
728         Support Microsoft's syntax.
729         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
730
731         _Noreturn-tests: remove module
732         * modules/_Noreturn-tests: Remove.
733         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
734         * tests/test-_Noreturn.c: Remove.
735         * tests/test-stdnoreturn.c: Merge from the old
736         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
737
738 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
739
740         _Noreturn, stdnoreturn, and related modules.
741
742         * top/maint.mk: Adjust to new noreturn support.
743         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
744         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
745
746         xalloc: use stdnoreturn.h
747         * lib/xalloc.h: Include <stdnoreturn.h>.
748         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
749         * modules/xalloc (Depends-on): Add stdnoreturn.
750
751         xstrtol: use stdnoreturn.h
752         * lib/xstrtol.h: Include <stdnoreturn.h>.
753         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
754         * modules/xstrtol (Depends-on): Add stdnoreturn.
755
756         xmemdup0: use stdnoreturn.h
757         * lib/xmemdup0.h: Include <stdnoreturn.h>.
758         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
759         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
760
761         sigpipe-die: use stdnoreturn.h
762         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
763         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
764         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
765
766         openat: use stdnoreturn.h
767         * lib/openat.h: Include <stdnoreturn.h>.
768         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
769         * modules/openat (Depends-on): Add stdnoreturn.
770
771         * lib/openat-die.c (openat_save_fail): Modernize comment.
772
773         * lib/xalloc-die.c (xalloc_die): Modernize comment.
774
775         * lib/glthread/thread.h: Modernize comment.
776
777         obstack: use _Noreturn
778         * lib/obstack.c (__attribute__): Remove macro.
779         (print_and_abort): Use _Noreturn.
780
781         c-stack: use _Noreturn
782         * lib/c-stack.c (die, overflow_handler, segv_handler):
783         Use _Noreturn rather than __attribute__((noreturn)).
784
785         argmatch-tests, exclude_tests: use _Noreturn
786         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
787         Remove.
788         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
789
790         stdlib: use _Noreturn
791         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
792         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
793         * modules/stdlib (Depends-on): Add _Noreturn.
794         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
795
796         stdnoreturn-tests: new module
797         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
798
799         stdnoreturn: new module
800         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
801         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
802
803         _Noreturn-tests: new module
804         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
805
806         _Noreturn: new module
807         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
808         New section, mentioning it.
809         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
810
811         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
812
813 2011-07-11  Eric Blake  <eblake@redhat.com>
814
815         ffs: new module
816         * modules/ffs: New file.
817         * m4/ffs.m4: Likewise.
818         * lib/ffs.c: Likewise.
819         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
820         * modules/strings (Makefile.am): Substitute witness.
821         (Depends-on): Add c++defs.
822         * lib/strings.in.h (ffs): Declare.
823         * modules/ffs-tests: New test file.
824         * tests/test-ffs.c: Test new module.
825         * MODULES.html.sh (Integer arithmetic functions): Mention it.
826         * doc/posix-functions/ffs.texi (ffs): Likewise.
827
828         regex: avoid compiler warning
829         * lib/regex.c (includes): Include <strings.h>, for use of
830         strcasecmp in regcomp.c.
831         Reported by Joachim Schmitz.
832
833 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
834
835         stdint: respect system's intmax_t if INTMAX_MAX
836         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
837         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
838         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
839         long but int64_t is long long, and where we will clash with the
840         system intmax_t if we override it.  See
841         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
842         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
843         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
844         similarly for UINTMAX_C.
845
846 2011-07-08  Bruno Haible  <bruno@clisp.org>
847
848         pthread_sigmask tests: Avoid a compiler warning.
849         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
850         non-zero.
851
852         sigprocmask tests: A better way to avoid a compiler warning.
853         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
854         (main): Complain if system() returns non-zero.
855         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
856
857 2011-07-08  Bruno Haible  <bruno@clisp.org>
858
859         pthread_sigmask: Work around IRIX bug.
860         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
861         bug.
862         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
863         there may be unblocked pending signals.
864         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
865
866 2011-07-08  Bruno Haible  <bruno@clisp.org>
867
868         pthread_sigmask: Work around Cygwin bug.
869         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
870         bug.
871         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
872         the system's pthread_sigmask function.
873         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
874
875 2011-07-08  Bruno Haible  <bruno@clisp.org>
876
877         pthread_sigmask: Work around bug in single-threaded implementation.
878         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
879         FreeBSD, HP-UX, Solaris bug.
880         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
881         * lib/pthread_sigmask.c: Include <stddef.h>.
882         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
883         the system's pthread_sigmask function.
884         * modules/pthread_sigmask (configure.ac): Invoke
885         gl_PREREQ_PTHREAD_SIGMASK.
886         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
887         HP-UX, Solaris.
888
889 2011-07-08  Eric Blake  <eblake@redhat.com>
890
891         test-sigprocmask: avoid compiler warning
892         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
893         * tests/test-sigprocmask.c (main): Use it to silence warning.
894         Reported by Jim Meyering.
895
896         test-snprintf: avoid compiler warning
897         * tests/test-snprintf.c (main): Avoid shadowed declaration.
898         * tests/test-vsnprintf.c (main): Likewise.
899         Reported by Jim Meyering.
900
901 2011-07-08  Bruno Haible  <bruno@clisp.org>
902
903         Tests for module 'pthread_sigmask'.
904         * modules/pthread_sigmask-tests: New file.
905         * tests/test-pthread_sigmask1.c: New file, based on
906         tests/test-sigprocmask.c.
907         * tests/test-pthread_sigmask2.c: New file.
908
909 2011-07-08  Jim Meyering  <meyering@redhat.com>
910
911         test-getopt.h: avoid warning about an unused variable
912         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
913
914 2011-07-07  Jim Meyering  <meyering@redhat.com>
915
916         maint: reduce list of files exempt from sc_prohibit_leading_TABs
917         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
918         now that it no longer contains leading TABs.
919         Remove unused "url=FIXME" statement.
920
921 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
922
923         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
924         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
925         When gl_THREADLIB is not in use, assume that the POSIX sematics
926         are desired.  This is better for Emacs, which uses POSIX semantics
927         on GNUish and/or POSIXish platforms, and does not use threads at
928         all otherwise.
929
930         pthread_sigmask: fix typo when testing for libraries
931         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
932         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
933
934 2011-07-08  Eric Blake  <eblake@redhat.com>
935
936         fts: introduce FTS_NOATIME
937         * lib/fts_.h (FTS_NOATIME): New bit flag.
938         (FTS_OPTIONMASK): Adjust.
939         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
940         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
941
942 2011-07-08  Bruno Haible  <bruno@clisp.org>
943
944         Tests for module 'thread'.
945         * modules/thread-tests: New file.
946         * tests/test-thread_self.c: New file.
947         * tests/test-thread_create.cc: New file.
948
949 2011-07-08  Bruno Haible  <bruno@clisp.org>
950
951         thread: Avoid gcc warnings when using gl_thread_self().
952         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
953         'void *'.
954         (gl_thread_self_pointer): Update.
955
956 2011-07-07  Bruno Haible  <bruno@clisp.org>
957
958         signal-c++-tests: Check declaration of pthread_sigmask.
959         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
960         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
961         $(LIB_PTHREAD_SIGMASK).
962
963 2011-07-07  Bruno Haible  <bruno@clisp.org>
964
965         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
966         * lib/signal.in.h (pthread_sigmask): Override if
967         REPLACE_PTHREAD_SIGMASK is 1.
968         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
969         REPLACE_PTHREAD_SIGMASK.
970         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
971         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
972         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
973         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
974         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
975
976 2011-07-07  Bruno Haible  <bruno@clisp.org>
977
978         pthread_sigmask: Ensure declaration in <signal.h>.
979         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
980         include <pthread.h>.
981         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
982         problem.
983
984 2011-07-07  Bruno Haible  <bruno@clisp.org>
985
986         pthread_sigmask: Document the module.
987         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
988
989 2011-07-07  Bruno Haible  <bruno@clisp.org>
990
991         pthread_sigmask: Follow gnulib conventions.
992         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
993         gl_PTHREAD_SIGMASK.
994         * modules/pthread_sigmask (configure.ac): Update.
995
996 2011-07-07  Bruno Haible  <bruno@clisp.org>
997
998         pthread_sigmask: Make declaration C++ safe.
999         * lib/signal.in.h: In two special conditions, just do an #include_next.
1000         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
1001         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
1002         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
1003         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
1004         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
1005         not REPLACE_PTHREAD_MASK.
1006         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
1007         not REPLACE_PTHREAD_MASK.
1008         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
1009
1010 2011-07-07  Bruno Haible  <bruno@clisp.org>
1011
1012         pthread_sigmask: Fix return value.
1013         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
1014         * lib/pthread_sigmask.c: New file.
1015         * modules/pthread_sigmask (Files): Add it.
1016         (configure.ac): Invoke AC_LIBOBJ.
1017
1018 2011-07-07  Eric Blake  <eblake@redhat.com>
1019
1020         getopt: more portable argv creation
1021         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
1022         const, use char arrays rather than strings.
1023         Suggested by Paul Eggert.
1024
1025 2011-07-07  Bruno Haible  <bruno@clisp.org>
1026
1027         Tests for module 'sigprocmask'.
1028         * modules/sigprocmask-tests: New file.
1029         * tests/test-sigprocmask.c: New file.
1030
1031 2011-07-07  Bruno Haible  <bruno@clisp.org>
1032
1033         float tests: Tweak.
1034         * tests/test-float.c (main): Tweak skip message.
1035
1036 2011-07-07  Eric Blake  <eblake@redhat.com>
1037
1038         getopt: avoid compiler warning during configure
1039         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
1040         assigning string literals to non-const pointer.
1041
1042         getopt-gnu: avoid crash in glibc getopt
1043         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
1044         * tests/test-getopt.h (test_getopt): Enhance test.
1045         * tests/test-getopt_long.h (test_getopt_long): Likewise.
1046         * doc/posix-functions/getopt.texi (getopt): Document it.
1047         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
1048         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
1049         Likewise.
1050
1051 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
1052
1053         getopt: handle W; without long options in getopt [BZ #12922]
1054         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
1055         but no long options are defined, just return 'W'.
1056
1057 2011-07-07  Bruno Haible  <bruno@clisp.org>
1058
1059         Avoid literal tabs.
1060         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
1061         variable containing a tab instead of a literal tab.
1062         Reported by Jim Meyering.
1063
1064 2011-07-07  Bruno Haible  <bruno@clisp.org>
1065
1066         Comments.
1067         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
1068
1069 2011-07-06  Bruno Haible  <bruno@clisp.org>
1070
1071         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
1072         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
1073         <winsock2.h>.
1074         (rpl_fd_isset, FD_ISSET): New definitions, copied from
1075         lib/sys_socket.in.h.
1076         (close, gethostname): Hide declarations from <winsock2.h>.
1077         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
1078         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
1079         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
1080         (select): Don't override if gnulib's <sys/select.h> was already
1081         included.
1082         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
1083         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
1084         setsockopt, shutdown, select): Tweak indentation.
1085
1086 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1087
1088         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
1089         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
1090         in an application that does not use the sys_select module.
1091
1092 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
1093
1094         poll: do not return 0 on timeout=-1
1095         * lib/poll.c: Loop with yield if no events occured
1096
1097 2011-07-06  Eric Blake  <eblake@redhat.com>
1098
1099         pthread_sigmask: always replace when not using pthread
1100         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
1101         replacement when using some threading other than pthread.  Fix
1102         logic bug.
1103
1104 2011-07-06  Bruno Haible  <bruno@clisp.org>
1105
1106         Comments.
1107         * m4/printf.m4: Update comments about mingw.
1108
1109 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1110
1111         sys_select: define sigset_t more portably
1112         * lib/sys_select.in.h: Always include <sys/types.h>, since
1113         we now need sigset_t and mingw defines it there.
1114         Include <signal.h> before split inclusion guard, to avoid
1115         mishaps on Solaris, whose <signal.h> eventually includes us.
1116         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
1117         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
1118         which come from ...
1119         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
1120         gl_CHECK_TYPE_SIGSET_T.
1121         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
1122         does the real work.
1123         * modules/sys_select (Depends-on): Add 'signal'.
1124
1125         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
1126         Suggested by Bruno Haible.
1127
1128         pselect: Use pthread_sigmask, not sigprocmask.
1129         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
1130         multithreaded apps better than sigprocmask does.
1131         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
1132         sigprocmask directly.
1133
1134 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
1135
1136         * lib/pselect.c (pselect): Use plain name, without "rpl_".
1137         Don't #undef,  since we don't need any underlying pselect.
1138         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
1139         (Depends-on): Add select.
1140         (Link): Add $(LIBSOCKET).
1141         These changes suggested by Bruno Haible.
1142
1143         pselect: document better
1144         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
1145         * doc/posix-functions/pselect.texi (pselect): Document new module.
1146
1147         pthread_sigmask: new module
1148         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
1149         * doc/posix-functions/pthread_sigmask.texi: Document new module.
1150         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
1151         This is done only as a macro; I don't know how well that'll
1152         work for C++.  Move <sys/types.h> include before the include_next,
1153         to avoid mishap on Solaris.
1154         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
1155         * modules/signal (Makefile.am): Substitute the check's results.
1156         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
1157
1158         test-pselect: new module
1159         * modules/pselect-tests, tests/test-pselect.c: New files.
1160         * tests/test-select.c, tests/test-sys_select-c++.cc:
1161         If TEST_PSELECT is defined, test pselect instead of testing select.
1162
1163         * tests/test-sys_select.c (sigset_t): Test for it, too.
1164         Suggested by Bruno Haible.
1165
1166 2011-07-05  Eric Blake  <eblake@redhat.com>
1167
1168         snprintf: guarantee %1$d, for libintl
1169         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
1170         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
1171         * doc/posix-functions/snprintf.texi (snprintf): Update.
1172         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
1173         * tests/test-snprintf.c (main): Enhance test.
1174         * tests/test-vsnprintf.c (main): Likewise.
1175
1176 2011-07-05  Jim Meyering  <meyering@redhat.com>
1177
1178         maint: exempt stdio-read.c and stdio-write.c from the cppi check
1179         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
1180         per Bruno's request, to accommodate this idiom (no space after "#")
1181         even when the function is inside an #if block:
1182         char *
1183         gets (char *s)
1184         #undef gets
1185         {
1186           ...
1187         }
1188
1189 2011-07-04  Jim Meyering  <meyering@redhat.com>
1190
1191         maint: indent with spaces, not TABs, and add a rule to check this
1192         * tests/test-userspec.c: Indent with spaces, not TABs.
1193         * tests/test-argp.c: Likewise.
1194         * tests/test-c-stack2.sh: Likewise.
1195         * tests/test-parse-duration.sh: Likewise
1196         * m4/strtod.m4: Likewise.
1197         * m4/alloca.m4: Likewise.
1198         * m4/pselect.m4: Likewise.
1199         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
1200
1201 2011-07-03  Jim Meyering  <meyering@redhat.com>
1202
1203         maint.mk: correct omissions in prohibit_argmatch_without_use check
1204         This rule would mistakenly report that argmatch.h is included without
1205         use even when both the argmatch and invalid_arg macro were used.
1206         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
1207         of argmatch and invalid_arg.
1208
1209 2011-07-03  Bruno Haible  <bruno@clisp.org>
1210
1211         Comments about EINTR.
1212         * lib/safe-read.h: Explain the purpose of this module.
1213         * lib/safe-write.h: Likewise.
1214         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
1215         module.
1216         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
1217         module.
1218         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1219
1220 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
1221
1222         xnanosleep: Rewrite to use new dtotimespec module.
1223         It has the conversion code that used to be in xnanosleep.
1224         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
1225         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
1226         (TIME_T_MAX): Remove.
1227         (xnanosleep): Rewrite in terms of dtotimespec.
1228         * modules/xnanosleep (Depends-on): Add dtotimespec.
1229         Remove intprops, stdbool.
1230
1231         timespec-add, timespec-sub: new modules
1232         * lib/timespec.h (timespec_add, timespec_sub): New decls.
1233         * lib/timespec-add.c, lib/timespec-sub.c:
1234         * modules/timespec-add, modules/timespec-sub: New files.
1235
1236         dtotimespec: new module
1237         * lib/timespec.h (dtotimespec): New decl.
1238         * lib/dtotimespec.c, modules/dtotimespec: New files.
1239
1240         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
1241
1242         pselect: new module
1243         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
1244         (pselect): New decls.
1245         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
1246         since the standard pselect decl uses 'restrict'.
1247         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
1248         HAVE_PSELECT, REPLACE_PSELECT.
1249         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
1250         HAVE_PSELECT, REPLACE_PSELECT.
1251         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
1252
1253         sys_select: don't depend on sys_socket
1254         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
1255         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
1256         This fix works on GNU and GNU-like platforms, but has not been tested
1257         on native Windows.
1258         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
1259         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
1260         gl_HEADER_SYS_SOCKET.
1261         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
1262         gl_PREREQ_SYS_H_WINSOCK2.
1263
1264 2011-06-29  Eric Blake  <eblake@redhat.com>
1265
1266         pipe2: fix C89 compile problem
1267         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
1268         Reported by Bruno Haible.
1269
1270         pipe, pipe2: don't corrupt fd on error
1271         * lib/pipe.c (pipe): Leave fd unchanged on error.
1272         * lib/pipe2.c (pipe2): Likewise.
1273         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
1274         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
1275
1276 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
1277
1278         mmap-anon: do not use regular expressions inadvertently
1279         * m4/mmap-anon.m4: Remove trailing period from strings sought
1280         in the output.
1281
1282 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
1283
1284         nanosleep: fix integer overflow problem
1285         * lib/nanosleep.c (my_usleep): Don't assume signed integer
1286         arithmetic wraps around on overflow.
1287
1288         nanosleep: simplify carrying
1289         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
1290         first call to the underyling nanosleep, not for the last one.
1291         This doesn't fix any bugs, but it simplifies the computation of
1292         the remaining delay.  Found while auditing integer overflow issues.
1293
1294         dup2: remove test for existence of fcntl
1295         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
1296         "#if HAVE_FCNTL", in the configure-time test program.
1297         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
1298         and therefore speeds up "configure" a bit.  Found while
1299         adding the dup2 module to Emacs.
1300
1301 2011-06-24  Eric Blake  <eblake@redhat.com>
1302
1303         maint.mk: enhance useless header checks
1304         * top/maint.mk (_sc_header_without_use): Check both include
1305         styles.
1306         (sc_prohibit_assert_without_use)
1307         (sc_prohibit_close_stream_without_use)
1308         (sc_prohibit_getopt_without_use)
1309         (sc_prohibit_quotearg_without_use)
1310         (sc_prohibit_quote_without_use)
1311         (sc_prohibit_long_options_without_use)
1312         (sc_prohibit_inttostr_without_use)
1313         (sc_prohibit_ignore_value_without_use)
1314         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
1315         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
1316         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
1317         (sc_prohibit_hash_pjw_without_use)
1318         (sc_prohibit_safe_read_without_use)
1319         (sc_prohibit_argmatch_without_use)
1320         (sc_prohibit_canonicalize_without_use)
1321         (sc_prohibit_root_dev_ino_without_use)
1322         (sc_prohibit_openat_without_use)
1323         (sc_prohibit_c_ctype_without_use)
1324         (sc_prohibit_signal_without_use)
1325         (sc_prohibit_stdio--_without_use)
1326         (sc_prohibit_stdio-safer_without_use)
1327         (sc_prohibit_strings_without_use)
1328         (sc_prohibit_intprops_without_use)
1329         (sc_prohibit_stddef_without_use)
1330         (sc_prohibit_xfreopen_without_use): Update clients.
1331
1332 2011-06-24  Jim Meyering  <meyering@redhat.com>
1333
1334         syntax-check: keep one maint.mk rule in sync with its header
1335         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
1336         of the bug Eric has just fixed, with today's commit 25e4c2ec.
1337         I prefer to avoid temporary files here, so use <(...), but that
1338         is not supported by /bin/sh, so...
1339         (SHELL): Define to /bin/bash.
1340
1341 2011-06-24  Eric Blake  <eblake@redhat.com>
1342
1343         maint.mk: update sc_prohibit_intprops_without_use
1344         * top/maint.mk (_intprops_names): Match recent changes.
1345
1346 2011-06-24  Bruno Haible  <bruno@clisp.org>
1347
1348         strerror-override: No-op tweak.
1349         * lib/strerror-override.h (strerror_override): Reorder conditions,
1350         for consistency with lib/strerror-override.c.
1351
1352 2011-06-23  Eric Blake  <eblake@redhat.com>
1353
1354         maint.mk: test further PATH_MAX issues
1355         * top/maint.mk (sc_prohibit_path_max_array): Rename...
1356         (sc_prohibit_path_max_allocation): ...and also test alloca.
1357         Suggested by Jim Meyering.
1358
1359 2011-06-22  Eric Blake  <eblake@redhat.com>
1360
1361         maint.mk: add syntax-check to avoid char[PATH_MAX]
1362         * top/maint.mk (sc_prohibit_path_max_array): New rule.
1363
1364         stat: be robust to PATH_MAX definition
1365         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
1366         * modules/stat (Depends-on): Add verify.
1367
1368         link: work around IRIX bug
1369         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
1370         * lib/link.c (rpl_link): Work around it.
1371         * tests/test-link.h (test_link): Enhance test.
1372         * doc/posix-functions/link.texi (link): Document the bug.
1373
1374         getopt: silence clang warning
1375         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
1376         dereference.
1377         Reported by Gustavo Martin Domato.
1378
1379 2011-06-22  Jim Meyering  <meyering@redhat.com>
1380
1381         bootstrap: do not insert a blank line into each .gitignore file
1382         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
1383
1384 2011-06-21  Eric Blake  <eblake@redhat.com>
1385
1386         perror: test for output mismatch
1387         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
1388         perror on IRIX.
1389
1390         strerror_r: fix OpenBSD behavior on out-of-range
1391         * lib/strerror_r.c (strerror_r): Always use maximal string.
1392         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1393
1394         strerror_r: fix OpenBSD behavior on 0
1395         * lib/strerror-override.c (strerror_override): Also override 0
1396         when needed.
1397         * lib/strerror-override.h (strerror_override): Likewise.
1398         * lib/strerror.c (strerror): Simplify, now that 0 override is done
1399         earlier.
1400         * lib/strerror_r.c (strerror_r): Likewise.
1401         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
1402         behavior...
1403         (gl_FUNC_STRERROR_0): ...into new macro.
1404         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
1405         is overridden.
1406         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
1407         * modules/strerror-override (Files): Add strerror.m4.
1408         (configure.ac): Also provide override for 0 when needed.
1409         * doc/posix-functions/strerror.texi (strerror): Document this.
1410         * doc/posix-functions/perror.texi (perror): Likewise.
1411
1412         perror: adjust array size
1413         * modules/perror (Depends-on): Add strerror-override.
1414         * lib/perror.c (perror): Use it to avoid magic number.
1415
1416         strerror-override: reduce size
1417         * lib/strerror-override.c (strerror_override): Use fewer lines.
1418
1419 2011-06-20  Bruno Haible  <bruno@clisp.org>
1420
1421         pathmax: Ensure correct value for PATH_MAX on HP-UX.
1422         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
1423
1424 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
1425
1426         alloca: port to compilers that can optimize like GCC 4.6.0
1427         * lib/alloca.c (find_stack_direction): New signature, taken from
1428         Autoconf git.  This works with GCC 4.6.0.  This code should never
1429         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
1430         be used with other compilers that optimize as well as GCC 4.6.0 does.
1431         (alloca): Adjust to new signature.
1432         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
1433         New macro, which patches Autoconf in a similar way.
1434
1435         c-stack: stop worrying about stack direction
1436         * lib/c-stack.c (find_stack_direction): Remove.
1437         (segv_handler): Don't worry about stack direction growth, as it's
1438         too much of a pain to configure this correctly, given how compilers
1439         are optimizing-away our stack-growth detection code.  Instead, assume
1440         that any access to just before or just after the stack is OK.
1441         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
1442         Don't require AC_FUNC_ALLOCA; no longer needed.
1443
1444 2011-06-20  Eric Blake  <eblake@redhat.com>
1445
1446         test-stat: don't allocate PATH_MAX bytes
1447         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
1448         PATH_MAX-sized buffer.
1449         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
1450         * modules/stat-tests (Depends-on): Likewise.
1451         * tests/test-fstatat.c (includes): Drop pathmax.h.
1452         * tests/test-stat.c (includes): Likewise.
1453         Reported by Bruno Haible.
1454
1455 2011-06-20  Bruno Haible  <bruno@clisp.org>
1456
1457         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
1458         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
1459         * lib/float.c: New file.
1460         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
1461         REPLACE_FLOAT_LDBL.
1462         * modules/float (Files): Add lib/float.c.
1463         (configure.ac): Invoke AC_LIBOBJ.
1464         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
1465
1466 2011-06-20  Bruno Haible  <bruno@clisp.org>
1467
1468         Tests for module 'float'.
1469         * modules/float-tests: New file.
1470         * tests/test-float.c: New file.
1471
1472 2011-06-19  Bruno Haible  <bruno@clisp.org>
1473
1474         isinf: Coding style.
1475         * lib/isinf.c: Use GNU coding style.
1476
1477 2011-06-19  Bruno Haible  <bruno@clisp.org>
1478
1479         linkat test: Avoid test failure on AIX 7.1.
1480         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
1481         * tests/test-link.h (test_link): Likewise.
1482
1483 2011-06-19  Bruno Haible  <bruno@clisp.org>
1484
1485         pread test: Avoid test failure on OpenBSD 4.9.
1486         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
1487
1488 2011-06-19  Bruno Haible  <bruno@clisp.org>
1489
1490         sprintf-posix: Fix test failure on AIX 7.1.
1491         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
1492         * doc/posix-functions/dprintf.texi: Mention limited precision problem
1493         on AIX.
1494         * doc/posix-functions/fprintf.texi: Likewise.
1495         * doc/posix-functions/printf.texi: Likewise.
1496         * doc/posix-functions/snprintf.texi: Likewise.
1497         * doc/posix-functions/sprintf.texi: Likewise.
1498         * doc/posix-functions/vdprintf.texi: Likewise.
1499         * doc/posix-functions/vfprintf.texi: Likewise.
1500         * doc/posix-functions/vprintf.texi: Likewise.
1501         * doc/posix-functions/vsnprintf.texi: Likewise.
1502         * doc/posix-functions/vsprintf.texi: Likewise.
1503
1504 2011-06-19  Bruno Haible  <bruno@clisp.org>
1505
1506         roundl-ieee: Fix test failure on AIX 7.1.
1507         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
1508         * doc/posix-functions/roundl.texi: Mention problem with negative
1509         arguments.
1510
1511 2011-06-19  Bruno Haible  <bruno@clisp.org>
1512
1513         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
1514         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
1515         * doc/posix-functions/round.texi: Mention problem with negative
1516         arguments.
1517         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
1518
1519 2011-06-19  Bruno Haible  <bruno@clisp.org>
1520
1521         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
1522         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
1523         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
1524         * doc/posix-functions/roundf.texi: Mention problem with negative
1525         arguments.
1526         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
1527
1528 2011-06-19  Bruno Haible  <bruno@clisp.org>
1529
1530         ceilf-ieee: Work around bug on MacOS X 10.5.
1531         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
1532
1533         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
1534         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
1535         IEEE compliant, avoid compiler optimizations.
1536         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
1537         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
1538         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
1539         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
1540         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
1541         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
1542         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
1543         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
1544         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
1545         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
1546
1547 2011-06-19  Bruno Haible  <bruno@clisp.org>
1548
1549         ceilf-ieee: Work around bug on AIX 7.1.
1550         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
1551         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
1552
1553 2011-06-19  Bruno Haible  <bruno@clisp.org>
1554
1555         ceil-ieee: Work around bug on AIX 7.1.
1556         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
1557         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
1558
1559 2011-06-18  Bruno Haible  <bruno@clisp.org>
1560
1561         fsync test: Avoid test failure on MacOS X and AIX.
1562         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
1563         EINVAL.
1564
1565 2011-06-18  Bruno Haible  <bruno@clisp.org>
1566
1567         openat, fdopendir tests: Fix link errors.
1568         * modules/openat-tests (Depends-on): Add progname.
1569         * modules/fdopendir-tests (Depends-on): Likewise.
1570         * tests/test-fchownat.c: Include progname.h.
1571         (main): Call set_program_name.
1572         * tests/test-fstatat.c: Include progname.h.
1573         (main): Call set_program_name.
1574         * tests/test-mkdirat.c: Include progname.h.
1575         (main): Call set_program_name.
1576         * tests/test-openat.c: Include progname.h.
1577         (main): Call set_program_name.
1578         * tests/test-unlinkat.c: Include progname.h.
1579         (main): Call set_program_name.
1580         * tests/test-fdopendir.c: Include progname.h.
1581         (main): Call set_program_name.
1582
1583 2011-06-18  Bruno Haible  <bruno@clisp.org>
1584
1585         Doc update.
1586         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
1587         HP-UX.
1588         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
1589
1590 2011-06-18  Bruno Haible  <bruno@clisp.org>
1591
1592         getcwd tests: Avoid compilation error on HP-UX 11.31.
1593         * modules/getcwd-tests (Depends-on): Add pathmax.
1594         * tests/test-getcwd.c: Include pathmax.h.
1595
1596 2011-06-18  Bruno Haible  <bruno@clisp.org>
1597
1598         isfinite, isinf: Fix link error on AIX 6 and 7.
1599         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
1600         needed, also test the macro with a 'float' argument.
1601         * m4/isinf.m4 (gl_ISINF): Likewise.
1602
1603 2011-06-18  Bruno Haible  <bruno@clisp.org>
1604
1605         getloadavg: Don't clobber LIBS. Regression from previous commit.
1606         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
1607         AC_CHECK_LIB from here...
1608         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
1609         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
1610         gl_func_getloadavg_done.
1611         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1612
1613 2011-06-18  Bruno Haible  <bruno@clisp.org>
1614
1615         clean-temp: Improve documentation.
1616         * lib/clean-temp.h: Explain better how to use this module.
1617         Reported by John Darrington <john@darrington.wattle.id.au>.
1618
1619 2011-06-17  Bruno Haible  <bruno@clisp.org>
1620
1621         pread, pwrite: Avoid cc warning on AIX.
1622         * lib/unistd.in.h (pread): Undefine before defining as a macro.
1623         (pwrite): Likewise.
1624
1625 2011-06-17  Bruno Haible  <bruno@clisp.org>
1626
1627         spawn-pipe tests: Fix link error.
1628         * tests/test-spawn-pipe-child.c: Undefine fprintf.
1629         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1630
1631 2011-06-17  Bruno Haible  <bruno@clisp.org>
1632
1633         Tests: Remove unnecessary dependency.
1634         * modules/canonicalize-tests (Depends-on): Remove progname.
1635         * modules/chown-tests (Depends-on): Likewise.
1636         * modules/dirname-tests (Depends-on): Likewise.
1637         * modules/fdopendir-tests (Depends-on): Likewise.
1638         * modules/fdutimensat-tests (Depends-on): Likewise.
1639         * modules/hash-tests (Depends-on): Likewise.
1640         * modules/lchown-tests (Depends-on): Likewise.
1641         * modules/linkat-tests (Depends-on): Likewise.
1642         * modules/renameat-tests (Depends-on): Likewise.
1643         * modules/spawn-pipe-tests (Depends-on): Likewise.
1644         * modules/utimensat-tests (Depends-on): Likewise.
1645
1646 2011-06-17  Bruno Haible  <bruno@clisp.org>
1647
1648         spawn-pipe tests: Fix link error.
1649         * tests/test-spawn-pipe-child.c: Undefine fflush.
1650
1651 2011-06-17  Bruno Haible  <bruno@clisp.org>
1652
1653         Fix tests link errors.
1654         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
1655         * modules/chown-tests (Makefile.am): Don't link test-chown with
1656         LIBINTL.
1657         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
1658         LIBINTL.
1659         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
1660         LIBINTL.
1661         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
1662         LIBINTL.
1663
1664 2011-06-16  Bruno Haible  <bruno@clisp.org>
1665
1666         crypto/gc-sha1: Fix recent regression.
1667         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
1668         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
1669
1670         crypto/gc-md5: Fix recent regression.
1671         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
1672
1673         crypto/gc-md4: Fix recent regression.
1674         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
1675         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
1676
1677         crypto/gc-arctwo: Fix recent regression.
1678         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
1679         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
1680
1681         crypto/gc-rijndael: Fix recent regression.
1682         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
1683         (configure.ac): Invoke AC_LIBOBJ here.
1684         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
1685         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1686
1687         crypto/gc-hmac-sha1: Fix recent regression.
1688         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
1689         (configure.ac): Invoke AC_LIBOBJ here.
1690         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
1691         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1692
1693         crypto/gc-hmac-md5: Fix recent regression.
1694         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
1695         (configure.ac): Invoke AC_LIBOBJ here.
1696         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
1697         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1698
1699         crypto/gc-des: Fix recent regression.
1700         * modules/crypto/gc-des (Files): Remove m4/des.m4.
1701         (configure.ac): Invoke AC_LIBOBJ here.
1702         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
1703         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1704
1705         crypto/gc-arcfour: Fix recent regression.
1706         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
1707         (configure.ac): Invoke AC_LIBOBJ here.
1708         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
1709         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1710
1711 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
1712
1713         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
1714         After the 2011-05-21 change, this macro requires
1715         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
1716         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
1717
1718 2011-06-16  Bruno Haible  <bruno@clisp.org>
1719
1720         fprintftime: Move AC_LIBOBJ invocations to module description.
1721         * m4/fprintftime.m4: Remove file.
1722         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
1723         (configure.ac): Remove gl_FPRINTFTIME call.
1724         (Makefile.am): Augment lib_SOURCES.
1725         Reported by Jim Meyering.
1726
1727 2011-06-16  Bruno Haible  <bruno@clisp.org>
1728
1729         tmpfile-safer: Finish 2011-05-23 commit.
1730         * m4/stdio-safer.m4: Really remove file.
1731         Reported by Jim Meyering.
1732
1733 2011-06-16  Bruno Haible  <bruno@clisp.org>
1734
1735         syntax-check: Fix typo.
1736         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
1737         printf-posix.m4.
1738         Reported by Jim Meyering.
1739
1740 2011-06-13  Jim Meyering  <meyering@redhat.com>
1741
1742         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
1743         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
1744
1745 2011-05-23  Bruno Haible  <bruno@clisp.org>
1746
1747         yesno: Move AC_LIBOBJ invocations to module description.
1748         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
1749         * modules/yesno (Makefile.am): Augment lib_SOURCES.
1750
1751 2011-05-23  Bruno Haible  <bruno@clisp.org>
1752
1753         xstrtol: Move AC_LIBOBJ invocations to module description.
1754         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
1755         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
1756
1757 2011-05-23  Bruno Haible  <bruno@clisp.org>
1758
1759         xstrtold: Move AC_LIBOBJ invocations to module description.
1760         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
1761         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
1762
1763 2011-05-23  Bruno Haible  <bruno@clisp.org>
1764
1765         xstrtod: Move AC_LIBOBJ invocations to module description.
1766         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
1767         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
1768
1769 2011-05-23  Bruno Haible  <bruno@clisp.org>
1770
1771         xnanosleep: Move AC_LIBOBJ invocations to module description.
1772         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
1773         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
1774
1775 2011-05-23  Bruno Haible  <bruno@clisp.org>
1776
1777         xgetcwd: Move AC_LIBOBJ invocations to module description.
1778         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
1779         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
1780
1781 2011-05-23  Bruno Haible  <bruno@clisp.org>
1782
1783         xalloc: Move AC_LIBOBJ invocations to module description.
1784         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
1785         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
1786
1787 2011-05-23  Bruno Haible  <bruno@clisp.org>
1788
1789         write-any-file: Move AC_LIBOBJ invocations to module description.
1790         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
1791         invocation.
1792         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
1793
1794 2011-05-23  Bruno Haible  <bruno@clisp.org>
1795
1796         utimens: Move AC_LIBOBJ invocations to module description.
1797         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
1798         * modules/utimens (Makefile.am): Augment lib_SOURCES.
1799
1800 2011-05-23  Bruno Haible  <bruno@clisp.org>
1801
1802         utimecmp: Move AC_LIBOBJ invocations to module description.
1803         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
1804         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
1805
1806 2011-05-23  Bruno Haible  <bruno@clisp.org>
1807
1808         userspec: Move AC_LIBOBJ invocations to module description.
1809         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
1810         * modules/userspec (Makefile.am): Augment lib_SOURCES.
1811
1812 2011-05-23  Bruno Haible  <bruno@clisp.org>
1813
1814         unlinkdir: Move AC_LIBOBJ invocations to module description.
1815         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
1816         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
1817
1818 2011-05-23  Bruno Haible  <bruno@clisp.org>
1819
1820         unistd-safer: Move AC_LIBOBJ invocations to module description.
1821         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
1822         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
1823
1824 2011-05-23  Bruno Haible  <bruno@clisp.org>
1825
1826         tempname: Move AC_LIBOBJ invocations to module description.
1827         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
1828         * modules/tempname (Makefile.am): Augment lib_SOURCES.
1829
1830 2011-05-23  Bruno Haible  <bruno@clisp.org>
1831
1832         strftime: Move AC_LIBOBJ invocations to module description.
1833         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
1834         * modules/strftime (Makefile.am): Augment lib_SOURCES.
1835
1836 2011-05-23  Bruno Haible  <bruno@clisp.org>
1837
1838         stdlib-safer: Move AC_LIBOBJ invocations to module description.
1839         * m4/stdlib-safer.m4: Remove file.
1840         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
1841         (configure.ac): Remove gl_STDLIB_SAFER call.
1842         (Makefile.am): Augment lib_SOURCES.
1843
1844 2011-05-23  Bruno Haible  <bruno@clisp.org>
1845
1846         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
1847         * m4/stdio-safer.m4: Remove file.
1848         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
1849         (configure.ac): Remove gl_TMPFILE_SAFER call.
1850         (Makefile.am): Augment lib_SOURCES.
1851
1852 2011-05-23  Bruno Haible  <bruno@clisp.org>
1853
1854         popen-safer: Move AC_LIBOBJ invocations to module description.
1855         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
1856         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
1857         (configure.ac): Remove gl_POPEN_SAFER call.
1858         (Makefile.am): Augment lib_SOURCES.
1859
1860 2011-05-23  Bruno Haible  <bruno@clisp.org>
1861
1862         freopen-safer: Move AC_LIBOBJ invocations to module description.
1863         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
1864         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
1865         (configure.ac): Remove gl_FREOPEN_SAFER call.
1866         (Makefile.am): Augment lib_SOURCES.
1867
1868 2011-05-23  Bruno Haible  <bruno@clisp.org>
1869
1870         fopen-safer: Move AC_LIBOBJ invocations to module description.
1871         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
1872         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
1873         (configure.ac): Remove gl_FOPEN_SAFER call.
1874         (Makefile.am): Augment lib_SOURCES.
1875
1876 2011-05-23  Bruno Haible  <bruno@clisp.org>
1877
1878         crypto/sha512: Move AC_LIBOBJ invocations to module description.
1879         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
1880         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
1881
1882 2011-05-23  Bruno Haible  <bruno@clisp.org>
1883
1884         crypto/sha256: Move AC_LIBOBJ invocations to module description.
1885         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
1886         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
1887
1888 2011-05-23  Bruno Haible  <bruno@clisp.org>
1889
1890         crypto/sha1: Move AC_LIBOBJ invocations to module description.
1891         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
1892         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
1893
1894 2011-05-23  Bruno Haible  <bruno@clisp.org>
1895
1896         settime: Move AC_LIBOBJ invocations to module description.
1897         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
1898         * modules/settime (Makefile.am): Augment lib_SOURCES.
1899
1900 2011-05-23  Bruno Haible  <bruno@clisp.org>
1901
1902         savedir: Move AC_LIBOBJ invocations to module description.
1903         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
1904         * modules/savedir (Makefile.am): Augment lib_SOURCES.
1905
1906 2011-05-23  Bruno Haible  <bruno@clisp.org>
1907
1908         save-cwd: Move AC_LIBOBJ invocations to module description.
1909         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
1910         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
1911
1912 2011-05-23  Bruno Haible  <bruno@clisp.org>
1913
1914         same: Move AC_LIBOBJ invocations to module description.
1915         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
1916         * modules/same (Makefile.am): Augment lib_SOURCES.
1917
1918 2011-05-23  Bruno Haible  <bruno@clisp.org>
1919
1920         safe-write: Move AC_LIBOBJ invocations to module description.
1921         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
1922         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
1923         instead of gl_SAFE_WRITE.
1924         (Makefile.am): Augment lib_SOURCES.
1925
1926 2011-05-23  Bruno Haible  <bruno@clisp.org>
1927
1928         safe-read: Move AC_LIBOBJ invocations to module description.
1929         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
1930         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
1931         of gl_SAFE_READ.
1932         (Makefile.am): Augment lib_SOURCES.
1933
1934 2011-05-23  Bruno Haible  <bruno@clisp.org>
1935
1936         safe-alloc: Move AC_LIBOBJ invocations to module description.
1937         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
1938         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
1939
1940 2011-05-23  Bruno Haible  <bruno@clisp.org>
1941
1942         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
1943         * m4/rijndael.m4: Remove file.
1944         * modules/crypto/rijndael (Files): Remove it.
1945         (configure.ac): Remove gl_RIJNDAEL call.
1946         (Makefile.am): Augment lib_SOURCES.
1947
1948 2011-05-23  Bruno Haible  <bruno@clisp.org>
1949
1950         readtokens: Move AC_LIBOBJ invocations to module description.
1951         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
1952         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
1953
1954 2011-05-23  Bruno Haible  <bruno@clisp.org>
1955
1956         read-file: Move AC_LIBOBJ invocations to module description.
1957         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
1958         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
1959         of gl_FUNC_READ_FILE.
1960         (Makefile.am): Augment lib_SOURCES.
1961
1962 2011-05-23  Bruno Haible  <bruno@clisp.org>
1963
1964         quotearg: Move AC_LIBOBJ invocations to module description.
1965         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
1966         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
1967
1968 2011-05-23  Bruno Haible  <bruno@clisp.org>
1969
1970         quote: Move AC_LIBOBJ invocations to module description.
1971         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
1972         * modules/quote (Makefile.am): Augment lib_SOURCES.
1973
1974 2011-05-23  Bruno Haible  <bruno@clisp.org>
1975
1976         posixver: Move AC_LIBOBJ invocations to module description.
1977         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
1978         * modules/posixver (Makefile.am): Augment lib_SOURCES.
1979
1980 2011-05-23  Bruno Haible  <bruno@clisp.org>
1981
1982         posixtm: Move AC_LIBOBJ invocations to module description.
1983         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
1984         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
1985
1986 2011-05-23  Bruno Haible  <bruno@clisp.org>
1987
1988         physmem: Move AC_LIBOBJ invocations to module description.
1989         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
1990         * modules/physmem (Makefile.am): Augment lib_SOURCES.
1991
1992 2011-05-23  Bruno Haible  <bruno@clisp.org>
1993
1994         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
1995         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
1996         invocation.
1997         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
1998
1999 2011-05-23  Bruno Haible  <bruno@clisp.org>
2000
2001         mpsort: Move AC_LIBOBJ invocations to module description.
2002         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
2003         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
2004
2005 2011-05-23  Bruno Haible  <bruno@clisp.org>
2006
2007         modechange: Move AC_LIBOBJ invocations to module description.
2008         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
2009         * modules/modechange (Makefile.am): Augment lib_SOURCES.
2010
2011 2011-05-23  Bruno Haible  <bruno@clisp.org>
2012
2013         mkdir-p: Move AC_LIBOBJ invocations to module description.
2014         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
2015         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
2016
2017 2011-05-23  Bruno Haible  <bruno@clisp.org>
2018
2019         mkancesdirs: Move AC_LIBOBJ invocations to module description.
2020         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
2021         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
2022
2023 2011-05-23  Bruno Haible  <bruno@clisp.org>
2024
2025         mgetgroups: Move AC_LIBOBJ invocations to module description.
2026         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
2027         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
2028
2029 2011-05-23  Bruno Haible  <bruno@clisp.org>
2030
2031         memxor: Move AC_LIBOBJ invocations to module description.
2032         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
2033         * modules/memxor (Makefile.am): Augment lib_SOURCES.
2034
2035 2011-05-23  Bruno Haible  <bruno@clisp.org>
2036
2037         memcoll: Move AC_LIBOBJ invocations to module description.
2038         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
2039         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
2040
2041 2011-05-23  Bruno Haible  <bruno@clisp.org>
2042
2043         memcasecmp: Move AC_LIBOBJ invocations to module description.
2044         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
2045         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
2046
2047 2011-05-23  Bruno Haible  <bruno@clisp.org>
2048
2049         crypto/md5: Move AC_LIBOBJ invocations to module description.
2050         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
2051         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
2052
2053 2011-05-23  Bruno Haible  <bruno@clisp.org>
2054
2055         crypto/md4: Move AC_LIBOBJ invocations to module description.
2056         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
2057         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
2058
2059 2011-05-23  Bruno Haible  <bruno@clisp.org>
2060
2061         crypto/md2: Move AC_LIBOBJ invocations to module description.
2062         * m4/md2.m4: Remove file.
2063         * modules/crypto/md2 (Files): Remove it.
2064         (configure.ac): Remove gl_MD2 call.
2065         (Makefile.am): Augment lib_SOURCES.
2066
2067 2011-05-23  Bruno Haible  <bruno@clisp.org>
2068
2069         long-options: Move AC_LIBOBJ invocations to module description.
2070         * m4/long-options.m4: Remove file.
2071         * modules/long-options (Files): Remove it.
2072         (configure.ac): Remove gl_LONG_OPTIONS call.
2073         (Makefile.am): Augment lib_SOURCES.
2074
2075 2011-05-23  Bruno Haible  <bruno@clisp.org>
2076
2077         i-ring: Move AC_LIBOBJ invocations to module description.
2078         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
2079         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
2080
2081 2011-05-23  Bruno Haible  <bruno@clisp.org>
2082
2083         idcache: Move AC_LIBOBJ invocations to module description.
2084         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
2085         * modules/idcache (Makefile.am): Augment lib_SOURCES.
2086
2087 2011-05-23  Bruno Haible  <bruno@clisp.org>
2088
2089         human: Move AC_LIBOBJ invocations to module description.
2090         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
2091         * modules/human (Makefile.am): Augment lib_SOURCES.
2092
2093 2011-05-23  Bruno Haible  <bruno@clisp.org>
2094
2095         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
2096         * m4/hmac-sha1.m4: Remove file.
2097         * modules/crypto/hmac-sha1 (Files): Remove it.
2098         (configure.ac): Remove gl_HMAC_SHA1 call.
2099         (Makefile.am): Augment lib_SOURCES.
2100
2101 2011-05-23  Bruno Haible  <bruno@clisp.org>
2102
2103         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
2104         * m4/hmac-md5.m4: Remove file.
2105         * modules/crypto/hmac-md5 (Files): Remove it.
2106         (configure.ac): Remove gl_HMAC_MD5 call.
2107         (Makefile.am): Augment lib_SOURCES.
2108
2109 2011-05-23  Bruno Haible  <bruno@clisp.org>
2110
2111         hash: Move AC_LIBOBJ invocations to module description.
2112         * m4/hash.m4: Remove file.
2113         * modules/hash (Files): Remove it.
2114         (configure.ac): Remove gl_HASH call.
2115         (Makefile.am): Augment lib_SOURCES.
2116
2117 2011-05-23  Bruno Haible  <bruno@clisp.org>
2118
2119         hard-locale: Move AC_LIBOBJ invocations to module description.
2120         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
2121         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
2122
2123 2011-05-23  Bruno Haible  <bruno@clisp.org>
2124
2125         getugroups: Move AC_LIBOBJ invocations to module description.
2126         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
2127         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
2128
2129 2011-05-23  Bruno Haible  <bruno@clisp.org>
2130
2131         gettime: Move AC_LIBOBJ invocations to module description.
2132         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
2133         * modules/gettime (Makefile.am): Augment lib_SOURCES.
2134
2135 2011-05-23  Bruno Haible  <bruno@clisp.org>
2136
2137         getndelim2: Move AC_LIBOBJ invocations to module description.
2138         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
2139         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
2140
2141 2011-05-23  Bruno Haible  <bruno@clisp.org>
2142
2143         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
2144         * m4/gc-pbkdf2-sha1.m4: Remove file.
2145         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
2146         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
2147         (Makefile.am): Augment lib_SOURCES.
2148
2149 2011-05-23  Bruno Haible  <bruno@clisp.org>
2150
2151         fts: Move AC_LIBOBJ invocations to module description.
2152         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
2153         * modules/fts (configure.ac): ... to here.
2154
2155 2011-05-23  Bruno Haible  <bruno@clisp.org>
2156
2157         file-type: Move AC_LIBOBJ invocations to module description.
2158         * m4/file-type.m4: Remove file.
2159         * modules/file-type (Files): Remove it.
2160         (configure.ac): Remove gl_FILE_TYPE call.
2161         (Makefile.am): Augment lib_SOURCES.
2162
2163 2011-05-23  Bruno Haible  <bruno@clisp.org>
2164
2165         filenamecat*: Respect rules for use of AC_LIBOBJ.
2166         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
2167         Remove AC_LIBOBJ invocation.
2168         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
2169         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
2170
2171 2011-05-23  Bruno Haible  <bruno@clisp.org>
2172
2173         filemode: Move AC_LIBOBJ invocations to module description.
2174         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
2175         * modules/filemode (Makefile.am): Augment lib_SOURCES.
2176
2177 2011-05-23  Bruno Haible  <bruno@clisp.org>
2178
2179         openat-safer: Move AC_LIBOBJ invocations to module description.
2180         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
2181         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
2182
2183 2011-05-23  Bruno Haible  <bruno@clisp.org>
2184
2185         fcntl-safer: Move AC_LIBOBJ invocations to module description.
2186         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
2187         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
2188
2189 2011-05-23  Bruno Haible  <bruno@clisp.org>
2190
2191         exclude: Move AC_LIBOBJ invocations to module description.
2192         * m4/exclude.m4: Remove file.
2193         * modules/exclude (Files): Remove it.
2194         (configure.ac): Remove gl_EXCLUDE call.
2195         (Makefile.am): Augment lib_SOURCES.
2196
2197 2011-05-23  Bruno Haible  <bruno@clisp.org>
2198
2199         dirname*: Respect rules for use of AC_LIBOBJ.
2200         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
2201         invocations.
2202         * modules/dirname (Makefile.am): Augment lib_SOURCES.
2203         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
2204
2205 2011-05-23  Bruno Haible  <bruno@clisp.org>
2206
2207         dirent-safer: Move AC_LIBOBJ invocations to module description.
2208         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
2209         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
2210
2211 2011-05-23  Bruno Haible  <bruno@clisp.org>
2212
2213         crypto/des: Move AC_LIBOBJ invocations to module description.
2214         * m4/des.m4: Remove file.
2215         * modules/crypto/des (Files): Remove it.
2216         (configure.ac): Remove gl_DES call.
2217         (Makefile.am): Augment lib_SOURCES.
2218
2219 2011-05-23  Bruno Haible  <bruno@clisp.org>
2220
2221         cycle-check: Move AC_LIBOBJ invocations to module description.
2222         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
2223         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
2224
2225 2011-05-23  Bruno Haible  <bruno@clisp.org>
2226
2227         c-strtold: Move AC_LIBOBJ invocations to module description.
2228         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
2229         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
2230
2231 2011-05-23  Bruno Haible  <bruno@clisp.org>
2232
2233         c-strtod: Move AC_LIBOBJ invocations to module description.
2234         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
2235         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
2236
2237 2011-05-23  Bruno Haible  <bruno@clisp.org>
2238
2239         crc: Move AC_LIBOBJ invocations to module description.
2240         * m4/crc.m4: Remove file.
2241         * modules/crc (Files): Remove it.
2242         (configure.ac): Remove gl_CRC call.
2243         (Makefile.am): Augment lib_SOURCES.
2244
2245 2011-05-23  Bruno Haible  <bruno@clisp.org>
2246
2247         close-stream: Move AC_LIBOBJ invocations to module description.
2248         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
2249         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
2250
2251 2011-05-23  Bruno Haible  <bruno@clisp.org>
2252
2253         closeout: Move AC_LIBOBJ invocations to module description.
2254         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
2255         * modules/closeout (Makefile.am): Augment lib_SOURCES.
2256
2257 2011-05-23  Bruno Haible  <bruno@clisp.org>
2258
2259         closein: Move AC_LIBOBJ invocations to module description.
2260         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
2261         * modules/closein (Makefile.am): Augment lib_SOURCES.
2262
2263 2011-05-23  Bruno Haible  <bruno@clisp.org>
2264
2265         cloexec: Move AC_LIBOBJ invocations to module description.
2266         * m4/cloexec.m4: Remove file.
2267         * modules/cloexec (Files): Remove it.
2268         (configure.ac): Remove gl_CLOEXEC call.
2269         (Makefile.am): Augment lib_SOURCES.
2270
2271 2011-05-23  Bruno Haible  <bruno@clisp.org>
2272
2273         check-version: Move AC_LIBOBJ invocations to module description.
2274         * m4/check-version.m4: Remove file.
2275         * modules/check-version (Files): Remove it.
2276         (configure.ac): Remove gl_CHECK_VERSION call.
2277         (Makefile.am): Augment lib_SOURCES.
2278
2279 2011-05-23  Bruno Haible  <bruno@clisp.org>
2280
2281         chdir-safer: Move AC_LIBOBJ invocations to module description.
2282         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
2283         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
2284
2285 2011-05-23  Bruno Haible  <bruno@clisp.org>
2286
2287         canonicalize: Move AC_LIBOBJ invocations to module description.
2288         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
2289         AC_LIBOBJ invocation.
2290         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
2291
2292 2011-05-23  Bruno Haible  <bruno@clisp.org>
2293
2294         canon-host: Move AC_LIBOBJ invocations to module description.
2295         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
2296         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
2297         instead of gl_CANON_HOST.
2298         (Makefile.am): Augment lib_SOURCES.
2299
2300 2011-05-23  Bruno Haible  <bruno@clisp.org>
2301
2302         backupfile: Move AC_LIBOBJ invocations to module description.
2303         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
2304         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
2305
2306 2011-05-23  Bruno Haible  <bruno@clisp.org>
2307
2308         argmatch: Move AC_LIBOBJ invocations to module description.
2309         * m4/argmatch.m4: Remove file.
2310         * modules/argmatch (Files): Remove it.
2311         (configure.ac): Remove gl_ARGMATCH call.
2312         (Makefile.am): Augment lib_SOURCES.
2313
2314 2011-05-23  Bruno Haible  <bruno@clisp.org>
2315
2316         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
2317         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
2318         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
2319
2320 2011-05-23  Bruno Haible  <bruno@clisp.org>
2321
2322         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
2323         * m4/arcfour.m4: Remove file.
2324         * modules/crypto/arcfour (Files): Remove it.
2325         (configure.ac): Remove gl_ARCFOUR call.
2326         (Makefile.am): Augment lib_SOURCES.
2327
2328 2011-05-22  Bruno Haible  <bruno@clisp.org>
2329
2330         write: Move AC_LIBOBJ invocations to module description.
2331         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
2332         * modules/write (configure.ac): ... to here.
2333
2334 2011-05-22  Bruno Haible  <bruno@clisp.org>
2335
2336         wmemset: Move AC_LIBOBJ invocations to module description.
2337         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
2338         here...
2339         * modules/wmemset (configure.ac): ... to here.
2340
2341 2011-05-22  Bruno Haible  <bruno@clisp.org>
2342
2343         wmemmove: Move AC_LIBOBJ invocations to module description.
2344         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
2345         here...
2346         * modules/wmemmove (configure.ac): ... to here.
2347
2348 2011-05-22  Bruno Haible  <bruno@clisp.org>
2349
2350         wmemcpy: Move AC_LIBOBJ invocations to module description.
2351         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
2352         here...
2353         * modules/wmemcpy (configure.ac): ... to here.
2354
2355 2011-05-22  Bruno Haible  <bruno@clisp.org>
2356
2357         wmemcmp: Move AC_LIBOBJ invocations to module description.
2358         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
2359         here...
2360         * modules/wmemcmp (configure.ac): ... to here.
2361
2362 2011-05-22  Bruno Haible  <bruno@clisp.org>
2363
2364         wmemchr: Move AC_LIBOBJ invocations to module description.
2365         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
2366         here...
2367         * modules/wmemchr (configure.ac): ... to here.
2368
2369 2011-05-22  Bruno Haible  <bruno@clisp.org>
2370
2371         wcswidth: Move AC_LIBOBJ invocations to module description.
2372         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
2373         here...
2374         * modules/wcswidth (configure.ac): ... to here.
2375
2376 2011-05-22  Bruno Haible  <bruno@clisp.org>
2377
2378         wcwidth: Respect rules for use of AC_LIBOBJ.
2379         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
2380         invocation from here...
2381         * modules/wcwidth (configure.ac): ... to here.
2382         (Depends-on): Update conditions.
2383
2384 2011-05-22  Bruno Haible  <bruno@clisp.org>
2385
2386         wctype: Move AC_LIBOBJ invocations to module description.
2387         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
2388         invocation from here...
2389         * modules/wctype (configure.ac): ... to here.
2390         (Depends-on): Update conditions.
2391
2392 2011-05-22  Bruno Haible  <bruno@clisp.org>
2393
2394         wctrans: Move AC_LIBOBJ invocations to module description.
2395         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
2396         invocation from here...
2397         * modules/wctrans (configure.ac): ... to here.
2398
2399 2011-05-22  Bruno Haible  <bruno@clisp.org>
2400
2401         wctomb: Move AC_LIBOBJ invocations to module description.
2402         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
2403         invocations from here...
2404         * modules/wctomb (configure.ac): ... to here.
2405
2406 2011-05-22  Bruno Haible  <bruno@clisp.org>
2407
2408         wctob: Move AC_LIBOBJ invocations to module description.
2409         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
2410         gl_PREREQ_WCTOB invocations from here...
2411         * modules/wctob (configure.ac): ... to here.
2412         (Depends-on): Update conditions.
2413
2414 2011-05-22  Bruno Haible  <bruno@clisp.org>
2415
2416         wcsxfrm: Move AC_LIBOBJ invocations to module description.
2417         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
2418         here...
2419         * modules/wcsxfrm (configure.ac): ... to here.
2420
2421 2011-05-22  Bruno Haible  <bruno@clisp.org>
2422
2423         wcstok: Move AC_LIBOBJ invocations to module description.
2424         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
2425         * modules/wcstok (configure.ac): ... to here.
2426
2427 2011-05-22  Bruno Haible  <bruno@clisp.org>
2428
2429         wcsstr: Move AC_LIBOBJ invocations to module description.
2430         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
2431         * modules/wcsstr (configure.ac): ... to here.
2432
2433 2011-05-22  Bruno Haible  <bruno@clisp.org>
2434
2435         wcsspn: Move AC_LIBOBJ invocations to module description.
2436         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
2437         * modules/wcsspn (configure.ac): ... to here.
2438
2439 2011-05-22  Bruno Haible  <bruno@clisp.org>
2440
2441         wcsrtombs: Move AC_LIBOBJ invocations to module description.
2442         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
2443         gl_PREREQ_WCSRTOMBS invocations from here...
2444         * modules/wcsrtombs (configure.ac): ... to here.
2445
2446 2011-05-22  Bruno Haible  <bruno@clisp.org>
2447
2448         wcsrchr: Move AC_LIBOBJ invocations to module description.
2449         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
2450         here...
2451         * modules/wcsrchr (configure.ac): ... to here.
2452
2453 2011-05-22  Bruno Haible  <bruno@clisp.org>
2454
2455         wcspbrk: Move AC_LIBOBJ invocations to module description.
2456         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
2457         here...
2458         * modules/wcspbrk (configure.ac): ... to here.
2459
2460 2011-05-22  Bruno Haible  <bruno@clisp.org>
2461
2462         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
2463         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
2464         gl_PREREQ_WCSNRTOMBS invocations from here...
2465         * modules/wcsnrtombs (configure.ac): ... to here.
2466
2467 2011-05-22  Bruno Haible  <bruno@clisp.org>
2468
2469         wcsnlen: Move AC_LIBOBJ invocations to module description.
2470         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
2471         here...
2472         * modules/wcsnlen (configure.ac): ... to here.
2473
2474 2011-05-22  Bruno Haible  <bruno@clisp.org>
2475
2476         wcsncpy: Move AC_LIBOBJ invocations to module description.
2477         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
2478         here...
2479         * modules/wcsncpy (configure.ac): ... to here.
2480
2481 2011-05-22  Bruno Haible  <bruno@clisp.org>
2482
2483         wcsncmp: Move AC_LIBOBJ invocations to module description.
2484         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
2485         here...
2486         * modules/wcsncmp (configure.ac): ... to here.
2487
2488 2011-05-22  Bruno Haible  <bruno@clisp.org>
2489
2490         wcsncat: Move AC_LIBOBJ invocations to module description.
2491         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
2492         here...
2493         * modules/wcsncat (configure.ac): ... to here.
2494
2495 2011-05-22  Bruno Haible  <bruno@clisp.org>
2496
2497         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
2498         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
2499         from here...
2500         * modules/wcsncasecmp (configure.ac): ... to here.
2501
2502 2011-05-22  Bruno Haible  <bruno@clisp.org>
2503
2504         wcslen: Move AC_LIBOBJ invocations to module description.
2505         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
2506         * modules/wcslen (configure.ac): ... to here.
2507
2508 2011-05-22  Bruno Haible  <bruno@clisp.org>
2509
2510         wcsdup: Move AC_LIBOBJ invocations to module description.
2511         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
2512         * modules/wcsdup (configure.ac): ... to here.
2513
2514 2011-05-22  Bruno Haible  <bruno@clisp.org>
2515
2516         wcscspn: Move AC_LIBOBJ invocations to module description.
2517         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
2518         here...
2519         * modules/wcscspn (configure.ac): ... to here.
2520
2521 2011-05-22  Bruno Haible  <bruno@clisp.org>
2522
2523         wcscpy: Move AC_LIBOBJ invocations to module description.
2524         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
2525         * modules/wcscpy (configure.ac): ... to here.
2526
2527 2011-05-22  Bruno Haible  <bruno@clisp.org>
2528
2529         wcscoll: Move AC_LIBOBJ invocations to module description.
2530         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
2531         here...
2532         * modules/wcscoll (configure.ac): ... to here.
2533
2534 2011-05-22  Bruno Haible  <bruno@clisp.org>
2535
2536         wcscmp: Move AC_LIBOBJ invocations to module description.
2537         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
2538         * modules/wcscmp (configure.ac): ... to here.
2539
2540 2011-05-22  Bruno Haible  <bruno@clisp.org>
2541
2542         wcschr: Move AC_LIBOBJ invocations to module description.
2543         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
2544         * modules/wcschr (configure.ac): ... to here.
2545
2546 2011-05-22  Bruno Haible  <bruno@clisp.org>
2547
2548         wcscat: Move AC_LIBOBJ invocations to module description.
2549         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
2550         * modules/wcscat (configure.ac): ... to here.
2551
2552 2011-05-22  Bruno Haible  <bruno@clisp.org>
2553
2554         wcscasecmp: Move AC_LIBOBJ invocations to module description.
2555         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
2556         here...
2557         * modules/wcscasecmp (configure.ac): ... to here.
2558
2559 2011-05-22  Bruno Haible  <bruno@clisp.org>
2560
2561         wcrtomb: Move AC_LIBOBJ invocations to module description.
2562         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
2563         invocations from here...
2564         * modules/wcrtomb (configure.ac): ... to here.
2565
2566 2011-05-22  Bruno Haible  <bruno@clisp.org>
2567
2568         wcpncpy: Move AC_LIBOBJ invocations to module description.
2569         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
2570         here...
2571         * modules/wcpncpy (configure.ac): ... to here.
2572
2573 2011-05-22  Bruno Haible  <bruno@clisp.org>
2574
2575         wcpcpy: Move AC_LIBOBJ invocations to module description.
2576         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
2577         * modules/wcpcpy (configure.ac): ... to here.
2578
2579 2011-05-22  Bruno Haible  <bruno@clisp.org>
2580
2581         waitpid: Move AC_LIBOBJ invocations to module description.
2582         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
2583         invocation from here...
2584         * modules/waitpid (configure.ac): ... to here.
2585
2586 2011-05-22  Bruno Haible  <bruno@clisp.org>
2587
2588         utimensat: Move AC_LIBOBJ invocations to module description.
2589         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
2590         here...
2591         * modules/utimensat (configure.ac): ... to here.
2592
2593 2011-05-22  Bruno Haible  <bruno@clisp.org>
2594
2595         usleep: Move AC_LIBOBJ invocations to module description.
2596         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
2597         here...
2598         * modules/usleep (configure.ac): ... to here.
2599
2600 2011-05-22  Bruno Haible  <bruno@clisp.org>
2601
2602         unlockpt: Move AC_LIBOBJ invocations to module description.
2603         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
2604         gl_PREREQ_UNLOCKPT invocations from here...
2605         * modules/unlockpt (configure.ac): ... to here.
2606
2607 2011-05-22  Bruno Haible  <bruno@clisp.org>
2608
2609         unlink: Respect rules for use of AC_LIBOBJ.
2610         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
2611         * modules/unlink (configure.ac): ... to here.
2612
2613 2011-05-22  Bruno Haible  <bruno@clisp.org>
2614
2615         uname: Move AC_LIBOBJ invocations to module description.
2616         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
2617         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
2618         here...
2619         * modules/uname (configure.ac): ... to here.
2620
2621 2011-05-22  Bruno Haible  <bruno@clisp.org>
2622
2623         ttyname_r: Move AC_LIBOBJ invocations to module description.
2624         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
2625         gl_PREREQ_TTYNAME_R invocations from here...
2626         * modules/ttyname_r (configure.ac): ... to here.
2627
2628 2011-05-22  Bruno Haible  <bruno@clisp.org>
2629
2630         tsearch: Move AC_LIBOBJ invocations to module description.
2631         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
2632         invocations from here...
2633         * modules/tsearch (configure.ac): ... to here.
2634
2635 2011-05-22  Bruno Haible  <bruno@clisp.org>
2636
2637         towctrans: Move AC_LIBOBJ invocations to module description.
2638         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
2639         AC_LIBOBJ invocation from here...
2640         * modules/towctrans (configure.ac): ... to here.
2641
2642 2011-05-22  Bruno Haible  <bruno@clisp.org>
2643
2644         tmpfile: Move AC_LIBOBJ invocations to module description.
2645         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
2646         invocations from here...
2647         * modules/tmpfile (configure.ac): ... to here.
2648
2649 2011-05-22  Bruno Haible  <bruno@clisp.org>
2650
2651         times: Move AC_LIBOBJ invocations to module description.
2652         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
2653         * modules/times (configure.ac): ... to here.
2654
2655 2011-05-22  Bruno Haible  <bruno@clisp.org>
2656
2657         time_r: Move AC_LIBOBJ invocations to module description.
2658         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
2659         invocations from here...
2660         * modules/time_r (configure.ac): ... to here.
2661
2662 2011-05-22  Bruno Haible  <bruno@clisp.org>
2663
2664         timegm: Move AC_LIBOBJ invocations to module description.
2665         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
2666         invocations from here...
2667         * modules/timegm (configure.ac): ... to here.
2668
2669 2011-05-22  Bruno Haible  <bruno@clisp.org>
2670
2671         tcgetsid: Move AC_LIBOBJ invocations to module description.
2672         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
2673         and gl_PREREQ_TCGETSID invocations from here...
2674         * modules/tcgetsid (configure.ac): ... to here.
2675         (Depends-on): Update conditions.
2676
2677 2011-05-22  Bruno Haible  <bruno@clisp.org>
2678
2679         symlinkat: Move AC_LIBOBJ invocations to module description.
2680         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
2681         here...
2682         * modules/symlinkat (configure.ac): ... to here.
2683
2684 2011-05-22  Bruno Haible  <bruno@clisp.org>
2685
2686         symlink: Move AC_LIBOBJ invocations to module description.
2687         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
2688         here...
2689         * modules/symlink (configure.ac): ... to here.
2690
2691 2011-05-22  Bruno Haible  <bruno@clisp.org>
2692
2693         strverscmp: Move AC_LIBOBJ invocations to module description.
2694         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
2695         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
2696         from here...
2697         * modules/strverscmp (configure.ac): ... to here.
2698
2699 2011-05-22  Bruno Haible  <bruno@clisp.org>
2700
2701         strtok_r: Move AC_LIBOBJ invocations to module description.
2702         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
2703         and gl_PREREQ_STRTOK_R invocations from here...
2704         * modules/strtok_r (configure.ac): ... to here.
2705         (Depends-on): Update conditions.
2706
2707 2011-05-22  Bruno Haible  <bruno@clisp.org>
2708
2709         strtoumax: Move AC_LIBOBJ invocations to module description.
2710         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
2711         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
2712         from here...
2713         * modules/strtoumax (configure.ac): ... to here.
2714
2715 2011-05-22  Bruno Haible  <bruno@clisp.org>
2716
2717         strtoimax: Move AC_LIBOBJ invocations to module description.
2718         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
2719         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
2720         from here...
2721         * modules/strtoimax (configure.ac): ... to here.
2722
2723 2011-05-22  Bruno Haible  <bruno@clisp.org>
2724
2725         strtoull: Move AC_LIBOBJ invocations to module description.
2726         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
2727         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
2728         from here...
2729         * modules/strtoull (configure.ac): ... to here.
2730
2731 2011-05-22  Bruno Haible  <bruno@clisp.org>
2732
2733         strtoll: Move AC_LIBOBJ invocations to module description.
2734         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
2735         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
2736         here...
2737         * modules/strtoll (configure.ac): ... to here.
2738
2739 2011-05-22  Bruno Haible  <bruno@clisp.org>
2740
2741         strtoul: Move AC_LIBOBJ invocations to module description.
2742         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
2743         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
2744         * modules/strtoul (configure.ac): ... to here.
2745
2746 2011-05-22  Bruno Haible  <bruno@clisp.org>
2747
2748         strtol: Move AC_LIBOBJ invocations to module description.
2749         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
2750         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
2751         * modules/strtol (configure.ac): ... to here.
2752
2753 2011-05-22  Bruno Haible  <bruno@clisp.org>
2754
2755         strtod: Move AC_LIBOBJ invocations to module description.
2756         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
2757         invocations from here...
2758         * modules/strtod (configure.ac): ... to here.
2759
2760 2011-05-22  Bruno Haible  <bruno@clisp.org>
2761
2762         strstr*: Move AC_LIBOBJ invocations to module description.
2763         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
2764         invocations from here...
2765         * modules/strstr-simple (configure.ac): ... to here.
2766         * modules/strstr (configure.ac): ... and here.
2767
2768 2011-05-22  Bruno Haible  <bruno@clisp.org>
2769
2770         strsignal: Move AC_LIBOBJ invocations to module description.
2771         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
2772         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
2773         * modules/strsignal (configure.ac): ... to here.
2774         (Depends-on): Update conditions.
2775
2776 2011-05-22  Bruno Haible  <bruno@clisp.org>
2777
2778         strsep: Move AC_LIBOBJ invocations to module description.
2779         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
2780         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
2781         here...
2782         * modules/strsep (configure.ac): ... to here.
2783
2784 2011-05-22  Bruno Haible  <bruno@clisp.org>
2785
2786         strptime: Move AC_LIBOBJ invocations to module description.
2787         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
2788         gl_PREREQ_STRPTIME invocations from here...
2789         * modules/strptime (configure.ac): ... to here.
2790
2791 2011-05-22  Bruno Haible  <bruno@clisp.org>
2792
2793         strpbrk: Move AC_LIBOBJ invocations to module description.
2794         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
2795         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
2796         here...
2797         * modules/strpbrk (configure.ac): ... to here.
2798
2799 2011-05-22  Bruno Haible  <bruno@clisp.org>
2800
2801         strnlen: Move AC_LIBOBJ invocations to module description.
2802         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
2803         invocations from here...
2804         * modules/strnlen (configure.ac): ... to here.
2805
2806 2011-05-22  Bruno Haible  <bruno@clisp.org>
2807
2808         strndup: Move AC_LIBOBJ invocations to module description.
2809         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
2810         invocations from here...
2811         * modules/strndup (configure.ac): ... to here.
2812         (Depends-on): Update conditions.
2813
2814 2011-05-22  Bruno Haible  <bruno@clisp.org>
2815
2816         strncat: Move AC_LIBOBJ invocations to module description.
2817         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
2818         invocations from here...
2819         * modules/strncat (configure.ac): ... to here.
2820
2821 2011-05-22  Bruno Haible  <bruno@clisp.org>
2822
2823         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
2824         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
2825         invocations from here...
2826         * modules/strdup (configure.ac): ... to here.
2827         * modules/strdup-posix (configure.ac): ... and here.
2828
2829 2011-05-22  Bruno Haible  <bruno@clisp.org>
2830
2831         strcspn: Move AC_LIBOBJ invocations to module description.
2832         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
2833         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
2834         here...
2835         * modules/strcspn (configure.ac): ... to here.
2836
2837 2011-05-22  Bruno Haible  <bruno@clisp.org>
2838
2839         strchrnul: Move AC_LIBOBJ invocations to module description.
2840         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
2841         gl_PREREQ_STRCHRNUL invocations from here...
2842         * modules/strchrnul (configure.ac): ... to here.
2843
2844 2011-05-22  Bruno Haible  <bruno@clisp.org>
2845
2846         strcasestr*: Move AC_LIBOBJ invocations to module description.
2847         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
2848         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
2849         * modules/strcasestr-simple (configure.ac): ... to here.
2850         * modules/strcasestr (configure.ac): ... and here.
2851
2852 2011-05-22  Bruno Haible  <bruno@clisp.org>
2853
2854         strcase: Move AC_LIBOBJ invocations to module description.
2855         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
2856         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
2857         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
2858         gl_PREREQ_STRNCASECMP invocations from here...
2859         * modules/strcase (configure.ac): ... to here.
2860
2861 2011-05-22  Bruno Haible  <bruno@clisp.org>
2862
2863         stpncpy: Move AC_LIBOBJ invocations to module description.
2864         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
2865         here...
2866         * modules/stpncpy (configure.ac): ... to here.
2867
2868 2011-05-22  Bruno Haible  <bruno@clisp.org>
2869
2870         stpcpy: Move AC_LIBOBJ invocations to module description.
2871         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
2872         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
2873         here...
2874         * modules/stpcpy (configure.ac): ... to here.
2875
2876 2011-05-21  Bruno Haible  <bruno@clisp.org>
2877
2878         stat: Move AC_LIBOBJ invocations to module description.
2879         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
2880         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
2881         here...
2882         * modules/stat (configure.ac): ... to here.
2883
2884 2011-05-21  Bruno Haible  <bruno@clisp.org>
2885
2886         sleep: Move AC_LIBOBJ invocations to module description.
2887         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
2888         * modules/sleep (configure.ac): ... to here.
2889
2890 2011-05-21  Bruno Haible  <bruno@clisp.org>
2891
2892         signbit: Move AC_LIBOBJ invocations to module description.
2893         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
2894         * modules/signbit (configure.ac): ... to here.
2895
2896 2011-05-21  Bruno Haible  <bruno@clisp.org>
2897
2898         sigprocmask: Move AC_LIBOBJ invocations to module description.
2899         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
2900         gl_PREREQ_SIGPROMASK invocations from here...
2901         * modules/sigprocmask (configure.ac): ... to here.
2902
2903 2011-05-21  Bruno Haible  <bruno@clisp.org>
2904
2905         sigaction: Move AC_LIBOBJ invocations to module description.
2906         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
2907         gl_PREREQ_SIGACTION invocations from here...
2908         * modules/sigaction (configure.ac): ... to here.
2909
2910 2011-05-21  Bruno Haible  <bruno@clisp.org>
2911
2912         sig2str: Move AC_LIBOBJ invocations to module description.
2913         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
2914         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
2915         here...
2916         * modules/sig2str (configure.ac): ... to here.
2917
2918 2011-05-21  Bruno Haible  <bruno@clisp.org>
2919
2920         setlocale: Move AC_LIBOBJ invocations to module description.
2921         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
2922         gl_PREREQ_SETLOCALE invocations from here...
2923         * modules/setlocale (configure.ac): ... to here.
2924
2925 2011-05-21  Bruno Haible  <bruno@clisp.org>
2926
2927         unsetenv: Move AC_LIBOBJ invocations to module description.
2928         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
2929         and gl_PREREQ_UNSETENV invocations from here...
2930         * modules/unsetenv (configure.ac): ... to here.
2931         (Depends-on): Update.
2932
2933 2011-05-21  Bruno Haible  <bruno@clisp.org>
2934
2935         setenv: Move AC_LIBOBJ invocations to module description.
2936         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
2937         here...
2938         * modules/setenv (configure.ac): ... to here.
2939
2940 2011-05-21  Bruno Haible  <bruno@clisp.org>
2941
2942         selinux-h: Move AC_LIBOBJ invocations to module description.
2943         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
2944         AC_LIBOBJ invocation from here...
2945         * modules/selinux-h (configure.ac): ... to here.
2946
2947 2011-05-21  Bruno Haible  <bruno@clisp.org>
2948
2949         select: Respect rules for use of AC_LIBOBJ.
2950         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
2951         here...
2952         * modules/select (configure.ac): ... to here.
2953
2954 2011-05-21  Bruno Haible  <bruno@clisp.org>
2955
2956         scandir: Move AC_LIBOBJ invocations to module description.
2957         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
2958         invocations from here...
2959         * modules/scandir (configure.ac): ... to here.
2960
2961 2011-05-21  Bruno Haible  <bruno@clisp.org>
2962
2963         rpmatch: Move AC_LIBOBJ invocations to module description.
2964         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
2965         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
2966         here...
2967         * modules/rpmatch (configure.ac): ... to here.
2968
2969 2011-05-21  Bruno Haible  <bruno@clisp.org>
2970
2971         rmdir: Respect rules for use of AC_LIBOBJ.
2972         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
2973         * modules/rmdir (configure.ac): ... to here.
2974
2975 2011-05-21  Bruno Haible  <bruno@clisp.org>
2976
2977         renameat: Move AC_LIBOBJ invocations to module description.
2978         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
2979         here...
2980         * modules/renameat (configure.ac): ... to here.
2981
2982 2011-05-21  Bruno Haible  <bruno@clisp.org>
2983
2984         rename: Respect rules for use of AC_LIBOBJ.
2985         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
2986         here...
2987         * modules/rename (configure.ac): ... to here.
2988
2989 2011-05-21  Bruno Haible  <bruno@clisp.org>
2990
2991         remove: Move AC_LIBOBJ invocations to module description.
2992         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
2993         here...
2994         * modules/remove (configure.ac): ... to here.
2995
2996 2011-05-21  Bruno Haible  <bruno@clisp.org>
2997
2998         relocatable-lib: Move AC_LIBOBJ invocations to module description.
2999         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
3000         macro.
3001         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
3002         * modules/relocatable-lib (configure.ac): ... to here.
3003         * modules/relocatable-prog-wrapper (configure.ac): Invoke
3004         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
3005
3006 2011-05-21  Bruno Haible  <bruno@clisp.org>
3007
3008         relocatable-prog: Move AC_LIBOBJ invocations to module description.
3009         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
3010         here...
3011         * modules/relocatable-prog (configure.ac): ... to here.
3012
3013 2011-05-21  Bruno Haible  <bruno@clisp.org>
3014
3015         regex: Move AC_LIBOBJ invocations to module description.
3016         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
3017         invocations from here...
3018         * modules/regex (configure.ac): ... to here.
3019
3020 2011-05-21  Bruno Haible  <bruno@clisp.org>
3021
3022         realloc-*: Move AC_LIBOBJ invocations to module description.
3023         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
3024         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
3025         AC_LIBOBJ invocations from here...
3026         * modules/realloc-gnu (configure.ac): ... to here.
3027         * modules/realloc-posix (configure.ac): ... and here.
3028
3029 2011-05-21  Bruno Haible  <bruno@clisp.org>
3030
3031         readutmp: Move AC_LIBOBJ invocations to module description.
3032         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
3033         * modules/readutmp (configure.ac): ... to here.
3034
3035 2011-05-21  Bruno Haible  <bruno@clisp.org>
3036
3037         readlinkat: Move AC_LIBOBJ invocations to module description.
3038         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
3039         here...
3040         * modules/readlinkat (configure.ac): ... to here.
3041
3042 2011-05-21  Bruno Haible  <bruno@clisp.org>
3043
3044         readlink: Move AC_LIBOBJ invocations to module description.
3045         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
3046         gl_PREREQ_READLINK invocations from here...
3047         * modules/readlink (configure.ac): ... to here.
3048
3049 2011-05-21  Bruno Haible  <bruno@clisp.org>
3050
3051         readline: Move AC_LIBOBJ invocations to module description.
3052         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
3053         gl_PREREQ_READLINE invocations from here...
3054         * modules/readline (configure.ac): ... to here.
3055
3056 2011-05-21  Bruno Haible  <bruno@clisp.org>
3057
3058         read: Move AC_LIBOBJ invocations to module description.
3059         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
3060         * modules/read (configure.ac): ... to here.
3061
3062 2011-05-21  Bruno Haible  <bruno@clisp.org>
3063
3064         rawmemchr: Move AC_LIBOBJ invocations to module description.
3065         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
3066         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
3067         from here...
3068         * modules/rawmemchr (configure.ac): ... to here.
3069
3070 2011-05-21  Bruno Haible  <bruno@clisp.org>
3071
3072         random_r: Move AC_LIBOBJ invocations to module description.
3073         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
3074         gl_PREREQ_RANDOM_R invocations from here...
3075         * modules/random_r (configure.ac): ... to here.
3076
3077 2011-05-21  Bruno Haible  <bruno@clisp.org>
3078
3079         pwrite: Move AC_LIBOBJ invocations to module description.
3080         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
3081         * modules/pwrite (configure.ac): ... to here.
3082
3083 2011-05-21  Bruno Haible  <bruno@clisp.org>
3084
3085         putenv: Move AC_LIBOBJ invocations to module description.
3086         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
3087         * modules/putenv (configure.ac): ... to here.
3088
3089 2011-05-21  Bruno Haible  <bruno@clisp.org>
3090
3091         login_tty: Move AC_LIBOBJ invocations to module description.
3092         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
3093         * modules/login_tty (configure.ac): ... to here.
3094
3095 2011-05-21  Bruno Haible  <bruno@clisp.org>
3096
3097         openpty: Move AC_LIBOBJ invocations to module description.
3098         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
3099         * modules/openpty (configure.ac): ... to here.
3100
3101 2011-05-21  Bruno Haible  <bruno@clisp.org>
3102
3103         forkpty: Move AC_LIBOBJ invocations to module description.
3104         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
3105         * modules/forkpty (configure.ac): ... to here.
3106
3107 2011-05-21  Bruno Haible  <bruno@clisp.org>
3108
3109         ptsname: Move AC_LIBOBJ invocations to module description.
3110         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
3111         invocations from here...
3112         * modules/ptsname (configure.ac): ... to here.
3113
3114 2011-05-21  Bruno Haible  <bruno@clisp.org>
3115
3116         pread: Move AC_LIBOBJ invocations to module description.
3117         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
3118         * modules/pread (configure.ac): ... to here.
3119
3120 2011-05-21  Bruno Haible  <bruno@clisp.org>
3121
3122         posix_spawn*: Move AC_LIBOBJ invocations to module description.
3123         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
3124         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
3125         * modules/posix_spawn (configure.ac): ... to here.
3126         * modules/posix_spawnp (configure.ac): ... and here.
3127
3128 2011-05-21  Bruno Haible  <bruno@clisp.org>
3129
3130         popen: Move AC_LIBOBJ invocations to module description.
3131         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
3132         invocations from here...
3133         * modules/popen (configure.ac): ... to here.
3134
3135 2011-05-21  Bruno Haible  <bruno@clisp.org>
3136
3137         poll: Move AC_LIBOBJ invocations to module description.
3138         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
3139         invocations from here...
3140         * modules/poll (configure.ac): ... to here.
3141
3142 2011-05-21  Bruno Haible  <bruno@clisp.org>
3143
3144         pipe-posix: Move AC_LIBOBJ invocations to module description.
3145         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
3146         * modules/pipe-posix (configure.ac): ... to here.
3147
3148 2011-05-21  Bruno Haible  <bruno@clisp.org>
3149
3150         openat: Respect rules for use of AC_LIBOBJ.
3151         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
3152         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
3153         * modules/openat (configure.ac): ... to here.
3154
3155 2011-05-21  Bruno Haible  <bruno@clisp.org>
3156
3157         obstack-printf*: Move AC_LIBOBJ invocations to module description.
3158         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
3159         invocation from here...
3160         * modules/obstack-printf (configure.ac): ... to here.
3161         * modules/obstack-printf-posix (configure.ac): ... and here.
3162
3163 2011-05-21  Bruno Haible  <bruno@clisp.org>
3164
3165         nl_langinfo: Move AC_LIBOBJ invocations to module description.
3166         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
3167         from here...
3168         * modules/nl_langinfo (configure.ac): ... to here.
3169
3170 2011-05-21  Bruno Haible  <bruno@clisp.org>
3171
3172         nanosleep: Move AC_LIBOBJ invocations to module description.
3173         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
3174         gl_PREREQ_NANOSLEEP invocations from here...
3175         * modules/nanosleep (configure.ac): ... to here.
3176
3177 2011-05-21  Bruno Haible  <bruno@clisp.org>
3178
3179         mountlist: Move AC_LIBOBJ invocations to module description.
3180         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
3181         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
3182         * modules/mountlist (configure.ac): ... to here.
3183
3184 2011-05-21  Bruno Haible  <bruno@clisp.org>
3185
3186         mktime: Respect rules for use of AC_LIBOBJ.
3187         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
3188         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
3189         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
3190         (gl_FUNC_MKTIME_INTERNAL): ... and here...
3191         * modules/mktime (configure.ac): ... to here.
3192         * modules/mktime-internal (configure.ac): ... and here.
3193         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
3194
3195 2011-05-21  Bruno Haible  <bruno@clisp.org>
3196
3197         mkstemps: Move AC_LIBOBJ invocations to module description.
3198         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
3199         here...
3200         * modules/mkstemps (configure.ac): ... to here.
3201
3202 2011-05-21  Bruno Haible  <bruno@clisp.org>
3203
3204         mkstemp: Move AC_LIBOBJ invocations to module description.
3205         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
3206         gl_PREREQ_MKSTEMP invocations from here...
3207         * modules/mkstemp (configure.ac): ... to here.
3208
3209 2011-05-21  Bruno Haible  <bruno@clisp.org>
3210
3211         mkostemps: Move AC_LIBOBJ invocations to module description.
3212         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
3213         here...
3214         * modules/mkostemps (configure.ac): ... to here.
3215
3216 2011-05-21  Bruno Haible  <bruno@clisp.org>
3217
3218         mkostemp: Move AC_LIBOBJ invocations to module description.
3219         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
3220         gl_PREREQ_MKOSTEMP invocations from here...
3221         * modules/mkostemp (configure.ac): ... to here.
3222
3223 2011-05-21  Bruno Haible  <bruno@clisp.org>
3224
3225         mknod: Move AC_LIBOBJ invocations to module description.
3226         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
3227         * modules/mknod (configure.ac): ... to here.
3228
3229 2011-05-21  Bruno Haible  <bruno@clisp.org>
3230
3231         mkfifoat: Move AC_LIBOBJ invocations to module description.
3232         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
3233         here...
3234         * modules/mkfifoat (configure.ac): ... to here.
3235
3236 2011-05-21  Bruno Haible  <bruno@clisp.org>
3237
3238         mkfifo: Respect rules for use of AC_LIBOBJ.
3239         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
3240         here...
3241         * modules/mkfifo (configure.ac): ... to here.
3242
3243 2011-05-21  Bruno Haible  <bruno@clisp.org>
3244
3245         mkdtemp: Move AC_LIBOBJ invocations to module description.
3246         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
3247         invocations from here...
3248         * modules/mkdtemp (configure.ac): ... to here.
3249
3250 2011-05-21  Bruno Haible  <bruno@clisp.org>
3251
3252         mkdir: Move AC_LIBOBJ invocations to module description.
3253         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
3254         * modules/mkdir (configure.ac): ... to here.
3255
3256 2011-05-21  Bruno Haible  <bruno@clisp.org>
3257
3258         memset: Move AC_LIBOBJ invocations to module description.
3259         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
3260         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
3261         here...
3262         * modules/memset (configure.ac): ... to here.
3263
3264 2011-05-21  Bruno Haible  <bruno@clisp.org>
3265
3266         memrchr: Move AC_LIBOBJ invocations to module description.
3267         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
3268         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
3269         here...
3270         * modules/memrchr (configure.ac): ... to here.
3271
3272 2011-05-21  Bruno Haible  <bruno@clisp.org>
3273
3274         mempcpy: Move AC_LIBOBJ invocations to module description.
3275         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
3276         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
3277         here...
3278         * modules/mempcpy (configure.ac): ... to here.
3279
3280 2011-05-21  Bruno Haible  <bruno@clisp.org>
3281
3282         memmove: Move AC_LIBOBJ invocations to module description.
3283         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
3284         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
3285         here...
3286         * modules/memmove (configure.ac): ... to here.
3287
3288 2011-05-21  Bruno Haible  <bruno@clisp.org>
3289
3290         memmem*: Move AC_LIBOBJ invocations to module description.
3291         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
3292         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
3293         here...
3294         (gl_FUNC_MEMMEM): ... and here...
3295         * modules/memmem-simple (configure.ac): ... to here.
3296         * modules/memmem (configure.ac): ... and here.
3297
3298 2011-05-21  Bruno Haible  <bruno@clisp.org>
3299
3300         memcpy: Move AC_LIBOBJ invocations to module description.
3301         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
3302         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
3303         here...
3304         * modules/memcpy (configure.ac): ... to here.
3305
3306 2011-05-21  Bruno Haible  <bruno@clisp.org>
3307
3308         memcmp: Simplify autoconf macro.
3309         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
3310         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
3311         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
3312
3313 2011-05-21  Bruno Haible  <bruno@clisp.org>
3314
3315         memcmp: Move AC_LIBOBJ invocations to module description.
3316         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
3317         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
3318         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
3319         * modules/memcmp (configure.ac): ... to here.
3320         (Depends-on): Update conditions.
3321
3322 2011-05-21  Bruno Haible  <bruno@clisp.org>
3323
3324         memchr: Respect rules for use of AC_LIBOBJ.
3325         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
3326         invocations from here...
3327         * modules/memchr (configure.ac): ... to here.
3328
3329 2011-05-21  Bruno Haible  <bruno@clisp.org>
3330
3331         mbtowc: Move AC_LIBOBJ invocations to module description.
3332         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
3333         invocations from here...
3334         * modules/mbtowc (configure.ac): ... to here.
3335
3336 2011-05-21  Bruno Haible  <bruno@clisp.org>
3337
3338         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
3339         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
3340         gl_PREREQ_MBSRTOWCS invocations from here...
3341         * modules/mbsrtowcs (configure.ac): ... to here.
3342
3343 2011-05-21  Bruno Haible  <bruno@clisp.org>
3344
3345         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
3346         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
3347         gl_PREREQ_MBSNRTOWCS invocations from here...
3348         * modules/mbsnrtowcs (configure.ac): ... to here.
3349
3350 2011-05-21  Bruno Haible  <bruno@clisp.org>
3351
3352         mbsinit: Move AC_LIBOBJ invocations to module description.
3353         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
3354         invocations from here...
3355         * modules/mbsinit (configure.ac): ... to here.
3356
3357 2011-05-21  Bruno Haible  <bruno@clisp.org>
3358
3359         mbrlen: Move AC_LIBOBJ invocations to module description.
3360         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
3361         invocations from here...
3362         * modules/mbrlen (configure.ac): ... to here.
3363
3364 2011-05-21  Bruno Haible  <bruno@clisp.org>
3365
3366         mbrtowc: Respect rules for use of AC_LIBOBJ.
3367         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
3368         invocations from here...
3369         * modules/mbrtowc (configure.ac): ... to here.
3370
3371 2011-05-21  Bruno Haible  <bruno@clisp.org>
3372
3373         malloc-*: Move AC_LIBOBJ invocations to module description.
3374         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
3375         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
3376         AC_LIBOBJ invocations from here...
3377         * modules/malloc-gnu (configure.ac): ... to here.
3378         * modules/malloc-posix (configure.ac): ... and here.
3379
3380 2011-05-21  Bruno Haible  <bruno@clisp.org>
3381
3382         lstat, openat: Respect rules for use of AC_LIBOBJ.
3383         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
3384         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
3385         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
3386         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
3387         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
3388         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
3389         here.
3390         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
3391
3392 2011-05-21  Bruno Haible  <bruno@clisp.org>
3393
3394         lseek: Move AC_LIBOBJ invocations to module description.
3395         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
3396         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
3397         * modules/lseek (configure.ac): ... to here.
3398
3399 2011-05-21  Bruno Haible  <bruno@clisp.org>
3400
3401         linkat: Move AC_LIBOBJ invocations to module description.
3402         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
3403         here...
3404         * modules/linkat (configure.ac): ... to here.
3405
3406 2011-05-21  Bruno Haible  <bruno@clisp.org>
3407
3408         link: Respect rules for use of AC_LIBOBJ.
3409         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
3410         * modules/link (configure.ac): ... to here.
3411
3412 2011-05-21  Bruno Haible  <bruno@clisp.org>
3413
3414         lchown: Move AC_LIBOBJ invocations to module description.
3415         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
3416         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
3417         * modules/lchown (configure.ac): ... to here.
3418
3419 2011-05-21  Bruno Haible  <bruno@clisp.org>
3420
3421         iswctype: Move AC_LIBOBJ invocations to module description.
3422         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
3423         here...
3424         * modules/iswctype (configure.ac): ... to here.
3425
3426 2011-05-21  Bruno Haible  <bruno@clisp.org>
3427
3428         iswblank: Move AC_LIBOBJ invocations to module description.
3429         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
3430         here...
3431         * modules/iswblank (configure.ac): ... to here.
3432
3433 2011-05-21  Bruno Haible  <bruno@clisp.org>
3434
3435         atanl: Move AC_LIBOBJ invocations to module description.
3436         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
3437         * modules/atanl (configure.ac): ... to here.
3438
3439 2011-05-21  Bruno Haible  <bruno@clisp.org>
3440
3441         acosl: Move AC_LIBOBJ invocations to module description.
3442         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
3443         * modules/acosl (configure.ac): ... to here.
3444
3445 2011-05-21  Bruno Haible  <bruno@clisp.org>
3446
3447         asinl: Respect rules for use of AC_LIBOBJ.
3448         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
3449         * modules/asinl (configure.ac): ... to here.
3450
3451 2011-05-21  Bruno Haible  <bruno@clisp.org>
3452
3453         tanl: Move AC_LIBOBJ invocations to module description.
3454         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
3455         * modules/tanl (configure.ac): ... to here.
3456
3457 2011-05-21  Bruno Haible  <bruno@clisp.org>
3458
3459         cosl: Move AC_LIBOBJ invocations to module description.
3460         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
3461         * modules/cosl (configure.ac): ... to here.
3462
3463 2011-05-21  Bruno Haible  <bruno@clisp.org>
3464
3465         sinl: Move AC_LIBOBJ invocations to module description.
3466         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
3467         * modules/sinl (configure.ac): ... to here.
3468
3469 2011-05-21  Bruno Haible  <bruno@clisp.org>
3470
3471         logl: Move AC_LIBOBJ invocations to module description.
3472         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
3473         * modules/logl (configure.ac): ... to here.
3474
3475 2011-05-21  Bruno Haible  <bruno@clisp.org>
3476
3477         expl: Move AC_LIBOBJ invocations to module description.
3478         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
3479         * modules/expl (configure.ac): ... to here.
3480
3481 2011-05-21  Bruno Haible  <bruno@clisp.org>
3482
3483         roundl: Move AC_LIBOBJ invocations to module description.
3484         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
3485         * modules/roundl (configure.ac): ... to here.
3486
3487 2011-05-21  Bruno Haible  <bruno@clisp.org>
3488
3489         round: Move AC_LIBOBJ invocations to module description.
3490         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
3491         * modules/round (configure.ac): ... to here.
3492
3493 2011-05-21  Bruno Haible  <bruno@clisp.org>
3494
3495         roundf: Move AC_LIBOBJ invocations to module description.
3496         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
3497         * modules/roundf (configure.ac): ... to here.
3498
3499 2011-05-21  Bruno Haible  <bruno@clisp.org>
3500
3501         truncl: Move AC_LIBOBJ invocations to module description.
3502         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
3503         * modules/truncl (configure.ac): ... to here.
3504
3505 2011-05-21  Bruno Haible  <bruno@clisp.org>
3506
3507         trunc: Move AC_LIBOBJ invocations to module description.
3508         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
3509         * modules/trunc (configure.ac): ... to here.
3510
3511 2011-05-21  Bruno Haible  <bruno@clisp.org>
3512
3513         truncf: Move AC_LIBOBJ invocations to module description.
3514         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
3515         * modules/truncf (configure.ac): ... to here.
3516
3517 2011-05-21  Bruno Haible  <bruno@clisp.org>
3518
3519         ceill: Move AC_LIBOBJ invocations to module description.
3520         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
3521         * modules/ceill (configure.ac): ... to here.
3522
3523 2011-05-21  Bruno Haible  <bruno@clisp.org>
3524
3525         ceil: Move AC_LIBOBJ invocations to module description.
3526         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
3527         * modules/ceil (configure.ac): ... to here.
3528
3529 2011-05-21  Bruno Haible  <bruno@clisp.org>
3530
3531         ceilf: Move AC_LIBOBJ invocations to module description.
3532         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
3533         * modules/ceilf (configure.ac): ... to here.
3534
3535 2011-05-21  Bruno Haible  <bruno@clisp.org>
3536
3537         floorl: Respect rules for use of AC_LIBOBJ.
3538         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
3539         * modules/floorl (configure.ac): ... to here.
3540
3541 2011-05-21  Bruno Haible  <bruno@clisp.org>
3542
3543         floor: Respect rules for use of AC_LIBOBJ.
3544         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
3545         * modules/floor (configure.ac): ... to here.
3546
3547 2011-05-21  Bruno Haible  <bruno@clisp.org>
3548
3549         floorf: Move AC_LIBOBJ invocations to module description.
3550         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
3551         * modules/floorf (configure.ac): ... to here.
3552
3553 2011-05-20  Bruno Haible  <bruno@clisp.org>
3554
3555         sqrtl: Respect rules for use of AC_LIBOBJ.
3556         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
3557         * modules/sqrtl (configure.ac): ... to here.
3558
3559 2011-05-20  Bruno Haible  <bruno@clisp.org>
3560
3561         ldexpl: Respect rules for use of AC_LIBOBJ.
3562         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
3563         * modules/ldexpl (configure.ac): ... to here.
3564
3565 2011-05-20  Bruno Haible  <bruno@clisp.org>
3566
3567         frexpl*: Respect rules for use of AC_LIBOBJ.
3568         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
3569         invocation from here...
3570         * modules/frexpl (configure.ac): ... to here.
3571         * modules/frexpl-nolibm (configure.ac): ... and here.
3572
3573 2011-05-20  Bruno Haible  <bruno@clisp.org>
3574
3575         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
3576         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
3577         invocation from here...
3578         * modules/frexp (configure.ac): ... to here.
3579         * modules/frexp-nolibm (configure.ac): ... and here.
3580
3581 2011-05-20  Bruno Haible  <bruno@clisp.org>
3582
3583         isnan: Respect rules for use of AC_LIBOBJ.
3584         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
3585         invocations here.
3586         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
3587         REPLACE_ISNAN.
3588         * modules/isnand (configure.ac): Likewise.
3589         * modules/isnanl (configure.ac): Likewise.
3590
3591 2011-05-20  Bruno Haible  <bruno@clisp.org>
3592
3593         isnanl*: Respect rules for use of AC_LIBOBJ.
3594         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
3595         invocation from here...
3596         * modules/isnanl (configure.ac): ... to here.
3597         * modules/isnanl-nolibm (configure.ac): ... and here.
3598
3599 2011-05-20  Bruno Haible  <bruno@clisp.org>
3600
3601         isnand*: Move AC_LIBOBJ invocations to module description.
3602         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
3603         invocation from here...
3604         * modules/isnand (configure.ac): ... to here.
3605         * modules/isnand-nolibm (configure.ac): ... and here.
3606
3607 2011-05-20  Bruno Haible  <bruno@clisp.org>
3608
3609         isnanf*: Move AC_LIBOBJ invocations to module description.
3610         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
3611         invocation from here...
3612         * modules/isnanf (configure.ac): ... to here.
3613         * modules/isnanf-nolibm (configure.ac): ... and here.
3614
3615 2011-05-20  Bruno Haible  <bruno@clisp.org>
3616
3617         isnan*: Separate the AC_LIBOBJ invocations.
3618         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
3619         AC_LIBOBJ invocation.
3620         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
3621         here.
3622         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
3623         AC_LIBOBJ invocation.
3624         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
3625         here.
3626         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
3627         AC_LIBOBJ invocation.
3628         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
3629         here.
3630         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
3631
3632 2011-05-08  Bruno Haible  <bruno@clisp.org>
3633
3634         isinf: Move AC_LIBOBJ invocations to module description.
3635         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
3636         * modules/isinf (configure.ac): ... to here.
3637
3638 2011-05-08  Bruno Haible  <bruno@clisp.org>
3639
3640         isfinite: Move AC_LIBOBJ invocations to module description.
3641         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
3642         * modules/isfinite (configure.ac): ... to here.
3643
3644 2011-05-08  Bruno Haible  <bruno@clisp.org>
3645
3646         isblank: Move AC_LIBOBJ invocations to module description.
3647         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
3648         here...
3649         * modules/isblank (configure.ac): ... to here.
3650
3651 2011-05-08  Bruno Haible  <bruno@clisp.org>
3652
3653         isapipe: Move AC_LIBOBJ invocations to module description.
3654         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
3655         gl_PREREQ_ISAPIPE invocations from here...
3656         * modules/isapipe (configure.ac): ... to here.
3657         (Depends-on): Update condition.
3658
3659 2011-05-08  Bruno Haible  <bruno@clisp.org>
3660
3661         ioctl: Move AC_LIBOBJ invocations to module description.
3662         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
3663         invocations from here...
3664         * modules/ioctl (configure.ac): ... to here.
3665         (Depends-on): Update condition.
3666
3667 2011-05-08  Bruno Haible  <bruno@clisp.org>
3668
3669         imaxdiv: Move AC_LIBOBJ invocations to module description.
3670         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
3671         invocations from here...
3672         * modules/imaxdiv (configure.ac): ... to here.
3673
3674 2011-05-08  Bruno Haible  <bruno@clisp.org>
3675
3676         imaxabs: Move AC_LIBOBJ invocations to module description.
3677         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
3678         invocations from here...
3679         * modules/imaxabs (configure.ac): ... to here.
3680
3681 2011-05-08  Bruno Haible  <bruno@clisp.org>
3682
3683         getaddrinfo: Move AC_LIBOBJ invocations to module description.
3684         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
3685         AC_LIBOBJ invocations from here...
3686         * modules/getaddrinfo (configure.ac): ... to here.
3687         (Depends-on): Add conditions.
3688
3689 2011-05-08  Bruno Haible  <bruno@clisp.org>
3690
3691         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
3692         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
3693         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
3694         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
3695         (gl_PREREQ_INET_PTON): ... from here.
3696         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
3697         gl_PREREQ_INET_PTON here.
3698         (Depends-on): Update condition.
3699
3700 2011-05-08  Bruno Haible  <bruno@clisp.org>
3701
3702         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
3703         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
3704         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
3705         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
3706         (gl_PREREQ_INET_NTOP): ... from here.
3707         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
3708         gl_PREREQ_INET_NTOP here.
3709         (Depends-on): Update condition.
3710
3711 2011-05-08  Bruno Haible  <bruno@clisp.org>
3712
3713         iconv_open: Move AC_LIBOBJ invocations to module description.
3714         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
3715         AC_LIBOBJ invocations from here...
3716         * modules/iconv_open (configure.ac): ... to here.
3717
3718 2011-05-08  Bruno Haible  <bruno@clisp.org>
3719
3720         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
3721         If module 'iconv_open' is among the main modules and module
3722         'iconv_open-utf' is among the tests dependencies, then
3723         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
3724         return the special iconv_t values. Therefore iconv() and iconv_close()
3725         must support these special iconv_t values, already in lib, not only in
3726         tests.
3727         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
3728         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
3729         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
3730         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
3731         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
3732         (Depends-on): Add the dependencies of iconv_open-utf.
3733         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
3734         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
3735         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
3736
3737 2011-05-08  Bruno Haible  <bruno@clisp.org>
3738
3739         group-member: Move AC_LIBOBJ invocations to module description.
3740         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
3741         gl_PREREQ_GROUP_MEMBER invocations from here...
3742         * modules/group-member (configure.ac): ... to here.
3743
3744 2011-05-08  Bruno Haible  <bruno@clisp.org>
3745
3746         grantpt: Move AC_LIBOBJ invocations to module description.
3747         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
3748         invocations from here...
3749         * modules/grantpt (configure.ac): ... to here.
3750
3751 2011-05-08  Bruno Haible  <bruno@clisp.org>
3752
3753         glob: Move AC_LIBOBJ invocations to module description.
3754         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
3755         from here...
3756         * modules/glob (configure.ac): ... to here.
3757
3758 2011-05-08  Bruno Haible  <bruno@clisp.org>
3759
3760         getusershell: Move AC_LIBOBJ invocations to module description.
3761         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
3762         Move AC_LIBOBJ invocation from here...
3763         * modules/getusershell (configure.ac): ... to here.
3764         (Depends-on): Update condition.
3765
3766 2011-05-08  Bruno Haible  <bruno@clisp.org>
3767
3768         gettimeofday: Move AC_LIBOBJ invocations to module description.
3769         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
3770         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
3771         gl_PREREQ_GETTIMEOFDAY invocations from here...
3772         * modules/gettimeofday (configure.ac): ... to here.
3773
3774 2011-05-08  Bruno Haible  <bruno@clisp.org>
3775
3776         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
3777         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
3778         just gl_FUNC_TZSET.
3779         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
3780         (gl_FUNC_TZSET_CLOBBER): Remove actions.
3781         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
3782         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
3783
3784 2011-05-08  Bruno Haible  <bruno@clisp.org>
3785
3786         getsubopt: Move AC_LIBOBJ invocations to module description.
3787         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
3788         gl_PREREQ_GETSUBOPT invocations from here...
3789         * modules/getsubopt (configure.ac): ... to here.
3790
3791 2011-05-08  Bruno Haible  <bruno@clisp.org>
3792
3793         getpass-gnu: Move AC_LIBOBJ invocations to module description.
3794         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
3795         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
3796         * modules/getpass-gnu (configure.ac): ... to here.
3797
3798 2011-05-08  Bruno Haible  <bruno@clisp.org>
3799
3800         getpass: Move AC_LIBOBJ invocations to module description.
3801         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
3802         gl_PREREQ_GETPASS invocations from here...
3803         * modules/getpass (configure.ac): ... to here.
3804
3805 2011-05-08  Bruno Haible  <bruno@clisp.org>
3806
3807         getpagesize: Move AC_LIBOBJ invocations to module description.
3808         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
3809         from here...
3810         * modules/getpagesize (configure.ac): ... to here.
3811
3812 2011-05-08  Bruno Haible  <bruno@clisp.org>
3813
3814         getopt: Move AC_LIBOBJ invocations to module description.
3815         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
3816         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
3817         invocations from here...
3818         * modules/getopt-gnu (configure.ac): ... to here.
3819         * modules/getopt-posix (configure.ac): ... and here.
3820         (Depends-on): Update condition.
3821
3822 2011-05-08  Bruno Haible  <bruno@clisp.org>
3823
3824         getopt, argp: Respect rules for use of AC_LIBOBJ.
3825         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
3826         (gl_REPLACE_GETOPT_ALWAYS): New macro.
3827         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
3828         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
3829
3830 2011-05-08  Bruno Haible  <bruno@clisp.org>
3831
3832         getlogin_r: Move AC_LIBOBJ invocations to module description.
3833         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
3834         gl_PREREQ_GETLOGIN_R invocations from here...
3835         * modules/getlogin_r (configure.ac): ... to here.
3836
3837 2011-05-08  Bruno Haible  <bruno@clisp.org>
3838
3839         getlogin: Move AC_LIBOBJ invocations to module description.
3840         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
3841         here...
3842         * modules/getlogin (configure.ac): ... to here.
3843
3844 2011-05-08  Bruno Haible  <bruno@clisp.org>
3845
3846         getloadavg: Move AC_LIBOBJ invocations to module description.
3847         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
3848         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
3849         * modules/getloadavg (configure.ac): ... to here.
3850
3851 2011-05-08  Bruno Haible  <bruno@clisp.org>
3852
3853         gethrxtime: Move AC_LIBOBJ invocations to module description.
3854         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
3855         LIB_GETHRXTIME from here...
3856         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
3857         invocations from here...
3858         * modules/gethrxtime (configure.ac): ... to here.
3859
3860 2011-05-08  Bruno Haible  <bruno@clisp.org>
3861
3862         gethostname: Move AC_LIBOBJ invocations to module description.
3863         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
3864         gl_PREREQ_GETHOSTNAME invocations from here...
3865         * modules/gethostname (configure.ac): ... to here.
3866
3867 2011-05-08  Bruno Haible  <bruno@clisp.org>
3868
3869         getgroups: Move AC_LIBOBJ invocations to module description.
3870         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
3871         here...
3872         * modules/getgroups (configure.ac): ... to here.
3873
3874 2011-05-08  Bruno Haible  <bruno@clisp.org>
3875
3876         getdtablesize: Move AC_LIBOBJ invocations to module description.
3877         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
3878         invocation from here...
3879         * modules/getdtablesize (configure.ac): ... to here.
3880
3881 2011-05-08  Bruno Haible  <bruno@clisp.org>
3882
3883         getdomainname: Move AC_LIBOBJ invocations to module description.
3884         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
3885         gl_PREREQ_GETDOMAINNAME invocations from here...
3886         * modules/getdomainname (configure.ac): ... to here.
3887
3888 2011-05-08  Bruno Haible  <bruno@clisp.org>
3889
3890         getline: Move AC_LIBOBJ invocations to module description.
3891         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
3892         invocations from here...
3893         * modules/getline (configure.ac): ... to here.
3894
3895 2011-05-08  Bruno Haible  <bruno@clisp.org>
3896
3897         getline: Simplify.
3898         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
3899         It's already handled through the module dependency.
3900
3901 2011-05-08  Bruno Haible  <bruno@clisp.org>
3902
3903         getdelim: Move AC_LIBOBJ invocations to module description.
3904         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
3905         and gl_PREREQ_GETDELIM invocations from here...
3906         * modules/getdelim (configure.ac): ... to here.
3907         (Depends-on): Fix condition.
3908
3909 2011-05-08  Bruno Haible  <bruno@clisp.org>
3910
3911         getcwd: Move AC_LIBOBJ invocations to module description.
3912         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
3913         invocations from here...
3914         * modules/getcwd (configure.ac): ... to here.
3915
3916 2011-05-08  Bruno Haible  <bruno@clisp.org>
3917
3918         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
3919         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
3920         here...
3921         * modules/getcwd-lgpl (configure.ac): ... to here.
3922
3923 2011-05-07  Bruno Haible  <bruno@clisp.org>
3924
3925         crypto/gc: Move AC_LIBOBJ invocations to module description.
3926         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
3927         * modules/crypto/gc (configure.ac): ... to here.
3928
3929 2011-05-07  Bruno Haible  <bruno@clisp.org>
3930
3931         fwriting: Move AC_LIBOBJ invocations to module description.
3932         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
3933         here...
3934         * modules/fwriting (configure.ac): ... to here.
3935
3936 2011-05-07  Bruno Haible  <bruno@clisp.org>
3937
3938         fwritable: Move AC_LIBOBJ invocations to module description.
3939         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
3940         here...
3941         * modules/fwritable (configure.ac): ... to here.
3942
3943 2011-05-07  Bruno Haible  <bruno@clisp.org>
3944
3945         futimens: Move AC_LIBOBJ invocations to module description.
3946         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
3947         here...
3948         * modules/futimens (configure.ac): ... to here.
3949
3950 2011-05-07  Bruno Haible  <bruno@clisp.org>
3951
3952         ftruncate: Move AC_LIBOBJ invocations to module description.
3953         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
3954         gl_PREREQ_FTRUNCATE invocations from here...
3955         * modules/ftruncate (configure.ac): ... to here.
3956
3957 2011-05-07  Bruno Haible  <bruno@clisp.org>
3958
3959         fsync: Move AC_LIBOBJ invocations to module description.
3960         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
3961         invocations from here...
3962         * modules/fsync (configure.ac): ... to here.
3963
3964 2011-05-07  Bruno Haible  <bruno@clisp.org>
3965
3966         fsusage: Move AC_LIBOBJ invocations to module description.
3967         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
3968         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
3969         * modules/fsusage (configure.ac): ... to here.
3970
3971 2011-05-07  Bruno Haible  <bruno@clisp.org>
3972
3973         freopen: Move AC_LIBOBJ invocations to module description.
3974         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
3975         invocations from here...
3976         * modules/freopen (configure.ac): ... to here.
3977
3978 2011-05-07  Bruno Haible  <bruno@clisp.org>
3979
3980         free: Move AC_LIBOBJ invocations to module description.
3981         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
3982         invocations from here...
3983         * modules/free (configure.ac): ... to here.
3984
3985 2011-05-07  Bruno Haible  <bruno@clisp.org>
3986
3987         freadable: Move AC_LIBOBJ invocations to module description.
3988         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
3989         here...
3990         * modules/freadable (configure.ac): ... to here.
3991
3992 2011-05-07  Bruno Haible  <bruno@clisp.org>
3993
3994         fpurge: Move AC_LIBOBJ invocations to module description.
3995         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
3996         invocations from here...
3997         * modules/fpurge (configure.ac): ... to here.
3998
3999 2011-05-07  Bruno Haible  <bruno@clisp.org>
4000
4001         fpending: Move AC_LIBOBJ invocations to module description.
4002         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
4003         gl_FUNC_FPENDING.
4004         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
4005         invocations from here...
4006         * modules/fpending (configure.ac): ... to here.
4007
4008 2011-05-07  Bruno Haible  <bruno@clisp.org>
4009
4010         fopen: Move AC_LIBOBJ invocations to module description.
4011         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
4012         invocations from here...
4013         * modules/fopen (configure.ac): ... to here.
4014
4015 2011-05-07  Bruno Haible  <bruno@clisp.org>
4016
4017         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
4018         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
4019         gl_FUNC_FNMATCH_POSIX.
4020         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
4021         invocations from here...
4022         * modules/fnmatch (configure.ac): ... to here.
4023         * modules/fnmatch-gnu (configure.ac): ... and here.
4024
4025 2011-05-07  Bruno Haible  <bruno@clisp.org>
4026
4027         flock: Move AC_LIBOBJ invocations to module description.
4028         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
4029         invocations from here...
4030         * modules/flock (configure.ac): ... to here.
4031
4032 2011-05-07  Bruno Haible  <bruno@clisp.org>
4033
4034         fileblocks: Move AC_LIBOBJ invocations to module description.
4035         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
4036         gl_PREREQ_FILEBLOCKS invocations from here...
4037         * modules/fileblocks (configure.ac): ... to here.
4038
4039 2011-05-06  Bruno Haible  <bruno@clisp.org>
4040
4041         fflush: Move AC_LIBOBJ invocations to module description.
4042         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
4043         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
4044         invocations from here...
4045         * modules/fflush (configure.ac): ... to here.
4046
4047 2011-05-06  Bruno Haible  <bruno@clisp.org>
4048
4049         fdopendir: Move AC_LIBOBJ invocations to module description.
4050         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
4051         here...
4052         * modules/fdopendir (configure.ac): ... to here.
4053         (Depends-on): Improve conditions.
4054
4055 2011-05-06  Bruno Haible  <bruno@clisp.org>
4056
4057         _Exit: Move AC_LIBOBJ invocations to module description.
4058         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
4059         invocations from here...
4060         * modules/_Exit (configure.ac): ... to here.
4061
4062 2011-05-21  Bruno Haible  <bruno@clisp.org>
4063
4064         euidaccess: Respect rules for use of AC_LIBOBJ.
4065         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
4066         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
4067         from here...
4068         * modules/euidaccess (configure.ac): ... to here.
4069
4070 2011-05-06  Bruno Haible  <bruno@clisp.org>
4071
4072         error: Move AC_LIBOBJ invocations to module description.
4073         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
4074         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
4075         invocations from here...
4076         * modules/error (configure.ac): ... to here.
4077
4078 2011-05-06  Bruno Haible  <bruno@clisp.org>
4079
4080         duplocale: Move AC_LIBOBJ invocations to module description.
4081         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
4082         gl_PREREQ_DUPLOCALE invocations from here...
4083         * modules/duplocale (configure.ac): ... to here.
4084
4085 2011-05-05  Bruno Haible  <bruno@clisp.org>
4086
4087         dirfd: Move AC_LIBOBJ invocations to module description.
4088         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
4089         gl_FUNC_DIRFD.
4090         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
4091         here...
4092         * modules/dirfd (configure.ac): ... to here.
4093         (Depends-on): Fix condition.
4094
4095 2011-05-05  Bruno Haible  <bruno@clisp.org>
4096
4097         chown: Respect rules for use of AC_LIBOBJ.
4098         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
4099         * modules/chown (configure.ac): ... to here.
4100
4101 2011-05-05  Bruno Haible  <bruno@clisp.org>
4102
4103         chdir-long: Move AC_LIBOBJ invocations to module description.
4104         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
4105         gl_PREREQ_CHDIR_LONG invocations from here...
4106         * modules/chdir-long (configure.ac): ... to here.
4107
4108 2011-05-05  Bruno Haible  <bruno@clisp.org>
4109
4110         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
4111         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
4112         from here...
4113         * modules/canonicalize-lgpl (configure.ac): ... to here.
4114
4115 2011-05-05  Bruno Haible  <bruno@clisp.org>
4116
4117         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
4118         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
4119         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
4120         REPLACE_CALLOC.
4121         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
4122         * modules/calloc-gnu (configure.ac): Likewise.
4123
4124 2011-05-05  Bruno Haible  <bruno@clisp.org>
4125
4126         btowc: Move AC_LIBOBJ invocations to module description.
4127         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
4128         invocations from here...
4129         * modules/btowc (configure.ac): ... to here.
4130
4131 2011-05-21  Bruno Haible  <bruno@clisp.org>
4132
4133         atexit: Move AC_LIBOBJ invocations to module description.
4134         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
4135         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
4136         here...
4137         * modules/atexit (configure.ac): ... to here.
4138
4139 2011-05-05  Bruno Haible  <bruno@clisp.org>
4140
4141         atoll: Move AC_LIBOBJ invocations to module description.
4142         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
4143         invocations from here...
4144         * modules/atoll (configure.ac): ... to here.
4145
4146 2011-05-05  Bruno Haible  <bruno@clisp.org>
4147
4148         argz: Move AC_LIBOBJ invocations to module description.
4149         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
4150         * modules/argz (configure.ac): ... to here.
4151
4152 2011-05-05  Bruno Haible  <bruno@clisp.org>
4153
4154         alphasort: Move AC_LIBOBJ invocations to module description.
4155         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
4156         gl_PREREQ_ALPHASORT invocations from here...
4157         * modules/alphasort (configure.ac): ... to here.
4158
4159 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
4160
4161         verify: new macro verify_expr; verify_true deprecated
4162         * NEWS: Mention this.
4163         * doc/verify.texi (Compile-time Assertions): Document this.
4164         * lib/verify.h (verify_true): Deprecate.
4165         (verify_expr): New macro.
4166         * tests/test-verify.c (function): Test verify_expr.
4167
4168 2011-06-14  Jim Meyering  <meyering@redhat.com>
4169
4170         init.sh: give more portable redirection-related advice in a comment
4171         * tests/init.sh (stderr_fileno_): Update the advice in comments.
4172         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
4173         for lots of discussion.  Stefano Lattarini suggested the solution
4174         of putting "9>&2" after the command.  Reported by Bruno Haible.
4175
4176 2011-06-13  Bruno Haible  <bruno@clisp.org>
4177
4178         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
4179         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
4180         'none'.
4181
4182 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
4183
4184         ftoastr: use strtof only if HAVE_STRTOF
4185         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
4186         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
4187         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
4188         * modules/ftoastr (configure.ac): Check for strtof.
4189
4190 2011-06-13  Bruno Haible  <bruno@clisp.org>
4191
4192         gnulib-tool: Addendum to 2011-06-08 commit.
4193         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
4194         and --witness-c-macro have been given, augment AM_CPPFLAGS.
4195
4196 2011-06-13  Bruno Haible  <bruno@clisp.org>
4197
4198         fseeko: Provide a non-inline replacement of fseek().
4199         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
4200         * modules/fseeko (Depends-on): Add fseek.
4201         * modules/fseek (License): Change to LGPLv2+.
4202
4203 2011-06-13  Bruno Haible  <bruno@clisp.org>
4204
4205         ftello: Provide a non-inline replacement of ftell().
4206         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
4207         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
4208         not have ftello() (such as on mingw).
4209         * modules/ftello (Depends-on): Add ftell.
4210         * modules/ftell (License): Change to LGPLv2+.
4211
4212 2011-05-07  Bruno Haible  <bruno@clisp.org>
4213
4214         ftell: Move AC_LIBOBJ invocations to module description.
4215         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
4216         * modules/ftell (configure.ac): ... to here.
4217
4218 2011-05-07  Bruno Haible  <bruno@clisp.org>
4219
4220         ftello: Respect rules for use of AC_LIBOBJ.
4221         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
4222         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
4223         here...
4224         * modules/ftello (configure.ac): ... to here.
4225
4226 2011-05-07  Bruno Haible  <bruno@clisp.org>
4227
4228         fseeko: Simplify.
4229         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
4230         (gl_FUNC_FSEEKO): Inline it here.
4231
4232 2011-05-07  Bruno Haible  <bruno@clisp.org>
4233
4234         fseek: Move AC_LIBOBJ invocations to module description.
4235         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
4236         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
4237         * modules/fseek (configure.ac): ... to here.
4238
4239 2011-05-07  Bruno Haible  <bruno@clisp.org>
4240
4241         fseek: Respect rules for use of AC_LIBOBJ.
4242         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
4243         here...
4244         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
4245
4246 2011-05-07  Bruno Haible  <bruno@clisp.org>
4247
4248         fseeko: Respect rules for use of AC_LIBOBJ.
4249         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
4250         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
4251         here...
4252         * modules/fseeko (configure.ac): ... to here.
4253
4254 2011-06-13  Bruno Haible  <bruno@clisp.org>
4255
4256         gnulib-tool: Allow comments in the 'Depends-on' section.
4257         * doc/gnulib.texi (Module description): Mention comment syntax in the
4258         Depends-on section.
4259         * gnulib-tool (func_get_dependencies): Filter out comment lines.
4260
4261 2011-06-13  Bruno Haible  <bruno@clisp.org>
4262
4263         file-set.h: guard __attibute__ use, now that it's not always defined
4264         * lib/file-set.h (record_file): Use __attribute__ only with compiler
4265         versions that support it.  This fixes a coreutils build failure with
4266         the vendor cc on HP-UX 11.31.
4267
4268 2011-06-12  Bruno Haible  <bruno@clisp.org>
4269
4270         acl: Add support for HP-UX >= 11.11 JFS ACLs.
4271         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
4272         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
4273         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
4274         (acl, aclsort): New declarations.
4275         (aclv_nontrivial): New declaration.
4276         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
4277         (file_has_acl): Read also the second kind of HP-UX ACLs.
4278         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
4279         kind of HP-UX ACLs if the first kind fails.
4280         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
4281         second kind of HP-UX ACLs.
4282         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
4283         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
4284         agree.
4285         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
4286         hpuxjfs.
4287         Handle hpuxjfs.
4288         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
4289         hpuxjfs.
4290         Handle hpuxjfs.
4291         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
4292         (func_test_same_acls): Use both lsacl and getacl.
4293         Handle hpuxjfs.
4294         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
4295         (func_test_same_acls): Use both lsacl and getacl.
4296         Handle hpuxjfs.
4297
4298 2011-06-12  Bruno Haible  <bruno@clisp.org>
4299
4300         acl: Complete the 2010-08-10 fix.
4301         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
4302         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
4303         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
4304         explicitly.
4305         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
4306         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
4307
4308 2011-06-12  Bruno Haible  <bruno@clisp.org>
4309
4310         spawn-pipe tests: Comments.
4311         * tests/test-spawn-pipe-child.c (main): Update comment.
4312         Reported by James Youngman <jay@gnu.org>.
4313
4314 2011-06-11  James Youngman  <jay@gnu.org>
4315
4316         New module 'stat-size'.
4317         * modules/stat-size: New module.  Provides macros for accessing
4318         file size information in instances of struct stat.  Depends on the
4319         fileblocks module because it calls st_blocks.
4320         * lib/stat-size.h: New file, adapted from coreutils' system.h.
4321         * doc/gnulib.texi: Include stat-size.texi.
4322         * doc/stat-size.texi: Documentation for this module.
4323         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
4324         * m4/fileblocks.m4: Mention that stat-size depends on the call to
4325         AC_STRUCT_ST_BLOCKS.
4326
4327 2011-06-09  Bruno Haible  <bruno@clisp.org>
4328
4329         thread: Support pthreads-win32.
4330         * lib/glthread/thread.h (gl_thread_self): Define differently on
4331         pthreads-win32.
4332         (gl_null_thread): New declaration.
4333         (gl_thread_self_pointer): New macro.
4334         * lib/glthread/thread.c (gl_null_thread): New constant.
4335         * tests/test-lock.c: Use gl_thread_self_pointer instead of
4336         gl_thread_self.
4337         * tests/test-tls.c: Likewise.
4338         Suggested by Paul Eggert. Reported by Eric Blake.
4339
4340 2011-06-09  Bruno Haible  <bruno@clisp.org>
4341
4342         thread: Fix confusion between NULL and 0.
4343         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
4344         Reported by Paul Eggert.
4345
4346 2011-06-09  Bruno Haible  <bruno@clisp.org>
4347
4348         spawn-pipe tests: Avoid test failure on HP-UX 11.
4349         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
4350         is closed.
4351
4352 2011-06-09  Bruno Haible  <bruno@clisp.org>
4353
4354         acl tests: Fix compilation error on HP-UX 11.
4355         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
4356
4357 2011-06-09  Bruno Haible  <bruno@clisp.org>
4358
4359         rmdir: Avoid test failure on HP-UX 10.20.
4360         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
4361         EEXIST.
4362
4363 2011-06-08  Eric Blake  <eblake@redhat.com>
4364
4365         perror: fix test on mingw
4366         * modules/perror-tests (Depends-on): Add dup2.
4367
4368         strerror_r-posix: fix on MacOS
4369         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
4370         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
4371         logic bug.
4372         * lib/strerror_r.c (strerror_r): Fix the bug.
4373         * lib/strerror.c (strerror): Likewise.
4374         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
4375         problem.
4376         * doc/posix-functions/strerror.texi (strerror): Likewise.
4377         * doc/posix-functions/perror.texi (perror): Likewise.
4378         * tests/test-strerror.c (main): Enhance test.
4379         * tests/test-strerror_r.c (main): Likewise.
4380
4381 2011-06-08  Bruno Haible  <bruno@clisp.org>
4382
4383         gnulib-tool: Better isolation between different gnulib-tool invocations.
4384         * gnulib-tool: New option --witness-c-macro.
4385         (witness_c_macro): New variable.
4386         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
4387         AM_CPPFLAGS define it as a C macro.
4388         (func_emit_tests_Makefile_am): Likewise.
4389         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
4390         read it from there.
4391         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
4392         m4_define, not AC_DEFUN.
4393         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
4394         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
4395         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
4396         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
4397         s|...|...|, to substitute the values of the GNULIB_* module indicator
4398         variables.
4399         * modules/dirent (Makefile.am): Likewise.
4400         * modules/fcntl-h (Makefile.am): Likewise.
4401         * modules/iconv-h (Makefile.am): Likewise.
4402         * modules/langinfo (Makefile.am): Likewise.
4403         * modules/locale (Makefile.am): Likewise.
4404         * modules/math (Makefile.am): Likewise.
4405         * modules/netdb (Makefile.am): Likewise.
4406         * modules/poll-h (Makefile.am): Likewise.
4407         * modules/pty (Makefile.am): Likewise.
4408         * modules/search (Makefile.am): Likewise.
4409         * modules/signal (Makefile.am): Likewise.
4410         * modules/spawn (Makefile.am): Likewise.
4411         * modules/stdio (Makefile.am): Likewise.
4412         * modules/stdlib (Makefile.am): Likewise.
4413         * modules/string (Makefile.am): Likewise.
4414         * modules/sys_ioctl (Makefile.am): Likewise.
4415         * modules/sys_select (Makefile.am): Likewise.
4416         * modules/sys_socket (Makefile.am): Likewise.
4417         * modules/sys_stat (Makefile.am): Likewise.
4418         * modules/sys_times (Makefile.am): Likewise.
4419         * modules/sys_utsname (Makefile.am): Likewise.
4420         * modules/sys_wait (Makefile.am): Likewise.
4421         * modules/termios (Makefile.am): Likewise.
4422         * modules/time (Makefile.am): Likewise.
4423         * modules/unistd (Makefile.am): Likewise.
4424         * modules/wchar (Makefile.am): Likewise.
4425
4426 2011-06-08  Eric Blake  <eblake@redhat.com>
4427
4428         strerror: simplify replacement
4429         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
4430         * modules/strerror (configure.ac): No prereqs needed here...
4431         * modules/strerror-override (configure.ac): ...but this needs it.
4432         (Files): Add file for needed prereq macro.
4433
4434 2011-06-08  Bruno Haible  <bruno@clisp.org>
4435
4436         strerror_r-posix: Tweaks.
4437         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
4438         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
4439         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
4440         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
4441         (gl_FUNC_STRERROR_R): ... to here.
4442         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
4443
4444 2011-06-07  Eric Blake  <eblake@redhat.com>
4445
4446         perror: document fixed bugs
4447         * doc/posix-functions/perror.texi (perror): Document recent
4448         patches.
4449
4450 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
4451
4452         stat-time: get_stat_birthtime failure is better-defined
4453         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
4454         return a timestamp whose tv_sec and tv_nsec values are both -1.
4455         Previously, the spec said only that the tv_nsec value was negative.
4456         This upward-compatible change simplifies GNU tar a bit.
4457
4458 2011-06-07  Eric Blake  <eblake@redhat.com>
4459
4460         strerror_r-posix: work around cygwin 1.7.9
4461         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
4462         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
4463         bug without replacing strerror_r.
4464         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
4465         strerror_r is buggy, but without requiring strerror_r compilation.
4466         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
4467
4468         test-perror: relax test to ignore cygwin bug
4469         * tests/test-perror2.c (main): Relax test on requiring detection
4470         of stream errors, and use unbuffered stream.
4471         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
4472         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
4473         * doc/posix-functions/fputc.texi (fputc): Likewise.
4474         * doc/posix-functions/fputs.texi (fputs): Likewise.
4475         * doc/posix-functions/fputws.texi (fputws): Likewise.
4476         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
4477         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
4478         * doc/posix-functions/getopt.texi (getopt): Likewise.
4479         * doc/posix-functions/perror.texi (perror): Likewise.
4480         * doc/posix-functions/printf.texi (printf): Likewise.
4481         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
4482         * doc/posix-functions/psignal.texi (psignal): Likewise.
4483         * doc/posix-functions/putc.texi (putc): Likewise.
4484         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
4485         Likewise.
4486         * doc/posix-functions/putchar.texi (putchar): Likewise.
4487         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
4488         Likewise.
4489         * doc/posix-functions/puts.texi (puts): Likewise.
4490         * doc/posix-functions/putwc.texi (putwc): Likewise.
4491         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
4492         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
4493         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
4494         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
4495         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
4496         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
4497         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
4498         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
4499
4500 2011-05-22  Bruno Haible  <bruno@clisp.org>
4501
4502         strerror: Move AC_LIBOBJ invocations to module description.
4503         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
4504         gl_PREREQ_STRERROR invocations from here...
4505         * modules/strerror (configure.ac): ... to here.
4506
4507 2011-05-21  Bruno Haible  <bruno@clisp.org>
4508
4509         perror: Use common idiom.
4510         * modules/perror (configure.ac): Reorder statements.
4511
4512 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
4513
4514         tests: fix usage message in 'mktempd_'
4515         * tests/init.sh (mktempd_): In the usage message, use literal
4516         'mktempd_', not '$ME' (which is even undefined), as the name of
4517         the subroutine.
4518
4519 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
4520
4521         tests init: new function 'fatal_', for hard errors
4522         Before this patch, the only way offered by tests/init.sh to
4523         properly signal a hard error was the `framework_failure_'
4524         function.  But the error message issued by that function,
4525         as its name would suggest, refers to a set-up failure in the
4526         testsuite, while hard errors can obviously also be due to
4527         other reasons.  The best way to fix this inconsistency is to
4528         introduce a new function with a more general error message.
4529         * tests/init.sh (fatal_): New function.
4530
4531 2011-06-06  Eric Blake  <eblake@redhat.com>
4532
4533         canonicalize-lgpl: use common idiom
4534         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
4535         over newer POSIX -Rf.
4536         Reported by Bruno Haible.
4537
4538         canonicalize-lgpl: work around AIX realpath bug
4539         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
4540         * doc/posix-functions/realpath.texi (realpath): Document it.
4541         Reported by Bruno Haible.
4542
4543         strerror: work around FreeBSD bug
4544         * lib/strerror.c (strerror): Special case 0.
4545         Reported by Bruno Haible.
4546
4547         strerror-override: avoid bloating errno module
4548         * modules/errno (Files, configure.ac): Move replacement strings...
4549         * modules/strerror-override: ...to new module.
4550         * modules/strerror (Depends-on): Add strerror-override.
4551         * modules/strerror_r-posix (Depends-on): Likewise.
4552         * MODULES.html.sh: Document new module.
4553         Reported by Bruno Haible.
4554
4555 2011-06-06  Bruno Haible  <bruno@clisp.org>
4556
4557         spawn-pipe tests: Rename program.
4558         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
4559         * tests/test-spawn-pipe-child.c: Update comment.
4560         * tests/test-spawn-pipe.sh: Update.
4561         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
4562
4563         spawn-pipe tests: Link the child program only against libc.
4564         * tests/test-spawn-pipe-child.c: New file, extracted from
4565         tests/test-spawn-pipe.c.
4566         (main): Expect only one argument.
4567         (is_open): New function, copied from tests/test-pipe.c.
4568         * tests/test-spawn-pipe.c: Don't include <errno.h>.
4569         (child_main): Remove function.
4570         (test_pipe): Pass only one argument to the child program.
4571         (main): Remove child process code. Expect the child program's name as
4572         first argument.
4573         * tests/test-spawn-pipe.sh: Pass the child program's name as first
4574         argument.
4575         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
4576         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
4577         test-spawn-pipe-child against no libraries.
4578
4579 2011-06-06  Bruno Haible  <bruno@clisp.org>
4580
4581         careadlinkat: Avoid mismatch between ssize_t and int.
4582         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
4583         * lib/careadlinkat.c (careadlinkatcwd): Define always.
4584
4585 2011-06-06  Jim Meyering  <meyering@redhat.com>
4586
4587         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
4588         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
4589         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
4590
4591 2011-06-05  Bruno Haible  <bruno@clisp.org>
4592
4593         ansi-c++-opt: Interoperability with libtool.
4594         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
4595         set the variable to "no", not to ":".
4596         * NEWS: Mention the change.
4597
4598 2011-06-05  Bruno Haible  <bruno@clisp.org>
4599
4600         acl: Fix test failure on AIX 7.
4601         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
4602         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
4603
4604 2011-06-05  Bruno Haible  <bruno@clisp.org>
4605
4606         pipe-filter-ii: Fix test failure on AIX and IRIX.
4607         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
4608         with EAGAIN, retry with a smaller buffer size.
4609
4610 2011-06-05  Bruno Haible  <bruno@clisp.org>
4611
4612         localename: Fix link dependencies.
4613         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
4614         * modules/localename-tests (Makefile.am): Link test-localename with
4615         $(LIBTHREAD).
4616
4617 2011-06-05  Bruno Haible  <bruno@clisp.org>
4618
4619         error: Avoid gcc warning.
4620         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
4621
4622 2011-06-05  Bruno Haible  <bruno@clisp.org>
4623
4624         unsetenv: Avoid gcc warning.
4625         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
4626
4627 2011-06-05  Bruno Haible  <bruno@clisp.org>
4628
4629         setenv: Avoid gcc warning.
4630         * lib/setenv.c (setenv): Provide declaration if system lacks it.
4631
4632 2011-06-05  Bruno Haible  <bruno@clisp.org>
4633
4634         sys_select: Ensure memset is declared also on AIX 7.
4635         * lib/sys_select.in.h: Include <string.h> also on AIX.
4636         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
4637         self-contained also on AIX 7.1.
4638
4639 2011-06-04  Jim Meyering  <meyering@redhat.com>
4640
4641         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
4642         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
4643         function name, "error".
4644         (_gl_translatable_diag_func_re): New configurable variable.
4645
4646 2011-06-04  Bruno Haible  <bruno@clisp.org>
4647
4648         getopt: Avoid gcc warning.
4649         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
4650
4651 2011-06-04  Bruno Haible  <bruno@clisp.org>
4652
4653         strerror_r: Fix comments.
4654         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
4655         commit.
4656
4657 2011-06-04  Bruno Haible  <bruno@clisp.org>
4658
4659         perror: Fix compilation error.
4660         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
4661         Undefine fprintf, not sprintf.
4662         * modules/perror (Depends-on): Remove intprops, verify.
4663
4664 2011-06-04  Bruno Haible  <bruno@clisp.org>
4665
4666         setlocale: Enable replacement on Cygwin 1.5.
4667         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
4668         Cygwin 1.5.x.
4669         * doc/posix-functions/setlocale.texi: Mention that the problem with the
4670         LC_CTYPE category also exists on Cygwin 1.5.x.
4671
4672 2011-06-04  Bruno Haible  <bruno@clisp.org>
4673
4674         strerror-override: Don't disable symbol renamings.
4675         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
4676         * lib/strerror-override.c: Include config.h.
4677         (strerror_override): Don't undefine.
4678
4679 2011-06-03  Bruno Haible  <bruno@clisp.org>
4680
4681         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
4682         * lib/localename.h: Update copyright header.
4683         * lib/localename.c: Likewise.
4684         * lib/relocatable.h: Likewise.
4685         * lib/relocatable.c: Likewise.
4686
4687 2011-06-02  Bruno Haible  <bruno@clisp.org>
4688
4689         doc: Fix a module name.
4690         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
4691
4692 2011-06-02  Bruno Haible  <bruno@clisp.org>
4693
4694         pipe2: Remove dependency on 'nonblocking' module.
4695         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
4696         O_NONBLOCK is defined by gnulib.
4697         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
4698         is zero.
4699         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
4700         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
4701         defined by gnulib.
4702         (get_nonblocking_flag): New function.
4703         (main): Test O_NONBLOCK flag only if it is nonzero.
4704         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
4705
4706 2011-06-03  Jim Meyering  <meyering@redhat.com>
4707
4708         maint: three new prohibit-header-without-use rules
4709         Prohibit use of cloexec.h, posixver.h, same.h without use.
4710         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
4711         (sc_prohibit_posixver_without_use): Likewise.
4712         (sc_prohibit_same_without_use): Likewise.
4713
4714 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
4715
4716         allocator: 'die' routine is now given requested size
4717         * lib/allocator.h (struct allocator.die): New size arg.
4718         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
4719         If the actual problem is an ssize_t limitation, not a size_t or
4720         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
4721
4722 2011-06-01  Eric Blake  <eblake@redhat.com>
4723
4724         strerror: drop strerror_r dependency
4725         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
4726         * lib/strerror-override.c (strerror_override): ...to new file.
4727         * lib/strerror-override.h: Add prototype.
4728         * lib/strerror-impl.h: Delete.
4729         * lib/strerror.c (strerror): New implementation.
4730         * modules/errno (Files): Add new files.
4731         (configure.ac): Compile new file as appropriate.
4732         * modules/strerror (Files): Drop unused file.
4733         (Depends-on): Drop strerror_r-posix.
4734         * MODULES.html.sh: Document strerror_r-posix.
4735         Requested by Sam Steingold.
4736
4737         perror: call strerror_r directly
4738         * modules/perror (Files): Drop strerror-impl.h.
4739         * lib/perror.c (perror): Use our own stack buffer, rather than
4740         calling a wrapper that uses static storage.
4741         * doc/posix-functions/perror.texi (perror): Document a limitation
4742         of our replacement.
4743
4744         strerror_r: fix includes for FreeBSD
4745         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
4746         since we use abort on some platforms.
4747         Reported by Matthias Bolte.
4748
4749 2011-05-31  Bruno Haible  <bruno@clisp.org>
4750
4751         Fix link errors in tests: openat-die uses gettext-h.
4752         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
4753         against $(LIBINTL).
4754         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
4755         against $(LIBINTL).
4756         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
4757         $(LIBINTL).
4758         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
4759         against $(LIBINTL).
4760         * modules/linkat-tests (Makefile.am): Link test-linkat against
4761         $(LIBINTL).
4762         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
4763         $(LIBINTL).
4764         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
4765         against $(LIBINTL).
4766         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
4767         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
4768         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
4769         $(LIBINTL).
4770         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
4771         $(LIBINTL).
4772         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
4773         $(LIBINTL).
4774         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4775
4776 2011-05-31  Bruno Haible  <bruno@clisp.org>
4777
4778         Fix link errors in tests: wait-process uses gettext-h.
4779         * modules/nonblocking-pipe-tests (Makefile.am): Set
4780         test_nonblocking_pipe_main_LDADD.
4781         * modules/nonblocking-socket-tests (Makefile.am): Link
4782         test-nonblocking-socket-main against $(LIBINTL).
4783         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4784
4785 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
4786
4787         assert-h: work around 'verify' incompatibility
4788         * lib/verify.h: Use @...@ directives, not ifdef.
4789         * modules/assert-h (assert.h): Implement the directives.
4790         (assert.h): Substitute the symbol-prefix more consistently.
4791
4792 2011-05-29  Jim Meyering  <meyering@redhat.com>
4793
4794         trim: remove three superfluous assignments
4795         * lib/trim.c (trim2): Remove three superfluous assignments
4796         and correct brace positioning.
4797
4798 2011-05-29  Bruno Haible  <bruno@clisp.org>
4799
4800         wctype-h: Avoid namespace pollution on Solaris 2.6.
4801         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
4802         identifiers.
4803         * doc/posix-headers/wctype.texi: Mention the problem.
4804         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4805
4806 2011-05-28  Jim Meyering  <meyering@redhat.com>
4807
4808         parse-datetime.y: accommodate -Wstrict-overflow
4809         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
4810         placate -Wstrict-overflow.
4811
4812         trim: avoid a warning from -O2 -Wstrict-overflow
4813         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
4814
4815 2011-05-29  Bruno Haible  <bruno@clisp.org>
4816
4817         gnulib-tool: Fix bug in yesterday's commit.
4818         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
4819         twice.
4820
4821 2011-05-29  Bruno Haible  <bruno@clisp.org>
4822
4823         Allow multiple gnulib generated include files to be combined.
4824         * gnulib-tool (func_compute_include_guard_prefix): New function.
4825         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
4826         ${gl_include_guard_prefix} references.
4827         (func_import, func_create_testdir): Invoke
4828         func_compute_include_guard_prefix.
4829         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
4830         * lib/ctype.in.h: Likewise.
4831         * lib/dirent.in.h: Likewise.
4832         * lib/errno.in.h: Likewise.
4833         * lib/fcntl.in.h: Likewise.
4834         * lib/float.in.h: Likewise.
4835         * lib/getopt.in.h: Likewise.
4836         * lib/iconv.in.h: Likewise.
4837         * lib/langinfo.in.h: Likewise.
4838         * lib/locale.in.h: Likewise.
4839         * lib/math.in.h: Likewise.
4840         * lib/netdb.in.h: Likewise.
4841         * lib/netinet_in.in.h: Likewise.
4842         * lib/poll.in.h: Likewise.
4843         * lib/pthread.in.h: Likewise.
4844         * lib/pty.in.h: Likewise.
4845         * lib/sched.in.h: Likewise.
4846         * lib/se-selinux.in.h: Likewise.
4847         * lib/search.in.h: Likewise.
4848         * lib/signal.in.h: Likewise.
4849         * lib/spawn.in.h: Likewise.
4850         * lib/stdarg.in.h: Likewise.
4851         * lib/stddef.in.h: Likewise.
4852         * lib/stdint.in.h: Likewise.
4853         * lib/stdio.in.h: Likewise.
4854         * lib/stdlib.in.h: Likewise.
4855         * lib/string.in.h: Likewise.
4856         * lib/strings.in.h: Likewise.
4857         * lib/sys_file.in.h: Likewise.
4858         * lib/sys_ioctl.in.h: Likewise.
4859         * lib/sys_select.in.h: Likewise.
4860         * lib/sys_socket.in.h: Likewise.
4861         * lib/sys_stat.in.h: Likewise.
4862         * lib/sys_time.in.h: Likewise.
4863         * lib/sys_times.in.h: Likewise.
4864         * lib/sys_uio.in.h: Likewise.
4865         * lib/sys_utsname.in.h: Likewise.
4866         * lib/sys_wait.in.h: Likewise.
4867         * lib/sysexits.in.h: Likewise.
4868         * lib/termios.in.h: Likewise.
4869         * lib/time.in.h: Likewise.
4870         * lib/unistd.in.h: Likewise.
4871         * lib/wchar.in.h: Likewise.
4872         * lib/wctype.in.h: Likewise.
4873         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
4874         * modules/ctype (Makefile.am): Likewise.
4875         * modules/dirent (Makefile.am): Likewise.
4876         * modules/errno (Makefile.am): Likewise.
4877         * modules/fcntl-h (Makefile.am): Likewise.
4878         * modules/float (Makefile.am): Likewise.
4879         * modules/getopt-posix (Makefile.am): Likewise.
4880         * modules/iconv-h (Makefile.am): Likewise.
4881         * modules/langinfo (Makefile.am): Likewise.
4882         * modules/locale (Makefile.am): Likewise.
4883         * modules/math (Makefile.am): Likewise.
4884         * modules/netdb (Makefile.am): Likewise.
4885         * modules/netinet_in (Makefile.am): Likewise.
4886         * modules/poll-h (Makefile.am): Likewise.
4887         * modules/pthread (Makefile.am): Likewise.
4888         * modules/pty (Makefile.am): Likewise.
4889         * modules/sched (Makefile.am): Likewise.
4890         * modules/search (Makefile.am): Likewise.
4891         * modules/selinux-h (Makefile.am): Likewise.
4892         * modules/signal (Makefile.am): Likewise.
4893         * modules/spawn (Makefile.am): Likewise.
4894         * modules/stdarg (Makefile.am): Likewise.
4895         * modules/stddef (Makefile.am): Likewise.
4896         * modules/stdint (Makefile.am): Likewise.
4897         * modules/stdio (Makefile.am): Likewise.
4898         * modules/stdlib (Makefile.am): Likewise.
4899         * modules/string (Makefile.am): Likewise.
4900         * modules/strings (Makefile.am): Likewise.
4901         * modules/sys_file (Makefile.am): Likewise.
4902         * modules/sys_ioctl (Makefile.am): Likewise.
4903         * modules/sys_select (Makefile.am): Likewise.
4904         * modules/sys_socket (Makefile.am): Likewise.
4905         * modules/sys_stat (Makefile.am): Likewise.
4906         * modules/sys_time (Makefile.am): Likewise.
4907         * modules/sys_times (Makefile.am): Likewise.
4908         * modules/sys_uio (Makefile.am): Likewise.
4909         * modules/sys_utsname (Makefile.am): Likewise.
4910         * modules/sys_wait (Makefile.am): Likewise.
4911         * modules/sysexits (Makefile.am): Likewise.
4912         * modules/termios (Makefile.am): Likewise.
4913         * modules/time (Makefile.am): Likewise.
4914         * modules/unistd (Makefile.am): Likewise.
4915         * modules/wchar (Makefile.am): Likewise.
4916         * modules/wctype-h (Makefile.am): Likewise.
4917         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
4918
4919 2011-05-29  Bruno Haible  <bruno@clisp.org>
4920
4921         assert-h: Allow multiple gnulib generated replacements to coexist.
4922         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
4923
4924 2011-05-29  Bruno Haible  <bruno@clisp.org>
4925
4926         argp: Allow coexistence with strerror_r-posix module.
4927         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
4928         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
4929         by gnulib's <string.h> replacement), assume it has the POSIX signature,
4930         not the glibc signature.
4931
4932 2011-05-28  Bruno Haible  <bruno@clisp.org>
4933
4934         gnulib-tool: Alternative structure of testdirs, similar to --import.
4935         * gnulib-tool: New option --single-configure.
4936         (func_usage): Document it.
4937         (single_configure): New variable.
4938         (func_modules_transitive_closure_separately,
4939         func_modules_transitive_closure_separately,
4940         func_determine_use_libtests, func_modules_add_dummy_separately,
4941         func_modules_to_filelist_separately): New functions, extracted from
4942         func_import.
4943         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
4944         (func_import): Use the new functions.
4945         (func_create_testdir): Set final_modules. Handle $single_configure =
4946         true case.
4947
4948 2011-05-28  Bruno Haible  <bruno@clisp.org>
4949
4950         getloadavg: Remove an unreliable safety check.
4951         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
4952         getloadavg.c is in place.
4953         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
4954         Reported by Sam Steingold <sds@gnu.org>.
4955
4956 2011-05-28  Bruno Haible  <bruno@clisp.org>
4957
4958         doc: Cleanup yet another file produced by texinfo.tex.
4959         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
4960
4961 2011-05-28  Bruno Haible  <bruno@clisp.org>
4962
4963         Finish the conditional dependencies mechanism.
4964         * gnulib-tool: New option --no-conditional-dependencies.
4965         (func_usage): Document it. Don't mark --conditional-dependencies as
4966         experimental.
4967         (cond_dependencies): The possible values can now be true, false, empty.
4968         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
4969         (func_import): Store setting in gnulib-cache.m4 and read it from there.
4970         * doc/gnulib-tool.texi (Conditional dependencies): New section.
4971
4972 2011-05-28  Bruno Haible  <bruno@clisp.org>
4973
4974         doc: Use a recent texinfo.tex.
4975         * doc/Makefile (tex_opts): New variable.
4976         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
4977
4978 2011-05-28  Jim Meyering  <meyering@redhat.com>
4979
4980         intprops.h: adjust comment to match code change
4981         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
4982         only once, it *may* have side effects.  Also fix an unrelated typo.
4983         (_GL_INT_SIGNED): Likewise.
4984
4985 2011-05-26  Simon Josefsson  <simon@josefsson.org>
4986
4987         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
4988
4989 2011-05-26  Bruno Haible  <bruno@clisp.org>
4990
4991         mbsrchr: Avoid collision with system function on Interix.
4992         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
4993         Reported by Markus Duft <mduft@gentoo.org>.
4994
4995 2011-05-15  James Youngman  <jay@gnu.org>
4996
4997         getopt: for ambiguous options, enumerate the possibilities.
4998         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
4999         the ambiguous options when an ambiguous prefix is given. This was
5000         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
5001         glibc change was
5002         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
5003
5004 2011-05-25  Eric Blake  <eblake@redhat.com>
5005
5006         getcwd: work around mingw bug
5007         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
5008         * doc/posix-functions/getcwd.texi (getcwd): Document it.
5009         Reported by Matthias Bolte.
5010
5011 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
5012
5013         test-intprops: disable -Wtype-limits diagnostics
5014         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
5015         diagnostics.  Otherwise, the integer overflow macros generate many
5016         diagnostics.  Reported by Jim Meyering in
5017         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
5018
5019         intprops: shorten, to pacify gcc -Woverlength-strings
5020         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
5021         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
5022         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
5023         likely to run afoul of C compiler limits for string constant lengths.
5024         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
5025
5026 2011-05-24  Eric Blake  <eblake@redhat.com>
5027
5028         docs: document recently fixed glibc printf bug
5029         * doc/posix-functions/fprintf.texi (fprintf): Document it.
5030         * doc/posix-functions/printf.texi (printf): Likewise.
5031         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
5032         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
5033
5034         closein-tests: convert to init.sh
5035         * modules/closein-tests (Files): Add init.sh
5036         * tests/test-closein.sh Use it.
5037
5038         yesno-tests: convert to init.sh
5039         * modules/yesno-tests (Files): Add init.sh.
5040         * tests/test-yesno.sh: Use it.
5041
5042         atexit-tests: ensure reliable exit status
5043         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
5044         Reported by Bruno Haible.
5045
5046 2011-05-24  Bruno Haible  <bruno@clisp.org>
5047
5048         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
5049         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
5050         gl_PREREQ_STRERROR_R invocations from here...
5051         * modules/strerror_r-posix (configure.ac): ... to here.
5052
5053 2011-05-24  Eric Blake  <eblake@redhat.com>
5054
5055         strerror_r: fix missing header
5056         * lib/strerror_r.c: Avoid compiler warning about snprintf.
5057
5058         strerror_r: fix AIX test failures
5059         * lib/strerror_r.c (strerror_r): Convert silent truncation to
5060         ERANGE failure.
5061
5062         strerror_r: fix Solaris test failures
5063         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
5064         failures.
5065         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
5066
5067         strerror_r: enforce POSIX recommendations
5068         * lib/strerror_r.c (safe_copy): New helper method.
5069         (strerror_r): Guarantee a non-empty string.
5070         * tests/test-strerror_r.c (main): Enhance tests to incorporate
5071         recent POSIX rulings and to match our strerror guarantees.
5072         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
5073
5074 2011-05-24  Jim Meyering  <meyering@redhat.com>
5075
5076         test-perror2.c: avoid warning about unused variable
5077         * tests/test-perror2.c (main): Remove declaration of unused "fp".
5078
5079 2011-05-24  Eric Blake  <eblake@redhat.com>
5080
5081         perror: avoid spurious test failure on HP-UX
5082         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
5083
5084         tests: fix logic bug in init.sh
5085         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
5086         shell.
5087
5088 2011-05-24  Jim Meyering  <meyering@redhat.com>
5089
5090         utimensat: do not reference an out-of-scope buffer
5091         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
5092         declared in an inner scope, yet "times" would be dereferenced outside
5093         the scope in which "ts" was valid.
5094         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
5095         of ts[2] "out/up", so that the use of aliased "times" (via
5096         "times = ts;") does not end up referencing an out-of-scope "ts"
5097
5098         opendir-safer.c: don't clobber errno; don't close negative FD
5099         * lib/opendir-safer.c (opendir_safer):
5100         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
5101         file descriptor, and more importantly, don't clobber the
5102         offending errno value with EINVAL.  Before, upon failure
5103         of dup_safer, we would pass the negative file descriptor to
5104         fdopendir, which would clobber errno.
5105
5106 2011-05-23  Bruno Haible  <bruno@clisp.org>
5107
5108         idcache: Fix module description.
5109         * modules/idcache (Include): Set to "idcache.h".
5110
5111 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5112
5113         gnulib-tool: fix portability problem with MacOS sed
5114         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
5115         before the "}".  Problem reported by Leo in
5116         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
5117         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
5118         sed_extract_condition1, sed_extract_condition2.
5119
5120 2011-05-23  Bruno Haible  <bruno@clisp.org>
5121
5122         hash: Simplify autoconf macro.
5123         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
5124
5125 2011-05-23  Bruno Haible  <bruno@clisp.org>
5126
5127         getugroups: Fix module description.
5128         * modules/getugroups (Include): Set to "getugroups.h".
5129
5130 2011-05-23  Bruno Haible  <bruno@clisp.org>
5131
5132         linkat: Simplify autoconf macro.
5133         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
5134
5135 2011-05-23  Bruno Haible  <bruno@clisp.org>
5136             Eric Blake  <eblake@redhat.com>
5137
5138         linkat, renameat: Update dependencies.
5139         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
5140         * modules/linkat (Depends-on): Likewise. Remove also readlink,
5141         symlinkat.
5142
5143 2011-05-23  Jim Meyering  <meyering@redhat.com>
5144
5145         maint.mk: more tight_scope improvements
5146         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
5147         (_gl_TS_headers): Define only in if-0'd block.
5148         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
5149         sometimes we must *not* use it.  Adjust uses accordingly.
5150         (sc_tight_scope): Use much simpler grep-based test to determine
5151         whether we skip this rule.
5152
5153         maint.mk: generalize/improve the tight-scope rule
5154         * top/maint.mk: Emit a warning when the test is skipped.
5155         (_gl_TS_dir): Add $(srcdir)/ prefix.
5156         (_gl_TS_function_match): Simplify, rather than trying
5157         to enumerate common types.  Otherwise, it would fail to match an
5158         "extern unsigned char const *" declaration in idutils.
5159         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
5160         a way to support use of that type of macro.
5161         (_gl_TS_var_match): Simplify regexp.
5162         (_gl_TS_obj_files): New configurable variable.
5163         (_gl_TS_headers): Likewise.
5164
5165 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
5166
5167         verify: fix bug when gnulib <assert.h> is also included
5168         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
5169         is defined, not if _GL_STATIC_ASSERT_H is not defined.
5170         Perhaps there's a better way, but this fixes the immediate problem.
5171         Problem reported by Bruno Haible in
5172         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
5173
5174 2011-05-22  Bruno Haible  <bruno@clisp.org>
5175
5176         xgetcwd: Simplify autoconf macro.
5177         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
5178
5179 2011-05-22  Bruno Haible  <bruno@clisp.org>
5180
5181         New module 'mktime-internal'.
5182         * modules/mktime-internal: New file.
5183         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
5184         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
5185         mktime_internal as a C macro if libc has __mktime_internal.
5186         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
5187         conditions.
5188         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
5189
5190 2011-05-22  Bruno Haible  <bruno@clisp.org>
5191
5192         timegm: Correct mktime replacement statements.
5193         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
5194         defining mktime as a C macro. This completes a 2009-07-28 commit.
5195
5196 2011-05-22  Bruno Haible  <bruno@clisp.org>
5197
5198         timegm: Simplify autoconf macro.
5199         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
5200
5201 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
5202
5203         clock-time: change to LGPLv2+.
5204         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
5205         BSD-like but we have no mark for that; this is good enough for now.
5206
5207 2011-05-21  Bruno Haible  <bruno@clisp.org>
5208
5209         strerror_r: Fix comments.
5210         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
5211
5212 2011-05-21  Bruno Haible  <bruno@clisp.org>
5213
5214         relocatable-prog-wrapper: Fix possible link error.
5215         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
5216         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
5217         (gl_FUNC_SETENV): ... to here.
5218         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
5219         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
5220
5221 2011-05-21  Bruno Haible  <bruno@clisp.org>
5222
5223         relocatable-prog-wrapper: Assume strerror() exists.
5224         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
5225         m4/strerror.m4.
5226         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
5227         * lib/relocwrapper.c: Remove mention of strerror module.
5228         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
5229         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
5230         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
5231         C macro.
5232
5233 2011-05-21  Bruno Haible  <bruno@clisp.org>
5234
5235         select: Simplify replacement idiom.
5236         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
5237         Win32 platforms.
5238         * lib/sys_select.in.h (select): Simplify accordingly.
5239         * modules/select (Depends-on): Likewise.
5240
5241 2011-05-21  Bruno Haible  <bruno@clisp.org>
5242
5243         mkdir-p: Simplify autoconf macro.
5244         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
5245         gl_FUNC_LCHOWN.
5246
5247 2011-05-21  Eric Blake  <eblake@redhat.com>
5248
5249         strerror_r: avoid clobbering strerror on cygwin
5250         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
5251         fall back instead to sys_errlist.
5252         * modules/strerror (configure.ac): Add witness.
5253         * tests/test-strerror_r.c (main): Enhance test.
5254         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
5255         * tests/test-perror2.c (main): Free memory before exit.
5256
5257 2011-05-21  Bruno Haible  <bruno@clisp.org>
5258
5259         mkdtemp: Use gnulib naming conventions.
5260         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
5261         * modules/mkdtemp (configure.ac): Update.
5262
5263 2011-05-20  Eric Blake  <eblake@redhat.com>
5264
5265         strerror_r: avoid corrupting errno on Solaris
5266         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
5267         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
5268
5269         strerror_r: avoid compiler warning
5270         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
5271
5272         strerror_r: simplify AIX code
5273         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
5274
5275         test-perror: avoid spurious failure on FreeBSD
5276         * modules/perror-tests (Depends-on): Add strerror, now that
5277         strerror_r no longer pulls it in.
5278
5279 2011-05-20  Bruno Haible  <bruno@clisp.org>
5280
5281         strerror_r-posix: Remove unused dependencies.
5282         * modules/strerror_r-posix (Depends-on): Remove strerror.
5283         Reported by Eric Blake.
5284
5285 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
5286
5287         intprops: remove assumption about A|B representation
5288         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
5289         is a valid integer if both A and B are.  Although this is true for
5290         all known practical hosts, the C standard doesn't guarantee it,
5291         and the code need not assume it.  Also, this change may work around
5292         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
5293         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
5294
5295 2011-05-20  Eric Blake  <eblake@redhat.com>
5296
5297         perror: work around FreeBSD bug
5298         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
5299         is broken.  Move AC_LIBOBJ...
5300         * modules/perror (configure.ac): Here.
5301         * doc/posix-functions/perror.texi (perror): Document this.
5302         * tests/test-perror2.c (main): Enhance test.
5303
5304         test-perror: check for strerror interactions
5305         * tests/macros.h (STREQ): Add macro.
5306         * modules/perror-tests (Files): Add second test.
5307         * tests/test-perror2.c (main): New file.
5308         * doc/posix-functions/perror.texi (perror): Document glibc bug.
5309
5310         test-perror: rewrite to use init script
5311         * modules/perror-tests (Files): Add init.sh.
5312         * tests/test-perror.sh: Use temporary directory.
5313
5314 2011-05-20  Jim Meyering  <meyering@redhat.com>
5315
5316         maint: replace misused "a" with "an"
5317         * doc/intprops.texi: "a integer"
5318         * doc/regex.texi: "a explanation"
5319         * lib/alignof.h: "a object"
5320         * lib/argmatch.h: "a explanation"
5321         * lib/argp-help.c: "a option" and "a OPTION_DOC"
5322         * lib/stdint.in.h: "a integer"
5323         * lib/userspec.c: "a owner"
5324         * doc/gnulib.texi: Fix "a idea", and reword.
5325
5326 2011-05-19  Jim Meyering  <meyering@redhat.com>
5327
5328         maint: correct misuse of "a" and "an"
5329         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
5330         * lib/argp-help.c: "an docum...": s/an/a/
5331         * lib/argp-parse.c: "An vector": s/An/A/
5332         * lib/execute.c: "an native": s/an/a/
5333         * lib/spawn-pipe.c: Likewise.
5334         * lib/gc.h: "an Gc_rc": s/an/a/
5335         * lib/unigbrk.in.h: "an grapheme": s/an/a/
5336         * lib/fts.c: "an stat.st_dev": s/an/a/
5337
5338 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
5339
5340         intprops-tests: work around HP-UX 11.23 cc bug with constants
5341         * tests/test-intprops.c (VERIFY): New macro.
5342         (main): Use it, instead of verify, to work around the compiler bug; see
5343         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
5344
5345         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
5346         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
5347         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
5348         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
5349         (_GL_REMAINDER_OVERFLOW): Use it.
5350
5351         intprops-tests: revert unsigned part of previous change
5352         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
5353         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
5354         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
5355         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
5356
5357 2011-05-19  Bruno Haible  <bruno@clisp.org>
5358
5359         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
5360         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
5361         strerror_r() returned without filling the buffer.
5362         Reported by Eric Blake.
5363
5364 2011-05-19  Eric Blake  <eblake@redhat.com>
5365
5366         strerror_r: guarantee unchanged errno
5367         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
5368         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
5369         failure.
5370         * tests/test-strerror_r.c (main): Enhance test.
5371
5372 2011-05-19  Bruno Haible  <bruno@clisp.org>
5373
5374         strerror_r: Reorder #if blocks.
5375         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
5376         for consistency with the previous commit.
5377
5378 2011-05-19  Bruno Haible  <bruno@clisp.org>
5379
5380         perror: Avoid clobbering the strerror buffer when possible.
5381         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
5382         * lib/strerror.c: Include it.
5383         * modules/strerror (Files): Add lib/strerror-impl.h.
5384         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
5385         (my_strerror): New function, defined through lib/strerror-impl.h.
5386         (perror): Use it instead of strerror.
5387         * modules/perror (Files): Add lib/strerror-impl.h.
5388         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
5389
5390 2011-05-19  Eric Blake  <eblake@redhat.com>
5391
5392         strerror_r: fix on newer cygwin
5393         * lib/strerror_r.c (strerror_r): Cygwin now has
5394         __xpg_strerror_r, use it.
5395
5396 2011-05-19  Bruno Haible  <bruno@clisp.org>
5397
5398         strerror_r: Avoid clobbering the strerror buffer when possible.
5399         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
5400         (sys_nerr, sys_errlist): New declarations.
5401         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
5402         HP-UX, native Win32, IRIX, and 32-bit Solaris.
5403         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
5404
5405 2011-05-19  Bruno Haible  <bruno@clisp.org>
5406
5407         strerror_r: Fix test failure on mingw.
5408         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
5409         EXTEND_STRERROR_R.
5410         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
5411         macros from errno.in.h instead.
5412
5413 2011-05-19  Eric Blake  <eblake@redhat.com>
5414
5415         strerror: relax test for Solaris
5416         * tests/test-strerror.c (main): Permit Solaris behavior.
5417         * tests/test-strerror_r.c (main): Likewise.
5418
5419         strerror: enforce POSIX ruling on strerror(0)
5420         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
5421         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
5422         * lib/strerror_r.c (rpl_strerror_r): Work around it.
5423         * doc/posix-functions/strerror.texi (strerror): Document it.
5424         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
5425         * tests/test-strerror.c (main): Strengthen test.
5426         * tests/test-strerror_r.c (main): Likewise.
5427
5428 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
5429
5430         intprop-tests: port to older and more-pedantic compilers
5431         * modules/intprops-tests (Files): Add tests/macros.h.
5432         * tests/test-intprops.c: Include macros.h.
5433         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
5434         it's no longer documented to expand to an integer constant expression.
5435         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
5436         argument is floating point, as it's no longer documented to expand
5437         to an integer constant expression in that case.
5438         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
5439         compiler bugs reported by Bruno Haible.  See
5440         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
5441         (U0, U1): New constants, to work around the same bugs.  Also,
5442         in tests, use e.g., "(unsigned int) 39" rather than "39u".
5443
5444         intprops: work around C compiler bugs
5445         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
5446         bug in Sun C 5.11 2010/08/13 and other compilers; see
5447         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
5448
5449         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
5450         * doc/intprops.texi (Integer Type Determination): Fix
5451         documentation for TYPE_IS_INTEGER: it returns an constant
5452         expression, not an integer constant expression.  Fix doc for
5453         TYPE_SIGNED: it returns an integer constant expression only if its
5454         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
5455         hardly worth documented that way....)
5456
5457 2011-05-18  Bruno Haible  <bruno@clisp.org>
5458
5459         strerror_r: Avoid clobbering the strerror buffer when possible.
5460         * lib/strerror_r.c (strerror_r): Merge the three implementations.
5461         Handle gnulib defined errno values here. When strerror() returns NULL
5462         or an empty string, return EINVAL.
5463         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
5464         gnulib defined errno values here.
5465         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
5466
5467 2011-05-18  Eric Blake  <eblake@redhat.com>
5468
5469         fnmatch: avoid compiler warning
5470         * lib/fnmatch_loop.c (FCT): Use correct type.
5471         Reported by Matthias Bolte.
5472
5473 2011-05-13  Jim Meyering  <meyering@redhat.com>
5474
5475         maint.mk: three new prohibit_<HDR>_without_use rules
5476         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
5477         (sc_prohibit_stdio-safer_without_use): Likewise.
5478         (sc_prohibit_xfreopen_without_use): Likewise.
5479
5480 2011-05-17  Jim Meyering  <meyering@redhat.com>
5481
5482         announce-gen: fail if the NEWS delta is empty
5483         If there's nothing noteworthy in NEWS, then either you forgot
5484         or you shouldn't be releasing.
5485         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
5486
5487 2011-05-17  Pádraig Brady <P@draigBrady.com>
5488
5489         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
5490         reserved symbols starting with double underscore from the check.
5491
5492 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
5493
5494         intprops: add doc
5495         * doc/intprops.texi: New file, documenting intprops.
5496         * doc/gnulib.texi (Particular Modules): Include it.
5497
5498         verify: add doc to gnulib manual and fix example
5499         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
5500         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
5501         (Compile-time Assertions): Fix example so it can't overflow.
5502
5503 2011-05-17  Jim Meyering  <meyering@redhat.com>
5504
5505         warnings.m4: don't usurp save_CPPFLAGS variable name
5506         * m4/warnings.m4: Prefix local temporary variable name with gl_.
5507
5508         doc: fix typo
5509         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
5510
5511 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
5512             Bruno Haible  <bruno@clisp.org>
5513
5514         doc: Tweak recent change.
5515         * README (Portability guidelines): Tweak new text.
5516         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
5517         Interix 6.1.
5518
5519 2011-05-16  Eric Blake  <eblake@redhat.com>
5520
5521         inttypes: avoid autoconf warning
5522         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
5523         * m4/stdint.m4 (gl_STDINT_H): Likewise.
5524
5525 2011-05-16  Sam Steingold <sds@gnu.org>
5526         and Eric Blake  <eblake@redhat.com>
5527
5528         vc-list-files: accept multiple directory operands
5529         * build-aux/vc-list-files: Iterate over all remaining operands.
5530
5531 2011-05-16  Bruno Haible  <bruno@clisp.org>
5532
5533         Fix confusion regarding deprecated modules.
5534         * modules/calloc (Status, Notice): Mark module as deprecated, not
5535         obsolete.
5536         * modules/fnmatch-posix (Status, Notice): Likewise.
5537         * modules/getdate (Status, Notice): Likewise.
5538         * modules/getopt (Status, Notice): Likewise.
5539         * modules/malloc (Status, Notice): Likewise.
5540         * modules/pipe (Status, Notice): Likewise.
5541         * modules/realloc (Status, Notice): Likewise.
5542         * modules/rename-dest-slash (Status, Notice): Likewise.
5543         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
5544         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
5545         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
5546         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
5547         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
5548
5549 2011-05-16  Bruno Haible  <bruno@clisp.org>
5550
5551         doc: List the target platforms.
5552         * doc/gnulib-intro.texi (Target Platforms): New section.
5553         * doc/gnulib.texi (Introduction): Update menu.
5554         * README (Portability guidelines): Refer to the new section. Update
5555         statement about oldest supported environment. Remove rationale why
5556         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
5557         unportable C89 function.
5558         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
5559         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
5560
5561 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
5562
5563         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
5564
5565 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
5566
5567         intprops-tests: new module
5568         * modules/intprops-tests, tests/test-intprops.c: New files.
5569
5570         intprops: add safe, portable integer overflow checking
5571         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
5572         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
5573         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
5574         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
5575         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
5576         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
5577         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
5578         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
5579         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
5580         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
5581         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
5582
5583 2011-05-12  James Youngman  <jay@gnu.org>
5584
5585         Add a test for glibc's Bugzilla bug #12378.
5586         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
5587         doesn't allow the literal matching of a lone "[" (which is
5588         required by POSIX).
5589         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
5590
5591 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
5592
5593         Sync glibc change fixing Bugzilla bug #12378.
5594         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
5595         beginning and fall back to matching as normal character if the
5596         string ends before the matching ']' is found.  This is what POSIX
5597         requires.
5598
5599 2011-05-13  Eric Blake  <eblake@redhat.com>
5600
5601         getcwd-lgpl: relax test for FreeBSD
5602         * doc/posix-functions/getcwd.texi (getcwd): Document portability
5603         issue.
5604         * tests/test-getcwd-lgpl.c (main): Relax test.
5605         Reported by Matthias Bolte.
5606
5607 2011-05-11  Eric Blake  <eblake@redhat.com>
5608
5609         test-fflush: silence compiler warning
5610         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
5611
5612 2011-05-11  Bruno Haible  <bruno@clisp.org>
5613
5614         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
5615         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
5616         * modules/canonicalize (Depends-on): Add 'nocrash'.
5617         * modules/canonicalize-lgpl (Depends-on): Likewise.
5618         * doc/posix-functions/realpath.texi: Update platforms list.
5619         Reported by Ryan Schmidt <ryandesign@macports.org>.
5620
5621 2011-05-11  Bruno Haible  <bruno@clisp.org>
5622
5623         group-member: Declare function in <unistd.h>.
5624         * lib/unistd.in.h (group_member): New declaration.
5625         * lib/group-member.h: Remove file.
5626         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
5627         * tests/test-unistd-c++.cc: Check signature of group_member.
5628         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
5629         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
5630         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
5631         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
5632         HAVE_GROUP_MEMBER.
5633         * modules/group-member (Files): Remove lib/group-member.h.
5634         (Depends-on): Add unistd. Specify conditions.
5635         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5636         (Include): Change to <unistd.h>.
5637         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
5638         HAVE_GROUP_MEMBER.
5639         * NEWS: Mention the change.
5640         * lib/euidaccess.c: Don't include group-member.h.
5641
5642 2011-05-11  Bruno Haible  <bruno@clisp.org>
5643
5644         group-member: Document module.
5645         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
5646         module.
5647
5648 2011-05-11  Bruno Haible  <bruno@clisp.org>
5649
5650         fclose: Fix mistake earlier today.
5651         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
5652
5653 2011-05-11  Eric Blake  <eblake@redhat.com>
5654
5655         fclose: preserve fflush errors
5656         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
5657         Reported by Jim Meyering.
5658
5659         bootstrap: support a prereq of 'rpcgen -' on RHEL5
5660         * build-aux/bootstrap (check_versions): When no specific version
5661         is required, merely check that the app produces an exit status
5662         that indicates its existence.
5663
5664         maint.mk: drop redundant check
5665         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
5666         the same but better.
5667
5668 2011-05-11  Bruno Haible  <bruno@clisp.org>
5669
5670         fclose: Fix possible link error.
5671         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
5672         unregister_shadow_fd. Improve comments.
5673         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
5674         Eric Blake.
5675
5676 2011-05-11  Jim Meyering  <meyering@redhat.com>
5677
5678         maint.mk: improve "can not" detection and generalize rule name
5679         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
5680         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
5681         Use the same technique as in sc_prohibit_doubled_word, so that
5682         we recognize "can not" also when the words are separated by a newline.
5683         Suggested by Eric Blake.
5684         (perl_filename_lineno_text_): Define.  Factored out of...
5685         (prohibit_doubled_word_): ...here.  Use the new definition.
5686         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
5687         (prohibit_undesirable_word_seq_RE_): New overridable variable.
5688         (ignore_undesirable_word_sequence_RE_): New overridable variable.
5689
5690 2011-05-10  Eric Blake  <eblake@redhat.com>
5691
5692         fclose: avoid double close race when possible
5693         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
5694         all but WINDOWS_SOCKETS.
5695
5696 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
5697
5698         openat: correct new comment
5699         * lib/openat-proc.c (openat_proc_name): Correct the comment.
5700
5701 2011-05-10  Jim Meyering  <meyering@redhat.com>
5702
5703         openat: add comments
5704         * lib/openat-proc.c (openat_proc_name): Add comments,
5705         mostly from Eric Blake.
5706
5707 2011-05-09  Eric Blake  <eblake@redhat.com>
5708
5709         openat: reduce syscalls in first probe of /proc
5710         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
5711         be a directory.  Simplify the probe for .. bugs.
5712         * modules/openat (Depends-on): Drop same-inode.
5713         Reported by Bastien ROUCARIES.
5714
5715 2011-05-09  Jim Meyering  <meyering@redhat.com>
5716
5717         maint.mk: change semantics/name of tight_scope variables
5718         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
5719         Rename variables to align with semantics that make them more useful.
5720
5721         maint.mk: tweak new rule's name not to impinge
5722         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
5723         (sc_tight_scope): Use new rule name rather than $@-0.
5724
5725         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
5726         * top/maint.mk (sc_tight_scope): New rule.
5727         (sc_tight_scope-0): New rule, ifdef'd out.
5728         (_gl_TS_dir): Default.
5729         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
5730         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
5731
5732 2011-05-09  Simon Josefsson  <simon@josefsson.org>
5733
5734         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
5735         Haible <bruno@clisp.org>.
5736
5737 2011-05-08  Bruno Haible  <bruno@clisp.org>
5738
5739         Comments.
5740         * m4/isnanf.m4: Add comment.
5741         * m4/isnanl.m4: Likewise.
5742
5743 2011-05-08  Bruno Haible  <bruno@clisp.org>
5744
5745         glob: Remove obsolete macro.
5746         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
5747
5748 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
5749
5750         intprops: Sun C 5.11 supports __typeof__
5751         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
5752         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
5753         which is new.
5754         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
5755
5756         intprops: switch to usual gnulib indenting and naming
5757         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
5758         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
5759
5760         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
5761
5762 2011-05-08  Jim Meyering  <meyering@redhat.com>
5763
5764         maint.mk: suppress "Entering/Leaving directory" diag in announcement
5765         * top/maint.mk (release-prep): Use make's --no-print-directory
5766         option when generating the announcement.  This eliminates the
5767         pesky "make[2]: Entering/Leaving directory" diagnostics in the
5768         generated announcement template.
5769
5770 2011-05-08  Bruno Haible  <bruno@clisp.org>
5771
5772         tzset: Fix gettimeofday wrapper on Solaris 2.6.
5773         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
5774         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
5775
5776 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
5777
5778         ignore-value, verify: Omit include files from lib_SOURCES.
5779         * modules/ignore-value, modules/verify (Makefile.am):
5780         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
5781         that leads Automake to duplicate use of am__objects_... variables
5782         in Makefile.in.  See
5783         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
5784
5785 2011-05-07  Bruno Haible  <bruno@clisp.org>
5786
5787         fclose: Simplify autoconf macro.
5788         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
5789         defined.
5790
5791 2011-05-07  Bruno Haible  <bruno@clisp.org>
5792
5793         canonicalize-lgpl: Fix autoconf macro ordering bug.
5794         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
5795         gl_STDLIB_H_DEFAULTS.
5796
5797 2011-05-06  Eric Blake  <eblake@redhat.com>
5798
5799         maintainer-makefile: make sc_po_check easier to tune
5800         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
5801         to probe for strings, such as an alternate location for gnulib.
5802
5803         fclose: guarantee behavior on seekable stdin
5804         * modules/fclose (Depends-on): Add fflush.
5805         * doc/posix-functions/fclose.texi (fclose): Document this.
5806         * tests/test-fclose.c (main): Make test for this unconditional.
5807
5808 2011-05-06  Bruno Haible  <bruno@clisp.org>
5809
5810         fflush, fpurge: Relicense under LGPLv2+.
5811         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
5812         * modules/fpurge (License): Likewise.
5813         With permission from Eric Blake and Jim Meyering.
5814         Suggested by Eric Blake.
5815
5816 2011-05-06  Karl Berry  <karl@gnu.org>
5817
5818         * MODULES.html.sh (func_all_modules): remove exit.
5819
5820 2011-05-06  Jim Meyering  <meyering@redhat.com>
5821
5822         maint.mk: use info-gnu@ as the default only for a stable release
5823         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
5824         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
5825         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
5826         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
5827
5828 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
5829
5830         assert-h: new module, which supports C1X-style static_assert
5831         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
5832         * lib/verify.h: Revamp so that this can be copied into assert.h,
5833         while retaining the ability to use it standalone as before.
5834         Rename private identifiers so as not to encroach on the
5835         standard C namespace, since this is now used by assert.h.
5836         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
5837         the old verify_true.
5838         (_GL_VERIFY_TRUE): New macro, with much of the contents of
5839         the old verify_true.  Use _GL_VERIFY_TYPE.
5840         (_GL_VERIFY): New macro, with much of the contents of the old verify.
5841         (static_assert): New macro, if _GL_STATIC_ASSERT_H
5842         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
5843         defined when this file is copied into the replacement assert.h.
5844         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
5845         and _Static_assert is not built in.
5846         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
5847         defined, and use the new macros mentioned above.
5848         * doc/posix-headers/assert.texi: Document this.
5849
5850 2011-05-05  Bruno Haible  <bruno@clisp.org>
5851
5852         fclose, fflush: Respect rules for use of AC_LIBOBJ.
5853         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
5854         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
5855         gl_REPLACE_FCLOSE here.
5856         * modules/fflush (Depends-on): Remove fclose.
5857         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
5858         combination with module 'fclose'.
5859
5860 2011-05-05  Bruno Haible  <bruno@clisp.org>
5861
5862         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
5863         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
5864         gl_FUNC_FFLUSH.
5865         (gl_FUNC_FFLUSH): Use it.
5866         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
5867         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
5868         gl_REPLACE_FSEEKO here.
5869
5870 2011-05-05  Bruno Haible  <bruno@clisp.org>
5871
5872         tzset: Relicense under LGPL.
5873         * modules/tzset (License): Change to LGPL.
5874         No agreement needed; it's a no-op.
5875
5876         strtoimax, strtoumax: Relicense under LGPL.
5877         * modules/strtoimax (License): Change to LGPL.
5878         * modules/strtoumax (License): Likewise.
5879         With permission from Jim Meyering, Paul Eggert:
5880         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
5881         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
5882
5883         getgroups: Relicense under LGPL.
5884         * modules/getgroups (License): Change to LGPL.
5885         With permission from Jim Meyering, Paul Eggert, Eric Blake:
5886         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
5887         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
5888         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5889
5890         nanosleep: Relicense under LGPL.
5891         * modules/nanosleep (License): Change to LGPL.
5892         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
5893         Haible:
5894         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
5895         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
5896         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5897         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
5898
5899         futimens: Relicense under LGPL.
5900         * modules/futimens (License): Change to LGPL.
5901         With permission from Eric Blake:
5902         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5903
5904         fflush: Relicense under LGPL.
5905         * modules/fflush (License): Change to LGPL.
5906         With permission from Eric Blake, Bruno Haible, Jim Meyering:
5907         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5908         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
5909         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
5910
5911         tmpfile: Relicense under LGPL.
5912         * modules/tmpfile (License): Change to LGPL.
5913         With permission from Ben Pfaff:
5914         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
5915
5916         isfinite: Relicense under LGPL.
5917         * modules/isfinite (License): Change to LGPL.
5918         With permission from Ben Pfaff, Bruno Haible:
5919         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
5920         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
5921
5922         acosl..tanl: Relicense under LGPL.
5923         * modules/acosl (License): Change to LGPL.
5924         * modules/asinl (License): Likewise.
5925         * modules/atanl (License): Likewise.
5926         * modules/cosl (License): Likewise.
5927         * modules/expl (License): Likewise.
5928         * modules/logl (License): Likewise.
5929         * modules/sinl (License): Likewise.
5930         * modules/sqrtl (License): Likewise.
5931         * modules/tanl (License): Likewise.
5932         Source code originally from glibc and Paolo Bonzini. Agreements:
5933         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
5934         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
5935
5936 2011-05-05  Bruno Haible  <bruno@clisp.org>
5937
5938         signal: Define sighandler_t.
5939         * lib/signal.in.h (sighandler_t): New type.
5940         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
5941         whether sighandler_t is defined.
5942         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
5943         * modules/signal (Depends-on): Add extensions.
5944         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
5945         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
5946         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
5947
5948 2011-05-05  Eric Blake  <eblake@redhat.com>
5949
5950         maint: remove useless REPLACE_*_H macros
5951         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
5952         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
5953         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
5954         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
5955         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
5956         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
5957         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
5958         * m4/btowc.m4: Update callers.
5959         * m4/dirfd.m4: Likewise.
5960         * m4/duplocale.m4: Likewise.
5961         * m4/fchdir.m4: Likewise.
5962         * m4/fdopendir.m4: Likewise.
5963         * m4/inet_ntop.m4: Likewise.
5964         * m4/inet_pton.m4: Likewise.
5965         * m4/ioctl.m4: Likewise.
5966         * m4/mbrlen.m4: Likewise.
5967         * m4/mbrtowc.m4: Likewise.
5968         * m4/mbsinit.m4: Likewise.
5969         * m4/mbsnrtowcs.m4: Likewise.
5970         * m4/mbsrtowcs.m4: Likewise.
5971         * m4/poll.m4: Likewise.
5972         * m4/setlocale.m4: Likewise.
5973         * m4/wcrtomb.m4: Likewise.
5974         * m4/wcsnrtombs.m4: Likewise.
5975         * m4/wcsrtombs.m4: Likewise.
5976         * m4/wctob.m4: Likewise.
5977         * m4/wcwidth.m4: Likewise.
5978         * modules/posix_spawn: Likewise.
5979         * modules/posix_spawn_file_actions_addclose: Likewise.
5980         * modules/posix_spawn_file_actions_adddup2: Likewise.
5981         * modules/posix_spawn_file_actions_addopen: Likewise.
5982         * modules/posix_spawn_file_actions_destroy: Likewise.
5983         * modules/posix_spawn_file_actions_init: Likewise.
5984         * modules/posix_spawnattr_destroy: Likewise.
5985         * modules/posix_spawnattr_getflags: Likewise.
5986         * modules/posix_spawnattr_getpgroup: Likewise.
5987         * modules/posix_spawnattr_getschedparam: Likewise.
5988         * modules/posix_spawnattr_getschedpolicy: Likewise.
5989         * modules/posix_spawnattr_getsigdefault: Likewise.
5990         * modules/posix_spawnattr_getsigmask: Likewise.
5991         * modules/posix_spawnattr_init: Likewise.
5992         * modules/posix_spawnattr_setflags: Likewise.
5993         * modules/posix_spawnattr_setpgroup: Likewise.
5994         * modules/posix_spawnattr_setschedparam: Likewise.
5995         * modules/posix_spawnattr_setschedpolicy: Likewise.
5996         * modules/posix_spawnattr_setsigdefault: Likewise.
5997         * modules/posix_spawnattr_setsigmask: Likewise.
5998         * modules/posix_spawnp: Likewise.
5999
6000 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
6001
6002         Add option to do-release-commit-and-tag to specify branch.
6003         * build-aux/do-release-commit-and-tag: Add --branch.
6004
6005 2011-05-03  Bruno Haible  <bruno@clisp.org>
6006
6007         Avoid unnecessary compilation units, through conditional dependencies.
6008         * modules/accept (Depends-on): Add conditions to the dependencies.
6009         * modules/acosl (Depends-on): Likewise.
6010         * modules/argz (Depends-on): Likewise.
6011         * modules/asinl (Depends-on): Likewise.
6012         * modules/atanl (Depends-on): Likewise.
6013         * modules/atoll (Depends-on): Likewise.
6014         * modules/bind (Depends-on): Likewise.
6015         * modules/btowc (Depends-on): Likewise.
6016         * modules/canonicalize-lgpl (Depends-on): Likewise.
6017         * modules/ceil (Depends-on): Likewise.
6018         * modules/ceilf (Depends-on): Likewise.
6019         * modules/ceill (Depends-on): Likewise.
6020         * modules/chdir-long (Depends-on): Likewise.
6021         * modules/chown (Depends-on): Likewise.
6022         * modules/close (Depends-on): Likewise.
6023         * modules/connect (Depends-on): Likewise.
6024         * modules/cosl (Depends-on): Likewise.
6025         * modules/dirfd (Depends-on): Likewise.
6026         * modules/dprintf (Depends-on): Likewise.
6027         * modules/dprintf-posix (Depends-on): Likewise.
6028         * modules/error (Depends-on): Likewise.
6029         * modules/euidaccess (Depends-on): Likewise.
6030         * modules/expl (Depends-on): Likewise.
6031         * modules/faccessat (Depends-on): Likewise.
6032         * modules/fchdir (Depends-on): Likewise.
6033         * modules/fclose (Depends-on): Likewise.
6034         * modules/fcntl (Depends-on): Likewise.
6035         * modules/fdopendir (Depends-on): Likewise.
6036         * modules/fflush (Depends-on): Likewise.
6037         * modules/floor (Depends-on): Likewise.
6038         * modules/floorf (Depends-on): Likewise.
6039         * modules/floorl (Depends-on): Likewise.
6040         * modules/fnmatch (Depends-on): Likewise.
6041         * modules/fopen (Depends-on): Likewise.
6042         * modules/fprintf-posix (Depends-on): Likewise.
6043         * modules/frexp (Depends-on): Likewise.
6044         * modules/frexp-nolibm (Depends-on): Likewise.
6045         * modules/frexpl (Depends-on): Likewise.
6046         * modules/frexpl-nolibm (Depends-on): Likewise.
6047         * modules/fseek (Depends-on): Likewise.
6048         * modules/fsusage (Depends-on): Likewise.
6049         * modules/ftell (Depends-on): Likewise.
6050         * modules/ftello (Depends-on): Likewise.
6051         * modules/futimens (Depends-on): Likewise.
6052         * modules/getcwd (Depends-on): Likewise.
6053         * modules/getcwd-lgpl (Depends-on): Likewise.
6054         * modules/getdelim (Depends-on): Likewise.
6055         * modules/getdomainname (Depends-on): Likewise.
6056         * modules/getgroups (Depends-on): Likewise.
6057         * modules/gethostname (Depends-on): Likewise.
6058         * modules/getline (Depends-on): Likewise.
6059         * modules/getlogin_r (Depends-on): Likewise.
6060         * modules/getopt-posix (Depends-on): Likewise.
6061         * modules/getpeername (Depends-on): Likewise.
6062         * modules/getsockname (Depends-on): Likewise.
6063         * modules/getsockopt (Depends-on): Likewise.
6064         * modules/getsubopt (Depends-on): Likewise.
6065         * modules/getusershell (Depends-on): Likewise.
6066         * modules/glob (Depends-on): Likewise.
6067         * modules/grantpt (Depends-on): Likewise.
6068         * modules/iconv_open (Depends-on): Likewise.
6069         * modules/iconv_open-utf (Depends-on): Likewise.
6070         * modules/inet_ntop (Depends-on): Likewise.
6071         * modules/inet_pton (Depends-on): Likewise.
6072         * modules/ioctl (Depends-on): Likewise.
6073         * modules/isapipe (Depends-on): Likewise.
6074         * modules/isfinite (Depends-on): Likewise.
6075         * modules/isinf (Depends-on): Likewise.
6076         * modules/lchown (Depends-on): Likewise.
6077         * modules/ldexpl (Depends-on): Likewise.
6078         * modules/link (Depends-on): Likewise.
6079         * modules/linkat (Depends-on): Likewise.
6080         * modules/listen (Depends-on): Likewise.
6081         * modules/logl (Depends-on): Likewise.
6082         * modules/lstat (Depends-on): Likewise.
6083         * modules/mbrlen (Depends-on): Likewise.
6084         * modules/mbrtowc (Depends-on): Likewise.
6085         * modules/mbsinit (Depends-on): Likewise.
6086         * modules/mbsnrtowcs (Depends-on): Likewise.
6087         * modules/mbsrtowcs (Depends-on): Likewise.
6088         * modules/mbtowc (Depends-on): Likewise.
6089         * modules/memcmp (Depends-on): Likewise.
6090         * modules/mkdir (Depends-on): Likewise.
6091         * modules/mkdtemp (Depends-on): Likewise.
6092         * modules/mkfifo (Depends-on): Likewise.
6093         * modules/mkfifoat (Depends-on): Likewise.
6094         * modules/mknod (Depends-on): Likewise.
6095         * modules/mkostemp (Depends-on): Likewise.
6096         * modules/mkostemps (Depends-on): Likewise.
6097         * modules/mkstemp (Depends-on): Likewise.
6098         * modules/mkstemps (Depends-on): Likewise.
6099         * modules/mktime (Depends-on): Likewise.
6100         * modules/nanosleep (Depends-on): Likewise.
6101         * modules/open (Depends-on): Likewise.
6102         * modules/openat (Depends-on): Likewise.
6103         * modules/perror (Depends-on): Likewise.
6104         * modules/poll (Depends-on): Likewise.
6105         * modules/popen (Depends-on): Likewise.
6106         * modules/posix_spawn (Depends-on): Likewise.
6107         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
6108         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
6109         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
6110         * modules/posix_spawnp (Depends-on): Likewise.
6111         * modules/pread (Depends-on): Likewise.
6112         * modules/printf-posix (Depends-on): Likewise.
6113         * modules/ptsname (Depends-on): Likewise.
6114         * modules/putenv (Depends-on): Likewise.
6115         * modules/pwrite (Depends-on): Likewise.
6116         * modules/readline (Depends-on): Likewise.
6117         * modules/readlink (Depends-on): Likewise.
6118         * modules/readlinkat (Depends-on): Likewise.
6119         * modules/recv (Depends-on): Likewise.
6120         * modules/recvfrom (Depends-on): Likewise.
6121         * modules/regex (Depends-on): Likewise.
6122         * modules/remove (Depends-on): Likewise.
6123         * modules/rename (Depends-on): Likewise.
6124         * modules/renameat (Depends-on): Likewise.
6125         * modules/rmdir (Depends-on): Likewise.
6126         * modules/round (Depends-on): Likewise.
6127         * modules/roundf (Depends-on): Likewise.
6128         * modules/roundl (Depends-on): Likewise.
6129         * modules/rpmatch (Depends-on): Likewise.
6130         * modules/select (Depends-on): Likewise.
6131         * modules/send (Depends-on): Likewise.
6132         * modules/sendto (Depends-on): Likewise.
6133         * modules/setenv (Depends-on): Likewise.
6134         * modules/setlocale (Depends-on): Likewise.
6135         * modules/setsockopt (Depends-on): Likewise.
6136         * modules/shutdown (Depends-on): Likewise.
6137         * modules/sigaction (Depends-on): Likewise.
6138         * modules/signbit (Depends-on): Likewise.
6139         * modules/sigprocmask (Depends-on): Likewise.
6140         * modules/sinl (Depends-on): Likewise.
6141         * modules/sleep (Depends-on): Likewise.
6142         * modules/snprintf (Depends-on): Likewise.
6143         * modules/snprintf-posix (Depends-on): Likewise.
6144         * modules/socket (Depends-on): Likewise.
6145         * modules/sprintf-posix (Depends-on): Likewise.
6146         * modules/sqrtl (Depends-on): Likewise.
6147         * modules/stat (Depends-on): Likewise.
6148         * modules/strchrnul (Depends-on): Likewise.
6149         * modules/strdup-posix (Depends-on): Likewise.
6150         * modules/strerror (Depends-on): Likewise.
6151         * modules/strerror_r-posix (Depends-on): Likewise.
6152         * modules/strndup (Depends-on): Likewise.
6153         * modules/strnlen (Depends-on): Likewise.
6154         * modules/strptime (Depends-on): Likewise.
6155         * modules/strsep (Depends-on): Likewise.
6156         * modules/strsignal (Depends-on): Likewise.
6157         * modules/strstr-simple (Depends-on): Likewise.
6158         * modules/strtod (Depends-on): Likewise.
6159         * modules/strtoimax (Depends-on): Likewise.
6160         * modules/strtok_r (Depends-on): Likewise.
6161         * modules/strtoumax (Depends-on): Likewise.
6162         * modules/symlink (Depends-on): Likewise.
6163         * modules/symlinkat (Depends-on): Likewise.
6164         * modules/tanl (Depends-on): Likewise.
6165         * modules/tcgetsid (Depends-on): Likewise.
6166         * modules/tmpfile (Depends-on): Likewise.
6167         * modules/trunc (Depends-on): Likewise.
6168         * modules/truncf (Depends-on): Likewise.
6169         * modules/truncl (Depends-on): Likewise.
6170         * modules/uname (Depends-on): Likewise.
6171         * modules/unlink (Depends-on): Likewise.
6172         * modules/unlockpt (Depends-on): Likewise.
6173         * modules/unsetenv (Depends-on): Likewise.
6174         * modules/usleep (Depends-on): Likewise.
6175         * modules/utimensat (Depends-on): Likewise.
6176         * modules/vasprintf (Depends-on): Likewise.
6177         * modules/vdprintf (Depends-on): Likewise.
6178         * modules/vdprintf-posix (Depends-on): Likewise.
6179         * modules/vfprintf-posix (Depends-on): Likewise.
6180         * modules/vprintf-posix (Depends-on): Likewise.
6181         * modules/vsnprintf (Depends-on): Likewise.
6182         * modules/vsnprintf-posix (Depends-on): Likewise.
6183         * modules/vsprintf-posix (Depends-on): Likewise.
6184         * modules/wcrtomb (Depends-on): Likewise.
6185         * modules/wcscasecmp (Depends-on): Likewise.
6186         * modules/wcscspn (Depends-on): Likewise.
6187         * modules/wcsdup (Depends-on): Likewise.
6188         * modules/wcsncasecmp (Depends-on): Likewise.
6189         * modules/wcsnrtombs (Depends-on): Likewise.
6190         * modules/wcspbrk (Depends-on): Likewise.
6191         * modules/wcsrtombs (Depends-on): Likewise.
6192         * modules/wcsspn (Depends-on): Likewise.
6193         * modules/wcsstr (Depends-on): Likewise.
6194         * modules/wcstok (Depends-on): Likewise.
6195         * modules/wcswidth (Depends-on): Likewise.
6196         * modules/wctob (Depends-on): Likewise.
6197         * modules/wctomb (Depends-on): Likewise.
6198         * modules/wctype (Depends-on): Likewise.
6199         * modules/wcwidth (Depends-on): Likewise.
6200         * modules/write (Depends-on): Likewise.
6201
6202 2011-05-03  Bruno Haible  <bruno@clisp.org>
6203
6204         Support for conditional dependencies.
6205         * doc/gnulib.texi (Module description): Document the syntax of
6206         conditional dependencies.
6207         * gnulib-tool: New option --conditional-dependencies.
6208         (func_usage): Document it.
6209         (cond_dependencies): New variable.
6210         (func_get_automake_snippet_conditional,
6211         func_get_automake_snippet_unconditional): New functions, extracted from
6212         func_get_automake_snippet.
6213         (func_get_automake_snippet): Use them.
6214         (sed_first_32_chars): New variable.
6215         (func_module_shellfunc_name): New function.
6216         (func_module_shellvar_name): New function.
6217         (func_module_conditional_name): New function.
6218         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
6219         func_cond_module_condition): New functions.
6220         (func_modules_transitive_closure): Add support for conditional
6221         dependencies.
6222         (func_emit_lib_Makefile_am): For a conditional module, enclose the
6223         conditional automake snippet in an automake conditional.
6224         (func_emit_autoconf_snippets): Emit shell functions that contain the
6225         code for conditional modules.
6226         (func_import, func_create_testdir): Update specification.
6227
6228 2011-05-03  Eric Blake  <eblake@redhat.com>
6229
6230         test-getaddrinfo: report error information
6231         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
6232
6233 2011-05-03  Jim Meyering  <meyering@redhat.com>
6234
6235         bootstrap: avoid build failure when $GZIP is set
6236         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
6237         program name.  If defined at all, it is supposed to list gzip options.
6238         Reported by Alan Curry in http://debbugs.gnu.org/8609
6239
6240 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
6241
6242         readme-release: new module with release instructions
6243         * modules/readme-release: New module.
6244         * top/README-release: New file, from coreutils, grep, diffutils.
6245         * MODULES.html.sh (Support for maintaining and releasing): Add it.
6246
6247 2011-05-02  Eric Blake  <eblake@redhat.com>
6248
6249         fflush: also replace fclose when fixing fflush
6250         * modules/fflush (Depends-on): Add fclose.
6251         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
6252         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
6253         memstreams with no backing fd.
6254         * doc/posix-functions/fclose.texi (fclose): Document the use of
6255         fflush module to fix the bug.
6256         * tests/test-fclose.c (main): Relax test when fclose is used in
6257         isolation.
6258
6259         fclose: add some tests
6260         * modules/fclose-tests: New test module.
6261         * tests/test-fclose.c: New file.
6262         * doc/posix-functions/fclose.texi (fclose): Document the bug.
6263
6264         fclose: reduced dependencies
6265         * modules/fclose (Depends-on): Switch from fflush/fseeko to
6266         simpler lseek.
6267         * lib/fclose.c (rpl_fclose): Likewise.
6268         Reported by Simon Josefsson.
6269
6270         exit: drop remaining clients
6271         * modules/argmatch (Depends-on): Replace exit with stdlib.
6272         * modules/copy-file (Depends-on): Likewise.
6273         * modules/execute (Depends-on): Likewise.
6274         * modules/exitfail (Depends-on): Likewise.
6275         * modules/obstack (Depends-on): Likewise.
6276         * modules/pagealign_alloc (Depends-on): Likewise.
6277         * modules/pipe-filter-gi (Depends-on): Likewise.
6278         * modules/pipe-filter-ii (Depends-on): Likewise.
6279         * modules/savewd (Depends-on): Likewise.
6280         * modules/spawn-pipe (Depends-on): Likewise.
6281         * modules/wait-process (Depends-on): Likewise.
6282         * modules/xsetenv (Depends-on): Likewise.
6283         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
6284         * modules/git-merge-changelog (Depends-on): Likewise.
6285         * modules/long-options (Depends-on): Likewise.
6286         * modules/pt_chown (Depends-on): Likewise.
6287         * modules/sysexits (Depends-on): Likewise.
6288
6289         freading: relax license from LGPLv3+ to LGPLv2+
6290         * modules/freading (License): Relax LGPL version.
6291
6292 2011-05-02  Bruno Haible  <bruno@clisp.org>
6293
6294         fchdir: Remove unused dependencies.
6295         * modules/fchdir (Depends-on): Remove include_next.
6296
6297 2011-05-02  Bruno Haible  <bruno@clisp.org>
6298
6299         gnulib-tool: Refactor.
6300         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
6301         from func_emit_autoconf_snippets.
6302         (func_emit_autoconf_snippets): Use it.
6303
6304 2011-05-02  Simon Josefsson  <simon@josefsson.org>
6305
6306         * NEWS: Document removal of 'exit'.
6307         * modules/exit: Remove file.
6308
6309 2011-05-01  Bruno Haible  <bruno@clisp.org>
6310
6311         Update DEPENDENCIES.
6312         * DEPENDENCIES (gettext): Recommend the newest release.
6313         Reported by Simon Josefsson.
6314
6315 2011-05-01  Bruno Haible  <bruno@clisp.org>
6316
6317         gnulib-tool: Reduce code duplication.
6318         * gnulib-tool (func_emit_autoconf_snippets): New function.
6319         (func_import, func_create_testdir): Use it.
6320
6321 2011-04-30  Eric Blake  <eblake@redhat.com>
6322
6323         fclose: don't fail on non-seekable input stream
6324         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
6325         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
6326         since fflush is allowed to fail in that case.
6327
6328 2011-04-30  Bruno Haible  <bruno@clisp.org>
6329
6330         dup3: cleanup
6331         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
6332
6333 2011-04-30  Bruno Haible  <bruno@clisp.org>
6334
6335         netdb: Make it work in C++ mode.
6336         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
6337         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
6338         module.
6339         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
6340         gl_MODULE_INDICATOR_FOR_TESTS.
6341         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
6342         * modules/netdb-c++-tests: New file.
6343         * tests/test-netdb-c++.cc: New file.
6344
6345 2011-04-30  Bruno Haible  <bruno@clisp.org>
6346
6347         New modules 'vfscanf', 'vscanf'.
6348         * modules/vfscanf: New file.
6349         * modules/vscanf: New file.
6350         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
6351         here.
6352         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
6353         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
6354
6355 2011-04-30  Bruno Haible  <bruno@clisp.org>
6356
6357         passfd: Add comments.
6358         * lib/passfd.c: Add comments about platforms.
6359
6360 2011-04-30  Bruno Haible  <bruno@clisp.org>
6361
6362         sys_uio: Make <sys/uio.h> self-contained.
6363         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
6364         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
6365
6366 2011-04-30  Bruno Haible  <bruno@clisp.org>
6367
6368         sys_socket: Ensure 'struct iovec' definition.
6369         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
6370         <sys/socket.h>.
6371         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
6372
6373 2011-04-30  Bruno Haible  <bruno@clisp.org>
6374
6375         sys_uio: Protect definition of 'struct iovec'.
6376         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
6377         it as a C struct.
6378
6379 2011-04-30  Bruno Haible  <bruno@clisp.org>
6380
6381         manywarnings: fix indentation
6382         * m4/manywarnings.m4: Indent by 2 spaces consistently.
6383
6384 2011-04-30  Pádraig Brady <P@draigBrady.com>
6385
6386         manywarnings: add -Wno-missing-field-initializers if needed.
6387         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
6388         option if it's needed to allow initialization with { 0, }
6389
6390 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
6391
6392         announce-gen: cosmetic improvement
6393         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
6394
6395 2011-04-29  Jim Meyering  <meyering@redhat.com>
6396
6397         vc-list-files: indent with spaces, not TABs
6398         * build-aux/vc-list-files: Convert leading TABs to spaces,
6399         to match the style of most other files in gnulib.
6400
6401         announce-gen: indent with spaces, not TABs
6402         * build-aux/announce-gen: Convert all TABs to spaces, to match
6403         the style of most other files in gnulib.
6404
6405 2011-04-29  Eric Blake  <eblake@redhat.com>
6406
6407         quotearg: avoid uninitialized variable use
6408         * lib/quotearg.c (quoting_options_from_style): Initialize
6409         remaining fields, and ensure that custom styles are only used via
6410         quoting_options rather than quoting_style.
6411
6412 2011-04-29  Jim Meyering  <meyering@redhat.com>
6413
6414         maint.mk: remove unused VC-tag variable
6415         * top/maint.mk (VC-tag): Remove unused variable.
6416
6417 2011-04-29  Bruno Haible  <bruno@clisp.org>
6418
6419         netdb: fix gai_strerror replacements
6420         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
6421         * modules/netdb: Substitute it.
6422
6423 2011-04-29  Jim Meyering  <meyering@redhat.com>
6424
6425         test-getcwd.c: avoid new set-but-not-used warning
6426         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
6427         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
6428         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
6429         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
6430
6431         test-hash.c: avoid a new shadowing warning
6432         * tests/test-hash.c (main): Don't shadow "dup".
6433
6434 2011-04-28  Eric Blake  <eblake@redhat.com>
6435
6436         getaddrinfo: fix gai_strerror signature
6437         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
6438         and work around mingw with UNICODE defined.
6439         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
6440         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
6441         * modules/netdb (Makefile.am): Substitute it.
6442         * lib/netdb.in.h (gai_strerror): Declare replacement.
6443         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
6444         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
6445         the fix.
6446
6447         getsockopt: avoid compiler warning
6448         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
6449         Reported by Matthias Bolte.
6450
6451         tests: drop unused link dependency
6452         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
6453         * modules/dirent-safer-tests (Makefile.am): Likewise.
6454         * modules/fdopendir-tests (Makefile.am): Likewise.
6455         * modules/mkfifoat-tests (Makefile.am): Likewise.
6456         * modules/openat-safer-tests (Makefile.am): Likewise.
6457         * modules/openat-tests (Makefile.am): Likewise.
6458         * modules/readlinkat-tests (Makefile.am): Likewise.
6459         * modules/symlinkat-tests (Makefile.am): Likewise.
6460         * modules/linkat-tests (Makefile.am): Likewise.
6461         (Depends-on): Switch to filenamecat-lgpl.
6462         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
6463         LIBINTL.
6464         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
6465         * tests/test-linkat.c (main): Don't require xalloc.
6466
6467         hash, mgetgroups: drop xalloc dependency
6468         * lib/hash.c (includes): Adjust includes.
6469         * lib/mgetgroups.c (includes): Likewise.
6470         (xgetgroups): Move...
6471         * lib/xgetgroups.c: ...to new file.
6472         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
6473         * modules/xgetgroups: New file, split from...
6474         * modules/mgetgroups: ...here.
6475         (Depends-on): Add xalloc-oversized.
6476         * modules/hash (Depends-on): Likewise.
6477         * modules/hash-tests (Depends-on): Drop xalloc.
6478         (test_hash_LDADD): Drop unused library.
6479         * tests/test-hash.c (main): Break xalloc dependency.
6480         (includes): Drop unused include.
6481
6482         xalloc-oversized: new module
6483         * modules/xalloc-oversized: New module.
6484         * modules/xalloc (Depends-on): Add it.
6485         * lib/xalloc.h (xalloc_oversized): Move...
6486         * lib/xalloc-oversized.h: ...into new file.
6487
6488         utimecmp: drop dependency on xmalloc
6489         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
6490         due to memory pressure.
6491         * modules/utimecmp (Depends-on): Drop xalloc.
6492
6493 2011-04-27  Eric Blake  <eblake@redhat.com>
6494
6495         getcwd: fix mingw bugs
6496         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
6497         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
6498         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
6499
6500 2011-04-27  Bruno Haible  <bruno@clisp.org>
6501
6502         mkstemps: Ensure declaration on MacOS X 10.5.
6503         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
6504         * doc/glibc-functions/mkstemps.texi: Document header file problem on
6505         MacOS X.
6506
6507 2011-04-27  Bruno Haible  <bruno@clisp.org>
6508
6509         mkstemp: More documentation.
6510         * doc/posix-functions/mkstemp.texi: Document header file problem on
6511         MacOS X.
6512
6513 2011-04-27  Bruno Haible  <bruno@clisp.org>
6514
6515         mkstemp: Tweak configure message when cross-compiling.
6516         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
6517         result as a guess.
6518
6519 2011-04-27  Bruno Haible  <bruno@clisp.org>
6520
6521         clean-temp: Clarify what it does.
6522         * lib/clean-temp.h: Add more comments.
6523         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
6524         module.
6525         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
6526         * doc/glibc-functions/mkstemps.texi: Likewise.
6527         * doc/glibc-functions/mkostemps.texi: Likewise.
6528
6529 2011-04-27  Eric Blake  <eblake@redhat.com>
6530
6531         fchdir: avoid extra chdir and fix test
6532         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
6533         getcwd-lgpl.
6534         * lib/fchdir.c (get_name): Any absolute name will do; it does not
6535         have to be canonical.
6536         (canonicalize_file_name): Drop unused macro.
6537         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
6538
6539         filenamecat-lgpl: fix licence
6540         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
6541         when it was first created.
6542
6543         linkat, renameat: add missing dependency
6544         * modules/linkat (Depends-on): Require getcwd-lgpl.
6545         * modules/renameat (Depends-on): Likewise.
6546
6547         tests: reduce dependencies
6548         * tests/test-linkat.c (main): Use lighter-weight getcwd.
6549         * tests/test-renameat.c (main): Likewise.
6550         * modules/linkat-tests (Depends-on): Relax dependency.
6551         * modules/renameat-tests (Depends-on): Likewise.
6552         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
6553         dependency explicit.
6554
6555         save-cwd: reduce default dependency
6556         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
6557         * lib/save-cwd.c: Update comments.
6558         * NEWS: Document the semantic change.
6559
6560         getcwd: enhance tests
6561         * tests/test-getcwd-lgpl.c: New file, taken from...
6562         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
6563         repeat long path stress tests from m4 probe.
6564         * modules/getcwd-lgpl-tests: New module.
6565         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
6566         * m4/getcwd-abort-bug.m4: Update comment.
6567         * m4/getcwd-path-max.m4: Likewise.
6568
6569         getcwd-lgpl: new module
6570         * modules/getcwd-lgpl: New module.
6571         * lib/getcwd-lgpl.c: New file.
6572         * doc/posix-functions/getcwd.texi (getcwd): Document it.
6573         * MODULES.html.sh (lacking POSIX:2008): Likewise.
6574         * modules/getcwd (configure.ac): Set C witness.
6575         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
6576
6577         getcwd: tweak comments
6578         * m4/getcwd-abort-bug.m4: Fix comments.
6579         * m4/getcwd-path-max.m4: Likewise.
6580         * m4/getcwd.m4: Likewise.
6581
6582 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
6583         and Eric Blake  <eblake@redhat.com>
6584
6585         mkstemp: replace if system version uses wrong permissions
6586         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
6587         read/write mode bits set in file created by mkstemp.
6588         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
6589
6590 2011-04-27  Eric Blake  <eblake@redhat.com>
6591
6592         passfd: avoid compiler warning
6593         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
6594         Reported by Laine Stump.
6595
6596 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
6597
6598         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
6599         required by the NetBSD (and perhaps other 4.4BSD derived) join.
6600
6601 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
6602         and Eric Blake  <eblake@redhat.com>
6603
6604         mkstemp: mention clean-temp module
6605         * lib/mkstemp.c: Add comment.
6606         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
6607
6608 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
6609
6610         inttypes: also provide default values for 32-bit tests
6611         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
6612         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
6613
6614 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
6615
6616         strtoumax: remove dependency on strtoimax
6617         This is like the strtoull change of yesterday.
6618         * modules/strtoumax (Files): Add lib/strtoimax.c.
6619         (Depends-on): Remove strtoimax and add verify.
6620
6621         inttypes-incomplete: new module
6622         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
6623         all but the PRI* and SCN* parts of gl_INTTYPES_H.
6624         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
6625         of gl_INTTYPES_H.
6626         (gl_INTTYPES_H): Rewrite in terms of these new macros.
6627         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
6628         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
6629         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
6630         * modules/strtoumax, modules/xstrtol (Depends-on):
6631         Depend on inttypes-incomplete, not inttypes.
6632         * modules/inttypes-incomplete: New module, containing the contents
6633         of the old modules/inttypes module, except that the Files: section
6634         omits m4/inttypes-pri.m4, and the configure.ac section invokes
6635         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
6636         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
6637         (Depends-on): Depend only on inttypes-incomplete.
6638         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
6639
6640         inttypes: omit now-redundant strtoimax and strtoumax work
6641         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
6642         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
6643
6644         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
6645         This supports apps that need pointers to strtoimax and strtoumax,
6646         and ports to HP-UX 11.00 64.bit, which has macros that expand to
6647         nonexistent functions.  See
6648         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
6649         et seq.
6650         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
6651         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
6652         a macro.
6653         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
6654
6655 2011-04-25  Simon Josefsson  <simon@josefsson.org>
6656
6657         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
6658
6659 2011-04-25  Bruno Haible  <bruno@clisp.org>
6660
6661         strtol, strtoul: Mark modules as obsolete.
6662         * modules/strtol (Status, Notice): New sections.
6663         * modules/strtoul (Status, Notice): New sections.
6664
6665 2011-04-25  Bruno Haible  <bruno@clisp.org>
6666
6667         strtod: Remove check for strtod, unless supporting old platforms.
6668         * modules/strtod-obsolete: New file.
6669         * m4/strtod-obsolete.m4: New file.
6670         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
6671         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
6672         * modules/strtod (Depends-on): Add strtod-obsolete.
6673         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
6674
6675 2011-04-25  Bruno Haible  <bruno@clisp.org>
6676
6677         strcase: Make module obsolete.
6678         * modules/strcase (Status, Notice): New sections.
6679
6680 2011-04-25  Bruno Haible  <bruno@clisp.org>
6681
6682         dup2: Remove check for dup2, unless supporting old obsolete platforms.
6683         * modules/dup2-obsolete: New file.
6684         * m4/dup2-obsolete.m4: New file.
6685         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
6686         gl_FUNC_DUP2_OBSOLETE is not also defined.
6687         * modules/dup2 (Depends-on): Add dup2-obsolete.
6688         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
6689
6690 2011-04-25  Bruno Haible  <bruno@clisp.org>
6691
6692         strnlen: Avoid memchr related link error on old obsolete platforms.
6693         * modules/memchr-obsolete: New file.
6694         * m4/memchr-obsolete.m4: New file.
6695         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
6696         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
6697         * modules/memchr (Depends-on): Add memchr-obsolete.
6698         * modules/strnlen (Depends-on): Likewise.
6699         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
6700
6701 2011-04-25  Jim Meyering  <meyering@redhat.com>
6702
6703         maint.mk: makefile_at_at_check extend and clean up
6704         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
6705         in addition to */Makefile.am.
6706         Exempt legitimate uses of @VAR@ notation, e.g.,
6707         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
6708         Remove obsolete coreutils-specific comment.
6709         Prompted by discussion here:
6710         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
6711
6712 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
6713
6714         strtoul: remove dependency on strtol
6715         This is so that 'configure' need not check for strtol merely because
6716         the application needs strtoul.
6717         * modules/strtoul (Files): Add lib/strtol.c.
6718         (Depends-on): Remove strtol.
6719
6720         strtoull: remove dependency on strtoul
6721         This is like the strtoll change.
6722         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
6723         (Depends-on): Remove strtoul.
6724
6725         strtoll: remove dependency on strtol
6726         This is so that 'configure' need not check for strtol merely because
6727         the application needs strtoll.
6728         * modules/strtoll (Files): Add lib/strtol.c.
6729         (Depends-on): Remove strtol.
6730
6731 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6732
6733         inttypes: Move some configure check to module 'imaxdiv'.
6734         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
6735         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
6736         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
6737
6738 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6739
6740         inttypes: Move some configure check to module 'imaxabs'.
6741         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
6742         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
6743         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
6744
6745 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6746
6747         inttypes: Remove configure tests that are not needed since 2009-12-31.
6748         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
6749         gl_cv_header_working_inttypes_h.
6750
6751 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6752
6753         * modules/strnlen (Depends-on): Remove memchr.
6754         The strnlen implementation doesn't need the memchr module's fixes; see
6755         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
6756
6757         strtol: remove dependency on wchar
6758         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
6759         * modules/strtol (Depends-on): Remove wchar.
6760
6761 2011-04-21  Eric Blake  <eblake@redhat.com>
6762
6763         passfd: fix test regression on Linux
6764         * modules/passfd-tests (configure.ac): Correct socketpair check.
6765
6766         passfd: speed up configure and drop unused code
6767         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
6768         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
6769         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
6770         Instead of probing at configure for unix_scm_rights_bsd44_way,
6771         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
6772         check to a struct member probe.
6773         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
6774         (sendfd, recvfd): Update preprocessor checks.
6775         * modules/passfd (Files): Reflect rename, and drop unused file.
6776         (Depends-on): Drop unused dependency.
6777
6778         passfd: allow compilation on mingw
6779         * modules/sys_socket (Depends-on): Add sys_uio.
6780         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
6781         iovec and a minimal struct msghdr.
6782         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
6783         * tests/test-sys_socket.c (main): Enhance test.
6784         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
6785         guaranteed to provide what we need.
6786         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
6787         * modules/passfd-tests (Depends-on): Add sys_wait.
6788         * tests/test-passfd.c (main): Skip test on mingw, for now.
6789         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
6790         partial 'struct msghdr' implementation.
6791
6792         sys_uio: new module
6793         * modules/sys_uio: New module.
6794         * modules/sys_uio-tests: Likewise.
6795         * lib/sys_uio.in.h: New file.
6796         * m4/sys_uio_h.m4: Likewise.
6797         * tests/test-sys_uio.c: Likewise.
6798         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
6799         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
6800
6801 2011-04-20  Jim Meyering  <meyering@redhat.com>
6802
6803         useless-if-before-free: avoid false-positive
6804         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
6805         disjunct so that it too requires a terminating ";".  Without that,
6806         this script would identify as useless one statement from gcc that
6807         was not:
6808           if (aligned_ptr)
6809             free (((void **) aligned_ptr) [-1]);
6810
6811 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
6812
6813         doc: update users.txt.
6814         * users.txt: Add barcode.
6815
6816 2011-04-19  Bruno Haible  <bruno@clisp.org>
6817
6818         ioctl: Remove link dependency on native Windows.
6819         * lib/fd-hook.h: Renamed from lib/close-hook.h.
6820         (gl_close_fn, gl_ioctl_fn): New types.
6821         (struct fd_hook): Renamed from struct close_hook. Change type of
6822         private_close_fn field. Add private_ioctl_fn field.
6823         (close_hook_fn): Add parameter for primary close method.
6824         (execute_close_hooks, execute_all_close_hooks): Likewise.
6825         (ioctl_hook_fn): New type.
6826         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
6827         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
6828         argument.
6829         (unregister_fd_hook): Renamed from unregister_close_hook.
6830         * lib/fd-hook.c: Renamed from lib/close-hook.c.
6831         Don't include <unistd.h>.
6832         (close): Remove undef.
6833         (anchor): Update.
6834         (execute_close_hooks): Add argument for primary close method.
6835         (execute_all_close_hooks): Likewise.
6836         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
6837         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
6838         argument. Allow each argument to be NULL.
6839         (unregister_fd_hook): Renamed from unregister_close_hook.
6840         * lib/close.c (rpl_close): Pass 'close' function pointer to
6841         execute_all_close_hooks.
6842         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
6843         (primary_ioctl): New function.
6844         (ioctl): Don't call ioctlsocket here. Instead, call
6845         execute_all_ioctl_hooks.
6846         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
6847         close method.
6848         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
6849         (fd_sockets_hook): Renamed from close_sockets_hook.
6850         (gl_sockets_startup, gl_sockets_cleanup): Update.
6851         * modules/fd-hook: Renamed from modules/close-hook. Update.
6852         * modules/close (Depends-on): Add fd-hook, remove close-hook.
6853         * modules/sockets (Depends-on): Likewise.
6854         * modules/ioctl (Depends-on): Add fd-hook.
6855         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
6856         GNULIB_SOCKET.
6857
6858 2011-04-19  Bruno Haible  <bruno@clisp.org>
6859
6860         Move the support of O_NONBLOCK in open() to the 'open' module.
6861         * modules/nonblocking (Depends-on): Remove 'open'.
6862         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
6863         gl_cv_have_open_O_NONBLOCK.
6864         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
6865         O_NONBLOCK support.
6866         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
6867
6868 2011-04-17  Bruno Haible  <bruno@clisp.org>
6869
6870         pipe2: Simplify code.
6871         * lib/pipe2.c (pipe2): Reduce code duplication.
6872
6873 2011-04-17  Bruno Haible  <bruno@clisp.org>
6874
6875         nonblocking: Add comment.
6876         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
6877
6878 2011-04-17  Bruno Haible  <bruno@clisp.org>
6879
6880         nonblocking: Add tests for sockets.
6881         * tests/test-nonblocking-socket.sh: New file.
6882         * tests/test-nonblocking-socket-main.c: New file.
6883         * tests/test-nonblocking-socket-child.c: New file.
6884         * tests/test-nonblocking-socket.h: New file.
6885         * tests/socket-server.h: New file.
6886         * tests/socket-client.h: New file.
6887         * modules/nonblocking-socket-tests: New file.
6888         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
6889
6890 2011-04-17  Bruno Haible  <bruno@clisp.org>
6891
6892         nonblocking: Add tests for pipes.
6893         * tests/test-nonblocking-pipe.sh: New file.
6894         * tests/test-nonblocking-pipe-main.c: New file.
6895         * tests/test-nonblocking-pipe-child.c: New file.
6896         * tests/test-nonblocking-pipe.h: New file.
6897         * tests/test-nonblocking-writer.h: New file.
6898         * tests/test-nonblocking-reader.h: New file.
6899         * tests/test-nonblocking-misc.h: New file.
6900         * modules/nonblocking-pipe-tests: New file.
6901         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
6902
6903 2011-04-16  Bruno Haible  <bruno@clisp.org>
6904
6905         gettext: Clarify the needed programmer actions.
6906         * modules/gettext (Notice): New field.
6907         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
6908
6909 2011-04-16  Bruno Haible  <bruno@clisp.org>
6910
6911         strchrnul: Tweak last commit.
6912         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
6913         bug.
6914         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
6915         as in _GL_FUNCDECL_SYS.
6916         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
6917         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
6918
6919 2011-04-15  Eric Blake  <eblake@redhat.com>
6920
6921         strchrnul: work around cygwin bug
6922         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
6923         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
6924         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
6925         * modules/string (Makefile.am): Substitute it.
6926         * lib/string.in.h (strchrnul): Use it.
6927
6928 2011-04-15  Bruno Haible  <bruno@clisp.org>
6929
6930         Don't require lib/stdio-write.c when only module 'stdio' is used.
6931         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
6932         invocation.
6933         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
6934
6935 2011-04-14  Bruno Haible  <bruno@clisp.org>
6936
6937         Support non-blocking pipe I/O in read() on native Windows.
6938         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
6939         (read): New declaration.
6940         * lib/read.c: New file.
6941         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
6942         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
6943         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
6944         vscanf): New declarations.
6945         * lib/stdio-read.c: New file.
6946         * m4/read.m4: New file.
6947         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
6948         REPLACE_READ.
6949         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
6950         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6951         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
6952         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
6953         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
6954         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6955         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
6956         * modules/read: New file.
6957         * modules/nonblocking (Files): Add lib/stdio-read.c.
6958         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
6959         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
6960         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6961         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
6962         * modules/pread (Depends-on): Add read.
6963         * modules/safe-read (Depends-on): Likewise.
6964         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
6965         gets, scanf, vfscanf, vscanf): Verify signatures.
6966         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
6967         problem with non-blocking pipes.
6968         * doc/posix-functions/fgetc.texi: Likewise.
6969         * doc/posix-functions/fgets.texi: Likewise.
6970         * doc/posix-functions/fread.texi: Likewise.
6971         * doc/posix-functions/fscanf.texi: Likewise.
6972         * doc/posix-functions/getc.texi: Likewise.
6973         * doc/posix-functions/getchar.texi: Likewise.
6974         * doc/posix-functions/gets.texi: Likewise.
6975         * doc/posix-functions/scanf.texi: Likewise.
6976         * doc/posix-functions/vfscanf.texi: Likewise.
6977         * doc/posix-functions/vscanf.texi: Likewise.
6978
6979 2011-04-14  Bruno Haible  <bruno@clisp.org>
6980
6981         Support non-blocking pipe I/O in write() on native Windows.
6982         * lib/write.c (rpl_write): Split a write request that failed merely
6983         because the byte count was larger than the pipe buffer's size.
6984         * doc/posix-functions/write.texi: Mention the problem with large byte
6985         counts.
6986
6987 2011-04-14  Bruno Haible  <bruno@clisp.org>
6988
6989         wchar: Ensure that wchar_t gets defined on uClibc.
6990         * lib/wchar.in.h: On uClibc, include <stddef.h>.
6991         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
6992
6993 2011-04-13  Bruno Haible  <bruno@clisp.org>
6994
6995         safe-write, full-read: Avoid unnecessary compilation units.
6996         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
6997         (Depends-on): Remove safe-read. Add ssize_t.
6998         * modules/full-read (Files): Add lib/full-write.c.
6999         (Depends-on): Add full-write.
7000
7001 2011-04-13  Bruno Haible  <bruno@clisp.org>
7002
7003         Support non-blocking pipe I/O and SIGPIPE in pwrite().
7004         * modules/pwrite (Depends-on): Add 'write'.
7005
7006 2011-04-13  Bruno Haible  <bruno@clisp.org>
7007
7008         Support non-blocking pipe I/O in write() on native Windows.
7009         * lib/unistd.in.h (write): Enable replacement also if
7010         GNULIB_UNISTD_H_NONBLOCKING is 1.
7011         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
7012         (rpl_write): When failing to write on a non-blocking pipe, change
7013         errno from ENOSPC to EAGAIN.
7014         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
7015         putchar, puts, vfprintf, vprintf): Enable replacement also if
7016         GNULIB_STDIO_H_NONBLOCKING is 1.
7017         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
7018         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
7019         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
7020         CALL_WITH_SIGPIPE_EMULATION.
7021         (CALL_WITH_SIGPIPE_EMULATION): Use them.
7022         * m4/nonblocking.m4: New file.
7023         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
7024         for non-blocking I/O support.
7025         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7026         GNULIB_UNISTD_H_NONBLOCKING.
7027         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
7028         required for non-blocking I/O support.
7029         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
7030         * modules/nonblocking (Files): Add m4/nonblocking.m4,
7031         lib/stdio-write.c, m4/asm-underscore.m4.
7032         (Depends-on): Add stdio, unistd.
7033         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
7034         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
7035         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
7036         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
7037         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
7038         problem with non-blocking pipes.
7039         * doc/posix-functions/fputc.texi: Likewise.
7040         * doc/posix-functions/fputs.texi: Likewise.
7041         * doc/posix-functions/fwrite.texi: Likewise.
7042         * doc/posix-functions/printf.texi: Likewise.
7043         * doc/posix-functions/putc.texi: Likewise.
7044         * doc/posix-functions/putchar.texi: Likewise.
7045         * doc/posix-functions/puts.texi: Likewise.
7046         * doc/posix-functions/vfprintf.texi: Likewise.
7047         * doc/posix-functions/vprintf.texi: Likewise.
7048         * doc/posix-functions/write.texi: Likewise.
7049
7050 2011-04-10  Jim Meyering  <meyering@redhat.com>
7051
7052         maint.mk: prohibit doubled words
7053         Detect them also when they're separated by a newline.
7054         There are 3 ways to customize it:
7055           - disable the test on a per file basis, as usual with rules using
7056             $(VC_LIST_EXCEPT)
7057           - replace the default doubled-word-selecting regexp (affects all files)
7058           - ignore a particular file-vs-doubled-word match
7059         I nearly used that last one to ignore the "is is" match in
7060         coreutils' NEWS file, since the text was "ls -is is ..."
7061         To do that, I would have added this line to cfg.mk:
7062           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
7063         but it would have ignored any "is is" match in NEWS.
7064         Low probability, but still...
7065         Instead, I changed the text, slightly:
7066           -  ls -is is now consistent with ls -lis in ignoring values returned
7067           +  "ls -is" is now consistent with ls -lis in ignoring values returned
7068         * top/maint.mk (prohibit_double_word_RE_): Provide default.
7069         (prohibit_doubled_word_): Define.
7070         (sc_prohibit_doubled_word): New rule.
7071         (sc_prohibit_the_the): Remove.  Subsumed by the above.
7072
7073 2011-04-10  Jim Meyering  <meyering@redhat.com>
7074
7075         maint: fix doubled-word typo in comment
7076         * m4/gethostname.m4: s/is is/it is/
7077         * m4/getdomainname.m4: Likewise.
7078
7079 2011-04-10  Jim Meyering  <meyering@redhat.com>
7080
7081         maint: remove doubled word: s/it it/it/
7082         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
7083
7084 2011-04-10  Jim Meyering  <meyering@redhat.com>
7085
7086         maint.mk: remove useless semicolon and backslash
7087         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
7088         semicolon and backslash.
7089
7090 2011-04-10  Bruno Haible  <bruno@clisp.org>
7091
7092         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
7093         * modules/stdint-tests (Depends-on): Add wchar.
7094
7095 2011-04-10  Jim Meyering  <meyering@redhat.com>
7096
7097         maint: remove doubled words in comments, e.g., s/a a/a/
7098         * lib/strptime.c (day_of_the_week): s/the the/the/
7099         * tests/test-chown.h (test_chown): s/a a/a/
7100
7101         test-chown.h: correct a cast
7102         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
7103         when the destination is a stat.st_gid.
7104
7105 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
7106
7107         getaddrinfo: Fix test for sa_len member.
7108         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
7109         include <sys/types.h> before <sys/socket.h>.
7110
7111 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
7112
7113         maint: change "can not" to "cannot"
7114         * doc/posix-functions/iconv.texi (iconv): This one crossed line
7115         boundaries.
7116
7117 2011-04-09  Jim Meyering  <meyering@redhat.com>
7118
7119         maint: change "a a" to "a"
7120         * tests/test-lchown.h (test_lchown): s/a a/a/
7121
7122         maint.mk: prohibit \<the the\>
7123         * top/maint.mk (sc_prohibit_the_the): New rule.
7124
7125         maint: fix "the the" in comment
7126         * lib/count-one-bits.h: s/the the/the/
7127
7128         maint: change "can not" to "cannot"
7129         But do not change the occurrences in maintain.texi or in
7130         build-aux/po/Makefile.in.in, which I presume comes from gettext.
7131         * doc/gnulib-tool.texi: s/can not/cannot/
7132         * doc/posix-functions/accept.texi (accept): Likewise.
7133         * doc/posix-functions/socket.texi (socket): Likewise.
7134         * lib/mbrtowc.c: Likewise.
7135
7136         maint.mk: prohibit use of "can not"
7137         * top/maint.mk (sc_prohibit_can_not): New rule.
7138         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
7139
7140 2011-04-09  Bruno Haible  <bruno@clisp.org>
7141
7142         careadlinkat: Guard against misuse of careadlinkatcwd.
7143         * lib/careadlinkat.c: Include <stdlib.h>.
7144         (careadlinkatcwd): Check that the fd argument is as expected.
7145
7146 2011-04-09  Bruno Haible  <bruno@clisp.org>
7147
7148         careadlinkat: Use common coding style.
7149         * lib/careadlinkat.c: Move gnulib includes after system includes.
7150
7151 2011-04-09  Bruno Haible  <bruno@clisp.org>
7152
7153         careadlinkat: Clarify specification.
7154         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
7155         (careadlinkatcwd): Add comment.
7156         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
7157
7158 2011-04-09  Bruno Haible  <bruno@clisp.org>
7159
7160         areadlinkat: Avoid link error on many platforms.
7161         * modules/areadlinkat (Depends-on): Add areadlink.
7162
7163 2011-04-09  Bruno Haible  <bruno@clisp.org>
7164
7165         allocator, careadlinkat: Fix double-inclusion guard.
7166         * lib/allocator.h: Fix double-inclusion guard.
7167         * lib/careadlinkat.h: Likewise.
7168
7169 2011-04-09  Bruno Haible  <bruno@clisp.org>
7170
7171         relocatable-prog-wrapper: Update after module 'areadlink' changed.
7172         * lib/relocwrapper.c: Update dependencies hierarchy.
7173         * build-aux/install-reloc: Update list of files to be compiled.
7174         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
7175         lib/allocator.[hc].
7176
7177 2011-04-08  Eric Blake  <eblake@redhat.com>
7178
7179         strftime: silence gnulib-tool warning
7180         * modules/strftime-tests (Depends-on): Drop automatic dependency.
7181
7182 2011-04-08  Bruno Haible  <bruno@clisp.org>
7183
7184         verify: Fix syntax error with GCC 4.6 in C++ mode.
7185         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
7186         (HAVE_STATIC_ASSERT): New macro.
7187         (verify_true, verify): Use 'static_assert' if it is supported and
7188         '_Static_assert' is not supported.
7189
7190 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
7191
7192         allocator: New module.
7193         * modules/allocator, lib/allocator.c: New files.
7194         * lib/allocator.h (stdlib_allocator): New decl.
7195         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
7196         Remove.  Do not include <stdlib.h>.
7197         (careadlinkat): Use stdlib_allocator instead of rolling our own.
7198         * modules/careadlinkat (Files): Remove lib/allocator.h.
7199         (Depends-on): Add allocator.
7200
7201         stdlib: let modules use system malloc, realloc
7202         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
7203         if !_GL_USE_STDLIB_ALLOC.
7204         (malloc, realloc): Limit this change to a smaller scope.
7205
7206         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
7207         (malloc, realloc): Don't #undef; no longer needed.
7208         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7209         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7210         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
7211         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7212         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7213         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7214         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7215         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
7216
7217         careadlinkat: rename members to avoid problem
7218         * lib/allocator.h (struct allocator): Rename members from
7219         malloc/realloc to allocate/reallocate, to avoid problems if malloc
7220         and realloc are #define'd.  Reported by Eric Blake in
7221         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
7222         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
7223
7224 2011-04-08  Eric Blake  <eblake@redhat.com>
7225
7226         nonblocking: reduce dependency
7227         * tests/test-nonblocking.c: Only test sockets when in use.
7228         * modules/nonblocking-tests (Depends-on): Drop socket.
7229         (Makefile.am): Link even if sockets are not present.
7230         * modules/pipe2-tests (Makefile.am): Likewise.
7231         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
7232
7233         pipe2: fix O_NONBLOCK support on mingw
7234         * modules/pipe2 (Depends-on): Add nonblocking.
7235         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
7236         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
7237         * tests/test-nonblocking.c (main): Likewise.
7238         * modules/pipe2-tests (Makefile.am): Avoid link failure.
7239
7240         fcntl-h: fix O_ACCMODE on cygwin
7241         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
7242         * lib/fcntl.in.h (O_ACCMODE): Fix it.
7243
7244         pipe-filter: drop O_NONBLOCK workarounds
7245         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
7246         * modules/pipe-filter-ii (Depends-on): Likewise.
7247         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
7248
7249         nonblocking: provide O_NONBLOCK for mingw
7250         * modules/nonblocking (Depends-on): Add open.
7251         (configure.ac): Set new witness macro.
7252         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
7253         * modules/fcntl-h (Makefile.am): Substitute it.
7254         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
7255         nonblocking module is in use.
7256         * lib/nonblocking.c: Adjust portability test.
7257         * lib/open.c (open): Don't let native open see gnulib flag.
7258         * tests/test-fcntl-h.c (main): Enhance test.
7259         * tests/test-open.h (test_open): Likewise.
7260         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
7261
7262         careadlinkat: fix compilation error on mingw
7263         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
7264         within struct allocator.
7265
7266 2011-04-06  Eric Blake  <eblake@redhat.com>
7267
7268         binary-io: relicense under LGPLv2+
7269         * modules/binary-io (License): Relax to LGPLv2+.
7270         Requested for libvirt, and required by pipe2.
7271
7272 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
7273
7274         verify: use _Static_assert if available
7275         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
7276         (verify_true, verify): Use it if available.  This generates better
7277         diagnostics with GCC 4.6.0 and later.
7278
7279 2011-04-05  Bruno Haible  <bruno@clisp.org>
7280
7281         Remove leftover generated .h files after config.status changed.
7282
7283         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
7284         GL_GENERATE_ALLOCA_H.
7285         * modules/alloca-opt (Makefile.am): Remove alloca.h if
7286         GL_GENERATE_ALLOCA_H evaluates to false.
7287
7288         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
7289         GL_GENERATE_ARGZ_H.
7290         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
7291         evaluates to false.
7292
7293         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
7294         GL_GENERATE_BYTESWAP_H.
7295         * modules/byteswap (Makefile.am): Remove byteswap.h if
7296         GL_GENERATE_BYTESWAP_H evaluates to false.
7297
7298         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
7299         GL_GENERATE_ERRNO_H.
7300         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
7301         evaluates to false.
7302
7303         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
7304         GL_GENERATE_FLOAT_H.
7305         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
7306         evaluates to false.
7307
7308         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
7309         GL_GENERATE_FNMATCH_H.
7310         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
7311         GL_GENERATE_FNMATCH_H evaluates to false.
7312
7313         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
7314         GL_GENERATE_GLOB_H.
7315         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
7316         evaluates to false.
7317
7318         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
7319         automake conditional GL_GENERATE_ICONV_H.
7320         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
7321         evaluates to false.
7322
7323         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
7324         GL_GENERATE_NETINET_IN_H.
7325         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
7326         GL_GENERATE_NETINET_IN_H evaluates to false.
7327
7328         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
7329         conditional GL_GENERATE_PTHREAD_H.
7330         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
7331         * modules/pthread (Makefile.am): Remove pthread.h if
7332         GL_GENERATE_PTHREAD_H evaluates to false.
7333
7334         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
7335         GL_GENERATE_SCHED_H.
7336         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
7337         evaluates to false.
7338
7339         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
7340         conditional GL_GENERATE_SELINUX_CONTEXT_H.
7341         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
7342         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
7343
7344         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
7345         GL_GENERATE_STDARG_H.
7346         * modules/stdarg (Makefile.am): Remove stdarg.h if
7347         GL_GENERATE_STDARG_H evaluates to false.
7348
7349         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
7350         GL_GENERATE_STDBOOL_H.
7351         * modules/stdbool (Makefile.am): Remove stdbool.h if
7352         GL_GENERATE_STDBOOL_H evaluates to false.
7353
7354         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
7355         conditional GL_GENERATE_STDDEF_H.
7356         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
7357         * modules/stddef (Makefile.am): Remove stddef.h if
7358         GL_GENERATE_STDDEF_H evaluates to false.
7359
7360         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
7361         GL_GENERATE_STDINT_H.
7362         * modules/stdint (Makefile.am): Remove stdint.h if
7363         GL_GENERATE_STDINT_H evaluates to false.
7364
7365         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
7366         GL_GENERATE_SYSEXITS_H.
7367         * modules/sysexits (Makefile.am): Remove sysexits.h if
7368         GL_GENERATE_SYSEXITS_H evaluates to false.
7369
7370         Reported by Karl Berry and Ralf Wildenhues.
7371
7372 2011-04-05  Bruno Haible  <bruno@clisp.org>
7373
7374         Ensure to rebuild generated .h files when config.status has changed.
7375         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
7376         config.status.
7377         * modules/ctype (Makefile.am): Likewise.
7378         * modules/dirent (Makefile.am): Likewise.
7379         * modules/errno (Makefile.am): Likewise.
7380         * modules/fcntl-h (Makefile.am): Likewise.
7381         * modules/float (Makefile.am): Likewise.
7382         * modules/getopt-posix (Makefile.am): Likewise.
7383         * modules/glob (Makefile.am): Likewise.
7384         * modules/iconv-h (Makefile.am): Likewise.
7385         * modules/inttypes (Makefile.am): Likewise.
7386         * modules/langinfo (Makefile.am): Likewise.
7387         * modules/locale (Makefile.am): Likewise.
7388         * modules/math (Makefile.am): Likewise.
7389         * modules/netdb (Makefile.am): Likewise.
7390         * modules/netinet_in (Makefile.am): Likewise.
7391         * modules/poll-h (Makefile.am): Likewise.
7392         * modules/pthread (Makefile.am): Likewise.
7393         * modules/pty (Makefile.am): Likewise.
7394         * modules/sched (Makefile.am): Likewise.
7395         * modules/search (Makefile.am): Likewise.
7396         * modules/selinux-h (Makefile.am): Likewise.
7397         * modules/signal (Makefile.am): Likewise.
7398         * modules/spawn (Makefile.am): Likewise.
7399         * modules/stdarg (Makefile.am): Likewise.
7400         * modules/stdbool (Makefile.am): Likewise.
7401         * modules/stddef (Makefile.am): Likewise.
7402         * modules/stdint (Makefile.am): Likewise.
7403         * modules/stdio (Makefile.am): Likewise.
7404         * modules/stdlib (Makefile.am): Likewise.
7405         * modules/string (Makefile.am): Likewise.
7406         * modules/strings (Makefile.am): Likewise.
7407         * modules/sys_file (Makefile.am): Likewise.
7408         * modules/sys_ioctl (Makefile.am): Likewise.
7409         * modules/sys_select (Makefile.am): Likewise.
7410         * modules/sys_socket (Makefile.am): Likewise.
7411         * modules/sys_stat (Makefile.am): Likewise.
7412         * modules/sys_time (Makefile.am): Likewise.
7413         * modules/sys_times (Makefile.am): Likewise.
7414         * modules/sys_utsname (Makefile.am): Likewise.
7415         * modules/sys_wait (Makefile.am): Likewise.
7416         * modules/sysexits (Makefile.am): Likewise.
7417         * modules/termios (Makefile.am): Likewise.
7418         * modules/time (Makefile.am): Likewise.
7419         * modules/unistd (Makefile.am): Likewise.
7420         * modules/wchar (Makefile.am): Likewise.
7421         * modules/wctype-h (Makefile.am): Likewise.
7422         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
7423
7424 2011-04-05  Bruno Haible  <bruno@clisp.org>
7425
7426         pipe2: Relicense under LGPLv2+.
7427         * modules/pipe2 (License): Change to LGPLv2+.
7428         Requested by Eric Blake, for libvirt.
7429
7430 2011-04-05  Bruce Korb  <bkorb@gnu.org>
7431
7432         bootstrap: compute gnulib_extra_files after updating build_aux
7433         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
7434         change build_aux or also supply gnulib_extra_files.  Handle correctly.
7435
7436 2011-04-05  Eric Blake  <eblake@redhat.com>
7437
7438         bootstrap: preserve git whitelist item sorting
7439         * build-aux/bootstrap (sort_patterns): New function.
7440         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
7441
7442 2011-04-05  Simon Josefsson  <simon@josefsson.org>
7443
7444         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
7445         sc_space_tab check.
7446
7447 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
7448
7449         areadlink, areadlinkat: rewrite in terms of careadlinkat
7450         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
7451         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
7452         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
7453         (malloc, realloc): Remove #undefs.
7454         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
7455         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
7456         readlink, ssize_t, stdint, unistd.
7457         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
7458         areadlink, stdint.
7459
7460         careadlinkat: new module
7461         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
7462         * modules/careadlinkat: New files, written by me with
7463         a review and feedback from Ben Pfaff in
7464         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
7465
7466 2011-04-01  Bruno Haible  <bruno@clisp.org>
7467
7468         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
7469         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
7470         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
7471         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
7472         Reported by Bruce Korb <bruce.korb@gmail.com>.
7473
7474 2011-04-01  Bruno Haible  <bruno@clisp.org>
7475
7476         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
7477         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
7478         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
7479         * modules/wcpcpy (Depends-on): Add extensions.
7480         * modules/wcpncpy (Depends-on): Likewise.
7481         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
7482         systems.
7483         * doc/posix-functions/wcpncpy.texi: Likewise.
7484         * doc/posix-functions/wcwidth.texi: Likewise.
7485
7486 2011-03-31  Eric Blake  <eblake@redhat.com>
7487
7488         nonblocking: fix mingw test failures
7489         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
7490         non-blocking flag on regular file.
7491         (get_nonblocking_flag): Set errno on invalid fd.
7492         * tests/test-nonblocking.c (main): Avoid test failure on
7493         directories if fchdir is not active.
7494         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
7495
7496 2011-03-31  Bruno Haible  <bruno@clisp.org>
7497
7498         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
7499         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
7500         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
7501         Reported by Simon Josefsson <simon@josefsson.org>.
7502
7503 2011-03-31  Bruno Haible  <bruno@clisp.org>
7504         and Eric Blake  <eblake@redhat.com>
7505
7506         nonblocking: new module
7507         * modules/nonblocking: New module.
7508         * modules/nonblocking-tests: Likewise.
7509         * lib/nonblocking.h: New file.
7510         * lib/nonblocking.c: Likewise.
7511         * tests/test-nonblocking.c: New test.
7512         * lib/ioctl.c (ioctl) [mingw]: Update comment.
7513
7514 2011-03-30  Bruno Haible  <bruno@clisp.org>
7515
7516         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
7517         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
7518         instead of 'printf' format for GCC >= 4.4.
7519         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
7520         (fprintf, printf, vfprintf, vprintf): Declare with
7521         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
7522         the system's vfprintf() function.
7523         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
7524
7525 2011-03-30  Eric Blake  <eblake@redhat.com>
7526
7527         passfd: fix scoping bug
7528         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
7529         before sendmsg/recvmsg.
7530
7531         passfd: standardize coding conventions
7532         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
7533         can be learned at compile time.
7534         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
7535         ifdefs.
7536         (sendfd, recvfd): Follow gnulib code conventions.
7537
7538         passfd: fix incorrect sendmsg arguments
7539         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
7540         incorrect msg_controllen value.
7541         * modules/passfd-tests (Depends-on): Check for alarm.
7542         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
7543         Reported by Bastien ROUCARIES.
7544
7545 2011-03-30  Bruno Haible  <bruno@clisp.org>
7546
7547         c-strcasestr: Relicense under LGPLv2+.
7548         * modules/c-strcasestr (License): Change to LGPLv2+.
7549         Requested by Eric Blake, for libvirt.
7550
7551 2011-03-30  Simon Josefsson  <simon@josefsson.org>
7552
7553         * users.txt: Add libidn2.  Fix libtasn1 link.
7554
7555 2011-03-30  Jim Meyering  <meyering@redhat.com>
7556
7557         tests: readlink* ("",... fails with EINVAL on newer kernels
7558         readlink and readlinkat have typically failed with ENOENT for
7559         the invalid, empty file name,  "".  However, with the advent
7560         of linux-2.6.39, they fail with EINVAL.
7561         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
7562         when operating on the empty file name.
7563         * tests/test-readlink.h (test_readlink): Likewise.
7564
7565 2011-03-29  Bruno Haible  <bruno@clisp.org>
7566
7567         Relicense some modules under LGPLv2+, for libidn2.
7568         * modules/array-mergesort (License): Change to LGPLv2+.
7569         * modules/c-strcaseeq (License): Likewise.
7570         * modules/striconveh (License): Likewise.
7571         * modules/striconveha (License): Likewise.
7572         * modules/uniconv/base (License): Likewise.
7573         * modules/uniconv/u8-conv-from-enc (License): Likewise.
7574         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
7575         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
7576         * modules/unictype/base (License): Likewise.
7577         * modules/unictype/bidiclass-of (License): Likewise.
7578         * modules/unictype/category-M (License): Likewise.
7579         * modules/unictype/category-none (License): Likewise.
7580         * modules/unictype/category-of (License): Likewise.
7581         * modules/unictype/category-test (License): Likewise.
7582         * modules/unictype/category-test-withtable (License): Likewise.
7583         * modules/unictype/combining-class (License): Likewise.
7584         * modules/unictype/joiningtype-of (License): Likewise.
7585         * modules/unictype/scripts (License): Likewise.
7586         * modules/uninorm/base (License): Likewise.
7587         * modules/uninorm/canonical-decomposition (License): Likewise.
7588         * modules/uninorm/composition (License): Likewise.
7589         * modules/uninorm/decompose-internal (License): Likewise.
7590         * modules/uninorm/decomposition-table (License): Likewise.
7591         * modules/uninorm/nfc (License): Likewise.
7592         * modules/uninorm/nfd (License): Likewise.
7593         * modules/uninorm/u32-normalize (License): Likewise.
7594         * modules/unistr/base (License): Likewise.
7595         * modules/unistr/u32-cpy (License): Likewise.
7596         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
7597         * modules/unistr/u32-to-u8 (License): Likewise.
7598         * modules/unistr/u32-uctomb (License): Likewise.
7599         * modules/unistr/u8-check (License): Likewise.
7600         * modules/unistr/u8-mblen (License): Likewise.
7601         * modules/unistr/u8-mbtouc (License): Likewise.
7602         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
7603         * modules/unistr/u8-mbtoucr (License): Likewise.
7604         * modules/unistr/u8-prev (License): Likewise.
7605         * modules/unistr/u8-strlen (License): Likewise.
7606         * modules/unistr/u8-to-u32 (License): Likewise.
7607         * modules/unistr/u8-uctomb (License): Likewise.
7608         * modules/unitypes (License): Likewise.
7609         Requested by Simon Josefsson.
7610
7611 2011-03-29  Simon Josefsson  <simon@josefsson.org>
7612
7613         lib-symbol-visibility: Add a notice.
7614         * modules/lib-symbol-visibility (Notice): New field.
7615
7616 2011-03-29  Bruno Haible  <bruno@clisp.org>
7617
7618         getaddrinfo: Doc fix.
7619         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
7620         section "fixed in Gnulib".
7621
7622 2011-03-28  Simon Josefsson  <simon@josefsson.org>
7623
7624         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
7625         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
7626
7627 2011-03-26  Bruno Haible  <bruno@clisp.org>
7628
7629         unictype/property-byname: Reduce the number of load-time relocations.
7630         * lib/unictype/pr_byname.c: Include <stdlib.h>.
7631         (UC_PROPERTY_INDEX_*): New enumeration values.
7632         (uc_property_byname): Convert an index from the lookup table to an
7633         uc_property_t.
7634         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
7635         values.
7636
7637 2011-03-26  Bruno Haible  <bruno@clisp.org>
7638
7639         unictype/property-byname: Allow omitted word separators and aliases.
7640         * lib/unictype/pr_byname.gperf: Add property names without word
7641         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
7642         for 'space'.
7643
7644 2011-03-26  Bruno Haible  <bruno@clisp.org>
7645
7646         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
7647         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
7648         also hyphens to space.
7649         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
7650         without spaces.
7651         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
7652
7653 2011-03-26  Bruno Haible  <bruno@clisp.org>
7654
7655         unictype/joiningtype-byname: Recognize long names as well.
7656         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
7657         a long name.
7658         * lib/unictype/joiningtype_byname.c: Include <string.h>,
7659         unictype/joiningtype_byname.h.
7660         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
7661         * lib/unictype/joiningtype_byname.gperf: New file.
7662         * modules/unictype/joiningtype-byname (Files): Add
7663         lib/unictype/joiningtype_byname.gperf.
7664         (Depends-on): Add gperf.
7665         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
7666         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
7667         long names.
7668
7669         Tests for module 'unictype/joiningtype-longname'.
7670         * modules/unictype/joiningtype-longname-tests: New file.
7671         * tests/unictype/test-joiningtype_longname.c: New file.
7672
7673         New module 'unictype/joiningtype-longname'.
7674         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
7675         * lib/unictype/joiningtype_longname.c: New file.
7676         * modules/unictype/joiningtype-longname: New file.
7677         * modules/unictype/joiningtype-all (Depends-on): Add
7678         unictype/joiningtype-longname.
7679
7680 2011-03-26  Bruno Haible  <bruno@clisp.org>
7681
7682         unictype/bidiclass-byname: Recognize long names as well.
7683         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
7684         name.
7685         * lib/unictype/bidi_byname.c: Include <string.h>,
7686         unictype/bidi_byname.h.
7687         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
7688         * lib/unictype/bidi_byname.gperf: New file.
7689         * modules/unictype/bidiclass-byname (Files): Add
7690         lib/unictype/bidi_byname.gperf.
7691         (Depends-on): Add gperf.
7692         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
7693         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
7694         long names.
7695
7696         Tests for module 'unictype/bidiclass-longname'.
7697         * modules/unictype/bidiclass-longname-tests: New file.
7698         * tests/unictype/test-bidi_longname.c: New file.
7699
7700         New module 'unictype/bidiclass-longname'.
7701         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
7702         * lib/unictype/bidi_longname.c: New file.
7703         * modules/unictype/bidiclass-longname: New file.
7704         * modules/unictype/bidiclass-all (Depends-on): Add
7705         unictype/bidiclass-longname.
7706
7707 2011-03-26  Bruno Haible  <bruno@clisp.org>
7708
7709         unictype/bidi*: Rename modules.
7710         * modules/unictype/bidiclass-all: Renamed from
7711         modules/unictype/bidicategory-all.
7712         * modules/unictype/bidiclass-name: Renamed from
7713         modules/unictype/bidiclass-name.
7714         (Description): Update.
7715         * modules/unictype/bidiclass-name-tests: Renamed from
7716         modules/unictype/bidicategory-name-tests.
7717         * modules/unictype/bidiclass-byname: Renamed from
7718         modules/unictype/bidicategory-byname.
7719         (Description): Update.
7720         * modules/unictype/bidiclass-byname-tests: Renamed from
7721         modules/unictype/bidicategory-byname-tests.
7722         * modules/unictype/bidiclass-of: Renamed from
7723         modules/unictype/bidicategory-of.
7724         (Description): Update.
7725         * modules/unictype/bidiclass-of-tests: Renamed from
7726         modules/unictype/bidicategory-of-tests.
7727         * modules/unictype/bidiclass-test: Renamed from
7728         modules/unictype/bidicategory-test.
7729         (Description): Update.
7730         * modules/unictype/bidiclass-test-tests: Renamed from
7731         modules/unictype/bidicategory-test-tests.
7732         * modules/unictype/bidicategory-all: New file, a simple redirection.
7733         * modules/unictype/bidicategory-name: Likewise.
7734         * modules/unictype/bidicategory-byname: Likewise.
7735         * modules/unictype/bidicategory-of: Likewise.
7736         * modules/unictype/bidicategory-test: Likewise.
7737         * modules/unictype/property-bidi-* (Dependencies): Update.
7738         * lib/unictype/bidi_*.c: Update comment.
7739
7740 2011-03-26  Bruno Haible  <bruno@clisp.org>
7741
7742         unictype/bidi*: Rename functions, part 2.
7743         * modules/unictype/bidicategory-name (configure.ac): Update required
7744         libunistring version.
7745         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
7746
7747 2011-03-25  Bruno Haible  <bruno@clisp.org>
7748
7749         New module 'unictype/combining-class-all'.
7750         * modules/unictype/combining-class-all: New file.
7751
7752         Tests for module 'unictype/combining-class-byname'.
7753         * modules/unictype/combining-class-byname-tests: New file.
7754         * tests/unictype/test-combiningclass_byname.c: New file.
7755
7756         New module 'unictype/combining-class-byname'.
7757         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
7758         * lib/unictype/combiningclass_byname.c: New file.
7759         * lib/unictype/combiningclass_byname.gperf: New file.
7760         * modules/unictype/combining-class-byname: New file.
7761
7762         Tests for module 'unictype/combining-class-longname'.
7763         * modules/unictype/combining-class-longname-tests: New file.
7764         * tests/unictype/test-combiningclass_longname.c: New file.
7765
7766         New module 'unictype/combining-class-longname'.
7767         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
7768         * lib/unictype/combiningclass_longname.c: New file.
7769         * modules/unictype/combining-class-longname: New file.
7770
7771         Tests for module 'unictype/combining-class-name'.
7772         * modules/unictype/combining-class-name-tests: New file.
7773         * tests/unictype/test-combiningclass_name.c: New file.
7774
7775         New module 'unictype/combining-class-name'.
7776         * lib/unictype.in.h (uc_combining_class_name): New declaration.
7777         * lib/unictype/combiningclass_name.c: New file.
7778         * modules/unictype/combining-class-name: New file.
7779
7780 2011-03-25  Bruno Haible  <bruno@clisp.org>
7781
7782         unictype/combining-class: Rename source files.
7783         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
7784         of unictype/combining.h.
7785         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
7786         Update.
7787         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
7788         * modules/unictype/combining-class (Description): Fix.
7789         (Files, Makefile.am): Update.
7790         * tests/unictype/test-combiningclass.c: Renamed from
7791         tests/unictype/test-combining.c.
7792         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
7793
7794 2011-03-25  Bruno Haible  <bruno@clisp.org>
7795
7796         unictype: Update list of canonical combining classes.
7797         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
7798
7799 2011-03-25  Bruno Haible  <bruno@clisp.org>
7800
7801         unictype/category-byname: Recognize long names as well.
7802         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
7803         a long name.
7804         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
7805         unictype/categ_byname.h.
7806         (UC_CATEGORY_INDEX_*): New enumeration values.
7807         (uc_general_category_byname): Use uc_general_category_lookup and
7808         convert from index to value.
7809         * lib/unictype/categ_byname.gperf: New file.
7810         * modules/unictype/category-byname (Files): Add
7811         lib/unictype/categ_byname.gperf.
7812         (Depends-on): Add gperf.
7813         (Makefile.am): Add rule for generating unictype/categ_byname.h.
7814         * tests/unictype/test-categ_byname.c (main): Test the recognition of
7815         long names.
7816
7817         Tests for module 'unictype/category-longname'.
7818         * modules/unictype/category-longname-tests: New file.
7819         * tests/unictype/test-categ_longname.c: New file.
7820
7821         New module 'unictype/category-longname'.
7822         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
7823         * lib/unictype/categ_longname.c: New file.
7824         * modules/unictype/category-longname: New file.
7825         * modules/unictype/category-all (Depends-on): Add it.
7826
7827 2011-03-25  Bruno Haible  <bruno@clisp.org>
7828
7829         Tests for module 'unictype/category-LC'.
7830         * modules/unictype/category-LC-tests: New file.
7831         * tests/unictype/test-categ_LC.c: New file, automatically generated.
7832
7833         New module 'unictype/category-LC'.
7834         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
7835         (UC_CATEGORY_LC): New declaration.
7836         (UC_CASED_LETTER): New macro.
7837         * lib/gen-uni-tables.c (is_category_LC): New function.
7838         (output_categories): Also handle category LC.
7839         (UC_CATEGORY_MASK_LC): New enumeration value.
7840         (general_category_byname): Also handle category LC.
7841         * lib/unictype/categ_LC.c: New file.
7842         * lib/unictype/categ_LC.h: New file, automatically generated.
7843         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
7844         category LC.
7845         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
7846         * modules/unictype/category-LC: New file.
7847         * modules/unictype/category-byname (Depends-on): Add
7848         unictype/category-LC.
7849         * modules/unictype/category-all (Depends-on): Likewise.
7850
7851 2011-03-25  Eric Blake  <eblake@redhat.com>
7852
7853         xmalloc: revert yesterday's regression
7854         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
7855         realloc's underlying behavior (allowing allocation of zero-size
7856         objects, especially if malloc-gnu is also in use).
7857
7858 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
7859
7860         maint.mk: add missing version to VC-tag
7861         * top/maint.mk: git tag was missing actual tag name; add it.
7862
7863         valgrind: do leak checking, and exit with code 1 on error (not 0)
7864         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
7865         to VALGRIND.
7866
7867 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
7868
7869         posix-modules: say what it does.
7870         * posix-modules: Add a line to the --help output saying what it does.
7871
7872 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
7873
7874         xmalloc: Do not leak if underlying realloc is C99 compatible.
7875         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
7876         This avoids a leak on C99-based systems.  See
7877         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
7878
7879 2011-03-24  Eric Blake  <eblake@redhat.com>
7880
7881         realloc: document portability problem
7882         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
7883         passing 0 size to realloc.
7884
7885 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
7886
7887         doc: update users.txt
7888         * users.txt: Add cvsps, tmpwatch
7889
7890 2011-03-23  Matt Rice  <ratmice@gmail.com>
7891
7892         doc: update users.txt
7893         * users.txt: Add gdb.
7894
7895 2011-03-23  Jim Meyering  <meyering@redhat.com>
7896
7897         doc: update users.txt
7898         Looking through matches up to the following URL (there are still
7899         several more pages), I found several projects that use gnulib:
7900         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
7901         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
7902         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
7903
7904 2011-03-22  Bruno Haible  <bruno@clisp.org>
7905
7906         unictype/bidi*: Rename functions.
7907         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
7908         uc_bidi_class, uc_is_bidi_class): New declarations.
7909         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
7910         uc_bidi_category_byname.
7911         (uc_bidi_category_byname): New function.
7912         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
7913         u_bidi_category_name.
7914         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
7915         (uc_bidi_category_name): New function.
7916         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
7917         uc_bidi_category.
7918         (uc_bidi_category): New function.
7919         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
7920         uc_is_bidi_category. Invoke uc_bidi_class.
7921         (uc_is_bidi_category): New function.
7922         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
7923         instead of uc_bidi_category_byname.
7924         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
7925         instead of uc_bidi_category_name.
7926         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
7927         uc_bidi_category.
7928         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
7929         instead of uc_is_bidi_category.
7930
7931 2011-03-21  Bruno Haible  <bruno@clisp.org>
7932
7933         New module 'unictype/joininggroup-all'.
7934         * modules/unictype/joininggroup-all: New file.
7935
7936         Tests for module 'unictype/joininggroup-of'.
7937         * modules/unictype/joininggroup-of-tests: New file.
7938         * tests/unictype/test-joininggroup_of.c: New file.
7939         * tests/unictype/test-joininggroup_of.h: New file, automatically
7940         generated by gen-uni-tables.
7941
7942         New module 'unictype/joininggroup-of'.
7943         * modules/unictype/joininggroup-of: New file.
7944         * lib/unictype/joininggroup_of.c: New file.
7945         * lib/unictype/joininggroup_of.h: New file, automatically generated by
7946         gen-uni-tables.
7947
7948         Tests for module 'unictype/joininggroup-byname'.
7949         * modules/unictype/joininggroup-byname-tests: New file.
7950         * tests/unictype/test-joininggroup_byname.c: New file.
7951
7952         New module 'unictype/joininggroup-byname'.
7953         * modules/unictype/joininggroup-byname: New file.
7954         * lib/unictype/joininggroup_byname.c: New file.
7955         * lib/unictype/joininggroup_byname.gperf: New file.
7956
7957         Tests for module 'unictype/joininggroup-name'.
7958         * modules/unictype/joininggroup-name-tests: New file.
7959         * tests/unictype/test-joininggroup_name.c: New file.
7960
7961         New module 'unictype/joininggroup-name'.
7962         * modules/unictype/joininggroup-name: New file.
7963         * lib/unictype/joininggroup_name.c: New file.
7964         * lib/unictype/joininggroup_name.h: New file.
7965
7966         New module 'unictype/joiningtype-all'.
7967         * modules/unictype/joiningtype-all: New file.
7968
7969         Tests for module 'unictype/joiningtype-of'.
7970         * modules/unictype/joiningtype-of-tests: New file.
7971         * tests/unictype/test-joiningtype_of.c: New file.
7972         * tests/unictype/test-joiningtype_of.h: New file, automatically
7973         generated by gen-uni-tables.
7974
7975         New module 'unictype/joiningtype-of'.
7976         * modules/unictype/joiningtype-of: New file.
7977         * lib/unictype/joiningtype_of.c: New file.
7978         * lib/unictype/joiningtype_of.h: New file, automatically generated by
7979         gen-uni-tables.
7980
7981         Tests for module 'unictype/joiningtype-byname'.
7982         * modules/unictype/joiningtype-byname-tests: New file.
7983         * tests/unictype/test-joiningtype_byname.c: New file.
7984
7985         New module 'unictype/joiningtype-byname'.
7986         * modules/unictype/joiningtype-byname: New file.
7987         * lib/unictype/joiningtype_byname.c: New file.
7988
7989         Tests for module 'unictype/joiningtype-name'.
7990         * modules/unictype/joiningtype-name-tests: New file.
7991         * tests/unictype/test-joiningtype_name.c: New file.
7992
7993         New module 'unictype/joiningtype-name'.
7994         * modules/unictype/joiningtype-name: New file.
7995         * lib/unictype/joiningtype_name.c: New file.
7996
7997         unictype: Add support for Arabic shaping properties.
7998         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
7999         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
8000         declarations.
8001         (UC_JOINING_GROUP_*): New enumeration values.
8002         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
8003         declarations.
8004         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
8005         (unicode_joining_type): New variable.
8006         (UC_JOINING_GROUP_*): New enumeration values.
8007         (unicode_joining_group): New variable.
8008         (fill_arabicshaping, joining_type_as_c_identifier,
8009         output_joining_type_test, output_joining_type,
8010         joining_group_as_c_identifier, output_joining_group_test,
8011         output_joining_group): New functions.
8012         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
8013         fill_arabicshaping and output_joining_type_test, output_joining_type,
8014         output_joining_group_test, output_joining_group.
8015         Reported by Simon Josefsson.
8016
8017 2011-03-21  Jim Meyering  <meyering@redhat.com>
8018
8019         strftime: fix a bug in yesterday's change
8020         * lib/strftime.c (add): Accommodate width's initial value of -1.
8021         Otherwise, nstrftime would copy uninitialized data into
8022         the result buffer.
8023
8024 2011-03-21  Jim Meyering  <meyering@redhat.com>
8025
8026         tests: add strftime-tests module
8027         * tests/test-strftime.c: New file.
8028         * modules/strftime-tests: New module.
8029
8030 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
8031
8032         strftime: don't assume a byte count fits in 'int'
8033         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
8034         found this problem by static analysis, using gcc -Wstrict-overflow
8035         (GCC 4.5.2, x86-64).  This reported an optimization that depended
8036         on an integer overflow having undefined behavior, but it turns out
8037         that the argument is a size, which might not fit in 'int' anyway,
8038
8039 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
8040
8041         stdio: don't require ignore_value around fwrite
8042
8043         This patch works around libc bug 11959
8044         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
8045         Without this patch, applications must often write
8046         ignore_value (fwrite (...)) even though the ignore_value is
8047         not helpful here.  It's common to write many objects, using
8048         fwrite/printf/etc., and then use ferror to detect output error.
8049
8050         I considered making this patch optional, but decided against it,
8051         because libc is obviously being inconsistent here: there is no
8052         reason libc should insist that user code must inspect fwrite
8053         return's value without also insisting that it inspect printf's,
8054         putchar's, etc.  If user code wants to have a strict style where
8055         all these functions' values are checked (so that ferror need not
8056         be checked), we could add support for that style in a new gnulib
8057         module, but in the meantime it's better to be consistent and to
8058         support common usage.
8059
8060         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
8061         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
8062         that we are compiling in checking mode, and if not C++, and
8063         if not already wrapping fwrite for some other reason.
8064         (fwrite): #define to rpl_fwrite if the latter is defined.
8065
8066 2011-03-20  Bruno Haible  <bruno@clisp.org>
8067
8068         verror: Fix compilation error introduced on 2011-02-13.
8069         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
8070         instead of __attribute__.
8071         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8072
8073 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
8074             Bruno Haible  <bruno@clisp.org>
8075
8076         socklen: do not depend on sys_socket
8077         While trying to modify Emacs to use gnulib's socklen module,
8078         I discovered a circular dependency: socklen depends on sys_socket
8079         and vice versa.  Emacs can use socklen, but it does not need
8080         sys_socket because it has its own substitute for sys/socket.h.
8081         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
8082         gl_TYPE_SOCKLEN_T.
8083         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
8084         gl_PREREQ_SYS_H_SOCKET.
8085         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
8086         gl_PREREQ_SYS_H_SOCKET.
8087         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
8088         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
8089         * modules/socklen (Depends-on): Do not depend on sys_socket.
8090         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
8091
8092 2011-03-20  Jim Meyering  <meyering@redhat.com>
8093
8094         maint.mk: sort file names *after* new transformation
8095         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
8096         prefix would have led to an unwarranted failure in GNU parted.
8097         Sort after that transformation.
8098
8099 2011-03-19  Jim Meyering  <meyering@redhat.com>
8100
8101         maint.mk: fix po-file syntax-check rule
8102         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
8103         Patch by Bruno Haible.
8104
8105 2011-03-19  Bruno Haible  <bruno@clisp.org>
8106
8107         socklen: Update comment.
8108         * m4/socklen.m4: Update comment about platforms.
8109
8110 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
8111             Bruno Haible  <bruno@clisp.org>
8112
8113         inet_ntop, inet_pton: Simplify.
8114         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
8115         documented to provide socklen_t and we already depend on sys_socket.
8116         * modules/inet_pton (Depends-on): Likewise.
8117         * lib/arpa_inet.in.h: Adjust comment.
8118
8119 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
8120             Bruno Haible  <bruno@clisp.org>
8121
8122         netdb: Simplify.
8123         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
8124         documented to provide socklen_t and we already depend on sys_socket.
8125         * lib/netdb.in.h: Adjust comment.
8126
8127 2011-03-19  Bruno Haible  <bruno@clisp.org>
8128
8129         sys_socket, netdb: Document problem with socklen_t.
8130         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
8131         platforms.
8132         * doc/posix-headers/netdb.texi: Likewise.
8133
8134 2011-03-18  Eric Blake  <eblake@redhat.com>
8135
8136         maint.mk: let po check work in VPATH build
8137         * top/maint.mk (po_file): Allow cfg.mk override.
8138         (sc_po_check): Allow VPATH use.
8139         Reported by Jiri Denemark.
8140
8141 2011-03-16  Jim Meyering  <meyering@redhat.com>
8142
8143         maint.mk: allow fine-grained syntax-check exclusion via Make variables
8144         Before, you would have had to create one .x-sc_ file per rule in order
8145         to exempt offending files.  Now, you may instead use a Make variable --
8146         usually defined in cfg.mk -- whose name identifies the affected rule.
8147         * top/maint.mk (_sc_excl): Define.
8148         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
8149         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
8150
8151 2011-03-13  Bruno Haible  <bruno@clisp.org>
8152
8153         ignore-value tests: Avoid warnings.
8154         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
8155         empty for gcc < 3.4.
8156
8157 2011-03-13  Bruno Haible  <bruno@clisp.org>
8158
8159         passfd: Fix link error on Solaris.
8160         * modules/passfd (Description): Correct.
8161         (Depends-on): Add socketlib.
8162         (Link): New section.
8163         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
8164
8165 2011-03-13  Bruno Haible  <bruno@clisp.org>
8166
8167         passfd: Fix link error on AIX 5.2.
8168         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
8169
8170 2011-03-13  Bruno Haible  <bruno@clisp.org>
8171
8172         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
8173         * lib/sys_socket.in.h: Include <stddef.h>.
8174         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
8175         CMSG_FIRSTHDR. Remove unused variable.
8176
8177 2011-03-13  Bruno Haible  <bruno@clisp.org>
8178
8179         passfd: Fix compilation error on OpenBSD.
8180         * lib/passfd.c: Include <sys/uio.h>.
8181
8182 2011-03-13  Bruno Haible  <bruno@clisp.org>
8183
8184         passfd test: Fix warnings.
8185         * tests/test-passfd.c: Include <sys/wait.h>.
8186         (main): Fix typo.
8187
8188 2011-03-13  Bruno Haible  <bruno@clisp.org>
8189
8190         passfd module, part 4, tweaks.
8191         * tests/test-passfd.c: Reorder includes.
8192         (main): Fix perror and printf calls.
8193
8194 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
8195
8196         passfd module, part 4.
8197         * modules/passfd-tests: New file.
8198         * tests/test-passfd.c: New file.
8199
8200 2011-03-13  Jim Meyering  <meyering@redhat.com>
8201
8202         Makefile: rely on GNU make; derive syntax-check rule names
8203         Rather than requiring that each sc_ rule be listed as a dependent
8204         of "check", use features of GNU make to derive the list.
8205         * Makefile (syntax-check-rules): Define.
8206         (check): Depend on the new variable, not the hard-coded list.
8207
8208 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
8209             Bruno Haible  <bruno@clisp.org>
8210
8211         passfd module, part 3.
8212         * lib/passfd.h (recvfd): Add a flags argument.
8213         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
8214         (recvfd): Add a flags argument.
8215         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
8216         exists.
8217         * modules/passfd (Depends-on): Add cloexec.
8218         Suggested by Eric Blake.
8219
8220 2011-03-13  Bruno Haible  <bruno@clisp.org>
8221
8222         passfd module, part 2, tweaks.
8223         * modules/passfd (Files): Reorder.
8224         (Depends-on): Remove errno.
8225         (Include): Remove <sys/socket.h>, <sys/un.h>.
8226         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
8227         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
8228         specification header. Include <sys/socket.h> always. Don't include
8229         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
8230         (sendfd): Clarify that it sets errno when it fails.
8231         (recvfd): Fix specification.
8232
8233 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
8234
8235         passfd module, part 2.
8236         * modules/passfd: New file.
8237         * lib/passfd.h: New file.
8238         * lib/passfd.c: New file.
8239
8240 2011-03-12  Bruno Haible  <bruno@clisp.org>
8241
8242         wcswidth, mbswidth: Avoid integer overflow.
8243         * lib/wcswidth.c: Include <limits.h>.
8244         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
8245         * lib/mbswidth.c: Include <limits.h>.
8246         (mbsnwidth): Avoid 'int' overflow.
8247         Reported by Jim Meyering.
8248
8249 2011-03-12  Bruno Haible  <bruno@clisp.org>
8250
8251         futimens, utimensat: Avoid endless recursion on Solaris 10.
8252         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
8253         Solaris.
8254         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
8255         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
8256
8257 2011-03-11  Jim Meyering  <meyering@redhat.com>
8258
8259         maint.mk: relax a regexp to accommodate other formatting styles
8260         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
8261         between "ngettext" and the following "(".
8262
8263 2011-03-11  Pádraig Brady <P@draigBrady.com>
8264
8265         maint.mk: suppress a false positive warning
8266         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
8267         diagnostics are marked with ngettext.
8268
8269 2011-03-10  Eric Blake  <eblake@redhat.com>
8270
8271         wchar: add explicit dependencies, for Tru64
8272         * modules/mbmemcasecoll (Depends-on): Add wchar.
8273         * modules/mbtowc (Depends-on): Likewise.
8274         * modules/vasnprintf (Depends-on): Likewise.
8275         * modules/unistdio/u-printf-args (Depends-on): Likewise.
8276         * modules/wctomb (Depends-on): Likewise.
8277         Reported by Peter O'Gorman.
8278
8279 2011-03-08  Bruno Haible  <bruno@clisp.org>
8280
8281         passfd module, part 1, tweaks.
8282         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
8283         Improve indentation. Improve AC_MSG_CHECKING messages.
8284         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
8285         gl_SOCKET_FAMILIES.
8286
8287 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
8288
8289         passfd module, part 1.
8290         * m4/afunix.m4: New file.
8291         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
8292         sockets.
8293
8294 2011-03-08  Bruno Haible  <bruno@clisp.org>
8295
8296         regex-quote: New API.
8297         * lib/regex-quote.h: Include <stdbool.h>.
8298         (struct regex_quote_spec): New type.
8299         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
8300         New declarations.
8301         (regex_quote_length, regex_quote_copy, regex_quote): Take a
8302         'const struct regex_quote_spec *' argument.
8303         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
8304         (pcre_special): New constant.
8305         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
8306         New functions.
8307         (regex_quote_length, regex_quote_copy, regex_quote): Take a
8308         'const struct regex_quote_spec *' argument.
8309         * modules/regex-quote (Depends-on): Add stdbool.
8310         * tests/test-regex-quote.c (check): Update for new API. Add test for
8311         anchored results.
8312         * NEWS: Mention the API change.
8313         Reported by Reuben Thomas and Eric Blake.
8314
8315 2011-03-06  Bruno Haible  <bruno@clisp.org>
8316
8317         regex-quote: Fix creation of POSIX extended regular expressions.
8318         * lib/regex-quote.c (ere_special): Add grouping and alternation
8319         operators.
8320
8321 2011-03-05  Bruno Haible  <bruno@clisp.org>
8322
8323         doc: Improve doc regarding autopoint vs. gnulib.
8324         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
8325         disable autopoint while running autoreconf.
8326         Suggested by Ralf Wildenhues.
8327
8328 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8329
8330         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
8331         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
8332
8333 2011-03-03  Bruce Korb  <bkorb@gnu.org>
8334
8335         parse-duration: remove xalloc.h dependency
8336         * lib/parse-duration.c (parse_period): handle NULL return from
8337         strdup instead of calling xstrdup().
8338         * modules/parse-duration: remove "xalloc" dependency
8339
8340 2011-03-03  Matthew Booth  <mbooth@redhat.com>
8341
8342         bootstrap: honor m4_base when running aclocal
8343         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
8344
8345 2011-03-02  Jim Meyering  <meyering@redhat.com>
8346
8347         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
8348         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
8349         on request from Matt Booth.
8350
8351 2011-03-01  Eric Blake  <eblake@redhat.com>
8352
8353         test-link: work on Hurd
8354         * tests/test-link.h (test_link): Hurd rejects linking directories
8355         with EISDIR instead of the POSIX-mandated EPERM.
8356
8357 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
8358
8359         stdio: simplify by moving files to printf-posix, sigpipe
8360         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
8361         since this symbol is needed only if printf is replaced.
8362         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
8363         Require gl_ASM_SYMBOL_PREFIX.
8364         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
8365         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
8366         (Depends-on): Add 'raise'.
8367         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
8368         * modules/stdio (Files): Remove lib/stdio-write.c,
8369         m4/asm-underscore.m4.
8370         (Depends-on): Remove 'raise'.
8371
8372         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
8373         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
8374         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
8375         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
8376
8377 2011-02-28  Bruno Haible  <bruno@clisp.org>
8378
8379         localcharset: Assume ANSI C behaviour of free().
8380         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
8381         calling free().
8382         Suggested by Simon Josefsson <simon@josefsson.org>.
8383
8384 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
8385             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
8386             Bruno Haible  <bruno@clisp.org>  (tiny change)
8387
8388         On Cygwin, use /proc file system instead of win32 API.
8389         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
8390         Win32 file names.
8391         (DllMain): Simplify by removing Cygwin specific code.
8392         (find_shared_library_fullname): Use Linux specific implementation also
8393         for Cygwin.
8394         (get_shared_library_fullname): Update accordingly.
8395         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
8396         Win32 file names.
8397         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
8398         Cygwin specific code.
8399
8400 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
8401             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
8402
8403         Fix OpenMP flag detection for various Fortran compilers.
8404         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
8405         OpenMP-conditional compilation construct, to force compile
8406         failure with missing OpenMP flag.
8407         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
8408
8409 2011-02-25  Eric Blake  <eblake@redhat.com>
8410
8411         strstr: expand test coverage
8412         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
8413         compilation.
8414         * tests/test-memmem.c (main): Duplicate tests.
8415         * tests/test-strcasestr.c (main): Likewise.
8416         * tests/test-c-strcasestr.c (main): Likewise.
8417
8418 2011-02-25  Jim Meyering  <meyering@redhat.com>
8419
8420         maint.mk: detect missing-NL-at-EOF, too
8421         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
8422         it also detects when a file lacks a newline at EOF.
8423         (require_exactly_one_NL_at_EOF_): Renamed from
8424         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
8425         since people may well have .x-sc_... file names tied to the
8426         existing name.  Suggested by Eric Blake.
8427
8428 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
8429
8430         dirname: move m4/dos.m4 functionality into lib/dosname.h
8431
8432         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
8433         extracts symbols from it, puts them into config.h; but it's much
8434         easier to use the symbols directly.  filename.h already does this,
8435         but it disagrees with dos.m4 in some respects.  This patch
8436         introduces a different include file dosname.h that packages up
8437         dos.m4, and then later we can work on merging filename.h and
8438         dosname.h.  Applications that need only the easy-to-configure
8439         symbols should consider including dosname.h rather than dirname.h.
8440         * NEWS: Mention incompatible changes.
8441         * m4/dos.m4: Remove.
8442         * lib/dosname.h, modules/dosname: New files.
8443         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
8444         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
8445         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
8446         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
8447         Include dosname.h, not dirname.h.
8448         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
8449         Include dosname.h, for definitions of symbols like ISSLASH
8450         that used to be in config.h.
8451         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
8452         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
8453         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8454         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
8455         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
8456         * modules/rmdir (Files): Likewise.
8457         * modules/stat (Files): Likewise.
8458         * modules/unlink (Files): Likewise.
8459         * modules/dirname-lgpl (Depends-on): Add dosname.
8460         * modules/lstat (Depends-on): Likewise.
8461         * modules/openat (Depends-on): Likewise.
8462         * modules/rmdir (Depends-on): Likewise.
8463         * modules/savewd (Depends-on): Likewise.
8464         * modules/stat (Depends-on): Likewise.
8465         * modules/unlink (Depends-on): Likewise.
8466         * modules/openat (Depends-on): Remove dirname-lgpl.
8467         * modules/savewd (Depends-on): Likewise.
8468         * tests/test-dirname.c: Do not use removed symbols like
8469         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
8470         the remaining symbols, e.g., ISSLASH ('\\').
8471
8472 2011-02-25  Eric Blake  <eblake@redhat.com>
8473
8474         strstr: revert patches that introduced bug and pessimization
8475         * lib/str-two-way.h: Add another reference.
8476         (two_way_short_needle, two_way_long_needle): Revert changes from
8477         2011-02-24; they pessimize search speed.
8478         (critical_factorization): Partially revert changes from
8479         2010-06-22; they violate the requirement that the left half of the
8480         needle be smaller than the period of the needle.
8481
8482 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
8483
8484         filenamecat: remove unnecessary dependency on dirname-lgpl
8485         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
8486         is no direct dependency, just an indirect one via filenamecat-lgpl.
8487
8488         remove: remove unnecessary use of m4/dos.m4
8489         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
8490         * modules/remove (FILES): Remove m4/dos.m4.
8491
8492         * lib/openat-proc.c: Don't include dirname.h; not needed.
8493
8494         backupfile: remove unnecessary use of m4/dos.m4
8495         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
8496         of its symbols are used by the backupfile code.  backupfile.c does
8497         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
8498         for the rare case of programs that want all their backup file
8499         names to live within 8+3 limits, and dos.m4 doesn't address that.
8500         * modules/backupfile (Files): Remove m4/dos.m4.
8501
8502 2011-02-24  Jim Meyering  <meyering@redhat.com>
8503
8504         strstr: fix a bug whereby strstr would mistakenly return NULL
8505         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
8506         in period calculation.
8507         (two_way_long_needle): Likewise.
8508         The original problem was reported by Mike Stump in
8509         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
8510         Ralf Wildenhues provided the short needle and haystack.
8511         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
8512         Add a more involved test to trigger the bug in two_way_long_needle.
8513
8514 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
8515
8516         gnulib-tool: remove use of bold display in help screen
8517         * gnulib-tool (func_usage): Do not use bold display anymore in the
8518         help screen.  That was just meant to be a temporary emphasis for a
8519         backward-incompatible change.
8520
8521 2011-02-23  Bruno Haible  <bruno@clisp.org>
8522
8523         Fix misindentation of preprocessor directives.
8524         * lib/argp-namefrob.h: Reindent preprocessor directives.
8525         * lib/getopt_int.h (struct _getopt_data): Likewise.
8526         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
8527         * lib/vasnprintf.c (decode_long_double): Likewise.
8528         * tests/test-argmatch.c: Insert blank lines, for clarity.
8529         * tests/test-exclude.c: Likewise.
8530
8531 2011-02-22  Bruno Haible  <bruno@clisp.org>
8532
8533         ioctl: Fix for MacOS X in 64-bit mode.
8534         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
8535         value.
8536         Suggested by Eric Blake.
8537         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
8538
8539 2011-02-22  Jim Meyering  <meyering@redhat.com>
8540
8541         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
8542         * Makefile (sc_cpp_indent_check): Don't limit the check to files
8543         in lib/.
8544
8545 2011-02-22  Eric Blake  <eblake@redhat.com>
8546
8547         maint: avoid any CDPATH issue
8548         * Makefile (sc_cpp_indent_check): Anchor cd argument.
8549
8550         maint: adjust cpp indentation for my modules, as well
8551         * Makefile (sc_cpp_indent_check): Add my name.
8552         * lib/fbufmode.c: Filter through cppi.
8553         * lib/fpurge.c: Likewise.
8554         * lib/freadable.c: Likewise.
8555         * lib/freading.c: Likewise.
8556         * lib/fwritable.c: Likewise.
8557         * lib/fwriting.c: Likewise.
8558         * lib/sigaction.c: Likewise.
8559
8560 2011-02-22  Jim Meyering  <meyering@redhat.com>
8561
8562         maint: adjust cpp indentation to reflect nesting depth
8563         I.e., in a block of code that begins with an unnested "#if",
8564         put one space between the "#" in column 1 and following token.
8565         For example,
8566         -#include <sys/vfs.h>
8567         +# include <sys/vfs.h>
8568         Do this only in .c files that are part of a module I maintain.
8569         * lib/linkat.c: Filter through cppi.
8570         * lib/nanosleep.c: Likewise.
8571         * lib/openat.c: Likewise.
8572         * lib/openat-die.c: Likewise.
8573         * lib/dup3.c: Likewise.
8574         * lib/fchownat.c: Likewise.
8575         * lib/flock.c: Likewise.
8576         * lib/fsync.c: Likewise.
8577         * lib/fts.c: Likewise.
8578         * lib/getpass.c: Likewise.
8579         * lib/gettimeofday.c: Likewise.
8580         * lib/userspec.c: Likewise.
8581         * Makefile (sc_cpp_indent_check): New rule, to check this.
8582
8583 2011-02-22  Bruno Haible  <bruno@clisp.org>
8584
8585         New module 'wctomb'.
8586         * lib/stdlib.in.h (wctomb): New declaration.
8587         * lib/wctomb.c: New file.
8588         * lib/wctomb-impl.h: New file.
8589         * m4/wctomb.m4: New file.
8590         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
8591         REPLACE_WCTOMB.
8592         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
8593         REPLACE_WCTOMB.
8594         * modules/wctomb: New file.
8595         * tests/test-stdlib-c++.cc: Test signature of wctomb.
8596         * doc/posix-functions/wctomb.texi: Mention the new module.
8597         * modules/wctob (Depends-on): Add wctomb.
8598
8599 2011-02-22  Bruno Haible  <bruno@clisp.org>
8600
8601         New module 'mbtowc'.
8602         * lib/stdlib.in.h (mbtowc): New declaration.
8603         * lib/mbtowc.c: New file.
8604         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
8605         * m4/mbtowc.m4: New file.
8606         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
8607         REPLACE_MBTOWC.
8608         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
8609         REPLACE_MBTOWC.
8610         * modules/mbtowc: New file.
8611         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
8612         * doc/posix-functions/mbtowc.texi: Mention the new module.
8613         * modules/btowc (Depends-on): Add mbtowc.
8614
8615 2011-02-22  Bruno Haible  <bruno@clisp.org>
8616
8617         wcrtomb: Add more tests for native Windows platforms.
8618         * tests/test-wcrtomb-w32-1.sh: New file.
8619         * tests/test-wcrtomb-w32-2.sh: New file.
8620         * tests/test-wcrtomb-w32-3.sh: New file.
8621         * tests/test-wcrtomb-w32-4.sh: New file.
8622         * tests/test-wcrtomb-w32-5.sh: New file.
8623         * tests/test-wcrtomb-w32.c: New file.
8624         * modules/wcrtomb-tests (Files): Add them.
8625         (Makefile.am): Arrange to run these tests.
8626         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
8627         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
8628
8629 2011-02-20  Bruno Haible  <bruno@clisp.org>
8630
8631         wcrtomb: Enhance test.
8632         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
8633
8634 2011-02-20  Bruno Haible  <bruno@clisp.org>
8635
8636         mbrtowc: Tiny optimization.
8637         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
8638
8639 2011-02-20  Jim Meyering  <meyering@redhat.com>
8640
8641         test-exclude.c: remove unmatched #endif
8642         * tests/test-exclude.c: Remove stray #endif, left over from
8643         the change of a week ago.
8644
8645 2011-02-19  Jim Meyering  <meyering@redhat.com>
8646
8647         git-version-gen: skip "-dirty" check when appropriate
8648         * build-aux/git-version-gen: Don't run any git commands when the
8649         version string comes from .tarball-version.  Prior to this, we
8650         would run git update-index --refresh even from a just-unpacked
8651         tarball directory, and that could affect a .git/ directory in a
8652         parent of the build directory.  Reported by Mike Frysinger.
8653
8654 2011-02-19  Bruno Haible  <bruno@clisp.org>
8655
8656         unictype/property-byname: Reduce the size of the 'data' segment.
8657         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
8658
8659 2011-02-19  Bruno Haible  <bruno@clisp.org>
8660
8661         unictype/scripts: Reduce the size of the 'data' segment.
8662         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
8663         '%pic'.
8664         * lib/unictype/scripts_byname.gperf: Regenerated.
8665
8666 2011-02-19  Bruno Haible  <bruno@clisp.org>
8667
8668         stdint: Update documentation.
8669         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
8670
8671 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
8672
8673         stdint: omit redundant check for wchar.h
8674         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
8675         always tests whether wchar.h exists, so remove the now-redundant test.
8676
8677 2011-02-18  Bruno Haible  <bruno@clisp.org>
8678
8679         stdint: Cut dependency to module 'wchar'.
8680         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
8681         include the necessary prerequisites.
8682         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
8683         * modules/stdint (Depends-on): Remove wchar.
8684         (Makefile.am): Substitute HAVE_WCHAR_H.
8685         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
8686
8687 2011-02-18  Eric Blake  <eblake@redhat.com>
8688
8689         longlong: skip, rather than fail, on cross-compilation
8690         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
8691         when cross-compiling; regression from 2011-02-16.
8692
8693 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
8694
8695         * NEWS: Mention 2011-02-08 change to stdlib.
8696
8697 2011-02-17  Bruno Haible  <bruno@clisp.org>
8698
8699         getloadavg: Add comments about platforms.
8700         * m4/getloadavg.m4: Add comment.
8701         * lib/getloadavg.c: Likewise.
8702
8703 2011-02-17  Bruno Haible  <bruno@clisp.org>
8704
8705         getloadavg: Fix link error on Solaris 2.6.
8706         * modules/getloadavg (Link): New section.
8707         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
8708         linking test-getloadavg.
8709         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
8710         getloadavg.
8711
8712 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
8713
8714         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
8715         It was 'int', but this doesn't match the IRIX 6.5 manual.
8716         Suggested by Bruno Haible in
8717         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
8718
8719 2011-02-17  Bruno Haible  <bruno@clisp.org>
8720
8721         havelib: Fix comments.
8722         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
8723         change.
8724
8725 2011-02-17  Bruno Haible  <bruno@clisp.org>
8726
8727         havelib: Update config.rpath.
8728         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
8729
8730 2011-02-17  Bruno Haible  <bruno@clisp.org>
8731
8732         getloadavg test: Add some plausibility checks.
8733         * tests/test-getloadavg.c (check_avg): Print a warning when the value
8734         is improbable.
8735
8736 2011-02-16  Eric Blake  <eblake@redhat.com>
8737
8738         maintainer-makefile: make syntax-check a no-op from tarballs
8739         * top/maint.mk (no-vc-detected): New rule.
8740         (local-checks-available): Use it to avoid hanging if someone tries
8741         'make syntax-check' from a tarball.  Also append to any non-syntax
8742         checks already defined in cfg.mk.
8743
8744 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
8745
8746         longlong: tune, particularly for common case of c99
8747
8748         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
8749         or running anything if c99, or if unsigned long long int does not
8750         work.  In either case, we know the answer without further tests.
8751         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
8752         it at most once, and use its results for both long long int and
8753         unsigned long long int.  This is more likely to be efficient in
8754         the common case where the program wants to check for both long
8755         long int and unsigned long long int.
8756         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
8757         since the answer is already known.
8758
8759 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
8760
8761         getloadavg: set errno
8762         * lib/getloadavg.c: Set errno when returning -1.  If no other
8763         error number looks appropriate, set it to ENOSYS if the getloadavg
8764         looks like it can't possibly ever work, ENOTSUP otherwise.
8765         Suggested by Bruno Haible in
8766         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
8767
8768         getloadavg: trim unused parts and speed up 'configure'
8769         * NEWS: Document this.
8770         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
8771         always compiled if getloadavg is absent.
8772         Move test code to ...
8773         * tests/test-getloadavg.c: New file, containing previous
8774         contents of test from lib/getloadavg.c.  It also contains
8775         suggestions by Bruno Haible in
8776         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
8777         * modules/getloadavg-tests: New file.
8778         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
8779         Do tests in the same order as they're needed for getloadavg.c.
8780         Omit setgid-related tests that generate symbols KMEM_GROUP,
8781         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
8782         Do only the tests that are needed to see whether the system has
8783         getloadavg, moving the other tests into ...
8784         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
8785         NLIST_NAME_UNION; nobody should be using it.  Do not define
8786         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
8787         relevant, as the user of this module shouldn't care how getloadavg
8788         is implemented.
8789
8790         getloadavg: omit unused var
8791         * lib/getloadavg.c (getloadavg): Omit unused local variable.
8792
8793 2011-02-15  Jim Meyering  <meyering@redhat.com>
8794
8795         doc: update users.txt
8796         * users.txt: Update iwhd's URL.
8797
8798 2011-02-13  Bruno Haible  <bruno@clisp.org>
8799
8800         Consistent macro naming for macros that use GCC __attribute__.
8801         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
8802         _ATTRIBUTE_NONNULL_.
8803         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
8804         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
8805         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
8806         ATTRIBUTE_DEPRECATED.
8807         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
8808         ATTRIBUTE_NORETURN.
8809         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8810         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8811         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8812         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8813         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
8814         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
8815         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
8816         ATTRIBUTE_SENTINEL.
8817         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
8818         ATTRIBUTE_RETURN_CHECK.
8819         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
8820         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
8821         ATTRIBUTE_NORETURN.
8822         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
8823         Reported by Paul Eggert.
8824
8825 2011-02-13  Bruno Haible  <bruno@clisp.org>
8826
8827         Don't interfere with a program's definition of __attribute__.
8828         * lib/argp.h (__attribute__): Remove definition.
8829         (_GL_ATTRIBUTE_FORMAT): New macro.
8830         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
8831         * lib/argp-fmtstream.h (__attribute__): Remove definition.
8832         (_GL_ATTRIBUTE_FORMAT): New macro.
8833         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
8834         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
8835         GCC 3 or newer.
8836         * lib/error.h (__attribute__): Remove definition.
8837         (_GL_ATTRIBUTE_FORMAT): New macro.
8838         (error, error_at_line): Use it.
8839         * lib/hash.h (__attribute__): Remove definition.
8840         (ATTRIBUTE_WUR): Update definition. Define always.
8841         * lib/openat.h (__attribute__): Remove definition.
8842         (ATTRIBUTE_NORETURN): Update definition. Define always.
8843         * lib/sigpipe-die.h (__attribute__): Remove definition.
8844         (ATTRIBUTE_NORETURN): Update definition. Define always.
8845         * lib/vasnprintf.h (__attribute__): Remove definition.
8846         (_GL_ATTRIBUTE_FORMAT): New macro.
8847         (asnprintf, vasnprintf): Use it.
8848         * lib/xalloc.h (__attribute__): Remove definition.
8849         (ATTRIBUTE_NORETURN): Update definition. Define always.
8850         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
8851         * lib/xmemdup0.h (__attribute__): Remove definition.
8852         (ATTRIBUTE_NORETURN): Update definition. Define always.
8853         * lib/xprintf.h (__attribute__): Remove definition.
8854         (_GL_ATTRIBUTE_FORMAT): New macro.
8855         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
8856         * lib/xstrtol.h (__attribute__): Remove definition.
8857         (ATTRIBUTE_NORETURN): Update definition. Define always.
8858         * lib/xvasprintf.h (__attribute__): Remove definition.
8859         (_GL_ATTRIBUTE_FORMAT): New macro.
8860         (xasprintf, xvasprintf): Use it.
8861         * tests/test-argmatch.c (__attribute__): Remove definition.
8862         (ATTRIBUTE_NORETURN): Update definition. Define always.
8863         * tests/test-exclude.c (__attribute__): Remove definition.
8864         (ATTRIBUTE_NORETURN): Update definition. Define always.
8865         Reported by Paul Eggert.
8866
8867 2011-02-13  Bruno Haible  <bruno@clisp.org>
8868
8869         mbrtowc: Add more tests for native Windows platforms.
8870         * tests/test-mbrtowc-w32-1.sh: New file.
8871         * tests/test-mbrtowc-w32-2.sh: New file.
8872         * tests/test-mbrtowc-w32-3.sh: New file.
8873         * tests/test-mbrtowc-w32-4.sh: New file.
8874         * tests/test-mbrtowc-w32-5.sh: New file.
8875         * tests/test-mbrtowc-w32.c: New file.
8876         * modules/mbrtowc-tests (Files): Add them.
8877         (Makefile.am): Arrange to run these tests.
8878         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
8879         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
8880
8881 2011-02-13  Bruno Haible  <bruno@clisp.org>
8882
8883         mbrtowc: Work around native Windows bug.
8884         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
8885         guess when no suitable locale for testing was found.
8886         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
8887
8888 2011-02-13  Bruno Haible  <bruno@clisp.org>
8889
8890         mbsinit: Work around mingw bug.
8891         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
8892         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
8893         Windows.
8894         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
8895
8896 2011-02-13  Bruno Haible  <bruno@clisp.org>
8897
8898         mbsinit: Don't crash for a NULL argument.
8899         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
8900         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
8901
8902 2011-02-13  Bruno Haible  <bruno@clisp.org>
8903
8904         Don't interfere with a program's definition of __attribute__.
8905         * lib/stdio.in.h (__attribute__): Remove definition.
8906         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
8907         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
8908         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
8909         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
8910         * lib/string.in.h (__attribute__): Remove definition.
8911         Reported by Paul Eggert.
8912
8913 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8914
8915         stdlib: don't get in the way of non-GCC __attribute__
8916         See thread starting at
8917         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
8918         Revert previous stdlib change, installing the following instead:
8919         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
8920         to get in the way of a non-GCC compiler that supports __attribute__.
8921         (_GL_ATTRIBUTE_RETURN): New macro.
8922         (_Exit): Use it instead of __attribute__.
8923
8924 2011-02-12  Bruno Haible  <bruno@clisp.org>
8925
8926         quotearg test: Avoid test failure on mingw.
8927         * tests/test-quotearg.sh: Convert the locale identifier from native
8928         Windows syntax to Unix syntax.
8929
8930 2011-02-12  Bruno Haible  <bruno@clisp.org>
8931
8932         setlocale: Prefer gnulib's override over libintl's override.
8933         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
8934         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
8935         GNULIB_defined_setlocale is set.
8936
8937 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8938
8939         stdlib: support non-GCC __attribute__
8940
8941         Fix a serious and tricky problem encountered when attempting to
8942         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
8943         5.5, but it crashed due to memory corruption on Solaris 10 with
8944         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
8945         bits that are otherwise zero.  This tagging is optional inside
8946         Emacs but is preferred and is used when __attribute__ ((__aligned
8947         (8))) works, as it does with both recent-enough GCC and with Sun C
8948         5.11.  However, Sun C 5.11 is not GCC and does not #define
8949         __GNUC__ and __GNUC_MINOR__.
8950
8951         When I added the getloadavg module to Emacs, it brought in
8952         stdlib.in.h, which contained this fragment:
8953
8954            #ifndef __attribute__
8955            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
8956            #  define __attribute__(Spec)   /* empty */
8957            # endif
8958            #endif
8959
8960         When files that include <stdlib.h> were compiled with Sun C 5.11,
8961         the above code disabled __attribute__ ((__aligned (8))), which
8962         caused variables to not be properly aligned, which eventually led
8963         to the pointer corruption mentioned above.  (This was a bit hard
8964         to diagnose, unfortunately.)
8965
8966         Several "#define __attribute__(X) /* empty */" code snippets need
8967         to be eradicated from Gnulib to work with non-GCC compilers that
8968         support __attribute__.  The Autoconf way to do this is to test for
8969         each kind of attribute that we want support for, and selectively
8970         enable that in source code.
8971
8972         Fix this problem just for stdlib.h, by adding a test for the
8973         __noreturn__ attribute, and change stdlib.in.h to use that test
8974         when needed.  This technique can be easily generalized to the
8975         other *.in.h files and attributes, and a similar technique can be
8976         used for *.h and *.c files.  This patch is enough to solve the
8977         problem for Emacs + getloadavg, and I thought I'd publish it for
8978         feedback before undertaking further, similar fixes in other
8979         modules.
8980
8981         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
8982         because it's not needed for stdlib.h.  It merely substitutes the
8983         value directly into stdlib.h.  We may well need to #define it, or
8984         similar symbols, for other modules, but it's nice to also have an
8985         option to not #define it for applications like Emacs that do not
8986         need it.
8987
8988         * lib/stdlib.in.h (__attribute__): Do not #define.
8989         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
8990         be defined only if the _Exit module is also used.
8991         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
8992         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
8993         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
8994         platforms.
8995         * modules/_Exit (Files): Add m4/attribute.m4.
8996         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
8997         * m4/attribute.m4: New file.
8998
8999 2011-02-12  Bruno Haible  <bruno@clisp.org>
9000
9001         wcsrtombs: Work around bug on native Windows.
9002         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
9003         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
9004         instead of len.
9005         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
9006
9007 2011-02-12  Bruno Haible  <bruno@clisp.org>
9008
9009         mbsrtowcs: Work around bug on native Windows.
9010         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
9011         against mingw bug.
9012         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
9013
9014 2011-02-12  Bruno Haible  <bruno@clisp.org>
9015
9016         Avoid setlocale bugs in tests.
9017         * modules/btowc (Dependencies): Add setlocale.
9018         * modules/c-strcase (Dependencies): Likewise.
9019         * modules/mbmemcasecmp (Dependencies): Likewise.
9020         * modules/mbmemcasecoll (Dependencies): Likewise.
9021         * modules/mbrtowc (Dependencies): Likewise.
9022         * modules/mbscasecmp (Dependencies): Likewise.
9023         * modules/mbscasestr (Dependencies): Likewise.
9024         * modules/mbschr (Dependencies): Likewise.
9025         * modules/mbscspn (Dependencies): Likewise.
9026         * modules/mbsinit (Dependencies): Likewise.
9027         * modules/mbsncasecmp (Dependencies): Likewise.
9028         * modules/mbsnrtowcs (Dependencies): Likewise.
9029         * modules/mbspbrk (Dependencies): Likewise.
9030         * modules/mbspcasecmp (Dependencies): Likewise.
9031         * modules/mbsrchr (Dependencies): Likewise.
9032         * modules/mbsrtowcs (Dependencies): Likewise.
9033         * modules/mbsspn (Dependencies): Likewise.
9034         * modules/mbsstr (Dependencies): Likewise.
9035         * modules/nl_langinfo (Dependencies): Likewise.
9036         * modules/quotearg (Dependencies): Likewise.
9037         * modules/unicase/locale-language (Dependencies): Likewise.
9038         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
9039         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
9040         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
9041         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
9042         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
9043         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
9044         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
9045         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
9046         * modules/vasnprintf-posix (Dependencies): Likewise.
9047         * modules/wcrtomb (Dependencies): Likewise.
9048         * modules/wcsnrtombs (Dependencies): Likewise.
9049         * modules/wcsrtombs (Dependencies): Likewise.
9050
9051 2011-02-12  Bruno Haible  <bruno@clisp.org>
9052
9053         setlocale: Workaround native Windows bug.
9054         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
9055         succeeds but sets LC_CTYPE to "C", report a failure.
9056         * tests/test-setlocale2.sh: New file.
9057         * tests/test-setlocale2.c: New file.
9058         * modules/setlocale-tests (Files): Add the new files.
9059         (Makefile.am): Enable test-setlocale2.sh test.
9060         * doc/posix-functions/setlocale.texi: Mention workaround.
9061
9062 2011-02-11  Bruno Haible  <bruno@clisp.org>
9063
9064         Tests for module 'setlocale'.
9065         * modules/setlocale-tests: New file.
9066         * tests/test-setlocale1.sh: New file.
9067         * tests/test-setlocale1.c: New file.
9068
9069         New module 'setlocale'.
9070         * lib/locale.in.h (setlocale): New declaration.
9071         * lib/setlocale.c: New file, based on
9072         gettext/gettext-runtime/intl/setlocale.c.
9073         * m4/setlocale.m4: New file.
9074         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
9075         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
9076         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
9077         REPLACE_SETLOCALE.
9078         * modules/setlocale: New file.
9079         * tests/test-locale-c++.cc: Test the declaration of setlocale.
9080         * doc/posix-functions/setlocale.texi: Mention the new module.
9081
9082 2011-02-11  Bruno Haible  <bruno@clisp.org>
9083
9084         Prepare for locale dependent tests on mingw.
9085         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
9086         because it has the wrong locale encoding.
9087         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
9088         French_France.1252 instead of "fr".
9089         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
9090         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
9091         because it has the wrong locale encoding.
9092         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
9093         native Windows, try Turkish_Turkey.65001.
9094         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
9095         Chinese_China.54936.
9096
9097         Prepare for locale dependent tests on mingw.
9098         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
9099         differently.
9100         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
9101         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
9102         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
9103         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
9104
9105 2011-02-11  Eric Blake  <eblake@redhat.com>
9106
9107         strptime: avoid compiler warnings
9108         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
9109         compiler warnings about dead code.
9110         Reported by Daniel P. Berrange.
9111
9112 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
9113
9114         doc: update users.txt
9115         * users.txt: Add rcs.
9116
9117 2011-02-10  John W. Eaton  <jwe@gnu.org>
9118
9119         doc: update users.txt
9120         * users.txt: Add octave.
9121
9122 2011-02-10  Jim Meyering  <meyering@redhat.com>
9123
9124         doc: update users.txt
9125         * users.txt: Add iwhd.
9126
9127 2011-02-09  Bruno Haible  <bruno@clisp.org>
9128
9129         gnulib-tool: Make copyright notice adjustment more robust.
9130         * gnulib-tool (func_import): In sed_transform_main_lib_file,
9131         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
9132         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
9133         License".
9134         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
9135
9136 2011-02-06  Bruno Haible  <bruno@clisp.org>
9137
9138         New module 'towctrans'.
9139         * modules/towctrans: New file.
9140         * lib/wctype.in.h (towctrans): New declaration.
9141         * lib/towctrans.c: New file.
9142         * lib/towctrans-impl.h: New file.
9143         * m4/towctrans.m4: New file.
9144         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
9145         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
9146         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
9147         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
9148         * doc/posix-functions/towctrans.texi: Mention the new module.
9149
9150 2011-02-06  Bruno Haible  <bruno@clisp.org>
9151
9152         New module 'wctrans'.
9153         * modules/wctrans: New file.
9154         * lib/wctype.in.h (wctrans): New declaration.
9155         * lib/wctrans.c: New file.
9156         * lib/wctrans-impl.h: New file.
9157         * m4/wctrans.m4: New file.
9158         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
9159         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
9160         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
9161         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
9162         * doc/posix-functions/wctrans.texi: Mention the new module.
9163
9164 2011-02-06  Bruno Haible  <bruno@clisp.org>
9165
9166         New module 'iswctype'.
9167         * modules/iswctype: New file.
9168         * lib/wctype.in.h (iswctype): New declaration.
9169         * lib/iswctype.c: New file.
9170         * lib/iswctype-impl.h: New file.
9171         * m4/iswctype.m4: New file.
9172         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
9173         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
9174         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
9175         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
9176         * doc/posix-functions/iswctype.texi: Mention the new module and the
9177         HP-UX 11.00 problem.
9178
9179 2011-02-06  Bruno Haible  <bruno@clisp.org>
9180
9181         New module 'wctype'.
9182         * modules/wctype: Change to represent the wctype() substitute.
9183         * lib/wctype.in.h (wctype): New declaration.
9184         * lib/wctype.c: New file.
9185         * lib/wctype-impl.h: New file.
9186         * m4/wctype.m4: New file.
9187         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
9188         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
9189         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
9190         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
9191         * doc/posix-functions/wctype.texi: Mention the new module and the
9192         HP-UX 11.00 problem.
9193
9194 2011-02-06  Bruno Haible  <bruno@clisp.org>
9195
9196         wctype-h: Ensure wctype_t and wctrans_t are defined.
9197         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
9198         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
9199         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
9200         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
9201         HAVE_WCTRANS_T.
9202         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
9203
9204 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
9205
9206         flock: fix license typo
9207
9208         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
9209         omitted.
9210
9211 2011-02-08  Bruno Haible  <bruno@clisp.org>
9212
9213         Split large sed scripts, for HP-UX sed.
9214         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
9215         to avoid HP-UX limit of 99 commands, in the near future.
9216         * modules/stdlib (Makefile.am): Likewise.
9217         * modules/unistd (Makefile.am): Likewise.
9218         * modules/wchar (Makefile.am): Likewise.
9219         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
9220         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
9221         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
9222
9223 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
9224             Bruno Haible  <bruno@clisp.org>
9225
9226         stdlib: improve random_r modularization
9227         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
9228         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
9229         you also need the random_r module to get this material right.
9230         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
9231         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
9232         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
9233
9234 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
9235
9236         stdlib: don't depend on stdint
9237         * lib/stdlib.in.h: Don't include <stdint.h> merely because
9238         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
9239         be independent of whether stdint.h is needed.
9240         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
9241         here, instead of ...
9242         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
9243         struct random_data should be using the random_r module, not just
9244         the stdlib module (which wouldn't make sense: what package needs
9245         just struct random_data without also needing random_r?).
9246         * modules/stdlib (Depends-on): Remove stdint.
9247
9248         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
9249         See the thread rooted at
9250         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
9251         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
9252         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
9253         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
9254         __VMS)); previously it was always included (via fcntl--.h).
9255         (getloadavg): Do not use c_strtod.  Instead, approximate it by
9256         hand; this is good enough for load averages.  Also, do not use
9257         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
9258         flags directly if available and don't bother otherwise.  (Packages
9259         that need the extra reliability should use the modules that define
9260         these flags on older platforms that lack them.)
9261         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
9262         fcntl-safer.
9263
9264 2011-02-08  Jim Meyering  <meyering@redhat.com>
9265
9266         di-set.h, ino-map.h: add multiple-inclusion guard
9267         Technically, the guard is required only for ino-map.h, due to its
9268         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
9269         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
9270         * lib/ino-map.h: Likewise.
9271
9272 2011-02-06  Bruno Haible  <bruno@clisp.org>
9273
9274         iswblank: Ensure declaration on glibc systems.
9275         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
9276         * modules/iswblank (Dependencies): Add 'extensions'.
9277         * doc/posix-functions/iswblank.texi: Document the glibc problem.
9278
9279 2011-02-06  Bruno Haible  <bruno@clisp.org>
9280
9281         New module 'iswblank'.
9282         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
9283         * modules/iswblank: New file.
9284         * modules/wctype-h (Files): Remove lib/iswblank.c.
9285         (Makefile.am): Substitute GNULIB_ISWBLANK.
9286         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
9287         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
9288         (gl_WCTYPE_H_DEFAULTS): New macro.
9289         (gl_WCTYPE_H): Require it. Remove iswblank related code.
9290         * modules/iswblank-tests: New file.
9291         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
9292         * tests/test-wctype-h.c (main): Remove iswblank tests.
9293         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
9294         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
9295         of 'wctype-h'.
9296         * NEWS: Mention the change.
9297         * modules/mbchar (Depends-on): Add iswblank.
9298
9299 2011-02-08  Bruno Haible  <bruno@clisp.org>
9300
9301         di-set tests: Refactor.
9302         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
9303         unnecessary includes.
9304         (ASSERT): Remove macro.
9305         (main): Make C90 compliant by avoiding variable declaration after
9306         statement.
9307         * modules/di-set-tests (Files): Add tests/macros.h.
9308
9309 2011-02-08  Bruno Haible  <bruno@clisp.org>
9310
9311         ino-map tests: Refactor.
9312         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
9313         unnecessary includes.
9314         (ASSERT): Remove macro.
9315         (main): Make C90 compliant by avoiding variable declaration after
9316         statement.
9317         * modules/ino-map-tests (Files): Add tests/macros.h.
9318
9319 2011-02-08  Jim Meyering  <meyering@redhat.com>
9320
9321         di-set: add "const" to a cast
9322         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
9323         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
9324
9325 2011-02-06  Bruno Haible  <bruno@clisp.org>
9326
9327         Rename module 'wctype' to 'wctype-h'.
9328         * modules/wctype-h: Renamed from modules/wctype.
9329         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
9330         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
9331         (Files, Depends-on, Makefile.am): Update.
9332         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
9333         (Files, Makefile.am): Update.
9334         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
9335         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
9336         * doc/posix-headers/wctype.texi: Update.
9337         * doc/posix-functions/iswalnum.texi: Update.
9338         * doc/posix-functions/iswalpha.texi: Update.
9339         * doc/posix-functions/iswblank.texi: Update.
9340         * doc/posix-functions/iswcntrl.texi: Update.
9341         * doc/posix-functions/iswdigit.texi: Update.
9342         * doc/posix-functions/iswgraph.texi: Update.
9343         * doc/posix-functions/iswlower.texi: Update.
9344         * doc/posix-functions/iswprint.texi: Update.
9345         * doc/posix-functions/iswpunct.texi: Update.
9346         * doc/posix-functions/iswspace.texi: Update.
9347         * doc/posix-functions/iswupper.texi: Update.
9348         * doc/posix-functions/iswxdigit.texi: Update.
9349         * doc/posix-functions/towlower.texi: Update.
9350         * doc/posix-functions/towupper.texi: Update.
9351         * NEWS: Mention the change.
9352         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
9353         * modules/mbchar (Dependencies): Likewise.
9354         * modules/mbswidth (Dependencies): Likewise.
9355         * modules/quotearg (Dependencies): Likewise.
9356         * modules/regex (Dependencies): Likewise.
9357         * modules/wcscasecmp (Dependencies): Likewise.
9358         * modules/wcsncasecmp (Dependencies): Likewise.
9359         * modules/wcwidth (Dependencies): Likewise.
9360
9361 2011-02-06  Bruno Haible  <bruno@clisp.org>
9362
9363         New module 'wcswidth'.
9364         * modules/wcswidth: New file.
9365         * lib/wchar.in.h (wcswidth): New declaration.
9366         * lib/wcswidth.c: New file.
9367         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
9368         * m4/wcswidth.m4: New file.
9369         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
9370         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
9371         REPLACE_WCSWIDTH.
9372         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
9373         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
9374         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
9375         * doc/posix-functions/wcswidth.texi: Mention the new module.
9376
9377 2011-02-06  Bruno Haible  <bruno@clisp.org>
9378
9379         New module 'wcstok'.
9380         * modules/wcstok: New file.
9381         * lib/wchar.in.h (wcstok): New declaration.
9382         * lib/wcstok.c: New file.
9383         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
9384         * m4/wcstok.m4: New file.
9385         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
9386         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
9387         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
9388         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
9389         * doc/posix-functions/wcstok.texi: Mention the new module.
9390
9391 2011-02-06  Bruno Haible  <bruno@clisp.org>
9392
9393         New module 'wcsstr'.
9394         * modules/wcsstr: New file.
9395         * lib/wchar.in.h (wcsstr): New declaration.
9396         * lib/wcsstr.c: New file.
9397         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
9398         * m4/wcsstr.m4: New file.
9399         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
9400         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
9401         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
9402         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
9403         * doc/posix-functions/wcsstr.texi: Mention the new module.
9404
9405 2011-02-06  Bruno Haible  <bruno@clisp.org>
9406
9407         New module 'wcspbrk'.
9408         * modules/wcspbrk: New file.
9409         * lib/wchar.in.h (wcspbrk): New declaration.
9410         * lib/wcspbrk.c: New file.
9411         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
9412         * m4/wcspbrk.m4: New file.
9413         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
9414         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
9415         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
9416         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
9417         * doc/posix-functions/wcspbrk.texi: Mention the new module.
9418
9419 2011-02-06  Bruno Haible  <bruno@clisp.org>
9420
9421         New module 'wcsspn'.
9422         * modules/wcsspn: New file.
9423         * lib/wchar.in.h (wcsspn): New declaration.
9424         * lib/wcsspn.c: New file.
9425         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
9426         * m4/wcsspn.m4: New file.
9427         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
9428         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
9429         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
9430         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
9431         * doc/posix-functions/wcsspn.texi: Mention the new module.
9432
9433 2011-02-06  Bruno Haible  <bruno@clisp.org>
9434
9435         New module 'wcscspn'.
9436         * modules/wcscspn: New file.
9437         * lib/wchar.in.h (wcscspn): New declaration.
9438         * lib/wcscspn.c: New file.
9439         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
9440         * m4/wcscspn.m4: New file.
9441         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
9442         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
9443         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
9444         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
9445         * doc/posix-functions/wcscspn.texi: Mention the new module.
9446
9447 2011-02-06  Bruno Haible  <bruno@clisp.org>
9448
9449         New module 'wcsrchr'.
9450         * modules/wcsrchr: New file.
9451         * lib/wchar.in.h (wcsrchr): New declaration.
9452         * lib/wcsrchr.c: New file.
9453         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
9454         * m4/wcsrchr.m4: New file.
9455         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
9456         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
9457         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
9458         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
9459         * doc/posix-functions/wcsrchr.texi: Mention the new module.
9460
9461 2011-02-06  Bruno Haible  <bruno@clisp.org>
9462
9463         New module 'wcschr'.
9464         * modules/wcschr: New file.
9465         * lib/wchar.in.h (wcschr): New declaration.
9466         * lib/wcschr.c: New file.
9467         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
9468         * m4/wcschr.m4: New file.
9469         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
9470         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
9471         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
9472         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
9473         * doc/posix-functions/wcschr.texi: Mention the new module.
9474
9475 2011-02-06  Bruno Haible  <bruno@clisp.org>
9476
9477         New module 'wcsdup'.
9478         * modules/wcsdup: New file.
9479         * lib/wchar.in.h (wcsdup): New declaration.
9480         * lib/wcsdup.c: New file.
9481         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
9482         * m4/wcsdup.m4: New file.
9483         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
9484         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
9485         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
9486         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
9487         * doc/posix-functions/wcsdup.texi: Mention the new module.
9488
9489 2011-02-06  Bruno Haible  <bruno@clisp.org>
9490
9491         New module 'wcsxfrm'.
9492         * modules/wcsxfrm: New file.
9493         * lib/wchar.in.h (wcsxfrm): New declaration.
9494         * lib/wcsxfrm.c: New file.
9495         * lib/wcsxfrm-impl.h: New file.
9496         * m4/wcsxfrm.m4: New file.
9497         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
9498         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
9499         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
9500         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
9501         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
9502
9503 2011-02-06  Bruno Haible  <bruno@clisp.org>
9504
9505         New module 'wcscoll'.
9506         * modules/wcscoll: New file.
9507         * lib/wchar.in.h (wcscoll): New declaration.
9508         * lib/wcscoll.c: New file.
9509         * lib/wcscoll-impl.h: New file.
9510         * m4/wcscoll.m4: New file.
9511         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
9512         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
9513         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
9514         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
9515         * doc/posix-functions/wcscoll.texi: Mention the new module.
9516
9517 2011-02-06  Bruno Haible  <bruno@clisp.org>
9518
9519         New module 'wcsncasecmp'.
9520         * modules/wcsncasecmp: New file.
9521         * lib/wchar.in.h (wcsncasecmp): New declaration.
9522         * lib/wcsncasecmp.c: New file.
9523         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
9524         * m4/wcsncasecmp.m4: New file.
9525         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
9526         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
9527         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
9528         HAVE_WCSNCASECMP.
9529         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
9530         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
9531
9532 2011-02-06  Bruno Haible  <bruno@clisp.org>
9533
9534         New module 'wcscasecmp'.
9535         * modules/wcscasecmp: New file.
9536         * lib/wchar.in.h (wcscasecmp): New declaration.
9537         * lib/wcscasecmp.c: New file.
9538         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
9539         * m4/wcscasecmp.m4: New file.
9540         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
9541         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
9542         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
9543         HAVE_WCSCASECMP.
9544         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
9545         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
9546
9547 2011-02-05  Bruno Haible  <bruno@clisp.org>
9548
9549         New module 'wcsncmp'.
9550         * modules/wcsncmp: New file.
9551         * lib/wchar.in.h (wcsncmp): New declaration.
9552         * lib/wcsncmp.c: New file.
9553         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
9554         * m4/wcsncmp.m4: New file.
9555         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
9556         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
9557         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
9558         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
9559         * doc/posix-functions/wcsncmp.texi: Mention the new module.
9560
9561 2011-02-05  Bruno Haible  <bruno@clisp.org>
9562
9563         New module 'wcscmp'.
9564         * modules/wcscmp: New file.
9565         * lib/wchar.in.h (wcscmp): New declaration.
9566         * lib/wcscmp.c: New file.
9567         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
9568         * m4/wcscmp.m4: New file.
9569         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
9570         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
9571         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
9572         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
9573         * doc/posix-functions/wcscmp.texi: Mention the new module.
9574
9575 2011-02-05  Bruno Haible  <bruno@clisp.org>
9576
9577         New module 'wcsncat'.
9578         * modules/wcsncat: New file.
9579         * lib/wchar.in.h (wcsncat): New declaration.
9580         * lib/wcsncat.c: New file.
9581         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
9582         * m4/wcsncat.m4: New file.
9583         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
9584         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
9585         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
9586         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
9587         * doc/posix-functions/wcsncat.texi: Mention the new module.
9588
9589 2011-02-05  Bruno Haible  <bruno@clisp.org>
9590
9591         New module 'wcscat'.
9592         * modules/wcscat: New file.
9593         * lib/wchar.in.h (wcscat): New declaration.
9594         * lib/wcscat.c: New file.
9595         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
9596         * m4/wcscat.m4: New file.
9597         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
9598         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
9599         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
9600         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
9601         * doc/posix-functions/wcscat.texi: Mention the new module.
9602
9603 2011-02-05  Bruno Haible  <bruno@clisp.org>
9604
9605         New module 'wcpncpy'.
9606         * modules/wcpncpy: New file.
9607         * lib/wchar.in.h (wcpncpy): New declaration.
9608         * lib/wcpncpy.c: New file.
9609         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
9610         * m4/wcpncpy.m4: New file.
9611         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
9612         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
9613         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
9614         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
9615         * doc/posix-functions/wcpncpy.texi: Mention the new module.
9616
9617 2011-02-05  Bruno Haible  <bruno@clisp.org>
9618
9619         New module 'wcsncpy'.
9620         * modules/wcsncpy: New file.
9621         * lib/wchar.in.h (wcsncpy): New declaration.
9622         * lib/wcsncpy.c: New file.
9623         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
9624         * m4/wcsncpy.m4: New file.
9625         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
9626         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
9627         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
9628         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
9629         * doc/posix-functions/wcsncpy.texi: Mention the new module.
9630
9631 2011-02-05  Bruno Haible  <bruno@clisp.org>
9632
9633         New module 'wcpcpy'.
9634         * modules/wcpcpy: New file.
9635         * lib/wchar.in.h (wcpcpy): New declaration.
9636         * lib/wcpcpy.c: New file.
9637         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
9638         * m4/wcpcpy.m4: New file.
9639         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
9640         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
9641         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
9642         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
9643         * doc/posix-functions/wcpcpy.texi: Mention the new module.
9644
9645 2011-02-05  Bruno Haible  <bruno@clisp.org>
9646
9647         New module 'wcscpy'.
9648         * modules/wcscpy: New file.
9649         * lib/wchar.in.h (wcscpy): New declaration.
9650         * lib/wcscpy.c: New file.
9651         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
9652         * m4/wcscpy.m4: New file.
9653         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
9654         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
9655         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
9656         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
9657         * doc/posix-functions/wcscpy.texi: Mention the new module.
9658
9659 2011-02-05  Bruno Haible  <bruno@clisp.org>
9660
9661         New module 'wcsnlen'.
9662         * modules/wcsnlen: New file.
9663         * lib/wchar.in.h (wcsnlen): New declaration.
9664         * lib/wcsnlen.c: New file.
9665         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
9666         * m4/wcsnlen.m4: New file.
9667         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
9668         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
9669         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
9670         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
9671         * doc/posix-functions/wcsnlen.texi: Mention the new module.
9672
9673 2011-02-05  Bruno Haible  <bruno@clisp.org>
9674
9675         New module 'wcslen'.
9676         * modules/wcslen: New file.
9677         * lib/wchar.in.h (wcslen): New declaration.
9678         * lib/wcslen.c: New file.
9679         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
9680         * m4/wcslen.m4: New file.
9681         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
9682         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
9683         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
9684         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
9685         * doc/posix-functions/wcslen.texi: Mention the new module.
9686
9687 2011-02-05  Bruno Haible  <bruno@clisp.org>
9688
9689         New module 'wmemset'.
9690         * modules/wmemset: New file.
9691         * lib/wchar.in.h (wmemset): New declaration.
9692         * lib/wmemset.c: New file.
9693         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
9694         * m4/wmemset.m4: New file.
9695         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
9696         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
9697         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
9698         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
9699         * doc/posix-functions/wmemset.texi: Mention the new module.
9700
9701 2011-02-05  Bruno Haible  <bruno@clisp.org>
9702
9703         New module 'wmemmove'.
9704         * modules/wmemmove: New file.
9705         * lib/wchar.in.h (wmemmove): New declaration.
9706         * lib/wmemmove.c: New file.
9707         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
9708         * m4/wmemmove.m4: New file.
9709         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
9710         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
9711         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
9712         HAVE_WMEMMOVE.
9713         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
9714         * doc/posix-functions/wmemmove.texi: Mention the new module.
9715
9716 2011-02-05  Bruno Haible  <bruno@clisp.org>
9717
9718         New module 'wmemcpy'.
9719         * modules/wmemcpy: New file.
9720         * lib/wchar.in.h (wmemcpy): New declaration.
9721         * lib/wmemcpy.c: New file.
9722         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
9723         * m4/wmemcpy.m4: New file.
9724         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
9725         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
9726         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
9727         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
9728         * doc/posix-functions/wmemcpy.texi: Mention the new module.
9729
9730 2011-02-05  Bruno Haible  <bruno@clisp.org>
9731
9732         New module 'wmemcmp'.
9733         * modules/wmemcmp: New file.
9734         * lib/wchar.in.h (wmemcmp): New declaration.
9735         * lib/wmemcmp.c: New file.
9736         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
9737         * m4/wmemcmp.m4: New file.
9738         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
9739         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
9740         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
9741         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
9742         * doc/posix-functions/wmemcmp.texi: Mention the new module.
9743
9744 2011-02-07  Jim Meyering  <meyering@redhat.com>
9745
9746         di-set, ino-map: new modules, from coreutils
9747         * lib/di-set.c: New file.
9748         * lib/di-set.h: Likewise.
9749         * lib/ino-map.c: Likewise.
9750         * lib/ino-map.h: Likewise.
9751         * modules/di-set: Likewise.
9752         * modules/di-set-tests: Likewise.
9753         * modules/ino-map: Likewise.
9754         * modules/ino-map-tests: Likewise.
9755         * tests/test-di-set.c: Likewise.
9756         * tests/test-ino-map.c: Likewise.
9757
9758 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
9759
9760         getloadavg: merge minor changes from Emacs
9761
9762         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
9763         (getloadavg): Use memset, not bzero.
9764
9765         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
9766         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
9767         clash (bug#86).
9768
9769 2010-11-14  Bruno Haible  <bruno@clisp.org>
9770
9771         Allow multiple gnulib generated replacements to coexist.
9772         * lib/getopt.in.h (struct option): Avoid identical redefinition.
9773         * lib/inttypes.in.h (imaxdiv_t): Likewise.
9774         * lib/langinfo.in.h (nl_item): Likewise.
9775         * lib/math.in.h (_NaN, NAN): Likewise.
9776         * lib/netdb.in.h (struct addrinfo): Likewise.
9777         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
9778         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
9779         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
9780         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
9781         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
9782         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
9783         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
9784         pthread_mutexattr_init, pthread_mutexattr_settype,
9785         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
9786         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
9787         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
9788         pthread_spin_trylock, pthread_spin_unlock): Likewise.
9789         * lib/sched.in.h (struct sched_param): Likewise.
9790         * lib/se-selinux.in.h (security_class_t, security_context_t,
9791         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
9792         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
9793         lsetfilecon, fsetfilecon, security_check_context,
9794         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
9795         Likewise.
9796         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
9797         Likewise.
9798         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
9799         _gl_function_taking_int_returning_void_t, union sigval,
9800         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
9801         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
9802         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
9803         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
9804         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
9805         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
9806         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
9807         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
9808         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
9809         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
9810         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
9811         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
9812         socklen_t, rpl_fd_isset): Likewise.
9813         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
9814         * lib/sys_time.in.h (struct timeval): Likewise.
9815         * lib/sys_times.in.h (struct tms): Likewise.
9816         * lib/sys_utsname.in.h (struct utsname):
9817         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
9818         * lib/unistd.in.h (getpagesize): Likewise.
9819         * lib/wchar.in.h (mbstate_t): Likewise.
9820         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
9821         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
9822         towlower, towupper): Likewise.
9823         Reported by Sam Steingold <sds@gnu.org>.
9824
9825 2011-02-05  Eric Blake  <eblake@redhat.com>
9826
9827         unsetenv: work around Haiku issues
9828         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
9829         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
9830
9831 2010-12-30  Bruce Korb  <bkorb@gnu.org>
9832
9833         libposix: avoid calling error() within libposix
9834         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
9835         is defined.
9836
9837 2011-02-05  Eric Blake  <eblake@redhat.com>
9838
9839         strerror_r-posix: port to cygwin
9840         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
9841         implementation.
9842         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
9843         * tests/test-strerror_r.c (main): Fix test.
9844         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9845         issue.
9846
9847 2011-02-05  Bruno Haible  <bruno@clisp.org>
9848
9849         New module 'wmemchr'.
9850         * modules/wmemchr: New file.
9851         * lib/wchar.in.h (wmemchr): New declaration.
9852         * lib/wmemchr.c: New file.
9853         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
9854         * m4/wmemchr.m4: New file.
9855         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
9856         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
9857         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
9858         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
9859         * doc/posix-functions/wmemchr.texi: Mention the new module.
9860
9861 2011-02-04  Eric Blake  <eblake@redhat.com>
9862
9863         fdopendir: detect FreeBSD bug
9864         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
9865         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
9866
9867 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
9868
9869         stdbool: do not define HAVE_STDBOOL_H
9870         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
9871         AC_HEADER_STDBOOL.  All uses changed.  Do not define
9872         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
9873         imported from the latest Autoconf git.  It was motivated by Emacs,
9874         which uses gnulib but does not need HAVE_STDBOOL_H.
9875
9876 2011-02-04  Bruno Haible  <bruno@clisp.org>
9877
9878         wcsnrtombs: Prepare for new module wwcsnrtombs.
9879         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
9880         * lib/wcsnrtombs.c: Include it.
9881         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
9882
9883         wcsrtombs: Prepare for new module wwcsrtombs.
9884         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
9885         * lib/wcsrtombs.c: Include it.
9886         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
9887
9888         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
9889         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
9890         * lib/mbsnrtowcs.c: Include it.
9891         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
9892
9893         mbsrtowcs: Prepare for new module mbsrtowwcs.
9894         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
9895         * lib/mbsrtowcs.c: Include it.
9896         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
9897
9898 2011-02-04  Bruno Haible  <bruno@clisp.org>
9899
9900         vasnprintf: Reduce use of malloc for small format strings.
9901         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
9902         (arguments): Add room for the first 7 arguments.
9903         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
9904         (char_directives, u8_directives, u16_directives, u32_directives): Add
9905         room for the first 7 directives.
9906         * lib/printf-parse.c: Include <string.h>.
9907         (PRINTF_PARSE): Change memory handling code so that it uses the first
9908         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
9909         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
9910         Reported by Pádraig Brady <P@draigbrady.com>.
9911
9912 2011-01-31  Eric Blake  <eblake@redhat.com>
9913
9914         dup2: work around Haiku bug
9915         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
9916         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
9917         * doc/posix-functions/dup2.texi (dup2): Document the bug.
9918         * tests/test-dup2.c (main): Enhance test.
9919
9920 2011-01-31  Simon Josefsson  <simon@josefsson.org>
9921
9922         doc: off_t is not available in eglibc 2.11.2 stdio.h.
9923         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
9924         declared by eglibc 2.11.2.
9925         * lib/stdio.in.h: Likewise.
9926
9927 2011-01-31  Eric Blake  <eblake@redhat.com>
9928
9929         ignore-value: add missing test dependency
9930         * tests/test-ignore-value.c: Revert previous change; stdio.h
9931         provides off_t.
9932         * modules/ignore-value-tests (Depends-on): Add missing dependency.
9933
9934 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
9935
9936         mktime: clarify long_int width checking
9937         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
9938         the top level, to make it clearer that the assumption about
9939         long_int width is being checked.  See
9940         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
9941
9942 2011-01-30  Simon Josefsson  <simon@josefsson.org>
9943
9944         ignore-value: Fix self-test.
9945         * tests/test-ignore-value.c: Include sys/types.h for off_t.
9946
9947 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
9948
9949         TYPE_MAXIMUM: avoid theoretically undefined behavior
9950         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
9951         negative number, which the C Standard says has undefined behavior.
9952         In practice this is not a problem, but might as well do it by the book.
9953         Reported by Rich Felker and Eric Blake; see
9954         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
9955         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
9956         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
9957         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9958         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
9959         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9960         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
9961
9962         mktime: #undef mktime before #defining it
9963         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
9964
9965         mktime: systematically normalize tm_isdst comparisons
9966         * lib/mktime.c (isdst_differ): New function.
9967         (__mktime_internal): Use it systematically for all isdst comparisons.
9968         This completes the fix for libc BZ #6723, and removes the need for
9969         normalizing tm_isdst.  See
9970         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
9971         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
9972
9973         mktime: fix some integer overflow issues and sidestep the rest
9974
9975         This was prompted by a bug report by Benjamin Lindner for MinGW
9976         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
9977         His bug is due to signed integer overflow (0 - INT_MIN), and I
9978         I scanned through mktime.c looking for other integer overflow
9979         problems, fixing all the bugs I found.
9980
9981         Although the C Standard says the resulting code is still not safe
9982         in the presence of integer overflow, in practice it should be good
9983         enough for all real-world two's-complement implementations, except
9984         for debugging environments that deliberately trap on integer
9985         overflow (e.g., gcc -ftrapv).
9986
9987         * lib/mktime.c (WRAPV): New macro.
9988         (SHR): Also check that long_int and time_t shift right in the
9989         usual way, before using the fast-but-unportable method.
9990         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
9991         used.  The code already assumed two's complement, so there's
9992         no need to test for alternatives.  All uses removed.
9993         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
9994         the C standard.  Problem reported by Rich Felker in
9995         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
9996         (twos_complement_arithmetic): Also check long_int and time_t.
9997         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
9998         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
9999         (__mktime_internal): Avoid integer overflow with unary subtraction
10000         in two instances where -1 - X is an adequate replacement for -X,
10001         since the calculations are approximate.
10002
10003 2011-01-29  Eric Blake  <eblake@redhat.com>
10004
10005         mktime: avoid infinite loop
10006         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
10007         type; behavior is still undefined but portable to all known targets.
10008         Reported by Rich Felker.
10009
10010 2011-01-29  Simon Josefsson  <simon@josefsson.org>
10011
10012         rename, unlink, same-inode: Relicense.
10013         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
10014         * modules/unlink (License): Likewise.
10015         * modules/same-inode (License): Likewise.
10016
10017 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
10018
10019         mktime: avoid problems on NetBSD 5 / i386
10020         * lib/mktime.c (long_int): New type.  This works around a problem
10021         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
10022         but time_t is 64 bits, and where I expect the existing code is
10023         wrong in some cases.
10024         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
10025         (ydhms_diff): Bring back the compile-time check for wide-enough
10026         year and yday.
10027
10028         mktime: fix misspelling in comment
10029         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
10030         This merges all recent glibc changes of importance.
10031
10032 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10033
10034         move-if-change: cope with concurrent mv of identical file.
10035         * build-aux/move-if-change (CMPPROG): Accept environment
10036         variable as an override for `cmp'.
10037         (usage): Document CMPPROG.
10038         Adjust comparison to drop stdout.  Cope with failure of mv if
10039         the target file exists and is identical to the source, for
10040         parallel builds.
10041         Report from H.J. Lu against binutils in PR binutils/12283.
10042
10043 2011-01-28  Bruce Korb  <bkorb@gnu.org>
10044
10045         * users.txt: Mention sharutils.
10046
10047 2011-01-28  Simon Josefsson  <simon@josefsson.org>
10048
10049         * users.txt: Mention OATH Toolkit.
10050
10051 2011-01-27  Bruno Haible  <bruno@clisp.org>
10052
10053         Prepare for supporting FreeBSD 10.
10054         * build-aux/config.libpath: Remove handling of freebsd1*.
10055
10056 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
10057
10058         Prepare for supporting FreeBSD 10.
10059         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
10060         match FreeBSD 10.0.
10061
10062 2011-01-27  Bruno Haible  <bruno@clisp.org>
10063
10064         vma-iter, get-rusage-as: Add OpenBSD support.
10065         * modules/vma-iter (configure.ac): Test for mquery.
10066         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
10067         * lib/vma-iter.c: Include <sys/mman.h>.
10068         (vma_iterate): Add an implementation based on mquery().
10069         * lib/resource-ext.h (get_rusage_as): Update comments.
10070         * lib/get-rusage-as.c: Likewise.
10071         * lib/get-rusage-data.c: Likewise.
10072
10073 2011-01-26  Karl Berry  <karl@gnu.org>
10074
10075         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
10076         variables to make it easier to override the makeinfo program used.
10077
10078 2011-01-26  Eric Blake  <eblake@redhat.com>
10079
10080         fcntl: work around Haiku F_DUPFD bugs
10081         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
10082         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
10083         cloexec bit on duplication.
10084         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
10085
10086 2011-01-26  Bruno Haible  <bruno@clisp.org>
10087
10088         Enable memory leak tests on AIX.
10089         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
10090         * tests/test-fprintf-posix3.c (main): Likewise.
10091
10092 2011-01-26  Bruno Haible  <bruno@clisp.org>
10093
10094         Tests for module 'get-rusage-data'.
10095         * modules/get-rusage-data-tests: New file.
10096         * tests/test-get-rusage-data.c: New file.
10097
10098         New module 'get-rusage-data'.
10099         * lib/resource-ext.h (get_rusage_data): New declaration.
10100         * lib/get-rusage-data.c: New file.
10101         * modules/get-rusage-data: New file.
10102
10103 2011-01-25  Bruno Haible  <bruno@clisp.org>
10104
10105         get-rusage-as: Allow for easier testing.
10106         * lib/resource-ext.h (get_rusage_as): Add comment.
10107         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
10108         (main): New function for interactive testing.
10109
10110 2011-01-25  Bruno Haible  <bruno@clisp.org>
10111
10112         vma-iter: Treat Haiku like BeOS.
10113         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
10114         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
10115
10116 2011-01-25  Eric Blake  <eblake@redhat.com>
10117
10118         c-stack: fix regression on cygwin when libsigsegv is present
10119         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
10120
10121 2011-01-24  Bruno Haible  <bruno@clisp.org>
10122
10123         vma-iter: Avoid empty intervals.
10124         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
10125         on an empty interval.
10126
10127 2011-01-24  Jim Meyering  <meyering@redhat.com>
10128
10129         u64: remove unnecessary #include
10130         * lib/u64.h: Don't include <stddef.h>.  It was not used.
10131
10132 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
10133
10134         Allow the user to avoid the HAVE_RAW_DECL_* macros.
10135         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
10136
10137 2011-01-23  Bruno Haible  <bruno@clisp.org>
10138
10139         New module 'vma-iter'.
10140         * lib/vma-iter.h: New file.
10141         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
10142         * modules/vma-iter: New file.
10143         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
10144         for get_rusage_as_via_iterator.
10145         (vma_iterate_callback): New function.
10146         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
10147         * modules/get-rusage-as (Depends-on): Add vma-iter.
10148
10149 2011-01-23  Bruno Haible  <bruno@clisp.org>
10150
10151         uninorm: Tweak includes.
10152         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
10153         Reported by Jim Meyering.
10154
10155 2011-01-23  Bruno Haible  <bruno@clisp.org>
10156
10157         get-rusage-as: Improve on NetBSD.
10158         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
10159         /proc, like on FreeBSD.
10160
10161 2011-01-23  Jim Meyering  <meyering@redhat.com>
10162
10163         xreadlink.h: remove unnecessary #include
10164         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
10165
10166         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
10167         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
10168
10169 2011-01-23  Bruno Haible  <bruno@clisp.org>
10170
10171         get-rusage-as: Fix bug.
10172         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
10173         original limit when aborting the first loop.
10174
10175 2011-01-23  Bruno Haible  <bruno@clisp.org>
10176
10177         wctype: Ensure valid C syntax.
10178         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
10179         unconditionally, instead of gl_NEXT_HEADERS conditionally.
10180
10181 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
10182
10183         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
10184         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
10185         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
10186         as they are needed only for configure's test case.
10187         This removes two unnecessary symbols from config.h.
10188
10189         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
10190         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
10191         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
10192         AC_CHECK_HEADERS_ONCE on a header that we also invoke
10193         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
10194         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
10195         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
10196         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
10197         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
10198         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10199         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
10200         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10201         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10202         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10203         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
10204         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10205         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
10206         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
10207
10208 2011-01-21  Eric Blake  <eblake@redhat.com>
10209
10210         maintainer-makefile: work with older git for submodule check
10211         * top/maint.mk (public-submodule-commit): Rewrite to avoid
10212         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
10213         Reported by Matthias Bolte.
10214
10215         bootstrap: minor portability fixes
10216         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
10217         (usage): Omit leading capital and trailing . on help phrases, per
10218         GNU Coding Standards.
10219         (check_versions, top level): Prefix messages with script name.
10220
10221 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
10222
10223         bootstrap: support --no-git option
10224         * build-aux/bootstrap: Add --no-git option, to be used when
10225         --gnulib-srcdir points to the exact desired checkout.
10226
10227 2011-01-21  Eric Blake  <eblake@redhat.com>
10228
10229         strerror_r-posix: work with glibc 2.13
10230         * lib/strerror_r.c (strerror_r): Fix return type.
10231
10232 2011-01-21  Pádraig Brady  <P@draigBrady.com>
10233             Bruno Haible  <bruno@clisp.org>
10234
10235         uN_strstr: New unit tests.
10236         * modules/unistr/u8-strstr-tests: New file.
10237         * modules/unistr/u16-strstr-tests: New file.
10238         * modules/unistr/u32-strstr-tests: New file.
10239         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
10240         * tests/unistr/test-u8-strstr.c: New file.
10241         * tests/unistr/test-u16-strstr.c: New file.
10242         * tests/unistr/test-u32-strstr.c: New file.
10243
10244 2011-01-21  Pádraig Brady  <P@draigBrady.com>
10245             Bruno Haible  <bruno@clisp.org>
10246
10247         Make uN_strstr functions O(n) worst-case.
10248         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
10249         16-bit and 32-bit unit cases, use the unibyte algorithm from
10250         lib/mbsstr.c.
10251         * lib/unistr/u8-strstr.c: Include <string.h>.
10252         (UNIT_IS_UINT8_T): New macro.
10253         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
10254         (U_STRLEN, U_STRNLEN): New macros.
10255         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
10256         (U_STRLEN, U_STRNLEN): New macros.
10257         * modules/unistr/u8-strstr (Depends-on): Add strstr.
10258         (configure.ac): Update required libunistring version.
10259         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
10260         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
10261         malloca.
10262         (configure.ac): Update required libunistring version.
10263         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
10264         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
10265         malloca.
10266         (configure.ac): Update required libunistring version.
10267
10268 2011-01-21  Pádraig Brady  <P@draigBrady.com>
10269             Bruno Haible  <bruno@clisp.org>
10270
10271         Prepare for faster uN_strstr functions.
10272         * lib/str-kmp.h: Support definable UNITs.
10273         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
10274         needle_len argument.
10275         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
10276         * lib/mbscasestr.c (mbscasestr): Likewise.
10277
10278 2011-01-21  Pádraig Brady <P@draigBrady.com>
10279
10280         malloca-tests: make faster by unsetting MALLOC_PERTURB_
10281         * tests/test-malloca.c (main): Unset the environment variable
10282         to greatly speed up the test.
10283         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
10284         * modules/malloca-tests: Depend on unsetenv.
10285
10286 2011-01-21  Pádraig Brady <P@draigBrady.com>
10287
10288         ignore-value: remove stdint dependency
10289         * lib/ignore-value.h: Remove <stdint.h>
10290         * modules/ignore-value: Remove stdint dependency.
10291
10292 2011-01-21  Jim Meyering  <meyering@redhat.com>
10293
10294         maint.mk: adjust variable name to be consistent with other gl_ vars
10295         * top/maint.mk (gl_public_submodule_commit): Rename the variable
10296         to be lower case.
10297
10298 2011-01-20  Jim Meyering  <meyering@redhat.com>
10299
10300         maint.mk: make "check" depend on public-submodule-commit by default
10301         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
10302
10303 2011-01-20  Bruno Haible  <bruno@clisp.org>
10304
10305         mbfile, mbiter: Complete change from 2008-12-21.
10306         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
10307         * m4/mbiter.m4 (gl_MBITER): Likewise.
10308
10309 2011-01-20  Jim Meyering  <meyering@redhat.com>
10310
10311         init.sh: insert space between each function name and "()"
10312         * tests/init.sh: Make it a little easier to see that a function's
10313         name is "warn_", and not "warn" when looking at the first part of
10314         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
10315
10316 2011-01-20  Jim Meyering  <meyering@redhat.com>
10317
10318         mountlist: clean up code formatting
10319         * lib/mountlist.c (read_file_system_list): Split a long line,
10320         correct bracing style, use NULL in place of "(struct statfs *)0",
10321         don't parenthesize return value, add spaces around "=" and after
10322         ";-in-for-stmt".
10323
10324 2011-01-14  Markus Duft <mduft@gentoo.org>
10325
10326         mountlist: add support for Interix
10327         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
10328         Apply statvfs to all entries of /dev/fs.
10329         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
10330         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
10331
10332 2011-01-20  Jim Meyering  <meyering@redhat.com>
10333
10334         maint.mk: improve the public-submodule-commit rule
10335         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
10336         to suppress printing of its commands... unless V=1.
10337         Add git submodule's --quiet option to suppress printing of e.g.,
10338         "Entering gnulib" output.
10339         "cd" into $(srcdir) before running git submodule.
10340
10341 2011-01-20  Bruno Haible  <bruno@clisp.org>
10342
10343         include_next: Fix bug introduced on 2011-01-18.
10344         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
10345         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
10346         ac_cv_header_... variable if the second argument is not 'check'.
10347         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
10348         gl_NEXT_HEADERS_INTERNAL.
10349
10350 2011-01-20  Bruno Haible  <bruno@clisp.org>
10351
10352         Allow the user to avoid the GNULIB_TEST_* macros.
10353         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
10354         Suggested by Paul Eggert.
10355
10356 2011-01-14  Jim Meyering  <meyering@redhat.com>
10357
10358         bootstrap: avoid failure when there is no .gitmodules file
10359         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
10360         has been assigned to, even when its value is the empty string.
10361         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
10362         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
10363         Reported by John W. Eaton <jwe@gnu.org>.
10364
10365 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
10366
10367         assume <ctype.h>, ..., <time.h> exist
10368         For years gnulib has been assuming the existence of the headers
10369         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
10370         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
10371         them, since they don't appear to be needed.
10372         * README (Portability guidelines): Document this.
10373         * lib/flock.c: Assume <fcntl.h> exists.
10374         * lib/regex_internal.h: Assume <locale.h> exists.
10375         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
10376         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
10377         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
10378         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
10379         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
10380         * m4/regex.m4 (gl_REGEX): Likewise.
10381         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
10382         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
10383         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
10384         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
10385         * tests/test-argp.c: Likewise.
10386         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
10387
10388         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
10389         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
10390         AA_APPLE_UNIVERSAL_BUILD.  See
10391         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
10392         * NEWS: Document this.
10393
10394 2011-01-19  Eric Blake  <eblake@redhat.com>
10395
10396         c-stack: assume stack overflow if SA_SIGINFO unsupported
10397         * lib/c-stack.c (SIGACTION_WORKS): Rename...
10398         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
10399         sigaction will work.
10400         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
10401         behavior match Linux.
10402         * tests/test-c-stack.c (main): Prefer NULL for pointers.
10403
10404         stdbool-tests: accomodate Haiku
10405         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
10406
10407         binary-io: fix O_TEXT on Haiku
10408         * modules/binary-io (Depends-on): Add fcntl-h.
10409         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
10410         than blindly undefining O_TEXT.
10411         Reported by Scott McCreary.
10412
10413 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
10414
10415         include_next: do not check for standard headers like stddef.h
10416
10417         I found this problem when modifying Emacs to use gnulib.
10418         I noticed that it added HAVE_STDDEF_H to config.h, even though
10419         gnulib always assumes <stddef.h> exists as per README and this
10420         symbol is unnecessary.
10421         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
10422         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
10423         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
10424         faster for headers like stddef.h that are known to exist.
10425         (gl_CHECK_NEXT_HEADERS): Use it.
10426         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
10427         rather than gl_CHECK_NEXT_HEADERS.
10428         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
10429         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
10430
10431 2011-01-18  Eric Blake  <eblake@redhat.com>
10432
10433         ansi-c++-opt: skip C++ dependency style if C++ is unused
10434         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
10435         tests when we know C++ compilation is not desired.
10436         Reported by Scott McCreary.
10437
10438 2011-01-18  Bruno Haible  <bruno@clisp.org>
10439
10440         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
10441         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
10442         (main): Perform test also when getrlimit and setrlimit don't exist or
10443         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
10444         limiting the address space size using setrlimit, compare the address
10445         space size before and after the the test.
10446         * tests/test-dprintf-posix2.c: Likewise.
10447         * tests/test-fprintf-posix3.sh: Update skip messages.
10448         * tests/test-dprintf-posix2.sh: Likewise.
10449         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
10450         * modules/dprintf-posix-tests (Depends-on): Likewise.
10451         Reported by Bruce Korb <bkorb@gnu.org> and
10452         Gary V. Vaughan <gary@gnu.org>.
10453
10454 2011-01-18  Bruno Haible  <bruno@clisp.org>
10455
10456         get-rusage-as: Improvement for Cygwin.
10457         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
10458         areas that are merely reserved.
10459
10460 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
10461
10462         strftime: remove dependencies on multibyte modules
10463
10464         strftime depended on mbrlen, mbsinit, and wchar, but these modules
10465         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
10466         only if __osf__ is defined, and I suspect OSF doesn't need these
10467         other modules.  If my guess is wrong, we'll need to come up with a
10468         variant of strftime that doesn't need the multibyte modules.
10469
10470         I discovered this problem when attempting modify Emacs to use the
10471         strftime module.  With the previous gnulib, this caused Emacs to
10472         need 31 new files, ranging from lib/config.charset to
10473         m4/wint_t.m4.  This was overkill and I expect would be offputting
10474         to the Emacs maintainers.  After this change, only 6 new files are
10475         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
10476         stdbool.m4, and tm_gmtoff.m4.
10477
10478         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
10479         Suggested by Bruno Haible in
10480         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
10481         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
10482         and do not check for wchar.h.
10483         * modules/strftime (Files): Remove m4/mbstate_t.m4.
10484         (Depends-on): Remove mbrlen, mbsinit, wchar.
10485
10486 2011-01-18  Bruno Haible  <bruno@clisp.org>
10487
10488         Tests for module 'get-rusage-as'.
10489         * modules/get-rusage-as-tests: New file.
10490         * tests/test-get-rusage-as.c: New file.
10491
10492         New module 'get-rusage-as'.
10493         * modules/get-rusage-as: New file.
10494         * lib/resource-ext.h: New file.
10495         * lib/get-rusage-as.c: New file.
10496
10497 2011-01-17  Eric Blake  <eblake@redhat.com>
10498
10499         sigaction: relax license from LGPLv3+ to LGPLv2+
10500         * modules/sigaction (License): Relax to LGPLv2+.
10501
10502 2011-01-14  Bruno Haible  <bruno@clisp.org>
10503
10504         filemode: Make function declarations usable in C++ mode.
10505         * lib/filemode.h: Enclose function declarations in extern "C" block.
10506         Reported by John W. Eaton <jwe@gnu.org>.
10507
10508 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
10509
10510         save-cwd: no longer include "xgetcwd.h"
10511         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
10512         This avoids a compilation failure in projects that use save-cwd
10513         without also using the xgetcwd module.
10514
10515 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
10516
10517         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
10518         This is so that a program like Emacs, which needs only dtoastr,
10519         does not have to bother with distributing and compiling ftoastr
10520         and ldtoastr.
10521         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
10522         * modules/dtoastr, modules/ldtoastr: New files.
10523         * modules/ftoastr: Now works just for 'float'.
10524         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
10525         (Makefile.am): Remove ftoastr.h (not needed and no effect),
10526         dtoastr.c, ldtoastr.c.
10527
10528 2011-01-11  Jim Meyering  <meyering@redhat.com>
10529
10530         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
10531         There is no need to work around the lack of the fchdir function,
10532         since gnulib can now provide a replacement when required.
10533         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
10534         * modules/save-cwd (Depends-on): Add fchdir.
10535
10536 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
10537
10538         openat, save-cwd: avoid xmalloc
10539
10540         This removes a direct (but undocumented) dependency of openat on
10541         xalloc, along with an indirect dependency via save-cwd.  It also
10542         removes a dependency of save-cwd on xgetcwd, and thereby
10543         indirectly on xalloc.  This change causes the openat substitute
10544         to fall back on save_cwd when memory is tight, and for save_cwd to
10545         fail instead of dying when memory is tight, but that's good enough.
10546         Problem and initial idea for fix reported by Bastien Roucaries in
10547         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
10548
10549         * lib/openat-proc.c: Include stdlib.h (for malloc), not
10550         xalloc.h (for xmalloc).
10551         (openat_proc_name): Use malloc, not xmalloc.
10552         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
10553         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
10554
10555         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
10556         This avoids heap allocation for file names whose lengths are in
10557         the range 512..1023, with the upper bound increasing to at most
10558         4031 depending on the platform's PATH_MAX.  (We do not want
10559         pathmax.h here as it might supply a non-constant PATH_MAX.)
10560         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
10561         Perhaps they should be moved to malloca.h?
10562         (OPENAT_BUFFER_SIZE): Use them.
10563
10564 2011-01-10  Bruno Haible  <bruno@clisp.org>
10565
10566         doc: Update users.txt.
10567         * users.txt: Add recutils.
10568
10569 2011-01-09  Karl Berry  <karl@gnu.org>
10570
10571         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
10572
10573         * doc/configmake.texi: New file.
10574         * doc/gnulib.texi: Include it.
10575         * modules/configmake: Move documentation from here.
10576
10577 2011-01-09  Bruno Haible  <bruno@clisp.org>
10578
10579         Update to Unicode 6.0.0.
10580         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
10581         (get_lbp): Update for Unicode 6.0.0.
10582         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
10583         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
10584         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
10585         U+11001, U+11038..U+11046. Remove U+06DE.
10586         (uc_width): Fix bounds of planes.
10587         * tests/uniwidth/test-uc_width2.sh: Same updates as in
10588         lib/uniwidth/width.c.
10589         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
10590         trailing whitespace removed.
10591         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
10592         without comments, but with the original copyright notice.
10593         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
10594         * lib/unicase/ignorable.h: Likewise.
10595         * lib/unicase/tocasefold.h: Likewise.
10596         * lib/unicase/tolower.h: Likewise.
10597         * lib/unicase/totitle.h: Likewise.
10598         * lib/unicase/toupper.h: Likewise.
10599         * lib/unictype/bidi_of.h: Likewise.
10600         * lib/unictype/blocks.h: Likewise.
10601         * lib/unictype/categ_C.h: Likewise.
10602         * lib/unictype/categ_Cn.h: Likewise.
10603         * lib/unictype/categ_L.h: Likewise.
10604         * lib/unictype/categ_Ll.h: Likewise.
10605         * lib/unictype/categ_Lm.h: Likewise.
10606         * lib/unictype/categ_Lo.h: Likewise.
10607         * lib/unictype/categ_Lu.h: Likewise.
10608         * lib/unictype/categ_M.h: Likewise.
10609         * lib/unictype/categ_Mc.h: Likewise.
10610         * lib/unictype/categ_Me.h: Likewise.
10611         * lib/unictype/categ_Mn.h: Likewise.
10612         * lib/unictype/categ_N.h: Likewise.
10613         * lib/unictype/categ_Nd.h: Likewise.
10614         * lib/unictype/categ_No.h: Likewise.
10615         * lib/unictype/categ_P.h: Likewise.
10616         * lib/unictype/categ_Po.h: Likewise.
10617         * lib/unictype/categ_S.h: Likewise.
10618         * lib/unictype/categ_Sc.h: Likewise.
10619         * lib/unictype/categ_Sk.h: Likewise.
10620         * lib/unictype/categ_Sm.h: Likewise.
10621         * lib/unictype/categ_So.h: Likewise.
10622         * lib/unictype/categ_of.h: Likewise.
10623         * lib/unictype/combining.h: Likewise.
10624         * lib/unictype/ctype_alnum.h: Likewise.
10625         * lib/unictype/ctype_alpha.h: Likewise.
10626         * lib/unictype/ctype_graph.h: Likewise.
10627         * lib/unictype/ctype_lower.h: Likewise.
10628         * lib/unictype/ctype_print.h: Likewise.
10629         * lib/unictype/ctype_punct.h: Likewise.
10630         * lib/unictype/ctype_upper.h: Likewise.
10631         * lib/unictype/decdigit.h: Likewise.
10632         * lib/unictype/digit.h: Likewise.
10633         * lib/unictype/numeric.h: Likewise.
10634         * lib/unictype/pr_alphabetic.h: Likewise.
10635         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
10636         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
10637         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
10638         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
10639         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
10640         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
10641         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
10642         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
10643         * lib/unictype/pr_case_ignorable.h: Likewise.
10644         * lib/unictype/pr_cased.h: Likewise.
10645         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
10646         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
10647         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
10648         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
10649         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
10650         * lib/unictype/pr_combining.h: Likewise.
10651         * lib/unictype/pr_composite.h: Likewise.
10652         * lib/unictype/pr_currency_symbol.h: Likewise.
10653         * lib/unictype/pr_decimal_digit.h: Likewise.
10654         * lib/unictype/pr_deprecated.h: Likewise.
10655         * lib/unictype/pr_format_control.h: Likewise.
10656         * lib/unictype/pr_grapheme_base.h: Likewise.
10657         * lib/unictype/pr_grapheme_extend.h: Likewise.
10658         * lib/unictype/pr_grapheme_link.h: Likewise.
10659         * lib/unictype/pr_id_continue.h: Likewise.
10660         * lib/unictype/pr_id_start.h: Likewise.
10661         * lib/unictype/pr_ideographic.h: Likewise.
10662         * lib/unictype/pr_lowercase.h: Likewise.
10663         * lib/unictype/pr_math.h: Likewise.
10664         * lib/unictype/pr_numeric.h: Likewise.
10665         * lib/unictype/pr_other_alphabetic.h: Likewise.
10666         * lib/unictype/pr_other_id_continue.h: Likewise.
10667         * lib/unictype/pr_other_math.h: Likewise.
10668         * lib/unictype/pr_punctuation.h: Likewise.
10669         * lib/unictype/pr_sentence_terminal.h: Likewise.
10670         * lib/unictype/pr_terminal_punctuation.h: Likewise.
10671         * lib/unictype/pr_unassigned_code_value.h: Likewise.
10672         * lib/unictype/pr_unified_ideograph.h: Likewise.
10673         * lib/unictype/pr_uppercase.h: Likewise.
10674         * lib/unictype/pr_xid_continue.h: Likewise.
10675         * lib/unictype/pr_xid_start.h: Likewise.
10676         * lib/unictype/scripts.h: Likewise.
10677         * lib/unictype/scripts_byname.gperf: Likewise.
10678         * lib/unictype/sy_java_ident.h: Likewise.
10679         * lib/unigbrk/gbrkprop.h: Likewise.
10680         * lib/unilbrk/lbrkprop1.h: Likewise.
10681         * lib/unilbrk/lbrkprop2.h: Likewise.
10682         * lib/uninorm/decomposition-table2.h: Likewise.
10683         * lib/uniwbrk/wbrkprop.h: Likewise.
10684         * tests/unicase/test-cased.c: Likewise.
10685         * tests/unicase/test-ignorable.c: Likewise.
10686         * tests/unicase/test-uc_tolower.c: Likewise.
10687         * tests/unicase/test-uc_totitle.c: Likewise.
10688         * tests/unicase/test-uc_toupper.c: Likewise.
10689         * tests/unictype/test-categ_C.c: Likewise.
10690         * tests/unictype/test-categ_Cn.c: Likewise.
10691         * tests/unictype/test-categ_L.c: Likewise.
10692         * tests/unictype/test-categ_Ll.c: Likewise.
10693         * tests/unictype/test-categ_Lm.c: Likewise.
10694         * tests/unictype/test-categ_Lo.c: Likewise.
10695         * tests/unictype/test-categ_Lu.c: Likewise.
10696         * tests/unictype/test-categ_M.c: Likewise.
10697         * tests/unictype/test-categ_Mc.c: Likewise.
10698         * tests/unictype/test-categ_Me.c: Likewise.
10699         * tests/unictype/test-categ_Mn.c: Likewise.
10700         * tests/unictype/test-categ_N.c: Likewise.
10701         * tests/unictype/test-categ_Nd.c: Likewise.
10702         * tests/unictype/test-categ_No.c: Likewise.
10703         * tests/unictype/test-categ_P.c: Likewise.
10704         * tests/unictype/test-categ_Po.c: Likewise.
10705         * tests/unictype/test-categ_S.c: Likewise.
10706         * tests/unictype/test-categ_Sc.c: Likewise.
10707         * tests/unictype/test-categ_Sk.c: Likewise.
10708         * tests/unictype/test-categ_Sm.c: Likewise.
10709         * tests/unictype/test-categ_So.c: Likewise.
10710         * tests/unictype/test-ctype_alnum.c: Likewise.
10711         * tests/unictype/test-ctype_alpha.c: Likewise.
10712         * tests/unictype/test-ctype_graph.c: Likewise.
10713         * tests/unictype/test-ctype_lower.c: Likewise.
10714         * tests/unictype/test-ctype_print.c: Likewise.
10715         * tests/unictype/test-ctype_punct.c: Likewise.
10716         * tests/unictype/test-ctype_upper.c: Likewise.
10717         * tests/unictype/test-decdigit.h: Likewise.
10718         * tests/unictype/test-digit.h: Likewise.
10719         * tests/unictype/test-numeric.h: Likewise.
10720         * tests/unictype/test-pr_alphabetic.c: Likewise.
10721         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
10722         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
10723         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
10724         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
10725         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
10726         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
10727         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
10728         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
10729         * tests/unictype/test-pr_case_ignorable.c: Likewise.
10730         * tests/unictype/test-pr_cased.c: Likewise.
10731         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
10732         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
10733         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
10734         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
10735         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
10736         * tests/unictype/test-pr_combining.c: Likewise.
10737         * tests/unictype/test-pr_composite.c: Likewise.
10738         * tests/unictype/test-pr_currency_symbol.c: Likewise.
10739         * tests/unictype/test-pr_decimal_digit.c: Likewise.
10740         * tests/unictype/test-pr_deprecated.c: Likewise.
10741         * tests/unictype/test-pr_format_control.c: Likewise.
10742         * tests/unictype/test-pr_grapheme_base.c: Likewise.
10743         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
10744         * tests/unictype/test-pr_grapheme_link.c: Likewise.
10745         * tests/unictype/test-pr_id_continue.c: Likewise.
10746         * tests/unictype/test-pr_id_start.c: Likewise.
10747         * tests/unictype/test-pr_ideographic.c: Likewise.
10748         * tests/unictype/test-pr_lowercase.c: Likewise.
10749         * tests/unictype/test-pr_math.c: Likewise.
10750         * tests/unictype/test-pr_numeric.c: Likewise.
10751         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
10752         * tests/unictype/test-pr_other_id_continue.c: Likewise.
10753         * tests/unictype/test-pr_other_math.c: Likewise.
10754         * tests/unictype/test-pr_punctuation.c: Likewise.
10755         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
10756         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
10757         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
10758         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
10759         * tests/unictype/test-pr_uppercase.c: Likewise.
10760         * tests/unictype/test-pr_xid_continue.c: Likewise.
10761         * tests/unictype/test-pr_xid_start.c: Likewise.
10762         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
10763         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
10764         changes.
10765         * lib/unictype/categ_Cc.h: Likewise.
10766         * lib/unictype/categ_Cf.h: Likewise.
10767         * lib/unictype/categ_Co.h: Likewise.
10768         * lib/unictype/categ_Cs.h: Likewise.
10769         * lib/unictype/categ_Lt.h: Likewise.
10770         * lib/unictype/categ_Nl.h: Likewise.
10771         * lib/unictype/categ_Pc.h: Likewise.
10772         * lib/unictype/categ_Pd.h: Likewise.
10773         * lib/unictype/categ_Pe.h: Likewise.
10774         * lib/unictype/categ_Pf.h: Likewise.
10775         * lib/unictype/categ_Pi.h: Likewise.
10776         * lib/unictype/categ_Ps.h: Likewise.
10777         * lib/unictype/categ_Z.h: Likewise.
10778         * lib/unictype/categ_Zl.h: Likewise.
10779         * lib/unictype/categ_Zp.h: Likewise.
10780         * lib/unictype/categ_Zs.h: Likewise.
10781         * lib/unictype/ctype_blank.h: Likewise.
10782         * lib/unictype/ctype_cntrl.h: Likewise.
10783         * lib/unictype/ctype_digit.h: Likewise.
10784         * lib/unictype/ctype_space.h: Likewise.
10785         * lib/unictype/ctype_xdigit.h: Likewise.
10786         * lib/unictype/mirror.h: Likewise.
10787         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
10788         * lib/unictype/pr_bidi_block_separator.h: Likewise.
10789         * lib/unictype/pr_bidi_common_separator.h: Likewise.
10790         * lib/unictype/pr_bidi_control.h: Likewise.
10791         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
10792         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
10793         * lib/unictype/pr_bidi_european_digit.h: Likewise.
10794         * lib/unictype/pr_bidi_pdf.h: Likewise.
10795         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
10796         * lib/unictype/pr_bidi_whitespace.h: Likewise.
10797         * lib/unictype/pr_dash.h: Likewise.
10798         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
10799         * lib/unictype/pr_diacritic.h: Likewise.
10800         * lib/unictype/pr_extender.h: Likewise.
10801         * lib/unictype/pr_hex_digit.h: Likewise.
10802         * lib/unictype/pr_hyphen.h: Likewise.
10803         * lib/unictype/pr_ids_binary_operator.h: Likewise.
10804         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
10805         * lib/unictype/pr_ignorable_control.h: Likewise.
10806         * lib/unictype/pr_iso_control.h: Likewise.
10807         * lib/unictype/pr_join_control.h: Likewise.
10808         * lib/unictype/pr_left_of_pair.h: Likewise.
10809         * lib/unictype/pr_line_separator.h: Likewise.
10810         * lib/unictype/pr_logical_order_exception.h: Likewise.
10811         * lib/unictype/pr_non_break.h: Likewise.
10812         * lib/unictype/pr_not_a_character.h: Likewise.
10813         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
10814         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
10815         * lib/unictype/pr_other_id_start.h: Likewise.
10816         * lib/unictype/pr_other_lowercase.h: Likewise.
10817         * lib/unictype/pr_other_uppercase.h: Likewise.
10818         * lib/unictype/pr_paired_punctuation.h: Likewise.
10819         * lib/unictype/pr_paragraph_separator.h: Likewise.
10820         * lib/unictype/pr_pattern_syntax.h: Likewise.
10821         * lib/unictype/pr_pattern_white_space.h: Likewise.
10822         * lib/unictype/pr_private_use.h: Likewise.
10823         * lib/unictype/pr_quotation_mark.h: Likewise.
10824         * lib/unictype/pr_radical.h: Likewise.
10825         * lib/unictype/pr_soft_dotted.h: Likewise.
10826         * lib/unictype/pr_space.h: Likewise.
10827         * lib/unictype/pr_titlecase.h: Likewise.
10828         * lib/unictype/pr_variation_selector.h: Likewise.
10829         * lib/unictype/pr_white_space.h: Likewise.
10830         * lib/unictype/pr_zero_width.h: Likewise.
10831         * lib/unictype/sy_c_ident.h: Likewise.
10832         * lib/unictype/sy_c_whitespace.h: Likewise.
10833         * lib/unictype/sy_java_whitespace.h: Likewise.
10834         * lib/uninorm/composition-table.gperf: Likewise.
10835         * lib/uninorm/decomposition-table1.h: Likewise.
10836         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
10837         LB8.
10838         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
10839         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
10840         * modules/unictype/*: Bump version number of expected libunistring
10841         version.
10842
10843 2011-01-09  Bruno Haible  <bruno@clisp.org>
10844
10845         Update to Unicode 5.2.0.
10846         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
10847         trailing whitespace removed.
10848
10849 2011-01-09  Bruno Haible  <bruno@clisp.org>
10850
10851         New Unicode character properties, from Unicode 5.2.0.
10852         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
10853         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
10854         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
10855         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
10856         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
10857         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
10858         uc_is_property_cased, uc_is_property_case_ignorable,
10859         uc_is_property_changes_when_lowercased,
10860         uc_is_property_changes_when_uppercased,
10861         uc_is_property_changes_when_titlecased,
10862         uc_is_property_changes_when_casefolded,
10863         uc_is_property_changes_when_casemapped): New declarations.
10864         * lib/unictype/pr_byname.gperf: Add the new properties.
10865         * modules/unictype/property-byname (Depends-on): Depend on the new
10866         properties modules.
10867         * modules/unictype/property-all (Depends-on): Likewise.
10868         * MODULES.html.sh (Unicode string functions): Add
10869         unictype/property-case-ignorable, unictype/property-cased,
10870         unictype/property-changes-when-casefolded,
10871         unictype/property-changes-when-casemapped,
10872         unictype/property-changes-when-lowercased,
10873         unictype/property-changes-when-titlecased,
10874         unictype/property-changes-when-uppercased.
10875
10876         New module 'unictype/property-changes-when-casemapped'.
10877         * modules/unictype/property-changes-when-casemapped: New file.
10878         * lib/unictype/pr_changes_when_casemapped.c: New file.
10879         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
10880         generated by gen-uni-tables.
10881         * modules/unictype/property-changes-when-casemapped-tests: New file.
10882         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
10883         automatically generated by gen-uni-tables.
10884
10885         New module 'unictype/property-changes-when-casefolded'.
10886         * modules/unictype/property-changes-when-casefolded: New file.
10887         * lib/unictype/pr_changes_when_casefolded.c: New file.
10888         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
10889         generated by gen-uni-tables.
10890         * modules/unictype/property-changes-when-casefolded-tests: New file.
10891         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
10892         automatically generated by gen-uni-tables.
10893
10894         New module 'unictype/property-changes-when-titlecased'.
10895         * modules/unictype/property-changes-when-titlecased: New file.
10896         * lib/unictype/pr_changes_when_titlecased.c: New file.
10897         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
10898         generated by gen-uni-tables.
10899         * modules/unictype/property-changes-when-titlecased-tests: New file.
10900         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
10901         automatically generated by gen-uni-tables.
10902
10903         New module 'unictype/property-changes-when-uppercased'.
10904         * modules/unictype/property-changes-when-uppercased: New file.
10905         * lib/unictype/pr_changes_when_uppercased.c: New file.
10906         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
10907         generated by gen-uni-tables.
10908         * modules/unictype/property-changes-when-uppercased-tests: New file.
10909         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
10910         automatically generated by gen-uni-tables.
10911
10912         New module 'unictype/property-changes-when-lowercased'.
10913         * modules/unictype/property-changes-when-lowercased: New file.
10914         * lib/unictype/pr_changes_when_lowercased.c: New file.
10915         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
10916         generated by gen-uni-tables.
10917         * modules/unictype/property-changes-when-lowercased-tests: New file.
10918         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
10919         automatically generated by gen-uni-tables.
10920
10921         New module 'unictype/property-case-ignorable'.
10922         * modules/unictype/property-case-ignorable: New file.
10923         * lib/unictype/pr_case_ignorable.c: New file.
10924         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
10925         by gen-uni-tables.
10926         * modules/unictype/property-case-ignorable-tests: New file.
10927         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
10928         generated by gen-uni-tables.
10929
10930         New module 'unictype/property-cased'.
10931         * modules/unictype/property-cased: New file.
10932         * lib/unictype/pr_cased.c: New file.
10933         * lib/unictype/pr_cased.h: New file, automatically generated by
10934         gen-uni-tables.
10935         * modules/unictype/property-cased-tests: New file.
10936         * tests/unictype/test-pr_cased.c: New file, automatically generated by
10937         gen-uni-tables.
10938
10939 2011-01-09  Bruno Haible  <bruno@clisp.org>
10940
10941         Update to Unicode 5.2.0.
10942         * lib/gen-uni-tables.c (output_predicate, output_category,
10943         output_combclass, output_bidi_category, output_decimal_digit_test,
10944         output_decimal_digit, output_digit_test, output_digit,
10945         output_numeric_test, output_numeric, output_mirror, output_scripts,
10946         output_scripts_byname, output_blocks, output_ident_category): Fix
10947         comment header.
10948         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
10949         get_wbp.
10950         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
10951         items.
10952         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
10953         Changes_When_Lowercased, Changes_When_Uppercased,
10954         Changes_When_Titlecased, Changes_When_Casefolded,
10955         Changes_When_Casemapped.
10956         (is_property_alphabetic, is_property_default_ignorable_code_point):
10957         Update for Unicode 5.2.0.
10958         (is_property_cased, is_property_case_ignorable,
10959         is_property_changes_when_lowercased,
10960         is_property_changes_when_uppercased,
10961         is_property_changes_when_titlecased,
10962         is_property_changes_when_casefolded,
10963         is_property_changes_when_casemapped): New functions.
10964         (output_properties): Output also the properties cased, case_ignorable,
10965         changes_when_lowercased, changes_when_uppercased,
10966         changes_when_titlecased, changes_when_casefolded,
10967         changes_when_casemapped.
10968         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
10969         Unicode TR#11 revision 17 -> 19.
10970         (LBP_CP): New enumeration value.
10971         (LBP_*): Adjust values accordingly.
10972         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
10973         TR#14 revision 22 -> 24.
10974         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
10975         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
10976         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
10977         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
10978         is_WBP_MIDLETTER.
10979         (output_composition_tables): Allow for 24 bits instead of 16 bits in
10980         the code1 and code2 of each composition rule.
10981         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
10982         * lib/unicase/ignorable.h: Likewise.
10983         * lib/unicase/tocasefold.h: Likewise.
10984         * lib/unicase/tolower.h: Likewise.
10985         * lib/unicase/totitle.h: Likewise.
10986         * lib/unicase/toupper.h: Likewise.
10987         * lib/unictype/bidi_of.h: Likewise.
10988         * lib/unictype/blocks.h: Likewise.
10989         * lib/unictype/categ_C.h: Likewise.
10990         * lib/unictype/categ_Cf.h: Likewise.
10991         * lib/unictype/categ_Cn.h: Likewise.
10992         * lib/unictype/categ_L.h: Likewise.
10993         * lib/unictype/categ_Ll.h: Likewise.
10994         * lib/unictype/categ_Lm.h: Likewise.
10995         * lib/unictype/categ_Lo.h: Likewise.
10996         * lib/unictype/categ_Lu.h: Likewise.
10997         * lib/unictype/categ_M.h: Likewise.
10998         * lib/unictype/categ_Mc.h: Likewise.
10999         * lib/unictype/categ_Mn.h: Likewise.
11000         * lib/unictype/categ_N.h: Likewise.
11001         * lib/unictype/categ_Nd.h: Likewise.
11002         * lib/unictype/categ_Nl.h: Likewise.
11003         * lib/unictype/categ_No.h: Likewise.
11004         * lib/unictype/categ_P.h: Likewise.
11005         * lib/unictype/categ_Pd.h: Likewise.
11006         * lib/unictype/categ_Po.h: Likewise.
11007         * lib/unictype/categ_S.h: Likewise.
11008         * lib/unictype/categ_Sc.h: Likewise.
11009         * lib/unictype/categ_So.h: Likewise.
11010         * lib/unictype/categ_of.h: Likewise.
11011         * lib/unictype/combining.h: Likewise.
11012         * lib/unictype/ctype_alnum.h: Likewise.
11013         * lib/unictype/ctype_alpha.h: Likewise.
11014         * lib/unictype/ctype_graph.h: Likewise.
11015         * lib/unictype/ctype_lower.h: Likewise.
11016         * lib/unictype/ctype_print.h: Likewise.
11017         * lib/unictype/ctype_punct.h: Likewise.
11018         * lib/unictype/ctype_upper.h: Likewise.
11019         * lib/unictype/decdigit.h: Likewise.
11020         * lib/unictype/digit.h: Likewise.
11021         * lib/unictype/numeric.h: Likewise.
11022         * lib/unictype/pr_alphabetic.h: Likewise.
11023         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
11024         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
11025         * lib/unictype/pr_bidi_european_digit.h: Likewise.
11026         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
11027         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
11028         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
11029         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
11030         * lib/unictype/pr_combining.h: Likewise.
11031         * lib/unictype/pr_composite.h: Likewise.
11032         * lib/unictype/pr_currency_symbol.h: Likewise.
11033         * lib/unictype/pr_dash.h: Likewise.
11034         * lib/unictype/pr_decimal_digit.h: Likewise.
11035         * lib/unictype/pr_deprecated.h: Likewise.
11036         * lib/unictype/pr_diacritic.h: Likewise.
11037         * lib/unictype/pr_extender.h: Likewise.
11038         * lib/unictype/pr_grapheme_base.h: Likewise.
11039         * lib/unictype/pr_grapheme_extend.h: Likewise.
11040         * lib/unictype/pr_grapheme_link.h: Likewise.
11041         * lib/unictype/pr_id_continue.h: Likewise.
11042         * lib/unictype/pr_id_start.h: Likewise.
11043         * lib/unictype/pr_ideographic.h: Likewise.
11044         * lib/unictype/pr_ignorable_control.h: Likewise.
11045         * lib/unictype/pr_logical_order_exception.h: Likewise.
11046         * lib/unictype/pr_lowercase.h: Likewise.
11047         * lib/unictype/pr_numeric.h: Likewise.
11048         * lib/unictype/pr_other_alphabetic.h: Likewise.
11049         * lib/unictype/pr_punctuation.h: Likewise.
11050         * lib/unictype/pr_sentence_terminal.h: Likewise.
11051         * lib/unictype/pr_terminal_punctuation.h: Likewise.
11052         * lib/unictype/pr_unassigned_code_value.h: Likewise.
11053         * lib/unictype/pr_unified_ideograph.h: Likewise.
11054         * lib/unictype/pr_uppercase.h: Likewise.
11055         * lib/unictype/pr_xid_continue.h: Likewise.
11056         * lib/unictype/pr_xid_start.h: Likewise.
11057         * lib/unictype/pr_zero_width.h: Likewise.
11058         * lib/unictype/scripts.h: Likewise.
11059         * lib/unictype/scripts_byname.gperf: Likewise.
11060         * lib/unictype/sy_java_ident.h: Likewise.
11061         * lib/unigbrk/gbrkprop.h: Likewise.
11062         * lib/unilbrk/lbrkprop1.h: Likewise.
11063         * lib/unilbrk/lbrkprop2.h: Likewise.
11064         * lib/unilbrk/lbrktables.h: Likewise.
11065         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
11066         LBP_CP. Implement rule LB30.
11067         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
11068         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
11069         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
11070         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
11071         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
11072         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
11073         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
11074         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
11075         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
11076         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
11077         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
11078         bits instead of 16 bits in the code1 and code2 of each composition
11079         rule.
11080         (uc_composition): Update for Unicode 5.2.0.
11081         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
11082         * lib/uninorm/decomposition-table2.h: Likewise.
11083         * lib/uniwbrk/wbrkprop.h: Likewise.
11084         * tests/unicase/test-cased.c: Likewise.
11085         * tests/unicase/test-ignorable.c: Likewise.
11086         * tests/unicase/test-uc_tolower.c: Likewise.
11087         * tests/unicase/test-uc_totitle.c: Likewise.
11088         * tests/unicase/test-uc_toupper.c: Likewise.
11089         * tests/unictype/test-categ_C.c: Likewise.
11090         * tests/unictype/test-categ_Cf.c: Likewise.
11091         * tests/unictype/test-categ_Cn.c: Likewise.
11092         * tests/unictype/test-categ_L.c: Likewise.
11093         * tests/unictype/test-categ_Ll.c: Likewise.
11094         * tests/unictype/test-categ_Lm.c: Likewise.
11095         * tests/unictype/test-categ_Lo.c: Likewise.
11096         * tests/unictype/test-categ_Lu.c: Likewise.
11097         * tests/unictype/test-categ_M.c: Likewise.
11098         * tests/unictype/test-categ_Mc.c: Likewise.
11099         * tests/unictype/test-categ_Mn.c: Likewise.
11100         * tests/unictype/test-categ_N.c: Likewise.
11101         * tests/unictype/test-categ_Nd.c: Likewise.
11102         * tests/unictype/test-categ_Nl.c: Likewise.
11103         * tests/unictype/test-categ_No.c: Likewise.
11104         * tests/unictype/test-categ_P.c: Likewise.
11105         * tests/unictype/test-categ_Pd.c: Likewise.
11106         * tests/unictype/test-categ_Po.c: Likewise.
11107         * tests/unictype/test-categ_S.c: Likewise.
11108         * tests/unictype/test-categ_Sc.c: Likewise.
11109         * tests/unictype/test-categ_So.c: Likewise.
11110         * tests/unictype/test-ctype_alnum.c: Likewise.
11111         * tests/unictype/test-ctype_alpha.c: Likewise.
11112         * tests/unictype/test-ctype_graph.c: Likewise.
11113         * tests/unictype/test-ctype_lower.c: Likewise.
11114         * tests/unictype/test-ctype_print.c: Likewise.
11115         * tests/unictype/test-ctype_punct.c: Likewise.
11116         * tests/unictype/test-ctype_upper.c: Likewise.
11117         * tests/unictype/test-decdigit.h: Likewise.
11118         * tests/unictype/test-digit.h: Likewise.
11119         * tests/unictype/test-numeric.h: Likewise.
11120         * tests/unictype/test-pr_alphabetic.c: Likewise.
11121         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
11122         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
11123         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
11124         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
11125         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
11126         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
11127         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
11128         * tests/unictype/test-pr_combining.c: Likewise.
11129         * tests/unictype/test-pr_composite.c: Likewise.
11130         * tests/unictype/test-pr_currency_symbol.c: Likewise.
11131         * tests/unictype/test-pr_dash.c: Likewise.
11132         * tests/unictype/test-pr_decimal_digit.c: Likewise.
11133         * tests/unictype/test-pr_deprecated.c: Likewise.
11134         * tests/unictype/test-pr_diacritic.c: Likewise.
11135         * tests/unictype/test-pr_extender.c: Likewise.
11136         * tests/unictype/test-pr_grapheme_base.c: Likewise.
11137         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
11138         * tests/unictype/test-pr_grapheme_link.c: Likewise.
11139         * tests/unictype/test-pr_id_continue.c: Likewise.
11140         * tests/unictype/test-pr_id_start.c: Likewise.
11141         * tests/unictype/test-pr_ideographic.c: Likewise.
11142         * tests/unictype/test-pr_ignorable_control.c: Likewise.
11143         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
11144         * tests/unictype/test-pr_lowercase.c: Likewise.
11145         * tests/unictype/test-pr_numeric.c: Likewise.
11146         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
11147         * tests/unictype/test-pr_punctuation.c: Likewise.
11148         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
11149         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
11150         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
11151         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
11152         * tests/unictype/test-pr_uppercase.c: Likewise.
11153         * tests/unictype/test-pr_xid_continue.c: Likewise.
11154         * tests/unictype/test-pr_xid_start.c: Likewise.
11155         * tests/unictype/test-pr_zero_width.c: Likewise.
11156         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
11157         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
11158         changed behaviour: line breaking is now disallowed between a letter
11159         or '=' and '('.
11160         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
11161         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
11162         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
11163         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
11164         * tests/uniwidth/test-uc_width2.sh: Same updates as in
11165         lib/uniwidth/width.c.
11166         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
11167         without comments, but with the original copyright notice.
11168         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
11169         changes.
11170         * lib/unictype/categ_Cc.h: Likewise.
11171         * lib/unictype/categ_Co.h: Likewise.
11172         * lib/unictype/categ_Cs.h: Likewise.
11173         * lib/unictype/categ_Lt.h: Likewise.
11174         * lib/unictype/categ_Me.h: Likewise.
11175         * lib/unictype/categ_Pc.h: Likewise.
11176         * lib/unictype/categ_Pe.h: Likewise.
11177         * lib/unictype/categ_Pf.h: Likewise.
11178         * lib/unictype/categ_Pi.h: Likewise.
11179         * lib/unictype/categ_Ps.h: Likewise.
11180         * lib/unictype/categ_Sk.h: Likewise.
11181         * lib/unictype/categ_Sm.h: Likewise.
11182         * lib/unictype/categ_Z.h: Likewise.
11183         * lib/unictype/categ_Zl.h: Likewise.
11184         * lib/unictype/categ_Zp.h: Likewise.
11185         * lib/unictype/categ_Zs.h: Likewise.
11186         * lib/unictype/ctype_blank.h: Likewise.
11187         * lib/unictype/ctype_cntrl.h: Likewise.
11188         * lib/unictype/ctype_digit.h: Likewise.
11189         * lib/unictype/ctype_space.h: Likewise.
11190         * lib/unictype/ctype_xdigit.h: Likewise.
11191         * lib/unictype/mirror.h: Likewise.
11192         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
11193         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
11194         * lib/unictype/pr_bidi_block_separator.h: Likewise.
11195         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
11196         * lib/unictype/pr_bidi_common_separator.h: Likewise.
11197         * lib/unictype/pr_bidi_control.h: Likewise.
11198         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
11199         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
11200         * lib/unictype/pr_bidi_pdf.h: Likewise.
11201         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
11202         * lib/unictype/pr_bidi_whitespace.h: Likewise.
11203         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
11204         * lib/unictype/pr_format_control.h: Likewise.
11205         * lib/unictype/pr_hex_digit.h: Likewise.
11206         * lib/unictype/pr_hyphen.h: Likewise.
11207         * lib/unictype/pr_ids_binary_operator.h: Likewise.
11208         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
11209         * lib/unictype/pr_iso_control.h: Likewise.
11210         * lib/unictype/pr_join_control.h: Likewise.
11211         * lib/unictype/pr_left_of_pair.h: Likewise.
11212         * lib/unictype/pr_line_separator.h: Likewise.
11213         * lib/unictype/pr_math.h: Likewise.
11214         * lib/unictype/pr_non_break.h: Likewise.
11215         * lib/unictype/pr_not_a_character.h: Likewise.
11216         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
11217         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
11218         * lib/unictype/pr_other_id_continue.h: Likewise.
11219         * lib/unictype/pr_other_id_start.h: Likewise.
11220         * lib/unictype/pr_other_lowercase.h: Likewise.
11221         * lib/unictype/pr_other_math.h: Likewise.
11222         * lib/unictype/pr_other_uppercase.h: Likewise.
11223         * lib/unictype/pr_paired_punctuation.h: Likewise.
11224         * lib/unictype/pr_paragraph_separator.h: Likewise.
11225         * lib/unictype/pr_pattern_syntax.h: Likewise.
11226         * lib/unictype/pr_pattern_white_space.h: Likewise.
11227         * lib/unictype/pr_private_use.h: Likewise.
11228         * lib/unictype/pr_quotation_mark.h: Likewise.
11229         * lib/unictype/pr_radical.h: Likewise.
11230         * lib/unictype/pr_soft_dotted.h: Likewise.
11231         * lib/unictype/pr_space.h: Likewise.
11232         * lib/unictype/pr_titlecase.h: Likewise.
11233         * lib/unictype/pr_variation_selector.h: Likewise.
11234         * lib/unictype/pr_white_space.h: Likewise.
11235         * lib/unictype/sy_c_ident.h: Likewise.
11236         * lib/unictype/sy_c_whitespace.h: Likewise.
11237         * lib/unictype/sy_java_whitespace.h: Likewise.
11238         * modules/uni*/*: Bump version number of expected libunistring version.
11239         Reported by Simon Josefsson.
11240
11241 2011-01-09  Karl Heuer  <kwzh@gnu.org>
11242
11243         useless-if-before-free: fix typo in --help and make the internal,
11244         automatic version date update process work once again.
11245         --help output contained a NUL character instead of the
11246         backslash-zero that was intended.  Also, the "must lie within
11247         the first 8 lines" line is on line 9, and hence not getting
11248         automatically updated.
11249         * build-aux/useless-if-before-free: Fix the former by adding a
11250         backslash, and the latter by condensing the three lines of what-it-does
11251         to a single line, leaving one line of slack for the future.
11252
11253 2011-01-09  Bruno Haible  <bruno@clisp.org>
11254
11255         uniwidth/width: Fix width of U+1D173..U+1D17A.
11256         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
11257         symbolic_width, output_width_property_test): New functions.
11258         (main): Invoke output_nonspacing_property, output_width_property_test.
11259         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
11260         U+1D173..U+1D17A.
11261         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
11262         1.
11263         * modules/uniwidth/*: Bump version number of expected libunistring
11264         version.
11265         * modules/unilbrk/*: Likewise.
11266
11267 2011-01-08  Bruno Haible  <bruno@clisp.org>
11268
11269         uninorm tests: Preserve copyright of Unicode data file.
11270         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
11271         Mention modifications.
11272
11273 2011-01-08  Bruno Haible  <bruno@clisp.org>
11274
11275         gen-uni-tables: Prepare for Unicode 5.2.0.
11276         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
11277         (debug_output_lbp, output_lbp): Update.
11278
11279 2011-01-08  Bruno Haible  <bruno@clisp.org>
11280
11281         unilbrk: Clarify gen-uni-tables.c code.
11282         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
11283         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
11284         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
11285
11286 2011-01-07  Bruno Haible  <bruno@clisp.org>
11287
11288         strtod: Restore errno when successfully parsing Infinity or NaN.
11289         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
11290         restore the original errno.
11291
11292 2011-01-07  Bruno Haible  <bruno@clisp.org>
11293
11294         remove test: Avoid failure on HP-UX 11.
11295         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
11296
11297 2011-01-07  Bruno Haible  <bruno@clisp.org>
11298
11299         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
11300         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
11301         error code.
11302
11303 2011-01-07  Pádraig Brady <P@draigBrady.com>
11304
11305         ignore-value: fixup comments, and add Eric Blake
11306         as an author since he rewrote the macros.
11307         * lib/ignore-value.h (ignore_value):  State that
11308         we now support aggregates.  Also specify exactly
11309         when the GCC warn_unused_result feature was added.
11310
11311 2011-01-06  Eric Blake  <eblake@redhat.com>
11312
11313         ignore-value: support aggregate types
11314         * lib/ignore-value.h (ignore_value): Provide separate gcc
11315         definition.
11316         * modules/ignore-value-tests: New test module.
11317         * tests/test-ignore-value.c: New test.
11318
11319         maint.mk: improve sc_prohibit_strcmp regex
11320         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
11321         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
11322         definition of STRNEQ.
11323
11324         signal: work around Haiku issue with SIGBUS
11325         * lib/siglist.h: Add comment.
11326         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
11327         strsignal's favoring of SIGSEGV.
11328         * tests/test-signal.c (main): Avoid test failure.
11329         * doc/posix-headers/signal.texi (signal.h): Document the issue.
11330         Reported by Scott McCreary.
11331
11332         maint.mk: add pre-release check to ensure submodule commits are public
11333         * top/maint.mk (public-submodule-commit): New rule.
11334         (submodule-checks): New variable.
11335         (alpha beta stable): Depend on the variable.
11336
11337 2011-01-05  Pádraig Brady <P@draigBrady.com>
11338         and Jim Meyering  <meyering@redhat.com>
11339
11340         ignore-value: make ignore_value more generic; deprecate ignore_ptr
11341         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
11342         (ATTRIBUTE_DEPRECATED): Define.
11343         (_ignore_case): New function.
11344         (ignore_value): New macro, to replace the old function.
11345         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
11346         * modules/ignore-value (Depends-on): Add stdint.
11347
11348 2011-01-04  Eric Blake  <eblake@redhat.com>
11349
11350         doc: regenerate INSTALL
11351         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
11352         @firstparagraphindent support, now that autoconf dropped it.
11353         (INSTALL_PRELUDE): Reinstate old macro.
11354         * doc/install.texi: Resync from autoconf.
11355         * doc/INSTALL: Reflect recent autoconf update.
11356         * doc/INSTALL.ISO: Likewise.
11357         * doc/INSTALL.UTF-8: Likewise.
11358         Reported by Karl Berry.
11359
11360 2011-01-04  Bruce Korb  <address@hidden>
11361
11362         git-version-gen: avoid a sub-shell
11363         * build-aux/git-version-gen: Redirect stderr in `...` via
11364         "exec 2>...", rather than via an added sub-shell.
11365
11366 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
11367
11368         git-version-gen: use (...) rather than sh -c '...'
11369         * build-aux/git-version-gen: Rather than hard-coding a shell's name
11370         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
11371
11372 2011-01-03  Jim Meyering  <meyering@redhat.com>
11373
11374         git-version-gen: convert leading TABs to spaces
11375         * build-aux/git-version-gen: Expand leading TABs.
11376
11377         git-version-gen: handle failed "git rev-list"
11378         * build-aux/git-version-gen: Rather than leaking a "fatal" error
11379         from git and proceeding as if it had succeeded but printed no SHA1
11380         checksums, suppress the diagnostic and handle the failure.
11381         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
11382
11383         git-version-gen: include command name in one more diagnostic
11384         * build-aux/git-version-gen: When the required .tarball-version file
11385         was missing or unreadable, you might see the diagnostic from "cat",
11386         but no trace of the name of the invoking script.  Now, you still see
11387         the diagnostic from cat, but also get one from "git-version-gen: ".
11388         Inspired by a patch from Bruce Korb.
11389
11390         update-copyright: adjust test to match changed code
11391         * tests/test-update-copyright.sh: Change test's expected output
11392         to match new actual output.
11393
11394 2011-01-02  Bruno Haible  <bruno@clisp.org>
11395
11396         getlogin_r: Avoid test failure on HP-UX 11.
11397         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
11398         ERANGE when the second argument is zero.
11399         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
11400         portability problem.
11401
11402 2011-01-02  Bruce Korb  <bkorb@gnu.org>
11403
11404         * build-aux/update-copyright: doc Simon's changes
11405
11406 2011-01-02  Simon Josefsson  <simon@josefsson.org>
11407
11408         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
11409         environment variable.
11410
11411 2011-01-02  Bruno Haible  <bruno@clisp.org>
11412
11413         unigbrk: Avoid gcc warnings.
11414         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
11415         unused variable.
11416         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
11417         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
11418         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
11419         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
11420         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
11421         Change type of first argument to 'const char *'.
11422         (main): Remove unused variable.
11423         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
11424         type of first argument to 'const char *'.
11425         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
11426         Likewise.
11427         (main): Change type of variable 's'.
11428         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
11429         to 'int'.
11430
11431 2011-01-02  Bruno Haible  <bruno@clisp.org>
11432
11433         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
11434         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
11435         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
11436         bug.
11437         * lib/pwrite.c: Undo 2010-12-31 patch.
11438         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
11439
11440 2011-01-02  Bruno Haible  <bruno@clisp.org>
11441
11442         pread: Fix test whether it works.
11443         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
11444
11445 2011-01-02  Bruno Haible  <bruno@clisp.org>
11446
11447         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
11448         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
11449         ends in "6". Don't require a specific month name. Try also the locale
11450         names found on HP-UX 11 and Solaris 7.
11451
11452 2011-01-02  Bruno Haible  <bruno@clisp.org>
11453
11454         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
11455         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
11456         C linkage.
11457         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
11458
11459 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
11460
11461         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
11462         for consistency, since the "cluster" term is not used elsewhere.
11463         * lib/unigbrk.in.h: Update name.
11464         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
11465         * lib/unigbrk/u16-grapheme-next.c: Update name.
11466         * lib/unigbrk/u16-grapheme-prev.c: Update name.
11467         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
11468         * lib/unigbrk/u32-grapheme-next.c: Update name.
11469         * lib/unigbrk/u32-grapheme-prev.c: Update name.
11470         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
11471         * lib/unigbrk/u8-grapheme-next.c: Update name.
11472         * lib/unigbrk/u8-grapheme-prev.c: Update name.
11473         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
11474         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
11475         Suggested by Bruno Haible.
11476
11477 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
11478
11479         Remove module 'u8-grapheme-len' as too redundant with
11480         'u8-grapheme-next'.
11481         * modules/unigbrk/u8-grapheme-len: Delete file.
11482         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
11483         * lib/unigbrk.in.h: Remove prototype for deleted function.
11484         * lib/unigbrk/u8-grapheme-len.c: Delete file.
11485         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
11486
11487         Remove module 'u16-grapheme-len' as too redundant with
11488         'u16-grapheme-next'.
11489         * modules/unigbrk/u16-grapheme-len: Delete file.
11490         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
11491         * lib/unigbrk.in.h: Remove prototype for deleted function.
11492         * lib/unigbrk/u16-grapheme-len.c: Delete file.
11493         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
11494
11495         Remove module 'u32-grapheme-len' as too redundant with
11496         'u32-grapheme-next'.
11497         * modules/unigbrk/u32-grapheme-len: Delete file.
11498         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
11499         * lib/unigbrk.in.h: Remove prototype for deleted function.
11500         * lib/unigbrk/u32-grapheme-len.c: Delete file.
11501         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
11502
11503         Suggested by Bruno Haible.
11504
11505 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
11506
11507         * unigbrk.in.h: Fix typo: "ben" => "been".
11508         Reported by Bruno Haible.
11509
11510 2011-01-01  Jim Meyering  <meyering@redhat.com>
11511
11512         maint: update almost all copyright ranges to include 2011
11513         Run the new "make update-copyright" rule.
11514
11515 2011-01-01  Jim Meyering  <meyering@redhat.com>
11516
11517         maint: update-copyright: exempt doc/INSTALL*
11518         * Makefile (update-copyright): Also exclude doc/INSTALL*,
11519         since they are generated.  Suggested by Bruno Haible.
11520
11521 2011-01-01  Jim Meyering  <meyering@redhat.com>
11522
11523         maint: refine the update-copyright rule
11524         * Makefile (update-copyright): Also exclude any file that includes
11525         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
11526         code that merely generates the comment.
11527
11528 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
11529
11530         New module 'u8-grapheme-len'.
11531         * modules/unigbrk/u8-grapheme-len: New file.
11532         * modules/unigbrk/u8-grapheme-len-tests: New file.
11533         * lib/unigbrk.in.h: Add prototype for new function.
11534         * lib/unigbrk/u8-grapheme-len.c: New file.
11535         * tests/unigbrk/test-u8-grapheme-len.c: New file.
11536
11537         New module 'u16-grapheme-len'.
11538         * modules/unigbrk/u16-grapheme-len: New file.
11539         * modules/unigbrk/u16-grapheme-len-tests: New file.
11540         * lib/unigbrk.in.h: Add prototype for new function.
11541         * lib/unigbrk/u16-grapheme-len.c: New file.
11542         * tests/unigbrk/test-u16-grapheme-len.c: New file.
11543
11544         New module 'u32-grapheme-len'.
11545         * modules/unigbrk/u32-grapheme-len: New file.
11546         * modules/unigbrk/u32-grapheme-len-tests: New file.
11547         * lib/unigbrk.in.h: Add prototype for new function.
11548         * lib/unigbrk/u32-grapheme-len.c: New file.
11549         * tests/unigbrk/test-u32-grapheme-len.c: New file.
11550
11551         New module 'u8-grapheme-next'.
11552         * modules/unigbrk/u8-grapheme-next: New file.
11553         * modules/unigbrk/u8-grapheme-next-tests: New file.
11554         * lib/unigbrk.in.h: Add prototype for new function.
11555         * lib/unigbrk/u8-grapheme-next.c: New file.
11556         * tests/unigbrk/test-u8-grapheme-next.c: New file.
11557
11558         New module 'u16-grapheme-next'.
11559         * modules/unigbrk/u16-grapheme-next: New file.
11560         * modules/unigbrk/u16-grapheme-next-tests: New file.
11561         * lib/unigbrk.in.h: Add prototype for new function.
11562         * lib/unigbrk/u16-grapheme-next.c: New file.
11563         * tests/unigbrk/test-u16-grapheme-next.c: New file.
11564
11565         New module 'u32-grapheme-next'.
11566         * modules/unigbrk/u32-grapheme-next: New file.
11567         * modules/unigbrk/u32-grapheme-next-tests: New file.
11568         * lib/unigbrk.in.h: Add prototype for new function.
11569         * lib/unigbrk/u32-grapheme-next.c: New file.
11570         * tests/unigbrk/test-u32-grapheme-next.c: New file.
11571
11572         New module 'u8-grapheme-prev'.
11573         * modules/unigbrk/u8-grapheme-prev: New file.
11574         * modules/unigbrk/u8-grapheme-prev-tests: New file.
11575         * lib/unigbrk.in.h: Add prototype for new function.
11576         * lib/unigbrk/u8-grapheme-prev.c: New file.
11577         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
11578
11579         New module 'u16-grapheme-prev'.
11580         * modules/unigbrk/u16-grapheme-prev: New file.
11581         * modules/unigbrk/u16-grapheme-prev-tests: New file.
11582         * lib/unigbrk.in.h: Add prototype for new function.
11583         * lib/unigbrk/u16-grapheme-prev.c: New file.
11584         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
11585
11586         New module 'u32-grapheme-prev'.
11587         * modules/unigbrk/u32-grapheme-prev: New file.
11588         * modules/unigbrk/u32-grapheme-prev-tests: New file.
11589         * lib/unigbrk.in.h: Add prototype for new function.
11590         * lib/unigbrk/u32-grapheme-prev.c: New file.
11591         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
11592
11593         New module 'u8-grapheme-breaks'.
11594         * modules/unigbrk/u8-grapheme-breaks: New file.
11595         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
11596         * lib/unigbrk.in.h: Add prototype for new function.
11597         * lib/unigbrk/u8-grapheme-breaks.c: New file.
11598         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
11599
11600         New module 'u16-grapheme-breaks'.
11601         * modules/unigbrk/u16-grapheme-breaks: New file.
11602         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
11603         * lib/unigbrk.in.h: Add prototype for new function.
11604         * lib/unigbrk/u16-grapheme-breaks.c: New file.
11605         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
11606
11607         New module 'u32-grapheme-breaks'.
11608         * modules/unigbrk/u32-grapheme-breaks: New file.
11609         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
11610         * lib/unigbrk.in.h: Add prototype for new function.
11611         * lib/unigbrk/u32-grapheme-breaks.c: New file.
11612         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
11613
11614         New module 'ulc-grapheme-breaks'.
11615         * modules/unigbrk/ulc-grapheme-breaks: New file.
11616         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
11617         * m4/locale-ar.m4: New file.
11618         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
11619         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
11620         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
11621
11622 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
11623
11624         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
11625         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
11626         modified how this file was generated before I initially submitted
11627         the module, but failed to regenerate it.  This meant that several
11628         of the level2 entries were wrong.
11629         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
11630         Remove the division-by-2 that is folded into the table now that
11631         gbrkprop.h has been regenerated properly.  Now -1 entries are
11632         handled correctly.
11633
11634         New module 'unigbrk/uc-gbrk-prop-tests'.
11635         * modules/unigbrk/uc-gbrk-prop-tests: New file.
11636         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
11637         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
11638         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
11639
11640 2011-01-01  Bruno Haible  <bruno@clisp.org>
11641
11642         Avoid use of hexadecimal escapes.
11643         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
11644         instead of hexadecimal escapes.
11645
11646 2011-01-01  Jim Meyering  <meyering@redhat.com>
11647
11648         maint: new rule to update copyright year ranges
11649         * Makefile (update-copyright): New rule.
11650
11651         maint: indent with TABs in Makefile
11652         * Makefile: Expand leading sequences of spaces to TABs
11653
11654         version-etc: update the copyright year it reports
11655         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
11656
11657 2010-12-31  Bruno Haible  <bruno@clisp.org>
11658
11659         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
11660         * lib/isfinite.c (zerof, zerod, zerol): New variables.
11661         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
11662         zero.
11663
11664 2010-12-31  Bruno Haible  <bruno@clisp.org>
11665
11666         pwrite: Work around HP-UX 11.11 bug.
11667         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
11668         works and set REPLACE_PWRITE if not.
11669         * lib/pwrite.c (pwrite): Add an implementation that uses the system
11670         function.
11671         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
11672
11673 2010-12-31  Bruno Haible  <bruno@clisp.org>
11674
11675         pread: Work around HP-UX 11 bugs.
11676         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
11677         and set REPLACE_PREAD if not.
11678         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
11679
11680 2010-12-31  Eric Blake  <eblake@redhat.com>
11681
11682         nl_langinfo: fix YESEXPR on Irix 6.5
11683         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
11684         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
11685         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
11686         it.
11687
11688 2010-12-31  Bruno Haible  <bruno@clisp.org>
11689
11690         iconv: Document HP-UX 11 bug.
11691         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
11692
11693 2010-12-31  Bruno Haible  <bruno@clisp.org>
11694
11695         ldexpl: Fix link error on HP-UX 11.
11696         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
11697         LDEXPL_LIBM, using $ISNANL_LIBM.
11698
11699 2010-12-31  Eric Blake  <eblake@redhat.com>
11700
11701         ftello: avoid compilation failure with SunStudio c89
11702         * lib/ftello.c (ftello): Use lseek, not llseek.
11703
11704         tests: avoid failing coreutils tests on cygwin
11705         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
11706         (create_exe_shims_): Return 0 when skipping.
11707
11708 2010-12-31  Bruno Haible  <bruno@clisp.org>
11709
11710         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
11711         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
11712
11713 2010-12-31  Bruno Haible  <bruno@clisp.org>
11714
11715         waitpid: Fix link error in C++ mode.
11716         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
11717
11718 2010-12-31  Bruno Haible  <bruno@clisp.org>
11719
11720         isnan: Use GCC built-ins when possible.
11721         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
11722         __builtin_isnan.
11723         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
11724         (isnan): Define using GCC built-ins for GCC >= 4.0.
11725
11726 2010-12-31  Bruno Haible  <bruno@clisp.org>
11727
11728         isnand: Fix mistake.
11729         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
11730         __builtin_isnand.
11731
11732 2010-12-31  Bruno Haible  <bruno@clisp.org>
11733
11734         open: Avoid C++ error on HP-UX 11.
11735         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
11736
11737 2010-12-31  Bruno Haible  <bruno@clisp.org>
11738
11739         time_r: Add missing declarations on HP-UX 11.
11740         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
11741         instead of HAVE_LOCALTIME_R.
11742         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
11743         HAVE_LOCALTIME_R always.
11744         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
11745         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
11746         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
11747         HAVE_LOCALTIME_R.
11748         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
11749         * doc/posix-functions/localtime_r.texi: Likewise.
11750
11751 2010-12-29  Eric Blake  <eblake@redhat.com>
11752
11753         mountlist: tweak previous commit
11754         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
11755         Reported by Paul Eggert.
11756
11757         mountlist: fix local drive detection on cygwin
11758         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
11759         that works for cygwin.
11760
11761 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
11762
11763         ftoastr, snprintf: ftoastr + snprintf module
11764         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
11765         since the snprintf module now should be good enough here.
11766         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
11767         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
11768         and gl_MODULE_INDICATOR([snprintf]), but the former enables
11769         GNULIB_SNPRINTF only for the test directory, and the latter
11770         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
11771         seems to suffice by itself.
11772
11773 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
11774
11775         alloca: one step towards thread-safety
11776         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
11777         need for a static variable.  All callers changed.  This does not
11778         make the alloca replacement thread-safe, but it's one step.
11779
11780         tests: minor indenting change
11781         * tests/init.sh: Sync from coreutils housekeeping patch
11782         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
11783         to keep lines within 80 columns.
11784
11785 2010-12-28  Jim Meyering  <meyering@redhat.com>
11786
11787         regex: don't infloop on persistent failing calloc
11788         * lib/regexec.c (build_trtable): Return failure indication upon
11789         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
11790         In glibc, this was fixed for version 2.13:
11791         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
11792
11793 2010-12-28  Bruno Haible  <bruno@clisp.org>
11794             Paul Eggert <eggert@cs.ucla.edu>
11795
11796         linkat: Make implementation robust against system behaviour variations.
11797         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
11798         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
11799         way, and to -2 if it needs a generic runtime test.
11800         * lib/linkat.c (solaris_optimized_link_immediate,
11801         solaris_optimized_link_follow): New functions.
11802         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
11803         (check_same_link): Use it.
11804
11805 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
11806
11807         New module 'unigbrk/base'.
11808         * modules/unigbrk/base: New file.
11809         * lib/unigbrk.in.h: New file.
11810
11811         New module 'unigbrk/uc-gbrk-prop'.
11812         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
11813         * modules/unigbrk/uc-gbrk-prop: New file.
11814         * lib/unigbrk/gbrkprop.h: New file.
11815         * lib/unigbrk/uc-gbrk-prop.c: New file.
11816
11817         New module 'unigbrk/uc-is-grapheme-break'.
11818         * modules/unigbrk/uc-is-grapheme-break: New file.
11819         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
11820         * lib/unigbrk/uc-is-grapheme-break.c: New file.
11821         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
11822         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
11823         * tests/unigbrk/GraphemeBreakTest.txt: New file.
11824
11825         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
11826
11827 2010-12-27  Bruno Haible  <bruno@clisp.org>
11828
11829         linkat test: Avoid failure on Solaris 11 2010-11.
11830         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
11831
11832 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
11833
11834         utimens: work around glibc rounding bug on more platforms
11835         * lib/utimens.c (fdutimens): Work around rounding bug even if
11836         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
11837         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
11838
11839 2010-12-27  Bruno Haible  <bruno@clisp.org>
11840
11841         select tests: Improve comments.
11842         * tests/test-select.c (do_select): Add comments.
11843
11844 2010-12-27  Bruno Haible  <bruno@clisp.org>
11845
11846         select tests: Safer way of handling timeout.
11847         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
11848         at every invocation.
11849
11850 2010-12-27  Bruno Haible  <bruno@clisp.org>
11851
11852         select tests: Use 'bool' where appropriate.
11853         * tests/test-select.c (connect_to_socket): Change argument type to
11854         'bool'.
11855
11856 2010-12-27  Bruno Haible  <bruno@clisp.org>
11857
11858         select tests: Use existing modules.
11859         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
11860         (configure.ac): Don't test for unistd.h.
11861         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
11862         declared in <unistd.h>.
11863
11864 2010-12-27  Bruno Haible  <bruno@clisp.org>
11865
11866         mbrtowc: Work around a Solaris 7 bug.
11867         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
11868         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
11869         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
11870         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
11871         MBRTOWC_NULL_ARG1_BUG.
11872         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
11873         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
11874         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
11875         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
11876
11877 2010-12-27  Jim Meyering  <meyering@redhat.com>
11878
11879         read-file.c: tweak syntax
11880         * lib/read-file.c (fread_file): Remove space after "*" in function
11881         definitions.
11882
11883 2010-12-27  Bruno Haible  <bruno@clisp.org>
11884
11885         times test: Avoid gcc warnings on OSF/1.
11886         * tests/test-times.c (main): Cast printf arguments from clock_t to
11887         'long int'.
11888
11889 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
11890
11891         utimens: work around glibc rounding bug on older Linux kernels
11892         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
11893         on Linux with a glibc whose utimes might not work, then work
11894         around a longstanding glibc bug involving rounding rather than
11895         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
11896         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
11897
11898 2010-12-26  Bruno Haible  <bruno@clisp.org>
11899
11900         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
11901         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
11902         _GL_CXXALIAS_SYS.
11903         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11904
11905 2010-12-26  Bruno Haible  <bruno@clisp.org>
11906
11907         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
11908         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
11909         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
11910         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
11911         looking for the declaration.
11912         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
11913         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
11914         problem.
11915         * doc/posix-functions/inet_pton.texi: Likewise.
11916
11917 2010-12-26  Bruno Haible  <bruno@clisp.org>
11918
11919         arpa_inet: Use the common idioms with C++ support.
11920         * lib/arpa_inet.in.h: Include c++defs.h.
11921         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
11922         support.
11923         * modules/arpa_inet (Depends-on): Add c++defs.
11924         (Makefile.am): Substitute the contents of c++defs.h.
11925         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
11926         * modules/arpa_inet-c++-tests: New file.
11927         * tests/test-arpa_inet-c++.cc: New file.
11928
11929 2010-12-25  Bruno Haible  <bruno@clisp.org>
11930
11931         Fix more C++ link errors on Solaris 8.
11932         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
11933         $(LIB_EACCESS).
11934         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
11935         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
11936         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
11937         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
11938         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
11939
11940 2010-12-25  Bruno Haible  <bruno@clisp.org>
11941
11942         printf-posix: Fix link error when a non-GCC compiler is used.
11943         * lib/stdio.in.h (printf): When not using GCC, override printf
11944         correctly.
11945         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11946
11947 2010-12-25  Bruno Haible  <bruno@clisp.org>
11948
11949         strerror_r-posix: Update doc.
11950         * doc/posix-functions/strerror_r.texi: Update doc about the return
11951         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
11952
11953 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
11954
11955         utimens: simplify the logic of the previous change
11956         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
11957         This should not affect whether the test succeeds or fails.
11958
11959         utimens: configure better on hosts with NFS clock skew
11960         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
11961         uses the clock of the local host.  It might use the clock of the
11962         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
11963         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
11964
11965 2010-12-25  Bruno Haible  <bruno@clisp.org>
11966
11967         ptsname test: Avoid failure on Solaris.
11968         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
11969         open a pseudo-terminal; don't use BSD-style ptys.
11970         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
11971
11972 2010-12-25  Bruno Haible  <bruno@clisp.org>
11973
11974         ptsname: Avoid ERANGE failure on some systems.
11975         * lib/ptsname.c (buffer): Increase size.
11976
11977 2010-12-25  Bruno Haible  <bruno@clisp.org>
11978
11979         rename, renameat: Avoid test failures at NFS mounted locations.
11980         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
11981         so that subsequent mkdir calls succeed.
11982
11983 2010-12-25  Bruno Haible  <bruno@clisp.org>
11984
11985         iswblank: Fix C++ link error on Solaris 8.
11986         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
11987         _GL_FUNCDECL_SYS.
11988
11989 2010-12-25  Bruno Haible  <bruno@clisp.org>
11990
11991         unistd: Fix C++ link error on Solaris 8.
11992         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
11993
11994 2010-12-25  Bruno Haible  <bruno@clisp.org>
11995
11996         readlink doc: Mention an old glibc bug.
11997         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
11998
11999 2010-12-25  Bruno Haible  <bruno@clisp.org>
12000
12001         fcntl-h: Fix for use of C++ on glibc systems.
12002         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
12003         also on glibc systems in C++ mode.
12004         Reported by Gary V. Vaughan <gary@gnu.org>.
12005
12006 2010-12-25  Bruno Haible  <bruno@clisp.org>
12007
12008         roundl-ieee: Make it work on OSF/1 5.1 with cc.
12009         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
12010
12011 2010-12-25  Bruno Haible  <bruno@clisp.org>
12012
12013         truncl-ieee: Make it work on OSF/1 5.1 with cc.
12014         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
12015         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
12016         test whether truncl works according to ISO C 99 with IEC 60559.
12017         * m4/truncl-ieee.m4: New file.
12018         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
12019         m4/signbit.m4.
12020         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
12021
12022 2010-12-25  Bruno Haible  <bruno@clisp.org>
12023
12024         ceill-ieee: Make it work on OSF/1 5.1 with cc.
12025         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
12026         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
12027         test whether ceill works according to ISO C 99 with IEC 60559.
12028         * m4/ceill-ieee.m4: New file.
12029         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
12030         m4/signbit.m4.
12031         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
12032
12033 2010-12-25  Bruno Haible  <bruno@clisp.org>
12034
12035         Ensure all prerequisites of <wchar.h> are included.
12036         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
12037         before <wchar.h>.
12038         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
12039         gl_MBRLEN_NUL_RETVAL): Likewise.
12040         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
12041         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
12042         AC_FUNC_MBRTOWC): Likewise.
12043         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12044         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
12045         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
12046         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
12047         Likewise.
12048         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12049         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
12050         (gl_WCHAR_H): Improve comments.
12051         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
12052
12053 2010-12-25  Bruno Haible  <bruno@clisp.org>
12054
12055         strtok_r: Fix C syntax error in autoconf macro.
12056         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
12057         characters in test program.
12058
12059 2010-12-24  Bruno Haible  <bruno@clisp.org>
12060
12061         ceil, trunc, round: Fix gcc warnings.
12062         * lib/ceil.c (MIN): Undefine before redefining.
12063         * lib/trunc.c (MIN): Likewise.
12064         * lib/round.c (MIN): Likewise.
12065         Include <math.h> first.
12066
12067 2010-12-24  Bruno Haible  <bruno@clisp.org>
12068
12069         select tests: Avoid failures on OSF/1 5.1.
12070         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
12071         failure of closing the last socket; it may fail with ECONNRESET.
12072
12073 2010-12-24  Eric Blake  <eblake@redhat.com>
12074
12075         stdint: avoid HP-UX 10.20 preprocessor bug
12076         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
12077         than #if.
12078         * tests/test-floor2.c (main): Likewise.
12079         Reported by Peter O'Gorman.
12080
12081         pipe: make obsoletion transition easier
12082         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
12083         * modules/pipe (Files): Include revived file.
12084         (Include): Drop reference, to mirror getdate's behavior.
12085
12086 2010-12-24  Bruno Haible  <bruno@clisp.org>
12087
12088         sys_socket: Hide mismatch of declarations on NonStop Kernel.
12089         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
12090         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
12091         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12092
12093 2010-12-24  Bruno Haible  <bruno@clisp.org>
12094
12095         gethostname: Ensure declaration on NonStop Kernel.
12096         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
12097         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12098
12099 2010-12-24  Bruno Haible  <bruno@clisp.org>
12100
12101         sys_select: Ensure all necessary types on NonStop Kernel.
12102         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
12103         include <sys/time.h>.
12104         * doc/posix-headers/sys_select.texi: Mention that it's missing on
12105         NonStop Kernel.
12106         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12107
12108 2010-12-24  Bruno Haible  <bruno@clisp.org>
12109
12110         sys_select: Remove unneeded include.
12111         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
12112         have <sys/select.h>.
12113
12114 2010-12-24  Bruno Haible  <bruno@clisp.org>
12115
12116         gethostname: Provide a fallback for HOST_NAME_MAX.
12117         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
12118         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
12119         instead.
12120         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12121
12122 2010-12-24  Bruno Haible  <bruno@clisp.org>
12123
12124         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
12125         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
12126         (SA_RESTART): Likewise.
12127         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12128
12129 2010-12-24  Bruno Haible  <bruno@clisp.org>
12130
12131         signal: Define NSIG.
12132         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
12133         * tests/test-signal.c (nsig): New variable.
12134         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12135
12136 2010-12-24  Bruno Haible  <bruno@clisp.org>
12137
12138         rename, renameat: Avoid test failures on OSF/1 5.1.
12139         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
12140         alternative error codes.
12141         * tests/test-renameat.c (main): Likewise.
12142
12143 2010-12-24  Bruno Haible  <bruno@clisp.org>
12144
12145         *printf: Detect large precisions bug on Solaris 10/SPARC.
12146         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
12147         by Paul Eggert.
12148         * tests/test-snprintf-posix.h (test_function): Add this test code here
12149         too.
12150         * tests/test-sprintf-posix.h (test_function): Likewise.
12151         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12152         * tests/test-vasprintf-posix.c (test_function): Likewise.
12153         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
12154         around by gnulib.
12155         * doc/posix-functions/printf.texi: Likewise.
12156         * doc/posix-functions/snprintf.texi: Likewise.
12157         * doc/posix-functions/sprintf.texi: Likewise.
12158         * doc/posix-functions/vfprintf.texi: Likewise.
12159         * doc/posix-functions/vprintf.texi: Likewise.
12160         * doc/posix-functions/vsnprintf.texi: Likewise.
12161         * doc/posix-functions/vsprintf.texi: Likewise.
12162         * doc/posix-functions/dprintf.texi: Undo last commit.
12163         * doc/posix-functions/vdprintf.texi: Likewise.
12164
12165 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
12166
12167         tests: port test-fdutimensat.c to Solaris 8
12168         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
12169         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
12170         On Solaris 8, it fails with errno == ENOSYS, because there is no
12171         futimens (so it can't use the fd), and there is no lutimens (so it
12172         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
12173
12174         vsnprintf: make more consistent with snprintf; doc fixes
12175
12176         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
12177         the byte count return problem was promoted from the snprintf-posix
12178         to the snprintf module.
12179         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
12180         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
12181         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
12182         * tests/test-snprintf.c (main): Check the byte count returned.
12183         * tests/test-vsnprintf.c (main): Likewise.
12184
12185 2010-12-23  Eric Blake  <eblake@redhat.com>
12186
12187         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
12188         * modules/sigpipe (License): Relax license.
12189
12190 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
12191
12192         doc: document Solaris printf bug with large float precisions
12193         * doc/posix-functions/dprintf.texi (dprintf):
12194         * doc/posix-functions/fprintf.texi (fprintf):
12195         * doc/posix-functions/printf.texi (printf):
12196         * doc/posix-functions/snprintf.texi (snprintf):
12197         * doc/posix-functions/sprintf.texi (sprintf):
12198         * doc/posix-functions/vdprintf.texi (vdprintf):
12199         * doc/posix-functions/vfprintf.texi (vfprintf):
12200         * doc/posix-functions/vprintf.texi (vprintf):
12201         * doc/posix-functions/vsnprintf.texi (vsnprintf):
12202         * doc/posix-functions/vsprintf.texi (vsprintf):
12203         Mention that these functions mishandle large floating point
12204         precisions on Solaris 10.  The same bug is also present in Solaris
12205         8, and I assume earlier.  This causes "cd gnulib-tests; make
12206         check" to fail on Solaris 8 (and I assume, later) when building
12207         the latest coreutils, in test-vasprintf-posix's call to
12208         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
12209         the wide flavors (e.g., wprintf) so this patch just updates the
12210         documentation for the narrow ones.
12211
12212         test-posixtm.c: add two tests
12213         * tests/test-posixtm.c: Add two tests, to highlight the
12214         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
12215         around this bug; this is merely to document it.
12216
12217 2010-12-22  Bruno Haible  <bruno@clisp.org>
12218
12219         getlogin_r: Work around portability problem on OSF/1.
12220         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
12221         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
12222         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
12223         test for a truncated result.
12224         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
12225         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
12226         * modules/getlogin_r (Depends-on): Add memchr.
12227         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
12228
12229 2010-12-22  Bruno Haible  <bruno@clisp.org>
12230
12231         ptsname: Avoid test failure on OSF/1 5.1.
12232         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
12233         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
12234         (same_slave): New function.
12235         (main): Use it to compare ptsname's result with the expected file name.
12236
12237 2010-12-22  Bruno Haible  <bruno@clisp.org>
12238
12239         Port extended stdio modules to HP NonStop Kernel.
12240         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
12241         macros.
12242         * lib/fbufmode.c: Update comments.
12243         * lib/fflush.c: Likewise.
12244         * lib/fpurge.c: Likewise.
12245         * lib/freadable.c: Likewise.
12246         * lib/freadahead.c: Likewise.
12247         * lib/freading.c: Likewise.
12248         * lib/freadptr.c: Likewise.
12249         * lib/freadseek.c: Likewise.
12250         * lib/fseeko.c: Likewise.
12251         * lib/fseterr.c: Likewise.
12252         * lib/fwritable.c: Likewise.
12253         * lib/fwriting.c: Likewise.
12254         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12255
12256 2010-12-22  Bruno Haible  <bruno@clisp.org>
12257
12258         ttyname_r: Work around bug on OSF/1 5.1.
12259         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
12260         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
12261         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
12262         present.
12263         * lib/ttyname_r.c (ttyname_r): Update comments.
12264
12265 2010-12-22  Bruno Haible  <bruno@clisp.org>
12266
12267         round: Implement result sign according to IEEE 754.
12268         * lib/round.c (MIN, MINUS_ZERO): New macros.
12269         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
12270         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
12271         * tests/test-round-ieee.c (main): Likewise.
12272         * tests/test-roundl-ieee.c (main): Likewise.
12273
12274         trunc: Implement result sign according to IEEE 754.
12275         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
12276         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
12277         * tests/test-trunc2.c: Include minus-zero.h.
12278         (MINUS_ZERO): New macro.
12279         (trunc_reference): Keep in sync with lib/trunc.c.
12280         * tests/test-truncf2.c: Include minus-zero.h.
12281         (MINUS_ZERO): New macro.
12282         (truncf_reference): Keep in sync with lib/trunc.c.
12283         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
12284         * tests/test-trunc-ieee.c (main): Likewise.
12285         * tests/test-truncl-ieee.c (main): Likewise.
12286
12287         ceil: Implement result sign according to IEEE 754.
12288         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
12289         (FUNC): Return -0.0 for -1 < x < 0.
12290         * tests/test-ceil2.c: Include minus-zero.h.
12291         (MINUS_ZERO): New macro.
12292         (ceil_reference): Keep in sync with lib/ceil.c.
12293         * tests/test-ceilf2.c: Include minus-zero.h.
12294         (MINUS_ZERO): New macro.
12295         (ceilf_reference): Keep in sync with lib/ceil.c.
12296         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
12297         * tests/test-ceil-ieee.c (main): Likewise.
12298         * tests/test-ceill-ieee.c (main): Likewise.
12299
12300         floor: Implement result sign according to IEEE 754.
12301         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
12302         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
12303         * tests/test-floorf2.c (floorf_reference): Likewise.
12304         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
12305         * tests/test-floor-ieee.c (main): Likewise.
12306         * tests/test-floorl-ieee.c (main): Likewise.
12307
12308 2010-12-22  Bruno Haible  <bruno@clisp.org>
12309
12310         getaddrinfo: Update doc.
12311         * doc/posix-functions/gai_strerror.texi: Return type is also different
12312         on AIX and HP-UX.
12313
12314 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
12315
12316         getaddrinfo, inet_ntop: Update doc for Solaris.
12317         * doc/posix-functions/gai_strerror.texi: Return type is also an
12318         issue on Solaris 9 and earlier.
12319         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
12320         on Solaris 10 and earlier.
12321
12322 2010-12-21  Bruno Haible  <bruno@clisp.org>
12323
12324         New module 'roundl-ieee'.
12325         * modules/roundl-ieee: New file.
12326         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
12327         test whether roundl works according to ISO C 99 with IEC 60559.
12328         * m4/roundl-ieee.m4: New file.
12329         * modules/roundl-ieee-tests: New file.
12330         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
12331         * tests/test-roundl.c (main): Remove signbit tests.
12332         * modules/roundl-tests (Depends-on): Remove signbit.
12333         * doc/posix-functions/roundl.texi: Mention the new module.
12334
12335 2010-12-21  Bruno Haible  <bruno@clisp.org>
12336
12337         New module 'truncl-ieee'.
12338         * modules/truncl-ieee: New file.
12339         * modules/truncl-ieee-tests: New file.
12340         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
12341         * tests/test-truncl.c (main): Remove signbit tests.
12342         * modules/truncl-tests (Depends-on): Remove signbit.
12343         * doc/posix-functions/truncl.texi: Mention the new module.
12344
12345 2010-12-21  Bruno Haible  <bruno@clisp.org>
12346
12347         New module 'ceill-ieee'.
12348         * modules/ceill-ieee: New file.
12349         * modules/ceill-ieee-tests: New file.
12350         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
12351         * tests/test-ceill.c (main): Remove signbit tests.
12352         * modules/ceill-tests (Depends-on): Remove signbit.
12353         * doc/posix-functions/ceill.texi: Mention the new module.
12354
12355 2010-12-21  Bruno Haible  <bruno@clisp.org>
12356
12357         New module 'floorl-ieee'.
12358         * modules/floorl-ieee: New file.
12359         * modules/floorl-ieee-tests: New file.
12360         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
12361         * tests/test-floorl.c (main): Remove signbit tests.
12362         * modules/floorl-tests (Depends-on): Remove signbit.
12363         * doc/posix-functions/floorl.texi: Mention the new module.
12364
12365 2010-12-21  Bruno Haible  <bruno@clisp.org>
12366
12367         New module 'round-ieee'.
12368         * modules/round-ieee: New file.
12369         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
12370         whether round works according to ISO C 99 with IEC 60559.
12371         * m4/round-ieee.m4: New file.
12372         * modules/round-ieee-tests: New file.
12373         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
12374         * tests/test-round1.c (main): Remove signbit tests.
12375         * modules/round-tests (Depends-on): Remove 'signbit'.
12376         * doc/posix-functions/round.texi: Mention the new module.
12377
12378 2010-12-21  Bruno Haible  <bruno@clisp.org>
12379
12380         New module 'trunc-ieee'.
12381         * modules/trunc-ieee: New file.
12382         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
12383         whether trunc works according to ISO C 99 with IEC 60559.
12384         * m4/trunc-ieee.m4: New file.
12385         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
12386         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
12387         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
12388         * modules/trunc-ieee-tests: New file.
12389         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
12390         * tests/test-trunc1.c (main): Remove signbit tests.
12391         * modules/trunc-tests (Depends-on): Remove 'signbit'.
12392         * doc/posix-functions/trunc.texi: Mention the new module.
12393
12394 2010-12-21  Bruno Haible  <bruno@clisp.org>
12395
12396         New module 'ceil-ieee'.
12397         * modules/ceil-ieee: New file.
12398         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
12399         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
12400         ISO C 99 with IEC 60559.
12401         * m4/ceil-ieee.m4: New file.
12402         * modules/ceil (Files): Add lib/ceil.c.
12403         (Depends-on): Add 'float'.
12404         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
12405         * lib/math.in.h (ceil): New declaration.
12406         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
12407         REPLACE_CEIL.
12408         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
12409         * modules/ceil-ieee-tests: New file.
12410         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
12411         * tests/test-math-c++.cc: Check the signature of 'ceil'.
12412         * doc/posix-functions/ceil.texi: Mention the new module.
12413
12414 2010-12-21  Bruno Haible  <bruno@clisp.org>
12415
12416         New module 'floor-ieee'.
12417         * modules/floor-ieee: New file.
12418         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
12419         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
12420         ISO C 99 with IEC 60559.
12421         * m4/floor-ieee.m4: New file.
12422         * modules/floor (Files): Add lib/floor.c.
12423         (Depends-on): Add 'float'.
12424         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
12425         * lib/math.in.h (floor): New declaration.
12426         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
12427         REPLACE_FLOOR.
12428         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
12429         * modules/floor-ieee-tests: New file.
12430         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
12431         * tests/test-math-c++.cc: Check the signature of 'floor'.
12432         * doc/posix-functions/floor.texi: Mention the new module.
12433
12434 2010-12-21  Bruno Haible  <bruno@clisp.org>
12435
12436         New module 'roundf-ieee'.
12437         * modules/roundf-ieee: New file.
12438         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
12439         test whether roundf works according to ISO C 99 with IEC 60559.
12440         * m4/roundf-ieee.m4: New file.
12441         * modules/roundf-ieee-tests: New file.
12442         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
12443         * tests/test-roundf1.c (main): Remove signbit tests.
12444         * modules/roundf-tests (Depends-on): Remove 'signbit'.
12445         * doc/posix-functions/roundf.texi: Mention the new module.
12446
12447 2010-12-21  Bruno Haible  <bruno@clisp.org>
12448
12449         New module 'truncf-ieee'.
12450         * modules/truncf-ieee: New file.
12451         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
12452         test whether truncf works according to ISO C 99 with IEC 60559.
12453         * m4/truncf-ieee.m4: New file.
12454         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
12455         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
12456         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
12457         * modules/truncf-ieee-tests: New file.
12458         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
12459         * tests/test-truncf1.c (main): Remove signbit tests.
12460         * modules/truncf-tests (Depends-on): Remove 'signbit'.
12461         * doc/posix-functions/truncf.texi: Mention the new module.
12462
12463 2010-12-21  Bruno Haible  <bruno@clisp.org>
12464
12465         New module 'ceilf-ieee'.
12466         * modules/ceilf-ieee: New file.
12467         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
12468         test whether ceilf works according to ISO C 99 with IEC 60559.
12469         * m4/ceilf-ieee.m4: New file.
12470         * modules/ceilf-ieee-tests: New file.
12471         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
12472         * tests/test-ceilf1.c (main): Remove signbit tests.
12473         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
12474         * doc/posix-functions/ceilf.texi: Mention the new module.
12475
12476 2010-12-21  Bruno Haible  <bruno@clisp.org>
12477
12478         New module 'floorf-ieee'.
12479         * modules/floorf-ieee: New file.
12480         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
12481         test whether floorf works according to ISO C 99 with IEC 60559.
12482         * m4/floorf-ieee.m4: New file.
12483         * modules/floorf-ieee-tests: New file.
12484         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
12485         * tests/test-floorf1.c (main): Remove signbit tests.
12486         * modules/floorf-tests (Depends-on): Remove 'signbit'.
12487         * doc/posix-functions/floorf.texi: Mention the new module.
12488
12489 2010-12-21  Bruno Haible  <bruno@clisp.org>
12490
12491         Support for minus zero in autoconf macros.
12492         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
12493         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
12494         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
12495         * tests/minus-zero.h: Update comments.
12496
12497 2010-12-21  Bruno Haible  <bruno@clisp.org>
12498
12499         Tests for module 'ceil'.
12500         * modules/ceil-tests: New file.
12501         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
12502         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
12503
12504 2010-12-21  Bruno Haible  <bruno@clisp.org>
12505
12506         Tests for module 'floor'.
12507         * modules/floor-tests: New file.
12508         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
12509         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
12510
12511 2010-12-21  Bruno Haible  <bruno@clisp.org>
12512
12513         math: Fix indentation.
12514         * lib/math.in.h (floorf): Fix indentation.
12515
12516 2010-12-21  Bruno Haible  <bruno@clisp.org>
12517
12518         Fix cross-compilation guesses on Solaris.
12519         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
12520         not match "solaris2.10".
12521         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
12522         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
12523         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
12524
12525 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
12526
12527         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
12528         This fixes a problem observed with the latest coreutils snapshot
12529         that caused a test to fail on Solaris 8.  src/csplit.c's call
12530         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
12531         earlier, instead of returning the number of bytes that would have
12532         been generated; this causes csplit to incorrectly report memory
12533         exhaustion.
12534         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
12535         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
12536         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
12537         comments to match.
12538         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
12539         Fix typo in matching older versions of Solaris: "solaris2.10"
12540         is matched by the shell pattern "solaris2.[0-9]*".  This matters
12541         only for guessing while cross-compiling.
12542         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
12543
12544 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
12545
12546         ftoastr: fix comment again
12547         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
12548         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
12549         Also, simplify example a bit by using flags = 0.
12550
12551 2010-12-20  Bruno Haible  <bruno@clisp.org>
12552
12553         round*, trunc*: Update documentation regarding glibc.
12554         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
12555         * doc/posix-functions/round.texi: Likewise.
12556         * doc/posix-functions/roundl.texi: Likewise.
12557         * doc/posix-functions/truncf.texi: Likewise.
12558         * doc/posix-functions/trunc.texi: Likewise.
12559         * doc/posix-functions/truncl.texi: Likewise.
12560
12561 2010-12-20  Bruno Haible  <bruno@clisp.org>
12562
12563         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
12564         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
12565         * doc/posix-functions/round.texi: Likewise.
12566         * doc/posix-functions/roundl.texi: Likewise.
12567
12568 2010-12-20  Bruno Haible  <bruno@clisp.org>
12569
12570         ttyname_r: Add missing declaration on HP-UX 11.
12571         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
12572         HAVE_TTYNAME_R.
12573         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
12574         declared. Set HAVE_TTYNAME_R always.
12575         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12576         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
12577         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
12578         HAVE_TTYNAME_R.
12579         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
12580
12581 2010-12-20  Bruno Haible  <bruno@clisp.org>
12582
12583         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
12584         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
12585         * doc/posix-functions/getlogin_r.texi: Likewise.
12586         * tests/test-getlogin.c: Include <errno.h>.
12587         (main): Avoid test failure on HP-UX 11.11.
12588         * tests/test-getlogin_r.c (main): Likewise.
12589
12590 2010-12-20  Bruno Haible  <bruno@clisp.org>
12591
12592         getlogin_r: Add missing declaration on HP-UX 11.
12593         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
12594         declared also when it exists as a function.
12595         * doc/posix-functions/getlogin_r.texi: Document this workaround.
12596
12597 2010-12-20  Bruno Haible  <bruno@clisp.org>
12598
12599         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
12600         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
12601         through wcrtomb.
12602
12603 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
12604
12605         ftoastr: fix comment
12606         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
12607         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
12608
12609 2010-12-19  Bruno Haible  <bruno@clisp.org>
12610
12611         isnan: Ensure it is a macro.
12612         * lib/math.in.h (isnan): Define as a macro if not already a macro.
12613         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
12614         Solaris.
12615
12616 2010-12-19  Bruno Haible  <bruno@clisp.org>
12617
12618         ldexpl test: Fix link error on OSF/1 5.1.
12619         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
12620
12621 2010-12-19  Bruno Haible  <bruno@clisp.org>
12622
12623         wctype: Make it work in C++ mode on OSF/1 5.1.
12624         * lib/wctype.in.h (iswblank): Declare but not define here.
12625         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
12626         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
12627         * modules/wctype (Files): Add lib/iswblank.c.
12628
12629 2010-12-19  Bruno Haible  <bruno@clisp.org>
12630
12631         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
12632         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
12633         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
12634
12635 2010-12-19  Bruno Haible  <bruno@clisp.org>
12636
12637         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
12638         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
12639         _POSIX_PII_SOCKET.
12640         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
12641         * doc/posix-functions/recvfrom.texi: Likewise.
12642         * doc/posix-functions/send.texi: Likewise.
12643         * doc/posix-functions/sendto.texi: Likewise.
12644
12645 2010-12-19  Bruno Haible  <bruno@clisp.org>
12646
12647         tcgetsid: Add missing declaration on OSF/1 5.1.
12648         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
12649         HAVE_TCGETSID.
12650         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
12651         Don't set HAVE_TCGETSID.
12652         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
12653         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
12654         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
12655         HAVE_TCGETSID.
12656         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
12657
12658 2010-12-19  Bruno Haible  <bruno@clisp.org>
12659
12660         stdio: Fix problem with popen() declaration on OSF/1 5.1.
12661         * lib/stdio.in.h: During the include_next statement, let recursive
12662         includes of this file include only the system header file.
12663
12664 2010-12-19  Bruno Haible  <bruno@clisp.org>
12665
12666         iconv_open: Fix regression from 2010-12-04.
12667         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
12668         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
12669
12670 2010-12-19  Bruno Haible  <bruno@clisp.org>
12671
12672         stdbool test: Avoid a gcc warning.
12673         * tests/test-stdbool.c (main): Fail if e1 is false.
12674         Reported by Jim Meyering.
12675
12676 2010-12-19  Jim Meyering  <meyering@redhat.com>
12677
12678         setenv: restore to working order
12679         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
12680         mistakenly removed.
12681         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
12682         HAVE_SETENV.
12683         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
12684         HAVE_SETENV.
12685
12686 2010-12-19  Bruno Haible  <bruno@clisp.org>
12687
12688         Document some different function declarations on OSF/1 5.1.
12689         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
12690         * doc/posix-functions/inet_ntop.texi: Likewise.
12691         * doc/posix-functions/gethostname.texi: Likewise.
12692         * lib/unistd.in.h (gethostname): Update comment.
12693
12694 2010-12-19  Bruno Haible  <bruno@clisp.org>
12695
12696         doc: Mention vasprintf-posix module.
12697         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
12698         the 'vasprintf-posix' module.
12699         * doc/glibc-functions/vasprintf.texi: Likewise.
12700
12701 2010-12-19  Bruno Haible  <bruno@clisp.org>
12702
12703         unsetenv: Add missing declaration on OSF/1 5.1.
12704         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
12705         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
12706         Don't set HAVE_UNSETENV. In the test program, set _BSD.
12707         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
12708         not HAVE_UNSETENV.
12709         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
12710         HAVE_UNSETENV.
12711         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
12712
12713 2010-12-19  Bruno Haible  <bruno@clisp.org>
12714
12715         setenv: Add missing declaration on OSF/1 5.1.
12716         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
12717         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
12718         declared. Don't set HAVE_SETENV.
12719         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
12720         not HAVE_SETENV.
12721         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
12722         HAVE_SETENV.
12723         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
12724
12725 2010-12-19  Bruno Haible  <bruno@clisp.org>
12726
12727         nl_langinfo tests: Avoid gcc warning.
12728         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
12729
12730 2010-12-19  Bruno Haible  <bruno@clisp.org>
12731
12732         mknod: Avoid error in C++ mode on OSF/1 with GCC.
12733         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
12734         _GL_CXXALIAS_SYS.
12735
12736 2010-12-19  Bruno Haible  <bruno@clisp.org>
12737
12738         stdbool: Relax test.
12739         * tests/test-stdbool.c (e): Don't require that casts from a variable's
12740         address to 'bool' work in static initializer, for compilers other than
12741         GCC.
12742
12743 2010-12-19  Bruno Haible  <bruno@clisp.org>
12744
12745         ftello: Add missing declaration on OSF/1 5.1.
12746         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
12747         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
12748         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
12749         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
12750         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
12751
12752 2010-12-19  Bruno Haible  <bruno@clisp.org>
12753
12754         fseeko: Add missing declaration on OSF/1 5.1.
12755         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
12756         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
12757         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
12758         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
12759         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
12760
12761 2010-12-19  Bruno Haible  <bruno@clisp.org>
12762
12763         fchdir: Add missing declaration on OSF/1 5.1.
12764         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
12765         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
12766         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
12767         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
12768         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
12769
12770 2010-12-19  Bruno Haible  <bruno@clisp.org>
12771
12772         relocatable-prog-wrapper: Separate from relocatable-prog.
12773         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
12774         uninstall-relocwrapper rule here.
12775         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
12776         Reported by Ian Beckwith <ianb@erislabs.net>.
12777
12778 2010-12-19  Bruno Haible  <bruno@clisp.org>
12779
12780         unistr/u8-mbsnlen: Add missing dependency.
12781         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
12782         Reported by Ian Beckwith <ianb@erislabs.net>.
12783
12784 2010-12-19  Bruno Haible  <bruno@clisp.org>
12785
12786         iconv: Make it possible again to use this module without 'iconv-h'.
12787         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
12788         if it is not defined.
12789         Reported by Ian Beckwith <ianb@erislabs.net>.
12790
12791 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
12792
12793         acl: port to Solaris 8 when copying from tmpfs to ufs
12794         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
12795         error number.  Problem observed on Solaris 8 with latest
12796         coreutils, with "mv A B", where A is on a tmpfs file system and B
12797         is on a ufs file system.  This caused coreutils' mv/part-symlink
12798         test to fail.
12799
12800         tests: set fail=0 at start
12801         * tests/init.sh (setup_): Move fail=0 initialization here ...
12802         (mktempd_): ... from here, so that tests can rely on fail being
12803         set to 0 initially.  This fixes a problem in coreutils; see:
12804         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
12805
12806 2010-12-18  Bruno Haible  <bruno@clisp.org>
12807
12808         memmem-simple: Stylistic changes.
12809         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
12810         Fix preprocessor directive indentation.
12811
12812 2010-12-15  Pádraig Brady <P@draigBrady.com>
12813
12814         memmem, memmem-simple: reorganize and expand empty needle check
12815         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
12816         functional checks to memmem-simple so that one has a fully functional
12817         memmem by using just this module.
12818         Restrict the performance only check to the memmem module.
12819         Also expand the empty needle check to ensure the correct
12820         pointer is returned, not just a non NULL pointer.
12821         * doc/glibc-functions/memmem.texi: Rearrange the portability
12822         documentation to correlate with the rearranged checks.
12823         Clarify exactly how the memmem and memmem-simple modules
12824         relate to each other.
12825
12826 2010-12-15  Pádraig Brady <P@draigBrady.com>
12827             Bruno Haible  <bruno@clisp.org>
12828
12829         Improve cross-compilation guesses for uClibc.
12830         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
12831         that uClibc does not have the glibc bug.
12832         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
12833         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
12834
12835 2010-12-14  Eric Blake  <eblake@redhat.com>
12836
12837         configmake: provide fallbacks for oldest supported autotools
12838         * m4/configmake.m4: New file.
12839         * modules/configmake (Files): Ship it.
12840         (configure.ac): Use it to guarantee fallbacks.
12841
12842 2010-12-13  Pádraig Brady <P@draigBrady.com>
12843
12844         read-file: Improve handling of large files
12845         * lib/read-file.c (fread_file): Minimize realloc()s
12846         for regular files, and better manage sizes around SIZE_MAX.
12847
12848 2010-12-13  Eric Blake  <eblake@redhat.com>
12849
12850         cloexec, fcntl: relax license
12851         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
12852         consent from all contributors.
12853         * modules/fcntl (License): Likewise.
12854
12855 2010-12-10  Bruno Haible  <bruno@clisp.org>
12856
12857         Tests for module 'pipe-posix'.
12858         * modules/pipe-posix-tests: New file.
12859         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
12860
12861 2010-12-10  Bruno Haible  <bruno@clisp.org>
12862
12863         pipe-posix: Make it work in C++ mode.
12864         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
12865         (pipe): Use common idiom, not a macro definition.
12866         * lib/pipe.c: New file.
12867         * m4/pipe.m4: New file.
12868         * modules/pipe-posix (Description): Enhance.
12869         (Files): Add lib/pipe.c, m4/pipe.m4.
12870         (configure.ac): Invoke gl_FUNC_PIPE.
12871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
12872         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
12873         * tests/test-unistd-c++.cc: Check the signature of pipe.
12874
12875 2010-12-10  Bruno Haible  <bruno@clisp.org>
12876
12877         Rename module 'pipe' to 'spawn-pipe'.
12878         * modules/spawn-pipe: New file, renamed from modules/pipe.
12879         (Files, configure.ac, Makefile.am): Update.
12880         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
12881         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
12882         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
12883         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
12884         "spawn-pipe.h" instead of "pipe.h".
12885         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
12886         to gl_SPAWN_PIPE.
12887         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
12888         (Files, Makefile.am): Update.
12889         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
12890         Update.
12891         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
12892         Include "spawn-pipe.h" instead of "pipe.h".
12893         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
12894         * lib/javacomp.c: Likewise.
12895         * lib/javaversion.c: Likewise.
12896         * lib/pipe-filter-gi.c: Likewise.
12897         * lib/pipe-filter-ii.c: Likewise.
12898         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
12899         * modules/javacomp (Depends-on): Likewise.
12900         * modules/javaversion (Depends-on): Likewise.
12901         * modules/pipe-filter-gi (Depends-on): Likewise.
12902         * modules/pipe-filter-ii (Depends-on): Likewise.
12903         * MODULES.html.sh (Executing programs): Update.
12904         * NEWS: Mention the change.
12905
12906 2010-12-10  Eric Blake  <eblake@redhat.com>
12907
12908         pipe-posix: new module
12909         * modules/pipe-posix: New file.
12910         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
12911         (gl_UNISTD_H): Check for declaration.
12912         * modules/unistd (Makefile.am): Substitute it.
12913         * lib/unistd.in.h (pipe): Provide it for mingw.
12914         * doc/posix-functions/pipe.texi (pipe): Update documentation.
12915         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
12916
12917 2010-12-07  Bruno Haible  <bruno@clisp.org>
12918
12919         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
12920         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
12921         u8_strcmp_gnu.
12922         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
12923
12924 2010-12-06  Bruno Haible  <bruno@clisp.org>
12925
12926         Update internal documentation.
12927         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
12928
12929 2010-12-04  Bruno Haible  <bruno@clisp.org>
12930
12931         Put more information about failed tests into the test return codes.
12932         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
12933         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
12934         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
12935         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12936         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
12937         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12938         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12939         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
12940         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
12941         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12942         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
12943         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
12944         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
12945         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12946         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
12947         returns a bit mask.
12948         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
12949         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
12950         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
12951         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
12952         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
12953         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
12954         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
12955         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
12956         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12957         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
12958         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
12959         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
12960         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
12961         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
12962         * m4/link.m4 (gl_FUNC_LINK): Likewise.
12963         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
12964         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
12965         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
12966         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12967         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
12968         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
12969         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
12970         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
12971         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
12972         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
12973         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
12974         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
12975         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
12976         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
12977         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
12978         gl_PRINTF_PRECISION): Likewise.
12979         * m4/regex.m4 (gl_REGEX): Likewise.
12980         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
12981         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
12982         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
12983         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
12984         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12985         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12986         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
12987         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
12988         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
12989         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12990         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
12991         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
12992         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
12993         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
12994         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
12995         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
12996         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
12997         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
12998         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12999         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
13000         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
13001         enumerated value.
13002         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
13003
13004 2010-12-04  Bruno Haible  <bruno@clisp.org>
13005
13006         Update for Solaris 11 2010-11.
13007         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
13008         Express, released in November 2010.
13009
13010 2010-12-04  Bruno Haible  <bruno@clisp.org>
13011
13012         nproc: Relax license.
13013         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
13014         and Paul Eggert.
13015         Requested by Ludovic Courtès <ludo@gnu.org>.
13016
13017 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
13018
13019         utimecmp: fine-grained src to nearby coarse-grained dest
13020
13021         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
13022         and the source is on a file system with higher-resolution time
13023         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
13024         not work, and the time stamps are close together, the algorithm to
13025         determine the exact resolution from the read-back mtime was buggy:
13026         it had a "!=" where it should have had an "==".  This bug has been
13027         in the code ever since it was introduced to gnulib.
13028         Problem reported by Dan Jacobson in
13029         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
13030
13031 2010-11-30  Bruno Haible  <bruno@clisp.org>
13032
13033         strerror_r-posix: Fix autoconf test.
13034         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
13035
13036 2010-11-28  Bruno Haible  <bruno@clisp.org>
13037             Paul Eggert  <eggert@cs.ucla.edu>
13038
13039         Tests for module 'getdomainname'.
13040         * modules/getdomainname-tests: New file.
13041         * tests/test-getdomainname.c: New file, based on
13042         tests/test-gethostname.c.
13043
13044 2010-11-28  Bruno Haible  <bruno@clisp.org>
13045             Paul Eggert  <eggert@cs.ucla.edu>
13046
13047         getdomainname: Use the system function when possible.
13048         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
13049         (getdomainname): Replace if needed. Provide the declaration if it is
13050         missing. Don't use _GL_CXXALIAS_SYS_CAST.
13051         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
13052         (getdomainname): When the system has getdomainname, call the system
13053         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
13054         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
13055         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
13056         found in libnsl. Look for the declaration also in <netdb.h>. Replace
13057         the function if its second argument is of type 'int' or if it is found
13058         in libnsl.
13059         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
13060         <sys/systeminfo.h> and sysinfo().
13061         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
13062         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13063         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
13064         HAVE_GETDOMAINNAME.
13065         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
13066         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
13067         * doc/glibc-functions/getdomainname.texi: Document the problems with
13068         the getdomainname declaration.
13069
13070 2010-11-28  Bruno Haible  <bruno@clisp.org>
13071
13072         sys_socket: Ensure ss_family field on AIX.
13073         * lib/sys_socket.in.h (ss_family): New macro definition.
13074         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
13075         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
13076         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
13077         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
13078         * modules/sys_socket (Makefile.am): Substitute
13079         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
13080         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
13081
13082 2010-11-27  Bruno Haible  <bruno@clisp.org>
13083
13084         readline: Improve configure output.
13085         * m4/readline.m4 (gl_FUNC_READLINE): Make the
13086         "checking for readline..." result understandable.
13087
13088 2010-11-27  Bruno Haible  <bruno@clisp.org>
13089
13090         *printf-posix: Detect a bug on Solaris 10/x86.
13091         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
13092         for floating-point output.
13093         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
13094         directive.
13095         * tests/test-snprintf-posix.h (test_function): Likewise.
13096         * tests/test-sprintf-posix.h (test_function): Likewise.
13097         * tests/test-vasprintf-posix.c (test_function): Likewise.
13098         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
13099         * doc/posix-functions/printf.texi: Likewise.
13100         * doc/posix-functions/snprintf.texi: Likewise.
13101         * doc/posix-functions/sprintf.texi: Likewise.
13102         * doc/posix-functions/vfprintf.texi: Likewise.
13103         * doc/posix-functions/vprintf.texi: Likewise.
13104         * doc/posix-functions/vsnprintf.texi: Likewise.
13105         * doc/posix-functions/vsprintf.texi: Likewise.
13106         * doc/glibc-functions/obstack_printf.texi: Likewise.
13107         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
13108
13109 2010-11-27  Bruno Haible  <bruno@clisp.org>
13110
13111         Fix link error when module libunistring-optional is in use.
13112         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
13113         * modules/striconveha-tests (Makefile.am): Likewise.
13114
13115 2010-11-27  Bruno Haible  <bruno@clisp.org>
13116
13117         regex: Mention link dependencies.
13118         * modules/regex (Link): New section.
13119         * modules/rpmatch (Link): Likewise.
13120         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
13121
13122 2010-11-27  Bruno Haible  <bruno@clisp.org>
13123
13124         ftoastr: Fix compilation error on Solaris.
13125         * lib/ftoastr.c: Include <config.h>.
13126
13127 2010-11-27  Bruno Haible  <bruno@clisp.org>
13128
13129         getloadavg: Update documentation.
13130         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
13131
13132 2010-11-27  Bruno Haible  <bruno@clisp.org>
13133
13134         sys_socket: Fix test whether the functions are declared.
13135         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
13136         not <sys/select.h>.
13137
13138 2010-11-27  Bruno Haible  <bruno@clisp.org>
13139
13140         getpass: Make sure to get system declaration on some platforms.
13141         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
13142         gl_USE_SYSTEM_EXTENSIONS.
13143         * modules/getpass (Depends-on): Add extensions.
13144
13145 2010-11-26  Bruno Haible  <bruno@clisp.org>
13146
13147         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
13148         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
13149         'iconv' module is present.
13150         (ICONV_CONST): New macro.
13151         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
13152         ICONV_CONST.
13153         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
13154         set ICONV_CONST.
13155         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
13156         here.
13157         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
13158         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
13159         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
13160         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
13161         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
13162         present.
13163
13164 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
13165
13166         ftoastr: comment fix
13167         * lib/ftoastr.c: "little" -> "little or no" in comment
13168
13169 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
13170
13171         stdint: port to GCC 4.3 + OSX + Octave
13172         On this platform, stdint.h is buggy and defines int64_t to long
13173         long int.  The replacement defined it to long int, causing
13174         problems with C++ style name mangling.  Instead, trust the system
13175         definition if INT64_MAX is defined, and likewise for the unsigned
13176         variant.   Problem reported by Jarno Rajahalme in
13177         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
13178         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
13179         and don't mess with int64_t and INT64_MAX in this case.
13180         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
13181
13182 2010-11-24  Bruno Haible  <bruno@clisp.org>
13183
13184         doc: Corrections regarding MacOS X 10.4 and 10.5.
13185         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
13186         MacOS X.
13187         Reported by Simon Josefsson.
13188
13189 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
13190
13191         Uninstall ".bin" files installed by relocwrapper.
13192         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
13193         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
13194         unless it is already there.
13195
13196 2010-11-21  Bruno Haible  <bruno@clisp.org>
13197
13198         Update for NetBSD 5.0.
13199         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
13200         NetBSD; the test fails on NetBSD 5.0.
13201         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
13202         about NetBSD.
13203
13204 2010-11-21  Bruno Haible  <bruno@clisp.org>
13205
13206         Update for HP-UX 11.23 and HP-UX 11.31.
13207         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
13208         HP-UX.
13209
13210 2010-11-21  Bruno Haible  <bruno@clisp.org>
13211
13212         Update for MacOS X 10.5.
13213         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
13214         MacOS X; the test fails on MacOS X 10.5.8.
13215         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
13216         about MacOS X.
13217
13218 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
13219
13220         bootstrap: add bootstrap_sync option.
13221         See discussion at
13222         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
13223         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
13224         * build-aux/bootstrap: Accept --bootstrap-sync to update
13225         bootstrap if it is not identical to the local gnulib's
13226         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
13227         enable this by default.  Accept --no-bootstrap-sync to disable
13228         it.
13229
13230 2010-11-20  Bruno Haible  <bruno@clisp.org>
13231
13232         Ensure that <features.h> is included before __GLIBC__ is tested.
13233         * lib/printf-parse.h: Include <features.h>.
13234         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
13235         Reported by Mike Frysinger <vapier@gentoo.org>.
13236
13237         Ensure that <features.h> is included before __GLIBC__ is tested.
13238         * lib/wchar.in.h: Include <features.h>.
13239         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
13240         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
13241         Reported by Mike Frysinger <vapier@gentoo.org>.
13242
13243         Ensure that <features.h> is included before __GLIBC__ is tested.
13244         * lib/arpa_inet.in.h: Include <features.h>.
13245         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
13246         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
13247         Reported by Mike Frysinger <vapier@gentoo.org>.
13248
13249         Ensure that <features.h> is included before __GLIBC__ is tested.
13250         * build-aux/link-warning.h: Include <features.h>.
13251         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
13252         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
13253         Reported by Mike Frysinger <vapier@gentoo.org>.
13254
13255         Ensure that <features.h> is included before __GLIBC__ is tested.
13256         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
13257         Reported by Mike Frysinger <vapier@gentoo.org>.
13258
13259 2010-11-20  Bruno Haible  <bruno@clisp.org>
13260
13261         memmem: Fix autoconf test.
13262         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
13263
13264 2010-11-20  Bruno Haible  <bruno@clisp.org>
13265
13266         Port to uClibc.
13267         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
13268         * lib/fcntl.in.h: Likewise.
13269         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
13270         * lib/mbrtowc.c (mbrtowc): Likewise.
13271         * lib/relocatable.c (find_shared_library_fullname): Likewise.
13272         * lib/strerror_r.c: Likewise.
13273         * lib/unistr/u8-strnlen.c: Likewise.
13274         * lib/vasnprintf.c (decimal_point_char): Likewise.
13275         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
13276         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
13277         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
13278         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
13279         * tests/test-sigaction.c (handler, main): Likewise.
13280         * lib/freading.h: Treat uClibc like a non-glibc platform.
13281         * lib/freading.c: Likewise.
13282         * lib/gettext.h: Likewise.
13283         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
13284         Likewise.
13285         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
13286         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
13287         * lib/propername.c (proper_name_utf8): Likewise.
13288         * lib/spawn.in.h: Likewise.
13289         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
13290         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
13291         mem_cd_iconveh_internal): Likewise.
13292         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
13293         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
13294         strstr, strcasestr): Likewise.
13295         * lib/unicodeio.c (unicode_to_mb): Likewise.
13296         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
13297         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
13298         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
13299         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
13300         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
13301         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
13302         * lib/unistr/u8-stpncpy.c: Likewise.
13303         * lib/vasnprintf.c (VASNPRINTF): Likewise.
13304         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
13305         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
13306         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
13307         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
13308         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
13309         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
13310         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
13311         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
13312         Likewise.
13313         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
13314         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
13315         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
13316         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13317         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
13318         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
13319         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13320         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
13321         * tests/test-getopt.h (OPTIND_MIN): Likewise.
13322         * tests/test-striconveha.c (main): Likewise.
13323         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13324         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
13325         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
13326         * doc/posix-functions/getline.texi: Likewise.
13327         Reported by Mike Frysinger <vapier@gentoo.org>.
13328
13329 2010-11-20  Bruno Haible  <bruno@clisp.org>
13330
13331         nproc: Fix condition.
13332         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
13333         HAVE_PTHREAD_AFFINITY_NP.
13334
13335 2010-11-20  Bruno Haible  <bruno@clisp.org>
13336
13337         Fix a comment.
13338         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
13339
13340 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
13341
13342         ftoastr: don't assume snprintf
13343         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
13344         Implement a subset of snprintf here, by using sprintf safely.
13345         * modules/ftoastr (Depends-on): Remove snprintf.
13346
13347 2010-11-19  Jim Meyering  <meyering@redhat.com>
13348
13349         test-rename.h: fix compilation failure
13350         * tests/test-rename.h (test_rename): Add omitted "}".
13351
13352 2010-11-17  Jim Meyering  <meyering@redhat.com>
13353
13354         maint.mk: add a URL discussing the no-@acronym policy
13355         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
13356
13357 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
13358
13359         ftoastr: depend on snprintf, improve comments
13360         * lib/ftoastr.c: Also mention Loitsch's draft.
13361         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
13362         needed in the current implementation, but it might simplify
13363         speeding up the code later.
13364         * modules/ftoastr: Depend on snprintf; this improves portability.
13365         Suggested by Bruno Haible in the same email.
13366
13367         ftoastr: port to hosts lacking strtof and strtold
13368         Problem reported by Bruno Haible in
13369         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
13370         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
13371         environment and strtold (and presumably strtof) are not available.
13372         * modules/ftoastr (Files): Add m4/c-strtod.m4.
13373         (configure.ac): Require gl_C99_STRTOLD.
13374
13375 2010-11-18  Bruno Haible  <bruno@clisp.org>
13376
13377         c-strtold: Avoid link error on AIX 7.
13378         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
13379         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
13380         (gl_C_STRTOLD): Test whether strtold_l exists.
13381         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13382
13383 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
13384
13385         intprops: new macro INT_BITS_STRLEN_BOUND
13386         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
13387         ftoastr.h.  This exposes an internal of intprops.h that was formerly
13388         not exposed.  Also, it uses a slightly tighter bound than before;
13389         though this makes no practical difference, we might as well be as
13390         tight as we easily can.
13391
13392         ftoastr: new module, for lossless conversion of floats to short strings
13393         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
13394         * modules/ftoastr: New files.
13395
13396 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
13397
13398         bootstrap: port to Solaris sed
13399         * build-aux/bootstrap (get_version): Port to Solaris sed.
13400         See Ralf Wildenhues's note in
13401         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
13402
13403 2010-11-14  Jim Meyering  <meyering@redhat.com>
13404
13405         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
13406         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
13407         and move definition closer to sole use.
13408
13409 2010-11-13  Jim Meyering  <meyering@redhat.com>
13410
13411         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
13412         Now we require at least autoconf-2.59, which means the work-around
13413         is no longer needed.
13414         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
13415         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
13416         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
13417         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
13418         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
13419
13420 2010-11-13  Bruno Haible  <bruno@clisp.org>
13421
13422         rename, renameat: Avoid test failures at NFS mounted locations.
13423         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
13424         functions.
13425         (test_rename): Use assert_nonexistent.
13426         * tests/test-rename.c: Include <dirent.h>.
13427         * tests/test-renameat.c: Likewise.
13428         Reported by Gary V. Vaughan <gary@gnu.org>.
13429
13430         rename, renameat: Document Linux bug with NFS
13431         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
13432         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
13433         * doc/posix-functions/renameat.texi: Likewise.
13434         Suggested by Eric Blake.
13435
13436 2010-11-13  Bruno Haible  <bruno@clisp.org>
13437
13438         rename test: Add comments.
13439         * tests/test-rename.h (test_rename): Add structure and comments.
13440
13441 2010-11-13  Eric Blake  <eblake@redhat.com>
13442
13443         maintainer-makefile: cover a few more files
13444         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
13445         scripts generated within C files, for libvirt.
13446
13447 2010-11-13  Bruno Haible  <bruno@clisp.org>
13448
13449         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
13450         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
13451         character, return the number of bytes that belong together, not always
13452         1.
13453         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
13454         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
13455         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
13456         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
13457         number of bytes of an invalid character.
13458         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
13459         (main): Invoke it.
13460         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
13461         results.
13462         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
13463         malformed byte sequences.
13464         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
13465         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
13466         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
13467         Reported by Ben Pfaff and Paolo Bonzini.
13468
13469 2010-11-13  Bruno Haible  <bruno@clisp.org>
13470
13471         openat: Work around glibc bug with fchownat() and empty file names.
13472         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
13473         (gl_FUNC_FCHOWNAT): Invoke it.
13474         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
13475         * doc/posix-functions/fchownat.texi: Document the glibc bug.
13476         Reported by Gary V. Vaughan <gary@gnu.org>.
13477
13478 2010-11-13  Bruno Haible  <bruno@clisp.org>
13479
13480         openat: Ensure autoconf macro ordering.
13481         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
13482         gl_USE_SYSTEM_EXTENSIONS.
13483         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
13484
13485 2010-11-13  Bruno Haible  <bruno@clisp.org>
13486
13487         Update comments.
13488         * lib/unistr/u8-check.c: Update file name in comments.
13489         * lib/unistr/u8-mblen.c: Likewise.
13490         * lib/unistr/u8-prev.c: Likewise.
13491         * lib/unistr/u8-strmblen.c: Likewise.
13492         * lib/unistr/u8-strmbtouc.c: Likewise.
13493
13494 2010-11-13  Jim Meyering  <meyering@redhat.com>
13495
13496         tests: avoid test failure on Solaris 10 due to lack of PATH export
13497         * tests/test-update-copyright.sh: Don't forget to export PATH.
13498
13499         init.sh: ensure that IFS is defined, just in case...
13500         * tests/init.sh (setup_): Ensure that IFS is defined,
13501         so that saving and restoring it works as expected.  This
13502         appears to be useful at least for an old version of dash
13503         from a long time ago (RH 6).  See here for details:
13504         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
13505
13506         maint.mk: tighten "test a == b" check
13507         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
13508         test to files that contain something like #!/bin/sh.
13509         Without this, coreutils would get two false positives in
13510         the comments of C source files.
13511
13512 2010-11-12  Eric Blake  <eblake@redhat.com>
13513
13514         bootstrap: fix typo in previous attempt
13515         * build-aux/bootstrap (buildreq): Correct the grouping.
13516         Reported by Paul Eggert.
13517
13518         maintainer-makefile: prohibit test x == x
13519         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
13520         Based on a report by Matthias Bolte.
13521
13522         bootstrap: allow FreeBSD gzip
13523         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
13524         which has no '.' and goes to stderr.
13525         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
13526         Reported by Matthias Bolte.
13527
13528         maintainer-makefile: check for i18n setup
13529         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
13530         will likely work.
13531
13532 2010-11-12  Bruno Haible  <bruno@clisp.org>
13533
13534         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
13535         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
13536         * lib/nanosleep.c (nanosleep): Likewise.
13537
13538 2010-11-11  Bruno Haible  <bruno@clisp.org>
13539
13540         fcntl-h: Fix for use of C++ on glibc systems.
13541         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
13542         also on glibc systems in C++ mode.
13543         Reported by Gary V. Vaughan <gary@gnu.org>.
13544
13545 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13546
13547         mknod: avoid false failure with dash
13548         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
13549
13550 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
13551
13552         unlink: Fix "is it should" typo in diagnostic.
13553         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
13554         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
13555
13556 2010-11-11  Bruno Haible  <bruno@clisp.org>
13557
13558         Tests for module 'strerror_r-posix'.
13559         * modules/strerror_r-posix-tests: New file.
13560         * tests/test-strerror_r.c: New file.
13561         * tests/test-string-c++.cc: Check the signature of strerror_r.
13562
13563         New module 'strerror_r-posix'.
13564         * lib/string.in.h (strerror_r): New declaration.
13565         * lib/strerror_r.c: New file.
13566         * m4/strerror_r.m4: New file.
13567         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
13568         of strerror_r.
13569         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
13570         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
13571         * modules/strerror_r-posix: New file.
13572         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
13573         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
13574         * doc/posix-functions/strerror_r.texi: Mention the new module and the
13575         portability problems.
13576
13577 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
13578
13579         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
13580         line is also considered for output. Quoted function name in shell
13581         command, so temporary files for functions like MyClass::operator()
13582         are removed correctly without errors.
13583
13584 2010-11-09  Bruno Haible  <bruno@clisp.org>
13585
13586         * doc/posix-functions/strerror.texi: List more failing platforms.
13587
13588         * doc/posix-functions/strerror.texi: Add a comment.
13589
13590 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
13591
13592         fdopendir: fix bug on MacOS X when low on file descriptors
13593
13594         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
13595         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
13596         All callers changed.
13597         (fdopendir): Invoke save_cwd at the top level, not after using
13598         multiple dup() calls to use up file descriptors.  Then retry
13599         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
13600         less than the maximum number of open file descriptors, because
13601         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
13602         on Mac OS X 10.6.4 for tar 1.24
13603         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
13604         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
13605         and for tar 1.25
13606         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
13607
13608 2010-11-07  Bruno Haible  <bruno@clisp.org>
13609
13610         vasnprintf: Support I flag on glibc systems.
13611         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
13612         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
13613         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
13614         snprintf function.
13615         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
13616         glibc systems.
13617         * tests/test-vasnprintf-posix3.c: New file.
13618         * modules/vasnprintf-posix-tests (Files): Add it.
13619         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
13620
13621 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
13622
13623         [html] Fix copy/paste bug: Use unique name for compiler warnings.
13624         * MODULES.html.sh: For compiler warnings, use name
13625         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
13626
13627 2010-11-05  Eric Blake  <eblake@redhat.com>
13628
13629         ceil, floor: avoid spurious failure with icc
13630         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
13631         [denormals-as-zero] when optimizing without -mieee-fp option.
13632         * tests/test-floorf2.c (floorf_reference): Likewise.
13633         * tests/test-ceilf1.c (dummy): New function.
13634         (main): Use it to outsmart icc's optimization.
13635         * tests/test-floorf1.c (dummy, main): Likewise.
13636
13637         tests: require working signbit
13638         * modules/ceilf-tests (Depends-on): Add signbit.
13639         * modules/ceill-tests (Depends-on): Likewise.
13640         * modules/floorf-tests (Depends-on): Likewise.
13641         * modules/floorl-tests (Depends-on): Likewise.
13642         * modules/round-tests (Depends-on): Likewise.
13643         * modules/roundf-tests (Depends-on): Likewise.
13644         * modules/roundl-tests (Depends-on): Likewise.
13645         * modules/trunc-tests (Depends-on): Likewise.
13646         * modules/truncf-tests (Depends-on): Likewise.
13647         * modules/truncl-tests (Depends-on): Likewise.
13648
13649         strtod: work around icc bug
13650         * lib/strtod.c (minus_zero): Define to working value.
13651         (strtod): Use it to avoid icc bug.
13652
13653         copysign: enhance tests
13654         * modules/copysign-tests (Files): Add minus-zero.h.
13655         * tests/test-copysign.c (main): Also test zeros.
13656
13657 2010-11-04  Eric Blake  <eblake@redhat.com>
13658
13659         ceil, floor, round, trunc: enhance tests of -0
13660         * tests/test-ceilf1.c (main): Ensure correct sign of result.
13661         * tests/test-ceill.c (main): Likewise.
13662         * tests/test-floorf1.c (main): Likewise.
13663         * tests/test-floorl.c (main): Likewise.
13664         * tests/test-round1.c (main): Likewise.
13665         * tests/test-roundf1.c (main): Likewise.
13666         * tests/test-roundl.c (main): Likewise.
13667         * tests/test-trunc1.c (main): Likewise.
13668         * tests/test-truncf1.c (main): Likewise.
13669         * tests/test-truncl.c (main): Likewise.
13670
13671 2010-11-04  Eric Blake  <eblake@redhat.com>
13672
13673         frexp, tests: work around ICC bug with -zero
13674         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
13675         works with more compilers.
13676         * tests/minus-zero.h: New file.
13677         * modules/ceilf-tests (Files): Include it.
13678         * modules/ceill-tests (Files): Likewise.
13679         * modules/floorf-tests (Files): Likewise.
13680         * modules/floorl-tests (Files): Likewise.
13681         * modules/frexp-nolibm-tests (Files): Likewise.
13682         * modules/frexp-tests (Files): Likewise.
13683         * modules/frexpl-nolibm-tests (Files): Likewise.
13684         * modules/frexpl-tests (Files): Likewise.
13685         * modules/isnan-tests (Files): Likewise.
13686         * modules/isnand-nolibm-tests (Files): Likewise.
13687         * modules/isnand-tests (Files): Likewise.
13688         * modules/isnanf-nolibm-tests (Files): Likewise.
13689         * modules/isnanf-tests (Files): Likewise.
13690         * modules/isnanl-nolibm-tests (Files): Likewise.
13691         * modules/isnanl-tests (Files): Likewise.
13692         * modules/round-tests (Files): Likewise.
13693         * modules/roundf-tests (Files): Likewise.
13694         * modules/roundl-tests (Files): Likewise.
13695         * modules/ldexpl-tests (Files): Likewise.
13696         * modules/signbit-tests (Files): Likewise.
13697         * modules/snprintf-posix-tests (Files): Likewise.
13698         * modules/sprintf-posix-tests (Files): Likewise.
13699         * modules/strtod-tests (Files): Likewise.
13700         * modules/trunc-tests (Files): Likewise.
13701         * modules/truncf-tests (Files): Likewise.
13702         * modules/truncl-tests (Files): Likewise.
13703         * modules/vsnprintf-posix-tests (Files): Likewise.
13704         * modules/vsprintf-posix-tests (Files): Likewise.
13705         * modules/vasnprintf-posix-tests (Files): Likewise.
13706         * modules/vasprintf-posix-tests (Files): Likewise.
13707         * tests/test-ceilf1.c (main): Use it.
13708         * tests/test-ceill.c (main): Likewise.
13709         * tests/test-floorf1.c (main): Likewise.
13710         * tests/test-floorl.c (main): Likewise.
13711         * tests/test-frexp.c (main): Likewise.
13712         * tests/test-frexpl.c (main): Likewise.
13713         * tests/test-isnan.c (main): Likewise.
13714         * tests/test-isnand.h (main): Likewise.
13715         * tests/test-isnanf.h (main): Likewise.
13716         * tests/test-isnanl.h (main): Likewise.
13717         * tests/test-ldexpl.c (main): Likewise.
13718         * tests/test-round.c (main): Likewise.
13719         * tests/test-roundf.c (main): Likewise.
13720         * tests/test-roundl.c (main): Likewise.
13721         * tests/test-signbit.c (test_signbitf, test_signbitd)
13722         (test_signbitl): Likewise.
13723         * tests/test-snprintf-posix.h (test_function): Likewise.
13724         * tests/test-sprintf-posix.h (test_function): Likewise.
13725         * tests/test-strtod.c (main): Likewise.
13726         * tests/test-trunc1.c (main): Likewise.
13727         * tests/test-truncf1.c (main): Likewise.
13728         * tests/test-truncl.c (main): Likewise.
13729
13730         isnanl: work around icc bug
13731         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
13732
13733 2010-11-03  Eric Blake  <eblake@redhat.com>
13734
13735         tests: fix compiler warnings
13736         * tests/test-getopt.h (test_getopt): Fix condition.
13737         * tests/test-getopt_long.h (test_getopt_long): Likewise.
13738         * tests/test-pipe2.c (main): Likewise.
13739         * tests/test-quotearg-simple.c (main): Avoid icc warning.
13740
13741         utimens: fix broken m4 test
13742         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
13743
13744 2010-10-28  Bruno Haible  <bruno@clisp.org>
13745
13746         posix_spawn*, getdtablesize: Relax license.
13747         * modules/posix_spawn (License): Change to LGPLv2+.
13748         * modules/posix_spawnp (License): Likewise.
13749         * modules/posix_spawn-internal (License): Likewise.
13750         * modules/posix_spawnattr_init (License): Likewise.
13751         * modules/posix_spawnattr_getflags (License): Likewise.
13752         * modules/posix_spawnattr_setflags (License): Likewise.
13753         * modules/posix_spawnattr_getpgroup (License): Likewise.
13754         * modules/posix_spawnattr_setpgroup (License): Likewise.
13755         * modules/posix_spawnattr_getschedparam (License): Likewise.
13756         * modules/posix_spawnattr_setschedparam (License): Likewise.
13757         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
13758         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
13759         * modules/posix_spawnattr_getsigdefault (License): Likewise.
13760         * modules/posix_spawnattr_setsigdefault (License): Likewise.
13761         * modules/posix_spawnattr_getsigmask (License): Likewise.
13762         * modules/posix_spawnattr_setsigmask (License): Likewise.
13763         * modules/posix_spawnattr_destroy (License): Likewise.
13764         * modules/posix_spawn_file_actions_init (License): Likewise.
13765         * modules/posix_spawn_file_actions_addclose (License): Likewise.
13766         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
13767         * modules/posix_spawn_file_actions_addopen (License): Likewise.
13768         * modules/posix_spawn_file_actions_destroy (License): Likewise.
13769         * modules/getdtablesize (License): Likewise.
13770         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
13771
13772 2010-10-26  Bruno Haible  <bruno@clisp.org>
13773
13774         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
13775         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
13776         Cygwin and mingw.
13777         Suggested by Eric Blake.
13778
13779 2010-10-26  Bruno Haible  <bruno@clisp.org>
13780
13781         stdio: Work around compilation error due to renameat() on Solaris 10.
13782         * lib/stdio.in.h: Include <unistd.h> on Solaris.
13783         * lib/renameat.c: Don't include <unistd.h> here.
13784         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
13785         Reported by Paul Eggert and Eric Blake.
13786
13787 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
13788
13789         renameat: port to Solaris 10, which declares renameat in unistd.h
13790
13791         * lib/renameat.c: Include unistd.h before stdio.h, because
13792         Solaris 10 declares renameat in unistd.h.  Problem encountered
13793         when building GNU tar 1.24 on Solaris 10.
13794
13795 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13796
13797         fdopendir: fix C89 compilation
13798         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
13799         compilers.
13800
13801 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
13802
13803         inttostr: simplify by removing unnecessary redundancy
13804         * lib/anytostr.c: Don't include verify.h.
13805         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
13806         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
13807         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
13808         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
13809         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
13810         Likewise.
13811         * modules/inttostr (Depends-on): Remove 'verify'.
13812
13813 2010-10-23  Bruno Haible  <bruno@clisp.org>
13814
13815         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
13816         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
13817         Reported by Eric Blake.
13818
13819 2010-10-23  Bruno Haible  <bruno@clisp.org>
13820
13821         Tests: Fix LOCALE_JA on MirBSD 10.
13822         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
13823         to an UTF-8 locale.
13824         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
13825         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
13826         Reported by Eric Blake.
13827
13828 2010-10-21  Bruno Haible  <bruno@clisp.org>
13829
13830         nl_langinfo test: Avoid test failure on NetBSD 5.
13831         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
13832         Reported by Eric Blake.
13833
13834 2010-10-21  Eric Blake  <eblake@redhat.com>
13835
13836         c-stack: work around libsigsegv 2.8 bug
13837         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
13838         overflow on at least PowerPC64.
13839
13840 2010-10-17  Bruno Haible  <bruno@clisp.org>
13841
13842         userspec: Drop redundant file.
13843         * modules/userspec (Files): Remove lib/inttostr.h.
13844
13845 2010-10-17  Bruno Haible  <bruno@clisp.org>
13846
13847         nl_langinfo tests: Silence some warnings.
13848         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
13849         Reported by Jim Meyering.
13850
13851 2010-10-17  Bruno Haible  <bruno@clisp.org>
13852
13853         Make use of GCC's attribute __alloc_size__.
13854         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
13855         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
13856         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
13857         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
13858         __alloc_size__.
13859         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
13860         Suggested by Jim Meyering.
13861
13862 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
13863
13864         bootstrap: anchor .gitignore entries.
13865         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
13866         with...
13867         (insert_vc_ignore): ... this new function, which prepends `/' to
13868         all .gitignore entries before passing them to
13869         insert_sorted_if_absent.
13870
13871 2010-10-16  Bruno Haible  <bruno@clisp.org>
13872
13873         nextafter: Fix configure check.
13874         * modules/nextafter (configure.ac): Correct expected prototype.
13875
13876 2010-10-16  Bruno Haible  <bruno@clisp.org>
13877
13878         termios: Update documentation.
13879         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
13880
13881 2010-10-16  Bruno Haible  <bruno@clisp.org>
13882
13883         tests: Make them compile with TinyCC.
13884         * tests/test-strstr.c (main): Remove parentheses around array
13885         initializer.
13886
13887 2010-10-15  Eric Blake  <eblake@redhat.com>
13888
13889         ignore-value: make header idempotent
13890         * lib/ignore-value.h: Add double-inclusion guards.
13891         Reported by Stefan Berger.
13892
13893 2010-10-15  Jim Meyering  <meyering@redhat.com>
13894
13895         GNUmakefile: handle "stable" target, not "major"
13896         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
13897         lists in maint.mk and announce-gen.  Without this, "make stable"
13898         would fail to ensure that $(VERSION) is up to date.
13899
13900 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
13901
13902         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
13903         & co.
13904
13905 2010-10-14  Bruno Haible  <bruno@clisp.org>
13906
13907         vasnprintf: Don't set errno to 0.
13908         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
13909         block that sets it to 0.
13910         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
13911
13912 2010-10-14  Bruno Haible  <bruno@clisp.org>
13913
13914         socketlib: Fix.
13915         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
13916         gl_PREREQ_SYS_H_WINSOCK2.
13917         Reported by Ian Beckwith <ianb@erislabs.net>.
13918
13919 2010-10-13  Jim Meyering  <meyering@redhat.com>
13920
13921         test-select-stdin.c: avoid warn_unused_result warnings
13922         * tests/test-select-stdin.c: Include "macros.h".
13923         ASSERT that read and fflush succeed.
13924
13925 2010-10-13  Jim Meyering  <meyering@redhat.com>
13926
13927         git-version-gen: do require git-VC'd files in cwd
13928         * build-aux/git-version-gen: Reject a git version string
13929         if there are no commits associated with the current directory.
13930         This avoids an unlikely false-positive (unrelated dir whose parent
13931         repository also contains a tag matching v*), as pointed out
13932         by Giuseppe Scrivano in
13933         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
13934
13935 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
13936
13937         argv-iter: omit nonconforming declaration
13938         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
13939         enum arg_iter_err declaration, which doesn't conform to C99.
13940         Solaris 10 cc warns about this.
13941
13942 2010-10-13  Eric Blake  <eblake@redhat.com>
13943
13944         termios: fix compilation on mingw
13945         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
13946         (gl_TERMIOS_H): Adjust it on mingw.
13947         * modules/termios (Makefile.am): Substitute new key.
13948         * lib/termios.in.h (includes): Make include_next conditional.
13949         * doc/posix-headers/termios.texi (termios.h): Update
13950         documentation.
13951         Reported by Daniel P. Berrange.
13952
13953 2010-10-13  Jim Meyering  <meyering@redhat.com>
13954
13955         git-version-gen: don't require that .git/ be in the current dir
13956         * build-aux/git-version-gen: Adjust this script so that it works
13957         when run from any working directory beneath the top-level .git/-
13958         containing directory.  Inspired by a patch from Giuseppe Scrivano,
13959         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
13960
13961         test-select: avoid warn_unused_result warnings
13962         * tests/test-select.c: Include "macros.h".
13963         ASSERT that each call to read, write, and pipe succeeds.
13964         While not technically required, also check each "close".
13965         * modules/select-tests (Files): Add tests/macros.h.
13966
13967         test-symlinkat: remove declaration of unused local
13968         * tests/test-symlinkat.c (main): Remove unused local, "buf".
13969
13970         test-inttostr: avoid shadowing warnings
13971         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
13972         and use malloc rather than the stack for the same reason as
13973         mentioned in the comment justifying the other allocation.
13974
13975 2010-10-11  Bruno Haible  <bruno@clisp.org>
13976
13977         stdlib: Allow multiple gnulib generated replacements to coexist.
13978         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
13979         Reported by Sam Steingold <sds@gnu.org>.
13980
13981 2010-10-11  Jim Meyering  <meyering@redhat.com>
13982
13983         fix a documentation typo
13984         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
13985
13986 2010-10-11  Eric Blake  <eblake@redhat.com>
13987
13988         futimens: work around Solaris 11 bug
13989         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
13990         * tests/test-futimens.h (test_futimens): Enhance, rather than
13991         weaken test.
13992         * doc/posix-functions/futimens.texi (futimens): Document the bug.
13993
13994 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
13995
13996         Indentation.
13997         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
13998         higher-level operators more to the left.
13999
14000 2010-10-11  Jim Meyering  <meyering@redhat.com>
14001
14002         test-futimens: avoid unwarranted test failure on Solaris 5.11
14003         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
14004         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
14005         because it tries to dereference the NULL name argument.
14006
14007 2010-10-11  Bruno Haible  <bruno@clisp.org>
14008
14009         Indentation.
14010         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
14011         indentation.
14012
14013 2010-10-11  Jim Meyering  <meyering@redhat.com>
14014
14015         spawn.in.h: make indentation consistent with parentheses
14016         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
14017         Make indentation consistent with parentheses.
14018
14019 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
14020
14021         Fix mismatched parens in previous commit
14022         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
14023         parens.
14024
14025 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
14026
14027         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
14028
14029         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
14030         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
14031         * lib/malloca.c: Include "verify.h".
14032         (verify1): Remove, replacing with a verify call.
14033         * lib/relocwrapper.c (verify1): Likewise.
14034         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
14035         Likewise.
14036         * modules/malloca (Depends-on): Add 'verify'.
14037         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
14038         * modules/vasnprintf (Depends-on): Add 'verify'.
14039         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
14040         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
14041         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
14042         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
14043         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
14044         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
14045         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
14046
14047         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
14048
14049         Formerly the style was sometimes 2*X - 1, because the C standard
14050         was wrongly thought to disallow ?: in integral constant expressions.
14051         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
14052         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
14053         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
14054         * lib/stdint.in.h (_verify_intmax_size): Likewise.
14055         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
14056         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
14057         verify that time_t cannot be floating.
14058
14059 2010-10-08  Eric Blake  <eblake@redhat.com>
14060
14061         time: enforce recent POSIX ruling that time_t is integral
14062         * lib/time.in.h (__time_t_must_be_integral): Detect any
14063         problematic systems, allowing the rest of gnulib to assume POSIX.
14064
14065 2010-10-08  Jim Meyering  <meyering@redhat.com>
14066
14067         fdopendir: fix a bug on systems lacking openat and /proc support
14068         OpenBSD 4.7 is one such system.  The most noticeable effect was
14069         failure of any application making nontrivial use of fts: rm, du,
14070         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
14071           ./rm: traversal failed: `a': Bad file descriptor
14072         Debugging that, you see that even though FD 6 was closed just
14073         prior to the opendir call in fd_clone_opendir, its resulting
14074         dir->dd_fd was 8, rather than the expected value of 6:
14075
14076         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
14077         93                close (fd);
14078         (gdb) n
14079         94                dir = fd_clone_opendir (dupfd);
14080         (gdb) n
14081         95                saved_errno = errno;
14082         (gdb) p dir->dd_fd
14083         $11 = 8
14084
14085         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
14086         The problem is that on OpenBSD, fd_clone_opendir has to resort
14087         to using the old-style save/restore CWD mechanism, due to its
14088         lack of openat/proc support, and *that* would steal the FD (6)
14089         that opendir was supposed to use.
14090
14091         The fix is to squirrel away the desired FD so that save_cwd uses a
14092         different one, and then free the dest FD right before calling opendir.
14093         That guarantees opendir will use the required file descriptor.
14094
14095         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
14096
14097 2010-10-08  Bruno Haible  <bruno@clisp.org>
14098
14099         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
14100         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
14101
14102 2010-10-08  Bruno Haible  <bruno@clisp.org>
14103
14104         nanosleep: Make replacement POSIX compliant.
14105         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
14106         is out of range.
14107         Reported by Jim Meyering.
14108
14109 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
14110
14111         bootstrap: add hook for altering gnulib.mk, for Bison
14112         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
14113         the Bison bootstrapping process can rewrite file names and variables
14114         in this file before later parts of 'bootstrap' use the file.
14115         Bison wants to include lib/gnulib.mk from the top-level makefile,
14116         so it needs the file names in this file to be relative to the top
14117         level, not relative to lib; plus it needs variable names to be
14118         rewritten.
14119         (slurp): Use the new function.
14120
14121         bootstrap: reformat for readability
14122         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
14123
14124 2010-10-08  Eric Blake  <eblake@redhat.com>
14125
14126         docs: update cygwin progress
14127         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
14128         1.7.7.
14129         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
14130         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
14131         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
14132         * doc/posix-functions/carg.texi (carg): Likewise.
14133         * doc/posix-functions/cargf.texi (cargf): Likewise.
14134         * doc/posix-functions/casin.texi (casin): Likewise.
14135         * doc/posix-functions/casinf.texi (casinf): Likewise.
14136         * doc/posix-functions/casinh.texi (casinh): Likewise.
14137         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
14138         * doc/posix-functions/catan.texi (catan): Likewise.
14139         * doc/posix-functions/catanf.texi (catanf): Likewise.
14140         * doc/posix-functions/catanh.texi (catanh): Likewise.
14141         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
14142         * doc/posix-functions/ccos.texi (ccos): Likewise.
14143         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
14144         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
14145         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
14146         * doc/posix-functions/cexp.texi (cexp): Likewise.
14147         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
14148         * doc/posix-functions/cimag.texi (cimag): Likewise.
14149         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
14150         * doc/posix-functions/clog.texi (clog): Likewise.
14151         * doc/posix-functions/clogf.texi (clogf): Likewise.
14152         * doc/posix-functions/conj.texi (conj): Likewise.
14153         * doc/posix-functions/conjf.texi (conjf): Likewise.
14154         * doc/posix-functions/cpow.texi (cpow): Likewise.
14155         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
14156         * doc/posix-functions/cproj.texi (cproj): Likewise.
14157         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
14158         * doc/posix-functions/creal.texi (creal): Likewise.
14159         * doc/posix-functions/crealf.texi (crealf): Likewise.
14160         * doc/posix-functions/csin.texi (csin): Likewise.
14161         * doc/posix-functions/csinf.texi (csinf): Likewise.
14162         * doc/posix-functions/csinh.texi (csinh): Likewise.
14163         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
14164         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
14165         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
14166         * doc/posix-functions/ctan.texi (ctan): Likewise.
14167         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
14168         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
14169         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
14170         * doc/posix-headers/complex.texi (complex.h): Likewise.
14171
14172 2010-10-07  Jim Meyering  <meyering@redhat.com>
14173
14174         parse-datetime: avoid compilation failure on OpenBSD 4.7
14175         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
14176         This works around a compilation failure on OpenBSD 4.7:
14177         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
14178
14179 2010-10-07  Eric Blake  <eblake@redhat.com>
14180
14181         docs: update cygwin progress
14182         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
14183         1.7.6.
14184         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
14185         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
14186         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
14187         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
14188         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
14189         Likewise.
14190         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
14191         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
14192         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
14193         Likewise.
14194         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
14195         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
14196         Likewise.
14197         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
14198         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
14199         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
14200         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
14201         Likewise.
14202         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
14203         Likewise.
14204         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
14205
14206         docs: update parse-datetime history
14207         * doc/parse-datetime.texi (Authors of parse_datetime): Better
14208         documentation of this function's history and alternatives.
14209
14210         cygwin: use more robust version check
14211         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
14212         exclude an eventual cygwin 1.9.1.
14213         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
14214         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
14215         (gl_FUNC_STRCASESTR): Likewise.
14216         Reported by Bruno Haible.
14217
14218 2010-10-06  Bruno Haible  <bruno@clisp.org>
14219
14220         string, sys_select: Avoid #including large headers unless necessary.
14221         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
14222         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
14223         OSF/1, BeOS, Haiku.
14224         Reported by Jim Meyering.
14225
14226 2010-10-05  Eric Blake  <eblake@redhat.com>
14227
14228         memmem, strstr, strcasestr: fix bug with long periodic needle
14229         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
14230         periodic needle having false positive.
14231         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
14232         and cygwin 1.7.7.
14233         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
14234         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
14235         (gl_FUNC_STRCASESTR): Likewise.
14236         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
14237         * tests/test-memmem.c (main): Expose the bug.
14238         * tests/test-strcasestr.c (main): Likewise.
14239         * tests/test-strstr.c (main): Likewise.
14240         * tests/test-c-strcasestr.c (main): Likewise.
14241         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
14242         * doc/posix-functions/strstr.texi (strstr): Likewise.
14243         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
14244         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
14245
14246 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
14247
14248         parse-datetime: do some more renaming
14249         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
14250         parse_datetime, not get_date.  Mention the renaming.
14251         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
14252         in comments.
14253         * m4/bison.m4: Likewise.
14254
14255 2010-10-05  Eric Blake  <eblake@redhat.com>
14256
14257         parse-datetime: better name than get_date
14258         * NEWS: Reword the deprecation notice.
14259         * modules/get_date: Rename to modules/parse-datetime.
14260         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
14261         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
14262         * lib/get_date.y: Rename to lib/parse-datetime.y.
14263         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
14264         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
14265         * doc/getdate.texi: Provide fallback wrapper.
14266         * lib/getdate.h: Move guts, and wrap...
14267         * lib/parse-datetime.h: ...new file.
14268         * lib/parse-datetime.y (get_date): Rename...
14269         (parse_datetime): ...to this.
14270         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
14271         (gl_PARSE_DATETIME): ...to this.
14272         * doc/posix-functions/getdate.texi (get_date): Provide fallback
14273         documentation.
14274         * modules/getdate (Files): Provide fallback docs and header.
14275         (Notice, Depends-on): Update references.
14276         * tests/test-parse-datetime.c: Likewise.
14277         * DEPENDENCIES: Likewise.
14278         * MODULES.html.sh (Date and time <time.h>): Likewise.
14279         * doc/parse-datetime.texi (Date input formats)
14280         (Authors of parse_datetime): Likewise.
14281         * modules/parse-datetime (Files, configure.ac, Makefile.am)
14282         (Include): Likewise.
14283         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
14284         * gnulib-tool: Likewise.
14285         * m4/bison.m4 (gl_BISON): Likewise.
14286         Suggested by Bruno Haible.
14287
14288 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
14289
14290         more ports to Solaris tr, which needs [] around ranges
14291         * gnulib-tool: Solaris tr needs [] around ranges.
14292         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
14293         * tests/test-pipe-filter-gi1.c (main): Likewise.
14294         * tests/test-pipe-filter-ii1.c (main): Likewise.
14295
14296 2010-10-05  Eric Blake  <eblake@redhat.com>
14297
14298         bootstrap: fix Solaris regression
14299         * build-aux/bootstrap (check_versions): Solaris tr still needs []
14300         around ranges.
14301         Reported by Pádraig Brady.
14302
14303         bootstrap: work with pkg-config
14304         * build-aux/bootstrap (check_versions): Also transliterate - in
14305         prerequisite name.
14306         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
14307         prerequisites that were already found, to avoid confusion.
14308         Reported by Justin Clift.
14309
14310         faccessat: remove unused wrappers
14311         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
14312         presence of these wrappers dragged in -lgen on Solaris.
14313         Reported by Clemens Brogi; fix suggested by Paul Eggert.
14314
14315 2010-10-05  Jim Meyering  <meyering@redhat.com>
14316
14317         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
14318         * Makefile (sc_pragma_columns): New syntax-check rule.
14319
14320 2010-10-04  Bruno Haible  <bruno@clisp.org>
14321
14322         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
14323         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
14324         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
14325         Reported by Bruce Korb and Eric Blake.
14326
14327 2010-10-04  Bruno Haible  <bruno@clisp.org>
14328
14329         threadlib: Make option --with-libpth-prefix work.
14330         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
14331         use $LIBPTH, not just -lpth.
14332
14333 2010-10-04  Bruno Haible  <bruno@clisp.org>
14334
14335         Avoid line length limitation from HP NonStop system header files.
14336         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
14337         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
14338         * lib/ctype.in.h: Likewise.
14339         * lib/dirent.in.h: Likewise.
14340         * lib/errno.in.h: Likewise.
14341         * lib/fcntl.in.h: Likewise.
14342         * lib/float.in.h: Likewise.
14343         * lib/getopt.in.h: Likewise.
14344         * lib/iconv.in.h: Likewise.
14345         * lib/inttypes.in.h: Likewise.
14346         * lib/langinfo.in.h: Likewise.
14347         * lib/locale.in.h: Likewise.
14348         * lib/math.in.h: Likewise.
14349         * lib/netdb.in.h: Likewise.
14350         * lib/netinet_in.in.h: Likewise.
14351         * lib/poll.in.h: Likewise.
14352         * lib/pthread.in.h: Likewise.
14353         * lib/pty.in.h: Likewise.
14354         * lib/sched.in.h: Likewise.
14355         * lib/se-selinux.in.h: Likewise.
14356         * lib/search.in.h: Likewise.
14357         * lib/signal.in.h: Likewise.
14358         * lib/spawn.in.h: Likewise.
14359         * lib/stdarg.in.h: Likewise.
14360         * lib/stddef.in.h: Likewise.
14361         * lib/stdint.in.h: Likewise.
14362         * lib/stdio.in.h: Likewise.
14363         * lib/stdlib.in.h: Likewise.
14364         * lib/string.in.h: Likewise.
14365         * lib/strings.in.h: Likewise.
14366         * lib/sys_file.in.h: Likewise.
14367         * lib/sys_ioctl.in.h: Likewise.
14368         * lib/sys_select.in.h: Likewise.
14369         * lib/sys_socket.in.h: Likewise.
14370         * lib/sys_stat.in.h: Likewise.
14371         * lib/sys_time.in.h: Likewise.
14372         * lib/sys_times.in.h: Likewise.
14373         * lib/sys_utsname.in.h: Likewise.
14374         * lib/sys_wait.in.h: Likewise.
14375         * lib/sysexits.in.h: Likewise.
14376         * lib/termios.in.h: Likewise.
14377         * lib/time.in.h: Likewise.
14378         * lib/unistd.in.h: Likewise.
14379         * lib/wchar.in.h: Likewise.
14380         * lib/wctype.in.h: Likewise.
14381         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
14382         * modules/ctype (Makefile.am): Likewise.
14383         * modules/dirent (Makefile.am): Likewise.
14384         * modules/errno (Makefile.am): Likewise.
14385         * modules/fcntl-h (Makefile.am): Likewise.
14386         * modules/float (Makefile.am): Likewise.
14387         * modules/getopt-posix (Makefile.am): Likewise.
14388         * modules/iconv-h (Makefile.am): Likewise.
14389         * modules/inttypes (Makefile.am): Likewise.
14390         * modules/langinfo (Makefile.am): Likewise.
14391         * modules/locale (Makefile.am): Likewise.
14392         * modules/math (Makefile.am): Likewise.
14393         * modules/netdb (Makefile.am): Likewise.
14394         * modules/netinet_in (Makefile.am): Likewise.
14395         * modules/poll-h (Makefile.am): Likewise.
14396         * modules/pthread (Makefile.am): Likewise.
14397         * modules/pty (Makefile.am): Likewise.
14398         * modules/sched (Makefile.am): Likewise.
14399         * modules/search (Makefile.am): Likewise.
14400         * modules/selinux-h (Makefile.am): Likewise.
14401         * modules/signal (Makefile.am): Likewise.
14402         * modules/spawn (Makefile.am): Likewise.
14403         * modules/stdarg (Makefile.am): Likewise.
14404         * modules/stddef (Makefile.am): Likewise.
14405         * modules/stdint (Makefile.am): Likewise.
14406         * modules/stdio (Makefile.am): Likewise.
14407         * modules/stdlib (Makefile.am): Likewise.
14408         * modules/string (Makefile.am): Likewise.
14409         * modules/strings (Makefile.am): Likewise.
14410         * modules/sys_file (Makefile.am): Likewise.
14411         * modules/sys_ioctl (Makefile.am): Likewise.
14412         * modules/sys_select (Makefile.am): Likewise.
14413         * modules/sys_socket (Makefile.am): Likewise.
14414         * modules/sys_stat (Makefile.am): Likewise.
14415         * modules/sys_time (Makefile.am): Likewise.
14416         * modules/sys_times (Makefile.am): Likewise.
14417         * modules/sys_utsname (Makefile.am): Likewise.
14418         * modules/sys_wait (Makefile.am): Likewise.
14419         * modules/sysexits (Makefile.am): Likewise.
14420         * modules/termios (Makefile.am): Likewise.
14421         * modules/time (Makefile.am): Likewise.
14422         * modules/unistd (Makefile.am): Likewise.
14423         * modules/wchar (Makefile.am): Likewise.
14424         * modules/wctype (Makefile.am): Likewise.
14425
14426 2010-10-04  Bruno Haible  <bruno@clisp.org>
14427
14428         read-file tests: Avoid a test failure on NonStop Kernel.
14429         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
14430         a regular file.
14431         Reported by Joachim Schmitz <schmitz@hp.com>.
14432
14433 2010-10-03  Bruno Haible  <bruno@clisp.org>
14434
14435         gnulib-tool: Fixes for --create-testdir with --libtool.
14436         * gnulib-tool (func_get_automake_snippet): Don't augment
14437         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
14438         an executable.
14439         (func_create_testdir): Handle module 'alloca' like func_import.
14440         Reported by Bruce Korb <bruce.korb@gmail.com>.
14441
14442 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
14443
14444         Avoid some lines longer than 80 characters.
14445         * lib/stdint.in.h: Break long comment lines.
14446         * lib/math.in.h: Likewise.
14447         (_GL_NUM_UINT_WORDS): New macro, for readability.
14448         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
14449         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
14450         * lib/stdlib.in.h: Likewise.
14451         * lib/spawn.in.h: Likewise.
14452         * lib/sys_socket.in.h: Update an URL.
14453         * lib/sys_stat.in.h: Break long line.
14454
14455 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
14456
14457         Improve pmccabe2html.
14458         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
14459         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
14460         when the sources change. Remove the line in the HTML about "Used
14461         ranges" (which implied that there might be other unused ranges),
14462         rename "Resume" to "Summary" (easier to understand for more users).
14463         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
14464         styles, and some unnecessary blank lines.
14465
14466 2010-10-03  Bruno Haible  <bruno@clisp.org>
14467             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
14468
14469         acl: Add support for ACLs on NonStop Kernel.
14470         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
14471         Check whether the function aclsort() exists.
14472         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
14473         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
14474         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
14475         (acl_nontrivial [HAVE_ACLSORT]: New function.
14476         (file_has_acl): Implement for NonStop Kernel.
14477         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
14478         (qset_acl): Implement for NonStop Kernel.
14479         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
14480         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
14481         (main): Implement for NonStop Kernel.
14482         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
14483         Kernel. Handle this flavor.
14484         * tests/test-set-mode-acl.sh: Likewise.
14485         * tests/test-copy-acl.sh: Likewise.
14486         * tests/test-copy-file.sh: Likewise.
14487
14488 2010-10-03  Bruno Haible  <bruno@clisp.org>
14489
14490         Info about ACLs on NonStop Kernel.
14491         * doc/acl-resources.txt: Add info about NonStop Kernel.
14492         References by Joachim Schmitz <schmitz@hp.com>.
14493
14494 2010-10-02  Bruno Haible  <bruno@clisp.org>
14495
14496         Define missing EDQUOT on NonStop Kernel.
14497         * lib/errno.in.h (EDQUOT): Assign a value if missing.
14498         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
14499         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
14500         missing.
14501         * doc/posix-headers/errno.texi: Mention the NSK bug.
14502         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
14503         Reported by Joachim Schmitz <schmitz@hp.com>.
14504
14505 2010-10-02  Bruno Haible  <bruno@clisp.org>
14506
14507         Update doc for POSIX:2008.
14508         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
14509         Update URL of POSIX specification.
14510
14511 2010-10-02  Bruno Haible  <bruno@clisp.org>
14512
14513         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
14514         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
14515         from gnulib, not from Automake.
14516
14517 2010-10-02  Bruno Haible  <bruno@clisp.org>
14518
14519         New module 'system-posix'.
14520         * modules/system-posix: New file.
14521         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
14522         module is present.
14523         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
14524         GNULIB_SYSTEM_POSIX.
14525         * modules/stdlib (Depends-on): Remove sys_wait.
14526         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
14527         * doc/posix-functions/system.texi: Mention the new module.
14528         * doc/posix-headers/stdlib.texi: Likewise.
14529         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
14530         define test_sys_wait_macros to a no-op.
14531         Reported by Sam Steingold <sds@gnu.org>.
14532
14533 2010-09-30  Bruno Haible  <bruno@clisp.org>
14534
14535         More renaming from 'getdate' to 'get_date'.
14536         * doc/get_date.texi: Renamed from doc/getdate.texi.
14537         * modules/get_date (Files): Update.
14538         * MODULES.html.sh (Date and time <time.h>): Update.
14539         * DEPENDENCIES: Update.
14540         * gnulib-tool: Update comment.
14541         * m4/bison.m4 (gl_BISON): Likewise.
14542         * m4/get_date.m4 (gl_GET_DATE): Likewise.
14543
14544 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
14545
14546         bootstrap: support ACLOCAL_FLAGS during aclocal
14547         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
14548         can add additional -I dir for third-party .m4 files.
14549
14550 2010-09-30  Eric Blake  <eblake@redhat.com>
14551
14552         bootstrap: use glibtoolize on MacOS
14553         * build-aux/bootstrap (check_versions): Convert libtool into
14554         libtoolize.
14555         (tool search): Move libtool check earlier, and look for
14556         glibtoolize for MacOS.
14557         (gnulib_tool_options): Auto-add --libtool when appropriate.
14558         Reported by Justin Clift.
14559
14560         poll: fix typo that broke test on MacOS
14561         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
14562         Reported by Justin Clift.
14563
14564         getdate: rename to get_date
14565         Note: getdate.h is not renamed, to minimize client impact.
14566         * modules/getdate: Mark obsolete.  Move old contents...
14567         * modules/get_date: ...to new module name.
14568         * modules/getdate-tests: Move...
14569         * modules/get_date-tests: ...here.
14570         * m4/getdate.m4: Move...
14571         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
14572         * lib/getdate.y: Move...
14573         * lib/get_date.y: ...here.
14574         * tests/test-getdate.c: Move...
14575         * tests/test-get_date.c: ...here.
14576         * doc/posix-functions/getdate.texi (getdate): Update name.
14577         * NEWS: Mention the change.
14578
14579 2010-09-29  Bruno Haible  <bruno@clisp.org>
14580
14581         Separate the module 'waitpid' from the module 'sys_wait'.
14582         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
14583         present.
14584         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
14585         gl_MODULE_INDICATOR_FOR_TESTS.
14586         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
14587         * modules/sys_wait (Depends-on): Remove waitpid.
14588         (Makefile.am): Substitute GNULIB_WAITPID.
14589         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
14590         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
14591         signature only if the 'waitpid' module is present.
14592         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
14593         * NEWS: Mention the change.
14594         * modules/grantpt (Depends-on): Add waitpid.
14595         * modules/wait-process (Depends-on): Likewise.
14596
14597 2010-09-29  Bruno Haible  <bruno@clisp.org>
14598
14599         More tests for module 'sys_wait'.
14600         * modules/sys_wait-c++-tests: New file.
14601         * tests/test-sys_wait-c++.cc: New file.
14602         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
14603         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
14604
14605 2010-09-29  Bruno Haible  <bruno@clisp.org>
14606
14607         New module 'waitpid'.
14608         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
14609         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
14610         Don't include <process.h>.
14611         (waitpid): Declare only, using modern idiom.
14612         * m4/waitpid.m4: New file.
14613         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
14614         * modules/waitpid: New file.
14615         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
14616         (Makefile.am): Update.
14617         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
14618
14619 2010-09-28  Bruno Haible  <bruno@clisp.org>
14620
14621         poll: Assume ANSI C.
14622         * lib/poll.c (poll): Use an ANSI C declaration.
14623
14624 2010-09-28  Bruno Haible  <bruno@clisp.org>
14625
14626         poll-h: Create poll.h on all platforms.
14627         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
14628         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
14629         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
14630         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
14631         (gl_REPLACE_POLL_H): Don't set POLL_H.
14632         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
14633         * modules/poll-h (Depends-on): Add include_next.
14634         (Makefile.am): Create poll.h unconditionally. Substitute also
14635         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
14636
14637 2010-09-28  Bruno Haible  <bruno@clisp.org>
14638
14639         Tests for module 'poll-h'.
14640         * modules/poll-h-c++-tests: New file.
14641         * tests/test-poll-h-c++.cc: New file.
14642
14643         Tests for module 'poll-h'.
14644         * modules/poll-h-tests: New file.
14645         * tests/test-poll-h.c: New file.
14646
14647 2010-09-28  Bruno Haible  <bruno@clisp.org>
14648
14649         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
14650         * modules/poll-h (Depends-on): Add 'extensions'.
14651
14652 2010-09-28  Bruno Haible  <bruno@clisp.org>
14653
14654         New module 'poll-h'.
14655         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
14656         (poll): Use modern idiom.
14657         * modules/poll-h: New file.
14658         * modules/poll (Files): Remove lib/poll.in.h.
14659         (Depends-on): Add poll-h.
14660         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
14661         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
14662         * m4/poll_h.m4: New file.
14663         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
14664         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
14665         and invoke gl_REPLACE_POLL_H.
14666         * lib/poll.c: Use common idiom.
14667         * tests/test-poll.c: Likewise.
14668         * doc/posix-headers/poll.texi: Mention the poll-h module.
14669         Suggested by Eric Blake.
14670
14671 2010-09-26  Bruno Haible  <bruno@clisp.org>
14672
14673         sys_wait: Implement WSTOPSIG.
14674         * lib/sys_wait.in.h (WSTOPSIG): New macro.
14675         Reported by Simon Josefsson.
14676
14677 2010-09-26  Simon Josefsson  <simon@josefsson.org>
14678
14679         stdlib, sys_wait: Avoid compilation error on mingw.
14680         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
14681
14682 2010-09-26  Bruno Haible  <bruno@clisp.org>
14683
14684         stdlib tests: Avoid code duplication.
14685         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
14686         * modules/sys_wait-tests (Files): Likewise.
14687         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
14688         * tests/test-stdlib.c: Include test-sys_wait.h.
14689         (main): Invoke test_sys_wait_macros.
14690         * tests/test-sys_wait.c: Include test-sys_wait.h.
14691         (main): Invoke test_sys_wait_macros.
14692
14693 2010-09-25  Simon Josefsson  <simon@josefsson.org>
14694
14695         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
14696         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
14697         sure Windows sockets are working before calling getaddrinfo.
14698         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
14699         * doc/gnulib.texi (Windows sockets): Fix typo.
14700
14701 2010-09-25  Bruno Haible  <bruno@clisp.org>
14702
14703         Tests for module 'regex-quote'.
14704         * modules/regex-quote-tests: New file.
14705         * tests/test-regex-quote.c: New file.
14706
14707         New module 'regex-quote'.
14708         * lib/regex-quote.h: New file.
14709         * lib/regex-quote.c: New file.
14710         * modules/regex-quote: New file.
14711         Suggested by Reuben Thomas <rrt@sc3d.org>.
14712
14713 2010-09-24  Bruno Haible  <bruno@clisp.org>
14714
14715         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
14716         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
14717
14718 2010-09-23  Bruno Haible  <bruno@clisp.org>
14719
14720         setenv: Relax license.
14721         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
14722         Blake.
14723         Requested by Eric Blake.
14724
14725 2010-09-22  Bruno Haible  <bruno@clisp.org>
14726
14727         termios: Relax license.
14728         * modules/termios (License): Change to LGPLv2+.
14729         Requested by Eric Blake.
14730
14731 2010-09-22  Bruno Haible  <bruno@clisp.org>
14732
14733         threadlib: Allow the package to change the default to 'no'.
14734         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
14735         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
14736         Reported by Paul Eggert.
14737
14738 2010-09-22  Pádraig Brady  <P@draigbrady.com>
14739             Bruno Haible  <bruno@clisp.org>
14740
14741         Fix endless loop in mbmemcasecoll.
14742         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
14743         byte.
14744         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
14745
14746 2010-09-22  Bruno Haible  <bruno@clisp.org>
14747
14748         Tests for module 'memcoll'.
14749         * modules/memcoll-tests: New file.
14750         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
14751
14752         memcoll, xmemcoll: Clarify size vs. length.
14753         * modules/memcoll.c (memcoll0): Clarify specification.
14754         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
14755         passed to collate_error.
14756
14757 2010-09-22  Bruno Haible  <bruno@clisp.org>
14758
14759         Tests for module 'memcasecmp'.
14760         * modules/memcasecmp-tests: New file.
14761         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
14762
14763 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
14764
14765         * lib/pthread.in.h: Add split double-inclusion guard, and include
14766         system <pthread.h> if there is one.  Use @@-style as in other
14767         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
14768         pthread.h doesn't.
14769         (pthread_mutexattr_destroy, pthread_mutexattr_init):
14770         (pthread_mutexattr_settype, pthread_mutex_trylock):
14771         New static inline functions, if there's no system <pthread.h>.
14772         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
14773         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
14774         Approximate with mutexes if the system lacks spinlocks, as in
14775         MacOS.
14776         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
14777         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
14778         @@-style.  Check for spinlocks separately.
14779         (gl_PTHREAD_DEFAULTS): New macro.
14780         * modules/pthread: Redo to use a more typical style for in.h files.
14781
14782 2010-09-21  Eric Blake  <eblake@redhat.com>
14783
14784         net_if: enhance tests
14785         * tests/test-net_if.c (main): Move signature checks earlier.
14786         Print failures to stderr.
14787         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
14788         Document the bug that we do not yet fix.
14789
14790 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
14791
14792         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
14793         about gnulib, not GSS.
14794
14795 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
14796
14797         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
14798         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
14799         for Emacs.
14800         * build-aux/pmccabe2html: Make Makefile.am example code more
14801         cut-and-paste friendly.
14802
14803 2010-09-21  Simon Josefsson  <simon@josefsson.org>
14804
14805         * tests/test-net_if.c: New file.
14806         * modules/net_if-tests: New file.
14807
14808 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
14809
14810         pthread: add pthread_spin_destroy
14811         * lib/pthread.in.h (pthread_spin_destroy): New function.
14812
14813 2010-09-19  Bruno Haible  <bruno@clisp.org>
14814
14815         gnulib-tool: Fix --help output.
14816         * gnulib-tool (func_usage): Fix help message.
14817         Reported by Reuben Thomas <rrt@sc3d.org>.
14818
14819 2010-09-18  Jim Meyering  <meyering@redhat.com>
14820
14821         maint.mk: avoid unexpanded \n in two diagnostics
14822         * top/maint.mk (sc_prohibit_always_true_header_tests):
14823         Don't use a literal \n in a halt=... assignment.  It would not be
14824         expanded, and the two \n bytes would appear in the diagnostic output
14825         rather than the desired newline.  Use halt=$$(printf ... instead.
14826         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
14827
14828 2010-09-18  Bruno Haible  <bruno@clisp.org>
14829
14830         netinet_in: Doc tweak.
14831         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
14832         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14833
14834 2010-09-18  Jim Meyering  <meyering@redhat.com>
14835
14836         init.sh: correct an outdated comment
14837         * tests/init.sh (create_exe_shims_):  s/function/alias/
14838
14839         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
14840         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
14841         a file named "*.exe" is removed between the glob expansion and the
14842         processing of that oddly named file.
14843
14844 2010-09-17  Eric Blake  <eblake@redhat.com>
14845
14846         mirbsd: add some more support
14847         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
14848         in BSD family.
14849         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
14850         devices as OpenBSD.
14851         * m4/host-os.m4 (mirbsd): Add MirBSD.
14852
14853         tests: fix unportable assumption on sys/wait.h
14854         * tests/test-sys_wait.c (main): Relax test.
14855         * tests/test-stdlib.c (main): Likewise.
14856
14857         init.sh: accomodate directory with no .exes
14858         * tests/init.sh: Accomodate directory containing only scripts.
14859
14860         tests: avoid compiler warning
14861         * tests/test-stdlib.c (main): Use the variable.
14862
14863         fdutimens, fdutimensat: update signature, again
14864         * lib/utimens.h (gl_futimens): Delete, and move signature...
14865         (fdutimens): ...here.
14866         (fdutimensat): Rearrange signature.
14867         (lutimensat): Rename variable for clarity.
14868         * lib/fdutimensat.c (fdutimensat): Update signature.
14869         * lib/utimens.c (fdutimens): Likewise.
14870         (gl_futimens): Delete.
14871         (utimens, lutimens): Update callers.
14872         * lib/futimens.c (futimens): Likewise.
14873         * tests/test-fdutimensat.c: Likewise.
14874         * tests/test-utimens.c: Likewise.
14875         * tests/test-futimens.h: Update comment.
14876         * NEWS: Mention this.
14877         Suggested by Paul Eggert.
14878
14879 2010-09-17  Bruno Haible  <bruno@clisp.org>
14880
14881         Take over the maintenance of some older macros from Autoconf.
14882         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
14883         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
14884         GNU Autoconf.
14885         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
14886         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
14887
14888 2010-09-17  Eric Blake  <eblake@redhat.com>
14889
14890         fdutimensat: drop atflag validation
14891         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
14892         with valid fd, to close a race scenario where futimens is
14893         unsupported and FILE was replaced by a symlink.
14894         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
14895         accordingly.
14896         Suggested by Paul Eggert.
14897
14898 2010-09-16  Bruno Haible  <bruno@clisp.org>
14899
14900         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
14901         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
14902
14903 2010-09-16  Bruno Haible  <bruno@clisp.org>
14904
14905         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
14906         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
14907         login_tty exists.
14908         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14909
14910 2010-09-16  Bruno Haible  <bruno@clisp.org>
14911
14912         login_tty: Make the replacement code work on BSD systems.
14913         * lib/login_tty.c: Include <sys/ioctl.h>.
14914         (login_tty): Use ioctl TIOCSCTTY when available.
14915         * modules/login_tty (Depends-on): Add sys_ioctl.
14916         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14917
14918 2010-09-16  Bruno Haible  <bruno@clisp.org>
14919
14920         login_tty: Stricter unit test.
14921         * modules/login_tty-tests (Depends-on): Add tcgetsid.
14922         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
14923         and tcgetsid() after login_tty.
14924         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14925
14926 2010-09-16  Bruno Haible  <bruno@clisp.org>
14927
14928         New module 'tcgetsid'.
14929         * lib/tcgetsid.c: New file.
14930         * m4/tcgetsid.m4: New file.
14931         * modules/tcgetsid: New file.
14932         * modules/termios (Depends-on): Add c++defs, warn-on-use.
14933         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
14934         GNULIB_TCGETSID, HAVE_TCGETSID.
14935         * lib/termios.in.h: Include <sys/types.h>.
14936         (tcgetsid): New declaration.
14937         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
14938         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
14939         * doc/posix-functions/tcgetsid.texi: Mention the new module.
14940         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
14941
14942 2010-09-16  Bruno Haible  <bruno@clisp.org>
14943
14944         Tests for module 'termios'.
14945         * modules/termios-c++-tests: New file.
14946         * modules/termios-tests: New file.
14947         * tests/test-termios-c++.cc: New file.
14948         * tests/test-termios.c: New file.
14949
14950         New module 'termios'.
14951         * modules/termios: New file.
14952         * lib/termios.in.h: New file.
14953         * m4/termios_h.m4: New file.
14954         * doc/posix-headers/termios.texi: Mention the new module.
14955
14956 2010-09-16  Eric Blake  <eblake@redhat.com>
14957
14958         fdutimensat: add an atflag parameter
14959         * lib/fdutimensat.c (fdutimensat): Add new parameter.
14960         * lib/utimens.h (fdutimensat): Update prototype.
14961         * tests/test-fdutimensat.c: Adjust test to match.
14962         * NEWS: Document the change.
14963         Suggested by Paul Eggert.
14964
14965 2010-09-16  Bruno Haible  <bruno@clisp.org>
14966
14967         Fix typos in comments.
14968         * lib/striconveh.h: Fix typo in comment.
14969         * lib/login_tty.c (login_tty): Likewise.
14970
14971 2010-09-15  Bruno Haible  <bruno@clisp.org>
14972
14973         stdlib: clarify MirBSD WEXITSTATUS bug
14974         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
14975         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
14976
14977 2010-09-15  Eric Blake  <eblake@redhat.com>
14978
14979         stdlib: work around MirBSD WEXITSTATUS bug
14980         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
14981         * modules/stdlib (Depends-on): Add sys_wait.
14982         * tests/test-sys_wait.c (main): Enhance test.
14983         * tests/test-stdlib.c (main): Likewise.
14984         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
14985
14986         docs: mention MacOS issue with WEXITSTATUS(constant)
14987         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
14988         issue.
14989         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
14990
14991         strnlen: add tests
14992         * modules/strnlen-tests: New file.
14993         * tests/test-strnlen.c: Likewise.
14994
14995 2010-09-14  Bruno Haible  <bruno@clisp.org>
14996
14997         unistr/base: Avoid link errors when module 'libunistring' is also used.
14998         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
14999         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
15000         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
15001         Declare also when HAVE_LIBUNISTRING is set.
15002         Reported by Pádraig Brady <P@draigbrady.com>.
15003
15004 2010-09-14  Eric Blake  <eblake@redhat.com>
15005
15006         test-rawmemchr: make more robust
15007         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
15008         (Depends-on, configure.ac): Add needed prerequisites to use it.
15009         * modules/memchr-tests (Files, Depends-on, configure.ac):
15010         Likewise, to avoid implicit reliance on memchr module prereqs.
15011         * tests/test-memchr.c (main): Ensure proper masking.
15012         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
15013         reads.
15014
15015         memchr: detect glibc Alpha bug
15016         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
15017         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
15018         Alpha.
15019         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
15020         * tests/test-memchr.c (main): Enhance test.
15021         Reported by Nelson H. F. Beebe.
15022
15023 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
15024
15025         fts, getcwd, glob: audit for dirfd returning -1
15026         * lib/fts.c (opendir): Remove #define; no longer used.
15027         (opendirat): New arg PDIR_FD.  All callers changed.
15028         (fts_build, _opendir2): Use new opendirat to avoid the need for
15029         dirfd, or for checking whether dirfd returns a negative value.
15030         Don't use opendir; always use openat followed by fdopendir.
15031         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
15032         it.
15033         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
15034         returns -1 here.
15035         * modules/fts (Depends-on): Remove dirfd.
15036         * modules/getcwd (Depends-on): Likewise.
15037
15038 2010-09-13  Eric Blake  <eblake@redhat.com>
15039
15040         float: fix broken MirBSD header
15041         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
15042         * doc/posix-headers/float.texi (float.h): Document it.
15043
15044 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
15045
15046         fts: use O_NOFOLLOW to avoid race condition when opening a directory
15047         * lib/fts.c (opendirat): New arg extra_flags.
15048         (__opendir2): Use it to avoid following symlinks when opening
15049         a directory, if symlinks are not supposed to be followed.  See
15050         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
15051
15052         fdopendir: preserve argument fd before returning
15053         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
15054         (fdopendir_with_dup, fd_clone_opendir): New static functions.
15055         (fdopendir): Use them, arranging for FD to be open to the same
15056         directory that it was when it started.  (It might be temporarily
15057         closed while fdopendir is running, so this not thread- or
15058         signal-safe.)  Be careful to do the right thing even when file
15059         descriptors are scarce and dup fails with errno == EMFILE.  See
15060         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
15061
15062 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
15063
15064         regex: Pass the system regex if its only problem is 32-bit regoff_t.
15065         * NEWS: Document change.
15066         * m4/regex.m4: Disable test for regoff_t size.
15067
15068 2010-09-13  Jim Meyering  <meyering@redhat.com>
15069
15070         fts: don't operate on an invalid file descriptor after failed dup
15071         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
15072         negative file descriptor.
15073
15074 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
15075
15076         savedir: add streamsavedir, deprecate fdsavedir
15077         * NEWS: Mention deprecation of fdsavedir.
15078         * lib/savedir.c (streamsavedir): New extern function, whose name
15079         ends in "savedir" to be consistent with the others.  This differs
15080         from savedirstream in that it doesn't close its argument.  The
15081         next version of GNU tar will use this instead of fdsavedir, to
15082         avoid some race conditions and conserve file descriptors.
15083         (savedirstream): Reimplement as a wrapper around streamsavedir.
15084         (fdsavedir): Add a comment deprecating this function.  As far as
15085         I know, only GNU tar used it, and GNU tar doesn't need it any more.
15086         * lib/savedir.h (streamsavedir): New decl.
15087         (fdsavedir): Add a comment deprecating this.
15088
15089 2010-09-10  Bruno Haible  <bruno@clisp.org>
15090
15091         langinfo: Fix last commit.
15092         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
15093         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
15094         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15095
15096 2010-09-10  Bruno Haible  <bruno@clisp.org>
15097
15098         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
15099         * lib/progreloc.c (O_EXEC): Define fallback.
15100
15101 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
15102
15103         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
15104         * NEWS: Document recent changes to fcntl-h.
15105         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
15106         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
15107         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
15108         Similarly for O_SEARCH; this last was already true, but not documented.
15109         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
15110         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
15111         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
15112         Likewise.
15113         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
15114         is zero, not whether it is defined.
15115         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
15116         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
15117         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
15118
15119 2010-09-10  Bruno Haible  <bruno@clisp.org>
15120
15121         langinfo, nl_langinfo: Fix for IRIX 5.3.
15122         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
15123         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
15124         HAVE_LANGINFO_YESEXPR.
15125         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
15126         HAVE_LANGINFO_YESEXPR.
15127         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
15128         HAVE_LANGINFO_T_FMT_AMPM is 0.
15129         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
15130         HAVE_LANGINFO_YESEXPR is 0.
15131         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
15132         NOEXPR.
15133         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
15134         * doc/posix-functions/nl_langinfo.texi: Likewise.
15135         Reported by Eric Blake.
15136
15137 2010-09-10  Bruno Haible  <bruno@clisp.org>
15138
15139         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
15140         * doc/glibc-functions/login_tty.texi: Mention the include file problem
15141         on FreeBSD 8.0 and OpenBSD 4.6.
15142         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
15143         * m4/pty_h.m4 (gl_PTY_H): Likewise.
15144         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
15145         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
15146         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
15147         ac_includes_default.
15148         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
15149
15150 2010-09-09  Eric Blake  <eblake@redhat.com>
15151
15152         strsignal: work around NetBSD bug
15153         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
15154         * lib/string.in.h (includes): Likewise.
15155         * doc/posix-functions/strsignal.texi (strsignal): Document the
15156         bug.
15157         Reported by Nelson H. F. Beebe.
15158
15159         gnulib-tool: work with NetBSD /bin/sh
15160         * gnulib-tool (func_cache_var, func_cache_lookup_module)
15161         (func_get_description, func_get_comment, func_get_status)
15162         (func_get_notice, func_get_applicability, func_get_filelist)
15163         (func_get_dependencies, func_get_autoconf_early_snippet)
15164         (func_get_autoconf_snippet, func_get_automake_snippet)
15165         (func_get_include_directive, func_get_link_directive)
15166         (func_get_license, func_get_maintainer, func_import): Avoid
15167         shell syntax errors from parsing syntax extensions.
15168
15169 2010-09-09  Bruno Haible  <bruno@clisp.org>
15170
15171         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
15172         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
15173         a reliable way to determine whether the 'alias' command works.
15174
15175 2010-09-08  Jim Meyering  <meyering@redhat.com>
15176
15177         init.sh: penalize a set-x-impaired shell; don't disqualify it
15178         * tests/init.sh: Too many shells corrupt application stderr when
15179         you set -x, so we can't afford to disqualify them, since at least
15180         on Irix-6.5, that would disqualify all bourne shells.
15181         Instead, use a two-pass approach.
15182         On the first pass, try to find a shell that meets the stricter
15183         condition that set -x does not corrupt stderr.
15184         If no shell meets the stricter condition, retest each candidate
15185         shell, but without that extra condition.  Finally, when
15186         VERBOSE=yes is requested and set -x might cause trouble, simply
15187         issue a warning and refrain from enabling debug output.
15188
15189 2010-09-08  Eric Blake  <eblake@redhat.com>
15190
15191         unsetenv: fix OpenBSD bug
15192         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
15193         * doc/posix-functions/unsetenv.texi (unsetenv): Update
15194         documentation.
15195         Reported by Jim Meyering.
15196
15197         strtod: work around IRIX 6.5 bug
15198         * lib/strtod.c (strtod): Reparse number on shorter string if
15199         exponent parse was invalid.
15200         * tests/test-strtod.c (main): Add check for "0x1p 2".
15201         Reported by Tom G. Christensen.
15202
15203         getopt: optimize previous patch
15204         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
15205         empty variable.  Speed up awk script.
15206         Reported by Paolo Bonzini.
15207
15208 2010-09-08  Jim Meyering  <meyering@redhat.com>
15209
15210         test.sh: disqualify shells for which set -x corrupts stderr
15211         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
15212         and OpenBSD 4.7.  They make it so with "set -x", environment settings
15213         appear in stderr output.  For example, this command:
15214             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
15215         prints "P=1" on those two systems:
15216
15217 2010-09-08  Bruno Haible  <bruno@clisp.org>
15218
15219         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
15220         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
15221         commands, because some shells ignore redirections when there is an
15222         error in the command lookup.
15223         Reported by Eric Blake.
15224
15225 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
15226
15227         * lib/regex.h: Fix a mention of `regex_compile' (should be
15228         `re_compile_pattern').
15229         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
15230         (re_set_registers): Correct name of parameter in comment.
15231
15232         * doc/regex.texi: Add documentation for missing syntax flags.
15233         Remove commented-out documentation of defunct syntax option
15234         RE_NO_EMPTY_ALTS.
15235         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
15236         Add documentation of re_set_registers.
15237         Document trick to re-use a pattern buffer by setting fastmap manually.
15238         Update documentation of struct re_pattern_buffer per public members.
15239         Uncomment documentation of equivalence class operators and
15240         collating symbol operators, since they are now implemented,
15241         Explain leftmost-longest matching in relation to alternatives.
15242         Tidy documentation of substring matching.
15243         Remove POSIX documentation, which is done better in
15244         glibc, and refer the reader there. Keep BSD API documentation, as
15245         that is not readily available elsewhere.
15246
15247 2010-09-07  Eric Blake  <eblake@redhat.com>
15248
15249         getopt: handle POSIXLY_CORRECT set but not exported
15250         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
15251         export state of POSIXLY_CORRECT, due to bash set -o posix.
15252         Reported by Dustin J. Mitchell.
15253
15254 2010-09-05  Bruno Haible  <bruno@clisp.org>
15255
15256         gnulib-tool: Highlight the changed options.
15257         * gnulib-tool (func_usage): Display the --import, --add-import,
15258         --remove-import explanations in bold font.
15259
15260 2010-09-06  Karl Berry  <karl@gnu.org>
15261
15262         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
15263
15264 2010-09-05  Bruno Haible  <bruno@clisp.org>
15265
15266         uniwidth/width: Update comment.
15267         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
15268         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
15269
15270 2010-09-05  Bruno Haible  <bruno@clisp.org>
15271
15272         isinf, isnan: Relax license.
15273         * modules/isinf (License): Change from GPL to LGPL, with consent from
15274         Ben Pfaff.
15275         * modules/isnan (License): Likewise.
15276         Requested by Ludovic Courtès.
15277
15278 2010-09-04  Bruno Haible  <bruno@clisp.org>
15279
15280         gnulib-tool: Help migration from --import to --add-import or --update.
15281         * gnulib-tool: Emit a verbose error message when --import is used
15282         without any module name.
15283
15284 2010-09-04  Bruno Haible  <bruno@clisp.org>
15285
15286         Update doc about gnulib-tool.
15287         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
15288         'gnulib-tool --update' in more detail.
15289         Reported by Eric Blake.
15290
15291 2010-09-04  Bruno Haible  <bruno@clisp.org>
15292
15293         gnulib-tool: Change --import. New options --add/remove-import.
15294         * gnulib-tool: New options --add-import, --remove-import.
15295         (func_usage): Document them.
15296         (have_associative): Define always.
15297         (func_import): In import mode, don't merge the specified settings with
15298         the cached settings. Implement remove-import mode.
15299         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
15300         Explain when to use them versus --import.
15301         (Simple update): Use --add-import instead of --import.
15302         * NEWS: Mention the change.
15303
15304 2010-09-04  Bruno Haible  <bruno@clisp.org>
15305
15306         * doc/gnulib-tool.texi (Initial import): Update paragraph about
15307         separate gnulib.mk.
15308
15309 2010-09-04  Bruno Haible  <bruno@clisp.org>
15310
15311         gnulib-tool: Don't talk about CVS any more.
15312         * gnulib-tool (func_usage, func_import): Write "version control"
15313         instead of CVS.
15314
15315 2010-09-04  Jim Meyering  <meyering@redhat.com>
15316
15317         maint.mk: avoid obscure sc_copyright_check failure in coreutils
15318         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
15319         false positives (whose names may be ill-chosen) when searching
15320         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
15321         would cause a false-positive.
15322
15323         avoid coreutils "make distcheck" failure
15324         Coreutils tests with an absolute build directory name that contains
15325         a space.  Not quoting this directory name caused a failure.
15326         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
15327         * tests/test-vc-list-files-cvs.sh: Likewise.
15328
15329 2010-09-04  Bruno Haible  <bruno@clisp.org>
15330
15331         gnulib-tool: Avoid error when run in a package without Makefile.am.
15332         * gnulib-tool: When collecting the m4dirs in a package that does not
15333         have a Makefile.am, eliminate those directories that contain no
15334         gnulib-cache.m4. Fix expression that counts these directories.
15335
15336 2010-09-04  Bruno Haible  <bruno@clisp.org>
15337
15338         update-copyright test: Improve output when perl is missing or too old.
15339         * tests/test-update-copyright.sh: Move test of Perl version down after
15340         the test whether Perl exists. Provide an explanation relating Perl's
15341         error message to Automake's SKIP: message.
15342
15343 2010-09-04  Bruno Haible  <bruno@clisp.org>
15344
15345         Don't augment PATH in TESTS_ENVIRONMENT.
15346         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
15347         set abs_aux_dir instead of augmenting PATH.
15348         * modules/vc-list-files-tests (Makefile.am): Likewise.
15349         * tests/test-update-copyright.sh: Augment PATH here.
15350         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
15351         path_prepend_.
15352         * tests/test-vc-list-files-git.sh: Likewise.
15353
15354 2010-09-04  Jim Meyering  <meyering@redhat.com>
15355
15356         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
15357         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
15358
15359 2010-09-04  Bruno Haible  <bruno@clisp.org>
15360
15361         strdup: Fix compilation error in C++ mode.
15362         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
15363         the macro.
15364
15365 2010-09-04  Bruno Haible  <bruno@clisp.org>
15366
15367         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
15368         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
15369         macro into a function.
15370         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15371
15372 2010-09-04  Bruno Haible  <bruno@clisp.org>
15373
15374         Set PATH_SEPARATOR the same way autoconf does.
15375         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
15376         the value of PATH_SEPARATOR the same way autoconf-generated configure
15377         scripts do.
15378         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
15379         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
15380
15381 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
15382
15383         Set PATH_SEPARATOR the same way autoconf does.
15384         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
15385         the same way autoconf-generated configure scripts do.
15386         * posix-modules: Likewise.
15387
15388 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
15389
15390         hash: fix safe_hasher const typo
15391         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
15392         const; otherwise, there is a type error later.
15393
15394 2010-09-02  Jim Meyering  <meyering@redhat.com>
15395
15396         test-update-copyright.sh: require perl 5.8.0
15397         * tests/test-update-copyright.sh: Require 5.8.0,
15398         which Tom G. Christensen has confirmed is adequate,
15399         while 5.6.1 is not.
15400
15401 2010-09-02  Eric Blake  <eblake@redhat.com>
15402
15403         tests: init.sh improvements for re-exec'ing with zsh
15404         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
15405         -vx through shell re-exec.
15406         Reported by Tom G. Christensen.
15407
15408         wctype: fix typo in previous commit
15409         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
15410         Reported by Ludovic Courtès.
15411
15412 2010-09-02  Jim Meyering  <meyering@redhat.com>
15413
15414         test-update-copyright.sh: skip test if Perl is too old
15415         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
15416         Reported by Tom G. Christensen.
15417
15418 2010-09-02  Bruno Haible  <bruno@clisp.org>
15419
15420         wctype: Avoid compilation error on IRIX 6.5.30.
15421         * lib/wctype.in.h (iswblank): Declare with a replacement if
15422         REPLACE_ISWBLANK is set.
15423         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
15424         declared. Set REPLACE_ISWBLANK.
15425         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
15426         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
15427         * doc/posix-headers/wctype.texi: Likewise.
15428         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15429
15430 2010-09-01  Bruno Haible  <bruno@clisp.org>
15431
15432         New module 'socketlib'.
15433         * modules/socketlib: New file.
15434         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
15435         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
15436         * modules/sockets (Depends-on): Add socketlib.
15437         Suggested by Sam Steingold <sds@gnu.org>.
15438
15439 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
15440
15441         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
15442
15443         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
15444         when one needs search access to a directory but not read access.
15445         On systems where it is available, it works in some cases where
15446         O_RDONLY does not, namely on directories that are searchable but
15447         not readable, and which need only to be searchable.  If O_SEARCH
15448         is not available, fall back to the traditional method of using
15449         O_RDONLY.
15450
15451         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
15452         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
15453         when opening a directory that needs only to be searchable.
15454         * lib/chdir-safer.c (chdir_no_follow): Likewise.
15455         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
15456         * lib/openat-proc.c (openat_proc_name): Likewise.
15457         * lib/openat.c (openat_needs_fchdir): Likewise.
15458         * lib/save-cwd.c (save_cwd): Likewise.
15459         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
15460
15461 2010-08-28  Bruno Haible  <bruno@clisp.org>
15462
15463         New module 'host-cpu-c-abi'.
15464         * modules/host-cpu-c-abi: New file.
15465         * m4/host-cpu-c-abi.m4: New file, based on part of
15466         clisp/src/m4/general.m4.
15467         Requested by Sam Steingold <sds@gnu.org>.
15468
15469 2010-08-31  Eric Blake  <eblake@redhat.com>
15470         and Jim Meyering  <meyering@redhat.com>
15471
15472         hash: factor, and guard against misbehaving hasher function
15473         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
15474         of table->hasher's return value.  Also protect against a hash value
15475         so large that adding it to table->bucket results in a NULL pointer.
15476         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
15477         Use it in place of open-coded check-and-abort.
15478
15479 2010-08-30  Bruno Haible  <bruno@clisp.org>
15480
15481         hash: silence spurious clang warning
15482         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
15483         Reported by Eric Blake.
15484
15485 2010-08-30  Eric Blake  <eblake@redhat.com>
15486
15487         strstr, memmem, strcasestr: avoid leaked shell message
15488         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
15489         FreeBSD.
15490         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
15491         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
15492
15493         tests: silence clang warning
15494         * tests/test-malloca.c (do_allocation): Avoid dead store.
15495
15496 2010-08-29  Bruno Haible  <bruno@clisp.org>
15497
15498         gettext: Fix recent mistake.
15499         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
15500
15501 2010-08-29  Bruno Haible  <bruno@clisp.org>
15502
15503         selinux-h: Offer a --without-selinux option.
15504         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
15505         --without-selinux was specified, skip all tests and define
15506         HAVE_SELINUX_SELINUX_H to 0.
15507         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
15508         set LIB_SELINUX to empty.
15509         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
15510         gl_LIBSELINUX. If --without-selinux was specified, replace
15511         selinux/context.h.
15512         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
15513
15514 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15515             Bruno Haible  <bruno@clisp.org>
15516
15517         Make the module 'realloc-gnu' work again on AIX and OSF/1.
15518         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
15519         of HAVE_REALLOC.
15520         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
15521         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
15522         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
15523         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
15524
15525 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15526             Bruno Haible  <bruno@clisp.org>
15527
15528         Make the module 'calloc-gnu' work again on AIX and OSF/1.
15529         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
15530         HAVE_CALLOC.
15531         * lib/xmalloc.c: Update accordingly.
15532         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
15533         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
15534         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
15535
15536 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15537             Bruno Haible  <bruno@clisp.org>
15538
15539         Make the module 'malloc-gnu' work again on AIX and OSF/1.
15540         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
15541         HAVE_MALLOC.
15542         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
15543         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
15544         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
15545
15546 2010-08-29  Bruno Haible  <bruno@clisp.org>
15547
15548         Update modules list.
15549         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
15550         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
15551         (String handling <string.h>): Add astrxfrm.
15552         (File system functions): Add readlinkat.
15553
15554 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15555
15556         Tests for module 'realloc-gnu'.
15557         * modules/realloc-gnu-tests: New file.
15558         * tests/test-realloc-gnu.c: New file.
15559
15560         Tests for module 'calloc-gnu'.
15561         * modules/calloc-gnu-tests: New file.
15562         * tests/test-calloc-gnu.c: New file.
15563
15564         Tests for module 'malloc-gnu'.
15565         * modules/malloc-gnu-tests: New file.
15566         * tests/test-malloc-gnu.c: New file.
15567
15568 2010-08-28  Bruno Haible  <bruno@clisp.org>
15569
15570         Rename module 'realloc' -> 'realloc-gnu'.
15571         * modules/realloc-gnu: New file, copied from modules/realloc.
15572         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
15573         obsolete.
15574         * modules/mgetgroups (Depends-on): Update.
15575         * doc/posix-functions/realloc.texi: Update.
15576         * NEWS: Mention the change.
15577
15578         Rename module 'calloc' -> 'calloc-gnu'.
15579         * modules/calloc-gnu: New file, copied from modules/calloc.
15580         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
15581         obsolete.
15582         * doc/posix-functions/calloc.texi: Update.
15583         * NEWS: Mention the change.
15584
15585         Rename module 'malloc' -> 'malloc-gnu'.
15586         * modules/malloc-gnu: New file, copied from modules/malloc.
15587         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
15588         obsolete.
15589         * modules/argp (Depends-on): Update.
15590         * modules/regex (Depends-on): Update.
15591         * doc/posix-functions/malloc.texi: Update.
15592         * NEWS: Mention the change.
15593
15594 2010-08-28  Eric Blake  <eblake@redhat.com>
15595
15596         pread, pwrite: add missing dependency
15597         * modules/pread (Depends-on): Add extensions.
15598         * modules/pwrite (Depends-on): Likewise.
15599
15600 2010-08-28  Bruno Haible  <bruno@clisp.org>
15601
15602         unistr/u*-strchr: Fix tests dependencies.
15603         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
15604         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
15605         Reported by Ian Beckwith <ianb@erislabs.net>.
15606
15607 2010-08-28  Bruno Haible  <bruno@clisp.org>
15608
15609         read-file: Don't occupy too much unused memory.
15610         * lib/read-file.c (fread_file): Shrink the buffer at the end.
15611
15612 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
15613             Eric Blake  <eblake@redhat.com>
15614             Bruno Haible  <bruno@clisp.org>
15615
15616         read-file: Avoid memory reallocations with regular files.
15617         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
15618         (fread_file): With regular files, use the remaining length as the
15619         initial buffer size.  Check against overflow.
15620         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
15621         sys_stat.
15622
15623 2010-08-28  Bruno Haible  <bruno@clisp.org>
15624
15625         ftello: Relax license.
15626         * modules/ftello (License): Relax to LGPLv2+.
15627         Reported by Eric Blake.
15628
15629 2010-08-28  Bruno Haible  <bruno@clisp.org>
15630
15631         Avoid relocwrapper link errors due to gnulib replacement functions.
15632         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
15633         function.
15634         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15635
15636 2010-08-28  Bruno Haible  <bruno@clisp.org>
15637
15638         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
15639         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
15640         defined.
15641         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
15642         Suggested by Eric Blake.
15643
15644 2010-08-28  Bruno Haible  <bruno@clisp.org>
15645
15646         sys_socket, netdb: Ensure socklen_t gets defined.
15647         * modules/sys_socket (Depends-on): Add socklen.
15648         * modules/netdb (Depends-on): Likewise.
15649         * modules/getaddrinfo (Depends-on): Remove socklen.
15650         * modules/getsockopt (Depends-on): Likewise.
15651         * modules/setsockopt (Depends-on): Likewise.
15652         * tests/test-sys_socket.c: Check that socklen_t is defined.
15653         * tests/test-netdb.c: Likewise.
15654         * m4/socklen.m4: Update comments.
15655         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15656
15657 2010-08-27  Eric Blake  <eblake@redhat.com>
15658
15659         login_tty: add missing dependency
15660         * modules/login_tty (Depends-on): Add pty.
15661
15662 2010-08-26  Eric Blake  <eblake@redhat.com>
15663
15664         lib-symbol-versions: fix m4 quoting
15665         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
15666         format for AC_LINK_IFELSE.
15667
15668         glob: fix compile test
15669         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
15670
15671         btowc: fix missing file
15672         * modules/btowc (Files): Also ship locale-fr.m4.
15673
15674         lseek: fix link test
15675         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
15676         AC_LINK_IFELSE.
15677
15678         include_next: silence autoconf 2.68 warning
15679         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
15680         AC_COMPILE_IFELSE as special.
15681         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
15682         autoconf < 2.68.
15683
15684         acl: fix compilation test
15685         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
15686         AC_COMPILE_IFELSE.
15687
15688 2010-08-26  Bruno Haible  <bruno@clisp.org>
15689
15690         Modernize AC_TRY_RUN invocations.
15691         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
15692         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
15693         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
15694         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
15695         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
15696         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
15697         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
15698         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
15699         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
15700         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
15701         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
15702         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
15703         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
15704         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15705         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
15706         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
15707         gl_MBRLEN_NUL_RETVAL): Likewise.
15708         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
15709         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
15710         Likewise.
15711         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
15712         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
15713         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
15714         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
15715         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
15716         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
15717         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
15718         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
15719         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
15720         Likewise.
15721         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
15722         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
15723         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15724         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
15725         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15726         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
15727         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
15728         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
15729         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
15730         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15731
15732 2010-08-26  Bruno Haible  <bruno@clisp.org>
15733
15734         Modernize AC_TRY_LINK invocations.
15735         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
15736         AC_TRY_LINK.
15737         * m4/argp.m4 (gl_ARGP): Likewise.
15738         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
15739         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
15740         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
15741         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
15742         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
15743         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
15744         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
15745         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
15746         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
15747         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
15748         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
15749         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
15750         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
15751         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
15752         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
15753         * m4/hostent.m4 (gl_HOSTENT): Likewise.
15754         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
15755         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
15756         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
15757         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
15758         Likewise.
15759         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
15760         Likewise.
15761         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
15762         Likewise.
15763         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
15764         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
15765         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
15766         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
15767         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
15768         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
15769         * m4/servent.m4 (gl_SERVENT): Likewise.
15770         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
15771         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
15772         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
15773         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
15774         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
15775         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15776         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15777         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15778         * modules/tsearch-tests (configure.ac): Likewise.
15779
15780 2010-08-26  Bruno Haible  <bruno@clisp.org>
15781
15782         Modernize AC_TRY_COMPILE invocations.
15783         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
15784         AC_TRY_COMPILE.
15785         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
15786         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
15787         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
15788         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
15789         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
15790         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
15791         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
15792         * m4/lock.m4 (gl_LOCK): Likewise.
15793         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
15794         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
15795         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
15796         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
15797         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
15798         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
15799         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
15800         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
15801         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
15802         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
15803         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
15804         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
15805         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
15806         extraneous semicolon.
15807
15808 2010-08-26  Jim Meyering  <meyering@redhat.com>
15809
15810         stat-time: relax license LGPL
15811         * modules/stat-time (License): Change from GPL to LGPL,
15812         with consent from all contributors, for use in libguile.
15813         Requested by Ludovic Courtès.
15814
15815 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
15816
15817         poll: return immediately on POLLHUP.
15818         * lib/poll.c (poll): Always set timeout before wait_timeout is
15819         computed.
15820
15821 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15822
15823         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
15824         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
15825         rmdir ("dir/.//"), unlinkat.
15826
15827 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
15828
15829         stdbool: avoid spurious failure with modern xlc
15830         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
15831
15832 2010-08-24  Bruno Haible  <bruno@clisp.org>
15833
15834         getloadavg: simplify code
15835         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
15836         gl_have_func. Update comments.
15837
15838 2010-08-24  Eric Blake  <eblake@redhat.com>
15839
15840         getloadavg: don't define SVR4 on cygwin
15841         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
15842         only define SVR4 when -lkvm is required.
15843         Reported by Yaakov Selkowitz.
15844
15845 2010-08-24  Bruno Haible  <bruno@clisp.org>
15846
15847         priv-set: fix comment
15848         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
15849
15850 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
15851
15852         priv-set: fix comments
15853         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
15854         to match code, as suggested by David Bartley in:
15855         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
15856
15857 2010-08-23  Eric Blake  <eblake@redhat.com>
15858
15859         stdbool: avoid rejecting clang
15860         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
15861         * tests/test-stdbool.c: Enable more tests if using the system
15862         <stdbool.h> instead of the gnulib replacement.
15863         (main): Move xlc bug test to a runtime test for all compilers.
15864         Reported by Anders Kaseorg.
15865
15866         argz: fix shell quoting issue
15867         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
15868         Reported by Charles Wilson.
15869
15870 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
15871             Erik Faye-Lund <kusmabite@gmail.com>
15872
15873         poll, select: handle ERROR_BROKEN_PIPE.
15874         * lib/poll.c (win32_compute_revents): Return POLLHUP when
15875         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
15876         * lib/select.c (win32_compute_revents): Do not mark a pipe
15877         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
15878
15879 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
15880
15881         fts: allow compilation with C++
15882         * lib/fts_.h: Specify extern "C" linkage with C++.
15883
15884 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15885
15886         Fix gnulib-tool sed script de-commentation for AIX sed.
15887         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
15888         sed.
15889
15890 2010-08-17  Eric Blake  <eblake@redhat.com>
15891
15892         test-stddef: test for (some) offsetof bugs
15893         * tests/test-stddef.c: Enhance test to ensure correct type of
15894         offsetof.
15895         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
15896         that we are not fixing at this time.
15897
15898 2010-08-15  Bruno Haible  <bruno@clisp.org>
15899
15900         stpncpy: Allow stpncpy to be defined as a macro.
15901         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
15902         if it's already correctly declared.
15903         * lib/string.in.h (stpncpy): Undefine before redefining.
15904         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
15905
15906 2010-08-14  Bruno Haible  <bruno@clisp.org>
15907
15908         Rename module 'memxfrm' to 'amemxfrm'.
15909         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
15910         (amemxfrm): Renamed from memxfrm.
15911         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
15912         (amemxfrm): Renamed from memxfrm.
15913         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
15914         * NEWS: Mention the change.
15915         * MODULES.html.sh (String handling <string.h>): Update.
15916         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
15917         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
15918         * lib/unicase/u16-casexfrm.c: Likewise.
15919         * lib/unicase/u32-casexfrm.c: Likewise.
15920         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
15921         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
15922         * lib/uninorm/u16-normxfrm.c: Likewise.
15923         * lib/uninorm/u32-normxfrm.c: Likewise.
15924         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
15925         memxfrm.
15926         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
15927         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
15928         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
15929         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
15930         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
15931         Suggested by Paul Eggert.
15932
15933 2010-08-14  Bruno Haible  <bruno@clisp.org>
15934
15935         Tests for module 'astrxfrm'.
15936         * modules/astrxfrm-tests: New file.
15937         * tests/test-astrxfrm.c: New file.
15938
15939         New module 'astrxfrm'.
15940         * lib/astrxfrm.h: New file.
15941         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
15942         * modules/astrxfrm: New file.
15943
15944 2010-08-14  Reuben Thomas <rrt@sc3d.org>
15945
15946         regex: Tweak doc.
15947         * doc/regex.texi (Overview): Don't mention regex.c.
15948         (GNU Regular Expression Compiling): Likewise.
15949         (Match-end-of-line Operator): Mention 'not_eol'.
15950
15951 2010-08-14  Brian Gough  <bjg@gnu.org>
15952             Bruno Haible  <bruno@clisp.org>
15953
15954         git-merge-changelog: add doc relating to use with bzr and hg.
15955         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
15956
15957 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
15958
15959         pthread: fix pthread.h creation for srcdir != builddir
15960         * modules/pthread (Makefile.am): Fix the rule to work also in a
15961         non-srcdir build.
15962
15963 2010-08-13  Karl Berry  <karl@gnu.org>
15964
15965         * doc/regex.texi (Predefined Syntaxes): @smallexample.
15966         * doc/posix-*/*: force line break before @url of POSIX
15967         specifications.
15968         Suggested by Werner Lemberg.
15969
15970 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
15971
15972         strtod: fix const diagnostic
15973         * lib/strtod.c (strtod): Don't assign const char * to char *,
15974         as this elicits a warning from GCC when warnings are enabled.
15975
15976 2010-08-10  Pádraig Brady <P@draigbrady.com>
15977         and Eric Blake  <eblake@redhat.com>
15978
15979         copy-acl: ignore ENOTSUP on HP-UX
15980         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
15981         so that it is available for HP-UX.
15982         * lib/copy-acl.c (qcopy_acl): Use it.
15983         Reported by Patrick M. Callahan.
15984
15985 2010-08-10  Eric Blake  <eblake@redhat.com>
15986
15987         open, chown: relax license
15988         * modules/open (License): Change to LGPLv2+, with consent by all
15989         authors, for use in augeas.
15990         * modules/chown (License): Likewise.
15991         * modules/lchown (Likewise): Likewise.
15992         Requested by Adam Stokes.
15993
15994 2010-08-09  Karl Berry  <karl@gnu.org>
15995
15996         * build-aux/ar-lib: new file, import from Automake.
15997         * config/srclist.txt: autocheck for updates.
15998
15999 2010-08-09  Eric Blake  <eblake@redhat.com>
16000
16001         readlinkat: adjust client modules
16002         * modules/areadlinkat (Depends-on): Use readlinkat, not
16003         symlinkat.
16004         * modules/areadlinkat-with-size (Depends-on): Likewise.
16005
16006         mknod: be more vocal about danger of running tests as root
16007         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
16008         root, since that is just asking for problems.
16009         Suggested by Bruno Haible, based on a report by Rainer Tammer.
16010
16011         readlinkat: split into its own module
16012         * modules/symlinkat: Split readlinkat...
16013         * modules/readlinkat: ...into separate module.
16014         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
16015         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
16016         * lib/symlinkat.c (readlinkat): Move...
16017         * lib/readlinkat.c: ...into new file.
16018         * modules/symlinkat-tests: Split readlinkat test...
16019         * modules/readlinkat-tests: ...into separate module.
16020         * tests/test-symlinkat.c: Split...
16021         * tests/test-readlinkat.c: ...into new file.
16022         * NEWS: Document the split.
16023         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
16024         * lib/unistd.in.h (readlinkat): Likewise.
16025         Suggested by Bruno Haible.
16026
16027 2010-08-08  Bruno Haible  <bruno@clisp.org>
16028
16029         memxfrm: Speed up.
16030         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
16031         that usually only one call to strxfrm is necessary for each string
16032         part.
16033         Reported by Paul Eggert <eggert@cs.ucla.edu>.
16034
16035 2010-08-07  Karl Berry  <karl@gnu.org>
16036
16037         * doc/posix-headers/limits.texi,
16038         * doc/posix-functions/malloc.texi,
16039         * doc/posix-functions/strsignal.texi: missing @item.
16040         * doc/ld-version-script.texi: spurious leading i.
16041         * doc/regex.texi (Interval Operators): no commas inside @var.
16042
16043 2010-08-01  Bruno Haible  <bruno@clisp.org>
16044
16045         Integrate the regex documentation.
16046         * doc/gnulib.texi: Define 'cn' index.
16047         (Regular expressions): New a chapter that includes regex.texi and
16048         regexprops-generic.texi.
16049         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
16050         syntax.
16051
16052         Whitespace cleanup.
16053         * doc/regex.texi: Remove trailing spaces.
16054
16055         Add regex documentation.
16056         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
16057         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
16058         Written by Kathy A. Hargreaves and Karl Berry.
16059
16060 2010-08-01  Bruno Haible  <bruno@clisp.org>
16061
16062         link: Update documentation.
16063         * doc/posix-functions/link.texi: Update regarding Solaris.
16064
16065 2010-07-31  Bruno Haible  <bruno@clisp.org>
16066
16067         Update modules list.
16068         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
16069         (String handling <string.h>): Add memcmp2, memxfrm.
16070         (Container data structures): Add xlist, xsublist, xoset.
16071         (Core language properties): Add alignof, unused-parameter.
16072         (Process control, Numeric conversion functions <stdlib.h>): Renamed
16073         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
16074         (Unibyte characters <ctype.h>): New section.
16075         (String handling <string.h>): New section.
16076         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
16077         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
16078         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
16079         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
16080         tan, tanh, tanl, y0, y1, yn.
16081         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
16082         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
16083         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
16084         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
16085         unlockpt, vdprintf, vdprintf-posix.
16086         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
16087         (File system functions): Add concat-filename, sys_file, sys_ioctl,
16088         xconcat-filename.
16089         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
16090         getdtablesize, pipe2, pipe2-safer.
16091         (Security): New section.
16092         (Networking functions): Add accept4.
16093         (Signal handling): Add sigpipe.
16094         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
16095         mbmemcasecoll.
16096         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
16097         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
16098         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
16099         pipe-filter-ii.
16100         (Misc): Add argp-version-etc, login_tty, parse-duration.
16101
16102 2010-07-31  Bruno Haible  <bruno@clisp.org>
16103
16104         Improve doc in MODULES.html.
16105         * modules/linkat (Description): Add the word "function".
16106         * modules/mkfifo (Description): Likewise.
16107         * modules/mknod (Description): Likewise.
16108         * modules/remove (Description): Likewise.
16109         * modules/renameat (Description): Likewise.
16110         * modules/stat (Description): Likewise.
16111         * modules/symlink (Description): Likewise.
16112         * modules/unlink (Description): Likewise.
16113
16114 2010-07-31  Bruno Haible  <bruno@clisp.org>
16115
16116         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
16117         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
16118         option --enable/disable-c++ instead of --enable/disable-cxx.
16119         * NEWS: Mention the change.
16120
16121 2010-07-31  Bruno Haible  <bruno@clisp.org>
16122
16123         readlink, areadlink: Relax test a bit.
16124         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
16125         alternative to ENOTDIR.
16126         * tests/test-areadlink.h (test_areadlink): Likewise.
16127         Reported by Rainer Tammer.
16128
16129 2010-07-31  Bruno Haible  <bruno@clisp.org>
16130
16131         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
16132         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
16133         character, perform the search using U_STRCHR.
16134         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
16135         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
16136         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
16137         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
16138         Suggested by Paolo Bonzini.
16139
16140 2010-07-31  Bruno Haible  <bruno@clisp.org>
16141
16142         unistr/u*-strstr: Fix dependencies.
16143         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
16144         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
16145         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
16146
16147 2010-07-31  Bruno Haible  <bruno@clisp.org>
16148
16149         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
16150         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
16151         the beginning of the loop.
16152         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
16153         cases in 'switch' statement.
16154
16155         unistr/u8-strchr: Fix several bugs.
16156         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
16157         the string. When not found, return NULL, not a pointer near the end.
16158
16159         More tests for unistr/u8-strchr.
16160         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
16161         that the function does not read past the first occurrence of the byte
16162         being searched.
16163         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
16164         * tests/unistr/test-u16-strchr.c (main): New function.
16165         * tests/unistr/test-u32-strchr.c (main): New function.
16166
16167 2010-07-31  Bruno Haible  <bruno@clisp.org>
16168
16169         posix-modules: Ignore backup files of documentation files.
16170         * posix-modules: grep only through files named *.texi.
16171
16172 2010-07-31  Bruno Haible  <bruno@clisp.org>
16173
16174         symlinkat: Fix documentation.
16175         * doc/posix-functions/readlinkat.texi: Fix module name.
16176
16177 2010-07-31  Bruno Haible  <bruno@clisp.org>
16178
16179         fchownat: Replace also when chown has the trailing slash bug.
16180         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
16181         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
16182         introduced on 2010-04-10.
16183         Reported by Rainer Tammer.
16184
16185 2010-07-31  Bruno Haible  <bruno@clisp.org>
16186
16187         linkat: Work around AIX 7.1 bug.
16188         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
16189         whether linkat handles trailing slash correctly. If not, replace linkat
16190         and define LINKAT_TRAILING_SLASH_BUG.
16191         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
16192         check whether (fd1,file1) points to a directory if file1 or file2 ends
16193         in a slash. Code taken from lib/link.c.
16194         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
16195         Reported by Rainer Tammer.
16196
16197 2010-07-31  Bruno Haible  <bruno@clisp.org>
16198
16199         Correctly determine whether pow is available in libc on AIX 7 with xlc.
16200         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
16201         This disables an xlc optimization that was causing wrong test results.
16202         Reported by Rainer Tammer.
16203
16204 2010-07-31  Bruno Haible  <bruno@clisp.org>
16205
16206         iconv: Work around AIX 6.1..7.1 bug.
16207         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
16208         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
16209         cross-compiling, guess no on all versions of AIX.
16210         Reported by Rainer Tammer.
16211
16212 2010-07-31  Bruno Haible  <bruno@clisp.org>
16213
16214         readlink: Relax test a bit.
16215         * tests/test-readlink.h (test_readlink): Allow different errno value
16216         when readlink is called with a file name that ends in / and refers to
16217         a file.
16218         Suggested by Eric Blake.
16219         Reported by Rainer Tammer.
16220
16221 2010-07-31  Bruno Haible  <bruno@clisp.org>
16222
16223         copysign: Does not require -lm on glibc systems.
16224         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
16225         gl_COMMON_DOUBLE_MATHFUNC.
16226         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
16227
16228 2010-07-31  Bruno Haible  <bruno@clisp.org>
16229
16230         duplocale: Work around AIX 7.1 bug.
16231         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
16232         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
16233         * lib/duplocale.c (rpl_duplocale): Update comment.
16234         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
16235         Reported by Rainer Tammer.
16236
16237 2010-07-30  Bruno Haible  <bruno@clisp.org>
16238
16239         dirfd: Avoid link error on AIX 7.1.
16240         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
16241         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
16242         exist, set REPLACE_DIRFD.
16243         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
16244         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
16245         * doc/posix-functions/dirfd.texi: Update.
16246         Reported by Rainer Tammer.
16247
16248 2010-07-30  Eric Blake  <eblake@redhat.com>
16249
16250         strtod: next round of AIX fixes
16251         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
16252         exponent.
16253         * tests/test-strtod.c (main): Enhance tests.
16254         * doc/posix-functions/strtod.texi (strtod): Document next bug.
16255         Reported by Rainer Tammer.
16256
16257         futimens: fix configure check
16258         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
16259         Reported by Bruno Haible.
16260
16261 2010-07-30  Bruno Haible  <bruno@clisp.org>
16262
16263         getline: Update regarding AIX.
16264         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
16265         Reported by Rainer Tammer.
16266
16267 2010-07-30  Bruno Haible  <bruno@clisp.org>
16268
16269         wcwidth: Drop replacement on AIX 7.
16270         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
16271         AIX 7.
16272         Reported by Rainer Tammer.
16273
16274 2010-07-30  Bruno Haible  <bruno@clisp.org>
16275
16276         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
16277         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
16278         a 'char *'.
16279         Reported by Rainer Tammer.
16280
16281 2010-07-30  Bruno Haible  <bruno@clisp.org>
16282
16283         unlink: Update regarding AIX.
16284         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
16285         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
16286         Reported by Rainer Tammer.
16287
16288 2010-07-30  Bruno Haible  <bruno@clisp.org>
16289
16290         symlink: Update regarding AIX.
16291         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
16292         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
16293         Reported by Rainer Tammer.
16294
16295 2010-07-30  Bruno Haible  <bruno@clisp.org>
16296
16297         strndup: Update regarding AIX.
16298         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
16299         AIX 7.
16300         Reported by Rainer Tammer.
16301
16302 2010-07-30  Bruno Haible  <bruno@clisp.org>
16303
16304         stat: Update regarding AIX.
16305         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
16306         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
16307         Reported by Rainer Tammer.
16308
16309 2010-07-30  Bruno Haible  <bruno@clisp.org>
16310
16311         truncl: Fix autoconf test.
16312         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
16313         whether truncl works.
16314         Reported by Rainer Tammer.
16315
16316 2010-07-30  Bruno Haible  <bruno@clisp.org>
16317
16318         round: Update regarding AIX.
16319         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
16320         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
16321         Reported by Rainer Tammer.
16322
16323 2010-07-30  Bruno Haible  <bruno@clisp.org>
16324
16325         rename: Update regarding AIX.
16326         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
16327         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
16328         Reported by Rainer Tammer.
16329
16330 2010-07-30  Bruno Haible  <bruno@clisp.org>
16331
16332         printf.m4: Update regarding AIX.
16333         * m4/printf.m4: Update comments regarding AIX.
16334         Reported by Rainer Tammer.
16335
16336 2010-07-30  Bruno Haible  <bruno@clisp.org>
16337
16338         iconv: Update regarding AIX.
16339         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
16340         AIX 7.
16341         Reported by Rainer Tammer.
16342
16343 2010-07-30  Bruno Haible  <bruno@clisp.org>
16344
16345         getopt: Update regarding AIX.
16346         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
16347         no on AIX.
16348         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
16349         Reported by Rainer Tammer.
16350
16351 2010-07-30  Bruno Haible  <bruno@clisp.org>
16352
16353         ldexpl; Update regarding AIX.
16354         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
16355         on AIX 7.
16356         Reported by Rainer Tammer.
16357
16358 2010-07-30  Bruno Haible  <bruno@clisp.org>
16359
16360         frexpl: Update regarding AIX.
16361         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
16362         on AIX 7.
16363         Reported by Rainer Tammer.
16364
16365 2010-07-30  Bruno Haible  <bruno@clisp.org>
16366
16367         open, fopen: Update regarding AIX.
16368         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
16369         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
16370         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
16371         * doc/posix-functions/fopen.texi: Likewise.
16372         Reported by Rainer Tammer.
16373
16374 2010-07-30  Bruno Haible  <bruno@clisp.org>
16375
16376         chown: Update doc regarding AIX.
16377         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
16378         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
16379         Reported by Rainer Tammer.
16380
16381 2010-07-30  Eric Blake  <eblake@redhat.com>
16382
16383         strtod: fix bug in replacement function on AIX
16384         * lib/strtod.c (strtod): Special case broken "0x" parse in
16385         underlying strtod.
16386         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
16387         * doc/posix-functions/strtod.texi (strtod): Likewise.
16388         Reported by Rainer Tammer.
16389
16390 2010-07-30  Bruno Haible  <bruno@clisp.org>
16391
16392         mbrlen: Fix cross-compilation guess for AIX.
16393         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
16394         guess. Leftover from 2008-12-22.
16395
16396 2010-07-30  Bruno Haible  <bruno@clisp.org>
16397
16398         mbrtowc: Fix cross-compilation guess for AIX.
16399         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
16400         guess. Leftover from 2008-12-21.
16401
16402 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
16403
16404         init.sh: work around trap limitation of some shells
16405         * tests/init.sh (setup_): Move exit trap outside of shell function.
16406
16407 2010-07-29  Eric Blake  <eblake@redhat.com>
16408
16409         strtod: aid debugging
16410         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
16411         understanding why strtod is rejected.
16412
16413 2010-07-28  Bruno Haible  <bruno@clisp.org>
16414
16415         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
16416         * lib/unistr/u8-chr.c: Include <string.h>.
16417         * tests/unistr/test-u8-chr.c: Likewise.
16418         * tests/unistr/test-u16-chr.c: Likewise.
16419         * tests/unistr/test-u32-chr.c: Likewise.
16420         * tests/unistr/test-u8-strchr.c: Likewise.
16421         * tests/unistr/test-u16-strchr.c: Likewise.
16422         * tests/unistr/test-u32-strchr.c: Likewise.
16423         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
16424         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
16425         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
16426         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
16427
16428 2010-07-28  Bruno Haible  <bruno@clisp.org>
16429
16430         Use spaces for indentation, not tabs.
16431         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
16432
16433 2010-07-27  Bruno Haible  <bruno@clisp.org>
16434
16435         mbspcasecmp: Fix function specification.
16436         * lib/string.in.h (mbspcasecmp): Fix specification comment.
16437         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
16438         Reported by Eric Blake <eblake@redhat.com>.
16439
16440 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
16441
16442         timespec: use cast and not conditional, as truncation isn't possible
16443         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
16444         instead of a conditional.  Comment about the situation in more detail.
16445         This undoes most of the 2009-10-29 patch.
16446
16447 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
16448
16449         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
16450         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
16451         * lib/unistr/u8-strchr.c: Likewise.
16452         * modules/unistr/u8-chr: Depend on memchr.
16453
16454         unistr/u*-strchr: add tests
16455         * modules/unistr/u8-strchr-tests: New file.
16456         * modules/unistr/u16-strchr-tests: New file.
16457         * modules/unistr/u32-strchr-tests: New file.
16458         * tests/unistr/test-strchr.h: New file.
16459         * tests/unistr/test-u8-strchr.c: New file.
16460         * tests/unistr/test-u16-strchr.c: New file.
16461         * tests/unistr/test-u32-strchr.c: New file.
16462
16463         unistr/u*-chr: test multibyte sequences more
16464         * tests/unistr/test-chr.h: Do complete testing of the characters in the
16465         test vector.
16466         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
16467         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
16468         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
16469
16470         unistr/u*-chr: test multibyte sequences
16471         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
16472
16473         unistr/u*-chr: prepare for multibyte tests
16474         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
16475         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
16476         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
16477         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
16478         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
16479         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
16480
16481 2010-07-18  Bruno Haible  <bruno@clisp.org>
16482
16483         unistr/u8-strchr: Optimize non-ASCII argument case.
16484         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
16485         because the first byte often matches anyway.
16486         Reported by Pádraig Brady <P@draigbrady.com>.
16487
16488 2010-07-15  Karl Berry  <karl@gnu.org>
16489
16490         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
16491
16492 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
16493
16494         getcwd: on Solaris, work better if ancestors are inaccessible
16495         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
16496         buffer and size, try again with a large buffer.  This works better
16497         on Solaris, since its getcwd succeeds even if the path to the root
16498         is inaccessible, and this is helpful in common cases such as .zfs
16499         hidden directories.  Problem reported by J Chapman Flack in
16500         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
16501         Use system getcwd if it's declared, not merely if it's partly
16502         working; use the partly-working test only to avoid needless effort
16503         if the system getcwd fails.
16504         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
16505         comment that was already obsolete and is now even more obsolete.
16506         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
16507         now might call strdup.
16508
16509 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
16510
16511         pthread: Add enough so that coreutils/src/sort.c compiles.
16512         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
16513         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
16514         gnulib. Include <sched.h> and <time.h>, as per POSIX.
16515         Include <sys/types.h>, in case it defines pthread_t.
16516         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
16517         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
16518         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
16519         (pthread_rwlockattr_t, pthread_spinlock_t):
16520         New typedefs, if HAVE_PTHREAD_T is not defined.
16521         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
16522         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
16523         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
16524         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
16525         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
16526         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
16527         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
16528         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
16529         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
16530         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
16531         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
16532         New macros.
16533         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
16534         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
16535         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
16536         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
16537         (pthread_spin_unlock): New dummy functions.
16538         (pthread_create): Return EAGAIN; don't set errno.
16539         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
16540         require AC_C_INLINE.
16541         * modules/pthread (Depends-on): Add sched, time.
16542         (pthread.h): Use AM_V_GEN.
16543
16544 2010-07-13  Bruno Haible  <bruno@clisp.org>
16545
16546         striconveh: Don't malloc memory if the result buffer is sufficient.
16547         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
16548         buffer if its size is sufficient.
16549         Reported by Ludovic Courtès <ludo@gnu.org>.
16550
16551 2010-07-13  Bruno Haible  <bruno@clisp.org>
16552
16553         strtod: Add safety check.
16554         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
16555
16556 2010-07-12  Bruno Haible  <bruno@clisp.org>
16557
16558         Unify tests that set gl_cv_func_ldexpl_no_libm.
16559         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
16560         gl_FUNC_LDEXPL.
16561         (gl_FUNC_LDEXPL): Invoke it.
16562         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
16563
16564 2010-07-12  Bruno Haible  <bruno@clisp.org>
16565
16566         Unify tests that set gl_cv_func_ldexp_no_libm.
16567         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
16568         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
16569         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
16570         (configure.ac): Simply invoke gl_FUNC_LDEXP.
16571         * modules/strtod (Files): Add m4/ldexp.m4.
16572
16573 2010-07-12  Bruno Haible  <bruno@clisp.org>
16574
16575         Unify tests that set gl_cv_func_frexpl_no_libm.
16576         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
16577         gl_FUNC_FREXPL_NO_LIBM.
16578         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
16579         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
16580
16581 2010-07-12  Bruno Haible  <bruno@clisp.org>
16582
16583         Unify tests that set gl_cv_func_frexp_no_libm.
16584         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
16585         gl_FUNC_FREXP_NO_LIBM.
16586         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
16587         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
16588
16589 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
16590
16591         memcoll: clarify sizes versus lengths, document better, and tweak perf
16592         * lib/memcoll.c (strcoll_loop, memcoll0):
16593         Improve quality of descriptive comments.  Name variables
16594         consistently as to whether they are lengths (which do not include
16595         terminating null) versus sizes (which do).
16596         * lib/xmemcoll.c (xmemcoll0): Likewise.
16597         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
16598         returned when s1size == 0; this is easier to compile and saves
16599         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
16600
16601 2010-07-12  Bruno Haible  <bruno@clisp.org>
16602
16603         Tests for module '_Exit'.
16604         * modules/_Exit-tests: New file.
16605         * tests/test-_Exit.sh: New file.
16606         * tests/test-_Exit.c: New file.
16607
16608         New module '_Exit'.
16609         * lib/stdlib.in.h (__attribute__): New macro.
16610         (_Exit): New declaration.
16611         * lib/_Exit.c: New file.
16612         * m4/_Exit.m4: New file.
16613         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
16614         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
16615         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
16616         * modules/_Exit: New file.
16617         * tests/test-stdlib-c++.cc (_Exit): Check signature.
16618         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
16619
16620 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
16621
16622         strtod: make it more-accurate typically, and don't require libm
16623         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
16624         Include limits.h.  Don't include string.h.
16625         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
16626         (locale_isspace): New function, so that no casts are needed to
16627         check whether *s is a space.
16628         (ldexp): Provide an unused dummy if not available.
16629         (scale_radix_exp, parse_number, underlying_strtod): New functions.
16630         (strtod): Use them.  This implementation prefers to use the
16631         underlying strtod if available, falling back on our own code
16632         only to fix known bugs.  This is more likely to produce an
16633         accurate result.  Also, it avoids the use of libm functions.
16634         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
16635         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
16636         was absent, but it caused a test failure with coreutils.
16637         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
16638         with libm.
16639         * modules/strtod (Makefile.am, Link): libm is no longer needed.
16640         * modules/strtod-tests (Makefile.am): Likewise.
16641
16642 2010-07-11  Pádraig Brady  <P@draigBrady.com>
16643             Bruno Haible  <bruno@clisp.org>
16644
16645         unistr/u8-strchr: Optimize ASCII argument case.
16646         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
16647
16648 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
16649
16650         (x)memcoll: minor tweaks
16651         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
16652         is after the type that it qualifies.
16653         (memcoll0): Likewise.
16654         * lib/memcoll.h (memcoll0): Likewise.
16655         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
16656         * lib/xmemcoll.h (xmemcoll0): Likewise.
16657         * lib/memcoll.c (memcoll0): Correct the comment.  This function
16658         differs from memcoll in that the NUL byte is part of the argument.
16659         Omit the abort-checks, as performance is a real issue here.  Plus,
16660         the checks were wrong anyway (an off-by-one error).  Omit local
16661         variable 'diff', as it's a bit clearer that way.
16662         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
16663         no longer needed.
16664
16665 2010-07-08  Chen Guo <chenguo4@yahoo.com>
16666
16667         (x)memcoll: speedup when input is known to be NUL delimited
16668         * lib/memcoll.c: Include stdlib.
16669         (memcoll0): New function.
16670         (strcoll_loop): New function, refactored for use in both memcoll
16671         and memcoll0.
16672         * lib/memcoll.h (memcoll0): Add prototype.
16673         * lib/xmemcoll.c (xmemcoll0): New function.
16674         (collate_error): New function, refactored for use in both xmemcoll
16675         and xmemcoll0.
16676         * lib/xmemcoll.h (xmemcoll0): Add prototype.
16677         * m4/memcoll.m4: add inline invocation.
16678
16679 2010-07-06  Pádraig Brady  <P@draigBrady.com>
16680
16681         * build-aux/bootstrap: Remove any local translations
16682         from the translation project synchronization directory,
16683         so that local only translations are not distributed.
16684
16685 2010-07-04  Bruno Haible  <bruno@clisp.org>
16686
16687         fsusage: Clarify which code applies to which platforms.
16688         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
16689         platform.
16690         * lib/fsusage.c (get_fs_usage): Likewise.
16691
16692 2010-07-04  Bruno Haible  <bruno@clisp.org>
16693
16694         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
16695         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
16696         Reported by Martin Lambers <marlam@marlam.de>.
16697
16698 2010-07-04  Jim Meyering  <meyering@redhat.com>
16699
16700         hash: once again explicitly disallow insertion of NULL
16701         * lib/hash.c (hash_insert0): Reinstate just-removed test:
16702         inserting a NULL pointer cannot work with these functions.
16703         Add a comment with details.
16704         This reverts part of the 2010-07-01 commit, 5bef1a35
16705         "hash: extend module to deal with non-pointer keys".
16706
16707 2010-07-01  Bruno Haible  <bruno@clisp.org>
16708
16709         stdbool: Update doc.
16710         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
16711         Info from Christian Weisgerber <naddy@mips.inka.de>.
16712
16713 2010-07-01  Jim Meyering  <meyering@redhat.com>
16714
16715         hash: extend module to deal with non-pointer keys
16716         * lib/hash.c (hash_insert0): New interface, much like hash_insert
16717         but that allows insertion of non-pointer entries.
16718         Do not disallow an ENTRY value of NULL.
16719         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
16720         * lib/hash.h (hash_insert0): Declare.
16721
16722 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
16723
16724         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
16725         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
16726         not present (i.e. with autoconf 2.59 and when using gettextize, not
16727         gnulib), require AC_GNU_SOURCE instead.
16728
16729 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
16730
16731         idpriv-drop: Fix tests.
16732         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
16733         not to the test-idpriv-droptemp program.
16734
16735 2010-06-29  Bruno Haible  <bruno@clisp.org>
16736
16737         string: Fix syntax error with g++ 2.96.
16738         * lib/string.in.h (__pure__): Remove definition.
16739         (_GL_ATTRIBUTE_PURE): New macro.
16740         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
16741         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
16742         Reported by Christian Weisgerber <naddy@mips.inka.de>.
16743
16744 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
16745
16746         unitypes: Fix bug introduced on 2010-05-18.
16747         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
16748
16749 2010-06-22  Eric Blake  <eblake@redhat.com>
16750
16751         memmem: slight optimization
16752         * lib/str-two-way.h (critical_factorization): Update comments.
16753         Reduce work during factorization phase.
16754         Reported by Carlos Bueno <carlos@bueno.org>.
16755
16756 2010-06-21  Bruno Haible  <bruno@clisp.org>
16757
16758         Fix HAVE_CALLOC_POSIX misnomer.
16759         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
16760         !HAVE_CALLOC_POSIX.
16761         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
16762         HAVE_CALLOC_POSIX.
16763         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
16764         instead of HAVE_CALLOC_POSIX.
16765         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
16766         HAVE_CALLOC_POSIX.
16767
16768         Use modern idiom for calloc() replacement.
16769         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
16770         AC_FUNC_CALLOC.
16771         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
16772         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
16773         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16774         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
16775         (gl_REPLACE_CALLOC): New macro.
16776
16777 2010-06-21  Bruno Haible  <bruno@clisp.org>
16778
16779         Fix HAVE_REALLOC_POSIX misnomer.
16780         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
16781         !HAVE_REALLOC_POSIX.
16782         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
16783         HAVE_REALLOC_POSIX.
16784         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
16785         instead of HAVE_REALLOC_POSIX.
16786         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
16787         HAVE_REALLOC_POSIX.
16788
16789         Use modern idiom for realloc() replacement.
16790         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
16791         AC_FUNC_REALLOC.
16792         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
16793         Autoconf's AC_FUNC_REALLOC.
16794         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16795         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
16796         (gl_REPLACE_REALLOC): New macro.
16797         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
16798
16799 2010-06-21  Bruno Haible  <bruno@clisp.org>
16800
16801         Fix HAVE_MALLOC_POSIX misnomer.
16802         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
16803         !HAVE_MALLOC_POSIX.
16804         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
16805         HAVE_MALLOC_POSIX.
16806         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
16807         instead of HAVE_MALLOC_POSIX.
16808         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
16809         HAVE_MALLOC_POSIX.
16810
16811         Use modern idiom for malloc() replacement.
16812         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
16813         AC_FUNC_MALLOC.
16814         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
16815         Autoconf's AC_FUNC_MALLOC.
16816         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16817         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
16818         (gl_REPLACE_MALLOC): New macro.
16819         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
16820
16821 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
16822
16823         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
16824         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
16825         This macro takes 3 arguments, not 4.
16826
16827 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
16828
16829         ipv6: fix detection under mingw
16830         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
16831         in6_addr.
16832
16833 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
16834
16835         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
16836         that strtod() works when cross-compiling to a glibc version known
16837         to work.
16838
16839 2010-06-15  Bruno Haible  <bruno@clisp.org>
16840
16841         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
16842
16843 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
16844
16845         select: Correct timeout.
16846         * lib/select.c (rpl_select): Compute wait_timeout correctly.
16847
16848 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
16849
16850         git-version-gen: init shell var to avoid env var influence
16851         * build-aux/git-version-gen (v): Init shell var to empty.
16852
16853 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
16854
16855         priv-set: Don't assume that priv.h exists merely because getppriv does.
16856         See Jan Andersen's bug report about AIX 5L in
16857         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
16858         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
16859         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
16860         * lib/priv-set.h: Likewise.
16861         * tests/test-priv-set.c: Likewise.
16862
16863 2010-06-13  Bruno Haible  <bruno@clisp.org>
16864
16865         relocatable: Make it easier to test whether to install wrappers.
16866         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
16867         RELOCATABLE_VIA_WRAPPER.
16868
16869 2010-06-13  Bruno Haible  <bruno@clisp.org>
16870
16871         gnulib-tool: Display specified modules and dependencies differently.
16872         * gnulib-tool (func_show_module_list): New function.
16873         (func_import, func_create_testdir): Invoke it.
16874         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
16875
16876 2010-06-13  Bruno Haible  <bruno@clisp.org>
16877
16878         gnulib-tool: Align code of func_import and func_create_testdir.
16879         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
16880         specified_modules.
16881
16882 2010-06-12  Jim Meyering  <meyering@redhat.com>
16883
16884         test-inttostr: avoid spurious failure on Solaris 9
16885         * tests/test-inttostr.c (main): Skip the test when snprintf fails
16886         to accept "%ju".  Reported by Bruno Haible.
16887
16888 2010-06-11  Jim Meyering  <meyering@redhat.com>
16889
16890         test-sys_socket: mark variables as used more readably
16891         * tests/test-sys_socket.c (main): Mark otherwise unused variables
16892         as "used" explicitly via (void) statement casts.  This is more
16893         readable than using them in an artificial return expression.
16894         Suggestion from Bruno Haible.
16895
16896 2010-06-11  Bruno Haible  <bruno@clisp.org>
16897
16898         Avoid some more warnings from "gcc -Wwrite-strings".
16899         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
16900         to 'const char *'.
16901         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
16902         * tests/test-c-strcasestr.c (main): Likewise.
16903         * tests/test-mbscasestr1.c (main): Likewise.
16904         * tests/test-mbscasestr2.c (main): Likewise.
16905         * tests/test-memmem.c (main): Likewise.
16906         * tests/test-strstr.c (main): Likewise.
16907         * tests/test-strcasestr.c (main): Likewise.
16908
16909 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16910
16911         init.sh: change framework_failure_ to fail with status 99, not 1
16912         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
16913         automake's parallel-tests rule that this is an unexpected failure,
16914         even if the test is listed in XFAIL_TESTS.
16915
16916 2010-06-11  Jim Meyering  <meyering@redhat.com>
16917
16918         test-inttostr: avoid warnings about 4-6KB literal strings
16919         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
16920         Include "macros.h", for its definition of ASSERT.
16921         (CK): s/assert/ASSERT/
16922         * modules/inttostr-tests (Files): Add macros.h.
16923
16924         init.sh: don't use $ME_ or skip_ before they are defined
16925         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
16926         their first uses.  Also hoist their companions: warn_, fail_,
16927         framework_failure_, $stderr_fileno.  Prompted by a patch from
16928         Stefano Lattarini.
16929
16930         test-sys_socket: avoid set-but-not-used warnings from gcc
16931         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
16932         avoid warning about set-but-not-used variables.
16933
16934         test-xvasprintf: avoid 'const' discard warnings
16935         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
16936         "const" when assigning from literal strings.
16937         (test_xasprintf): Add "void" in function argument list to placate
16938         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
16939
16940         tests: avoid compilation warnings in argmatch and exclude tests...
16941         in packages that define ARGMATCH_DIE_DECL, like coreutils.
16942         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
16943         Since it always exits, declare with the "noreturn" attribute.
16944         * tests/test-argmatch.c: Likewise.
16945
16946         tests: avoid 'const' discard warnings in mbsstr tests
16947         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
16948         * tests/test-mbsstr2.c (main): Likewise.
16949
16950         test-verify: avoid warning from gcc's -Wmissing-declarations
16951         * tests/test-verify.c (function): Declare to be static.
16952
16953         test-inttostr.c: include <string.h> for use of strcmp
16954         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
16955
16956         test-linkat: avoid failed assertion on "other" architectures
16957         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
16958         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
16959         sparc: https://bugs.launchpad.net/bugs/591968
16960
16961 2010-06-11  Jim Meyering  <meyering@redhat.com>
16962
16963         printf.m4: avoid autoconf's "Expanded Before Required" warning
16964         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
16965         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
16966         autoconf warning.
16967
16968 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
16969
16970         Replacement header templates are now named with ".in", not "_".
16971         * doc/gnulib-intro.texi: Correct.
16972
16973 2010-06-10  Jim Meyering  <meyering@redhat.com>
16974
16975         inttostr-tests: depend on snprintf, not snprintf-posix
16976         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
16977         snprintf-posix, to avoid this aclocal failure:
16978           missing file gnulib-tests/vasnprintf.c
16979           configure.ac:45: error: expected source file, required through \
16980           AC_LIBSOURCES, not found
16981
16982 2010-06-10  Jim Meyering  <meyering@redhat.com>
16983
16984         inttostr: add a new function, inttostr, and tests
16985         The namesake function was not available.  The existence of the
16986         template file, inttostr.c makes its addition nontrivial.
16987         * lib/anytostr.c: Rename from inttostr.c.
16988         (anytostr): Rename from inttostr.
16989         * lib/inttostr.c: New file.
16990         * modules/inttostr (Files): Add anytostr.c.
16991         (Makefile.am): Set lib_SOURCES instead of ...
16992         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
16993         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
16994         * lib/offtostr.c: Likewise.
16995         * lib/uinttostr.c: Likewise.
16996         * lib/umaxtostr.c: Likewise.
16997         * modules/inttostr-tests: New file.
16998         * tests/test-inttostr.c: New file.  Test these functions.
16999
17000 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
17001             Bruno Haible  <bruno@clisp.org>
17002
17003         Add "Extending Gnulib" chapter to manual.
17004         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
17005         chapter.
17006         (Extending Gnulib): New chapter.
17007         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
17008         chapter.
17009
17010 2010-06-09  Bruno Haible  <bruno@clisp.org>
17011
17012         Avoid relocwrapper link errors due to gnulib replacement functions.
17013         * lib/areadlink.c: Use the system's malloc, realloc functions.
17014         (areadlink): Set errno to ENOMEM explicitly.
17015         * modules/areadlink (Depends-on): Remove malloc-posix.
17016         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17017
17018 2010-06-09  Bruno Haible  <bruno@clisp.org>
17019
17020         Avoid relocwrapper link errors due to gnulib replacement functions.
17021         * lib/canonicalize-lgpl.c: Use the system's malloc function.
17022         * lib/malloca.c: Likewise.
17023         * lib/relocatable.c: Likewise.
17024         * lib/progreloc.c: Use the system's malloc, sprintf functions.
17025         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
17026         * lib/setenv.c: Use the system's malloc, realloc functions.
17027         * lib/strerror.c: Use the system's sprintf function.
17028         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17029
17030 2010-06-04  Bruno Haible  <bruno@clisp.org>
17031
17032         Prefer documented low-level autoconf macro names.
17033         * m4/lib-link.m4: Use m4_translit instead of translit.
17034         * m4/environ.m4: Likewise.
17035         * m4/mathfunc.m4: Likewise.
17036         * m4/onceonly.m4: Likewise.
17037         * m4/stdint.m4: Likewise.
17038         Suggested by Eric Blake.
17039
17040 2010-06-04  Martin Lambers  <marlam@marlam.de>
17041             Bruno Haible  <bruno@clisp.org>
17042
17043         havelib: Allow library names with '+' characters.
17044         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
17045         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
17046
17047 2010-06-09  Bruno Haible  <bruno@clisp.org>
17048
17049         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
17050         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
17051         realloc failed.
17052
17053 2010-06-08  Peter Simons  <simons@cryp.to>
17054
17055         maint.mk: make the news-check rule more configurable
17056         * top/maint.mk (news-check-lines-spec): New variable.
17057         (news-check): Use "sed -n 1,10p" in place of "head".
17058
17059 2010-06-07  Jim Meyering  <meyering@redhat.com>
17060
17061         do-release-commit-and-tag: fix typo in --help
17062         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
17063
17064         regex: avoid new dead-code warning with gcc-4.6.0
17065         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
17066         if-block containing a while-loop.  It's been unused for at least
17067         5 years.
17068
17069 2010-06-05  Bruno Haible  <bruno@clisp.org>
17070
17071         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
17072         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
17073
17074 2010-06-04  Bruno Haible  <bruno@clisp.org>
17075
17076         Update to GNU gettext 0.18.1.
17077         * modules/gettext (configure.ac): Require gettext infrastructure from
17078         version 0.18.1.
17079
17080 2010-06-03  Bruno Haible  <bruno@clisp.org>
17081
17082         Don't use AC_LIBOBJ with file names in subdirectories.
17083         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
17084         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
17085         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
17086         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
17087         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
17088         gl_LIBUNISTRING_LIBSOURCE.
17089         (Makefile.am): Augment lib_SOURCES here, conditionally.
17090         * NEWS: Drop requirement for Automake option 'subdir-objects'.
17091
17092 2010-06-03  Bruno Haible  <bruno@clisp.org>
17093
17094         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
17095         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
17096         expansion does not end with a newline.
17097         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
17098         unnecessary newline.
17099
17100 2010-06-03  Bruno Haible  <bruno@clisp.org>
17101
17102         Reduce dependencies.
17103         * tests/test-quotearg.h: New file, extracted from
17104         tests/test-quotearg.c.
17105         * tests/test-quotearg-simple.c: New file, extracted from
17106         tests/test-quotearg.c.
17107         * tests/test-quotearg.c: Don't include <ctype.h>.
17108         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
17109         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
17110         use_quote_double_quotes, use_quotearg_colon): Moved to
17111         tests/test-quotearg.h.
17112         (results_g, flag_results, custom_quotes, custom_results): Moved
17113         to tests/test-quotearg-simple.c.
17114         (main): Moved the part that does not depend on gettext to
17115         tests/test-quotearg-simple.c. Return 77 if the test cannot be
17116         performed.
17117         * modules/quotearg-simple: New file.
17118         * modules/quotearg-simple-tests: New file.
17119         * modules/quotearg (Depends-on): Add quotearg-simple.
17120         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
17121         (Files): Add tests/test-quotearg.h.
17122         Reported by Paolo Bonzini.
17123
17124 2010-06-03  Bruno Haible  <bruno@clisp.org>
17125
17126         Reduce dependencies.
17127         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
17128
17129 2010-06-03  Bruno Haible  <bruno@clisp.org>
17130
17131         time: Undefine more broken macros.
17132         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
17133         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
17134         Reported by Eric Blake.
17135
17136 2010-06-03  Bruno Haible  <bruno@clisp.org>
17137
17138         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
17139         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
17140         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
17141         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
17142         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
17143         Reported by Ludovic Courtès <ludo@gnu.org>.
17144
17145 2010-06-02  Eric Blake  <eblake@redhat.com>
17146
17147         time: work with mingw + pthreads-win32 library
17148         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
17149         if timespec is defined only in pthread.h.
17150         * modules/time (Makefile.am): Substitute it.
17151         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
17152         <pthread.h>, when needed.
17153         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
17154         from the library.
17155
17156 2010-05-31  Bruno Haible  <bruno@clisp.org>
17157
17158         Avoid expanding two macros in the wrong order.
17159         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
17160         gl_LIBUNISTRING if it is defined.
17161         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
17162         autoconf >= 2.64.
17163         Reported by Ludovic Courtès <ludo@gnu.org>.
17164
17165 2010-05-27  Jim Meyering  <meyering@redhat.com>
17166
17167         maint.mk: also prohibit "#undef" of always-defined symbols
17168         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
17169         Allow more than one space before the symbol name.
17170         (sc_prohibit_always-defined_macros): Use grep's -E, now that
17171         the regexp uses alternation.
17172
17173 2010-05-26  Eric Blake  <eblake@redhat.com>
17174
17175         maint.mk: avoid echo -e
17176         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
17177         Convert all uses of echo -* to printf.
17178         Reported by Matthias Bolte.
17179
17180 2010-05-25  Bruno Haible  <bruno@clisp.org>
17181
17182         Update to GNU gettext 0.18, part 2.
17183         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
17184         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
17185
17186 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17187
17188         Add missing include in test-pwrite.c.
17189         * tests/test-pwrite.c: Include string.h, for strcmp.
17190
17191 2010-05-24  Bruno Haible  <bruno@clisp.org>
17192
17193         * NEWS: Mention requirement for Automake option 'subdir-objects'.
17194
17195 2010-05-24  Bruno Haible  <bruno@clisp.org>
17196
17197         Don't use conversion with transliteration in u{8,16,32}_strcoll.
17198         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
17199         iconveh_error argument.
17200         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
17201         U_STRCONV_TO_LOCALE.
17202         * lib/unistr/u16-strcoll.c: Likewise.
17203         * lib/unistr/u32-strcoll.c: Likewise.
17204         * modules/unistr/u8-strcoll (Depends-on): Add
17205         uniconv/u8-strconv-to-enc, localcharset. Remove
17206         uniconv/u8-strconv-to-locale.
17207         (configure.ac): Bump version number.
17208         * modules/unistr/u16-strcoll (Depends-on): Add
17209         uniconv/u16-strconv-to-enc, localcharset. Remove
17210         uniconv/u16-strconv-to-locale.
17211         (configure.ac): Bump version number.
17212         * modules/unistr/u32-strcoll (Depends-on): Add
17213         uniconv/u32-strconv-to-enc, localcharset. Remove
17214         uniconv/u32-strconv-to-locale.
17215         (configure.ac): Bump version number.
17216
17217 2010-05-24  Bruno Haible  <bruno@clisp.org>
17218
17219         Avoid a test failure on NetBSD 5.0.
17220         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
17221         an iconv() bug.
17222
17223 2010-05-24  Bruno Haible  <bruno@clisp.org>
17224
17225         Adjust #include directive style.
17226         * modules/regex (Includes): Recommend to write <regex.h>.
17227
17228 2010-05-24  Bruno Haible  <bruno@clisp.org>
17229
17230         regex: Don't require alloca.
17231         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
17232         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
17233         only inside if (0).
17234
17235 2010-05-23  Jim Meyering  <meyering@redhat.com>
17236
17237         test-renameat.c: include <sys/stat.h>
17238         * tests/test-renameat.c: Include <sys/stat.h>; required for
17239         definition of S_IS* macros.
17240
17241 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
17242
17243         Update maintainer documentation for 'relocatable-prog' module.
17244         * doc/relocatable-maint.texi: Update.
17245         Comments by Bruno Haible.
17246
17247 2010-05-23  Bruno Haible  <bruno@clisp.org>
17248
17249         git-merge-changelog: Enable --split-merged-entry by default.
17250         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
17251         (usage): Don't mention this option any more.
17252         Reported by Ralf Wildenhues.
17253
17254 2010-05-23  Jim Meyering  <meyering@redhat.com>
17255
17256         test-pwrite: do not leave behind a test file named "out"
17257         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
17258         The trivial-looking use of init.sh is really necessary.
17259         It ensures that the temporary file, "out", is created in
17260         a temporary directory, and removed upon termination.
17261         * tests/test-pwrite.sh: Re-add file.
17262         * modules/pwrite-tests: Reference it.
17263
17264 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17265
17266         Fix output redirection buglet in init.sh.
17267         * tests/init.sh: Fix redirection of stderr.
17268
17269 2010-05-20  Simon Josefsson  <simon@josefsson.org>
17270
17271         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
17272
17273 2010-05-17  Simon Josefsson  <simon@josefsson.org>
17274
17275         * modules/valgrind-tests: New file.
17276         * m4/valgrind-tests.m4: New file.
17277         * doc/valgrind-tests.texi: New file.
17278         * doc/gnulib.texi (Running self-tests under valgrind): New
17279         section.
17280
17281 2010-05-19  Bruno Haible  <bruno@clisp.org>
17282
17283         Clean up dead code in recent commit.
17284         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
17285         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
17286         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
17287         Suggested by Paolo Bonzini.
17288
17289 2010-05-19  Bruno Haible  <bruno@clisp.org>
17290
17291         Avoid valgrind error reports from libunistring.
17292         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
17293         * modules/libunistring (Files): Add it.
17294         * modules/libunistring-optional (Files): Likewise.
17295
17296 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
17297             Bruno Haible  <bruno@clisp.org>
17298
17299         New module 'libunistring-optional'.
17300         * modules/libunistring-optional: New file.
17301         * m4/libunistring-base.m4: New file.
17302         * m4/libunistring-optional.m4: New file.
17303         * lib/unicase.in.h: Renamed from lib/unicase.h.
17304         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
17305         * lib/unictype.in.h: Renamed from lib/unictype.h.
17306         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
17307         * lib/uniname.in.h: Renamed from lib/uniname.h.
17308         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
17309         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
17310         * lib/unistr.in.h: Renamed from lib/unistr.h.
17311         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
17312         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
17313         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
17314         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
17315         gl_LIBUNISTRING. If the library was found, determine the installed
17316         version and set LIBUNISTRING_VERSION.
17317         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
17318         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
17319         handle a configuration option --with-included-libunistring.
17320         * modules/libunistring (Files): Add m4/absolute-header.m4.
17321         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
17322         Add m4/libunistring-base.m4.
17323         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17324         (Makefile.am): Build unicase.h from unicase.in.h.
17325         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
17326         Add m4/libunistring-base.m4.
17327         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17328         (Makefile.am): Build uniconv.h from uniconv.in.h.
17329         * modules/unictype/base (Files): Use unictype.in.h instead of
17330         unictype.h. Add m4/libunistring-base.m4.
17331         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17332         (Makefile.am): Build unictype.h from unictype.in.h.
17333         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
17334         Add m4/libunistring-base.m4.
17335         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17336         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
17337         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
17338         Add m4/libunistring-base.m4.
17339         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17340         (Makefile.am): Build uniname.h from uniname.in.h.
17341         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
17342         Add m4/libunistring-base.m4.
17343         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17344         (Makefile.am): Build uninorm.h from uninorm.in.h.
17345         * modules/unistdio/base (Files): Use unistdio.in.h instead of
17346         unistdio.h. Add m4/libunistring-base.m4.
17347         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17348         (Makefile.am): Build unistdio.h from unistdio.in.h.
17349         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
17350         Add m4/libunistring-base.m4.
17351         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17352         (Makefile.am): Build unistr.h from unistr.in.h.
17353         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
17354         Add m4/libunistring-base.m4.
17355         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17356         (Makefile.am): Build unitypes.h from unitypes.in.h.
17357         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
17358         Add m4/libunistring-base.m4.
17359         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17360         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
17361         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
17362         uniwidth.h. Add m4/libunistring-base.m4.
17363         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17364         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
17365         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
17366         instead of augmenting lib_SOURCES.
17367         * modules/unicase/empty-suffix-context: Likewise.
17368         * modules/unicase/locale-language: Likewise.
17369         * modules/unicase/tolower: Likewise.
17370         * modules/unicase/totitle: Likewise.
17371         * modules/unicase/toupper: Likewise.
17372         * modules/unicase/u8-casecmp: Likewise.
17373         * modules/unicase/u8-casecoll: Likewise.
17374         * modules/unicase/u8-casefold: Likewise.
17375         * modules/unicase/u8-casexfrm: Likewise.
17376         * modules/unicase/u8-ct-casefold: Likewise.
17377         * modules/unicase/u8-ct-tolower: Likewise.
17378         * modules/unicase/u8-ct-totitle: Likewise.
17379         * modules/unicase/u8-ct-toupper: Likewise.
17380         * modules/unicase/u8-is-cased: Likewise.
17381         * modules/unicase/u8-is-casefolded: Likewise.
17382         * modules/unicase/u8-is-lowercase: Likewise.
17383         * modules/unicase/u8-is-titlecase: Likewise.
17384         * modules/unicase/u8-is-uppercase: Likewise.
17385         * modules/unicase/u8-prefix-context: Likewise.
17386         * modules/unicase/u8-suffix-context: Likewise.
17387         * modules/unicase/u8-tolower: Likewise.
17388         * modules/unicase/u8-totitle: Likewise.
17389         * modules/unicase/u8-toupper: Likewise.
17390         * modules/unicase/u16-casecmp: Likewise.
17391         * modules/unicase/u16-casecoll: Likewise.
17392         * modules/unicase/u16-casefold: Likewise.
17393         * modules/unicase/u16-casexfrm: Likewise.
17394         * modules/unicase/u16-ct-casefold: Likewise.
17395         * modules/unicase/u16-ct-tolower: Likewise.
17396         * modules/unicase/u16-ct-totitle: Likewise.
17397         * modules/unicase/u16-ct-toupper: Likewise.
17398         * modules/unicase/u16-is-cased: Likewise.
17399         * modules/unicase/u16-is-casefolded: Likewise.
17400         * modules/unicase/u16-is-lowercase: Likewise.
17401         * modules/unicase/u16-is-titlecase: Likewise.
17402         * modules/unicase/u16-is-uppercase: Likewise.
17403         * modules/unicase/u16-prefix-context: Likewise.
17404         * modules/unicase/u16-suffix-context: Likewise.
17405         * modules/unicase/u16-tolower: Likewise.
17406         * modules/unicase/u16-totitle: Likewise.
17407         * modules/unicase/u16-toupper: Likewise.
17408         * modules/unicase/u32-casecmp: Likewise.
17409         * modules/unicase/u32-casecoll: Likewise.
17410         * modules/unicase/u32-casefold: Likewise.
17411         * modules/unicase/u32-casexfrm: Likewise.
17412         * modules/unicase/u32-ct-casefold: Likewise.
17413         * modules/unicase/u32-ct-tolower: Likewise.
17414         * modules/unicase/u32-ct-totitle: Likewise.
17415         * modules/unicase/u32-ct-toupper: Likewise.
17416         * modules/unicase/u32-is-cased: Likewise.
17417         * modules/unicase/u32-is-casefolded: Likewise.
17418         * modules/unicase/u32-is-lowercase: Likewise.
17419         * modules/unicase/u32-is-titlecase: Likewise.
17420         * modules/unicase/u32-is-uppercase: Likewise.
17421         * modules/unicase/u32-prefix-context: Likewise.
17422         * modules/unicase/u32-suffix-context: Likewise.
17423         * modules/unicase/u32-tolower: Likewise.
17424         * modules/unicase/u32-totitle: Likewise.
17425         * modules/unicase/u32-toupper: Likewise.
17426         * modules/unicase/ulc-casecmp: Likewise.
17427         * modules/unicase/ulc-casecoll: Likewise.
17428         * modules/unicase/ulc-casexfrm: Likewise.
17429         * modules/uniconv/u8-conv-from-enc: Likewise.
17430         * modules/uniconv/u8-conv-to-enc: Likewise.
17431         * modules/uniconv/u8-strconv-from-enc: Likewise.
17432         * modules/uniconv/u8-strconv-from-locale: Likewise.
17433         * modules/uniconv/u8-strconv-to-enc: Likewise.
17434         * modules/uniconv/u8-strconv-to-locale: Likewise.
17435         * modules/uniconv/u16-conv-from-enc: Likewise.
17436         * modules/uniconv/u16-conv-to-enc: Likewise.
17437         * modules/uniconv/u16-strconv-from-enc: Likewise.
17438         * modules/uniconv/u16-strconv-from-locale: Likewise.
17439         * modules/uniconv/u16-strconv-to-enc: Likewise.
17440         * modules/uniconv/u16-strconv-to-locale: Likewise.
17441         * modules/uniconv/u32-conv-from-enc: Likewise.
17442         * modules/uniconv/u32-conv-to-enc: Likewise.
17443         * modules/uniconv/u32-strconv-from-enc: Likewise.
17444         * modules/uniconv/u32-strconv-from-locale: Likewise.
17445         * modules/uniconv/u32-strconv-to-enc: Likewise.
17446         * modules/uniconv/u32-strconv-to-locale: Likewise.
17447         * modules/unictype/bidicategory-byname: Likewise.
17448         * modules/unictype/bidicategory-name: Likewise.
17449         * modules/unictype/bidicategory-of: Likewise.
17450         * modules/unictype/bidicategory-test: Likewise.
17451         * modules/unictype/block-list: Likewise.
17452         * modules/unictype/block-test: Likewise.
17453         * modules/unictype/category-C: Likewise.
17454         * modules/unictype/category-Cc: Likewise.
17455         * modules/unictype/category-Cf: Likewise.
17456         * modules/unictype/category-Cn: Likewise.
17457         * modules/unictype/category-Co: Likewise.
17458         * modules/unictype/category-Cs: Likewise.
17459         * modules/unictype/category-L: Likewise.
17460         * modules/unictype/category-Ll: Likewise.
17461         * modules/unictype/category-Lm: Likewise.
17462         * modules/unictype/category-Lo: Likewise.
17463         * modules/unictype/category-Lt: Likewise.
17464         * modules/unictype/category-Lu: Likewise.
17465         * modules/unictype/category-M: Likewise.
17466         * modules/unictype/category-Mc: Likewise.
17467         * modules/unictype/category-Me: Likewise.
17468         * modules/unictype/category-Mn: Likewise.
17469         * modules/unictype/category-N: Likewise.
17470         * modules/unictype/category-Nd: Likewise.
17471         * modules/unictype/category-Nl: Likewise.
17472         * modules/unictype/category-No: Likewise.
17473         * modules/unictype/category-P: Likewise.
17474         * modules/unictype/category-Pc: Likewise.
17475         * modules/unictype/category-Pd: Likewise.
17476         * modules/unictype/category-Pe: Likewise.
17477         * modules/unictype/category-Pf: Likewise.
17478         * modules/unictype/category-Pi: Likewise.
17479         * modules/unictype/category-Po: Likewise.
17480         * modules/unictype/category-Ps: Likewise.
17481         * modules/unictype/category-S: Likewise.
17482         * modules/unictype/category-Sc: Likewise.
17483         * modules/unictype/category-Sk: Likewise.
17484         * modules/unictype/category-Sm: Likewise.
17485         * modules/unictype/category-So: Likewise.
17486         * modules/unictype/category-Z: Likewise.
17487         * modules/unictype/category-Zl: Likewise.
17488         * modules/unictype/category-Zp: Likewise.
17489         * modules/unictype/category-Zs: Likewise.
17490         * modules/unictype/category-and: Likewise.
17491         * modules/unictype/category-and-not: Likewise.
17492         * modules/unictype/category-byname: Likewise.
17493         * modules/unictype/category-name: Likewise.
17494         * modules/unictype/category-none: Likewise.
17495         * modules/unictype/category-of: Likewise.
17496         * modules/unictype/category-or: Likewise.
17497         * modules/unictype/category-test: Likewise.
17498         * modules/unictype/combining-class: Likewise.
17499         * modules/unictype/ctype-alnum: Likewise.
17500         * modules/unictype/ctype-alpha: Likewise.
17501         * modules/unictype/ctype-blank: Likewise.
17502         * modules/unictype/ctype-cntrl: Likewise.
17503         * modules/unictype/ctype-digit: Likewise.
17504         * modules/unictype/ctype-graph: Likewise.
17505         * modules/unictype/ctype-lower: Likewise.
17506         * modules/unictype/ctype-print: Likewise.
17507         * modules/unictype/ctype-punct: Likewise.
17508         * modules/unictype/ctype-space: Likewise.
17509         * modules/unictype/ctype-upper: Likewise.
17510         * modules/unictype/ctype-xdigit: Likewise.
17511         * modules/unictype/decimal-digit: Likewise.
17512         * modules/unictype/digit: Likewise.
17513         * modules/unictype/mirror: Likewise.
17514         * modules/unictype/numeric: Likewise.
17515         * modules/unictype/property-alphabetic: Likewise.
17516         * modules/unictype/property-ascii-hex-digit: Likewise.
17517         * modules/unictype/property-bidi-arabic-digit: Likewise.
17518         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
17519         * modules/unictype/property-bidi-block-separator: Likewise.
17520         * modules/unictype/property-bidi-boundary-neutral: Likewise.
17521         * modules/unictype/property-bidi-common-separator: Likewise.
17522         * modules/unictype/property-bidi-control: Likewise.
17523         * modules/unictype/property-bidi-embedding-or-override: Likewise.
17524         * modules/unictype/property-bidi-eur-num-separator: Likewise.
17525         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
17526         * modules/unictype/property-bidi-european-digit: Likewise.
17527         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
17528         * modules/unictype/property-bidi-left-to-right: Likewise.
17529         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
17530         * modules/unictype/property-bidi-other-neutral: Likewise.
17531         * modules/unictype/property-bidi-pdf: Likewise.
17532         * modules/unictype/property-bidi-segment-separator: Likewise.
17533         * modules/unictype/property-bidi-whitespace: Likewise.
17534         * modules/unictype/property-byname: Likewise.
17535         * modules/unictype/property-combining: Likewise.
17536         * modules/unictype/property-composite: Likewise.
17537         * modules/unictype/property-currency-symbol: Likewise.
17538         * modules/unictype/property-dash: Likewise.
17539         * modules/unictype/property-decimal-digit: Likewise.
17540         * modules/unictype/property-default-ignorable-code-point: Likewise.
17541         * modules/unictype/property-deprecated: Likewise.
17542         * modules/unictype/property-diacritic: Likewise.
17543         * modules/unictype/property-extender: Likewise.
17544         * modules/unictype/property-format-control: Likewise.
17545         * modules/unictype/property-grapheme-base: Likewise.
17546         * modules/unictype/property-grapheme-extend: Likewise.
17547         * modules/unictype/property-grapheme-link: Likewise.
17548         * modules/unictype/property-hex-digit: Likewise.
17549         * modules/unictype/property-hyphen: Likewise.
17550         * modules/unictype/property-id-continue: Likewise.
17551         * modules/unictype/property-id-start: Likewise.
17552         * modules/unictype/property-ideographic: Likewise.
17553         * modules/unictype/property-ids-binary-operator: Likewise.
17554         * modules/unictype/property-ids-trinary-operator: Likewise.
17555         * modules/unictype/property-ignorable-control: Likewise.
17556         * modules/unictype/property-iso-control: Likewise.
17557         * modules/unictype/property-join-control: Likewise.
17558         * modules/unictype/property-left-of-pair: Likewise.
17559         * modules/unictype/property-line-separator: Likewise.
17560         * modules/unictype/property-logical-order-exception: Likewise.
17561         * modules/unictype/property-lowercase: Likewise.
17562         * modules/unictype/property-math: Likewise.
17563         * modules/unictype/property-non-break: Likewise.
17564         * modules/unictype/property-not-a-character: Likewise.
17565         * modules/unictype/property-numeric: Likewise.
17566         * modules/unictype/property-other-alphabetic: Likewise.
17567         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
17568         * modules/unictype/property-other-grapheme-extend: Likewise.
17569         * modules/unictype/property-other-id-continue: Likewise.
17570         * modules/unictype/property-other-id-start: Likewise.
17571         * modules/unictype/property-other-lowercase: Likewise.
17572         * modules/unictype/property-other-math: Likewise.
17573         * modules/unictype/property-other-uppercase: Likewise.
17574         * modules/unictype/property-paired-punctuation: Likewise.
17575         * modules/unictype/property-paragraph-separator: Likewise.
17576         * modules/unictype/property-pattern-syntax: Likewise.
17577         * modules/unictype/property-pattern-white-space: Likewise.
17578         * modules/unictype/property-private-use: Likewise.
17579         * modules/unictype/property-punctuation: Likewise.
17580         * modules/unictype/property-quotation-mark: Likewise.
17581         * modules/unictype/property-radical: Likewise.
17582         * modules/unictype/property-sentence-terminal: Likewise.
17583         * modules/unictype/property-soft-dotted: Likewise.
17584         * modules/unictype/property-space: Likewise.
17585         * modules/unictype/property-terminal-punctuation: Likewise.
17586         * modules/unictype/property-test: Likewise.
17587         * modules/unictype/property-titlecase: Likewise.
17588         * modules/unictype/property-unassigned-code-value: Likewise.
17589         * modules/unictype/property-unified-ideograph: Likewise.
17590         * modules/unictype/property-uppercase: Likewise.
17591         * modules/unictype/property-variation-selector: Likewise.
17592         * modules/unictype/property-white-space: Likewise.
17593         * modules/unictype/property-xid-continue: Likewise.
17594         * modules/unictype/property-xid-start: Likewise.
17595         * modules/unictype/property-zero-width: Likewise.
17596         * modules/unictype/scripts: Likewise.
17597         * modules/unictype/syntax-c-ident: Likewise.
17598         * modules/unictype/syntax-c-whitespace: Likewise.
17599         * modules/unictype/syntax-java-ident: Likewise.
17600         * modules/unictype/syntax-java-whitespace: Likewise.
17601         * modules/unilbrk/u8-possible-linebreaks: Likewise.
17602         * modules/unilbrk/u8-width-linebreaks: Likewise.
17603         * modules/unilbrk/u16-possible-linebreaks: Likewise.
17604         * modules/unilbrk/u16-width-linebreaks: Likewise.
17605         * modules/unilbrk/u32-possible-linebreaks: Likewise.
17606         * modules/unilbrk/u32-width-linebreaks: Likewise.
17607         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
17608         * modules/unilbrk/ulc-width-linebreaks: Likewise.
17609         * modules/uniname/uniname: Likewise.
17610         * modules/uninorm/canonical-decomposition: Likewise.
17611         * modules/uninorm/composition: Likewise.
17612         * modules/uninorm/decomposing-form: Likewise.
17613         * modules/uninorm/decomposition: Likewise.
17614         * modules/uninorm/filter: Likewise.
17615         * modules/uninorm/nfc: Likewise.
17616         * modules/uninorm/nfd: Likewise.
17617         * modules/uninorm/nfkc: Likewise.
17618         * modules/uninorm/nfkd: Likewise.
17619         * modules/uninorm/u8-normalize: Likewise.
17620         * modules/uninorm/u8-normcmp: Likewise.
17621         * modules/uninorm/u8-normcoll: Likewise.
17622         * modules/uninorm/u8-normxfrm: Likewise.
17623         * modules/uninorm/u16-normalize: Likewise.
17624         * modules/uninorm/u16-normcmp: Likewise.
17625         * modules/uninorm/u16-normcoll: Likewise.
17626         * modules/uninorm/u16-normxfrm: Likewise.
17627         * modules/uninorm/u32-normalize: Likewise.
17628         * modules/uninorm/u32-normcmp: Likewise.
17629         * modules/uninorm/u32-normcoll: Likewise.
17630         * modules/uninorm/u32-normxfrm: Likewise.
17631         * modules/unistdio/u8-asnprintf: Likewise.
17632         * modules/unistdio/u8-asprintf: Likewise.
17633         * modules/unistdio/u8-snprintf: Likewise.
17634         * modules/unistdio/u8-sprintf: Likewise.
17635         * modules/unistdio/u8-u8-asnprintf: Likewise.
17636         * modules/unistdio/u8-u8-asprintf: Likewise.
17637         * modules/unistdio/u8-u8-snprintf: Likewise.
17638         * modules/unistdio/u8-u8-sprintf: Likewise.
17639         * modules/unistdio/u8-u8-vasnprintf: Likewise.
17640         * modules/unistdio/u8-u8-vasprintf: Likewise.
17641         * modules/unistdio/u8-u8-vsnprintf: Likewise.
17642         * modules/unistdio/u8-u8-vsprintf: Likewise.
17643         * modules/unistdio/u8-vasnprintf: Likewise.
17644         * modules/unistdio/u8-vasprintf: Likewise.
17645         * modules/unistdio/u8-vsnprintf: Likewise.
17646         * modules/unistdio/u8-vsprintf: Likewise.
17647         * modules/unistdio/u16-asnprintf: Likewise.
17648         * modules/unistdio/u16-asprintf: Likewise.
17649         * modules/unistdio/u16-snprintf: Likewise.
17650         * modules/unistdio/u16-sprintf: Likewise.
17651         * modules/unistdio/u16-u16-asnprintf: Likewise.
17652         * modules/unistdio/u16-u16-asprintf: Likewise.
17653         * modules/unistdio/u16-u16-snprintf: Likewise.
17654         * modules/unistdio/u16-u16-sprintf: Likewise.
17655         * modules/unistdio/u16-u16-vasnprintf: Likewise.
17656         * modules/unistdio/u16-u16-vasprintf: Likewise.
17657         * modules/unistdio/u16-u16-vsnprintf: Likewise.
17658         * modules/unistdio/u16-u16-vsprintf: Likewise.
17659         * modules/unistdio/u16-vasnprintf: Likewise.
17660         * modules/unistdio/u16-vasprintf: Likewise.
17661         * modules/unistdio/u16-vsnprintf: Likewise.
17662         * modules/unistdio/u16-vsprintf: Likewise.
17663         * modules/unistdio/u32-asnprintf: Likewise.
17664         * modules/unistdio/u32-asprintf: Likewise.
17665         * modules/unistdio/u32-snprintf: Likewise.
17666         * modules/unistdio/u32-sprintf: Likewise.
17667         * modules/unistdio/u32-u32-asnprintf: Likewise.
17668         * modules/unistdio/u32-u32-asprintf: Likewise.
17669         * modules/unistdio/u32-u32-snprintf: Likewise.
17670         * modules/unistdio/u32-u32-sprintf: Likewise.
17671         * modules/unistdio/u32-u32-vasnprintf: Likewise.
17672         * modules/unistdio/u32-u32-vasprintf: Likewise.
17673         * modules/unistdio/u32-u32-vsnprintf: Likewise.
17674         * modules/unistdio/u32-u32-vsprintf: Likewise.
17675         * modules/unistdio/u32-vasnprintf: Likewise.
17676         * modules/unistdio/u32-vasprintf: Likewise.
17677         * modules/unistdio/u32-vsnprintf: Likewise.
17678         * modules/unistdio/u32-vsprintf: Likewise.
17679         * modules/unistdio/ulc-asnprintf: Likewise.
17680         * modules/unistdio/ulc-asprintf: Likewise.
17681         * modules/unistdio/ulc-fprintf: Likewise.
17682         * modules/unistdio/ulc-snprintf: Likewise.
17683         * modules/unistdio/ulc-sprintf: Likewise.
17684         * modules/unistdio/ulc-vasnprintf: Likewise.
17685         * modules/unistdio/ulc-vasprintf: Likewise.
17686         * modules/unistdio/ulc-vfprintf: Likewise.
17687         * modules/unistdio/ulc-vsnprintf: Likewise.
17688         * modules/unistdio/ulc-vsprintf: Likewise.
17689         * modules/unistr/u8-check: Likewise.
17690         * modules/unistr/u8-chr: Likewise.
17691         * modules/unistr/u8-cmp: Likewise.
17692         * modules/unistr/u8-cmp2: Likewise.
17693         * modules/unistr/u8-cpy: Likewise.
17694         * modules/unistr/u8-cpy-alloc: Likewise.
17695         * modules/unistr/u8-endswith: Likewise.
17696         * modules/unistr/u8-mblen: Likewise.
17697         * modules/unistr/u8-mbsnlen: Likewise.
17698         * modules/unistr/u8-mbtouc: Likewise.
17699         * modules/unistr/u8-mbtouc-unsafe: Likewise.
17700         * modules/unistr/u8-mbtoucr: Likewise.
17701         * modules/unistr/u8-move: Likewise.
17702         * modules/unistr/u8-next: Likewise.
17703         * modules/unistr/u8-prev: Likewise.
17704         * modules/unistr/u8-set: Likewise.
17705         * modules/unistr/u8-startswith: Likewise.
17706         * modules/unistr/u8-stpcpy: Likewise.
17707         * modules/unistr/u8-stpncpy: Likewise.
17708         * modules/unistr/u8-strcat: Likewise.
17709         * modules/unistr/u8-strchr: Likewise.
17710         * modules/unistr/u8-strcmp: Likewise.
17711         * modules/unistr/u8-strcoll: Likewise.
17712         * modules/unistr/u8-strcpy: Likewise.
17713         * modules/unistr/u8-strcspn: Likewise.
17714         * modules/unistr/u8-strdup: Likewise.
17715         * modules/unistr/u8-strlen: Likewise.
17716         * modules/unistr/u8-strmblen: Likewise.
17717         * modules/unistr/u8-strmbtouc: Likewise.
17718         * modules/unistr/u8-strncat: Likewise.
17719         * modules/unistr/u8-strncmp: Likewise.
17720         * modules/unistr/u8-strncpy: Likewise.
17721         * modules/unistr/u8-strnlen: Likewise.
17722         * modules/unistr/u8-strpbrk: Likewise.
17723         * modules/unistr/u8-strrchr: Likewise.
17724         * modules/unistr/u8-strspn: Likewise.
17725         * modules/unistr/u8-strstr: Likewise.
17726         * modules/unistr/u8-strtok: Likewise.
17727         * modules/unistr/u8-to-u16: Likewise.
17728         * modules/unistr/u8-to-u32: Likewise.
17729         * modules/unistr/u8-uctomb: Likewise.
17730         * modules/unistr/u16-check: Likewise.
17731         * modules/unistr/u16-chr: Likewise.
17732         * modules/unistr/u16-cmp: Likewise.
17733         * modules/unistr/u16-cmp2: Likewise.
17734         * modules/unistr/u16-cpy: Likewise.
17735         * modules/unistr/u16-cpy-alloc: Likewise.
17736         * modules/unistr/u16-endswith: Likewise.
17737         * modules/unistr/u16-mblen: Likewise.
17738         * modules/unistr/u16-mbsnlen: Likewise.
17739         * modules/unistr/u16-mbtouc: Likewise.
17740         * modules/unistr/u16-mbtouc-unsafe: Likewise.
17741         * modules/unistr/u16-mbtoucr: Likewise.
17742         * modules/unistr/u16-move: Likewise.
17743         * modules/unistr/u16-next: Likewise.
17744         * modules/unistr/u16-prev: Likewise.
17745         * modules/unistr/u16-set: Likewise.
17746         * modules/unistr/u16-startswith: Likewise.
17747         * modules/unistr/u16-stpcpy: Likewise.
17748         * modules/unistr/u16-stpncpy: Likewise.
17749         * modules/unistr/u16-strcat: Likewise.
17750         * modules/unistr/u16-strchr: Likewise.
17751         * modules/unistr/u16-strcmp: Likewise.
17752         * modules/unistr/u16-strcoll: Likewise.
17753         * modules/unistr/u16-strcpy: Likewise.
17754         * modules/unistr/u16-strcspn: Likewise.
17755         * modules/unistr/u16-strdup: Likewise.
17756         * modules/unistr/u16-strlen: Likewise.
17757         * modules/unistr/u16-strmblen: Likewise.
17758         * modules/unistr/u16-strmbtouc: Likewise.
17759         * modules/unistr/u16-strncat: Likewise.
17760         * modules/unistr/u16-strncmp: Likewise.
17761         * modules/unistr/u16-strncpy: Likewise.
17762         * modules/unistr/u16-strnlen: Likewise.
17763         * modules/unistr/u16-strpbrk: Likewise.
17764         * modules/unistr/u16-strrchr: Likewise.
17765         * modules/unistr/u16-strspn: Likewise.
17766         * modules/unistr/u16-strstr: Likewise.
17767         * modules/unistr/u16-strtok: Likewise.
17768         * modules/unistr/u16-to-u32: Likewise.
17769         * modules/unistr/u16-to-u8: Likewise.
17770         * modules/unistr/u16-uctomb: Likewise.
17771         * modules/unistr/u32-check: Likewise.
17772         * modules/unistr/u32-chr: Likewise.
17773         * modules/unistr/u32-cmp: Likewise.
17774         * modules/unistr/u32-cmp2: Likewise.
17775         * modules/unistr/u32-cpy: Likewise.
17776         * modules/unistr/u32-cpy-alloc: Likewise.
17777         * modules/unistr/u32-endswith: Likewise.
17778         * modules/unistr/u32-mblen: Likewise.
17779         * modules/unistr/u32-mbsnlen: Likewise.
17780         * modules/unistr/u32-mbtouc: Likewise.
17781         * modules/unistr/u32-mbtouc-unsafe: Likewise.
17782         * modules/unistr/u32-mbtoucr: Likewise.
17783         * modules/unistr/u32-move: Likewise.
17784         * modules/unistr/u32-next: Likewise.
17785         * modules/unistr/u32-prev: Likewise.
17786         * modules/unistr/u32-set: Likewise.
17787         * modules/unistr/u32-startswith: Likewise.
17788         * modules/unistr/u32-stpcpy: Likewise.
17789         * modules/unistr/u32-stpncpy: Likewise.
17790         * modules/unistr/u32-strcat: Likewise.
17791         * modules/unistr/u32-strchr: Likewise.
17792         * modules/unistr/u32-strcmp: Likewise.
17793         * modules/unistr/u32-strcoll: Likewise.
17794         * modules/unistr/u32-strcpy: Likewise.
17795         * modules/unistr/u32-strcspn: Likewise.
17796         * modules/unistr/u32-strdup: Likewise.
17797         * modules/unistr/u32-strlen: Likewise.
17798         * modules/unistr/u32-strmblen: Likewise.
17799         * modules/unistr/u32-strmbtouc: Likewise.
17800         * modules/unistr/u32-strncat: Likewise.
17801         * modules/unistr/u32-strncmp: Likewise.
17802         * modules/unistr/u32-strncpy: Likewise.
17803         * modules/unistr/u32-strnlen: Likewise.
17804         * modules/unistr/u32-strpbrk: Likewise.
17805         * modules/unistr/u32-strrchr: Likewise.
17806         * modules/unistr/u32-strspn: Likewise.
17807         * modules/unistr/u32-strstr: Likewise.
17808         * modules/unistr/u32-strtok: Likewise.
17809         * modules/unistr/u32-to-u16: Likewise.
17810         * modules/unistr/u32-to-u8: Likewise.
17811         * modules/unistr/u32-uctomb: Likewise.
17812         * modules/uniwbrk/u8-wordbreaks: Likewise.
17813         * modules/uniwbrk/u16-wordbreaks: Likewise.
17814         * modules/uniwbrk/u32-wordbreaks: Likewise.
17815         * modules/uniwbrk/ulc-wordbreaks: Likewise.
17816         * modules/uniwbrk/wordbreak-property: Likewise.
17817         * modules/uniwidth/u8-strwidth: Likewise.
17818         * modules/uniwidth/u8-width: Likewise.
17819         * modules/uniwidth/u16-strwidth: Likewise.
17820         * modules/uniwidth/u16-width: Likewise.
17821         * modules/uniwidth/u32-strwidth: Likewise.
17822         * modules/uniwidth/u32-width: Likewise.
17823         * modules/uniwidth/width: Likewise.
17824         * modules/unicase/cased-tests (Makefile.am): Link all test programs
17825         with $(LIBUNISTRING).
17826         * modules/unicase/ignorable-tests: Likewise.
17827         * modules/unicase/locale-language-tests: Likewise.
17828         * modules/unicase/tolower-tests: Likewise.
17829         * modules/unicase/totitle-tests: Likewise.
17830         * modules/unicase/toupper-tests: Likewise.
17831         * modules/unicase/u8-casecmp-tests: Likewise.
17832         * modules/unicase/u8-casecoll-tests: Likewise.
17833         * modules/unicase/u8-casefold-tests: Likewise.
17834         * modules/unicase/u8-is-cased-tests: Likewise.
17835         * modules/unicase/u8-is-casefolded-tests: Likewise.
17836         * modules/unicase/u8-is-lowercase-tests: Likewise.
17837         * modules/unicase/u8-is-titlecase-tests: Likewise.
17838         * modules/unicase/u8-is-uppercase-tests: Likewise.
17839         * modules/unicase/u8-tolower-tests: Likewise.
17840         * modules/unicase/u8-totitle-tests: Likewise.
17841         * modules/unicase/u8-toupper-tests: Likewise.
17842         * modules/unicase/u16-casecmp-tests: Likewise.
17843         * modules/unicase/u16-casecoll-tests: Likewise.
17844         * modules/unicase/u16-casefold-tests: Likewise.
17845         * modules/unicase/u16-is-cased-tests: Likewise.
17846         * modules/unicase/u16-is-casefolded-tests: Likewise.
17847         * modules/unicase/u16-is-lowercase-tests: Likewise.
17848         * modules/unicase/u16-is-titlecase-tests: Likewise.
17849         * modules/unicase/u16-is-uppercase-tests: Likewise.
17850         * modules/unicase/u16-tolower-tests: Likewise.
17851         * modules/unicase/u16-totitle-tests: Likewise.
17852         * modules/unicase/u16-toupper-tests: Likewise.
17853         * modules/unicase/u32-casecmp-tests: Likewise.
17854         * modules/unicase/u32-casecoll-tests: Likewise.
17855         * modules/unicase/u32-casefold-tests: Likewise.
17856         * modules/unicase/u32-is-cased-tests: Likewise.
17857         * modules/unicase/u32-is-casefolded-tests: Likewise.
17858         * modules/unicase/u32-is-lowercase-tests: Likewise.
17859         * modules/unicase/u32-is-titlecase-tests: Likewise.
17860         * modules/unicase/u32-is-uppercase-tests: Likewise.
17861         * modules/unicase/u32-tolower-tests: Likewise.
17862         * modules/unicase/u32-totitle-tests: Likewise.
17863         * modules/unicase/u32-toupper-tests: Likewise.
17864         * modules/unicase/ulc-casecmp-tests: Likewise.
17865         * modules/unicase/ulc-casecoll-tests: Likewise.
17866         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
17867         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
17868         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
17869         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
17870         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
17871         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
17872         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
17873         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
17874         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
17875         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
17876         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
17877         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
17878         * modules/unictype/bidicategory-byname-tests: Likewise.
17879         * modules/unictype/bidicategory-name-tests: Likewise.
17880         * modules/unictype/bidicategory-of-tests: Likewise.
17881         * modules/unictype/bidicategory-test-tests: Likewise.
17882         * modules/unictype/block-list-tests: Likewise.
17883         * modules/unictype/block-of-tests: Likewise.
17884         * modules/unictype/block-test-tests: Likewise.
17885         * modules/unictype/category-C-tests: Likewise.
17886         * modules/unictype/category-Cc-tests: Likewise.
17887         * modules/unictype/category-Cf-tests: Likewise.
17888         * modules/unictype/category-Cn-tests: Likewise.
17889         * modules/unictype/category-Co-tests: Likewise.
17890         * modules/unictype/category-Cs-tests: Likewise.
17891         * modules/unictype/category-L-tests: Likewise.
17892         * modules/unictype/category-Ll-tests: Likewise.
17893         * modules/unictype/category-Lm-tests: Likewise.
17894         * modules/unictype/category-Lo-tests: Likewise.
17895         * modules/unictype/category-Lt-tests: Likewise.
17896         * modules/unictype/category-Lu-tests: Likewise.
17897         * modules/unictype/category-M-tests: Likewise.
17898         * modules/unictype/category-Mc-tests: Likewise.
17899         * modules/unictype/category-Me-tests: Likewise.
17900         * modules/unictype/category-Mn-tests: Likewise.
17901         * modules/unictype/category-N-tests: Likewise.
17902         * modules/unictype/category-Nd-tests: Likewise.
17903         * modules/unictype/category-Nl-tests: Likewise.
17904         * modules/unictype/category-No-tests: Likewise.
17905         * modules/unictype/category-P-tests: Likewise.
17906         * modules/unictype/category-Pc-tests: Likewise.
17907         * modules/unictype/category-Pd-tests: Likewise.
17908         * modules/unictype/category-Pe-tests: Likewise.
17909         * modules/unictype/category-Pf-tests: Likewise.
17910         * modules/unictype/category-Pi-tests: Likewise.
17911         * modules/unictype/category-Po-tests: Likewise.
17912         * modules/unictype/category-Ps-tests: Likewise.
17913         * modules/unictype/category-S-tests: Likewise.
17914         * modules/unictype/category-Sc-tests: Likewise.
17915         * modules/unictype/category-Sk-tests: Likewise.
17916         * modules/unictype/category-Sm-tests: Likewise.
17917         * modules/unictype/category-So-tests: Likewise.
17918         * modules/unictype/category-Z-tests: Likewise.
17919         * modules/unictype/category-Zl-tests: Likewise.
17920         * modules/unictype/category-Zp-tests: Likewise.
17921         * modules/unictype/category-Zs-tests: Likewise.
17922         * modules/unictype/category-and-not-tests: Likewise.
17923         * modules/unictype/category-and-tests: Likewise.
17924         * modules/unictype/category-byname-tests: Likewise.
17925         * modules/unictype/category-name-tests: Likewise.
17926         * modules/unictype/category-none-tests: Likewise.
17927         * modules/unictype/category-of-tests: Likewise.
17928         * modules/unictype/category-or-tests: Likewise.
17929         * modules/unictype/category-test-withtable-tests: Likewise.
17930         * modules/unictype/combining-class-tests: Likewise.
17931         * modules/unictype/ctype-alnum-tests: Likewise.
17932         * modules/unictype/ctype-alpha-tests: Likewise.
17933         * modules/unictype/ctype-blank-tests: Likewise.
17934         * modules/unictype/ctype-cntrl-tests: Likewise.
17935         * modules/unictype/ctype-digit-tests: Likewise.
17936         * modules/unictype/ctype-graph-tests: Likewise.
17937         * modules/unictype/ctype-lower-tests: Likewise.
17938         * modules/unictype/ctype-print-tests: Likewise.
17939         * modules/unictype/ctype-punct-tests: Likewise.
17940         * modules/unictype/ctype-space-tests: Likewise.
17941         * modules/unictype/ctype-upper-tests: Likewise.
17942         * modules/unictype/ctype-xdigit-tests: Likewise.
17943         * modules/unictype/decimal-digit-tests: Likewise.
17944         * modules/unictype/digit-tests: Likewise.
17945         * modules/unictype/mirror-tests: Likewise.
17946         * modules/unictype/numeric-tests: Likewise.
17947         * modules/unictype/property-alphabetic-tests: Likewise.
17948         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
17949         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
17950         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
17951         * modules/unictype/property-bidi-block-separator-tests: Likewise.
17952         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
17953         * modules/unictype/property-bidi-common-separator-tests: Likewise.
17954         * modules/unictype/property-bidi-control-tests: Likewise.
17955         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
17956         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
17957         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
17958         * modules/unictype/property-bidi-european-digit-tests: Likewise.
17959         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
17960         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
17961         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
17962         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
17963         * modules/unictype/property-bidi-pdf-tests: Likewise.
17964         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
17965         * modules/unictype/property-bidi-whitespace-tests: Likewise.
17966         * modules/unictype/property-byname-tests: Likewise.
17967         * modules/unictype/property-combining-tests: Likewise.
17968         * modules/unictype/property-composite-tests: Likewise.
17969         * modules/unictype/property-currency-symbol-tests: Likewise.
17970         * modules/unictype/property-dash-tests: Likewise.
17971         * modules/unictype/property-decimal-digit-tests: Likewise.
17972         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
17973         * modules/unictype/property-deprecated-tests: Likewise.
17974         * modules/unictype/property-diacritic-tests: Likewise.
17975         * modules/unictype/property-extender-tests: Likewise.
17976         * modules/unictype/property-format-control-tests: Likewise.
17977         * modules/unictype/property-grapheme-base-tests: Likewise.
17978         * modules/unictype/property-grapheme-extend-tests: Likewise.
17979         * modules/unictype/property-grapheme-link-tests: Likewise.
17980         * modules/unictype/property-hex-digit-tests: Likewise.
17981         * modules/unictype/property-hyphen-tests: Likewise.
17982         * modules/unictype/property-id-continue-tests: Likewise.
17983         * modules/unictype/property-id-start-tests: Likewise.
17984         * modules/unictype/property-ideographic-tests: Likewise.
17985         * modules/unictype/property-ids-binary-operator-tests: Likewise.
17986         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
17987         * modules/unictype/property-ignorable-control-tests: Likewise.
17988         * modules/unictype/property-iso-control-tests: Likewise.
17989         * modules/unictype/property-join-control-tests: Likewise.
17990         * modules/unictype/property-left-of-pair-tests: Likewise.
17991         * modules/unictype/property-line-separator-tests: Likewise.
17992         * modules/unictype/property-logical-order-exception-tests: Likewise.
17993         * modules/unictype/property-lowercase-tests: Likewise.
17994         * modules/unictype/property-math-tests: Likewise.
17995         * modules/unictype/property-non-break-tests: Likewise.
17996         * modules/unictype/property-not-a-character-tests: Likewise.
17997         * modules/unictype/property-numeric-tests: Likewise.
17998         * modules/unictype/property-other-alphabetic-tests: Likewise.
17999         * modules/unictype/property-other-default-ignorable-code-point-tests:
18000         Likewise.
18001         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
18002         * modules/unictype/property-other-id-continue-tests: Likewise.
18003         * modules/unictype/property-other-id-start-tests: Likewise.
18004         * modules/unictype/property-other-lowercase-tests: Likewise.
18005         * modules/unictype/property-other-math-tests: Likewise.
18006         * modules/unictype/property-other-uppercase-tests: Likewise.
18007         * modules/unictype/property-paired-punctuation-tests: Likewise.
18008         * modules/unictype/property-paragraph-separator-tests: Likewise.
18009         * modules/unictype/property-pattern-syntax-tests: Likewise.
18010         * modules/unictype/property-pattern-white-space-tests: Likewise.
18011         * modules/unictype/property-private-use-tests: Likewise.
18012         * modules/unictype/property-punctuation-tests: Likewise.
18013         * modules/unictype/property-quotation-mark-tests: Likewise.
18014         * modules/unictype/property-radical-tests: Likewise.
18015         * modules/unictype/property-sentence-terminal-tests: Likewise.
18016         * modules/unictype/property-soft-dotted-tests: Likewise.
18017         * modules/unictype/property-space-tests: Likewise.
18018         * modules/unictype/property-terminal-punctuation-tests: Likewise.
18019         * modules/unictype/property-test-tests: Likewise.
18020         * modules/unictype/property-titlecase-tests: Likewise.
18021         * modules/unictype/property-unassigned-code-value-tests: Likewise.
18022         * modules/unictype/property-unified-ideograph-tests: Likewise.
18023         * modules/unictype/property-uppercase-tests: Likewise.
18024         * modules/unictype/property-variation-selector-tests: Likewise.
18025         * modules/unictype/property-white-space-tests: Likewise.
18026         * modules/unictype/property-xid-continue-tests: Likewise.
18027         * modules/unictype/property-xid-start-tests: Likewise.
18028         * modules/unictype/property-zero-width-tests: Likewise.
18029         * modules/unictype/scripts-tests: Likewise.
18030         * modules/unictype/syntax-c-ident-tests: Likewise.
18031         * modules/unictype/syntax-c-whitespace-tests: Likewise.
18032         * modules/unictype/syntax-java-ident-tests: Likewise.
18033         * modules/unictype/syntax-java-whitespace-tests: Likewise.
18034         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
18035         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
18036         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
18037         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
18038         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
18039         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
18040         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
18041         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
18042         * modules/uniname/uniname-tests: Likewise.
18043         * modules/uninorm/canonical-decomposition-tests: Likewise.
18044         * modules/uninorm/compat-decomposition-tests: Likewise.
18045         * modules/uninorm/composition-tests: Likewise.
18046         * modules/uninorm/decomposing-form-tests: Likewise.
18047         * modules/uninorm/decomposition-tests: Likewise.
18048         * modules/uninorm/filter-tests: Likewise.
18049         * modules/uninorm/nfc-tests: Likewise.
18050         * modules/uninorm/nfd-tests: Likewise.
18051         * modules/uninorm/nfkc-tests: Likewise.
18052         * modules/uninorm/nfkd-tests: Likewise.
18053         * modules/uninorm/u8-normcmp-tests: Likewise.
18054         * modules/uninorm/u8-normcoll-tests: Likewise.
18055         * modules/uninorm/u16-normcmp-tests: Likewise.
18056         * modules/uninorm/u16-normcoll-tests: Likewise.
18057         * modules/uninorm/u32-normcmp-tests: Likewise.
18058         * modules/uninorm/u32-normcoll-tests: Likewise.
18059         * modules/unistdio/u8-asnprintf-tests: Likewise.
18060         * modules/unistdio/u8-vasnprintf-tests: Likewise.
18061         * modules/unistdio/u8-vasprintf-tests: Likewise.
18062         * modules/unistdio/u8-vsnprintf-tests: Likewise.
18063         * modules/unistdio/u8-vsprintf-tests: Likewise.
18064         * modules/unistdio/u16-asnprintf-tests: Likewise.
18065         * modules/unistdio/u16-vasnprintf-tests: Likewise.
18066         * modules/unistdio/u16-vasprintf-tests: Likewise.
18067         * modules/unistdio/u16-vsnprintf-tests: Likewise.
18068         * modules/unistdio/u16-vsprintf-tests: Likewise.
18069         * modules/unistdio/u32-asnprintf-tests: Likewise.
18070         * modules/unistdio/u32-vasnprintf-tests: Likewise.
18071         * modules/unistdio/u32-vasprintf-tests: Likewise.
18072         * modules/unistdio/u32-vsnprintf-tests: Likewise.
18073         * modules/unistdio/u32-vsprintf-tests: Likewise.
18074         * modules/unistdio/ulc-asnprintf-tests: Likewise.
18075         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
18076         * modules/unistdio/ulc-vasprintf-tests: Likewise.
18077         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
18078         * modules/unistdio/ulc-vsprintf-tests: Likewise.
18079         * modules/unistr/u8-check-tests: Likewise.
18080         * modules/unistr/u8-chr-tests: Likewise.
18081         * modules/unistr/u8-cmp-tests: Likewise.
18082         * modules/unistr/u8-cmp2-tests: Likewise.
18083         * modules/unistr/u8-cpy-alloc-tests: Likewise.
18084         * modules/unistr/u8-cpy-tests: Likewise.
18085         * modules/unistr/u8-mblen-tests: Likewise.
18086         * modules/unistr/u8-mbsnlen-tests: Likewise.
18087         * modules/unistr/u8-mbtouc-tests: Likewise.
18088         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
18089         * modules/unistr/u8-mbtoucr-tests: Likewise.
18090         * modules/unistr/u8-move-tests: Likewise.
18091         * modules/unistr/u8-next-tests: Likewise.
18092         * modules/unistr/u8-prev-tests: Likewise.
18093         * modules/unistr/u8-set-tests: Likewise.
18094         * modules/unistr/u8-stpcpy-tests: Likewise.
18095         * modules/unistr/u8-stpncpy-tests: Likewise.
18096         * modules/unistr/u8-strcat-tests: Likewise.
18097         * modules/unistr/u8-strcmp-tests: Likewise.
18098         * modules/unistr/u8-strcoll-tests: Likewise.
18099         * modules/unistr/u8-strcpy-tests: Likewise.
18100         * modules/unistr/u8-strdup-tests: Likewise.
18101         * modules/unistr/u8-strlen-tests: Likewise.
18102         * modules/unistr/u8-strmblen-tests: Likewise.
18103         * modules/unistr/u8-strmbtouc-tests: Likewise.
18104         * modules/unistr/u8-strncat-tests: Likewise.
18105         * modules/unistr/u8-strncmp-tests: Likewise.
18106         * modules/unistr/u8-strncpy-tests: Likewise.
18107         * modules/unistr/u8-strnlen-tests: Likewise.
18108         * modules/unistr/u8-to-u16-tests: Likewise.
18109         * modules/unistr/u8-to-u32-tests: Likewise.
18110         * modules/unistr/u8-uctomb-tests: Likewise.
18111         * modules/unistr/u16-check-tests: Likewise.
18112         * modules/unistr/u16-chr-tests: Likewise.
18113         * modules/unistr/u16-cmp-tests: Likewise.
18114         * modules/unistr/u16-cmp2-tests: Likewise.
18115         * modules/unistr/u16-cpy-alloc-tests: Likewise.
18116         * modules/unistr/u16-cpy-tests: Likewise.
18117         * modules/unistr/u16-mblen-tests: Likewise.
18118         * modules/unistr/u16-mbsnlen-tests: Likewise.
18119         * modules/unistr/u16-mbtouc-tests: Likewise.
18120         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
18121         * modules/unistr/u16-mbtoucr-tests: Likewise.
18122         * modules/unistr/u16-move-tests: Likewise.
18123         * modules/unistr/u16-next-tests: Likewise.
18124         * modules/unistr/u16-prev-tests: Likewise.
18125         * modules/unistr/u16-set-tests: Likewise.
18126         * modules/unistr/u16-stpcpy-tests: Likewise.
18127         * modules/unistr/u16-stpncpy-tests: Likewise.
18128         * modules/unistr/u16-strcat-tests: Likewise.
18129         * modules/unistr/u16-strcmp-tests: Likewise.
18130         * modules/unistr/u16-strcoll-tests: Likewise.
18131         * modules/unistr/u16-strcpy-tests: Likewise.
18132         * modules/unistr/u16-strdup-tests: Likewise.
18133         * modules/unistr/u16-strlen-tests: Likewise.
18134         * modules/unistr/u16-strmblen-tests: Likewise.
18135         * modules/unistr/u16-strmbtouc-tests: Likewise.
18136         * modules/unistr/u16-strncat-tests: Likewise.
18137         * modules/unistr/u16-strncmp-tests: Likewise.
18138         * modules/unistr/u16-strncpy-tests: Likewise.
18139         * modules/unistr/u16-strnlen-tests: Likewise.
18140         * modules/unistr/u16-to-u32-tests: Likewise.
18141         * modules/unistr/u16-to-u8-tests: Likewise.
18142         * modules/unistr/u16-uctomb-tests: Likewise.
18143         * modules/unistr/u32-check-tests: Likewise.
18144         * modules/unistr/u32-chr-tests: Likewise.
18145         * modules/unistr/u32-cmp-tests: Likewise.
18146         * modules/unistr/u32-cmp2-tests: Likewise.
18147         * modules/unistr/u32-cpy-alloc-tests: Likewise.
18148         * modules/unistr/u32-cpy-tests: Likewise.
18149         * modules/unistr/u32-mblen-tests: Likewise.
18150         * modules/unistr/u32-mbsnlen-tests: Likewise.
18151         * modules/unistr/u32-mbtouc-tests: Likewise.
18152         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
18153         * modules/unistr/u32-mbtoucr-tests: Likewise.
18154         * modules/unistr/u32-move-tests: Likewise.
18155         * modules/unistr/u32-next-tests: Likewise.
18156         * modules/unistr/u32-prev-tests: Likewise.
18157         * modules/unistr/u32-set-tests: Likewise.
18158         * modules/unistr/u32-stpcpy-tests: Likewise.
18159         * modules/unistr/u32-stpncpy-tests: Likewise.
18160         * modules/unistr/u32-strcat-tests: Likewise.
18161         * modules/unistr/u32-strcmp-tests: Likewise.
18162         * modules/unistr/u32-strcoll-tests: Likewise.
18163         * modules/unistr/u32-strcpy-tests: Likewise.
18164         * modules/unistr/u32-strdup-tests: Likewise.
18165         * modules/unistr/u32-strlen-tests: Likewise.
18166         * modules/unistr/u32-strmblen-tests: Likewise.
18167         * modules/unistr/u32-strmbtouc-tests: Likewise.
18168         * modules/unistr/u32-strncat-tests: Likewise.
18169         * modules/unistr/u32-strncmp-tests: Likewise.
18170         * modules/unistr/u32-strncpy-tests: Likewise.
18171         * modules/unistr/u32-strnlen-tests: Likewise.
18172         * modules/unistr/u32-to-u16-tests: Likewise.
18173         * modules/unistr/u32-to-u8-tests: Likewise.
18174         * modules/unistr/u32-uctomb-tests: Likewise.
18175         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
18176         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
18177         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
18178         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
18179         * modules/uniwidth/u8-strwidth-tests: Likewise.
18180         * modules/uniwidth/u8-width-tests: Likewise.
18181         * modules/uniwidth/u16-strwidth-tests: Likewise.
18182         * modules/uniwidth/u16-width-tests: Likewise.
18183         * modules/uniwidth/u32-strwidth-tests: Likewise.
18184         * modules/uniwidth/u32-width-tests: Likewise.
18185         * modules/uniwidth/width-tests: Likewise.
18186
18187 2010-05-18  Richard Jones  <rjones@redhat.com>
18188
18189         doc: users.txt: list hivex
18190         * users.txt: Add hivex.
18191
18192 2010-05-18  Richard Jones  <rjones@redhat.com>
18193
18194         doc: users.txt: list febootstrap
18195         * users.txt: Add febootstrap.
18196
18197 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
18198
18199         bootstrap: fix an error when gnulib is not used as a git submodule
18200         * build-aux/bootstrap (gnulib_path): If its length is zero then
18201         assign "gnulib" to it.
18202         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
18203
18204 2010-05-16  Bruno Haible  <bruno@clisp.org>
18205
18206         Avoid autoconf warnings about AM_ICONV.
18207         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
18208         2.64.
18209
18210 2010-05-16  Bruno Haible  <bruno@clisp.org>
18211
18212         absolute-header: Make the macro usable in more situations.
18213         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
18214         from gl_ABSOLUTE_HEADER.
18215         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
18216
18217 2010-05-16  James Youngman  <jay@gnu.org>
18218
18219         doc: update users.txt
18220         * users.txt: Add CSSC.
18221
18222 2010-05-16  Jim Meyering  <meyering@redhat.com>
18223
18224         init.sh: fix an error in the previous change; add more comments
18225         * tests/init.sh: Compare exit code in loop against 9, not 2.
18226         Patch by Bruno Haible.
18227         Make the two tests more similar by adding an empty "then" clause.
18228         Add comments.
18229
18230         init.sh: avoid unnecessary shell re-exec
18231         * tests/init.sh: Improve the re-exec-required check to first test the
18232         current shell.  If it passes the test, do not search for a shell that
18233         does pass, and do not re-exec.  This test is particularly contorted to
18234         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
18235         of $(...) evokes a syntax error and causes immediate shell exit with
18236         status 2.  Bruno Haible reported that the re-exec made it impossible
18237         to single-step through any init.sh-using script.
18238
18239 2010-05-16  Bruno Haible  <bruno@clisp.org>
18240
18241         Fix collision between gnulib's and libintl's printf replacements.
18242         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
18243         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
18244         (printf): When using GNU C, map the __printf__ function to rpl_printf
18245         via __asm__. When not using GNU C, define rpl_printf instead of
18246         __printf__.
18247         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
18248         commit.
18249         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
18250         commit.
18251         * m4/asm-underscore.m4: New file.
18252         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
18253         * modules/stdio (Files): Add m4/asm-underscore.m4.
18254         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
18255         Reported by Ben Pfaff.
18256
18257 2010-05-16  Bruno Haible  <bruno@clisp.org>
18258
18259         verify: Avoid skipping the test on openSUSE 11.0.
18260         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
18261
18262 2010-05-13  Bruno Haible  <bruno@clisp.org>
18263
18264         Avoid useless warnings from G++.
18265         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
18266         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
18267         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18268
18269 2010-05-11  Jim Meyering  <meyering@redhat.com>
18270
18271         maint.mk: tweak preceding change
18272         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
18273         regexps tighter by anchoring at EOL, and make the new group "shy"
18274         for slightly decreased overhead.
18275
18276 2010-05-11  Eric Blake  <eblake@redhat.com>
18277
18278         maint.mk: gnulib doesn't guarantee NSIG
18279         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
18280
18281 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
18282
18283         test-pwrite.c: Remove unused variable declaration.
18284         * tests/test-pwrite.c (main): Remove read_buf declaration.
18285
18286         Remove useless test-pwrite.sh file.
18287         * tests/test-pwrite.sh: Delete file.
18288         * modules/pwrite-tests: Remove references.
18289         Reported by Bruno Haible.
18290
18291 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
18292
18293         init.sh: fix a typo
18294         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
18295
18296 2010-05-10  Jim Meyering  <meyering@redhat.com>
18297
18298         maint.mk: avoid using a temporary file in the always-defined-macros check
18299         * top/maint.mk (.re-defmac): Remove rule.
18300         (gl_trap_): Remove definition.
18301         (sc_prohibit_always-defined_macros): Rewrite not to create and
18302         depend on a temporary file.  Instead, depend on GNU grep's ability
18303         to read a list of regular expressions from stdin when given "-f -".
18304
18305 2010-05-09  Bruno Haible  <bruno@clisp.org>
18306
18307         Update to GNU gettext 0.18, part 1.
18308         * m4/gettext.m4: Update to GNU gettext 0.18.
18309         * m4/intl.m4: Likewise.
18310         * m4/po.m4: Likewise.
18311         * modules/gettext (Files): Add m4/fcntl-o.m4.
18312         (configure.ac): Require gettext infrastructure from version 0.18.
18313
18314 2010-05-09  Jim Meyering  <meyering@redhat.com>
18315
18316         init.sh: enable MALLOC_PERTURB_
18317         * tests/init.sh: Enable glibc's malloc-perturbing option.
18318
18319         maint.mk: improve sc_cross_check_PATH_usage_in_tests
18320         With my recent change in init.sh from the two-line form:
18321             -#   : ${srcdir=.}
18322             -#   . "$srcdir/init.sh"; path_prepend_ .
18323             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
18324         I noticed that using the one-line form would cause this test
18325         to fail with a false-positive, or to stop working altogether,
18326         depending on whether help-version changed or all the tests did.
18327         * top/maint.mk (_hv_regex): Remove this definition.
18328         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
18329         (_hv_regex_strong): Use a stronger regex to check for conformance.
18330         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
18331         Give a separate diagnostic for lack of conforming use.
18332
18333         maint.mk: prohibit definition of symbols defined by gnulib
18334         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
18335         definition of symbols defined by gnulib.
18336
18337 2010-05-09  Bruno Haible  <bruno@clisp.org>
18338
18339         acl: Avoid test failure on Cygwin-hosted mingw.
18340         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
18341
18342 2010-05-09  Bruno Haible  <bruno@clisp.org>
18343
18344         error: Use system's fcntl function.
18345         * lib/error.c (fcntl): Undefine.
18346
18347 2010-05-09  Jim Meyering  <meyering@redhat.com>
18348
18349         verify: adjust formatting to be more consistent
18350         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
18351         argument-list '('s, and after one comma.
18352
18353 2010-05-09  Bruno Haible  <bruno@clisp.org>
18354
18355         error: More reliable output on mingw.
18356         * lib/error.c: Include <windows.h>.
18357         (is_open): New function.
18358         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
18359         defined.
18360
18361 2010-05-09  Bruno Haible  <bruno@clisp.org>
18362
18363         vasnprintf: Fix syntax errors in libintl build on mingw.
18364         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
18365         pad_ourselves and prec_ourselves after use.
18366
18367 2010-05-08  Bruno Haible  <bruno@clisp.org>
18368
18369         * lib/config.charset: Update comments for Cygwin 1.7.
18370         * lib/localcharset.c: Likewise.
18371
18372 2010-05-07  Jim Meyering  <meyering@redhat.com>
18373
18374         init.sh: improve comments
18375         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
18376         . "${srcdir=.}/init.sh"; path_prepend_ .
18377         Add a note about path_prepend_ and the alternative of using
18378         TESTS_ENVIRONMENT.
18379
18380 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
18381
18382         exclude: Unescape hashed patterns in wildcard mode.
18383         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
18384         to the hash list.
18385         * tests/test-exclude8.sh: New test case.
18386         * modules/exclude-tests: Add new test.
18387
18388 2010-05-05  Eric Blake  <eblake@redhat.com>
18389
18390         verify: automate tests
18391         * modules/verify-tests: New module.
18392         * tests/test-verify.sh: New file.
18393         * tests/test-verify.c: Guard each negative test with a unique id.
18394         Also avoid warning about unused left hand of comma expressions.
18395
18396 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18397
18398         Further improvements to verify.h, suggested by Eric Blake.
18399         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
18400         the GL_* versions, to avoid collision with OpenGL.
18401         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
18402         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
18403         than testing merely whether it's defined.
18404
18405         Modify verify.h to pacify gcc -Wredundant_decls.
18406         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
18407         These use the prefix "GL_" since they're likely to be useful elsewhere.
18408         We may need to break them out into a different .h file.
18409         (__COUNTER__): Define to 0 if the compiler doesn't support it.
18410         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
18411         of verify_function__.
18412
18413 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
18414
18415         Tests for module pwrite.
18416         * modules/pwrite-tests: New file.
18417         * tests/test-pwrite.sh: New file.
18418         * tests/test-pwrite.c: New file.
18419
18420         New module pwrite.
18421         * lib/unistd.in.h (pwrite): New declaration.
18422         * lib/pwrite.c: New file, from glibc with modifications.
18423         * m4/pwrite.m4: New file.
18424         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
18425         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
18426         REPLACE_PWRITE.
18427         * modules/pwrite: New file.
18428         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
18429         REPLACE_PWRITE.
18430         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
18431         * doc/posix-functions/pwrite.texi: Mention the new module.
18432
18433 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
18434
18435         pread: Update documentation.
18436         * doc/posix-functions/pread.texi: Mention the 'pread' module.
18437
18438 2010-05-04  Eric Blake  <eblake@redhat.com>
18439
18440         docs: update cygwin progress
18441         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
18442         this bug.
18443         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
18444         Added in cygwin 1.7.2.
18445         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
18446         Likewise.
18447         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
18448         Likewise.
18449         * doc/glibc-functions/dup3.texi (dup3): Likewise.
18450         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
18451         * doc/glibc-functions/accept4.texi (accept4): Likewise.
18452         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
18453         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
18454         Mention nproc module.
18455         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
18456         bug in cygwin 1.7.5 addition.
18457         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
18458         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
18459         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
18460         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
18461         1.7.5.
18462         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
18463         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
18464         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
18465         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
18466         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
18467         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
18468         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
18469         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
18470         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
18471         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
18472         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
18473         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
18474         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
18475         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
18476         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
18477         Likewise.
18478         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
18479         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
18480         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
18481         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
18482         Likewise.
18483         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
18484         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
18485         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
18486         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
18487         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
18488         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
18489         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
18490         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
18491         Likewise.
18492         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
18493         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
18494         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
18495         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
18496         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
18497         Likewise.
18498         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
18499         Likewise.
18500         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
18501         Likewise.
18502         * doc/glibc-functions/xdrrec_endofrecord.texi
18503         (xdrrec_endofrecord): Likewise.
18504         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
18505         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
18506         Likewise.
18507         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
18508         Likewise.
18509
18510 2010-05-04  Jim Meyering  <meyering@redhat.com>
18511
18512         gendocs.sh: make its "-s FILE" option more useful
18513         * build-aux/gendocs.sh: When honoring the -s FILE option, update
18514         $PACKAGE to reflect the probably-different basename of "FILE".
18515
18516 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
18517
18518         bootstrap: don't ignore download_po_files failure
18519         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
18520         failure.
18521
18522 2010-05-03  Jim Meyering  <meyering@redhat.com>
18523
18524         maint.mk: allow to pass options to gendocs.sh
18525         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
18526         (gendocs_options_): New overridable variable.
18527
18528         gnu-web-doc-update: don't ignore configure or build failure
18529         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
18530
18531         announce-gen: backslash-escape '@'s in --help output
18532         * build-aux/announce-gen: Fix syntax errors.
18533
18534         maint.mk, announce-gen: allow project-specific announcement mail headers
18535         * top/maint.mk (translation_project_): Define default.
18536         (announcement_Cc_, announcement_mail_headers_): Likewise.
18537         (announcement): Invoke announce-gen with new --mail-headers option.
18538         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
18539
18540         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
18541         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
18542         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
18543         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
18544         line in the "err2" output file when running "make check" in verbose
18545         mode (i.e., with set -x enabled).
18546
18547 2010-05-03  Bruno Haible  <bruno@clisp.org>
18548
18549         wctob: Fix for weird platforms.
18550         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
18551         argument value.
18552
18553 2010-05-03  Jim Meyering  <meyering@redhat.com>
18554
18555         maint.mk: prohibit unwarranted use of <strings.h>
18556         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
18557         strings.h in a file that does not also use strcasecmp, strncasecmp,
18558         ffs or ffsll.
18559
18560         maint.mk: remove obsolete comments
18561         * top/maint.mk: Remove stale, commented-out rules.
18562
18563 2010-05-02  Bruno Haible  <bruno@clisp.org>
18564
18565         wcwidth: Declare also when it's aliased.
18566         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
18567         macro.
18568
18569 2010-05-02  Bruno Haible  <bruno@clisp.org>
18570
18571         Fix regression from 2010-04-25.
18572         * gnulib-tool (func_modules_transitive_closure): Check the status of
18573         all modules, not only of the tests that are of the form foo-tests where
18574         foo is a module.
18575
18576 2010-05-02  Bruno Haible  <bruno@clisp.org>
18577
18578         wctob: Work around nasty Cygwin 1.7.2 bug.
18579         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
18580         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
18581
18582 2010-05-01  Bruno Haible  <bruno@clisp.org>
18583
18584         fpurge: Sharper test.
18585         * tests/test-fpurge.c (main): Add one more ftell check.
18586         * modules/fpurge-tests (Depends-on): Add ftell.
18587         Suggested by Eric Blake.
18588
18589 2010-05-01  Bruno Haible  <bruno@clisp.org>
18590
18591         ftello: Another test.
18592         * tests/test-ftello3.c: New file.
18593         * modules/ftello-tests (Files): Add it.
18594         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
18595         MOSTLYCLEANFILES.
18596
18597         ftell: Another test.
18598         * tests/test-ftell3.c: New file.
18599         * modules/ftell-tests (Files): Add it.
18600         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
18601         MOSTLYCLEANFILES.
18602
18603 2010-05-01  Bruno Haible  <bruno@clisp.org>
18604
18605         ftell, ftello: Work around Solaris bug.
18606         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
18607         * lib/ftello.c: Include stdio-impl.h.
18608         (ftello): On Solaris, when _IOWRT is set, compute the result without
18609         looking at _IOREAD.
18610         * modules/ftello (Files): Add lib/stdio-impl.h.
18611         * doc/posix-functions/ftell.texi: Mention Solaris bug.
18612         * doc/posix-functions/ftello.texi: Likewise.
18613         Reported by Eric Blake.
18614
18615 2010-05-01  Bruno Haible  <bruno@clisp.org>
18616
18617         freading: Adapt to special meaning of _IOREAD flag on Solaris.
18618         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
18619         the _IOWRT flag is also set.
18620
18621 2010-05-01  Bruno Haible  <bruno@clisp.org>
18622
18623         Fix doc about a HP-UX stdio bug.
18624         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
18625         * doc/posix-functions/ftello.texi: Likewise.
18626
18627 2010-05-01  Bruno Haible  <bruno@clisp.org>
18628
18629         lseek test: Fix failure on Solaris.
18630         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
18631         output.
18632
18633 2010-04-30  Jim Meyering  <meyering@redhat.com>
18634
18635         bootstrap: don't ignore failure to generate po*/Makevars
18636         * build-aux/bootstrap (with_gettext): Don't ignore failure
18637         to create po/Makevars or runtime-po/Makevars.
18638
18639 2010-04-29  Eric Blake  <eblake@redhat.com>
18640
18641         headers: relax license to LGPLv2+
18642         * modules/fcntl-h (License): Relax license.
18643         * modules/getopt-posix (License): Likewise.
18644         * modules/locale (License): Likewise.
18645         * modules/math (License): Likewise.
18646         * modules/pty (License): Likewise.
18647         * modules/sched (License): Likewise.
18648         * modules/search (License): Likewise.
18649         * modules/spawn (License): Likewise.
18650         * modules/stdarg (License): Likewise.
18651         * modules/sysexits (License): Likewise.
18652
18653 2010-04-29  Jim Meyering  <meyering@redhat.com>
18654
18655         inttypes: relax license to LGPLv2+
18656         * modules/inttypes (License): Relax license.
18657
18658 2010-04-29  Simon Josefsson  <simon@josefsson.org>
18659
18660         * top/maint.mk (indent): Run twice to produce idempotent results.
18661
18662 2010-04-28  Bruno Haible  <bruno@clisp.org>
18663
18664         getdate: Generate getdate.c in the source directory.
18665         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
18666         MOSTLYCLEANFILES.
18667         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
18668
18669 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
18670
18671         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
18672         is not declared as a const *; avoid warnings in that case.
18673
18674 2010-04-28  Eric Blake  <eblake@redhat.com>
18675
18676         canonicalize-lgpl: avoid compiler warning
18677         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
18678         declaration' / 'extraneous semicolon' warning with some compilers.
18679         Reported by Andreas Gruenbacher.
18680
18681 2010-04-28  Jim Meyering  <meyering@redhat.com>
18682
18683         init.sh: ensure a more reliable exit status when exiting via trap
18684         * tests/init.sh (setup_): Don't rely on $? in signal handler.
18685         Inspired by patches from Dmitry V. Levin.
18686         Also trap on signal 3 (SIGQUIT).
18687
18688 2010-04-27  Bruno Haible  <bruno@clisp.org>
18689
18690         Update doc about utimes().
18691         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
18692         'utimens' module.
18693         Reported by Andreas Gruenbacher <agruen@suse.de>.
18694
18695 2010-04-27  Eric Blake  <eblake@redhat.com>
18696
18697         full-read, full-write: relax license
18698         * modules/full-read (License): Drop to LGPLv2+.
18699         * modules/full-write (License): Likewise.
18700         * modules/safe-read (License): Likewise.
18701         * modules/safe-write (License): Likewise.
18702
18703         pthread: mention library for linking
18704         * modules/pthread (Link): Mention $(LIB_PTHREAD).
18705
18706 2010-04-27  Jim Meyering  <meyering@redhat.com>
18707
18708         maint.mk: fix a bug introduced in last change
18709         * top/maint.mk (gl_assured_headers_): Now that all names are on
18710         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
18711         is not anchored to end of word, it should be adequate.
18712
18713         maint.mk: avoid side-effect in latest syntax-check
18714         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
18715         to run commands via $(shell...), and hence to incur cost only when
18716         the new rule is actually run.
18717
18718         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
18719         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
18720         and use that to create a regexp used to detect all #if HAVE_..._H uses.
18721         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
18722         (gl_assured_headers_, az_, AZ_): Define.
18723         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
18724
18725 2010-04-26  Jim Meyering  <jim@meyering.net>
18726             Bruno Haible  <bruno@clisp.org>
18727
18728         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
18729         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
18730         Prompted by an exchange with Gilles Espinasse.
18731
18732 2010-04-26  Jim Meyering  <meyering@redhat.com>
18733
18734         git-version-gen: aesthetic tweak
18735         * build-aux/git-version-gen: Use "$nl" rather than a literal,
18736         so that the command remains on a single line.
18737
18738 2010-04-26  Eric Blake  <eblake@redhat.com>
18739
18740         git-version-gen: allow use on EBCDIC hosts
18741         * build-aux/git-version-gen (dirty): Use literal rather than tying
18742         ourselves to ascii.
18743         Reported by Steve Goetze.
18744
18745 2010-04-25  Bruno Haible  <bruno@clisp.org>
18746
18747         netdb: Add support for GNULIB_POSIXCHECK.
18748         * lib/netdb.in.h: Include warn-on-use.h.
18749         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
18750         functions are used when GNULIB_POSIXCHECK is defined and the
18751         getaddrinfo module is not in use.
18752         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
18753         freeaddrinfo, gai_strerror, getnameinfo are declared.
18754         * modules/netdb (Depends-on): Add warn-on-use.
18755         (Makefile.am): Include warn-on-use.h in netdb.h.
18756
18757 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
18758
18759         build: avoid "make check" failure without .git/ directory
18760         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
18761         there is no .git/ directory.
18762
18763 2010-04-25  Bruno Haible  <bruno@clisp.org>
18764
18765         ptsname: Fix misuse of ttyname_r.
18766         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
18767         of errno.
18768
18769 2010-04-25  Bruno Haible  <bruno@clisp.org>
18770
18771         ttyname_r: Make it work on Solaris 10.
18772         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
18773         if the system function has the POSIX declaration. Test whether the
18774         function fails if the buffer is less than 128 bytes large.
18775         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
18776         system's ttyname_r function. Provide a reasonably large buffer.
18777         * modules/ttyname_r (Depends-on): Add extensions.
18778         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
18779
18780 2010-04-25  Bruno Haible  <bruno@clisp.org>
18781
18782         Use the 'extensions' module for some more functions on Solaris.
18783         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
18784         module.
18785         * doc/posix-functions/ctime_r.texi: Likewise.
18786         * doc/posix-functions/getgrgid_r.texi: Likewise.
18787         * doc/posix-functions/getgrnam_r.texi: Likewise.
18788         * doc/posix-functions/getpwnam_r.texi: Likewise.
18789         * doc/posix-functions/getpwuid_r.texi: Likewise.
18790         * doc/posix-functions/readdir_r.texi: Likewise.
18791         * doc/posix-functions/sigwait.texi: Likewise.
18792         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
18793         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
18794
18795 2010-04-25  Bruno Haible  <bruno@clisp.org>
18796
18797         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
18798         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
18799         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
18800         * lib/ttyname_r.c: Include <limits.h>.
18801         (ttyname_r): Define using the system's ttyname_r function, if it exists
18802         and not on Solaris.
18803         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
18804         set.
18805         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
18806         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
18807         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
18808         Reported by Simon Josefsson.
18809
18810 2010-04-25  Bruno Haible  <bruno@clisp.org>
18811
18812         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
18813         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
18814         * doc/posix-functions/ctime_r.texi: Likewise.
18815         * doc/posix-functions/getgrgid_r.texi: Likewise.
18816         * doc/posix-functions/getgrnam_r.texi: Likewise.
18817         * doc/posix-functions/getlogin_r.texi: Likewise.
18818         * doc/posix-functions/getpwnam_r.texi: Likewise.
18819         * doc/posix-functions/getpwuid_r.texi: Likewise.
18820         * doc/posix-functions/readdir_r.texi: Likewise.
18821         * doc/posix-functions/sigwait.texi: Likewise.
18822         * doc/posix-functions/ttyname_r.texi: Likewise.
18823         Reported by Simon Josefsson.
18824
18825 2010-04-25  Bruno Haible  <bruno@clisp.org>
18826
18827         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
18828         * gnulib-tool (func_usage): Document that --with-*-tests options apply
18829         also to --create-testdir.
18830         (func_acceptable): Don't consider the status of *-tests modules here.
18831         (func_modules_transitive_closure): Consider it here, before including a
18832         test module.
18833         (func_import, func_create_testdir): Set inc_all_direct_tests,
18834         inc_all_indirect_tests.
18835         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
18836         --create-testdir and --create-megatestdir.
18837
18838 2010-04-25  Bruno Haible  <bruno@clisp.org>
18839
18840         gnulib-tool: Add --without-*-tests options.
18841         * gnulib-tool (func_usage): Document the --without-*-tests options.
18842         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
18843         excl_unportable_tests): New variables.
18844         Fail if they are specified with --import or --update.
18845         (func_acceptable): Respect the excl_*_tests variables.
18846         (func_import): Set the excl_*_tests variables to empty.
18847
18848 2010-04-25  Simon Josefsson  <simon@josefsson.org>
18849             Bruno Haible  <bruno@clisp.org>
18850
18851         Work around a MacOS X 10.4 bug with openpty.
18852         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
18853         * tests/test-openpty.c (main): Close the master side explicitly.
18854
18855 2010-04-25  Bruno Haible  <bruno@clisp.org>
18856
18857         strnlen: Fix a C++ test error on MacOS X and Solaris.
18858         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
18859         the function is not declared.
18860         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
18861         Simon Josefsson.
18862
18863 2010-04-24  Bruno Haible  <bruno@clisp.org>
18864
18865         Avoid a gcc warning.
18866         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
18867         of correct type for %08lx directive.
18868         Reported by Eric Blake.
18869
18870 2010-04-24  Bruno Haible  <bruno@clisp.org>
18871
18872         vasnprintf: Correct errno value in case of out-of-memory.
18873         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
18874         or sprintf. Use the errno value from SNPRINTF or sprintf.
18875         Reported by Ian Beckwith <ianb@erislabs.net>.
18876
18877 2010-04-24  Bruno Haible  <bruno@clisp.org>
18878
18879         ansi-c++-opt: Find correct compiler when cross-compiling.
18880         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
18881         AC_CHECK_PROGS.
18882         Reported by Simon Josefsson.
18883
18884 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
18885
18886         vc-list-files: Add support for subversion
18887         * build-aux/vc-list-files: Use "svn list" to generate the list of
18888         files controlled by subversion.
18889
18890 2010-04-23  Jim Meyering  <meyering@redhat.com>
18891
18892         vc-list-files tests: convert to use init.sh
18893         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
18894         path_prepend_.
18895         Use Exit, not exit.
18896         Use skip_ rather than open coding it.
18897         Remove trap set-up and compare definitions.
18898         * tests/test-vc-list-files-git.sh: Likewise.
18899         * modules/vc-list-files-tests (Files): Add tests/init.sh.
18900
18901 2010-04-22  Simon Josefsson  <simon@josefsson.org>
18902
18903         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
18904         backup files.
18905
18906 2010-04-21  Simon Josefsson  <simon@josefsson.org>
18907
18908         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
18909
18910 2010-04-20  Eric Blake  <eblake@redhat.com>
18911
18912         tests: be robust to ignored SIGPIPE
18913         * tests/test-select-in.sh: Consume all output.
18914         * tests/test-lseek.sh: Check correct exit status, while avoiding
18915         EPIPE.
18916
18917 2010-04-20  Simon Josefsson  <simon@josefsson.org>
18918             Bruno Haible  <bruno@clisp.org>
18919
18920         visibility: Don't use -fvisibility if it leads to a warning.
18921         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
18922         yes, don't pretend that visibility works if it leads to a warning.
18923         Reported by Mike Gran <spk121@yahoo.com>.
18924
18925 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
18926
18927         * build-aux/bootstrap: Use "git -h" for testing for supported options
18928         instead of "git --help".  The short-form option only shows a summary,
18929         and doesn't layout the full man page.  Grep for the full option name
18930         in the summary, too.
18931
18932 2010-04-19  Bruno Haible  <bruno@clisp.org>
18933
18934         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
18935         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
18936         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
18937         mention of RELOCATABLE_STRIP.
18938         Reported by Sylvain Beucler <beuc@beuc.net>.
18939
18940 2010-04-19  Bruno Haible  <bruno@clisp.org>
18941
18942         * lib/diffseq.h: Fix typo in comment.
18943         Reported by Eric Blake.
18944
18945 2010-04-19  Bruno Haible  <bruno@clisp.org>
18946
18947         ioctl: Move autoconf macro to a .m4 file.
18948         * m4/ioctl.m4: New file, extracted from modules/ioctl.
18949         * modules/ioctl (Files): Add it.
18950         (configure.ac): Simply invoke gl_FUNC_IOCTL.
18951         Reported by Ian Beckwith <ianb@erislabs.net>.
18952
18953 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
18954             Bruno Haible  <bruno@clisp.org>
18955
18956         diffseq: Accommodate use-case with abstract arrays.
18957         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
18958         is not defined.
18959         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
18960         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
18961
18962 2010-04-18  Bruno Haible  <bruno@clisp.org>
18963
18964         * doc/posix-headers/stdbool.texi: More precise wording.
18965
18966 2010-04-17  Jim Meyering  <meyering@redhat.com>
18967
18968         maint.mk: use gnu-style indentation in an embedded perl script
18969         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
18970         Rename variable: s/two/last_two_bytes/
18971
18972 2010-04-16  Eric Blake  <eblake@redhat.com>
18973
18974         test-stdbool: skip test that fails with Solaris CC
18975         * tests/test-stdbool.c (f): Skip test that causes compilation
18976         error under buggy C++ compiler.
18977         * lib/stdbool.in.h: Document the limitation.
18978         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
18979
18980         setenv: allow compilation with C++
18981         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
18982         register keyword.
18983
18984         stdint: allow test to pass with C++
18985         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
18986
18987         getopt: allow compilation with C++
18988         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
18989         struct.
18990         * lib/getopt.c (_getopt_internal_r): Use correct type.
18991         Reported by Dagobert Michelson, via Joel E. Denny.
18992
18993 2010-04-16  Bruno Haible  <bruno@clisp.org>
18994
18995         Override netdb.h always.
18996         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
18997         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
18998         Reported by Ludovic Courtès <ludo@gnu.org>.
18999
19000 2010-04-15  Bruno Haible  <bruno@clisp.org>
19001
19002         openpty: Fix mistake from 2010-03-21.
19003         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
19004         Reported by Simon Josefsson.
19005
19006 2010-04-15  Eric Blake  <eblake@redhat.com>
19007
19008         test-forkpty: fix expected signature
19009         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
19010         Reported by Simon Josefsson.
19011
19012 2010-04-15  Jim Meyering  <meyering@redhat.com>
19013
19014         maint.mk: texinfo_suffix_re_: correct the default regexp
19015         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
19016
19017         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
19018         make it configurable via texinfo_suffix_re_.
19019
19020 2010-04-14  Eric Blake  <eblake@redhat.com>
19021
19022         strtok_r: relax license to LGPLv2+
19023         * modules/strtok_r (License): Relax license.
19024         Reported by Matthias Bolte.
19025
19026 2010-04-14  Simon Josefsson  <simon@josefsson.org>
19027
19028         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
19029         version 1.4.4 by default instead of requiring the libgcrypt
19030         version used during build.  This makes it possible to use the
19031         application with older but still binary compatible libgcrypt
19032         versions.
19033
19034 2010-04-13  Eric Blake  <eblake@redhat.com>
19035
19036         getopt-gnu: match recent glibc fixes and posix ruling
19037         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
19038         '+' handling, when requesting extensions.
19039         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
19040         'W;' handling.
19041         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
19042         * doc/posix-functions/getopt.texi (getopt): Document this.
19043         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
19044         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
19045         Likewise.
19046
19047         getopt: merge bug fixes from glibc
19048         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
19049         diagnostics.  Honor '+:' correctly.  Reject ';'.
19050
19051         getopt-posix: detect MacOS bug
19052         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
19053         optind when missing a required argument.
19054         * doc/posix-functions/getopt.texi (getopt): Document the bug.
19055         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
19056         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
19057         Likewise.
19058
19059         getopt-posix: avoid spurious failure on Solaris
19060         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
19061         an indicator that setting optind=1 is sufficient for reset.
19062
19063         getopt-posix: avoid spurious failure on FreeBSD
19064         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
19065         in POSIX mode, since the m4 test uses it.
19066
19067         gnulib-tool: silence warning on BSD sh
19068         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
19069
19070 2010-04-13  Jim Meyering  <meyering@redhat.com>
19071
19072         doc: users.txt: GNU patch now uses gnulib
19073         * users.txt: Add patch.
19074
19075 2010-04-12  Jim Meyering  <meyering@redhat.com>
19076
19077         maint.mk: generate more concise timing data for syntax-check rules
19078         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
19079         " done" from each line that reports a syntax-check test duration.
19080
19081 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
19082
19083         git-version-gen: use "git update-index..." rather than "git status"
19084         * build-aux/git-version-gen: Use git update-index --refresh, not
19085         "git status".  With some versions of git, "git status" would fail
19086         to update the index and result in an unwarranted "-dirty" suffix.
19087
19088 2010-04-11  Jim Meyering  <meyering@redhat.com>
19089
19090         openat: correct formatting (no semantic change)
19091         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
19092         Suggested by Bruno Haible.
19093
19094 2010-04-11  Bruno Haible  <bruno@clisp.org>
19095
19096         Stricter declaration checking in testdirs.
19097         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19098         If for_tests is true, augment AM_CPPFLAGS to define
19099         GNULIB_STRICT_CHECKING.
19100         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
19101         GNULIB_STRICT_CHECKING is defined, verify that the function is
19102         declared.
19103
19104 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
19105             Bruno Haible  <bruno@clisp.org>
19106
19107         libunistring: Improve configure output.
19108         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
19109         Don't say "consider installing GNU libunistring" when checking again
19110         with libiconv.
19111
19112 2010-04-11  Bruno Haible  <bruno@clisp.org>
19113
19114         libunistring: Correct value of $LTLIBUNISTRING.
19115         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
19116         correct the value of $LTLIBUNISTRING.
19117
19118 2010-04-11  Bruno Haible  <bruno@clisp.org>
19119
19120         havelib: Add static libraries to LIBS in the right order.
19121         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
19122         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
19123
19124 2010-04-11  Bruno Haible  <bruno@clisp.org>
19125
19126         libunistring: Detect libunistring also when it depends on libiconv.
19127         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
19128         the second AC_LIB_HAVE_LINKFLAGS invocation.
19129
19130 2010-04-11  James Youngman  <jay@gnu.org>
19131
19132         close-stream: declare local scalars to be "const"
19133         * lib/close-stream.c (close_stream): Make boolean variables const
19134         to document the fact that we set but do not change them.
19135
19136 2010-04-11  Bruno Haible  <bruno@clisp.org>
19137
19138         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
19139
19140 2010-04-11  Jim Meyering  <meyering@redhat.com>
19141
19142         maint.mk: don't include dist-check.mk
19143         * top/maint.mk: Remove bogus include directive.
19144
19145         maint.mk: improve empty-line-at-EOF check
19146         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
19147         solution, rather than tail+Perl-based one.  The latter would read
19148         a few kilobytes from the end of each file, and did not handle empty
19149         files properly.
19150
19151         maint.mk: print the elapsed time for each syntax-check rule
19152         * top/maint.mk (sc_m_rules_): Save start time in a file.
19153         (sc_z_rules_): New rules: remove temp file and print elapsed time.
19154         (local-check): Interpose the .z rules
19155
19156 2010-04-11  Jim Meyering  <meyering@redhat.com>
19157
19158         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
19159         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
19160         empty file with one that ends in an empty line.
19161
19162 2010-04-10  Bruno Haible  <bruno@clisp.org>
19163
19164         mkdir: Make it work on mingw64.
19165         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
19166         * lib/mkdir.c: Update comment.
19167         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
19168
19169 2010-04-10  Bruno Haible  <bruno@clisp.org>
19170
19171         Don't override improved macro from newer autoconf.
19172         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
19173         autoconf >= 2.62.
19174         Reported by Joel E. Denny <jdenny@clemson.edu>.
19175
19176 2010-04-10  Jim Meyering  <meyering@redhat.com>
19177
19178         maint.mk: new syntax-check rule: prohibit empty lines at end of file
19179         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
19180
19181         maint.mk: correct a diagnostic
19182         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
19183         in diagnostic; now use $prohibit.
19184
19185 2010-04-10  Bruno Haible  <address@hidden>
19186
19187         fchownat: Fix a C++ test error on Solaris 8.
19188         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
19189         the function does not exist.
19190
19191 2010-04-10  Bruno Haible  <bruno@clisp.org>
19192
19193         vasnprintf: Add more tests.
19194         * tests/test-vasnprintf-posix.c: Include <errno.h>.
19195         (test_function): Test converting an invalid wide string.
19196
19197         vasnprintf: Correct handling of unconvertible wide string arguments.
19198         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
19199         VASNPRINTF.
19200         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
19201         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
19202         smaller than the expected maximum need for the directive. Set errno to
19203         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
19204         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
19205         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
19206         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
19207         * modules/vasnprintf (Files): Add m4/printf.m4.
19208         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19209
19210 2010-04-10  Bruno Haible  <bruno@clisp.org>
19211
19212         vasnprintf: Fix crash in %ls directive.
19213         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
19214         string is passed as argument to %ls, with no precision and no width.
19215         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19216
19217 2010-04-10  Bruno Haible  <bruno@clisp.org>
19218
19219         vasnprintf: Fix multiple test failures on mingw.
19220         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
19221         _snprintf, or snwprintf, not _snwprintf.
19222
19223 2010-04-10  Bruno Haible  <bruno@clisp.org>
19224
19225         write: Fix a C++ test error on mingw.
19226         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
19227
19228 2010-04-10  Bruno Haible  <bruno@clisp.org>
19229
19230         vasnprintf test: Reduce code duplication.
19231         * tests/test-vasnprintf.c (test_function): New function, extracted from
19232         test_vasnprintf.
19233         (test_vasnprintf, test_asnprintf): Invoke it.
19234
19235 2010-04-10  Bruno Haible  <bruno@clisp.org>
19236
19237         strnlen: Fix warning in C++ mode on MacOS X.
19238         * lib/string.in.h (strnlen): Use the modern idiom.
19239         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
19240         defining strnlen as a macro already in <config.h>.
19241         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19242         REPLACE_STRNLEN.
19243         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
19244         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19245
19246 2010-04-08  James Youngman  <jay@gnu.org>
19247
19248         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
19249         the example.
19250
19251 2010-04-09  Jim Meyering  <meyering@redhat.com>
19252
19253         maint.mk: print better diagnostic when there is no $(_hv_file)
19254         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
19255         announce that when $(_hv_file) (aka help-version) does not exist.
19256
19257         init.sh: run tr in the "C" locale to avoid multibyte interpretation
19258         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
19259         not try to interpret its random input bytes.  Jarno Rajahalme reported
19260         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
19261         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
19262         (mktempd_): Likewise, just in case.
19263
19264         ftruncate: add two years to projected module removal date: 2012
19265         * m4/ftruncate.m4: Adjust comments.
19266
19267         ftruncate: mark module as obsolete; even MinGW provides it, now
19268         * modules/ftruncate (Status): Obsolete.
19269         (Notice): Say that.
19270         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
19271         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
19272
19273 2010-04-08  Bruno Haible  <bruno@clisp.org>
19274
19275         Fix side effects from tests-related modules.
19276         * modules/dprintf-posix (Comment): New section.
19277         * modules/fprintf-posix (Comment): Likewise.
19278         * modules/obstack-printf-posix (Comment): Likewise.
19279         * modules/printf-posix (Comment): Likewise.
19280         * modules/snprintf-posix (Comment): Likewise.
19281         * modules/sprintf-posix (Comment): Likewise.
19282         * modules/vasnprintf-posix (Comment): Likewise.
19283         * modules/vasprintf-posix (Comment): Likewise.
19284         * modules/vdprintf-posix (Comment): Likewise.
19285         * modules/vfprintf-posix (Comment): Likewise.
19286         * modules/vprintf-posix (Comment): Likewise.
19287         * modules/vsnprintf-posix (Comment): Likewise.
19288         * modules/vsprintf-posix (Comment): Likewise.
19289         * modules/xprintf-posix (Comment): Likewise.
19290         * modules/xvasprintf-posix (Comment): Likewise.
19291         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
19292         * modules/floorf-tests (Depends-on): Likewise.
19293         * modules/round-tests (Depends-on): Likewise.
19294         * modules/roundf-tests (Depends-on): Likewise.
19295         * modules/trunc-tests (Depends-on): Likewise.
19296         * modules/truncf-tests (Depends-on): Likewise.
19297         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
19298         'fprintf-posix' module is not present.
19299         * tests/test-floorf2.c (check): Likewise.
19300         * tests/test-trunc2.c (check): Likewise.
19301         * tests/test-truncf2.c (check): Likewise.
19302         * tests/test-round2.c (equal): Likewise.
19303         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19304
19305 2010-04-07  Karl Berry  <karl@gnu.org>
19306
19307         * config/srclist.txt,
19308         * config/srclistvars.sh,
19309         * config/srclist-update: doc fixes.
19310
19311 2010-04-07  Jim Meyering  <meyering@redhat.com>
19312
19313         maint.mk: add a PATH crosschecking syntax-check rule
19314         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
19315         Useful if you use a test like the one in help-version (coreutils,
19316         diffutils, grep, gzip) that ensures $(VERSION) matches what is
19317         printed by prog --version.
19318
19319 2010-04-06  Bruno Haible  <bruno@clisp.org>
19320
19321         Fix link error on mingw.
19322         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
19323         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
19324
19325 2010-04-06  Bruno Haible  <bruno@clisp.org>
19326
19327         Assume rmdir exists.
19328         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
19329
19330 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
19331
19332         doc: update users.txt
19333         * users.txt: Add gcal.
19334
19335 2010-04-06  Jim Meyering  <meyering@redhat.com>
19336
19337         init.sh: simply unset TMPDIR rather than risking env -i
19338         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
19339         although it probably works fine on all Unix-based systems, some
19340         systems (Cygwin?) cannot tolerate a totally cleared environment.
19341         Suggestion from Eric Blake.
19342
19343 2010-04-06  Jim Meyering  <meyering@redhat.com>
19344
19345         init.sh: portability fix: use env's POSIX-specified -i option not -u
19346         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
19347         than unportable env -u.  Solaris 5.11's env lacks support for -u.
19348
19349 2010-04-05  Bruno Haible  <bruno@clisp.org>
19350
19351         btowc: Work around Cygwin 1.7.2 bug.
19352         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
19353         does not map NUL to 0.
19354         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
19355
19356 2010-04-05  Bruno Haible  <bruno@clisp.org>
19357
19358         Make the multithread modules work on Cygwin 1.7.2.
19359         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
19360         imported symbols can be declared weak, so that it returns "no" on
19361         Cygwin 1.7.2.
19362
19363 2010-04-05  Bruno Haible  <bruno@clisp.org>
19364
19365         Use the module 'strncat'.
19366         * modules/unistr/u8-strncat (Depends-on): Add strncat.
19367
19368         Tests for module 'strncat'.
19369         * modules/strncat-tests: New file.
19370         * tests/test-strncat.c: New file.
19371
19372         New module 'strncat'.
19373         * lib/string.in.h (strncat): New declaration.
19374         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
19375         * m4/strncat.m4: New file, based on m4/memchr.m4.
19376         * modules/strncat: New file.
19377         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
19378         is declared.
19379         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
19380         REPLACE_STRNCAT.
19381         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
19382         REPLACE_STRNCAT.
19383         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
19384         module.
19385         * tests/test-string-c++.cc: Check signature of strncat.
19386
19387 2010-04-05  Jim Meyering  <meyering@redhat.com>
19388
19389         xstrtoumax-tests: convert to use init.sh
19390         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
19391         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
19392         Use Exit, not exit.
19393         Remove uses of $EXEEXT and "./" to run a program in the current dir.
19394
19395         xstrtoimax-tests: convert to use init.sh
19396         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
19397         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
19398         Use Exit, not exit.
19399         Remove uses of $EXEEXT and "./" to run a program in the current dir.
19400
19401 2010-04-05  Bruno Haible  <bruno@clisp.org>
19402
19403         sys_socket: Avoid #define replacements in C++ mode.
19404         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
19405         warning to the function if possible, rather than #defining the symbol
19406         to a dysfunctional alias.
19407
19408 2010-04-05  Bruno Haible  <bruno@clisp.org>
19409
19410         fseeko: Fix C++ test error on mingw.
19411         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
19412         gl_FUNC_FSEEKO.
19413         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
19414         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
19415         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
19416         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
19417
19418 2010-04-05  Bruno Haible  <bruno@clisp.org>
19419
19420         duplocale: Improve test output.
19421         * tests/test-duplocale.c (main): Print reason for skipped test.
19422
19423 2010-04-05  Bruno Haible  <bruno@clisp.org>
19424
19425         Assume rmdir exists.
19426         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
19427         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
19428
19429 2010-04-05  Bruno Haible  <bruno@clisp.org>
19430
19431         Fix link error on Solaris 8 with cc.
19432         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
19433
19434 2010-04-05  Bruno Haible  <bruno@clisp.org>
19435
19436         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
19437         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
19438
19439 2010-04-05  Bruno Haible  <bruno@clisp.org>
19440
19441         vasprintf: Update documentation.
19442         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
19443
19444 2010-04-05  Bruno Haible  <bruno@clisp.org>
19445
19446         ptsname: Improve test.
19447         * tests/test-ptsname.c (main): Also try the various master names of BSD
19448         systems.
19449
19450 2010-04-05  Bruno Haible  <bruno@clisp.org>
19451
19452         memchr: Avoid a possible C++ test error.
19453         * lib/string.in.h (memchr): Provide declaration if function is missing.
19454         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
19455         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
19456         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
19457         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
19458
19459 2010-04-05  Bruno Haible  <bruno@clisp.org>
19460
19461         strtok_r: Improve idiom.
19462         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
19463         AC_LIBOBJ is used.
19464
19465 2010-04-05  Bruno Haible  <bruno@clisp.org>
19466
19467         strdup: Improve idiom.
19468         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
19469         AC_LIBOBJ is used.
19470         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
19471         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
19472         when AC_LIBOBJ is used.
19473
19474 2010-04-05  Bruno Haible  <bruno@clisp.org>
19475
19476         mbsinit, mbrtowc, wcrtomb: Improve idioms.
19477         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
19478         don't set REPLACE_MBSINIT to 1.
19479         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
19480         don't set REPLACE_MBRTOWC to 1.
19481         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
19482         exist, don't set REPLACE_MBSRTOWCS to 1.
19483         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
19484         exist, don't set REPLACE_MBSNRTOWCS to 1.
19485         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
19486         don't set REPLACE_WCRTOMB to 1.
19487         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
19488         exist, don't set REPLACE_WCSRTOMBS to 1.
19489         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
19490         exist, don't set REPLACE_WCSNRTOMBS to 1.
19491
19492 2010-04-05  Bruno Haible  <bruno@clisp.org>
19493
19494         ldexpl: Improve idiom.
19495         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
19496         make sure to set HAVE_DECL_LDEXPL to 0.
19497
19498 2010-04-05  Jim Meyering  <meyering@redhat.com>
19499
19500         xstrtol-tests: convert to use init.sh
19501         * modules/xstrtol-tests (Files): Add tests/init.sh.
19502         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
19503         Use Exit, not exit.
19504         Remove uses of $EXEEXT and "./" to run a program in the current dir.
19505
19506         atexit-tests: convert to use init.sh
19507         * modules/atexit-tests (Files): Add tests/init.sh.
19508         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
19509         Use Exit, not exit.
19510         Remove uses of $EXEEXT and "./" to run a program in the current dir.
19511
19512         init.sh: fix typo
19513         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
19514
19515         init.sh: make it easier for a test script to write to the tty, ...
19516         when using automake's parallel-tests mode.
19517         * tests/init.sh (stderr_fileno_): Define overridable variable.
19518         (warn_): New function, to use it.
19519         (fail_, skip_, framework_failure_): Use warn_.
19520
19521 2010-04-04  Bruno Haible  <bruno@clisp.org>
19522
19523         btowc: Avoid warning.
19524         * lib/btowc.c: Include <stdlib.h>.
19525         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
19526
19527 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
19528             Bruno Haible  <bruno@clisp.org>
19529
19530         wchar: Port to NetBSD 1.5.
19531         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
19532         * lib/wctype.in.h (WEOF): Likewise.
19533
19534 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
19535             Bruno Haible  <bruno@clisp.org>
19536
19537         Port extended stdio to NetBSD 1.5.
19538         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
19539         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
19540         older.
19541
19542 2010-04-04  Bruno Haible  <bruno@clisp.org>
19543
19544         string: Remove unused substitution.
19545         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
19546         HAVE_DECL_STRERROR.
19547         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
19548
19549 2010-04-04  Bruno Haible  <bruno@clisp.org>
19550
19551         strtod: Avoid a possible C++ test error.
19552         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
19553         set REPLACE_STRTOD.
19554
19555 2010-04-04  Bruno Haible  <bruno@clisp.org>
19556
19557         strerror: Update documentation.
19558         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
19559
19560 2010-04-04  Bruno Haible  <bruno@clisp.org>
19561
19562         stdio: Fix some C++ test errors on Solaris 8 with GCC.
19563         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
19564         _GL_CXXALIAS_SYS_CAST.
19565
19566 2010-04-04  Bruno Haible  <bruno@clisp.org>
19567
19568         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
19569         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
19570         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
19571         REPLACE_FREXPL to 1.
19572         * doc/posix-functions/frexpl.texi: Update documentation.
19573
19574 2010-04-04  Bruno Haible  <bruno@clisp.org>
19575
19576         math: Fix some C++ test errors on Solaris 8 and Cygwin.
19577         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
19578
19579 2010-04-04  Bruno Haible  <bruno@clisp.org>
19580
19581         Implement nanosleep for native Windows.
19582         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
19583
19584 2010-04-04  Bruno Haible  <bruno@clisp.org>
19585
19586         math: Fix some C++ test errors on Solaris 8.
19587         * lib/math.in.h (truncf, trunc): Use simpler idiom.
19588
19589 2010-04-04  Bruno Haible  <bruno@clisp.org>
19590
19591         math: Fix some C++ test errors on Cygwin.
19592         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
19593         truncl): Provide declaration if the system does not have it.
19594         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
19595         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
19596         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
19597         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
19598         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
19599         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
19600         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
19601         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
19602         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
19603         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
19604         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
19605         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
19606         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
19607         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
19608         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
19609         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
19610         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
19611         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
19612         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
19613         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
19614         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
19615         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
19616
19617 2010-04-04  Bruno Haible  <bruno@clisp.org>
19618
19619         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
19620         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
19621         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
19622         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
19623         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
19624         * m4/isinf.m4 (gl_ISINF): Likewise.
19625         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19626
19627 2010-04-04  Bruno Haible  <bruno@clisp.org>
19628
19629         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
19630         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
19631
19632 2010-04-04  Bruno Haible  <bruno@clisp.org>
19633
19634         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
19635         * modules/tmpfile (configure.ac): Update.
19636
19637         tmpfile: Fix C++ test error on mingw.
19638         * lib/stdio.in.h (tmpfile): New declaration.
19639         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
19640         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
19641         * modules/tmpfile (Depends-on): Add stdio.
19642         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
19643         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
19644         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
19645         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
19646         REPLACE_TMPFILE.
19647         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
19648
19649 2010-04-04  Bruno Haible  <bruno@clisp.org>
19650
19651         ioctl: Fix C++ test error on mingw.
19652         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
19653         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
19654         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
19655
19656 2010-04-03  Bruno Haible  <bruno@clisp.org>
19657
19658         wcwidth: Fix C++ test error on mingw.
19659         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
19660         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
19661         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
19662
19663 2010-04-03  Bruno Haible  <bruno@clisp.org>
19664
19665         nanosleep: Fix C++ test error on mingw.
19666         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
19667         * lib/time.in.h (nanosleep): Use modern idiom.
19668         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
19669         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
19670         REPLACE_NANOSLEEP to 1.
19671         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
19672         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
19673
19674 2010-04-03  Bruno Haible  <bruno@clisp.org>
19675
19676         strptime: Fix C++ test error on mingw.
19677         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
19678         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
19679         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
19680         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
19681         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
19682         not REPLACE_STRPTIME.
19683         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
19684         REPLACE_STRPTIME.
19685
19686 2010-04-03  Bruno Haible  <bruno@clisp.org>
19687
19688         timegm: Fix C++ test error on mingw.
19689         * lib/time.in.h (timegm): Use modern idiom.
19690         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
19691         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
19692         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
19693         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
19694
19695 2010-04-03  Bruno Haible  <bruno@clisp.org>
19696
19697         timegm: Assume declaration if function exists.
19698         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
19699         if it exists. Don't clobber ac_cv_func_timegm.
19700
19701 2010-04-03  Bruno Haible  <bruno@clisp.org>
19702
19703         time_r: Fix C++ test error on mingw.
19704         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
19705         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
19706         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
19707         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
19708         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
19709
19710 2010-04-03  Bruno Haible  <bruno@clisp.org>
19711
19712         time_r: Minor updates.
19713         * modules/time_r (Description): Mention the provided functions.
19714         * lib/time_r.c: Don't include <string.h>.
19715         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
19716         * doc/posix-functions/localtime_r.texi: Likewise.
19717
19718 2010-04-03  Bruno Haible  <bruno@clisp.org>
19719
19720         time: Fix regression introduced on 2010-03-08.
19721         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
19722         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
19723
19724 2010-04-03  Jim Meyering  <meyering@redhat.com>
19725
19726         maint.mk: don't silently disable project-specific syntax-check rules
19727         * top/maint.mk (_prohibit_regexp): Define, to help people realize
19728         that they need to convert their project-specific syntax-check rules
19729         to use the new _sc_search_regexp.
19730
19731 2010-04-03  Bruno Haible  <bruno@clisp.org>
19732
19733         fchdir: Fix regression introduced on 2010-03-08.
19734         * lib/unistd.in.h (fchdir): Fix declaration.
19735         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
19736         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
19737         REPLACE_FCHDIR.
19738         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
19739         REPLACE_FCHDIR.
19740
19741 2010-04-03  Bruno Haible  <bruno@clisp.org>
19742
19743         getpagesize: Fix C++ test error on mingw.
19744         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
19745         system does not declare the function.
19746         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
19747         declared.
19748         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19749         HAVE_DECL_GETPAGESIZE.
19750         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
19751
19752 2010-04-03  Bruno Haible  <bruno@clisp.org>
19753
19754         stdio: Make C++ tests work on mingw.
19755         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
19756         does not declare the function.
19757
19758 2010-04-03  Bruno Haible  <bruno@clisp.org>
19759
19760         ftello: Fix C++ test error on mingw.
19761         * lib/stdio.in.h (ftello): Use modern idiom.
19762         * lib/ftello.c (ftello): Renamed from rpl_ftello.
19763         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
19764         is missing and that it needs to be replaced.
19765         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
19766         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
19767         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
19768
19769 2010-04-03  Bruno Haible  <bruno@clisp.org>
19770
19771         fseeko: Fix C++ test error on mingw.
19772         * lib/stdio.in.h (fseeko): Use modern idiom.
19773         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
19774         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
19775         is missing and that it needs to be replaced.
19776         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
19777         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
19778         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
19779
19780 2010-04-03  Bruno Haible  <bruno@clisp.org>
19781
19782         mkstemp: Fix C++ test error on mingw.
19783         * lib/stdlib.in.h (mkstemp): Use modern idiom.
19784         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
19785         function is missing and that it needs to be replaced.
19786         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
19787         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
19788
19789 2010-04-03  Bruno Haible  <bruno@clisp.org>
19790
19791         stpncpy: Fix C++ test error on mingw.
19792         * lib/string.in.h (stpncpy): Use modern idiom.
19793         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
19794         function is missing and that it needs to be replaced.
19795         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19796         REPLACE_STPNCPY.
19797         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
19798
19799 2010-04-03  Bruno Haible  <bruno@clisp.org>
19800
19801         sys_stat: Fix C++ test error on mingw.
19802         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
19803         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
19804
19805 2010-04-03  Bruno Haible  <bruno@clisp.org>
19806
19807         pty: Update doc.
19808         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
19809
19810 2010-04-03  Bruno Haible  <bruno@clisp.org>
19811
19812         unistd: Fix C++ test error on mingw.
19813         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
19814
19815 2010-04-03  Bruno Haible  <bruno@clisp.org>
19816
19817         Update doc regarding mingw.
19818         * doc/glibc-functions/openpty.texi: Update regarding mingw.
19819         * doc/glibc-functions/login_tty.texi: Likewise.
19820         * doc/glibc-functions/forkpty.texi: Likewise.
19821
19822 2010-04-03  Bruno Haible  <bruno@clisp.org>
19823
19824         stdlib: Avoid compilation failure of c-strtold on mingw.
19825         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
19826
19827 2010-04-03  Bruno Haible  <bruno@clisp.org>
19828
19829         locale: Make C++ tests work on Cygwin and mingw.
19830         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
19831         cannot provide the function.
19832         Reported by Simon Josefsson.
19833
19834 2010-04-03  Bruno Haible  <bruno@clisp.org>
19835
19836         localename: Port to MacOS X 10.6.
19837         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
19838         memory layout of the locales in MacOS X 10.6 as well.
19839         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
19840
19841 2010-04-02  Bruno Haible  <bruno@clisp.org>
19842
19843         gnulib-tool: Ensure that long-running tests are executed last.
19844         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
19845         running tests after the one for the other tests.
19846
19847 2010-04-02  Bruno Haible  <bruno@clisp.org>
19848
19849         gnulib-tool: Ensure the tests in the main directory are executed first.
19850         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
19851         start with the current directory.
19852
19853 2010-04-02  Bruno Haible  <bruno@clisp.org>
19854
19855         Tests for module 'havelib', moved here from GNU gettext.
19856         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
19857         modifications.
19858         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
19859         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
19860         with modifications.
19861         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
19862         modifications.
19863         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
19864         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
19865         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
19866         with modifications.
19867         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
19868         with modifications.
19869         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
19870         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
19871         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
19872         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
19873         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
19874         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
19875         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
19876         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
19877         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
19878         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
19879         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
19880         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
19881         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
19882         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
19883         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
19884         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
19885         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
19886         with modifications.
19887         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
19888         with modifications.
19889         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
19890         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
19891         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
19892         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
19893         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
19894         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
19895         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
19896         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
19897         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
19898         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
19899         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
19900         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
19901         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
19902         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
19903         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
19904         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
19905         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
19906         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
19907         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
19908         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
19909         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
19910         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
19911         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
19912         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
19913         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
19914         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
19915         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
19916         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
19917         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
19918         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
19919         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
19920         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
19921         * tests/havelib/rpathx/rpathx.c: New file, from
19922         gettext/autoconf-lib-link.
19923         * tests/havelib/rpathx/Makefile.am: New file, from
19924         gettext/autoconf-lib-link.
19925         * tests/havelib/rpathx/configure.ac: New file, from
19926         gettext/autoconf-lib-link with modifications.
19927         * tests/havelib/rpathy/rpathy.c: New file, from
19928         gettext/autoconf-lib-link.
19929         * tests/havelib/rpathy/Makefile.am: New file, from
19930         gettext/autoconf-lib-link.
19931         * tests/havelib/rpathy/configure.ac: New file, from
19932         gettext/autoconf-lib-link with modifications.
19933         * tests/havelib/rpathz/rpathz.c: New file, from
19934         gettext/autoconf-lib-link.
19935         * tests/havelib/rpathz/Makefile.am: New file, from
19936         gettext/autoconf-lib-link.
19937         * tests/havelib/rpathz/configure.ac: New file, from
19938         gettext/autoconf-lib-link with modifications.
19939         * tests/havelib/rpathlx/usex.c: New file, from
19940         gettext/autoconf-lib-link.
19941         * tests/havelib/rpathlx/Makefile.am: New file, from
19942         gettext/autoconf-lib-link.
19943         * tests/havelib/rpathlx/configure.ac: New file, from
19944         gettext/autoconf-lib-link with modifications.
19945         * tests/havelib/rpathly/usey.c: New file, from
19946         gettext/autoconf-lib-link.
19947         * tests/havelib/rpathly/Makefile.am: New file, from
19948         gettext/autoconf-lib-link.
19949         * tests/havelib/rpathly/configure.ac: New file, from
19950         gettext/autoconf-lib-link with modifications.
19951         * tests/havelib/rpathlz/usez.c: New file, from
19952         gettext/autoconf-lib-link.
19953         * tests/havelib/rpathlz/Makefile.am: New file, from
19954         gettext/autoconf-lib-link.
19955         * tests/havelib/rpathlz/configure.ac: New file, from
19956         gettext/autoconf-lib-link with modifications.
19957         * tests/havelib/rpathlyx/usey.c: New file, from
19958         gettext/autoconf-lib-link.
19959         * tests/havelib/rpathlyx/Makefile.am: New file, from
19960         gettext/autoconf-lib-link.
19961         * tests/havelib/rpathlyx/configure.ac: New file, from
19962         gettext/autoconf-lib-link with modifications.
19963         * tests/havelib/rpathlzyx/usez.c: New file, from
19964         gettext/autoconf-lib-link.
19965         * tests/havelib/rpathlzyx/Makefile.am: New file, from
19966         gettext/autoconf-lib-link.
19967         * tests/havelib/rpathlzyx/configure.ac: New file, from
19968         gettext/autoconf-lib-link with modifications.
19969         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
19970         with modifications.
19971
19972 2010-04-02  Bruno Haible  <bruno@clisp.org>
19973
19974         gnulib-tool: Create distributed built sources also for the tests.
19975         * gnulib-tool (func_create_testdir): Also generate distributed built
19976         sources in the tests directory.
19977
19978 2010-04-02  Bruno Haible  <bruno@clisp.org>
19979
19980         gnulib-tool: Obey user's environment variables.
19981         * gnulib-tool (func_create_testdir): When creating built sources,
19982         respect the environment variables for autoconf, automake, etc. given by
19983         the user.
19984
19985 2010-04-02  Bruno Haible  <bruno@clisp.org>
19986
19987         gnulib-tool: Provide the value of --m4-base to modules.
19988         * gnulib-tool (func_import, func_create_testdir): Emit a definition
19989         of gl_m4_base.
19990
19991 2010-04-02  Eric Blake  <eblake@redhat.com>
19992
19993         maint.mk: fix some fallout
19994         * NEWS: Document the incompatible change, and its effect on cfg.mk.
19995         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
19996
19997 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
19998
19999         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
20000         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
20001         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
20002         (sc_cast_of_x_alloc_return_value): Likewise.
20003         (sc_cast_of_alloca_return_value): Likewise.
20004         (sc_space_tab): Likewise.
20005         (sc_prohibit_atoi_atof): Likewise.
20006         (sc_prohibit_magic_number_exit): Likewise.
20007         (sc_error_exit_success): Likewise.
20008         (sc_file_system): Likewise.
20009         (sc_prohibit_have_config_h): Likewise.
20010         (sc_require_config_h): Likewise.
20011         (sc_prohibit_HAVE_MBRTOWC): Likewise.
20012         (sc_obsolete_symbols): Likewise.
20013         (sc_changelog): Likewise.
20014         (sc_program_name): Likewise.
20015         (sc_the_the): Likewise.
20016         (sc_trailing_blank): Likewise.
20017         (sc_two_space_separator_in_usage): Likewise.
20018         (sc_useless_cpp_parens): Likewise.
20019         (sc_GPL_version): Likewise.
20020         (sc_GFDL_version): Likewise.
20021         (sc_texinfo_acronym): Likewise.
20022         (sc_prohibit_cvs_keyword): Likewise.
20023         (sc_prohibit_stat_st_blocks): Likewise.
20024         (sc_prohibit_S_IS_definition): Likewise.
20025         (sc_redundant_const): Likewise.
20026         (sc_makefile_TAB_only_indentation): Likewise.
20027         (sc_m4_quote_check): Likewise.
20028         (sc_makefile_path_separator_check): Likewise.
20029         (sc_copyright_check): Likewise.
20030         (sc_Wundef_boolean): Likewise.
20031         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
20032
20033         maint.mk: match 0 or more whitespace-before-function-call '('
20034         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
20035         that have zero or two-and-more spaces between the function name
20036         and the open parenthesis.
20037         (sc_error_message_warn_fatal): Likewise.
20038         (sc_error_message_uppercase): Likewise.
20039         (sc_error_message_period): Likewise.
20040
20041 2010-03-31  Eric Blake  <eblake@redhat.com>
20042
20043         maint.mk: check for [ as well as test
20044         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
20045         Based on a libvirt report by Matthias Bolte.
20046
20047         gnumakefile: don't squelch _version output
20048         * top/GNUmakefile (_version): Create one-shot dependency rather
20049         than using $(shell) when version must be regenerated.
20050         (_autoreconf): Run verbosely, by default.
20051
20052         sys_time: avoid compiler warnings
20053         * lib/sys_time.in.h (includes): Ensure gcc pragma is
20054         unconditional, fixing regression from 2010-03-29.
20055         Reported by Simon Josefsson.
20056
20057 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
20058
20059         maint.mk: s/_header_without_use/_sc_header_without_use/
20060         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
20061         (sc_prohibit_assert_without_use): Use the new name.
20062         (sc_prohibit_close_stream_without_use): Likewise.
20063         (sc_prohibit_getopt_without_use): Likewise.
20064         (sc_prohibit_quotearg_without_use): Likewise.
20065         (sc_prohibit_quote_without_use): Likewise.
20066         (sc_prohibit_long_options_without_use): Likewise.
20067         (sc_prohibit_inttostr_without_use): Likewise.
20068         (sc_prohibit_ignore_value_without_use): Likewise.
20069         (sc_prohibit_error_without_use): Likewise.
20070         (sc_prohibit_xalloc_without_use): Likewise.
20071         (sc_prohibit_hash_without_use): Likewise.
20072         (sc_prohibit_hash_pjw_without_use): Likewise.
20073         (sc_prohibit_safe_read_without_use): Likewise.
20074         (sc_prohibit_argmatch_without_use): Likewise.
20075         (sc_prohibit_canonicalize_without_use): Likewise.
20076         (sc_prohibit_root_dev_ino_without_use): Likewise.
20077         (sc_prohibit_openat_without_use): Likewise.
20078         (sc_prohibit_c_ctype_without_use): Likewise.
20079         (sc_prohibit_signal_without_use): Likewise.
20080         (sc_prohibit_intprops_without_use): Likewise.
20081
20082 2010-03-30  Eric Blake  <eblake@redhat.com>
20083
20084         maint: improve module indicators
20085         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
20086         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
20087         columns, and avoid extra macro expansion.
20088
20089         fdopendir: work around FreeBSD bug
20090         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
20091         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
20092         * modules/dirent (Makefile.am): Substitute it.
20093         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
20094         declaration.
20095         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
20096         fix.
20097         Reported by Christian Weisgerber <naddy@mips.inka.de>.
20098
20099 2010-03-29  Bruno Haible  <bruno@clisp.org>
20100
20101         Emit #pragma system_header after the inclusion guard, not before.
20102         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
20103         guard that spans the entire file, not before. This enables an
20104         optimization in GCC's preprocessor.
20105         * lib/ctype.in.h: Likewise.
20106         * lib/dirent.in.h: Likewise.
20107         * lib/errno.in.h: Likewise.
20108         * lib/float.in.h: Likewise.
20109         * lib/getopt.in.h: Likewise.
20110         * lib/iconv.in.h: Likewise.
20111         * lib/langinfo.in.h: Likewise.
20112         * lib/locale.in.h: Likewise.
20113         * lib/math.in.h: Likewise.
20114         * lib/netdb.in.h: Likewise.
20115         * lib/netinet_in.in.h: Likewise.
20116         * lib/pty.in.h: Likewise.
20117         * lib/sched.in.h: Likewise.
20118         * lib/se-selinux.in.h: Likewise.
20119         * lib/search.in.h: Likewise.
20120         * lib/spawn.in.h: Likewise.
20121         * lib/stdarg.in.h: Likewise.
20122         * lib/stdint.in.h: Likewise.
20123         * lib/string.in.h: Likewise.
20124         * lib/strings.in.h: Likewise.
20125         * lib/sys_file.in.h: Likewise.
20126         * lib/sys_ioctl.in.h: Likewise.
20127         * lib/sys_time.in.h: Likewise.
20128         * lib/sys_times.in.h: Likewise.
20129         * lib/sys_utsname.in.h: Likewise.
20130         * lib/sys_wait.in.h: Likewise.
20131         * lib/sysexits.in.h: Likewise.
20132         * lib/wctype.in.h: Likewise.
20133
20134 2010-03-28  James Youngman  <jay@gnu.org>
20135
20136         save-cwd: don't leak a file descriptor when the caller execs.
20137         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
20138         saved file descriptor.
20139         * modules/save-cwd (Depends-on): Depend on cloexec.
20140
20141 2010-03-29  Bruno Haible  <bruno@clisp.org>
20142
20143         Remove vestiges of fts-lgpl module.
20144         * lib/fts_.h: Assume GNULIB_FTS is 1.
20145         * lib/fts.c: Likewise.
20146         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
20147
20148 2010-03-28  Bruno Haible  <bruno@clisp.org>
20149
20150         Fix definition of tests witness macro.
20151         * gnulib-tool (func_import): Fix definition of witness macro.
20152
20153 2010-03-28  Bruno Haible  <bruno@clisp.org>
20154
20155         Fix ioctl's protoype on glibc systems.
20156         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
20157         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
20158         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
20159         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
20160         signature. If not, arrange to replace the ioctl function.
20161         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
20162         REPLACE_IOCTL.
20163         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
20164         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
20165         Reported by Ludovic Courtès <ludo@gnu.org>.
20166
20167 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
20168
20169         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
20170         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
20171         made it so grep -r --include=GLOB* ... did not work.
20172
20173 2010-03-26  Jim Meyering  <meyering@redhat.com>
20174             Eric Blake  <eblake@redhat.com>
20175
20176         maint.mk: prohibit use of test's -o and -a operators
20177         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
20178
20179 2010-03-28  Bruno Haible  <bruno@clisp.org>
20180
20181         Remove unused GNULIB_XYZ macro definitions.
20182         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
20183         invocation.
20184
20185 2010-03-28  Bruno Haible  <bruno@clisp.org>
20186
20187         Mark privileged tests modules.
20188         * modules/idpriv-drop-tests (Status): New section.
20189         * modules/idpriv-droptemp-tests (Status): New section.
20190
20191 2010-03-28  Bruno Haible  <bruno@clisp.org>
20192
20193         Split C++ tests into separate tests modules.
20194         * modules/dirent-c++-tests: New file, extracted from
20195         modules/dirent-tests.
20196         * modules/dirent-tests: Depend on it.
20197         * modules/fcntl-h-c++-tests: New file, extracted from
20198         modules/fcntl-h-tests.
20199         * modules/fcntl-h-tests: Depend on it.
20200         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
20201         * modules/glob-tests: Depend on it.
20202         * modules/iconv-h-c++-tests: New file, extracted from
20203         modules/iconv-h-tests.
20204         * modules/iconv-h-tests: Depend on it.
20205         * modules/langinfo-c++-tests: New file, extracted from
20206         modules/langinfo-tests.
20207         * modules/langinfo-tests: Depend on it.
20208         * modules/locale-c++-tests: New file, extracted from
20209         modules/locale-tests.
20210         * modules/locale-tests: Depend on it.
20211         * modules/math-c++-tests: New file, extracted from modules/math-tests.
20212         * modules/math-tests: Depend on it.
20213         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
20214         * modules/pty-tests: Depend on it.
20215         * modules/search-c++-tests: New file, extracted from
20216         modules/search-tests.
20217         * modules/search-tests: Depend on it.
20218         * modules/signal-c++-tests: New file, extracted from
20219         modules/signal-tests.
20220         * modules/signal-tests: Depend on it.
20221         * modules/spawn-c++-tests: New file, extracted from
20222         modules/spawn-tests.
20223         * modules/spawn-tests: Depend on it.
20224         * modules/stdio-c++-tests: New file, extracted from
20225         modules/stdio-tests.
20226         * modules/stdio-tests: Depend on it.
20227         * modules/stdlib-c++-tests: New file, extracted from
20228         modules/stdlib-tests.
20229         * modules/stdlib-tests: Depend on it.
20230         * modules/string-c++-tests: New file, extracted from
20231         modules/string-tests.
20232         * modules/string-tests: Depend on it.
20233         * modules/sys_ioctl-c++-tests: New file, extracted from
20234         modules/sys_ioctl-tests.
20235         * modules/sys_ioctl-tests: Depend on it.
20236         * modules/sys_select-c++-tests: New file, extracted from
20237         modules/sys_select-tests.
20238         * modules/sys_select-tests: Depend on it.
20239         * modules/sys_socket-c++-tests: New file, extracted from
20240         modules/sys_socket-tests.
20241         * modules/sys_socket-tests: Depend on it.
20242         * modules/sys_stat-c++-tests: New file, extracted from
20243         modules/sys_stat-tests.
20244         * modules/sys_stat-tests: Depend on it.
20245         * modules/sys_time-c++-tests: New file, extracted from
20246         modules/sys_time-tests.
20247         * modules/sys_time-tests: Depend on it.
20248         * modules/time-c++-tests: New file, extracted from modules/time-tests.
20249         * modules/time-tests: Depend on it.
20250         * modules/unistd-c++-tests: New file, extracted from
20251         modules/unistd-tests.
20252         * modules/unistd-tests: Depend on it.
20253         * modules/wchar-c++-tests: New file, extracted from
20254         modules/wchar-tests.
20255         * modules/wchar-tests: Depend on it.
20256         * modules/wctype-c++-tests: New file, extracted from
20257         modules/wctype-tests.
20258         * modules/wctype-tests: Depend on it.
20259         Reported by Simon Josefsson.
20260
20261 2010-03-28  Bruno Haible  <bruno@clisp.org>
20262
20263         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
20264         * gnulib-tool (func_exists_module): New function, extracted from
20265         func_verify_module.
20266         (func_verify_module): Use it.
20267         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
20268         'foo' only if 'foo' exists.
20269         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
20270         module.
20271
20272 2010-03-28  Bruno Haible  <bruno@clisp.org>
20273
20274         gnulib-tool: Add support for special categories of tests.
20275         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
20276         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
20277         (func_usage): Document them.
20278         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
20279         inc_unportable_tests, inc_all_tests): New variables.
20280         (func_acceptable): Consider these variables.
20281         (func_modules_transitive_closure): Make it work when the 'Status' field
20282         consists of multiple words.
20283         (func_import): Store and restore the values of inc_cxx_tests,
20284         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
20285         inc_all_tests in gnulib-comp.m4.
20286         (func_create_testdir): Set inc_all_tests to true.
20287         * doc/gnulib.texi (Extra tests modules): New section.
20288         Suggested by Jim Meyering.
20289
20290 2010-03-28  Bruno Haible  <bruno@clisp.org>
20291
20292         ansi-c++-opt: Allow turning off the C++ build by default.
20293         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
20294         gl_CXX_CHOICE_DEFAULT_NO is defined.
20295         Requested by Eric Blake.
20296
20297 2010-03-28  Bruno Haible  <bruno@clisp.org>
20298
20299         unistd: Avoid #define replacements in C++ mode.
20300         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
20301         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
20302         setsockopt, shutdown, select): In C++, attach a warning to the function
20303         if possible, rather than #defining the symbol to a dysfunctional alias.
20304         Reported by John W. Eaton <jwe@gnu.org>.
20305
20306 2010-03-28  Bruno Haible  <bruno@clisp.org>
20307
20308         Fix link errors on mingw.
20309         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
20310         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
20311         $(LIBSOCKET).
20312         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
20313         $(LIBSOCKET).
20314
20315 2010-03-28  Bruno Haible  <bruno@clisp.org>
20316             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20317
20318         lib-ignore: Determine different options for different compilers.
20319         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
20320         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
20321         Add comments.
20322         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
20323         * NEWS: Mention the change.
20324
20325 2010-03-27  Bruno Haible  <bruno@clisp.org>
20326
20327         Remove unused GNULIB_XYZ macro definitions.
20328         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
20329         * modules/fseek (configure.ac): Likewise.
20330         * modules/ioctl (configure.ac): Likewise.
20331         * modules/open (configure.ac): Likewise.
20332         * modules/stdlib-safer (configure.ac): Likewise.
20333
20334 2010-03-27  Bruno Haible  <bruno@clisp.org>
20335
20336         Add a remark about certain modules.
20337         * modules/malloc (Comment): New section.
20338         * modules/realloc (Comment): Likewise.
20339         * modules/sigpipe (Comment): Likewise.
20340
20341 2010-03-27  Bruno Haible  <bruno@clisp.org>
20342
20343         Resolve conflict between the two kinds of module indicators.
20344         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
20345         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
20346         * modules/canonicalize (configure.ac): Invoke
20347         gl_MODULE_INDICATOR_FOR_TESTS.
20348         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
20349         GNULIB_XYZ.
20350         * tests/test-dirent-c++.cc: Likewise.
20351         * tests/test-dirent-safer.c: Likewise.
20352         * tests/test-dup2.c: Likewise.
20353         * tests/test-fchdir.c: Likewise.
20354         * tests/test-fcntl-h-c++.cc: Likewise.
20355         * tests/test-getopt.c: Likewise.
20356         * tests/test-getopt.h: Likewise.
20357         * tests/test-langinfo-c++.cc: Likewise.
20358         * tests/test-locale-c++.cc: Likewise.
20359         * tests/test-math-c++.cc: Likewise.
20360         * tests/test-pty-c++.cc: Likewise.
20361         * tests/test-search-c++.cc: Likewise.
20362         * tests/test-signal-c++.cc: Likewise.
20363         * tests/test-spawn-c++.cc: Likewise.
20364         * tests/test-stdio-c++.cc: Likewise.
20365         * tests/test-stdlib-c++.cc: Likewise.
20366         * tests/test-string-c++.cc: Likewise.
20367         * tests/test-sys_ioctl-c++.cc: Likewise.
20368         * tests/test-sys_select-c++.cc: Likewise.
20369         * tests/test-sys_socket-c++.cc: Likewise.
20370         * tests/test-sys_stat-c++.cc: Likewise.
20371         * tests/test-sys_time-c++.cc: Likewise.
20372         * tests/test-time-c++.cc: Likewise.
20373         * tests/test-unistd-c++.cc: Likewise.
20374         * tests/test-wchar-c++.cc: Likewise.
20375         * tests/uninorm/test-u8-nfc.c: Likewise.
20376         * tests/uninorm/test-u8-nfd.c: Likewise.
20377         * tests/uninorm/test-u8-nfkc.c: Likewise.
20378         * tests/uninorm/test-u8-nfkd.c: Likewise.
20379         * tests/uninorm/test-u16-nfc.c: Likewise.
20380         * tests/uninorm/test-u16-nfd.c: Likewise.
20381         * tests/uninorm/test-u16-nfkc.c: Likewise.
20382         * tests/uninorm/test-u16-nfkd.c: Likewise.
20383         * tests/uninorm/test-u32-nfc.c: Likewise.
20384         * tests/uninorm/test-u32-nfc-big.c: Likewise.
20385         * tests/uninorm/test-u32-nfd.c: Likewise.
20386         * tests/uninorm/test-u32-nfd-big.c: Likewise.
20387         * tests/uninorm/test-u32-nfkc.c: Likewise.
20388         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
20389         * tests/uninorm/test-u32-nfkd.c: Likewise.
20390         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
20391         * tests/uninorm/test-u32-normalize-big.c: Likewise.
20392
20393 2010-03-27  Bruno Haible  <bruno@clisp.org>
20394
20395         Distinguish two kinds of module indicators.
20396         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
20397         gl_MODULE_INDICATOR.
20398         (gl_MODULE_INDICATOR): New macro.
20399         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
20400         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
20401         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
20402         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
20403         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
20404         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
20405         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
20406         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
20407         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
20408         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
20409         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
20410         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
20411         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
20412         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
20413         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
20414         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
20415         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
20416         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
20417         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
20418         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
20419         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
20420         * modules/cloexec (configure.ac): Likewise.
20421         * modules/getopt-gnu (configure.ac): Likewise.
20422         * modules/uninorm/u8-normalize (configure.ac): Likewise.
20423         * modules/uninorm/u16-normalize (configure.ac): Likewise.
20424         * modules/uninorm/u32-normalize (configure.ac): Likewise.
20425         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
20426
20427 2010-03-27  Bruno Haible  <bruno@clisp.org>
20428
20429         New module description field 'Comment'.
20430         * gnulib-tool: New option --extract-comment.
20431         (func_usage): Document it.
20432         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
20433         (func_get_comment): New function.
20434         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
20435
20436 2010-03-27  Bruno Haible  <bruno@clisp.org>
20437
20438         Addendum to 2010-02-07 commit.
20439         * gnulib-tool (func_usage): Document --extract-applicability option.
20440
20441 2010-03-27  Bruno Haible  <bruno@clisp.org>
20442
20443         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
20444         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
20445         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
20446         rather than link errors.
20447
20448 2010-03-27  Bruno Haible  <bruno@clisp.org>
20449
20450         Avoid side effects from tests-related modules on the compilation of lib.
20451         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
20452         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
20453         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
20454         parameter. Emit into AM_CPPFLAGS a definition of the designated C
20455         macro.
20456         (func_import): Define a witness macro. Assign it a value that depends
20457         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
20458         tests-related modules.
20459         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
20460         Reported by Jim Meyering.
20461
20462 2010-03-27  Bruno Haible  <bruno@clisp.org>
20463
20464         Factorize common .m4 code.
20465         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
20466         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
20467         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
20468         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
20469         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
20470         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
20471         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
20472         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
20473         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
20474         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
20475         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
20476         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
20477         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
20478         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
20479         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
20480         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
20481         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
20482         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
20483         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
20484         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
20485         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
20486         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
20487         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
20488         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
20489         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
20490         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
20491         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
20492         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
20493         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
20494         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
20495         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
20496         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
20497
20498 2010-03-27  Bruno Haible  <bruno@clisp.org>
20499
20500         Fix a compilation error on Cygwin with g++ >= 4.3.
20501         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
20502         if it is undefined or if we alias it to chmod.
20503         (lstat): Don't warn about the use of this function if it is undefined
20504         or if we alias it to stat.
20505         Reported by Simon Josefsson.
20506
20507 2010-03-27  Bruno Haible  <bruno@clisp.org>
20508
20509         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
20510         * modules/getlogin (configure.ac): Update.
20511
20512         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
20513         * modules/getlogin_r (configure.ac): Update.
20514
20515         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
20516         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
20517         * modules/inet_ntop (configure.ac): Update.
20518
20519         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
20520         * modules/inet_pton (configure.ac): Update.
20521
20522         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
20523         * modules/mbslen (configure.ac): Update.
20524
20525         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
20526         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
20527         * modules/forkpty (configure.ac): Update.
20528         * modules/openpty (configure.ac): Update.
20529
20530 2010-03-26  Simon Josefsson  <simon@josefsson.org>
20531
20532         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
20533         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
20534
20535 2010-03-25  Eric Blake  <eblake@redhat.com>
20536
20537         maint: use pragma consistently across replacement headers
20538         * lib/ctype.in.h (system_header): Hoist for consistent placement.
20539         * lib/dirent.in.h (system_header): Likewise.
20540         * lib/errno.in.h (system_header): Likewise.
20541         * lib/float.in.h (system_header): Likewise.
20542         * lib/getopt.in.h (system_header): Likewise.
20543         * lib/iconv.in.h (system_header): Likewise.
20544         * lib/inttypes.in.h (system_header): Likewise.
20545         * lib/langinfo.in.h (system_header): Likewise.
20546         * lib/locale.in.h (system_header): Likewise.
20547         * lib/math.in.h (system_header): Likewise.
20548         * lib/netdb.in.h (system_header): Likewise.
20549         * lib/netinet_in.in.h (system_header): Likewise.
20550         * lib/pty.in.h (system_header): Likewise.
20551         * lib/sched.in.h (system_header): Likewise.
20552         * lib/se-selinux.in.h (system_header): Likewise.
20553         * lib/search.in.h (system_header): Likewise.
20554         * lib/spawn.in.h (system_header): Likewise.
20555         * lib/stdarg.in.h (system_header): Likewise.
20556         * lib/stdint.in.h (system_header): Likewise.
20557         * lib/string.in.h (system_header): Likewise.
20558         * lib/strings.in.h (system_header): Likewise.
20559         * lib/sys_file.in.h (system_header): Likewise.
20560         * lib/sys_ioctl.in.h (system_header): Likewise.
20561         * lib/sys_socket.in.h (system_header): Likewise.
20562         * lib/sys_times.in.h (system_header): Likewise.
20563         * lib/sys_utsname.in.h (system_header): Likewise.
20564         * lib/sys_wait.in.h (system_header): Likewise.
20565         * lib/sysexits.in.h (system_header): Likewise.
20566         * lib/unistd.in.h (system_header): Likewise.
20567         * lib/wctype.in.h (system_header): Likewise.
20568
20569         arpa/inet: fix mingw compilation warning
20570         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
20571         Reported by Matthew Bolte.
20572
20573 2010-03-25  Bruno Haible  <bruno@clisp.org>
20574
20575         Avoid collision between gnulib wrapper and libintl wrapper.
20576         * lib/printf.c (printf): Don't define if a printf wrapper is already
20577         defined in intl/printf.c.
20578         Reported by Michel Boaventura <michel@michelboaventura.com>.
20579
20580 2010-03-25  Bruno Haible  <bruno@clisp.org>
20581
20582         Use ANSI C.
20583         * lib/readutmp.h (getutent): Provide ANSI C prototype.
20584
20585 2010-03-25  Bruno Haible  <bruno@clisp.org>
20586
20587         Minor formatting changes.
20588         * lib/acosl.c: Insert space before function argument list.
20589         * lib/argz.c: Likewise.
20590         * lib/asinl.c: Likewise.
20591         * lib/expl.c: Likewise.
20592         * lib/gen-uni-tables.c: Likewise.
20593         * lib/gettext.h: Likewise.
20594         * lib/glthread/lock.h: Likewise.
20595         * lib/tanl.c: Likewise.
20596         * lib/uniname/uniname.c: Likewise.
20597         * tests/test-idpriv-drop.c: Likewise.
20598         * tests/test-idpriv-droptemp.c: Likewise.
20599         * tests/test-lock.c: Likewise.
20600         * tests/test-tls.c: Likewise.
20601         * lib/argp-help.c: Insert space before function-like macro argument
20602         list.
20603         * lib/memcmp.c: Likewise.
20604         * tests/test-base64.c: Likewise.
20605         * lib/localename.c: Insert space before sizeof's argument list.
20606         * lib/safe-alloc.h: Likewise.
20607         * lib/file-set.h: Insert space before macro argument list.
20608         * tests/test-argp.c: Likewise.
20609         * lib/argp-namefrob.h: Insert space before function parameter list.
20610         * lib/getaddrinfo.c: Likewise.
20611         * lib/netdb.in.h: Likewise.
20612         * lib/parse-duration.h: Likewise.
20613         * lib/parse-duration.c: Likewise.
20614         * lib/poll.c: Likewise.
20615         * lib/select.c: Likewise.
20616         * lib/trim.h: Likewise.
20617         * tests/test-usleep.c: Likewise.
20618         * lib/ldexpl.c: Insert space before function parameter list and before
20619         function argument list.
20620         * lib/logl.c: Likewise.
20621         * lib/sqrtl.c: Likewise.
20622         * lib/trim.c: Likewise.
20623         * lib/cosl.c: Use GNU style indentation. Insert space before function
20624         argument list.
20625         * lib/sinl.c: Likewise.
20626         * lib/tsearch.c: Insert space after 'for'.
20627         Reported by Jim Meyering.
20628
20629 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
20630
20631         * maint.mk (sc_Wundef_boolean): Check for the presence of the
20632         config header before grepping, as it's not present before
20633         autoreconf/configure are run.  Reported by Simon Josefsson.
20634
20635 2010-03-23  Bruno Haible  <bruno@clisp.org>
20636
20637         pt_chown: Make it work with automake < 1.11.
20638         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
20639         Reported by Simon Josefsson.
20640
20641 2010-03-23  Bruno Haible  <bruno@clisp.org>
20642
20643         pt_chown: Don't depend on GPLed modules.
20644         * lib/pt_chown.c: Don't include idpriv.h.
20645         (main): Don't drop privileges.
20646         * modules/pt_chown (Depends-on): Remove idpriv-drop.
20647         Reported by Simon Josefsson.
20648
20649 2010-03-24  Simon Josefsson  <simon@josefsson.org>
20650
20651         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
20652         suggestions from karl@freefriends.org (Karl Berry).
20653
20654 2010-03-22  Eric Blake  <eblake@redhat.com>
20655
20656         gethostname: further tweaks
20657         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
20658         are overriding gethostname.
20659         Suggested by Bruno Haible.
20660
20661 2010-03-21  Bruno Haible  <bruno@clisp.org>
20662
20663         Fix comments.
20664         * lib/forkpty.c (rpl_forkpty): Fix comment.
20665         * lib/openpty.c (rpl_openpty): Likewise.
20666         Reported by Eric Blake.
20667
20668 2010-03-22  Eric Blake  <eblake@redhat.com>
20669
20670         gethostname: fix build on mingw
20671         * lib/unistd.in.h (includes): Work around fact that mingw
20672         <winsock2.h> re-includes <unistd.h>, by avoiding any
20673         redeclarations if we are being included by <winsock2.h>.
20674         Reported by Matthias Bolte.
20675
20676 2010-03-21  Bruno Haible  <bruno@clisp.org>
20677
20678         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
20679         * lib/forkpty.c (forkpty): New replacement function, from glibc with
20680         modifications.
20681         * lib/pty.in.h (forkpty): Update declaration. Add comments.
20682         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
20683         provide the replacement.
20684         * modules/forkpty (Depends-on): Add openpty, login_tty.
20685         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
20686         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
20687         * doc/glibc-functions/forkpty.texi: More supported platforms.
20688         * config/srclist.txt: Add forkpty.c (commented).
20689
20690 2010-03-21  Bruno Haible  <bruno@clisp.org>
20691
20692         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
20693         (Makefile.am): Verify that PTY_LIB is defined.
20694
20695         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
20696
20697 2010-03-21  Bruno Haible  <bruno@clisp.org>
20698
20699         Tests for module 'login_tty'.
20700         * modules/login_tty-tests: New file.
20701         * tests/test-login_tty.c: New file.
20702
20703         New module 'login_tty'.
20704         * lib/login_tty.c: New file.
20705         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
20706         * modules/login_tty: New file.
20707         * doc/glibc-functions/login_tty.texi: Mention the new module.
20708
20709 2010-03-21  Bruno Haible  <bruno@clisp.org>
20710
20711         login_tty: Documentation.
20712         * doc/glibc-functions/login_tty.texi: New file.
20713         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
20714
20715 2010-03-21  Bruno Haible  <bruno@clisp.org>
20716
20717         pty: Consistent macro naming.
20718         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
20719         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
20720         * modules/pty (configure.ac): Update.
20721
20722 2010-03-21  Bruno Haible  <bruno@clisp.org>
20723
20724         Tests for openpty: Make stricter.
20725         * tests/test-openpty.c (main): Add test of canonical processing and
20726         erase.
20727         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
20728
20729         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
20730         * lib/openpty.c (openpty): New replacement function.
20731         * lib/pty.in.h: Include <termios.h>.
20732         (openpty): Update declaration. Add comments.
20733         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
20734         is not declared, arrange to provide the replacement. Check for _getpty
20735         and posix_openpt.
20736         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
20737         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
20738         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
20739         * modules/pty-tests (test_pty_c___LDADD): New variable.
20740         * doc/glibc-functions/openpty.texi: More supported platforms.
20741
20742 2010-03-21  Bruno Haible  <bruno@clisp.org>
20743
20744         setenv: Tweaks.
20745         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
20746         the test program.
20747         * doc/posix-functions/setenv.texi: Update platforms list.
20748
20749 2010-03-21  Bruno Haible  <bruno@clisp.org>
20750
20751         New module 'unlockpt'.
20752         * lib/unlockpt.c: New file, from glibc with modifications.
20753         * m4/unlockpt.m4: New file.
20754         * modules/unlockpt: New file.
20755         * lib/stdlib.in.h (unlockpt): New declaration.
20756         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
20757         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
20758         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
20759         HAVE_UNLOCKPT.
20760         * doc/posix-functions/unlockpt.texi: Mention the new module.
20761         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
20762         * config/srclist.txt: Add unlockpt.c (commented).
20763
20764 2010-03-21  Jim Meyering  <meyering@redhat.com>
20765
20766         maint.mk: prohibit inclusion of "intprops.h" without use
20767         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
20768
20769 2010-03-21  Bruno Haible  <bruno@clisp.org>
20770
20771         New module 'grantpt'.
20772         * lib/grantpt.c: New file, from glibc with modifications.
20773         * m4/grantpt.m4: New file.
20774         * modules/grantpt: New file.
20775         * lib/stdlib.in.h (grantpt): New declaration.
20776         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
20777         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
20778         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
20779         HAVE_GRANTPT.
20780         * doc/posix-functions/grantpt.texi: Mention the new module.
20781         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
20782         * config/srclist.txt: Add grantpt.c (commented).
20783
20784 2010-03-21  Bruno Haible  <bruno@clisp.org>
20785
20786         New module 'pt_chown'.
20787         * lib/pt_chown.c: New file, from glibc with modifications.
20788         * lib/pty-private.h: New file, from glibc with modifications.
20789         * modules/pt_chown: New file.
20790         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
20791
20792 2010-03-21  Bruno Haible  <bruno@clisp.org>
20793
20794         Tests for module 'ptsname'.
20795         * modules/ptsname-tests: New file.
20796         * tests/test-ptsname.c: New file.
20797
20798         New module 'ptsname'.
20799         * lib/ptsname.c: New file, from glibc with modifications.
20800         * m4/ptsname.m4: New file.
20801         * modules/ptsname: New file.
20802         * lib/stdlib.in.h (ptsname): New declaration.
20803         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
20804         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
20805         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
20806         HAVE_PTSNAME.
20807         * doc/posix-functions/ptsname.texi: Mention the new module.
20808         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
20809         * config/srclist.txt: Add ptsname.c (commented).
20810
20811 2010-03-21  Bruno Haible  <bruno@clisp.org>
20812
20813         Tests for module 'ttyname_r'.
20814         * modules/ttyname_r-tests: New file.
20815         * tests/test-ttyname_r.c: New file.
20816
20817         New module 'ttyname_r'.
20818         * lib/ttyname_r.c: New file.
20819         * m4/ttyname_r.m4: New file.
20820         * modules/ttyname_r: New file.
20821         * lib/unistd.in.h (ttyname_r): New declaration.
20822         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
20823         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
20824         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
20825         HAVE_TTYNAME_R.
20826         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
20827         * doc/posix-functions/ttyname_r.texi: Mention the new module.
20828
20829 2010-03-20  Bruno Haible  <bruno@clisp.org>
20830
20831         signal: Undefine macro definitions in C++ mode.
20832         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
20833         sigfillset): Undefine macro definitions from the system header in C++
20834         mode.
20835         Reported by John W. Eaton <jwe@gnu.org>.
20836
20837 2010-03-20  Bruno Haible  <bruno@clisp.org>
20838
20839         Ensure no #include statements inside extern "C" { ... }.
20840         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
20841         contain #include statements.
20842         * lib/time.in.h: Likewise.
20843
20844 2010-03-20  Bruno Haible  <bruno@clisp.org>
20845
20846         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
20847         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
20848         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
20849         Reported by John W. Eaton <jwe@gnu.org>.
20850
20851 2010-03-20  Bruno Haible  <bruno@clisp.org>
20852
20853         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
20854         Reported by Jim Meyering.
20855
20856 2010-03-20  Bruno Haible  <bruno@clisp.org>
20857
20858         pipe: Set errno upon failure.
20859         * lib/pipe.h: Specify that when -1 is returned, errno is set.
20860         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
20861         errno value in error message.
20862
20863 2010-03-20  Bruno Haible  <bruno@clisp.org>
20864             Jim Meyering  <meyering@redhat.com>
20865
20866         lchown: Avoid "unused variable" warning.
20867         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
20868
20869 2010-03-20  Bruno Haible  <bruno@clisp.org>
20870
20871         Work around unlink() bug on MacOS X 10.5.6.
20872         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
20873         attempting to unlink a parent directory.
20874         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
20875         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
20876         activate for the replacement function.
20877         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
20878
20879 2010-03-20  Bruno Haible  <bruno@clisp.org>
20880
20881         Fix link errors on Solaris 8.
20882         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
20883         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
20884
20885 2010-03-19  Jim Meyering  <meyering@redhat.com>
20886
20887         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
20888         The _LIBC implementation of build_range_exp correctly honors the
20889         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
20890         However, the non-_LIBC implementation would ignore that syntax-bit
20891         flag and return REG_ERANGE unconditionally.
20892         This change makes it honor that flag.
20893         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
20894         Make two pointer parameters "const".
20895         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
20896         (parse_bracket_exp): Update caller.
20897
20898         regex.m4: correct the reversed range endpoint ([b-a]) test
20899         * m4/regex.m4: When requiring that [b-a] evoke failure,
20900         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
20901         test pass once again for x86-based systems.
20902
20903 2010-03-19  Bruno Haible  <bruno@clisp.org>
20904
20905         scandir: Fix link error on Solaris 8.
20906         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
20907         macros.
20908
20909 2010-03-19  Bruno Haible  <bruno@clisp.org>
20910
20911         getusershell: Fix documentation.
20912         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
20913         module.
20914         * doc/glibc-functions/setusershell.texi: Likewise.
20915
20916         getusershell: Provide declaration, missing on Solaris 9.
20917         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
20918         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
20919         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
20920         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
20921         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20922         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
20923         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
20924         HAVE_GETUSERSHELL.
20925         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
20926
20927 2010-03-19  Bruno Haible  <bruno@clisp.org>
20928
20929         wctype: Provide iswblank function.
20930         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
20931         exists and is fine.
20932         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
20933         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
20934         * tests/test-wctype.c (main): Re-enable the iswblank tests.
20935         * doc/posix-functions/iswblank.texi: Update.
20936
20937 2010-03-19  Bruno Haible  <bruno@clisp.org>
20938
20939         Tests of module 'pty' in C++ mode.
20940         * modules/pty-tests: New file.
20941         * tests/test-pty-c++.cc: New file.
20942         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20943
20944 2010-03-19  Eric Blake  <eblake@redhat.com>
20945
20946         logb: fix documentation
20947         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
20948         1.5 declaration bug.
20949
20950         forkpty, openpty: prefer glibc's const-safe prototype
20951         * lib/forkpty.c (rpl_forkpty): New file.
20952         * lib/openpty.c (rpl_openpty): Likewise.
20953         * modules/forkpty (Files): Distribute it.
20954         * modules/openpty (Files): Likewise.
20955         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
20956         check...
20957         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
20958         replacement for for non-const BSD signature.
20959         * modules/pty (Makefile.am): Substitute witnesses.
20960         * lib/pty.in.h (forkpty, openpty): Declare replacements.
20961         * tests/test-forkpty.c: Update signature check.
20962         * tests/test-openpty.c: Likewise.
20963         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
20964         * doc/glibc-functions/openpty.texi (openpty): Likewise.
20965
20966         forkpty, openpty: split functions into new modules
20967         * modules/pty (Makefile.am): Substitute new witnesses.
20968         (Libraries): Move library detection...
20969         * modules/forkpty: ...into new module.
20970         * modules/openpty: Another new module.
20971         * modules/pty-tests: Rename and split...
20972         * modules/forkpty-tests: ...to this...
20973         * modules/openpty-tests: ...and this.
20974         * tests/test-pty.c: Rename and split...
20975         * tests/test-forkpty.c: ...to this...
20976         * tests/test-openpty.c: ...and this.
20977         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
20978         (gl_PTY): Split library searching...
20979         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
20980         (gl_FORKPTY, gl_OPENPTY): New macros.
20981         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
20982         * NEWS: Mention the split.
20983         * MODULES.html.sh (Misc): Document the modules.
20984         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
20985         * doc/glibc-functions/openpty.texi (openpty): Likewise.
20986
20987         pty: improve replacement header
20988         * lib/pty.in.h: New file.
20989         * modules/pty (Files): Ship it.
20990         (Makefile.am): Always build replacement.
20991         * m4/pty.m4: Rename...
20992         * m4/pty_h.m4: ...to this.
20993         (gl_PTY): Modernize setting of witness macros; update check of
20994         forkpty to take proper advantage of cache.
20995         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
20996
20997         getopt: avoid compiler warning
20998         * lib/getopt.c (attribute_hidden): Remove unused macro.
20999
21000 2010-03-18  Bruno Haible  <bruno@clisp.org>
21001
21002         Fix link errors on Solaris 8.
21003         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
21004         * modules/search-tests (test_search_c___LDADD): Likewise.
21005         * modules/signal-tests (test_signal_c___LDADD): Likewise.
21006         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
21007         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
21008         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
21009         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
21010         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
21011         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
21012
21013 2010-03-18  Bruno Haible  <bruno@clisp.org>
21014
21015         Fix bug introduced on 2010-03-14.
21016         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
21017         (gl_SPAWN_H): Require it.
21018         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
21019         Reported by Simon Josefsson.
21020
21021 2010-03-18  Bruno Haible  <bruno@clisp.org>
21022
21023         Fix typo introduced on 2009-12-31.
21024         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
21025         posix_spawn_file_actions_adddup2.
21026
21027 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
21028         and Eric Blake  <eblake@redhat.com>
21029
21030         test-vc-list-files-git: make more robust
21031         * tests/test-vc-list-files-git.sh: Unset problematic environment
21032         variables.  Chain commands together.
21033
21034 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
21035
21036         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
21037         `AC_CHECK_DECL' invocation.
21038
21039 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
21040
21041         * lib/inttostr.c (inttostr): Make sure the invocation of verify
21042         appears before executable statements. Suggested by Petr Sumbera
21043         <Petr.Sumbera@Sun.COM>.
21044
21045 2010-03-14  Bruno Haible  <bruno@clisp.org>
21046
21047         * tests/test-flock.c (test_exclusive): Comment out a test that causes
21048         portability problems. Instead use a simpler test.
21049         (main): Check that invalid arguments are rejected only on Linux.
21050
21051 2010-03-14  Bruno Haible  <bruno@clisp.org>
21052
21053         Fix bug introduced on 2009-12-31.
21054         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
21055         gl_PREREQ_SYS_H_WINSOCK2 always.
21056         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
21057         SYS_SOCKET_H variable.
21058         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
21059         Update comments.
21060         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
21061         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
21062         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21063         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
21064         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
21065
21066 2010-03-14  Bruno Haible  <bruno@clisp.org>
21067
21068         Fix values returned by sinl, cosl.
21069         * lib/trigl.h: Add specification comments.
21070         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
21071         that combines the values from the precomputed table with the values of
21072         the Chebyshev polynomials.
21073
21074 2010-03-14  Bruno Haible  <bruno@clisp.org>
21075
21076         Fix compilation error when modules 'posix_spawn[p]' are not used.
21077         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
21078         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
21079
21080 2010-03-14  Bruno Haible  <bruno@clisp.org>
21081
21082         Fix compilation error on mingw when module 'time_r' is not used.
21083         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
21084         is 1.
21085         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
21086         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
21087         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
21088         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
21089
21090 2010-03-14  Bruno Haible  <bruno@clisp.org>
21091
21092         Fix compilation error with Sun C.
21093         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
21094         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
21095         instead of GCC specific ULONG_LONG_MAX.
21096         * lib/xstrtoll.c: Likewise.
21097         * lib/xstrtoull.c: Likewise.
21098
21099 2010-03-13  Bruno Haible  <bruno@clisp.org>
21100
21101         Allow the user to disable C++ code and tests.
21102         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
21103         (gl_PROG_ANSI_CXX): Require it.
21104
21105 2010-03-13  Bruno Haible  <bruno@clisp.org>
21106
21107         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
21108         cases.
21109
21110 2010-03-13  Bruno Haible  <bruno@clisp.org>
21111
21112         Test that gnulib does not break the standard C++ headers.
21113         * tests/test-locale-c++2.cc: New file.
21114         * modules/locale-tests (Files): Add it.
21115         (Makefile.am): Compile it for test-locale-c++.
21116         * tests/test-math-c++2.cc: New file.
21117         * modules/math-tests (Files): Add it.
21118         (Makefile.am): Compile it for test-math-c++.
21119         * tests/test-signal-c++2.cc: New file.
21120         * modules/signal-tests (Files): Add it.
21121         (Makefile.am): Compile it for test-signal-c++.
21122         * tests/test-stdio-c++2.cc: New file.
21123         * modules/stdio-tests (Files): Add it.
21124         (Makefile.am): Compile it for test-stdio-c++.
21125         * tests/test-stdlib-c++2.cc: New file.
21126         * modules/stdlib-tests (Files): Add it.
21127         (Makefile.am): Compile it for test-stdlib-c++.
21128         * tests/test-string-c++2.cc: New file.
21129         * modules/string-tests (Files): Add it.
21130         (Makefile.am): Compile it for test-string-c++.
21131         * tests/test-time-c++2.cc: New file.
21132         * modules/time-tests (Files): Add it.
21133         (Makefile.am): Compile it for test-time-c++.
21134         Reported by John W. Eaton <jwe@gnu.org>.
21135
21136 2010-03-13  Bruno Haible  <bruno@clisp.org>
21137
21138         * gnulib-tool (func_usage): Clarify which options are available for
21139         --create-testdir and --create-megatestdir.
21140
21141 2010-03-13  Bruno Haible  <bruno@clisp.org>
21142
21143         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
21144         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
21145         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
21146         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
21147         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
21148         when appropriate.
21149         Reported by Jim Meyering.
21150
21151 2010-03-12  Simon Josefsson  <simon@josefsson.org>
21152
21153         * gnulib-tool (func_import): Explain origin of code.
21154
21155 2010-03-12  Bruno Haible  <bruno@clisp.org>
21156
21157         Fix problem with automake's definition of CXXLINK.
21158         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
21159         Reported by Simon Josefsson and Ludovic Courtès.
21160
21161 2010-03-12  Bruno Haible  <bruno@clisp.org>
21162
21163         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
21164         stable releases.
21165
21166 2010-03-11  Bruno Haible  <bruno@clisp.org>
21167
21168         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
21169         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
21170         whether the system provides one variant or multiple variants of the
21171         function.
21172         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
21173         C++ compilers.
21174         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
21175         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
21176         Reported by Jim Meyering.
21177
21178 2010-03-09  Simon Josefsson  <simon@josefsson.org>
21179
21180         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
21181
21182 2010-03-08  Bruno Haible  <bruno@clisp.org>
21183
21184         gnulib-tool: Add support for --libtool in --create-testdir.
21185         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
21186         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
21187
21188 2010-03-08  Eric Blake  <eblake@redhat.com>
21189
21190         gnulib-tool.texi: mention possibility of git submodule
21191         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
21192         submodules.
21193         * doc/.gitignore: Ignore another generated file.
21194
21195 2010-03-08  Karl Berry  <karl@gnu.org>
21196
21197         * doc/gnulib-tool.texi (VCS Issues): Mention third option
21198         of committing gnulib files while skipping others.
21199
21200 2010-03-07  Bruno Haible  <bruno@clisp.org>
21201
21202         Tests of module 'wctype' in C++ mode.
21203         * tests/test-wctype-c++.cc: New file.
21204         * modules/wctype-tests (Files): Add it and tests/signature.h.
21205         (Depends-on): Add ansi-c++-opt.
21206         (Makefile.am): Arrange to compile and run test-wctype-c++.
21207
21208         Tests of module 'wchar' in C++ mode.
21209         * tests/test-wchar-c++.cc: New file.
21210         * modules/wchar-tests (Files): Add it and tests/signature.h.
21211         (Depends-on): Add ansi-c++-opt.
21212         (Makefile.am): Arrange to compile and run test-wchar-c++.
21213         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
21214         gl_MODULE_INDICATOR.
21215
21216         Tests of module 'unistd' in C++ mode.
21217         * tests/test-unistd-c++.cc: New file.
21218         * modules/unistd-tests (Files): Add it and tests/signature.h.
21219         (Depends-on): Add ansi-c++-opt.
21220         (Makefile.am): Arrange to compile and run test-unistd-c++.
21221         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
21222         gl_MODULE_INDICATOR.
21223
21224         Tests of module 'time' in C++ mode.
21225         * tests/test-time-c++.cc: New file.
21226         * modules/time-tests (Files): Add it and tests/signature.h.
21227         (Depends-on): Add ansi-c++-opt.
21228         (Makefile.am): Arrange to compile and run test-time-c++.
21229         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
21230
21231         Tests of module 'sys_time' in C++ mode.
21232         * tests/test-sys_time-c++.cc: New file.
21233         * modules/sys_time-tests (Files): Add it and tests/signature.h.
21234         (Depends-on): Add ansi-c++-opt.
21235         (Makefile.am): Arrange to compile and run test-sys_time-c++.
21236         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
21237         gl_MODULE_INDICATOR.
21238
21239         Tests of module 'sys_stat' in C++ mode.
21240         * tests/test-sys_stat-c++.cc: New file.
21241         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
21242         (Depends-on): Add ansi-c++-opt.
21243         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
21244         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
21245         gl_MODULE_INDICATOR.
21246
21247         Tests of module 'sys_socket' in C++ mode.
21248         * tests/test-sys_socket-c++.cc: New file.
21249         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
21250         (Depends-on): Add ansi-c++-opt.
21251         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
21252         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
21253         gl_MODULE_INDICATOR.
21254
21255         Tests of module 'sys_select' in C++ mode.
21256         * tests/test-sys_select-c++.cc: New file.
21257         * modules/sys_select-tests (Files): Add it and tests/signature.h.
21258         (Depends-on): Add ansi-c++-opt.
21259         (Makefile.am): Arrange to compile and run test-sys_select-c++.
21260         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
21261         gl_MODULE_INDICATOR.
21262
21263         Tests of module 'sys_ioctl' in C++ mode.
21264         * tests/test-sys_ioctl-c++.cc: New file.
21265         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
21266         (Depends-on): Add ansi-c++-opt.
21267         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
21268         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
21269         gl_MODULE_INDICATOR.
21270
21271         Tests of module 'string' in C++ mode.
21272         * tests/test-string-c++.cc: New file.
21273         * modules/string-tests (Files): Add it and tests/signature.h.
21274         (Depends-on): Add ansi-c++-opt.
21275         (Makefile.am): Arrange to compile and run test-string-c++.
21276         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
21277         gl_MODULE_INDICATOR.
21278
21279         Tests of module 'stdlib' in C++ mode.
21280         * tests/test-stdlib-c++.cc: New file.
21281         * modules/stdlib-tests (Files): Add it and tests/signature.h.
21282         (Depends-on): Add ansi-c++-opt.
21283         (Makefile.am): Arrange to compile and run test-stdlib-c++.
21284         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
21285         gl_MODULE_INDICATOR.
21286
21287         Tests of module 'stdio' in C++ mode.
21288         * tests/test-stdio-c++.cc: New file.
21289         * modules/stdio-tests (Files): Add it and tests/signature.h.
21290         (Depends-on): Add ansi-c++-opt.
21291         (Makefile.am): Arrange to compile and run test-stdio-c++.
21292         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
21293         gl_MODULE_INDICATOR.
21294
21295         Tests of module 'spawn' in C++ mode.
21296         * tests/test-spawn-c++.cc: New file.
21297         * modules/spawn-tests (Files): Add it and tests/signature.h.
21298         (Depends-on): Add ansi-c++-opt.
21299         (Makefile.am): Arrange to compile and run test-spawn-c++.
21300         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
21301         gl_MODULE_INDICATOR.
21302
21303         Tests of module 'signal' in C++ mode.
21304         * tests/test-signal-c++.cc: New file.
21305         * modules/signal-tests (Files): Add it and tests/signature.h.
21306         (Depends-on): Add ansi-c++-opt.
21307         (Makefile.am): Arrange to compile and run test-signal-c++.
21308         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
21309         gl_MODULE_INDICATOR.
21310
21311         Tests of module 'search' in C++ mode.
21312         * tests/test-search-c++.cc: New file.
21313         * modules/search-tests (Files): Add it and tests/signature.h.
21314         (Depends-on): Add ansi-c++-opt.
21315         (Makefile.am): Arrange to compile and run test-search-c++.
21316         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
21317         gl_MODULE_INDICATOR.
21318
21319         Tests of module 'math' in C++ mode.
21320         * tests/test-math-c++.cc: New file.
21321         * modules/math-tests (Files): Add it and tests/signature.h.
21322         (Depends-on): Add ansi-c++-opt.
21323         (Makefile.am): Arrange to compile and run test-math-c++.
21324         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
21325
21326         Tests of module 'locale' in C++ mode.
21327         * tests/test-locale-c++.cc: New file.
21328         * modules/locale-tests (Files): Add it and tests/signature.h.
21329         (Depends-on): Add ansi-c++-opt.
21330         (Makefile.am): Arrange to compile and run test-locale-c++.
21331         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
21332         gl_MODULE_INDICATOR.
21333
21334         Tests of module 'langinfo' in C++ mode.
21335         * tests/test-langinfo-c++.cc: New file.
21336         * modules/langinfo-tests (Files): Add it and tests/signature.h.
21337         (Depends-on): Add ansi-c++-opt.
21338         (Makefile.am): Arrange to compile and run test-langinfo-c++.
21339         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
21340         gl_MODULE_INDICATOR.
21341
21342         Tests of module 'iconv-h' in C++ mode.
21343         * tests/test-iconv-h-c++.cc: New file.
21344         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
21345         (Depends-on): Add ansi-c++-opt.
21346         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
21347
21348         Tests of module 'glob' in C++ mode.
21349         * tests/test-glob-c++.cc: New file.
21350         * modules/glob-tests (Files): Add it.
21351         (Depends-on): Add ansi-c++-opt.
21352         (Makefile.am): Arrange to compile and run test-glob-c++.
21353
21354         Tests of module 'fcntl-h' in C++ mode.
21355         * tests/test-fcntl-h-c++.cc: New file.
21356         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
21357         (Depends-on): Add ansi-c++-opt.
21358         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
21359         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
21360         gl_MODULE_INDICATOR.
21361
21362         Tests of module 'dirent' in C++ mode.
21363         * tests/test-dirent-c++.cc: New file.
21364         * modules/dirent-tests (Files): Add it and tests/signature.h.
21365         (Depends-on): Add ansi-c++-opt.
21366         (Makefile.am): Arrange to compile and run test-dirent-c++.
21367         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
21368         gl_MODULE_INDICATOR.
21369
21370         New module 'ansi-c++-opt'.
21371         * modules/ansi-c++-opt: New file.
21372         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
21373
21374         Document C++ namespace mode.
21375         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
21376
21377         wctype: Avoid #define replacements in C++ mode.
21378         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
21379         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
21380         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
21381         In C++, define a namespaced alias symbol.
21382         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
21383         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
21384         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
21385         rule.
21386
21387         wchar: Avoid #define replacements in C++ mode.
21388         * lib/wchar.in.h: Include c++defs.h.
21389         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
21390         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
21391         symbol.
21392         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
21393         * modules/wchar (Depends-on): Add c++defs.
21394         (Makefile.am): Update wchar.h rule.
21395
21396         unistd: Avoid #define replacements in C++ mode.
21397         * lib/unistd.in.h: Include c++defs.h.
21398         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
21399         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
21400         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
21401         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
21402         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
21403         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
21404         symbol.
21405         (environ): Update.
21406         * modules/unistd (Depends-on): Add c++defs.
21407         (Makefile.am): Update unistd.h rule.
21408
21409         time: Avoid #define replacements in C++ mode.
21410         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
21411         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
21412         define a namespaced alias symbol.
21413         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
21414         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
21415         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
21416         * modules/time (Depends-on): Add c++defs, warn-on-use.
21417         (Makefile.am): Update time.h rule.
21418         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
21419         * modules/nanosleep (configure.ac): Likewise.
21420         * modules/strptime (configure.ac): Likewise.
21421         * modules/timegm (configure.ac): Likewise.
21422
21423         sys_time: Avoid #define replacements in C++ mode.
21424         * lib/sys_time.in.h: Include c++defs.h.
21425         (gettimeofday): In C++, define a namespaced alias symbol.
21426         * modules/sys_time (Depends-on): Add c++defs.
21427         (Makefile.am): Update sys/time.h rule.
21428
21429         sys_stat: Avoid #define replacements in C++ mode.
21430         * lib/sys_stat.in.h: Include c++defs.h.
21431         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
21432         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
21433         namespaced alias symbol.
21434         In C++, define a namespaced alias symbol.
21435         * modules/sys_stat (Depends-on): Add c++defs.
21436         (Makefile.am): Update sys/stat.h rule.
21437
21438         sys_socket: Avoid #define replacements in C++ mode.
21439         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
21440         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
21441         definitions also when the system has a <sys/socket.h>.
21442         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
21443         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
21444         In C++, define a namespaced alias symbol.
21445         * modules/sys_socket (Depends-on): Add c++defs.
21446         (Makefile.am): Update sys/socket.h rule.
21447
21448         sys_select: Avoid #define replacements in C++ mode.
21449         * lib/sys_select.in.h: Include c++defs.h. Enable the function
21450         definitions also when the system has a <sys/select.h>.
21451         (select): In C++, define a namespaced alias symbol.
21452         * modules/sys_select (Depends-on): Add c++defs.
21453         (Makefile.am): Update sys/select.h rule.
21454
21455         sys_ioctl: Avoid #define replacements in C++ mode.
21456         * lib/sys_ioctl.in.h: Include c++defs.h.
21457         (ioctl): In C++, define a namespaced alias symbol.
21458         * modules/sys_ioctl (Depends-on): Add c++defs.
21459         (Makefile.am): Update sys/ioctl.h rule.
21460
21461         string: Avoid #define replacements in C++ mode.
21462         * lib/string.in.h: Include c++defs.h.
21463         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
21464         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
21465         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
21466         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
21467         strsignal, strverscmp): In C++, define a namespaced alias symbol.
21468         * modules/string (Depends-on): Add c++defs.
21469         (Makefile.am): Update string.h rule.
21470
21471         stdlib: Avoid #define replacements in C++ mode.
21472         * lib/stdlib.in.h: Include c++defs.h.
21473         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
21474         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
21475         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
21476         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
21477         symbol.
21478         * modules/stdlib (Depends-on): Add c++defs.
21479         (Makefile.am): Update stdlib.h rule.
21480
21481         stdio: Avoid #define replacements in C++ mode.
21482         * lib/stdio.in.h: Include c++defs.h.
21483         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
21484         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
21485         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
21486         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
21487         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
21488         namespaced alias symbol.
21489         * modules/stdio (Depends-on): Add c++defs.
21490         (Makefile.am): Update stdio.h rule.
21491
21492         spawn: Avoid #define replacements in C++ mode.
21493         * lib/spawn.in.h: Include c++defs.h.
21494         (posix_spawn, posix_spawnp, posix_spawnattr_init,
21495         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
21496         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
21497         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
21498         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
21499         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
21500         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
21501         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
21502         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
21503         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
21504         In C++, define a namespaced alias symbol.
21505         * modules/spawn (Depends-on): Add c++defs.
21506         (Makefile.am): Update spawn.h rule.
21507
21508         signal: Avoid #define replacements in C++ mode.
21509         * lib/signal.in.h: Include c++defs.h.
21510         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
21511         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
21512         namespaced alias symbol.
21513         * modules/signal (Depends-on): Add c++defs.
21514         (Makefile.am): Update signal.h rule.
21515
21516         search: Avoid #define replacements in C++ mode.
21517         * lib/search.in.h: Include c++defs.h.
21518         (_gl_search_compar_fn, _gl_search_action_fn): New types.
21519         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
21520         symbol.
21521         * modules/search (Depends-on): Add c++defs.
21522         (Makefile.am): Update search.h rule.
21523
21524         math: Avoid #define replacements in C++ mode.
21525         * lib/math.in.h: Include c++defs.h.
21526         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
21527         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
21528         trunc, truncl): In C++, define a namespaced alias symbol.
21529         * modules/math (Depends-on): Add c++defs.
21530         (Makefile.am): Update math.h rule.
21531
21532         locale: Avoid #define replacements in C++ mode.
21533         * lib/locale.in.h: Include c++defs.h.
21534         (duplocale): In C++, define a namespaced alias symbol.
21535         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
21536         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
21537         * modules/locale (Depends-on): Add c++defs.
21538         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
21539
21540         langinfo: Avoid #define replacements in C++ mode.
21541         * lib/langinfo.in.h: Include c++defs.h.
21542         (nl_langinfo): In C++, define a namespaced alias symbol.
21543         * modules/langinfo (Depends-on): Add c++defs.
21544         (Makefile.am): Update langinfo.h rule.
21545
21546         iconv-h: Avoid #define replacements in C++ mode.
21547         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
21548         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
21549         symbol.
21550         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
21551         whenever iconv is present.
21552         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
21553         (Makefile.am): Update iconv.h rule.
21554
21555         glob: Avoid #define replacements in C++ mode.
21556         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
21557         (_gl_glob_errfunc_fn): New type.
21558         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
21559         symbol.
21560         * modules/glob (Depends-on): Add c++defs, warn-on-use.
21561         (Makefile.am): Update glob.h rule.
21562
21563         fcntl-h: Avoid #define replacements in C++ mode.
21564         * lib/fcntl.in.h: Include c++defs.h.
21565         (fcntl, open, openat): In C++, define a namespaced alias symbol.
21566         * modules/fcntl-h (Depends-on): Add c++defs.
21567         (Makefile.am): Update fcntl.h rule.
21568
21569         dirent: Avoid #define replacements in C++ mode.
21570         * lib/dirent.in.h: Include c++defs.h.
21571         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
21572         namespaced alias symbol.
21573         (dirfd): Update declaration.
21574         * modules/dirent (Depends-on): Add c++defs.
21575         (Makefile.am): Update dirent.h rule.
21576
21577         ctype: Make it usable in C++ code.
21578         * lib/ctype.in.h: Include c++defs.h.
21579         (isblank): Declare as extern "C".
21580         * modules/ctype (Depends-on): Add c++defs.
21581         (Makefile.am): Update ctype.h rule.
21582
21583         New module 'c++defs'.
21584         * modules/c++defs: New file.
21585         * build-aux/c++defs.h: New file.
21586         Reported by John W. Eaton <jwe@gnu.org>.
21587
21588 2010-03-07  Bruno Haible  <bruno@clisp.org>
21589
21590         logb: Provide missing declaration for Cygwin.
21591         * lib/math.in.h (logb): New declaration.
21592         * m4/logb.m4: New file.
21593         * modules/logb (Files): Add m4/logb.m4.
21594         (Depends-on): Add math.
21595         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
21596         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
21597         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
21598         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
21599         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
21600
21601 2010-03-07  Bruno Haible  <bruno@clisp.org>
21602
21603         Fix test-cond link error.
21604         * tests/test-cond.c: Include <stdio.h>.
21605
21606 2010-03-07  Bruno Haible  <bruno@clisp.org>
21607
21608         Fix test-dirent-safer link error.
21609         * modules/dirent-safer-tests (Makefile.am): Define
21610         test_dirent_safer_LDADD.
21611
21612 2010-03-07  Bruno Haible  <bruno@clisp.org>
21613
21614         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
21615         among default module list.
21616
21617 2010-03-07  Bruno Haible  <bruno@clisp.org>
21618
21619         Fix link error on platforms with GNU libiconv.
21620         * modules/unistr/u8-strcoll-tests (Makefile): Define
21621         test_u8_strcoll_LDADD.
21622         * modules/unistr/u16-strcoll-tests (Makefile): Define
21623         test_u16_strcoll_LDADD.
21624         * modules/unistr/u32-strcoll-tests (Makefile): Define
21625         test_u32_strcoll_LDADD.
21626
21627 2010-03-07  Bruno Haible  <bruno@clisp.org>
21628
21629         Use POSIX declarations for socket functions.
21630         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
21631         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
21632         rpl_sendto): Change declaration to match POSIX.
21633         * lib/connect.c (rpl_connect): Likewise.
21634         * lib/accept.c (rpl_accept): Likewise.
21635         * lib/bind.c (rpl_bind): Likewise.
21636         * lib/getpeername.c (rpl_getpeername): Likewise.
21637         * lib/getsockname.c (rpl_getsockname): Likewise.
21638         * lib/recv.c (rpl_recv): Likewise.
21639         * lib/send.c (rpl_send): Likewise.
21640         * lib/recvfrom.c (rpl_recvfrom): Likewise.
21641         * lib/sendto.c (rpl_sendto): Likewise.
21642
21643 2010-03-06  Bruno Haible  <bruno@clisp.org>
21644
21645         Clarify access, euidaccess, faccessat.
21646         * doc/posix-functions/faccessat.texi: Mention security problem under
21647         "Other problems", not "Portability problems".
21648         * doc/posix-functions/access.texi: Likewise. Mention a related security
21649         problem.
21650         * doc/glibc-functions/euidaccess.texi: Mention security problems.
21651         * lib/euidaccess.c: Add comments about platforms.
21652         * lib/unistd.in.h (access, euidaccess): Add warnings.
21653
21654 2010-03-07  Bruno Haible  <bruno@clisp.org>
21655
21656         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
21657         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
21658         (POSIX_SPAWN_SETSCHEDULER): Likewise.
21659         (POSIX_SPAWN_USEVFORK): Define in a way that works when
21660         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
21661         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
21662         declare when POSIX_SPAWN_SETSCHEDULER is zero.
21663         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
21664         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
21665         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
21666         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
21667         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
21668         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
21669         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
21670         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
21671         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
21672         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
21673         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
21674         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
21675         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
21676         Likewise.
21677         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
21678         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
21679         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
21680         Likewise.
21681         * tests/test-spawn.c (main): Make it work when
21682         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
21683
21684 2010-03-07  Bruno Haible  <bruno@clisp.org>
21685
21686         Fix incorrect Makefile.am generation in German locale.
21687         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21688         Execute sed command with character range in C locale.
21689
21690 2010-03-06  Bruno Haible  <bruno@clisp.org>
21691
21692         Tests for module 'iconv-h'.
21693         * modules/iconv-h-tests: New file.
21694         * tests/test-iconv-h.c: New file.
21695
21696         New module 'iconv-h'.
21697         * modules/iconv-h: New file.
21698         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
21699         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
21700         (configure.ac): Remove gl_ICONV_H.
21701         (Makefile.am): Remove rule for iconv.h.
21702
21703 2010-03-06  Bruno Haible  <bruno@clisp.org>
21704
21705         More consistent naming of *.m4 files.
21706         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
21707         * modules/wctype (Files): Update.
21708
21709         More consistent naming of *.m4 files.
21710         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
21711         * modules/wchar (Files): Update.
21712
21713 2010-03-06  Jim Meyering  <meyering@redhat.com>
21714
21715         euidaccess: relax license to LGPLv2+
21716         * modules/euidaccess (License): Relax to LGPLv2+.
21717
21718 2010-03-06  Bruno Haible  <bruno@clisp.org>
21719
21720         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
21721         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
21722         (Makefile.am): Augment lib_SOURCES instead.
21723
21724 2010-03-04  Jim Meyering  <meyering@redhat.com>
21725
21726         utime: remove obsolete module
21727         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
21728         unnecessary for years, and has been marked as obsolete for 10 months.
21729         * modules/utime: Remove file.
21730         * lib/utime.c: Remove file.
21731         * m4/utime.m4: Remove file.
21732         * m4/utimes-null.m4: Remove file.
21733         * doc/posix-functions/utime.texi (utime): Remove reference to
21734         the module.  Move the sole "fixed by gnulib" item into the
21735         "problems not fixed by Gnulib" list.
21736         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
21737
21738 2010-03-05  Simon Josefsson  <simon@josefsson.org>
21739
21740         * modules/exit (License): Relax license to LGPLv2+.
21741         (Status): Mark as obsolete.
21742         * NEWS: Mention deprecated 'exit' module.
21743         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
21744         of now obsolete 'exit'.
21745
21746 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21747
21748         fts-lgpl: remove unused module
21749         * modules/fts-lgpl: Remove.
21750         * MODULES.html.sh (func_all_modules): Adjust.
21751         * check-module (find_included_lib_files): Adjust.
21752         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
21753
21754 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
21755
21756         copy-acl: enhance Solaris ACL error handling
21757         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
21758         * lib/set-mode-acl.c (qset_acl): Likewise.
21759
21760 2010-03-02  Bruno Haible  <bruno@clisp.org>
21761
21762         spawn: Don't override the system defined values on FreeBSD 8.
21763         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
21764         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
21765         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
21766         if HAVE_POSIX_SPAWN is 1.
21767         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
21768
21769 2010-03-01  Bruno Haible  <bruno@clisp.org>
21770
21771         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
21772         regarding Automake.
21773
21774 2010-02-25  Bruno Haible  <bruno@clisp.org>
21775
21776         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
21777         * gnulib-tool: Define 'echo' as a function only before the ksh alias
21778         setting, not afterwards.
21779         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
21780
21781 2010-02-24  Eric Blake  <eblake@redhat.com>
21782
21783         bootstrap, git-version-gen: use timestamp
21784         * build-aux/git-version-gen (scriptversion): Force UTC.
21785         * build-aux/bootstrap (scriptversion): New variable.
21786
21787         bootstrap: allow older git
21788         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
21789         older than 1.6.4.  Requested by the libvirt project.
21790
21791 2010-02-23  Eric Blake  <eblake@redhat.com>
21792
21793         warn-on-use: work with old autoconf
21794         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
21795         AS_VAR semantics of autoconf 2.60.
21796         Reported by Bruno Haible.
21797
21798         bootstrap: improve some comments
21799         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
21800         clarification comments.
21801
21802         gettimeofday: provide correct function
21803         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
21804         when replacement is declared, otherwise provide gettimeofday.
21805         Reported by Michael Goffioul.
21806
21807 2010-02-23  Jim Meyering  <meyering@redhat.com>
21808
21809         lib-ignore: relax license to "unlimited", not LGPLv2+
21810         * modules/lib-ignore (License): Relax to "unlimited".
21811
21812 2010-02-23  Jim Meyering  <meyering@redhat.com>
21813
21814         lib-ignore: relax license to LGPLv2+
21815         * modules/lib-ignore (License): Relax to LGPLv2+.
21816
21817 2010-02-22  Eric Blake  <eblake@redhat.com>
21818
21819         lseek: avoid bash 3.2 broken pipe bug
21820         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
21821         warning from bash 3.2.
21822         Reported by Ben Pfaff, with analysis from Bruno Haible.
21823
21824         bootstrap: support non-FSF copyright holder
21825         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
21826         bootstrap.conf override of COPYRIGHT_HOLDER.
21827         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
21828
21829         bootstrap: interoperate with gettext 0.14.1
21830         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
21831
21832         bootstrap: allow for alternate submodule location
21833         * build-aux/bootstrap (gnulib_path): New variable; use instead of
21834         hardcoding submodule location.
21835         (gnulib_mk): Allow direct use of Makefile.am.
21836
21837         bootstrap: use GNULIB_SRCDIR to reduce disk usage
21838         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
21839         rather than reconfiguring where the submodule points.
21840
21841         gettimeofday: restore support for platforms that lack function
21842         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
21843         replacement if function is missing.
21844         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
21845         * modules/sys_time (Makefile.am): Substitute it.
21846         * lib/sys_time.in.h (gettimeofday): Check it.
21847         Reported by Michael Goffioul.
21848
21849 2010-02-21  Bruno Haible  <bruno@clisp.org>
21850
21851         * lib/stdio.in.h (obstack_printf): Fix typo.
21852
21853 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
21854
21855         vc-list-files: use bzr ls's -R option
21856         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
21857         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
21858
21859 2010-02-21  Jim Meyering  <meyering@redhat.com>
21860
21861         init.sh: fix EXEEXT shims to work also for names like test-prog
21862         * tests/init.sh: Re-exec a better shell, when needed.
21863         If the current shell lacks support for posix $(...), an init.sh-using
21864         test will now try to find a shell that supports that.  If EXEEXT is
21865         nonempty, we also require support for hyphen-in-alias-name and shell
21866         substitutions like ${var#glob}.  Failure to find such a shell results
21867         in a skipped test.
21868
21869 2010-02-21  Bruno Haible  <bruno@clisp.org>
21870
21871         Really work around around "broken pipe" error message from bash 3.2.
21872         * gnulib-tool (func_reset_sigpipe): Remove function.
21873         (echo): In bash 3.2, define to a function that uses printf.
21874         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
21875
21876 2010-02-20  Bruno Haible  <bruno@clisp.org>
21877
21878         Restore support for automake 1.9.6 with autoconf 2.61.
21879         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
21880         Reported by James Youngman <jay@gnu.org>.
21881
21882 2010-02-20  Bruno Haible  <bruno@clisp.org>
21883
21884         Improve *printf warning condition.
21885         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
21886         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
21887         and the function is overridden due to SIGPIPE emulation.
21888
21889 2010-02-20  Bruno Haible  <bruno@clisp.org>
21890
21891         * lib/stdio.in.h: Tweak comments.
21892
21893 2010-02-19  Bruno Haible  <bruno@clisp.org>
21894
21895         Make it easier to find modules. New gnulib-tool option '--find'.
21896         * gnulib-tool: New option --find.
21897         (func_usage): Document it.
21898         (func_sanitize_modulelist): New function, extracted from
21899         func_all_modules.
21900         (func_all_modules): Invoke it.
21901         * doc/gnulib-tool.texi (Which modules?): New node.
21902
21903 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
21904
21905         * lib/sys_select.in.h: Provide select replacement even if
21906         sys/select.h exists on a system, for Interix.
21907
21908 2010-02-18  Jim Meyering  <meyering@redhat.com>
21909
21910         init.sh: don't use $(...) just yet
21911         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
21912         to accommodate e.g., Solaris' /bin/sh.
21913
21914 2010-02-17  Bruno Haible  <bruno@clisp.org>
21915
21916         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
21917         Reported by Ludovic Courtès <ludo@gnu.org>.
21918
21919 2010-02-16  Simon Josefsson  <simon@josefsson.org>
21920
21921         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
21922         linking with -lintl.
21923
21924 2010-02-17  Simon Josefsson  <simon@josefsson.org>
21925
21926         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
21927         if not provided by the system's netdb.h.  Reported by
21928         ludo@gnu.org (Ludovic Courtès).
21929
21930 2010-02-15  Jim Meyering  <meyering@redhat.com>
21931
21932         init.sh: improve portability and efficiency
21933         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
21934         "dummy" in a for loop.
21935         Use '!', not '^' to select the complement of a character set used
21936         in a "case" statement.
21937         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
21938         Suggestions from Eric Blake.
21939
21940         init.sh: automatically accommodate programs with the .exe suffix
21941         Automatically arrange for an invocation of "prog" to execute the
21942         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
21943         may use the simpler "prog", yet still work when built on a system
21944         that requires specifying the added suffix.
21945         Do this by constructing a function named "prog" that invokes
21946         "prog.exe" for each .exe file in selected directories.
21947         * tests/init.sh (find_exe_basenames_): New function.
21948         (create_exe_shim_functions_): New function.
21949         (path_prepend_): Use it.
21950
21951         maint.mk: mark syntax-check sc_*.m rules as .PHONY
21952         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
21953         "make -t syntax-check" doesn't create a ton of sc_*.m files.
21954
21955 2010-02-14  Jim Meyering  <meyering@redhat.com>
21956
21957         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
21958         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
21959         (sc_prohibit_hash_pjw_without_use): New rule.
21960
21961         maint.mk: allow the default upload destination dir to be overridden
21962         * top/maint.mk (upload_dest_dir_): Define with a default that
21963         preserves the status quo.
21964         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
21965         Reported by Peter Simons.
21966
21967         maint.mk: prohibit inclusion of "hash.h" without_use
21968         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
21969
21970 2010-02-10  Jim Meyering  <meyering@redhat.com>
21971
21972         maint.mk: prohibit inclusion of "ignore-value.h" without_use
21973         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
21974
21975 2010-02-09  Eric Blake  <ebb9@byu.net>
21976         and Bruno Haible  <bruno@clisp.org>
21977
21978         obstack-printf-posix: ensure declaration
21979         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
21980         extracted from gl_FUNC_OBSTACK_PRINTF.
21981         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
21982         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
21983         Likewise.
21984         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
21985         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
21986         0.
21987
21988 2010-02-08  Bruno Haible  <bruno@clisp.org>
21989
21990         gnulib-tool: Fix typo in 2010-02-07 commit.
21991         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
21992         Reported by Eric Blake.
21993
21994 2010-02-07  Bruno Haible  <bruno@clisp.org>
21995
21996         gnulib-tool: Fix up caching patches.
21997         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
21998         option --no-cache. Use associative arrays when supported by the shell.
21999         (sed_comments): New variable.
22000         (modcache): Renamed from do_cache.
22001         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
22002         abbreviate unnecessarily.
22003         (have_associative): New variable.
22004         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
22005         way also for ksh and zsh.
22006         (func_init_sed_convert_to_cache_statements): New function, extracted
22007         from func_cache_lookup_module. Add support for associative arrays.
22008         Don't set the c_MODULE_cached variable here. Ignore all lines before
22009         the first field header. Remove only the final newline, not all trailing
22010         newlines. Support empty fields correctly. Limit the use of 'eval' to
22011         assignments.
22012         (func_get_description, func_get_status, func_get_notice,
22013         func_get_applicability, func_get_filelist, func_get_dependencies,
22014         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
22015         func_get_automake_snippet, func_get_include_directive,
22016         func_get_link_directive, func_get_license, func_get_maintainer):
22017         Update documentation. List the unoptimized code first. Add support for
22018         associative arrays. Limit the use of 'eval' to assignments.
22019         (func_get_applicability): Undo stylistic pessimisations.
22020         (func_get_automake_snippet, func_get_include_directive): Reduce code
22021         duplication.
22022         (func_modules_transitive_closure, func_modules_add_dummy,
22023         func_modules_notice, func_modules_to_filelist, func_add_file,
22024         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
22025         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
22026         func_create_testdir, func_create_megatestdir): Update documentation.
22027
22028 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22029
22030         * gnulib-tool (func_cache_lookup_module): Store the module name
22031         belonging to the cache variable; error out if two different
22032         module names map to the same cache variable name.
22033
22034 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22035
22036         gnulib-tool: Make caching optional.
22037         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
22038         Update matching short versions of --no-changelog.
22039         (func_usage): Update.
22040         (sed_extract_cache_prog): Renamed from ...
22041         (sed_extract_prog): ... this; revert to old extraction script.
22042         (func_get_description, func_get_status)
22043         (func_get_notice, func_get_applicability, func_get_filelist)
22044         (func_get_dependencies, func_get_autoconf_early_snippet)
22045         (func_get_autoconf_snippet, func_get_automake_snippet)
22046         (func_get_include_directive, func_get_link_directive)
22047         (func_get_license, func_get_maintainer): If $do_cache is false,
22048         use old, non-caching extraction scripts.
22049         Suggestion by Bruno Haible.
22050
22051 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22052
22053         gnulib-tool: cache module metainformation.
22054         * gnulib-tool (sed_extract_prog): Match newline before each
22055         header, and rewrite header to a shell variable suffix.
22056         (func_cache_var, func_cache_lookup_module): New functions,
22057         to turn a module name into a cache variable prefix, and to
22058         look up and cache module metainformation.
22059         (func_get_description, func_get_status)
22060         (func_get_notice, func_get_applicability, func_get_filelist)
22061         (func_get_dependencies, func_get_autoconf_early_snippet)
22062         (func_get_autoconf_snippet, func_get_automake_snippet)
22063         (func_get_include_directive, func_get_link_directive)
22064         (func_get_license, func_get_maintainer): Use
22065         func_cache_lookup_module.
22066
22067 2010-02-07  Bruno Haible  <bruno@clisp.org>
22068
22069         fnctl: Fix missing dependency.
22070         * modules/fcntl (Depends-on): Add getdtablesize.
22071         Reported by John W. Eaton <jwe@gnu.org>.
22072
22073 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
22074
22075         Argp: fix recognition of short alias options.
22076
22077         * lib/argp-parse.c (convert_options): Fix improper use of
22078         `|' between character values.
22079         * tests/test-argp.c (group1_option): New alias option
22080         --read (-r).
22081         (group1_parser): Special handling for 'r'.
22082         (test15): New test case.
22083         (test_fun): Add test15.
22084         * tests/test-argp-2.sh: Update expected --help and --usage
22085         outputs.
22086
22087 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
22088
22089         * tests/test-argp.c: Fix indentation.
22090
22091 2010-02-04  Eric Blake  <ebb9@byu.net>
22092
22093         gettimeofday: expose type of second argument
22094         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
22095         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
22096         * tests/test-gettimeofday.c: Use it to silence warning.
22097         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
22098         the issue.
22099
22100 2010-02-03  Jim Meyering  <meyering@redhat.com>
22101
22102         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
22103         * lib/regcomp.c (TYPE_SIGNED): Define.
22104         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
22105
22106         regcomp.c: avoid a new -Wshadow warning
22107         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
22108
22109 2010-02-01  Jim Meyering  <meyering@redhat.com>
22110
22111         removing useless parentheses in cpp #define directives
22112         For motivation, see commit c0221df4, "define STREQ(a,b)
22113         consistently, removing useless parentheses"
22114         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
22115         * lib/mountlist.c (MNT_IGNORE): Likewise.
22116         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
22117
22118 2010-02-01  Eric Blake  <ebb9@byu.net>
22119
22120         sys_time: use link-warning
22121         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
22122         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
22123         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
22124         * modules/sys_time (Depends-on): Add warn-on-use.
22125         (Makefile.am): Always build replacement.
22126         (configure.ac): Update substitutions.
22127         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
22128         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
22129         bother with SYS_TIME_H.
22130         * modules/gettimeofday (configure.ac): Declare indicator.
22131         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
22132         in use.
22133
22134         closein-tests: silence compiler warning
22135         * tests/test-closein.c (main): Ignore fread result.
22136         * modules/closein-tests (Depends-on): Add ignore-value.
22137
22138         tests: silence warning about system return
22139         * tests/test-areadlink-with-size.c (main): Ignore system result.
22140         * tests/test-areadlink.c (main): Likewise.
22141         * tests/test-areadlinkat-with-size.c (main): Likewise.
22142         * tests/test-areadlinkat.c (main): Likewise.
22143         * tests/test-canonicalize-lgpl.c (main): Likewise.
22144         * tests/test-canonicalize.c (main): Likewise.
22145         * tests/test-chown.c (main): Likewise.
22146         * tests/test-fchownat.c (main): Likewise.
22147         * tests/test-fdutimensat.c (main): Likewise.
22148         * tests/test-fstatat.c (main): Likewise.
22149         * tests/test-futimens.c (main): Likewise.
22150         * tests/test-lchown.c (main): Likewise.
22151         * tests/test-link.c (main): Likewise.
22152         * tests/test-linkat.c (main): Likewise.
22153         * tests/test-lstat.c (main): Likewise.
22154         * tests/test-mkdir.c (main): Likewise.
22155         * tests/test-mkdirat.c (main): Likewise.
22156         * tests/test-mkfifo.c (main): Likewise.
22157         * tests/test-mkfifoat.c (main): Likewise.
22158         * tests/test-mknod.c (main): Likewise.
22159         * tests/test-readlink.c (main): Likewise.
22160         * tests/test-remove.c (main): Likewise.
22161         * tests/test-rename.c (main): Likewise.
22162         * tests/test-renameat.c (main): Likewise.
22163         * tests/test-rmdir.c (main): Likewise.
22164         * tests/test-symlink.c (main): Likewise.
22165         * tests/test-symlinkat.c (main): Likewise.
22166         * tests/test-unlink.c (main): Likewise.
22167         * tests/test-unlinkat.c (main): Likewise.
22168         * tests/test-utimens.c (main): Likewise.
22169         * tests/test-utimensat.c (main): Likewise.
22170         * modules/areadlink-tests (Depends-on): Add ignore-value.
22171         * modules/areadlink-with-size-tests (Depends-on): Likewise.
22172         * modules/areadlinkat-tests (Depends-on): Likewise.
22173         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
22174         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
22175         * modules/canonicalize-tests (Depends-on): Likewise.
22176         * modules/chown-tests (Depends-on): Likewise.
22177         * modules/fdutimensat-tests (Depends-on): Likewise.
22178         * modules/futimens-tests (Depends-on): Likewise.
22179         * modules/lchown-tests (Depends-on): Likewise.
22180         * modules/link-tests (Depends-on): Likewise.
22181         * modules/linkat-tests (Depends-on): Likewise.
22182         * modules/lstat-tests (Depends-on): Likewise.
22183         * modules/mkdir-tests (Depends-on): Likewise.
22184         * modules/mkfifo-tests (Depends-on): Likewise.
22185         * modules/mkfifoat-tests (Depends-on): Likewise.
22186         * modules/mknod-tests (Depends-on): Likewise.
22187         * modules/openat-tests (Depends-on): Likewise.
22188         * modules/readlink-tests (Depends-on): Likewise.
22189         * modules/remove-tests (Depends-on): Likewise.
22190         * modules/rename-tests (Depends-on): Likewise.
22191         * modules/renameat-tests (Depends-on): Likewise.
22192         * modules/rmdir-tests (Depends-on): Likewise.
22193         * modules/symlink-tests (Depends-on): Likewise.
22194         * modules/symlinkat-tests (Depends-on): Likewise.
22195         * modules/unlink-tests (Depends-on): Likewise.
22196         * modules/utimens-tests (Depends-on): Likewise.
22197         * modules/utimensat-tests (Depends-on): Likewise.
22198
22199 2010-01-31  Bruno Haible  <bruno@clisp.org>
22200
22201         Perform the same test for many <math.h> functions.
22202         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
22203         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
22204         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
22205         of gl_MATHFUNC.
22206         * modules/acos (configure.ac): Likewise.
22207         * modules/asin (configure.ac): Likewise.
22208         * modules/atan (configure.ac): Likewise.
22209         * modules/atan2 (configure.ac): Likewise.
22210         * modules/cbrt (configure.ac): Likewise.
22211         * modules/copysign (configure.ac): Likewise.
22212         * modules/cos (configure.ac): Likewise.
22213         * modules/cosh (configure.ac): Likewise.
22214         * modules/erf (configure.ac): Likewise.
22215         * modules/erfc (configure.ac): Likewise.
22216         * modules/exp (configure.ac): Likewise.
22217         * modules/fmod (configure.ac): Likewise.
22218         * modules/hypot (configure.ac): Likewise.
22219         * modules/j0 (configure.ac): Likewise.
22220         * modules/j1 (configure.ac): Likewise.
22221         * modules/jn (configure.ac): Likewise.
22222         * modules/lgamma (configure.ac): Likewise.
22223         * modules/log (configure.ac): Likewise.
22224         * modules/log10 (configure.ac): Likewise.
22225         * modules/log1p (configure.ac): Likewise.
22226         * modules/pow (configure.ac): Likewise.
22227         * modules/remainder (configure.ac): Likewise.
22228         * modules/sin (configure.ac): Likewise.
22229         * modules/sinh (configure.ac): Likewise.
22230         * modules/tan (configure.ac): Likewise.
22231         * modules/tanh (configure.ac): Likewise.
22232         * modules/y0 (configure.ac): Likewise.
22233         * modules/y1 (configure.ac): Likewise.
22234         * modules/yn (configure.ac): Likewise.
22235         Suggested by Paolo Bonzini.
22236
22237 2010-01-31  Bruno Haible  <bruno@clisp.org>
22238
22239         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
22240
22241 2010-01-31  Bruno Haible  <bruno@clisp.org>
22242
22243         Work around getdelim() bug on FreeBSD 8.0.
22244         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
22245         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
22246         not work.
22247         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
22248         is 1.
22249         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
22250         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
22251         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
22252         a non-zero size.
22253         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
22254
22255 2010-01-31  Bruno Haible  <bruno@clisp.org>
22256
22257         Work around getline() bug on FreeBSD 8.0.
22258         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
22259         and a non-zero size.
22260         * tests/test-getline.c (main): Likewise.
22261         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
22262         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
22263
22264 2010-01-28  Eric Blake  <ebb9@byu.net>
22265
22266         regex: fix build failure
22267         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
22268         platforms.
22269
22270 2010-01-28  Jim Meyering  <meyering@redhat.com>
22271
22272         regex: do not ignore memory allocation failure
22273         * lib/regex_internal.c (create_cd_newstate): Detect
22274         re_node_set_init_copy failure.   Extracted from glibc commit
22275         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
22276
22277         regex: sync more white-space changes from libc
22278         * lib/regex_internal.c: White-space only changes.
22279         * lib/regexec.c: Likewise.
22280
22281         regex: add many uses of __attribute_warn_unused_result__
22282         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
22283         * lib/regexec.c: Likewise.
22284         Extracted from a messy glibc commit.
22285
22286         regcomp.c: spelling and merge-artifact from glibc
22287         * lib/regcomp.c: Merge remainder of glibc's
22288         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
22289
22290         regcomp.c: sync white-space changes from glibc
22291         * lib/regcomp.c: Merge to accommodate white space
22292         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
22293
22294         regcomp.c: do not ignore internal return values
22295         * lib/regcomp.c: Do not ignore internal return values.
22296         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
22297         but without its white-space changes and spelling fixes.
22298
22299         regex_internal.h: define __attribute_warn_unused_result__
22300         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
22301
22302         maint: add a syntax-check rule to check for vulnerable Makefile.in
22303         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
22304
22305 2010-01-27  Jim Meyering  <meyering@redhat.com>
22306
22307         ncftpput-ftp: clean up spaces
22308         * build-aux/ncftpput-ftp: Make Copyright line consistent.
22309         Remove trailing blanks.
22310
22311 2010-01-27  Simon Josefsson  <simon@josefsson.org>
22312
22313         * build-aux/git-version-gen: Fix copyright statement.
22314         * build-aux/gnupload: Likewise.
22315         * tests/test-arcfour.c: Likewise.
22316         * tests/test-arctwo.c: Likewise.
22317         * tests/test-count-one-bits.c: Likewise.
22318         * tests/test-crc.c: Likewise.
22319         * tests/test-des.c: Likewise.
22320         * tests/test-gc-arcfour.c: Likewise.
22321         * tests/test-gc-arctwo.c: Likewise.
22322         * tests/test-gc-des.c: Likewise.
22323         * tests/test-gc-hmac-md5.c: Likewise.
22324         * tests/test-gc-hmac-sha1.c: Likewise.
22325         * tests/test-gc-md2.c: Likewise.
22326         * tests/test-gc-md4.c: Likewise.
22327         * tests/test-gc-md5.c: Likewise.
22328         * tests/test-gc-pbkdf2-sha1.c: Likewise.
22329         * tests/test-gc-rijndael.c: Likewise.
22330         * tests/test-gc-sha1.c: Likewise.
22331         * tests/test-gc.c: Likewise.
22332         * tests/test-gethostname.c: Likewise.
22333         * tests/test-gettimeofday.c: Likewise.
22334         * tests/test-hash.c: Likewise.
22335         * tests/test-hmac-md5.c: Likewise.
22336         * tests/test-hmac-sha1.c: Likewise.
22337         * tests/test-md2.c: Likewise.
22338         * tests/test-md4.c: Likewise.
22339         * tests/test-md5.c: Likewise.
22340         * tests/test-memchr.c: Likewise.
22341         * tests/test-memchr2.c: Likewise.
22342         * tests/test-memcmp.c: Likewise.
22343         * tests/test-memmem.c: Likewise.
22344         * tests/test-memrchr.c: Likewise.
22345         * tests/test-rawmemchr.c: Likewise.
22346         * tests/test-read-file.c: Likewise.
22347         * tests/test-rijndael.c: Likewise.
22348         * tests/test-sockets.c: Likewise.
22349         * tests/test-strchrnul.c: Likewise.
22350         * tests/test-strstr.c: Likewise.
22351         * tests/test-strtod.c: Likewise.
22352         * build-aux/ncftpput-ftp: Likewise.
22353
22354 2010-01-26  Eric Blake  <ebb9@byu.net>
22355
22356         ignore-value: update recommended header name
22357         * modules/ignore-value (Include): Only use <> for headers that
22358         exist in glibc.
22359
22360 2010-01-26  Jim Meyering  <meyering@redhat.com>
22361
22362         test-userspec.c: avoid compiler warnings
22363         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
22364         and "initialization discards qualifiers..." warnings.
22365         Put the first "uid" in its own scope, and make char* members "const".
22366
22367 2010-01-25  Bruno Haible  <bruno@clisp.org>
22368
22369         gnulib-tool: Make warning diagnostics consistent.
22370         * gnulib-tool (func_warning): New function.
22371         Use it everywhere where gnulib-tool produces output to stderr and it is
22372         not a fatal error.
22373
22374 2010-01-25  Bruno Haible  <bruno@clisp.org>
22375
22376         Fix test dependencies.
22377         * modules/xstrtol-tests (Depends-on): Add inttypes.
22378         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
22379
22380 2010-01-25 Pádraig Brady <P@draigBrady.com>
22381
22382         syntax-check: detect incorrect boolean macro values in config.h
22383         * modules/maintainer-makefile (configure.ac): Parameterize the location
22384         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
22385         The logic is from Eric Blake and the location indicated by Jim Meyering.
22386         Note the more natural CONFIG_HEADER name is prohibited by automake
22387         for backwards compatibility reasons.
22388         * top/maint.mk (sc_Wundef_boolean): New rule.
22389
22390 2010-01-25  Jim Meyering  <meyering@redhat.com>
22391
22392         bootstrap: detect MacOS 10.6's shasum, too
22393         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
22394         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
22395
22396 2010-01-23  Jim Meyering  <meyering@redhat.com>
22397
22398         xstrtoll: new module
22399         * modules/xstrtoll: New file.
22400         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
22401         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
22402         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
22403         ./configure fails if you use this module and lack "long long".
22404         * modules/xstrtoll-tests: New module.
22405         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
22406         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
22407         new init.sh-based test framework.
22408
22409 2010-01-24  Bruno Haible  <bruno@clisp.org>
22410
22411         Tests for module 'yn'.
22412         * modules/yn-tests: New file.
22413         * tests/test-yn.c: New file.
22414
22415         Tests for module 'y1'.
22416         * modules/y1-tests: New file.
22417         * tests/test-y1.c: New file.
22418
22419         Tests for module 'y0'.
22420         * modules/y0-tests: New file.
22421         * tests/test-y0.c: New file.
22422
22423         Tests for module 'tanh'.
22424         * modules/tanh-tests: New file.
22425         * tests/test-tanh.c: New file.
22426
22427         Tests for module 'tan'.
22428         * modules/tan-tests: New file.
22429         * tests/test-tan.c: New file.
22430
22431         Tests for module 'sqrt'.
22432         * modules/sqrt-tests: New file.
22433         * tests/test-sqrt.c: New file.
22434
22435         Tests for module 'sinh'.
22436         * modules/sinh-tests: New file.
22437         * tests/test-sinh.c: New file.
22438
22439         Tests for module 'sin'.
22440         * modules/sin-tests: New file.
22441         * tests/test-sin.c: New file.
22442
22443         Tests for module 'rint'.
22444         * modules/rint-tests: New file.
22445         * tests/test-rint.c: New file.
22446
22447         Tests for module 'remainder'.
22448         * modules/remainder-tests: New file.
22449         * tests/test-remainder.c: New file.
22450
22451         Tests for module 'pow'.
22452         * modules/pow-tests: New file.
22453         * tests/test-pow.c: New file.
22454
22455         Tests for module 'nextafter'.
22456         * modules/nextafter-tests: New file.
22457         * tests/test-nextafter.c: New file.
22458
22459         Tests for module 'modf'.
22460         * modules/modf-tests: New file.
22461         * tests/test-modf.c: New file.
22462
22463         Tests for module 'logb'.
22464         * modules/logb-tests: New file.
22465         * tests/test-logb.c: New file.
22466
22467         Tests for module 'log1p'.
22468         * modules/log1p-tests: New file.
22469         * tests/test-log1p.c: New file.
22470
22471         Tests for module 'log10'.
22472         * modules/log10-tests: New file.
22473         * tests/test-log10.c: New file.
22474
22475         Tests for module 'log'.
22476         * modules/log-tests: New file.
22477         * tests/test-log.c: New file.
22478
22479         Tests for module 'lgamma'.
22480         * modules/lgamma-tests: New file.
22481         * tests/test-lgamma.c: New file.
22482
22483         Tests for module 'ldexp'.
22484         * modules/ldexp-tests: New file.
22485         * tests/test-ldexp.c: New file.
22486
22487         Tests for module 'jn'.
22488         * modules/jn-tests: New file.
22489         * tests/test-jn.c: New file.
22490
22491         Tests for module 'j1'.
22492         * modules/j1-tests: New file.
22493         * tests/test-j1.c: New file.
22494
22495         Tests for module 'j0'.
22496         * modules/j0-tests: New file.
22497         * tests/test-j0.c: New file.
22498
22499         Tests for module 'hypot'.
22500         * modules/hypot-tests: New file.
22501         * tests/test-hypot.c: New file.
22502
22503         Tests for module 'fmod'.
22504         * modules/fmod-tests: New file.
22505         * tests/test-fmod.c: New file.
22506
22507         Tests for module 'fabs'.
22508         * modules/fabs-tests: New file.
22509         * tests/test-fabs.c: New file.
22510
22511         Tests for module 'exp'.
22512         * modules/exp-tests: New file.
22513         * tests/test-exp.c: New file.
22514
22515         Tests for module 'erfc'.
22516         * modules/erfc-tests: New file.
22517         * tests/test-erfc.c: New file.
22518
22519         Tests for module 'erf'.
22520         * modules/erf-tests: New file.
22521         * tests/test-erf.c: New file.
22522
22523         Tests for module 'cosh'.
22524         * modules/cosh-tests: New file.
22525         * tests/test-cosh.c: New file.
22526
22527         Tests for module 'cos'.
22528         * modules/cos-tests: New file.
22529         * tests/test-cos.c: New file.
22530
22531         Tests for module 'copysign'.
22532         * modules/copysign-tests: New file.
22533         * tests/test-copysign.c: New file.
22534
22535         Tests for module 'cbrt'.
22536         * modules/cbrt-tests: New file.
22537         * tests/test-cbrt.c: New file.
22538
22539         Tests for module 'atan2'.
22540         * modules/atan2-tests: New file.
22541         * tests/test-atan2.c: New file.
22542
22543         Tests for module 'atan'.
22544         * modules/atan-tests: New file.
22545         * tests/test-atan.c: New file.
22546
22547         Tests for module 'asin'.
22548         * modules/asin-tests: New file.
22549         * tests/test-asin.c: New file.
22550
22551         Tests for module 'acos'.
22552         * modules/acos-tests: New file.
22553         * tests/test-acos.c: New file.
22554
22555 2010-01-24  Bruno Haible  <bruno@clisp.org>
22556
22557         Fix tests for common <math.h> functions.
22558         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
22559         code snippet that references the function pointer, rather than merely
22560         calling the function. Substitute the FUNC_LIBM variable.
22561         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
22562         * modules/acos (configure.ac): Likewise.
22563         * modules/asin (configure.ac): Likewise.
22564         * modules/atan (configure.ac): Likewise.
22565         * modules/atan2 (configure.ac): Likewise.
22566         * modules/cbrt (configure.ac): Likewise.
22567         * modules/copysign (configure.ac): Likewise.
22568         * modules/cos (configure.ac): Likewise.
22569         * modules/cosh (configure.ac): Likewise.
22570         * modules/erf (configure.ac): Likewise.
22571         * modules/erfc (configure.ac): Likewise.
22572         * modules/exp (configure.ac): Likewise.
22573         * modules/fabs (configure.ac): Likewise.
22574         * modules/fmod (configure.ac): Likewise.
22575         * modules/hypot (configure.ac): Likewise.
22576         * modules/j0 (configure.ac): Likewise.
22577         * modules/j1 (configure.ac): Likewise.
22578         * modules/jn (configure.ac): Likewise.
22579         * modules/ldexp (configure.ac): Likewise.
22580         * modules/lgamma (configure.ac): Likewise.
22581         * modules/log (configure.ac): Likewise.
22582         * modules/log10 (configure.ac): Likewise.
22583         * modules/log1p (configure.ac): Likewise.
22584         * modules/logb (configure.ac): Likewise.
22585         * modules/modf (configure.ac): Likewise.
22586         * modules/nextafter (configure.ac): Likewise.
22587         * modules/pow (configure.ac): Likewise.
22588         * modules/remainder (configure.ac): Likewise.
22589         * modules/rint (configure.ac): Likewise.
22590         * modules/sin (configure.ac): Likewise.
22591         * modules/sinh (configure.ac): Likewise.
22592         * modules/tan (configure.ac): Likewise.
22593         * modules/tanh (configure.ac): Likewise.
22594         * modules/y0 (configure.ac): Likewise.
22595         * modules/y1 (configure.ac): Likewise.
22596         * modules/yn (configure.ac): Likewise.
22597
22598 2010-01-24  Bruno Haible  <bruno@clisp.org>
22599
22600         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
22601         * tests/test-acosl.c (x): New variable.
22602         (main): Store argument in x and fetch it from x.
22603         * tests/test-asinl.c (x): New variable.
22604         (main): Store argument in x and fetch it from x.
22605         * tests/test-atanl.c (x): New variable.
22606         (main): Store argument in x and fetch it from x.
22607         * tests/test-cosl.c (x): New variable.
22608         (main): Store argument in x and fetch it from x.
22609         * tests/test-expl.c (x): New variable.
22610         (main): Store argument in x and fetch it from x.
22611         * tests/test-logl.c (x): New variable.
22612         (main): Store argument in x and fetch it from x.
22613         * tests/test-sinl.c (x): New variable.
22614         (main): Store argument in x and fetch it from x.
22615         * tests/test-sqrtl.c (x): New variable.
22616         (main): Store argument in x and fetch it from x.
22617         * tests/test-tanl.c (x): New variable.
22618         (main): Store argument in x and fetch it from x.
22619
22620 2010-01-24  Bruno Haible  <bruno@clisp.org>
22621
22622         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
22623         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
22624         assignments to the initial TESTS_ENVIRONMENT.
22625         * doc/gnulib.texi (Unit test modules): Document it.
22626         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
22627         TESTS_ENVIRONMENT.
22628         * modules/btowc-tests (Makefile.am): Likewise.
22629         * modules/c-stack-tests (Makefile.am): Likewise.
22630         * modules/c-strcase-tests (Makefile.am): Likewise.
22631         * modules/copy-file-tests (Makefile.am): Likewise.
22632         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
22633         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
22634         * modules/mbrtowc-tests (Makefile.am): Likewise.
22635         * modules/mbscasecmp-tests (Makefile.am): Likewise.
22636         * modules/mbscasestr-tests (Makefile.am): Likewise.
22637         * modules/mbschr-tests (Makefile.am): Likewise.
22638         * modules/mbscspn-tests (Makefile.am): Likewise.
22639         * modules/mbsinit-tests (Makefile.am): Likewise.
22640         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
22641         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
22642         * modules/mbspbrk-tests (Makefile.am): Likewise.
22643         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
22644         * modules/mbsrchr-tests (Makefile.am): Likewise.
22645         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
22646         * modules/mbsspn-tests (Makefile.am): Likewise.
22647         * modules/mbsstr-tests (Makefile.am): Likewise.
22648         * modules/nl_langinfo-tests (Makefile.am): Likewise.
22649         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
22650         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
22651         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
22652         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
22653         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
22654         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
22655         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
22656         * modules/wcrtomb-tests (Makefile.am): Likewise.
22657         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
22658         * modules/wcsrtombs-tests (Makefile.am): Likewise.
22659         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
22660         assignments from TESTS_ENVIRONMENT.
22661         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
22662         augmentation.
22663         * modules/argp-version-etc-tests (Makefile.am): Likewise.
22664         * modules/atexit-tests (Makefile.am): Likewise.
22665         * modules/binary-io-tests (Makefile.am): Likewise.
22666         * modules/closein-tests (Makefile.am): Likewise.
22667         * modules/dprintf-posix-tests (Makefile.am): Likewise.
22668         * modules/exclude-tests (Makefile.am): Likewise.
22669         * modules/fflush-tests (Makefile.am): Likewise.
22670         * modules/fpending-tests (Makefile.am): Likewise.
22671         * modules/fprintf-posix-tests (Makefile.am): Likewise.
22672         * modules/freadahead-tests (Makefile.am): Likewise.
22673         * modules/freadptr-tests (Makefile.am): Likewise.
22674         * modules/freadseek-tests (Makefile.am): Likewise.
22675         * modules/fseek-tests (Makefile.am): Likewise.
22676         * modules/fseeko-tests (Makefile.am): Likewise.
22677         * modules/ftell-tests (Makefile.am): Likewise.
22678         * modules/ftello-tests (Makefile.am): Likewise.
22679         * modules/idpriv-drop-tests (Makefile.am): Likewise.
22680         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
22681         * modules/lseek-tests (Makefile.am): Likewise.
22682         * modules/parse-duration-tests (Makefile.am): Likewise.
22683         * modules/perror-tests (Makefile.am): Likewise.
22684         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
22685         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
22686         * modules/pipe-tests (Makefile.am): Likewise.
22687         * modules/pread-tests (Makefile.am): Likewise.
22688         * modules/printf-posix-tests (Makefile.am): Likewise.
22689         * modules/select-tests (Makefile.am): Likewise.
22690         * modules/sigpipe-tests (Makefile.am): Likewise.
22691         * modules/tsearch-tests (Makefile.am): Likewise.
22692         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
22693         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
22694         * modules/uniname/uniname-tests (Makefile.am): Likewise.
22695         * modules/uniwidth/width-tests (Makefile.am): Likewise.
22696         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
22697         * modules/version-etc-tests (Makefile.am): Likewise.
22698         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
22699         * modules/vprintf-posix-tests (Makefile.am): Likewise.
22700         * modules/xalloc-die-tests (Makefile.am): Likewise.
22701         * modules/xprintf-posix-tests (Makefile.am): Likewise.
22702         * modules/xstrtoimax-tests (Makefile.am): Likewise.
22703         * modules/xstrtol-tests (Makefile.am): Likewise.
22704         * modules/xstrtoumax-tests (Makefile.am): Likewise.
22705         * modules/yesno-tests (Makefile.am): Likewise.
22706         Suggested by Jim Meyering.
22707
22708 2010-01-24  Bruno Haible  <bruno@clisp.org>
22709
22710         More documentation.
22711         * doc/gnulib.texi (Writing modules): New chapter.
22712         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
22713         the new chapter.
22714
22715 2010-01-24  Jim Meyering  <meyering@redhat.com>
22716
22717         maint.mk: do not prepend "./" after filtering
22718         * top/maint.mk (_prepend_srcdir_prefix): New variable
22719         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
22720         "./" when $(srcdir) is ".".
22721
22722         define STREQ(a,b) consistently, removing useless parentheses
22723         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
22724         since the only risk is that "a" or "b" contains an unparenthesized
22725         comma, but if either did that, STREQ would have 3 or more arguments.
22726         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
22727         * lib/fts.c (STREQ): Remove unnecessary parentheses.
22728         * lib/hash-triple.c (STREQ): Likewise.
22729         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
22730         * lib/getugroups.c (STREQ): Likewise.
22731
22732 2010-01-23  Jim Meyering  <meyering@redhat.com>
22733
22734         maint.mk: fix syntax-check in a non-srcdir build directory
22735         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
22736         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
22737
22738 2010-01-22  Jim Meyering  <meyering@redhat.com>
22739
22740         userspec: add unit tests
22741         * tests/test-userspec.c: New file.
22742         * modules/userspec-tests: Likewise.
22743
22744 2010-01-21  Jim Meyering  <meyering@redhat.com>
22745
22746         maint.mk: handle source file names containing "." robustly
22747         * top/maint.mk (_dot_escaped_srcdir): Define.
22748         (VC_LIST): Use it in LHS of sed substitution.
22749
22750 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
22751
22752         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
22753         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
22754         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
22755         from a non-srcdir build.
22756
22757 2010-01-20  Eric Blake  <ebb9@byu.net>
22758
22759         warn-on-use: use instead of link-warning
22760         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
22761         * modules/unistd (Depends-on, Makefile.am): Likewise.
22762         * modules/arpa_inet (Depends-on): Replace link-warning with
22763         warn-on-use.
22764         (Makefile.am): Update rules accordingly.
22765         * modules/ctype (Depends-on, Makefile.am): Likewise.
22766         * modules/dirent (Depends-on, Makefile.am): Likewise.
22767         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
22768         * modules/inttypes (Depends-on, Makefile.am): Likewise.
22769         * modules/langinfo (Depends-on, Makefile.am): Likewise.
22770         * modules/locale (Depends-on, Makefile.am): Likewise.
22771         * modules/math (Depends-on, Makefile.am): Likewise.
22772         * modules/search (Depends-on, Makefile.am): Likewise.
22773         * modules/signal (Depends-on, Makefile.am): Likewise.
22774         * modules/spawn (Depends-on, Makefile.am): Likewise.
22775         * modules/stdlib (Depends-on, Makefile.am): Likewise.
22776         * modules/string (Depends-on, Makefile.am): Likewise.
22777         * modules/strings (Depends-on, Makefile.am): Likewise.
22778         * modules/sys_file (Depends-on, Makefile.am): Likewise.
22779         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
22780         * modules/sys_select (Depends-on, Makefile.am): Likewise.
22781         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
22782         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
22783         * modules/sys_times (Depends-on, Makefile.am): Likewise.
22784         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
22785         * modules/wchar (Depends-on, Makefile.am): Likewise.
22786         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
22787         should be poisoned.
22788         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
22789         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
22790         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
22791         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
22792         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22793         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
22794         * m4/math_h.m4 (gl_MATH_H): Likewise.
22795         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
22796         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
22797         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
22798         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
22799         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
22800         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
22801         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
22802         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
22803         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
22804         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22805         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
22806         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
22807         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22808         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22809         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22810         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
22811         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
22812         GL_LINK_WARNING.
22813         * lib/ctype.in.h: Likewise.
22814         * lib/dirent.in.h: Likewise.
22815         * lib/fcntl.in.h: Likewise.
22816         * lib/inttypes.in.h: Likewise.
22817         * lib/langinfo.in.h: Likewise.
22818         * lib/locale.in.h: Likewise.
22819         * lib/math.in.h: Likewise.
22820         * lib/search.in.h: Likewise.
22821         * lib/signal.in.h: Likewise.
22822         * lib/spawn.in.h: Likewise.
22823         * lib/stdio.in.h: Likewise.
22824         * lib/stdlib.in.h: Likewise.
22825         * lib/string.in.h: Likewise.
22826         * lib/strings.in.h: Likewise.
22827         * lib/sys_file.in.h: Likewise.
22828         * lib/sys_ioctl.in.h: Likewise.
22829         * lib/sys_select.in.h: Likewise.
22830         * lib/sys_socket.in.h: Likewise.
22831         * lib/sys_stat.in.h: Likewise.
22832         * lib/sys_times.in.h: Likewise.
22833         * lib/sys_utsname.in.h: Likewise.
22834         * lib/unistd.in.h: Likewise.
22835         * lib/wchar.in.h: Likewise.
22836
22837 2010-01-20  Bruno Haible  <bruno@clisp.org>
22838
22839         Avoid duplicate -lm.
22840         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
22841         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
22842         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
22843         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
22844         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
22845         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
22846         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
22847         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
22848         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
22849         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
22850         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
22851         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
22852         Reported by Paolo Bonzini.
22853
22854 2010-01-19  Bruno Haible  <bruno@clisp.org>
22855
22856         langinfo, nl_langinfo: Relicense under LGPLv2+.
22857         * modules/langinfo (License): Change to LGPLv2+.
22858         * modules/nl_langinfo (License): Likewise.
22859         Patch by David Lutterkort <lutter@redhat.com>.
22860
22861 2010-01-19  Bruno Haible  <bruno@clisp.org>
22862
22863         Avoid compilation error with cc on OSF/1 5.1.
22864         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
22865         statement, not before.
22866         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22867
22868 2010-01-18  Bruno Haible  <bruno@clisp.org>
22869
22870         Avoid a link error due to the __printf__ symbol.
22871         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
22872         and 2.6.x.
22873         (__format__, __printf__): Remove definitions.
22874         * lib/argp-fmtstream.h: Likewise.
22875         * lib/argp.h: Likewise.
22876         * lib/error.h: Likewise.
22877         * lib/vasnprintf.h: Likewise.
22878         * lib/xprintf.h: Likewise.
22879         * lib/xvasprintf.h: Likewise.
22880         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22881
22882 2010-01-18  Bruno Haible  <bruno@clisp.org>
22883
22884         Tests for module 'tanl'.
22885         * modules/tanl-tests: New file.
22886         * tests/test-tanl.c: New file.
22887
22888         Tests for module 'sqrtl'.
22889         * modules/sqrtl-tests: New file.
22890         * tests/test-sqrtl.c: New file.
22891
22892         Tests for module 'sinl'.
22893         * modules/sinl-tests: New file.
22894         * tests/test-sinl.c: New file.
22895
22896         Tests for module 'logl'.
22897         * modules/logl-tests: New file.
22898         * tests/test-logl.c: New file.
22899
22900         Tests for module 'expl'.
22901         * modules/expl-tests: New file.
22902         * tests/test-expl.c: New file.
22903
22904         Tests for module 'cosl'.
22905         * modules/cosl-tests: New file.
22906         * tests/test-cosl.c: New file.
22907
22908         Tests for module 'atanl'.
22909         * modules/atanl-tests: New file.
22910         * tests/test-atanl.c: New file.
22911
22912         Tests for module 'asinl'.
22913         * modules/asinl-tests: New file.
22914         * tests/test-asinl.c: New file.
22915
22916         Tests for module 'acosl'.
22917         * modules/acosl-tests: New file.
22918         * tests/test-acosl.c: New file.
22919
22920         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
22921         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
22922         tanl): Use the standard gnulib idiom.
22923         * lib/cosl.c: Don't include trigl.c and sincosl.c.
22924         * lib/sinl.c: Likewise.
22925         * lib/tanl.c: Don't include trigl.c.
22926         (kernel_tanl): Make static.
22927         * lib/sincosl.c: Include trigl.h first.
22928         * lib/trigl.c: Likewise.
22929         * m4/acosl.m4: New file.
22930         * m4/asinl.m4: New file.
22931         * m4/atanl.m4: New file.
22932         * m4/cosl.m4: New file.
22933         * m4/expl.m4: New file.
22934         * m4/logl.m4: New file.
22935         * m4/sinl.m4: New file.
22936         * m4/sqrtl.m4: New file.
22937         * m4/tanl.m4: New file.
22938         * m4/mathl.m4: Remove file.
22939         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
22940         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
22941         Don't initialize GNULIB_MATHL.
22942         * modules/acosl: New file.
22943         * modules/asinl: New file.
22944         * modules/atanl: New file.
22945         * modules/cosl: New file.
22946         * modules/expl: New file.
22947         * modules/logl: New file.
22948         * modules/sinl: New file.
22949         * modules/sqrtl: New file.
22950         * modules/tanl: New file.
22951         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
22952         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
22953         substitute GNULIB_MATHL.
22954         * modules/mathl: Rewritten.
22955         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
22956         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
22957         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
22958         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
22959         * doc/posix-functions/expl.texi: Mention the 'expl' module.
22960         * doc/posix-functions/logl.texi: Mention the 'logl' module.
22961         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
22962         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
22963         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
22964
22965 2010-01-18  Bruno Haible  <bruno@clisp.org>
22966
22967         sqrt: Make gl_FUNC_SQRT requirable.
22968         * m4/sqrt.m4: New file.
22969         * modules/sqrt (Files): Add it.
22970         (configure.ac): Invoke gl_FUNC_SQRT.
22971
22972 2010-01-18  Bruno Haible  <bruno@clisp.org>
22973
22974         New modules for common <math.h> functions.
22975         * m4/mathfunc.m4: New file.
22976         * modules/acos: New file.
22977         * modules/asin: New file.
22978         * modules/atan: New file.
22979         * modules/atan2: New file.
22980         * modules/cbrt: New file.
22981         * modules/copysign: New file.
22982         * modules/cos: New file.
22983         * modules/cosh: New file.
22984         * modules/erf: New file.
22985         * modules/erfc: New file.
22986         * modules/exp: New file.
22987         * modules/fabs: New file.
22988         * modules/fmod: New file.
22989         * modules/hypot: New file.
22990         * modules/j0: New file.
22991         * modules/j1: New file.
22992         * modules/jn: New file.
22993         * modules/ldexp: New file.
22994         * modules/lgamma: New file.
22995         * modules/log: New file.
22996         * modules/log10: New file.
22997         * modules/log1p: New file.
22998         * modules/logb: New file.
22999         * modules/modf: New file.
23000         * modules/nextafter: New file.
23001         * modules/pow: New file.
23002         * modules/remainder: New file.
23003         * modules/rint: New file.
23004         * modules/sin: New file.
23005         * modules/sinh: New file.
23006         * modules/sqrt: New file.
23007         * modules/tan: New file.
23008         * modules/tanh: New file.
23009         * modules/y0: New file.
23010         * modules/y1: New file.
23011         * modules/yn: New file.
23012         * doc/posix-functions/acos.texi: Mention the 'acos' module.
23013         * doc/posix-functions/asin.texi: Mention the 'asin' module.
23014         * doc/posix-functions/atan.texi: Mention the 'atan' module.
23015         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
23016         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
23017         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
23018         * doc/posix-functions/cos.texi: Mention the 'cos' module.
23019         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
23020         * doc/posix-functions/erf.texi: Mention the 'erf' module.
23021         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
23022         * doc/posix-functions/exp.texi: Mention the 'exp' module.
23023         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
23024         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
23025         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
23026         * doc/posix-functions/j0.texi: Mention the 'j0' module.
23027         * doc/posix-functions/j1.texi: Mention the 'j1' module.
23028         * doc/posix-functions/jn.texi: Mention the 'jn' module.
23029         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
23030         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
23031         * doc/posix-functions/log.texi: Mention the 'log' module.
23032         * doc/posix-functions/log10.texi: Mention the 'log10' module.
23033         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
23034         * doc/posix-functions/logb.texi: Mention the 'logb' module.
23035         * doc/posix-functions/modf.texi: Mention the 'modf' module.
23036         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
23037         * doc/posix-functions/pow.texi: Mention the 'pow' module.
23038         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
23039         * doc/posix-functions/rint.texi: Mention the 'rint' module.
23040         * doc/posix-functions/sin.texi: Mention the 'sin' module.
23041         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
23042         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
23043         * doc/posix-functions/tan.texi: Mention the 'tan' module.
23044         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
23045         * doc/posix-functions/y0.texi: Mention the 'y0' module.
23046         * doc/posix-functions/y1.texi: Mention the 'y1' module.
23047         * doc/posix-functions/yn.texi: Mention the 'yn' module.
23048
23049 2010-01-18  Jim Meyering  <meyering@redhat.com>
23050
23051         ignore-value: relax license to LGPLv2+
23052         * modules/ignore-value (License): Relax to LGPLv2+.
23053
23054         getdate: don't leak when TZ contains two or more '"'s
23055         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
23056         double quote in TZ after the first one.
23057
23058         readtokens: do not leak internal token_lengths buffer
23059         * lib/readtokens.c (readtokens): Free the local, lengths,
23060         when the supplied "token_lengths" parameter is NULL.
23061
23062 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23063
23064         Fix a couple of missing LIBTHREAD link failures on AIX.
23065         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
23066         $(LIBTHREAD).
23067         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
23068
23069         Link test-poll against INET_PTON_LIB.
23070         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
23071         for inet_pton on Solaris 10.
23072
23073 2010-01-17  Bruno Haible  <bruno@clisp.org>
23074
23075         unistdio/*-sprintf: Fix typo in module description.
23076         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
23077         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
23078         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
23079         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
23080         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
23081         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
23082         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
23083         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23084
23085 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23086
23087         gnulib-tool: fix filelist for AIX, HP-UX ksh.
23088         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
23089         variables in shell case patterns, for AIX and HP-UX ksh.
23090
23091         Split large sed scripts, for HP-UX sed.
23092         * modules/stdio: Split sed scripts around 50 sed commands,
23093         to avoid HP-UX limit of 99 commands, in the near future.
23094         * modules/string: Likewise.
23095         * modules/unistd: Likewise.
23096
23097         gnulib-tool: avoid writing in the current directory.
23098         * gnulib-tool (func_emit_lib_Makefile_am)
23099         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
23100         not in the current directory, so concurrent gnulib-tool
23101         instances do not interfere.
23102
23103 2010-01-16  Jim Meyering  <meyering@redhat.com>
23104
23105         doc: update users.txt
23106         * users.txt: Add grep.
23107         (diffutils, gzip): Update URLs.
23108
23109 2010-01-12  Bruno Haible  <bruno@clisp.org>
23110
23111         posix_spawn: Avoid test failure on Cygwin.
23112         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
23113         characters.
23114         Reported by Simon Josefsson.
23115
23116 2010-01-12  Bruno Haible  <bruno@clisp.org>
23117
23118         * tests/test-cond.c (main): When skipping the test, show the reason.
23119
23120 2010-01-12  Simon Josefsson  <simon@josefsson.org>
23121
23122         * lib/striconv.c (str_cd_iconv): Avoid if before free.
23123
23124 2010-01-12  Simon Josefsson  <simon@josefsson.org>
23125
23126         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
23127         VC_LIST_ALWAYS_EXCLUDE_REGEX.
23128
23129 2010-01-12  Eric Blake  <ebb9@byu.net>
23130
23131         build: guarantee AS_VAR_IF
23132         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
23133         (gl_AS_VAR_IF): Move...
23134         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
23135         Reported by Simon Josefsson.
23136
23137 2010-01-12  Simon Josefsson  <simon@josefsson.org>
23138
23139         * lib/stdio.in.h: Fix typo.
23140
23141 2010-01-12  Simon Josefsson  <simon@josefsson.org>
23142
23143         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
23144         libgpg-error.
23145
23146 2010-01-12  Simon Josefsson  <simon@josefsson.org>
23147
23148         * tests/test-xalloc-die.sh: Use $EXEEXT.
23149
23150 2010-01-12  Simon Josefsson  <simon@josefsson.org>
23151             Bruno Haible  <bruno@clisp.org>
23152
23153         getlogin, getlogin_r: Avoid test failure.
23154         * tests/test-getlogin.c: Include <stdio.h>.
23155         (main): Skip the test when the function fails because stdin is not a
23156         tty.
23157         * tests/test-getlogin_r.c: Include <stdio.h>.
23158         (main): Skip the test when the function fails because stdin is not a
23159         tty.
23160
23161 2010-01-11  Eric Blake  <ebb9@byu.net>
23162
23163         tests: avoid more large file warnings
23164         * tests/test-fflush.c: Avoid warning about ftell use.
23165         * tests/test-fseek.c: Avoid warning about fseek use.
23166
23167 2010-01-10  Bruno Haible  <bruno@clisp.org>
23168
23169         nproc: Work better on Linux when /proc and /sys are not mounted.
23170         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
23171         as lower bound when, on glibc/Linux systems,
23172         sysconf (_SC_NPROCESSORS_CONF) returns 1.
23173         Suggested by Pádraig Brady <P@draigbrady.com>.
23174         Reported by Dmitry V. Levin <ldv@altlinux.org>.
23175
23176         nproc: Refactor.
23177         * lib/nproc.c (num_processors_via_affinity_mask): New function,
23178         extracted from num_processors.
23179         (num_processors): Call it.
23180
23181 2010-01-11  Jim Meyering  <meyering@redhat.com>
23182
23183         utimecmp: avoid new warning from upcoming gcc-4.5.0
23184         * lib/utimecmp.c (BILLION): Define using #define rather than an
23185         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
23186
23187 2010-01-11  Eric Blake  <ebb9@byu.net>
23188
23189         math: add portability warnings for classification macros
23190         * modules/math (Depends-on): Add warn-on-use.
23191         (Makefile.am): Provide new substitutions.
23192         * m4/math_h.m4 (gl_MATH_H): Require inline.
23193         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
23194         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
23195         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
23196         implement warnings.
23197
23198         unistd: warn on use of environ without module
23199         * modules/unistd (Depends-on): Add warn-on-use.
23200         (Makefile.am): Provide new substitutions.
23201         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
23202         * lib/unistd.in.h (environ): Wrap with a warning helper function.
23203
23204         stdio: warn on suspicious uses
23205         * modules/stdio (Depends-on): Add warn-on-use.
23206         (Makefile.am): Provide new substitutions.
23207         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
23208         fseeko.
23209         * lib/stdio.in.h (gets): Always warn on use.
23210         (fseek, ftell): Adjust when warnings are issued, and honor
23211         _GL_NO_LARGE_FILES as a way to silence the warning.
23212         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
23213         any warning about large file offsets.
23214         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
23215         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
23216         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
23217         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
23218         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
23219         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
23220         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
23221         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
23222
23223         warn-on-use: new module
23224         * modules/warn-on-use: New file.
23225         * build-aux/warn-on-use.h: Likewise.
23226         * m4/warn-on-use.m4: Likewise.
23227         * MODULES.html.sh (Support for building): Mention it.
23228
23229 2010-01-10  Bruno Haible  <bruno@clisp.org>
23230
23231         Tests for module 'unistr/u32-strdup'.
23232         * modules/unistr/u32-strdup-tests: New file.
23233         * tests/unistr/test-u32-strdup.c: New file.
23234
23235         Tests for module 'unistr/u16-strdup'.
23236         * modules/unistr/u16-strdup-tests: New file.
23237         * tests/unistr/test-u16-strdup.c: New file.
23238
23239         Tests for module 'unistr/u8-strdup'.
23240         * modules/unistr/u8-strdup-tests: New file.
23241         * tests/unistr/test-u8-strdup.c: New file.
23242         * tests/unistr/test-strdup.h: New file.
23243
23244         Tests for module 'unistr/u32-strncmp'.
23245         * modules/unistr/u32-strncmp-tests: New file.
23246         * tests/unistr/test-u32-strncmp.c: New file.
23247
23248         Tests for module 'unistr/u16-strncmp'.
23249         * modules/unistr/u16-strncmp-tests: New file.
23250         * tests/unistr/test-u16-strncmp.c: New file.
23251
23252         Tests for module 'unistr/u8-strncmp'.
23253         * modules/unistr/u8-strncmp-tests: New file.
23254         * tests/unistr/test-u8-strncmp.c: New file.
23255         * tests/unistr/test-strncmp.h: New file.
23256
23257         Tests for module 'unistr/u32-strcoll'.
23258         * modules/unistr/u32-strcoll-tests: New file.
23259         * tests/unistr/test-u32-strcoll.c: New file.
23260
23261         Tests for module 'unistr/u16-strcoll'.
23262         * modules/unistr/u16-strcoll-tests: New file.
23263         * tests/unistr/test-u16-strcoll.c: New file.
23264
23265         Tests for module 'unistr/u8-strcoll'.
23266         * modules/unistr/u8-strcoll-tests: New file.
23267         * tests/unistr/test-u8-strcoll.c: New file.
23268
23269         Tests for module 'unistr/u32-strcmp'.
23270         * modules/unistr/u32-strcmp-tests: New file.
23271         * tests/unistr/test-u32-strcmp.c: New file.
23272         * tests/unistr/test-u32-strcmp.h: New file.
23273
23274         Tests for module 'unistr/u16-strcmp'.
23275         * modules/unistr/u16-strcmp-tests: New file.
23276         * tests/unistr/test-u16-strcmp.c: New file.
23277         * tests/unistr/test-u16-strcmp.h: New file.
23278
23279         Tests for module 'unistr/u8-strcmp'.
23280         * modules/unistr/u8-strcmp-tests: New file.
23281         * tests/unistr/test-u8-strcmp.c: New file.
23282         * tests/unistr/test-u8-strcmp.h: New file.
23283         * tests/unistr/test-strcmp.h: New file.
23284
23285         Tests for module 'unistr/u32-strncat'.
23286         * modules/unistr/u32-strncat-tests: New file.
23287         * tests/unistr/test-u32-strncat.c: New file.
23288
23289         Tests for module 'unistr/u16-strncat'.
23290         * modules/unistr/u16-strncat-tests: New file.
23291         * tests/unistr/test-u16-strncat.c: New file.
23292
23293         Tests for module 'unistr/u8-strncat'.
23294         * modules/unistr/u8-strncat-tests: New file.
23295         * tests/unistr/test-u8-strncat.c: New file.
23296         * tests/unistr/test-strncat.h: New file.
23297
23298         Tests for module 'unistr/u32-strcat'.
23299         * modules/unistr/u32-strcat-tests: New file.
23300         * tests/unistr/test-u32-strcat.c: New file.
23301
23302         Tests for module 'unistr/u16-strcat'.
23303         * modules/unistr/u16-strcat-tests: New file.
23304         * tests/unistr/test-u16-strcat.c: New file.
23305
23306         Tests for module 'unistr/u8-strcat'.
23307         * modules/unistr/u8-strcat-tests: New file.
23308         * tests/unistr/test-u8-strcat.c: New file.
23309         * tests/unistr/test-strcat.h: New file.
23310
23311         Tests for module 'unistr/u32-stpncpy'.
23312         * modules/unistr/u32-stpncpy-tests: New file.
23313         * tests/unistr/test-u32-stpncpy.c: New file.
23314
23315         Tests for module 'unistr/u16-stpncpy'.
23316         * modules/unistr/u16-stpncpy-tests: New file.
23317         * tests/unistr/test-u16-stpncpy.c: New file.
23318
23319         Tests for module 'unistr/u8-stpncpy'.
23320         * modules/unistr/u8-stpncpy-tests: New file.
23321         * tests/unistr/test-u8-stpncpy.c: New file.
23322         * tests/unistr/test-stpncpy.h: New file.
23323
23324         Tests for module 'unistr/u32-strncpy'.
23325         * modules/unistr/u32-strncpy-tests: New file.
23326         * tests/unistr/test-u32-strncpy.c: New file.
23327
23328         Tests for module 'unistr/u16-strncpy'.
23329         * modules/unistr/u16-strncpy-tests: New file.
23330         * tests/unistr/test-u16-strncpy.c: New file.
23331
23332         Tests for module 'unistr/u8-strncpy'.
23333         * modules/unistr/u8-strncpy-tests: New file.
23334         * tests/unistr/test-u8-strncpy.c: New file.
23335         * tests/unistr/test-strncpy.h: New file.
23336
23337         Tests for module 'unistr/u32-stpcpy'.
23338         * modules/unistr/u32-stpcpy-tests: New file.
23339         * tests/unistr/test-u32-stpcpy.c: New file.
23340
23341         Tests for module 'unistr/u16-stpcpy'.
23342         * modules/unistr/u16-stpcpy-tests: New file.
23343         * tests/unistr/test-u16-stpcpy.c: New file.
23344
23345         Tests for module 'unistr/u8-stpcpy'.
23346         * modules/unistr/u8-stpcpy-tests: New file.
23347         * tests/unistr/test-u8-stpcpy.c: New file.
23348         * tests/unistr/test-stpcpy.h: New file.
23349
23350         Tests for module 'unistr/u32-strcpy'.
23351         * modules/unistr/u32-strcpy-tests: New file.
23352         * tests/unistr/test-u32-strcpy.c: New file.
23353
23354         Tests for module 'unistr/u16-strcpy'.
23355         * modules/unistr/u16-strcpy-tests: New file.
23356         * tests/unistr/test-u16-strcpy.c: New file.
23357
23358         Tests for module 'unistr/u8-strcpy'.
23359         * modules/unistr/u8-strcpy-tests: New file.
23360         * tests/unistr/test-u8-strcpy.c: New file.
23361         * tests/unistr/test-strcpy.h: New file.
23362
23363         Tests for module 'unistr/u32-strnlen'.
23364         * modules/unistr/u32-strnlen-tests: New file.
23365         * tests/unistr/test-u32-strnlen.c: New file.
23366
23367         Tests for module 'unistr/u16-strnlen'.
23368         * modules/unistr/u16-strnlen-tests: New file.
23369         * tests/unistr/test-u16-strnlen.c: New file.
23370
23371         Tests for module 'unistr/u8-strnlen'.
23372         * modules/unistr/u8-strnlen-tests: New file.
23373         * tests/unistr/test-u8-strnlen.c: New file.
23374         * tests/unistr/test-strnlen.h: New file.
23375
23376         Tests for module 'unistr/u32-strlen'.
23377         * modules/unistr/u32-strlen-tests: New file.
23378         * tests/unistr/test-u32-strlen.c: New file.
23379
23380         Tests for module 'unistr/u16-strlen'.
23381         * modules/unistr/u16-strlen-tests: New file.
23382         * tests/unistr/test-u16-strlen.c: New file.
23383
23384         Tests for module 'unistr/u8-strlen'.
23385         * modules/unistr/u8-strlen-tests: New file.
23386         * tests/unistr/test-u8-strlen.c: New file.
23387
23388         Tests for module 'unistr/u32-prev'.
23389         * modules/unistr/u32-prev-tests: New file.
23390         * tests/unistr/test-u32-prev.c: New file.
23391
23392         Tests for module 'unistr/u16-prev'.
23393         * modules/unistr/u16-prev-tests: New file.
23394         * tests/unistr/test-u16-prev.c: New file.
23395
23396         Tests for module 'unistr/u8-prev'.
23397         * modules/unistr/u8-prev-tests: New file.
23398         * tests/unistr/test-u8-prev.c: New file.
23399
23400         Tests for module 'unistr/u32-next'.
23401         * modules/unistr/u32-next-tests: New file.
23402         * tests/unistr/test-u32-next.c: New file.
23403
23404         Tests for module 'unistr/u16-next'.
23405         * modules/unistr/u16-next-tests: New file.
23406         * tests/unistr/test-u16-next.c: New file.
23407
23408         Tests for module 'unistr/u8-next'.
23409         * modules/unistr/u8-next-tests: New file.
23410         * tests/unistr/test-u8-next.c: New file.
23411
23412         Tests for module 'unistr/u32-strmbtouc'.
23413         * modules/unistr/u32-strmbtouc-tests: New file.
23414         * tests/unistr/test-u32-strmbtouc.c: New file.
23415
23416         Tests for module 'unistr/u16-strmbtouc'.
23417         * modules/unistr/u16-strmbtouc-tests: New file.
23418         * tests/unistr/test-u16-strmbtouc.c: New file.
23419
23420         Tests for module 'unistr/u8-strmbtouc'.
23421         * modules/unistr/u8-strmbtouc-tests: New file.
23422         * tests/unistr/test-u8-strmbtouc.c: New file.
23423
23424         Tests for module 'unistr/u32-strmblen'.
23425         * modules/unistr/u32-strmblen-tests: New file.
23426         * tests/unistr/test-u32-strmblen.c: New file.
23427
23428         Tests for module 'unistr/u16-strmblen'.
23429         * modules/unistr/u16-strmblen-tests: New file.
23430         * tests/unistr/test-u16-strmblen.c: New file.
23431
23432         Tests for module 'unistr/u8-strmblen'.
23433         * modules/unistr/u8-strmblen-tests: New file.
23434         * tests/unistr/test-u8-strmblen.c: New file.
23435
23436         Tests for module 'unistr/u32-cpy-alloc'.
23437         * modules/unistr/u32-cpy-alloc-tests: New file.
23438         * tests/unistr/test-u32-cpy-alloc.c: New file.
23439
23440         Tests for module 'unistr/u16-cpy-alloc'.
23441         * modules/unistr/u16-cpy-alloc-tests: New file.
23442         * tests/unistr/test-u16-cpy-alloc.c: New file.
23443
23444         Tests for module 'unistr/u8-cpy-alloc'.
23445         * modules/unistr/u8-cpy-alloc-tests: New file.
23446         * tests/unistr/test-u8-cpy-alloc.c: New file.
23447         * tests/unistr/test-cpy-alloc.h: New file.
23448
23449         Tests for module 'unistr/u32-mbsnlen'.
23450         * modules/unistr/u32-mbsnlen-tests: New file.
23451         * tests/unistr/test-u32-mbsnlen.c: New file.
23452
23453         Tests for module 'unistr/u16-mbsnlen'.
23454         * modules/unistr/u16-mbsnlen-tests: New file.
23455         * tests/unistr/test-u16-mbsnlen.c: New file.
23456
23457         Tests for module 'unistr/u8-mbsnlen'.
23458         * modules/unistr/u8-mbsnlen-tests: New file.
23459         * tests/unistr/test-u8-mbsnlen.c: New file.
23460
23461         Tests for module 'unistr/u32-chr'.
23462         * modules/unistr/u32-chr-tests: New file.
23463         * tests/unistr/test-u32-chr.c: New file.
23464
23465         Tests for module 'unistr/u16-chr'.
23466         * modules/unistr/u16-chr-tests: New file.
23467         * tests/unistr/test-u16-chr.c: New file.
23468
23469         Tests for module 'unistr/u8-chr'.
23470         * modules/unistr/u8-chr-tests: New file.
23471         * tests/unistr/test-u8-chr.c: New file.
23472         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
23473
23474         Tests for module 'unistr/u32-cmp2'.
23475         * modules/unistr/u32-cmp2-tests: New file.
23476         * tests/unistr/test-u32-cmp2.c: New file.
23477
23478         Tests for module 'unistr/u16-cmp2'.
23479         * modules/unistr/u16-cmp2-tests: New file.
23480         * tests/unistr/test-u16-cmp2.c: New file.
23481
23482         Tests for module 'unistr/u8-cmp2'.
23483         * modules/unistr/u8-cmp2-tests: New file.
23484         * tests/unistr/test-u8-cmp2.c: New file.
23485         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
23486
23487         Tests for module 'unistr/u32-cmp'.
23488         * modules/unistr/u32-cmp-tests: New file.
23489         * tests/unistr/test-u32-cmp.c: New file.
23490
23491         Tests for module 'unistr/u16-cmp'.
23492         * modules/unistr/u16-cmp-tests: New file.
23493         * tests/unistr/test-u16-cmp.c: New file.
23494
23495         Tests for module 'unistr/u8-cmp'.
23496         * modules/unistr/u8-cmp-tests: New file.
23497         * tests/unistr/test-u8-cmp.c: New file.
23498         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
23499
23500         Tests for module 'unistr/u32-set'.
23501         * modules/unistr/u32-set-tests: New file.
23502         * tests/unistr/test-u32-set.c: New file.
23503
23504         Tests for module 'unistr/u16-set'.
23505         * modules/unistr/u16-set-tests: New file.
23506         * tests/unistr/test-u16-set.c: New file.
23507
23508         Tests for module 'unistr/u8-set'.
23509         * modules/unistr/u8-set-tests: New file.
23510         * tests/unistr/test-u8-set.c: New file.
23511         * tests/unistr/test-set.h: New file.
23512
23513         Tests for module 'unistr/u32-move'.
23514         * modules/unistr/u32-move-tests: New file.
23515         * tests/unistr/test-u32-move.c: New file.
23516
23517         Tests for module 'unistr/u16-move'.
23518         * modules/unistr/u16-move-tests: New file.
23519         * tests/unistr/test-u16-move.c: New file.
23520
23521         Tests for module 'unistr/u8-move'.
23522         * modules/unistr/u8-move-tests: New file.
23523         * tests/unistr/test-u8-move.c: New file.
23524         * tests/unistr/test-move.h: New file.
23525
23526         Tests for module 'unistr/u32-cpy'.
23527         * modules/unistr/u32-cpy-tests: New file.
23528         * tests/unistr/test-u32-cpy.c: New file.
23529
23530         Tests for module 'unistr/u16-cpy'.
23531         * modules/unistr/u16-cpy-tests: New file.
23532         * tests/unistr/test-u16-cpy.c: New file.
23533
23534         Tests for module 'unistr/u8-cpy'.
23535         * modules/unistr/u8-cpy-tests: New file.
23536         * tests/unistr/test-u8-cpy.c: New file.
23537         * tests/unistr/test-cpy.h: New file.
23538
23539 2010-01-09  Bruno Haible  <bruno@clisp.org>
23540
23541         Tests for module 'unistr/u32-uctomb'.
23542         * modules/unistr/u32-uctomb-tests: New file.
23543         * tests/unistr/test-u32-uctomb.c: New file.
23544
23545         Tests for module 'unistr/u16-uctomb'.
23546         * modules/unistr/u16-uctomb-tests: New file.
23547         * tests/unistr/test-u16-uctomb.c: New file.
23548
23549         Tests for module 'unistr/u8-uctomb'.
23550         * modules/unistr/u8-uctomb-tests: New file.
23551         * tests/unistr/test-u8-uctomb.c: New file.
23552
23553         Tests for module 'unistr/u32-mbtoucr'.
23554         * modules/unistr/u32-mbtoucr-tests: New file.
23555         * tests/unistr/test-u32-mbtoucr.c: New file.
23556
23557         Tests for module 'unistr/u16-mbtoucr'.
23558         * modules/unistr/u16-mbtoucr-tests: New file.
23559         * tests/unistr/test-u16-mbtoucr.c: New file.
23560
23561         Tests for module 'unistr/u8-mbtoucr'.
23562         * modules/unistr/u8-mbtoucr-tests: New file.
23563         * tests/unistr/test-u8-mbtoucr.c: New file.
23564
23565         Tests for module 'unistr/u32-mbtouc'.
23566         * modules/unistr/u32-mbtouc-tests: New file.
23567         * tests/unistr/test-u32-mbtouc.c: New file.
23568
23569         Tests for module 'unistr/u16-mbtouc'.
23570         * modules/unistr/u16-mbtouc-tests: New file.
23571         * tests/unistr/test-u16-mbtouc.c: New file.
23572
23573         Tests for module 'unistr/u8-mbtouc'.
23574         * modules/unistr/u8-mbtouc-tests: New file.
23575         * tests/unistr/test-u8-mbtouc.c: New file.
23576
23577         Tests for module 'unistr/u32-mbtouc-unsafe'.
23578         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
23579         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
23580         * tests/unistr/test-u32-mbtouc.h: New file.
23581
23582         Tests for module 'unistr/u16-mbtouc-unsafe'.
23583         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
23584         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
23585         * tests/unistr/test-u16-mbtouc.h: New file.
23586
23587         Tests for module 'unistr/u8-mbtouc-unsafe'.
23588         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
23589         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
23590         * tests/unistr/test-u8-mbtouc.h: New file.
23591
23592         Tests for module 'unistr/u32-mblen'.
23593         * modules/unistr/u32-mblen-tests: New file.
23594         * tests/unistr/test-u32-mblen.c: New file.
23595
23596         Tests for module 'unistr/u16-mblen'.
23597         * modules/unistr/u16-mblen-tests: New file.
23598         * tests/unistr/test-u16-mblen.c: New file.
23599
23600         Tests for module 'unistr/u8-mblen'.
23601         * modules/unistr/u8-mblen-tests: New file.
23602         * tests/unistr/test-u8-mblen.c: New file.
23603
23604         Tests for module 'unistr/u32-to-u16'.
23605         * modules/unistr/u32-to-u16-tests: New file.
23606         * tests/unistr/test-u32-to-u16.c: New file.
23607
23608         Tests for module 'unistr/u32-to-u8'.
23609         * modules/unistr/u32-to-u8-tests: New file.
23610         * tests/unistr/test-u32-to-u8.c: New file.
23611
23612         Tests for module 'unistr/u16-to-u32'.
23613         * modules/unistr/u16-to-u32-tests: New file.
23614         * tests/unistr/test-u16-to-u32.c: New file.
23615
23616         Tests for module 'unistr/u16-to-u8'.
23617         * modules/unistr/u16-to-u8-tests: New file.
23618         * tests/unistr/test-u16-to-u8.c: New file.
23619
23620         Tests for module 'unistr/u8-to-u32'.
23621         * modules/unistr/u8-to-u32-tests: New file.
23622         * tests/unistr/test-u8-to-u32.c: New file.
23623
23624         Tests for module 'unistr/u8-to-u16'.
23625         * modules/unistr/u8-to-u16-tests: New file.
23626         * tests/unistr/test-u8-to-u16.c: New file.
23627
23628         Tests for module 'unistr/u32-check'.
23629         * modules/unistr/u32-check-tests: New file.
23630         * tests/unistr/test-u32-check.c: New file.
23631
23632         Tests for module 'unistr/u16-check'.
23633         * modules/unistr/u16-check-tests: New file.
23634         * tests/unistr/test-u16-check.c: New file.
23635
23636         Tests for module 'unistr/u8-check'.
23637         * modules/unistr/u8-check-tests: New file.
23638         * tests/unistr/test-u8-check.c: New file.
23639
23640         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
23641         (category_equals): New function.
23642         (main): Add more tests.
23643         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
23644
23645         * tests/unictype/test-bidi_byname.c (main): Add more tests.
23646
23647 2010-01-10  Bruno Haible  <bruno@clisp.org>
23648
23649         unistr/u*-strcoll: Try harder to distinguish different strings.
23650         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
23651         compare s1 and s2 to see if they are different.
23652
23653 2010-01-10  Bruno Haible  <bruno@clisp.org>
23654
23655         unistr/u*-stpncpy: Fix the return value.
23656         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
23657         description of the return value consistent with stpncpy in glibc.
23658         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
23659         written non-NUL unit.
23660
23661 2010-01-10  Bruno Haible  <bruno@clisp.org>
23662
23663         unistr/u*-next: Add missing dependencies.
23664         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
23665         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
23666         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
23667
23668 2010-01-10  Bruno Haible  <bruno@clisp.org>
23669
23670         unistr/u8-mbsnlen: Fix return value for incomplete character.
23671         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
23672         u8_mblen.
23673         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
23674         Remove unistr/u8-mblen.
23675         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
23676         u16_mblen.
23677         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
23678         Remove unistr/u16-mblen.
23679
23680 2010-01-10  Bruno Haible  <bruno@clisp.org>
23681
23682         wchar: Fix compilation error when <wchar.h> is used from coreutils.
23683         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
23684         Reported by Brian Gough <bjg@gnu.org> and
23685         Chris Clayton <chris2553@googlemail.com> via
23686         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
23687
23688 2010-01-09  Bruno Haible  <bruno@clisp.org>
23689
23690         unistr/u16-to-u32: Reject invalid input.
23691         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
23692         u16_mbtouc.
23693         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
23694         Remove unistr/u16-mbtouc.
23695
23696         unistr/u16-to-u8: Reject invalid input.
23697         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
23698         u16_mbtouc.
23699         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
23700         Remove unistr/u16-mbtouc.
23701
23702         unistr/u8-to-u32: Reject invalid input.
23703         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
23704         u8_mbtouc.
23705         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
23706         Remove unistr/u8-mbtouc.
23707
23708         unistr/u8-to-u16: Reject invalid input.
23709         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
23710         u8_mbtouc.
23711         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
23712         Remove unistr/u8-mbtouc.
23713
23714 2010-01-09  Bruno Haible  <bruno@clisp.org>
23715
23716         Tests for module 'getlogin'.
23717         * modules/getlogin-tests: New file.
23718         * tests/test-getlogin.c: New file.
23719
23720         New module 'getlogin'.
23721         * lib/unistd.in.h (getlogin): New declaration.
23722         * lib/getlogin.c: New file.
23723         * m4/getlogin.m4: New file.
23724         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
23725         HAVE_GETLOGIN.
23726         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
23727         HAVE_GETLOGIN.
23728         * modules/getlogin: New file.
23729         * doc/posix-functions/getlogin.texi: Mention the new module.
23730         Reported by John W. Eaton <jwe@gnu.org>.
23731
23732 2010-01-09  Bruno Haible  <bruno@clisp.org>
23733
23734         getlogin_r: Support for native Windows.
23735         * lib/getlogin_r.c: Include <windows.h>
23736         (getlogin_r): Implement for native Windows.
23737         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
23738         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
23739         via John W. Eaton <jwe@gnu.org>.
23740
23741 2010-01-09  Bruno Haible  <bruno@clisp.org>
23742
23743         getlogin_r: Small fixes.
23744         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
23745         succeeds.
23746         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
23747         before testing whether getlogin_r is declared. No need to set
23748         HAVE_DECL_GETLOGIN_R to 1.
23749         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
23750
23751 2010-01-09  Bruno Haible  <bruno@clisp.org>
23752
23753         * lib/unistd.in.h (getlogin_r): Add comment.
23754
23755 2010-01-09  Bruno Haible  <bruno@clisp.org>
23756
23757         Tests for module 'getlogin_r'.
23758         * modules/getlogin_r-tests: New file.
23759         * tests/test-getlogin_r.c: New file.
23760
23761 2010-01-09  Jim Meyering  <meyering@redhat.com>
23762
23763         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
23764         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
23765         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
23766
23767 2010-01-08  Simon Josefsson  <simon@josefsson.org>
23768
23769         * lib/dup2.c (rpl_dup2): Improve comment.
23770
23771 2010-01-08  Eric Blake  <ebb9@byu.net>
23772
23773         maint.mk: allow packages to add makefile @@ exceptions
23774         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
23775         (sc_makefile_check): Rename...
23776         (sc_makefile_at_at_check): ...to this, and use hook.
23777
23778         dup2: work around mingw bug
23779         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
23780         Reported by Simon Josefsson.
23781
23782 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
23783
23784         glob: Fix C++ compilation.
23785         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
23786         C++.
23787
23788 2010-01-07  Bruno Haible  <bruno@clisp.org>
23789
23790         Fix indentation of wctype.in.h, broken since 2007-01-06.
23791         * lib/wctype.in.h: Fix indentation of preprocessor directives.
23792
23793 2010-01-07  Bruno Haible  <bruno@clisp.org>
23794
23795         mbslen: Avoid collision with system function.
23796         * lib/string.in.h [MirBSD]: Include <wchar.h>.
23797         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
23798         * m4/mbslen.m4: New file.
23799         * modules/mbslen (Files): Add it.
23800         (configure.ac): Invoke gl_MBSLEN.
23801         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
23802         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
23803         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
23804         via Ian Beckwith <ianb@erislabs.net>.
23805
23806 2010-01-07  Bruno Haible  <bruno@clisp.org>
23807
23808         dirent: Document the last fix.
23809         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
23810
23811 2010-01-07  Bruno Haible  <bruno@clisp.org>
23812
23813         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
23814         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
23815         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
23816         va_list are defined.
23817         * doc/posix-headers/stdio.texi: Document the bug of missing types.
23818         Reported by Eric Blake.
23819
23820 2010-01-07  Bruno Haible  <bruno@clisp.org>
23821
23822         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
23823         * modules/xlist (Depends-on): Add 'list',
23824         * modules/xoset (Depends-on): Add 'oset'.
23825         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23826
23827 2010-01-07  Bruno Haible  <bruno@clisp.org>
23828
23829         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
23830         * doc/posix-functions/strncasecmp.texi: Likewise.
23831
23832 2010-01-07  Bruno Haible  <bruno@clisp.org>
23833
23834         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
23835
23836 2010-01-07  John W. Eaton  <jwe@octave.org>
23837
23838         wctype: allow C++ use
23839         * lib/wctype.in.h: Add extern "C" block for C++.
23840
23841 2010-01-06  Eric Blake  <ebb9@byu.net>
23842
23843         maint.mk: detect incorrect GFDL usage
23844         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
23845
23846 2010-01-06  Jim Meyering  <meyering@redhat.com>
23847         and Eric Blake  <ebb9@byu.net>
23848
23849         maint.mk: ignore multi-line copyright in NEWS
23850         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
23851
23852 2010-01-06  Eric Blake  <ebb9@byu.net>
23853
23854         select: add missing dependency
23855         * modules/select-tests (Depends-on): Move sockets dependency...
23856         * modules/select (Depends-on): ...here.
23857         Reported by Ian Beckwith.
23858
23859         doc: regenerate INSTALL
23860         * doc/INSTALL: Reflect recent autoconf update.
23861         * doc/INSTALL.ISO: Likewise.
23862         * doc/INSTALL.UTF-8: Likewise.
23863
23864         pread: fix compilation on glibc
23865         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
23866         Reported by Ralf Wildenhues.
23867
23868         dirent: fix test failure
23869         * lib/dirent.in.h (includes): Guarantee ino_t.
23870         Reported by Ralf Wildenhues.
23871
23872 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
23873
23874         linkat, renameat: avoid bad free
23875         * lib/at-func2.c (at_func2): Fix typo.
23876         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
23877
23878 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23879
23880         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
23881         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
23882         to avoid failure of symlink test later.
23883
23884 2010-01-06  Eric Blake  <ebb9@byu.net>
23885
23886         stdio, unistd: guarantee ssize_t
23887         * lib/unistd.in.h (includes): Ensure that types required by POSIX
23888         2008 are exposed when needed.
23889         * lib/stdio.in.h (includes): Likewise.
23890         Reported by Ralf Wildenhues.
23891
23892 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
23893
23894         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
23895         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
23896         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
23897
23898 2010-01-06  Jim Meyering  <meyering@redhat.com>
23899
23900         readtokens: this module *does* require xalloc.h
23901         It uses only functions that were omitted by the old syntax-check rule.
23902         * lib/readtokens.c: Include "xalloc.h" once again.
23903         * modules/readtokens (Depends-on): Add xalloc.
23904         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
23905
23906 2010-01-05  Eric Blake  <ebb9@byu.net>
23907
23908         maint: support 'make announcement' from a VPATH build
23909         * top/maint.mk (announcement): Look for correct NEWS file.
23910
23911 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
23912
23913         utimens (fdutimens): ignore a negative FD, per contract
23914         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
23915         when we have a valid file descriptor.  Otherwise, using a brand
23916         new glibc (with just-patched futimens that now fails with EBADF)
23917         would cause this function to fail with ENOSYS.
23918         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
23919         See also http://bugzilla.redhat.com/552320.
23920
23921 2010-01-05  Eric Blake  <ebb9@byu.net>
23922
23923         strcase: document what it provides
23924         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
23925         gnulib module.
23926         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
23927         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
23928
23929 2010-01-05  Jim Meyering  <meyering@redhat.com>
23930
23931         maint: remove useless inclusions of "xalloc.h"
23932         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
23933         * lib/readtokens.c: Likewise.
23934         * lib/same.c: Likewise.
23935         * modules/getloadavg (Depends-on): Remove xalloc.
23936         * modules/readtokens: Likewise.
23937         * modules/same: Likewise.
23938
23939         maint.mk: include 4 more function names in alloca.h-checking regexp
23940         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
23941         regexp.  Before, we would give a false-positive (saying alloca.h
23942         is included unnecessarily) when the only uses involved omitted symbols.
23943
23944         xalloc.h: use consistent formatting
23945         * lib/xalloc.h: Move declarations to start in the first column.
23946
23947 2010-01-05  Eric Blake  <ebb9@byu.net>
23948
23949         mkdir: avoid xalloc
23950         * lib/mkdir.c (includes): Drop unused header.
23951         Reported by John W. Eaton.
23952
23953 2010-01-04  Jim Meyering  <meyering@redhat.com>
23954
23955         nl_langinfo: avoid configure-time syntax error
23956         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
23957         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
23958         the empty string.  Don't let that provoke a shell syntax error.
23959
23960         regcomp, regexec, fnmatch: avoid array bounds read error
23961         * lib/regcomp.c (build_equiv_class): From glibc:
23962         Use only the low 24 bits of a findidx return value as an index
23963         into the weights array.  Patch by Ulrich Drepper:
23964         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
23965         * lib/regexec.c (check_node_accept_bytes): Likewise.
23966         * lib/fnmatch_loop.c (FCT): Likewise.
23967
23968         regcomp: skip collseq lookup when there are no rules
23969         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
23970         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
23971
23972         regcomp: recognize ill-formed { } expressions
23973         * lib/regcomp.c (parse_dup_op): From glibc:
23974         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
23975
23976         regcomp: fix typo in comment
23977         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
23978         s/satisfy/satisfies/.
23979
23980         regcomp: sync from glibc: remove dead store
23981         * lib/regcomp.c (duplicate_node_closure): Remove useless
23982         search_duplicated_node call and dead store.
23983
23984         regcomp: sync from glibc; always use nl_langinfo
23985         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
23986         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
23987         * modules/regex (Depends-on): Add nl_langinfo.
23988
23989 2010-01-04  Eric Blake  <ebb9@byu.net>
23990
23991         fdopendir: fix configure test
23992         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
23993
23994 2010-01-01  Bruno Haible  <bruno@clisp.org>
23995
23996         wchar: Remove unused configure check.
23997         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
23998
23999 2010-01-01  Eric Blake  <ebb9@byu.net>
24000
24001         headers: make check of system header explicit
24002         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
24003         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
24004         ourselves.
24005         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24006         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24007         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
24008         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
24009         internals.
24010         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
24011         missing.
24012         Suggested by Bruno Haible.
24013
24014 2010-01-01  Jim Meyering  <meyering@redhat.com>
24015
24016         ChangeLog: tweak to eliminate unnecessary copyright line
24017         * ChangeLog: Remove a copyright line that was mistakenly updated
24018         by today's update-copyright run.  Reported by Eric Blake.
24019
24020         test-update-copyright: don't let envvar setting cause test failure
24021         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
24022
24023 2010-01-01  Bruno Haible  <bruno@clisp.org>
24024
24025         localename: Avoid gcc warning.
24026         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
24027         function if it is not used.
24028
24029 2010-01-01  Jim Meyering  <meyering@redhat.com>
24030
24031         update nearly all FSF copyright year lists to include 2010
24032         Use the same procedure as for 2009, outlined in
24033         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
24034
24035         version-etc: set COPYRIGHT_YEAR to 2010
24036         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
24037
24038 2009-12-31  Eric Blake  <ebb9@byu.net>
24039
24040         doc: correct availability of cygwin 1.5.x getopt
24041         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
24042         variables.
24043         * doc/posix-functions/opterr.texi (opterr): Likewise.
24044         * doc/posix-functions/optind.texi (optind): Likewise.
24045         * doc/posix-functions/optopt.texi (optopt): Likewise.
24046         * doc/posix-functions/tzname.texi (tzname): Likewise.
24047
24048         openat: update maintainer
24049         * modules/openat (Maintainer): Add myself.
24050
24051         utimens: avoid shadowing warning
24052         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
24053         buffers into one, to avoid shadowing, as well as avoiding a
24054         redundant stat.
24055         Reported by Jim Meyering.
24056
24057         test-dup2: avoid compiler warning
24058         * tests/test-dup2.c (is_inheritable): Only define if used.
24059
24060 2010-01-01  Bruno Haible  <bruno@clisp.org>
24061
24062         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
24063         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
24064         defined, use wctomb instead of wcrtomb.
24065
24066 2010-01-01  Bruno Haible  <bruno@clisp.org>
24067
24068         iconv: Reject native Solaris iconv.
24069         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
24070         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
24071
24072 2009-12-31  Bruno Haible  <bruno@clisp.org>
24073
24074         * tests/test-signal.c (main): Remove test of 'SIG'.
24075
24076 2009-12-31  Bruno Haible  <bruno@clisp.org>
24077
24078         spawn: Fix incomplete fix.
24079         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
24080         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
24081         warnings for GNULIB_POSIXCHECK again.
24082         Reported by Eric Blake.
24083
24084 2009-12-31  Bruno Haible  <bruno@clisp.org>
24085
24086         Avoid namespace pollution on glibc systems.
24087         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
24088         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
24089         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
24090         glibc systems.
24091
24092 2009-12-31  Bruno Haible  <bruno@clisp.org>
24093
24094         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
24095         (gl_REPLACE_WCHAR_H): Turn into a no-op.
24096         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
24097         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
24098         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
24099         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
24100         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
24101
24102 2009-12-31  Bruno Haible  <bruno@clisp.org>
24103
24104         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
24105         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
24106         afterwards.
24107
24108 2009-12-31  Bruno Haible  <bruno@clisp.org>
24109
24110         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
24111         SYS_UTSNAME_H.
24112
24113 2009-12-31  Bruno Haible  <bruno@clisp.org>
24114
24115         spawn: Fix misapplied patch.
24116         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
24117         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
24118         warnings for GNULIB_POSIXCHECK.
24119
24120 2009-12-31  Bruno Haible  <bruno@clisp.org>
24121
24122         times: Update after sys_times changed.
24123         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
24124         * modules/times (Files): Add it.
24125         (configure.ac): Invoke gl_FUNC_TIMES.
24126
24127 2009-12-31  Bruno Haible  <bruno@clisp.org>
24128
24129         Use AC_C_INLINE where necessary.
24130         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
24131         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
24132         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
24133         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
24134         * m4/mbfile.m4 (gl_MBFILE): Likewise.
24135         * m4/mbiter.m4 (gl_MBITER): Likewise.
24136         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
24137         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24138         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
24139         * modules/u64 (configure.ac): Likewise.
24140
24141 2009-12-31  Bruno Haible  <bruno@clisp.org>
24142
24143         Use AC_C_INLINE instead of module 'inline' where possible.
24144         * modules/inline (Description): Clarify purpose.
24145         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
24146         * modules/count-one-bits (Depends-on): Remove inline.
24147         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
24148         * modules/openat (Depends-on): Remove inline.
24149         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
24150         instead of depending on module 'inline'.
24151         * modules/filevercmp (Depends-on, configure.ac): Likewise.
24152         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
24153         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
24154         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
24155         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
24156         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
24157         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
24158         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
24159         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
24160         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
24161         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
24162         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
24163         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
24164         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
24165         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
24166         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
24167         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
24168         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
24169         Likewise.
24170         * modules/unictype/property-ascii-hex-digit (Depends-on,
24171         configure.ac): Likewise.
24172         * modules/unictype/property-bidi-arabic-digit (Depends-on,
24173         configure.ac): Likewise.
24174         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
24175         configure.ac): Likewise.
24176         * modules/unictype/property-bidi-block-separator (Depends-on,
24177         configure.ac): Likewise.
24178         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
24179         configure.ac): Likewise.
24180         * modules/unictype/property-bidi-common-separator (Depends-on,
24181         configure.ac): Likewise.
24182         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
24183         Likewise.
24184         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
24185         configure.ac): Likewise.
24186         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
24187         configure.ac): Likewise.
24188         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
24189         configure.ac): Likewise.
24190         * modules/unictype/property-bidi-european-digit (Depends-on,
24191         configure.ac): Likewise.
24192         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
24193         configure.ac): Likewise.
24194         * modules/unictype/property-bidi-left-to-right (Depends-on,
24195         configure.ac): Likewise.
24196         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
24197         configure.ac): Likewise.
24198         * modules/unictype/property-bidi-other-neutral (Depends-on,
24199         configure.ac): Likewise.
24200         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
24201         Likewise.
24202         * modules/unictype/property-bidi-segment-separator (Depends-on,
24203         configure.ac): Likewise.
24204         * modules/unictype/property-bidi-whitespace (Depends-on,
24205         configure.ac): Likewise.
24206         * modules/unictype/property-combining (Depends-on, configure.ac):
24207         Likewise.
24208         * modules/unictype/property-composite (Depends-on, configure.ac):
24209         Likewise.
24210         * modules/unictype/property-currency-symbol (Depends-on,
24211         configure.ac): Likewise.
24212         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
24213         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
24214         Likewise.
24215         * modules/unictype/property-default-ignorable-code-point (Depends-on,
24216         configure.ac): Likewise.
24217         * modules/unictype/property-deprecated (Depends-on, configure.ac):
24218         Likewise.
24219         * modules/unictype/property-diacritic (Depends-on, configure.ac):
24220         Likewise.
24221         * modules/unictype/property-extender (Depends-on, configure.ac):
24222         Likewise.
24223         * modules/unictype/property-format-control (Depends-on, configure.ac):
24224         Likewise.
24225         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
24226         Likewise.
24227         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
24228         Likewise.
24229         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
24230         Likewise.
24231         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
24232         Likewise.
24233         * modules/unictype/property-hyphen (Depends-on, configure.ac):
24234         Likewise.
24235         * modules/unictype/property-id-continue (Depends-on, configure.ac):
24236         Likewise.
24237         * modules/unictype/property-id-start (Depends-on, configure.ac):
24238         Likewise.
24239         * modules/unictype/property-ideographic (Depends-on, configure.ac):
24240         Likewise.
24241         * modules/unictype/property-ids-binary-operator (Depends-on,
24242         configure.ac): Likewise.
24243         * modules/unictype/property-ids-trinary-operator (Depends-on,
24244         configure.ac): Likewise.
24245         * modules/unictype/property-ignorable-control (Depends-on,
24246         configure.ac): Likewise.
24247         * modules/unictype/property-iso-control (Depends-on, configure.ac):
24248         Likewise.
24249         * modules/unictype/property-join-control (Depends-on, configure.ac):
24250         Likewise.
24251         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
24252         Likewise.
24253         * modules/unictype/property-line-separator (Depends-on, configure.ac):
24254         Likewise.
24255         * modules/unictype/property-logical-order-exception (Depends-on,
24256         configure.ac): Likewise.
24257         * modules/unictype/property-lowercase (Depends-on, configure.ac):
24258         Likewise.
24259         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
24260         * modules/unictype/property-non-break (Depends-on, configure.ac):
24261         Likewise.
24262         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
24263         Likewise.
24264         * modules/unictype/property-numeric (Depends-on, configure.ac):
24265         Likewise.
24266         * modules/unictype/property-other-alphabetic (Depends-on,
24267         configure.ac): Likewise.
24268         * modules/unictype/property-other-default-ignorable-code-point
24269         (Depends-on, configure.ac): Likewise.
24270         * modules/unictype/property-other-grapheme-extend (Depends-on,
24271         configure.ac): Likewise.
24272         * modules/unictype/property-other-id-continue (Depends-on,
24273         configure.ac): Likewise.
24274         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
24275         Likewise.
24276         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
24277         Likewise.
24278         * modules/unictype/property-other-math (Depends-on, configure.ac):
24279         Likewise.
24280         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
24281         Likewise.
24282         * modules/unictype/property-paired-punctuation (Depends-on,
24283         configure.ac): Likewise.
24284         * modules/unictype/property-paragraph-separator (Depends-on,
24285         configure.ac): Likewise.
24286         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
24287         Likewise.
24288         * modules/unictype/property-pattern-white-space (Depends-on,
24289         configure.ac): Likewise.
24290         * modules/unictype/property-private-use (Depends-on, configure.ac):
24291         Likewise.
24292         * modules/unictype/property-punctuation (Depends-on, configure.ac):
24293         Likewise.
24294         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
24295         Likewise.
24296         * modules/unictype/property-radical (Depends-on, configure.ac):
24297         Likewise.
24298         * modules/unictype/property-sentence-terminal (Depends-on,
24299         configure.ac): Likewise.
24300         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
24301         Likewise.
24302         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
24303         * modules/unictype/property-terminal-punctuation (Depends-on,
24304         configure.ac): Likewise.
24305         * modules/unictype/property-titlecase (Depends-on, configure.ac):
24306         Likewise.
24307         * modules/unictype/property-unassigned-code-value (Depends-on,
24308         configure.ac): Likewise.
24309         * modules/unictype/property-unified-ideograph (Depends-on,
24310         configure.ac): Likewise.
24311         * modules/unictype/property-uppercase (Depends-on, configure.ac):
24312         Likewise.
24313         * modules/unictype/property-variation-selector (Depends-on,
24314         configure.ac): Likewise.
24315         * modules/unictype/property-white-space (Depends-on, configure.ac):
24316         Likewise.
24317         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
24318         Likewise.
24319         * modules/unictype/property-xid-start (Depends-on, configure.ac):
24320         Likewise.
24321         * modules/unictype/property-zero-width (Depends-on, configure.ac):
24322         Likewise.
24323         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
24324         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
24325         Likewise.
24326
24327 2009-12-31  Bruno Haible  <bruno@clisp.org>
24328
24329         Remove unnecessary AC_C_INLINE invocation.
24330         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
24331         since 2009-08-21.
24332
24333 2009-12-31  Jim Meyering  <meyering@redhat.com>
24334
24335         maint.mk: don't require explicit gpg_key_ID in cfg.mk
24336         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
24337         With this change, we can all remove the gpg_key_ID = ... definition
24338         from our respective cfg.mk files.
24339
24340         maint.mk: create announcement template in ~/, not in /tmp
24341         * top/maint.mk (emit_upload_commands): Adjust.
24342         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
24343         Remove temporary file, .ci-msg.
24344
24345 2009-12-31  Eric Blake  <ebb9@byu.net>
24346
24347         link-warning: always build headers with link warnings
24348         * modules/arpa_inet (Makefile.am): Always build replacement
24349         header.
24350         * modules/ctype (Makefile.am): Likewise.
24351         * modules/dirent (Makefile.am): Likewise.
24352         * modules/inttypes (Makefile.am): Likewise.
24353         * modules/langinfo (Makefile.am): Likewise.
24354         * modules/locale (Makefile.am): Likewise.
24355         * modules/spawn (Makefile.am): Likewise.
24356         * modules/sys_file (Makefile.am): Likewise.
24357         * modules/sys_ioctl (Makefile.am): Likewise.
24358         * modules/sys_select (Makefile.am): Likewise.
24359         * modules/sys_socket (Makefile.am): Likewise.
24360         * modules/sys_times (Makefile.am): Likewise.
24361         * modules/sys_utsname (Makefile.am): Likewise.
24362         * modules/sys_wait (Makefile.am): Likewise.
24363         * modules/wchar (Makefile.am): Likewise.
24364         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
24365         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
24366         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
24367         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
24368         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
24369         Likewise.
24370         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24371         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
24372         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
24373         Likewise.
24374         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
24375         Likewise.
24376         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
24377         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
24378         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
24379         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24380         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24381         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
24382         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
24383         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
24384         (gl_WCHAR_H_DEFAULTS): Likewise.
24385
24386 2009-12-31  Eric Blake  <ebb9@byu.net>
24387
24388         signal, spawn: use link warnings
24389         * lib/signal.in.h (sigset_t): Make unconditional.
24390         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
24391         (sigpending, sigprocmask, sigaction): Add link warnings.
24392         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
24393         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
24394         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
24395         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
24396         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
24397         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
24398         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
24399         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
24400         (posix_spawn_file_actions_destroy)
24401         (posix_spawn_file_actions_addopen)
24402         (posix_spawn_file_actions_addclose)
24403         (posix_spawn_file_actions_adddup2): Likewise.
24404         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
24405         * tests/test-signal.c (main): Enhance test.
24406
24407         spawn: improve wrapper support
24408         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
24409         (gl_SPAWN_H_DEFAULTS): New defaults.
24410         * modules/spawn (Makefile.am): Substitute them.
24411         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
24412         Only declare if missing or broken.
24413
24414         sys_times, sys_utsname: use include_next
24415         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
24416         header.
24417         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
24418         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
24419         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
24420         * modules/sys_times (Depends-on): Add include_next.
24421         (Makefile.am): Substitute additional values.
24422         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
24423         * lib/sys_times.in.h (includes): Include native header, if
24424         available.
24425         * lib/sys_utsname.in.h (includes): Likewise.
24426         * tests/test-sys_times.c (main): Enhance test.
24427
24428         fdutimensat: revert prior patch
24429         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
24430         utimens.h.
24431         Reported by Bruno Haible.
24432
24433 2009-12-30  Eric Blake  <ebb9@byu.net>
24434
24435         sys_wait: drop link-warning dependency
24436         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
24437         link-warning efforts.
24438         * lib/sys_wait.in.h: Likewise.
24439
24440         fdutimensat: remove bogus dependency
24441         * modules/fdutimensat (Depends-on): Drop inline.
24442
24443         unistd: fix typo
24444         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
24445
24446 2009-12-30  Bruno Haible  <bruno@clisp.org>
24447
24448         Fix compilation error with Solaris cc.
24449         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
24450         * lib/unicase/u16-is-invariant.c: Likewise.
24451         * lib/unicase/u32-is-invariant.c: Likewise.
24452         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
24453
24454 2009-12-30  Bruno Haible  <bruno@clisp.org>
24455
24456         Fix test crash.
24457         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
24458         locales.
24459         Reported by Simon Josefsson <simon@josefsson.org>.
24460
24461 2009-12-30  Bruno Haible  <bruno@clisp.org>
24462
24463         Fix compilation error on most platforms.
24464         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
24465         Reported by Simon Josefsson <simon@josefsson.org>
24466         and Nelson H. F. Beebe <beebe@math.utah.edu>.
24467
24468 2009-12-30  Eric Blake  <ebb9@byu.net>
24469
24470         futimens, utimensat: work around ntfs-3g bug
24471         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
24472         a ctime bug is present, and expand workaround to cover ntfs-3g.
24473         * lib/utimens.c (fdutimens, lutimens): Likewise.
24474         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
24475         (validate_timespec): Adjust return value.
24476         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
24477         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24478         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
24479
24480 2009-12-29  Eric Blake  <ebb9@byu.net>
24481
24482         link-warning: make usage consistent
24483         * modules/ctype (Depends-on): Add link-warning.
24484         (Makefile.am): Update rules accordingly.
24485         * modules/langinfo (Depends-on, Makefile.am): Likewise.
24486         * modules/locale (Depends-on, Makefile.am): Likewise.
24487         * modules/sys_file (Makefile.am): Likewise.
24488         * modules/getopt-posix (Makefile.am): Delete unused link warning
24489         efforts.
24490         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
24491         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
24492         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
24493         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
24494
24495         stdio: remove unused variables
24496         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
24497         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
24498         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
24499
24500         tests: test more substitute headers
24501         * modules/ctype-tests: New file.
24502         * modules/dirent-tests: Likewise.
24503         * modules/spawn-tests: Likewise.
24504         * modules/sys_file-tests: Likewise.
24505         * modules/sys_ioctl-tests: Likewise.
24506         * modules/sys_wait-tests: Likewise.
24507         * tests/test-ctype.c: Likewise.
24508         * tests/test-dirent.c: Likewise.
24509         * tests/test-spawn.c: Likewise.
24510         * tests/test-sys_file.c: Likewise.
24511         * tests/test-sys_ioctl.c: Likewise.
24512         * tests/test-sys_wait.c: Likewise.
24513         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
24514         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
24515         whether or not flock is in use.
24516
24517         tests: remove License section from module
24518         * modules/arpa_inet-tests: Remove unneeded section.
24519         * modules/byteswap-tests: Likewise.
24520         * modules/ceilf-tests: Likewise.
24521         * modules/ceill-tests: Likewise.
24522         * modules/crypto/des-tests: Likewise.
24523         * modules/crypto/gc-arcfour-tests: Likewise.
24524         * modules/crypto/gc-arctwo-tests: Likewise.
24525         * modules/crypto/gc-des-tests: Likewise.
24526         * modules/crypto/gc-hmac-md5-tests: Likewise.
24527         * modules/crypto/gc-hmac-sha1-tests: Likewise.
24528         * modules/crypto/gc-md2-tests: Likewise.
24529         * modules/crypto/gc-md4-tests: Likewise.
24530         * modules/crypto/gc-md5-tests: Likewise.
24531         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
24532         * modules/crypto/gc-rijndael-tests: Likewise.
24533         * modules/crypto/gc-sha1-tests: Likewise.
24534         * modules/crypto/gc-tests: Likewise.
24535         * modules/crypto/md2-tests: Likewise.
24536         * modules/crypto/md4-tests: Likewise.
24537         * modules/fcntl-h-tests: Likewise.
24538         * modules/floorf-tests: Likewise.
24539         * modules/floorl-tests: Likewise.
24540         * modules/frexp-nolibm-tests: Likewise.
24541         * modules/frexp-tests: Likewise.
24542         * modules/frexpl-nolibm-tests: Likewise.
24543         * modules/frexpl-tests: Likewise.
24544         * modules/getaddrinfo-tests: Likewise.
24545         * modules/inttypes-tests: Likewise.
24546         * modules/isfinite-tests: Likewise.
24547         * modules/isinf-tests: Likewise.
24548         * modules/ldexpl-tests: Likewise.
24549         * modules/locale-tests: Likewise.
24550         * modules/math-tests: Likewise.
24551         * modules/netdb-tests: Likewise.
24552         * modules/netinet_in-tests: Likewise.
24553         * modules/printf-frexp-tests: Likewise.
24554         * modules/printf-frexpl-tests: Likewise.
24555         * modules/priv-set-tests: Likewise.
24556         * modules/random_r-tests: Likewise.
24557         * modules/round-tests: Likewise.
24558         * modules/roundf-tests: Likewise.
24559         * modules/roundl-tests: Likewise.
24560         * modules/search-tests: Likewise.
24561         * modules/select-tests: Likewise.
24562         * modules/signal-tests: Likewise.
24563         * modules/stdbool-tests: Likewise.
24564         * modules/stddef-tests: Likewise.
24565         * modules/stdint-tests: Likewise.
24566         * modules/stdio-tests: Likewise.
24567         * modules/stdlib-tests: Likewise.
24568         * modules/string-tests: Likewise.
24569         * modules/strings-tests: Likewise.
24570         * modules/sys_select-tests: Likewise.
24571         * modules/sys_socket-tests: Likewise.
24572         * modules/sys_stat-tests: Likewise.
24573         * modules/sys_time-tests: Likewise.
24574         * modules/sys_utsname-tests: Likewise.
24575         * modules/sysexits-tests: Likewise.
24576         * modules/time-tests: Likewise.
24577         * modules/trunc-tests: Likewise.
24578         * modules/truncf-tests: Likewise.
24579         * modules/truncl-tests: Likewise.
24580         * modules/tsearch-tests: Likewise.
24581         * modules/unistd-tests: Likewise.
24582         * modules/wchar-tests: Likewise.
24583         * modules/wctype-tests: Likewise.
24584
24585         tests: fix license on several tests
24586         * tests/test-des.c: Update to GPLv3+.
24587         * tests/test-flock.c: Likewise.
24588         * tests/test-fsync.c: Likewise.
24589         * tests/test-futimens.h: Likewise.
24590         * tests/test-gc-arcfour.c: Likewise.
24591         * tests/test-gc-arctwo.c: Likewise.
24592         * tests/test-gc-des.c: Likewise.
24593         * tests/test-gc-hmac-md5.c: Likewise.
24594         * tests/test-gc-hmac-sha1.c: Likewise.
24595         * tests/test-gc-md2.c: Likewise.
24596         * tests/test-gc-md4.c: Likewise.
24597         * tests/test-gc-md5.c: Likewise.
24598         * tests/test-gc-pbkdf2-sha1.c: Likewise.
24599         * tests/test-gc-rijndael.c: Likewise.
24600         * tests/test-gc-sha1.c: Likewise.
24601         * tests/test-gc.c: Likewise.
24602         * tests/test-getcwd.c: Likewise.
24603         * tests/test-link.c: Likewise.
24604         * tests/test-link.h: Likewise.
24605         * tests/test-lutimens.h: Likewise.
24606         * tests/test-md2.c: Likewise.
24607         * tests/test-md4.c: Likewise.
24608         * tests/test-mkdir.h: Likewise.
24609         * tests/test-rename.c: Likewise.
24610         * tests/test-rename.h: Likewise.
24611         * tests/test-safe-alloc.c: Likewise.
24612         * tests/test-utimens-common.h: Likewise.
24613         * tests/test-utimens.h: Likewise.
24614
24615         maint: sync license texts
24616         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
24617         * doc/gpl-3.0.texi: Revert copyright year update.
24618         * doc/lgpl-3.0.texi: Likewise.
24619
24620 2009-12-29  Jim Meyering  <meyering@redhat.com>
24621
24622         update nearly all FSF copyright year lists to include 2009
24623         The files named by the following are exempted:
24624             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
24625               test -f "$dst" && { echo "$dst"; continue; }
24626               test -d "$dst" || continue
24627               echo "$dst"/$(basename "$src")
24628             done > exempt
24629             git ls-files tests/unictype >> exempt
24630         In the remaining files, convert to all-interval notation if
24631         - there is already at least one year interval like 2000-2003
24632         - the file is maintained by me
24633         - the file is in lib/uni*/, where that style already prevails
24634         Otherwise, use update-copyright's default.
24635
24636 2009-12-29  Simon Josefsson  <simon@josefsson.org>
24637         and Eric Blake  <ebb9@byu.net>
24638
24639         tests: don't require debug system() to pass
24640         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
24641         * tests/test-rmdir.h (test_rmdir_func): Likewise.
24642         * tests/test-unlink.h (test_unlink_func): Likewise.
24643         * tests/test-fstatat.c (main): ...into callers.
24644         * tests/test-lstat.c (main): Likewise.
24645         * tests/test-rmdir.c (main): Likewise.
24646         * tests/test-unlink.c (main): Likewise.
24647         * tests/test-unlinkat.c (main): Likewise.
24648         * tests/test-areadlink-with-size.c (main): Don't require a
24649         debug-only system call to pass, aiding cross-testing to mingw.
24650         * tests/test-areadlink.c (main): Likewise.
24651         * tests/test-areadlinkat-with-size.c (main): Likewise.
24652         * tests/test-areadlinkat.c (main): Likewise.
24653         * tests/test-canonicalize-lgpl.c (main): Likewise.
24654         * tests/test-canonicalize.c (main): Likewise.
24655         * tests/test-chown.c (main): Likewise.
24656         * tests/test-fchownat.c (main): Likewise.
24657         * tests/test-lchown.c (main): Likewise.
24658         * tests/test-fdutimensat.c (main): Likewise.
24659         * tests/test-futimens.c (main): Likewise.
24660         * tests/test-link.c (main): Likewise.
24661         * tests/test-linkat.c (main): Likewise.
24662         * tests/test-mkdir.c (main): Likewise.
24663         * tests/test-mkdirat.c (main): Likewise.
24664         * tests/test-mkfifo.c (main): Likewise.
24665         * tests/test-mkfifoat.c (main): Likewise.
24666         * tests/test-mknod.c (main): Likewise.
24667         * tests/test-readlink.c (main): Likewise.
24668         * tests/test-remove.c (main): Likewise.
24669         * tests/test-rename.c (main): Likewise.
24670         * tests/test-renameat.c (main): Likewise.
24671         * tests/test-symlink.c (main): Likewise.
24672         * tests/test-symlinkat.c (main): Likewise.
24673         * tests/test-utimens.c (main): Likewise.
24674         * tests/test-utimensat.c (main): Likewise.
24675
24676 2009-12-29  Simon Josefsson  <simon@josefsson.org>
24677
24678         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
24679         on $(UNUSED_PARAMETER_H) to avoid build failure.
24680
24681 2009-12-28  Jim Meyering  <meyering@redhat.com>
24682
24683         update-copyright: you may specify a max. line length other than 72
24684         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
24685
24686         maint: use consistent FSF copyright line syntax
24687         * lib/posixtm.c: Add missing comma in FSF copyright line.
24688         * lib/posixtm.h: Likewise.
24689         * lib/getugroups.c: Add missing ", Inc.".
24690
24691         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
24692         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
24693         FSF copyright line.  Remove trailing blanks.
24694
24695 2009-12-28  Eric Blake  <ebb9@byu.net>
24696
24697         test-dup2: reduce dependencies
24698         * modules/cloexec (Configure.ac): Set witness.
24699         * modules/dup2-tests (Depends-on): Drop cloexec.
24700         * tests/test-dup2.c (main): Skip portion of test if cloexec module
24701         not present.
24702         Suggested by Bruno Haible.
24703
24704 2009-12-26  Bruno Haible  <bruno@clisp.org>
24705
24706         Remove an unneeded dependency.
24707         * modules/fseterr (Depends-on): Remove dup2.
24708
24709 2009-12-26  Eric Blake  <ebb9@byu.net>
24710
24711         tests: use macros.h in more places
24712         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
24713         (ASSERT_STREAM): Provide default of stderr.
24714         * tests/test-dirent-safer.c: Include macros.h, using alternate
24715         stream for assertions.
24716         * tests/test-dup-safer.c: Likewise.
24717         * tests/test-freopen-safer.c: Likewise.
24718         * tests/test-getopt.c: Likewise.
24719         * tests/test-openat-safer.c: Likewise.
24720         * tests/test-pipe.c: Likewise.
24721         * tests/test-popen-safer.c: Likewise.
24722         * modules/dirent-safer-tests (Files): Include macros.h.
24723         * modules/unistd-safer-tests (Files): Likewise.
24724         * modules/freopen-safer-tests (Files): Likewise.
24725         * modules/getopt-posix-tests (Files): Likewise.
24726         * modules/openat-safer-tests (Files): Likewise.
24727         * modules/pipe-tests (Files): Likewise.
24728
24729 2009-12-26  Bruno Haible  <bruno@clisp.org>
24730
24731         javacomp: Portability fix.
24732         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
24733         that it also works on Solaris.
24734
24735 2009-12-26  Bruno Haible  <bruno@clisp.org>
24736
24737         localename: Fix storage allocation of gl_locale_name_thread's result.
24738         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
24739         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
24740         all platforms that have 'uselocale'.
24741         (gl_locale_name_thread_unsafe): New function, extracted from
24742         gl_locale_name_thread.
24743         (gl_locale_name_thread): Call struniq on all platforms that have
24744         'uselocale'.
24745         * tests/test-localename.c (test_locale_name_thread): Check that the
24746         resulting strings are permanently allocated.
24747         * modules/localename-tests (Depends-on): Add strdup.
24748
24749 2009-12-26  Bruno Haible  <bruno@clisp.org>
24750
24751         * tests/test-localename.c (categories): Fill in the strings.
24752
24753 2009-12-26  Jim Meyering  <meyering@redhat.com>
24754
24755         isdir: complete the removal of m4/isdir.m4
24756         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
24757
24758         isdir: clean up, since at least grep still uses it
24759         * lib/isdir.c: Include "isdir.h".
24760         (S_ISDIR): Remove now-unneeded definition.
24761         * modules/isdir (Files): Add lib/isdir.h.
24762         * lib/isdir.h: New file, with declaration.
24763         * m4/isdir.m4: Remove file -- unneeded.
24764
24765 2009-12-25  Bruno Haible  <bruno@clisp.org>
24766
24767         selinux-h: Make generated .h files standalone.
24768         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
24769         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
24770         * lib/se-selinux.in.h: Likewise.
24771         * modules/selinux-h (Depends-on): Add unused-parameter.
24772         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
24773         selinux/selinux.h and selinux/context.h.
24774         Suggested by Eric Blake.
24775
24776 2009-12-25  Bruno Haible  <bruno@clisp.org>
24777
24778         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
24779         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
24780         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
24781         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
24782         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
24783
24784 2009-12-24  Bruno Haible  <bruno@clisp.org>
24785
24786         openat: Fix warning.
24787         * lib/openat-proc.c: Include <unistd.h>.
24788
24789 2009-12-24  Bruno Haible  <bruno@clisp.org>
24790
24791         New module 'unused-parameter'.
24792         * build-aux/unused-parameter.h: New file, extracted from earlier
24793         gnulib-common.m4.
24794         * modules/unused-parameter: New file.
24795         * lib/unistr.h: Include unused-parameter.h.
24796         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
24797         _GL_UNUSED.
24798         * modules/unistr/base (Depends-on): Add unused-parameter.
24799
24800 2009-12-24  Bruno Haible  <bruno@clisp.org>
24801
24802         Add missing dependencies to 'extensions' module.
24803         * m4/extensions.m4: Add comment.
24804         * modules/accept4 (Depends-on): Add extensions.
24805         * modules/dup3 (Depends-on): Likewise.
24806         * modules/fcntl (Depends-on): Likewise.
24807         * modules/futimens (Depends-on): Likewise.
24808         * modules/mknod (Depends-on): Likewise.
24809         * modules/pipe2 (Depends-on): Likewise.
24810         * modules/stat-time (Depends-on): Likewise.
24811         * modules/strcasestr-simple (Depends-on): Likewise.
24812         * modules/strsignal (Depends-on): Likewise.
24813         * modules/utimensat (Depends-on): Likewise.
24814         * modules/localcharset (Depends-on): Likewise. Needed because of
24815         gl_FCNTL_O_FLAGS.
24816         * modules/wcrtomb (Depends-on): Likewise. Needed because of
24817         AC_TYPE_MBSTATE_T.
24818         * modules/wcsnrtombs (Depends-on): Likewise.
24819         * modules/wcsrtombs (Depends-on): Likewise.
24820
24821 2009-12-24  Bruno Haible  <bruno@clisp.org>
24822
24823         binary-io: Avoid gcc warning due to SET_BINARY.
24824         * lib/binary-io.h (SET_BINARY): Cast the result to void.
24825         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
24826
24827 2009-12-24  Bruno Haible  <bruno@clisp.org>
24828
24829         Avoid future namespace pollution on glibc systems.
24830         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
24831         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
24832         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
24833         glibc systems.
24834
24835 2009-12-24  Bruno Haible  <bruno@clisp.org>
24836
24837         Refactor common macros used in tests.
24838         * tests/macros.h: New file.
24839         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
24840         and/or <stdlib.h>, if appropriate.
24841         (ASSERT, SIZEOF): Remove macros.
24842         * tests/test-areadlink-with-size.c: Likewise.
24843         * tests/test-areadlinkat.c: Likewise.
24844         * tests/test-areadlinkat-with-size.c: Likewise.
24845         * tests/test-argmatch.c: Likewise.
24846         * tests/test-argv-iter.c: Likewise.
24847         * tests/test-array-mergesort.c: Likewise.
24848         * tests/test-array_list.c: Likewise.
24849         * tests/test-array_oset.c: Likewise.
24850         * tests/test-avltree_list.c: Likewise.
24851         * tests/test-avltree_oset.c: Likewise.
24852         * tests/test-avltreehash_list.c: Likewise.
24853         * tests/test-base64.c: Likewise.
24854         * tests/test-binary-io.c: Likewise.
24855         * tests/test-bitrotate.c: Likewise.
24856         * tests/test-btowc.c: Likewise.
24857         * tests/test-byteswap.c: Likewise.
24858         * tests/test-c-ctype.c: Likewise.
24859         * tests/test-c-stack.c: Likewise.
24860         * tests/test-c-strcasecmp.c: Likewise.
24861         * tests/test-c-strcasestr.c: Likewise.
24862         * tests/test-c-strncasecmp.c: Likewise.
24863         * tests/test-c-strstr.c: Likewise.
24864         * tests/test-canonicalize-lgpl.c: Likewise.
24865         * tests/test-canonicalize.c: Likewise.
24866         * tests/test-carray_list.c: Likewise.
24867         * tests/test-ceilf1.c: Likewise.
24868         * tests/test-ceilf2.c: Likewise.
24869         * tests/test-ceill.c: Likewise.
24870         * tests/test-chown.c: Likewise.
24871         * tests/test-cloexec.c: Likewise.
24872         * tests/test-copy-acl.c: Likewise.
24873         * tests/test-copy-file.c: Likewise.
24874         * tests/test-count-one-bits.c: Likewise.
24875         * tests/test-dprintf-posix.c: Likewise.
24876         * tests/test-dup2.c: Likewise.
24877         * tests/test-dup3.c: Likewise.
24878         * tests/test-duplocale.c: Likewise.
24879         * tests/test-fbufmode.c: Likewise.
24880         * tests/test-fchdir.c: Likewise.
24881         * tests/test-fchownat.c: Likewise.
24882         * tests/test-fcntl-safer.c: Likewise.
24883         * tests/test-fcntl.c: Likewise.
24884         * tests/test-fdopendir.c: Likewise.
24885         * tests/test-fdutimensat.c: Likewise.
24886         * tests/test-fflush2.c: Likewise.
24887         * tests/test-file-has-acl.c: Likewise.
24888         * tests/test-filevercmp.c: Likewise.
24889         * tests/test-flock.c: Likewise.
24890         * tests/test-floorf1.c: Likewise.
24891         * tests/test-floorf2.c: Likewise.
24892         * tests/test-floorl.c: Likewise.
24893         * tests/test-fnmatch.c: Likewise.
24894         * tests/test-fopen.h: Likewise.
24895         * tests/test-fpending.c: Likewise.
24896         * tests/test-fprintf-posix.c: Likewise.
24897         * tests/test-fpurge.c: Likewise.
24898         * tests/test-freadable.c: Likewise.
24899         * tests/test-freadahead.c: Likewise.
24900         * tests/test-freading.c: Likewise.
24901         * tests/test-freadptr.c: Likewise.
24902         * tests/test-freadptr2.c: Likewise.
24903         * tests/test-freadseek.c: Likewise.
24904         * tests/test-freopen.c: Likewise.
24905         * tests/test-frexp.c: Likewise.
24906         * tests/test-frexpl.c: Likewise.
24907         * tests/test-fseek.c: Likewise.
24908         * tests/test-fseeko.c: Likewise.
24909         * tests/test-fstatat.c: Likewise.
24910         * tests/test-fstrcmp.c: Likewise.
24911         * tests/test-fsync.c: Likewise.
24912         * tests/test-ftell.c: Likewise.
24913         * tests/test-ftello.c: Likewise.
24914         * tests/test-func.c: Likewise.
24915         * tests/test-futimens.c: Likewise.
24916         * tests/test-fwritable.c: Likewise.
24917         * tests/test-fwriting.c: Likewise.
24918         * tests/test-getcwd.c: Likewise.
24919         * tests/test-getdate.c: Likewise.
24920         * tests/test-getdelim.c: Likewise.
24921         * tests/test-getdtablesize.c: Likewise.
24922         * tests/test-getgroups.c: Likewise.
24923         * tests/test-getline.c: Likewise.
24924         * tests/test-getndelim2.c: Likewise.
24925         * tests/test-glob.c: Likewise.
24926         * tests/test-hash.c: Likewise.
24927         * tests/test-i-ring.c: Likewise.
24928         * tests/test-iconv-utf.c: Likewise.
24929         * tests/test-iconv.c: Likewise.
24930         * tests/test-idpriv-drop.c: Likewise.
24931         * tests/test-idpriv-droptemp.c: Likewise.
24932         * tests/test-inet_ntop.c: Likewise.
24933         * tests/test-inet_pton.c: Likewise.
24934         * tests/test-isblank.c: Likewise.
24935         * tests/test-isfinite.c: Likewise.
24936         * tests/test-isinf.c: Likewise.
24937         * tests/test-isnan.c: Likewise.
24938         * tests/test-isnand.h: Likewise.
24939         * tests/test-isnanf.h: Likewise.
24940         * tests/test-isnanl.h: Likewise.
24941         * tests/test-lchown.c: Likewise.
24942         * tests/test-ldexpl.c: Likewise.
24943         * tests/test-link.c: Likewise.
24944         * tests/test-linkat.c: Likewise.
24945         * tests/test-linked_list.c: Likewise.
24946         * tests/test-linkedhash_list.c: Likewise.
24947         * tests/test-localename.c: Likewise.
24948         * tests/test-lseek.c: Likewise.
24949         * tests/test-lstat.c: Likewise.
24950         * tests/test-mbmemcasecmp.c: Likewise.
24951         * tests/test-mbmemcasecoll.c: Likewise.
24952         * tests/test-mbrtowc.c: Likewise.
24953         * tests/test-mbscasecmp.c: Likewise.
24954         * tests/test-mbscasestr1.c: Likewise.
24955         * tests/test-mbscasestr2.c: Likewise.
24956         * tests/test-mbscasestr3.c: Likewise.
24957         * tests/test-mbscasestr4.c: Likewise.
24958         * tests/test-mbschr.c: Likewise.
24959         * tests/test-mbscspn.c: Likewise.
24960         * tests/test-mbsinit.c: Likewise.
24961         * tests/test-mbsncasecmp.c: Likewise.
24962         * tests/test-mbsnrtowcs.c: Likewise.
24963         * tests/test-mbspbrk.c: Likewise.
24964         * tests/test-mbspcasecmp.c: Likewise.
24965         * tests/test-mbsrchr.c: Likewise.
24966         * tests/test-mbsrtowcs.c: Likewise.
24967         * tests/test-mbsspn.c: Likewise.
24968         * tests/test-mbsstr1.c: Likewise.
24969         * tests/test-mbsstr2.c: Likewise.
24970         * tests/test-mbsstr3.c: Likewise.
24971         * tests/test-memchr.c: Likewise.
24972         * tests/test-memchr2.c: Likewise.
24973         * tests/test-memcmp.c: Likewise.
24974         * tests/test-memmem.c: Likewise.
24975         * tests/test-memrchr.c: Likewise.
24976         * tests/test-mkdir.c: Likewise.
24977         * tests/test-mkdirat.c: Likewise.
24978         * tests/test-mkfifo.c: Likewise.
24979         * tests/test-mkfifoat.c: Likewise.
24980         * tests/test-mknod.c: Likewise.
24981         * tests/test-nanosleep.c: Likewise.
24982         * tests/test-nl_langinfo.c: Likewise.
24983         * tests/test-obstack-printf.c: Likewise.
24984         * tests/test-open.c: Likewise.
24985         * tests/test-openat.c: Likewise.
24986         * tests/test-pipe-filter-gi1.c: Likewise.
24987         * tests/test-pipe-filter-gi2-main.c: Likewise.
24988         * tests/test-pipe-filter-ii1.c: Likewise.
24989         * tests/test-pipe-filter-ii2-main.c: Likewise.
24990         * tests/test-pipe2.c: Likewise.
24991         * tests/test-popen.h: Likewise.
24992         * tests/test-posixtm.c: Likewise.
24993         * tests/test-pread.c: Likewise.
24994         * tests/test-printf-frexp.c: Likewise.
24995         * tests/test-printf-frexpl.c: Likewise.
24996         * tests/test-printf-posix.c: Likewise.
24997         * tests/test-priv-set.c: Likewise.
24998         * tests/test-quotearg.c: Likewise.
24999         * tests/test-random_r.c: Likewise.
25000         * tests/test-rawmemchr.c: Likewise.
25001         * tests/test-rbtree_list.c: Likewise.
25002         * tests/test-rbtree_oset.c: Likewise.
25003         * tests/test-rbtreehash_list.c: Likewise.
25004         * tests/test-readlink.c: Likewise.
25005         * tests/test-remove.c: Likewise.
25006         * tests/test-rename.c: Likewise.
25007         * tests/test-renameat.c: Likewise.
25008         * tests/test-rmdir.c: Likewise.
25009         * tests/test-round1.c: Likewise.
25010         * tests/test-roundf1.c: Likewise.
25011         * tests/test-roundl.c: Likewise.
25012         * tests/test-safe-alloc.c: Likewise.
25013         * tests/test-sameacls.c: Likewise.
25014         * tests/test-set-mode-acl.c: Likewise.
25015         * tests/test-setenv.c: Likewise.
25016         * tests/test-sigaction.c: Likewise.
25017         * tests/test-signbit.c: Likewise.
25018         * tests/test-sleep.c: Likewise.
25019         * tests/test-snprintf-posix.c: Likewise.
25020         * tests/test-snprintf.c: Likewise.
25021         * tests/test-sprintf-posix.c: Likewise.
25022         * tests/test-stat-time.c: Likewise.
25023         * tests/test-stat.c: Likewise.
25024         * tests/test-strcasestr.c: Likewise.
25025         * tests/test-strchrnul.c: Likewise.
25026         * tests/test-strerror.c: Likewise.
25027         * tests/test-striconv.c: Likewise.
25028         * tests/test-striconveh.c: Likewise.
25029         * tests/test-striconveha.c: Likewise.
25030         * tests/test-strsignal.c: Likewise.
25031         * tests/test-strstr.c: Likewise.
25032         * tests/test-strtod.c: Likewise.
25033         * tests/test-strverscmp.c: Likewise.
25034         * tests/test-symlink.c: Likewise.
25035         * tests/test-symlinkat.c: Likewise.
25036         * tests/test-trunc1.c: Likewise.
25037         * tests/test-trunc2.c: Likewise.
25038         * tests/test-truncf1.c: Likewise.
25039         * tests/test-truncf2.c: Likewise.
25040         * tests/test-truncl.c: Likewise.
25041         * tests/test-uname.c: Likewise.
25042         * tests/test-unlink.c: Likewise.
25043         * tests/test-unlinkat.c: Likewise.
25044         * tests/test-unsetenv.c: Likewise.
25045         * tests/test-usleep.c: Likewise.
25046         * tests/test-utimens.c: Likewise.
25047         * tests/test-utimensat.c: Likewise.
25048         * tests/test-vasnprintf-posix.c: Likewise.
25049         * tests/test-vasnprintf-posix2.c: Likewise.
25050         * tests/test-vasnprintf.c: Likewise.
25051         * tests/test-vasprintf-posix.c: Likewise.
25052         * tests/test-vasprintf.c: Likewise.
25053         * tests/test-vdprintf-posix.c: Likewise.
25054         * tests/test-vfprintf-posix.c: Likewise.
25055         * tests/test-vprintf-posix.c: Likewise.
25056         * tests/test-vsnprintf-posix.c: Likewise.
25057         * tests/test-vsnprintf.c: Likewise.
25058         * tests/test-vsprintf-posix.c: Likewise.
25059         * tests/test-wcrtomb.c: Likewise.
25060         * tests/test-wcsnrtombs.c: Likewise.
25061         * tests/test-wcsrtombs.c: Likewise.
25062         * tests/test-wctype.c: Likewise.
25063         * tests/test-wcwidth.c: Likewise.
25064         * tests/test-xfprintf-posix.c: Likewise.
25065         * tests/test-xmemdup0.c: Likewise.
25066         * tests/test-xprintf-posix.c: Likewise.
25067         * tests/test-xvasprintf.c: Likewise.
25068         * tests/unicase/test-locale-language.c: Likewise.
25069         * tests/unicase/test-mapping-part1.h: Likewise.
25070         * tests/unicase/test-predicate-part1.h: Likewise.
25071         * tests/unicase/test-u8-casecmp.c: Likewise.
25072         * tests/unicase/test-u8-casecoll.c: Likewise.
25073         * tests/unicase/test-u8-casefold.c: Likewise.
25074         * tests/unicase/test-u8-is-cased.c: Likewise.
25075         * tests/unicase/test-u8-is-casefolded.c: Likewise.
25076         * tests/unicase/test-u8-is-lowercase.c: Likewise.
25077         * tests/unicase/test-u8-is-titlecase.c: Likewise.
25078         * tests/unicase/test-u8-is-uppercase.c: Likewise.
25079         * tests/unicase/test-u8-tolower.c: Likewise.
25080         * tests/unicase/test-u8-totitle.c: Likewise.
25081         * tests/unicase/test-u8-toupper.c: Likewise.
25082         * tests/unicase/test-u16-casecmp.c: Likewise.
25083         * tests/unicase/test-u16-casecoll.c: Likewise.
25084         * tests/unicase/test-u16-casefold.c: Likewise.
25085         * tests/unicase/test-u16-is-cased.c: Likewise.
25086         * tests/unicase/test-u16-is-casefolded.c: Likewise.
25087         * tests/unicase/test-u16-is-lowercase.c: Likewise.
25088         * tests/unicase/test-u16-is-titlecase.c: Likewise.
25089         * tests/unicase/test-u16-is-uppercase.c: Likewise.
25090         * tests/unicase/test-u16-tolower.c: Likewise.
25091         * tests/unicase/test-u16-totitle.c: Likewise.
25092         * tests/unicase/test-u16-toupper.c: Likewise.
25093         * tests/unicase/test-u32-casecmp.c: Likewise.
25094         * tests/unicase/test-u32-casecoll.c: Likewise.
25095         * tests/unicase/test-u32-casefold.c: Likewise.
25096         * tests/unicase/test-u32-is-cased.c: Likewise.
25097         * tests/unicase/test-u32-is-casefolded.c: Likewise.
25098         * tests/unicase/test-u32-is-lowercase.c: Likewise.
25099         * tests/unicase/test-u32-is-titlecase.c: Likewise.
25100         * tests/unicase/test-u32-is-uppercase.c: Likewise.
25101         * tests/unicase/test-u32-tolower.c: Likewise.
25102         * tests/unicase/test-u32-totitle.c: Likewise.
25103         * tests/unicase/test-u32-toupper.c: Likewise.
25104         * tests/unicase/test-ulc-casecmp.c: Likewise.
25105         * tests/unicase/test-ulc-casecoll.c: Likewise.
25106         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
25107         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
25108         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
25109         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
25110         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
25111         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
25112         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
25113         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
25114         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
25115         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
25116         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
25117         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
25118         * tests/unictype/test-bidi_byname.c: Likewise.
25119         * tests/unictype/test-bidi_name.c: Likewise.
25120         * tests/unictype/test-bidi_of.c: Likewise.
25121         * tests/unictype/test-bidi_test.c: Likewise.
25122         * tests/unictype/test-block_list.c: Likewise.
25123         * tests/unictype/test-block_of.c: Likewise.
25124         * tests/unictype/test-block_test.c: Likewise.
25125         * tests/unictype/test-categ_and.c: Likewise.
25126         * tests/unictype/test-categ_and_not.c: Likewise.
25127         * tests/unictype/test-categ_byname.c: Likewise.
25128         * tests/unictype/test-categ_name.c: Likewise.
25129         * tests/unictype/test-categ_none.c: Likewise.
25130         * tests/unictype/test-categ_of.c: Likewise.
25131         * tests/unictype/test-categ_or.c: Likewise.
25132         * tests/unictype/test-categ_test_withtable.c: Likewise.
25133         * tests/unictype/test-combining.c: Likewise.
25134         * tests/unictype/test-decdigit.c: Likewise.
25135         * tests/unictype/test-digit.c: Likewise.
25136         * tests/unictype/test-mirror.c: Likewise.
25137         * tests/unictype/test-numeric.c: Likewise.
25138         * tests/unictype/test-pr_byname.c: Likewise.
25139         * tests/unictype/test-pr_test.c: Likewise.
25140         * tests/unictype/test-predicate-part1.h: Likewise.
25141         * tests/unictype/test-scripts.c: Likewise.
25142         * tests/unictype/test-sy_c_ident.c: Likewise.
25143         * tests/unictype/test-sy_java_ident.c: Likewise.
25144         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
25145         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
25146         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
25147         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
25148         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
25149         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
25150         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
25151         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
25152         * tests/uninorm/test-canonical-decomposition.c: Likewise.
25153         * tests/uninorm/test-compat-decomposition.c: Likewise.
25154         * tests/uninorm/test-composition.c: Likewise.
25155         * tests/uninorm/test-decomposing-form.c: Likewise.
25156         * tests/uninorm/test-decomposition.c: Likewise.
25157         * tests/uninorm/test-u8-nfc.c: Likewise.
25158         * tests/uninorm/test-u8-nfd.c: Likewise.
25159         * tests/uninorm/test-u8-nfkc.c: Likewise.
25160         * tests/uninorm/test-u8-nfkd.c: Likewise.
25161         * tests/uninorm/test-u8-normcmp.c: Likewise.
25162         * tests/uninorm/test-u8-normcoll.c: Likewise.
25163         * tests/uninorm/test-u16-nfc.c: Likewise.
25164         * tests/uninorm/test-u16-nfd.c: Likewise.
25165         * tests/uninorm/test-u16-nfkc.c: Likewise.
25166         * tests/uninorm/test-u16-nfkd.c: Likewise.
25167         * tests/uninorm/test-u16-normcmp.c: Likewise.
25168         * tests/uninorm/test-u16-normcoll.c: Likewise.
25169         * tests/uninorm/test-u32-nfc.c: Likewise.
25170         * tests/uninorm/test-u32-nfd.c: Likewise.
25171         * tests/uninorm/test-u32-nfkc.c: Likewise.
25172         * tests/uninorm/test-u32-nfkd.c: Likewise.
25173         * tests/uninorm/test-u32-normalize-big.c: Likewise.
25174         * tests/uninorm/test-u32-normcmp.c: Likewise.
25175         * tests/uninorm/test-u32-normcoll.c: Likewise.
25176         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
25177         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
25178         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
25179         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
25180         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
25181         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
25182         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
25183         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
25184         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
25185         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
25186         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
25187         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
25188         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
25189         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
25190         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
25191         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
25192         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
25193         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
25194         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
25195         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
25196         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
25197         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
25198         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
25199         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
25200         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
25201         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
25202         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
25203         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
25204         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
25205         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
25206         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
25207         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
25208         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
25209         * tests/uniwidth/test-u8-strwidth.c: Likewise.
25210         * tests/uniwidth/test-u8-width.c: Likewise.
25211         * tests/uniwidth/test-u16-strwidth.c: Likewise.
25212         * tests/uniwidth/test-u16-width.c: Likewise.
25213         * tests/uniwidth/test-u32-strwidth.c: Likewise.
25214         * tests/uniwidth/test-u32-width.c: Likewise.
25215         * tests/uniwidth/test-uc_width.c: Likewise.
25216         * tests/uniwidth/test-uc_width2.c: Likewise.
25217         * modules/acl-tests (Files): Add tests/macros.h.
25218         * modules/areadlink-tests (Files): Likewise.
25219         * modules/areadlink-with-size-tests (Files): Likewise.
25220         * modules/areadlinkat-tests (Files): Likewise.
25221         * modules/areadlinkat-with-size-tests (Files): Likewise.
25222         * modules/argmatch-tests (Files): Likewise.
25223         * modules/argv-iter-tests (Files): Likewise.
25224         * modules/array-list-tests (Files): Likewise.
25225         * modules/array-mergesort-tests (Files): Likewise.
25226         * modules/array-oset-tests (Files): Likewise.
25227         * modules/avltree-list-tests (Files): Likewise.
25228         * modules/avltree-oset-tests (Files): Likewise.
25229         * modules/avltreehash-list-tests (Files): Likewise.
25230         * modules/base64-tests (Files): Likewise.
25231         * modules/binary-io-tests (Files): Likewise.
25232         * modules/bitrotate-tests (Files): Likewise.
25233         * modules/btowc-tests (Files): Likewise.
25234         * modules/byteswap-tests (Files): Likewise.
25235         * modules/c-ctype-tests (Files): Likewise.
25236         * modules/c-stack-tests (Files): Likewise.
25237         * modules/c-strcase-tests (Files): Likewise.
25238         * modules/c-strcasestr-tests (Files): Likewise.
25239         * modules/c-strstr-tests (Files): Likewise.
25240         * modules/canonicalize-lgpl-tests (Files): Likewise.
25241         * modules/canonicalize-tests (Files): Likewise.
25242         * modules/carray-list-tests (Files): Likewise.
25243         * modules/ceilf-tests (Files): Likewise.
25244         * modules/ceill-tests (Files): Likewise.
25245         * modules/chown-tests (Files): Likewise.
25246         * modules/cloexec-tests (Files): Likewise.
25247         * modules/copy-file-tests (Files): Likewise.
25248         * modules/count-one-bits-tests (Files): Likewise.
25249         * modules/dprintf-posix-tests (Files): Likewise.
25250         * modules/dup2-tests (Files): Likewise.
25251         * modules/dup3-tests (Files): Likewise.
25252         * modules/duplocale-tests (Files): Likewise.
25253         * modules/fbufmode-tests (Files): Likewise.
25254         * modules/fchdir-tests (Files): Likewise.
25255         * modules/fcntl-safer-tests (Files): Likewise.
25256         * modules/fcntl-tests (Files): Likewise.
25257         * modules/fdopendir-tests (Files): Likewise.
25258         * modules/fdutimensat-tests (Files): Likewise.
25259         * modules/fflush-tests (Files): Likewise.
25260         * modules/filevercmp-tests (Files): Likewise.
25261         * modules/flock-tests (Files): Likewise.
25262         * modules/floorf-tests (Files): Likewise.
25263         * modules/floorl-tests (Files): Likewise.
25264         * modules/fnmatch-tests (Files): Likewise.
25265         * modules/fopen-safer-tests (Files): Likewise.
25266         * modules/fopen-tests (Files): Likewise.
25267         * modules/fpending-tests (Files): Likewise.
25268         * modules/fprintf-posix-tests (Files): Likewise.
25269         * modules/fpurge-tests (Files): Likewise.
25270         * modules/freadable-tests (Files): Likewise.
25271         * modules/freadahead-tests (Files): Likewise.
25272         * modules/freading-tests (Files): Likewise.
25273         * modules/freadptr-tests (Files): Likewise.
25274         * modules/freadseek-tests (Files): Likewise.
25275         * modules/freopen-tests (Files): Likewise.
25276         * modules/frexp-nolibm-tests (Files): Likewise.
25277         * modules/frexp-tests (Files): Likewise.
25278         * modules/frexpl-nolibm-tests (Files): Likewise.
25279         * modules/frexpl-tests (Files): Likewise.
25280         * modules/fseek-tests (Files): Likewise.
25281         * modules/fseeko-tests (Files): Likewise.
25282         * modules/fstrcmp-tests (Files): Likewise.
25283         * modules/fsync-tests (Files): Likewise.
25284         * modules/ftell-tests (Files): Likewise.
25285         * modules/ftello-tests (Files): Likewise.
25286         * modules/func-tests (Files): Likewise.
25287         * modules/futimens-tests (Files): Likewise.
25288         * modules/fwritable-tests (Files): Likewise.
25289         * modules/fwriting-tests (Files): Likewise.
25290         * modules/getcwd-tests (Files): Likewise.
25291         * modules/getdate-tests (Files): Likewise.
25292         * modules/getdelim-tests (Files): Likewise.
25293         * modules/getdtablesize-tests (Files): Likewise.
25294         * modules/getgroups-tests (Files): Likewise.
25295         * modules/getline-tests (Files): Likewise.
25296         * modules/getndelim2-tests (Files): Likewise.
25297         * modules/glob-tests (Files): Likewise.
25298         * modules/hash-tests (Files): Likewise.
25299         * modules/i-ring-tests (Files): Likewise.
25300         * modules/iconv-tests (Files): Likewise.
25301         * modules/iconv_open-utf-tests (Files): Likewise.
25302         * modules/idpriv-drop-tests (Files): Likewise.
25303         * modules/idpriv-droptemp-tests (Files): Likewise.
25304         * modules/inet_ntop-tests (Files): Likewise.
25305         * modules/inet_pton-tests (Files): Likewise.
25306         * modules/isblank-tests (Files): Likewise.
25307         * modules/isfinite-tests (Files): Likewise.
25308         * modules/isinf-tests (Files): Likewise.
25309         * modules/isnan-tests (Files): Likewise.
25310         * modules/isnand-nolibm-tests (Files): Likewise.
25311         * modules/isnand-tests (Files): Likewise.
25312         * modules/isnanf-nolibm-tests (Files): Likewise.
25313         * modules/isnanf-tests (Files): Likewise.
25314         * modules/isnanl-nolibm-tests (Files): Likewise.
25315         * modules/isnanl-tests (Files): Likewise.
25316         * modules/lchown-tests (Files): Likewise.
25317         * modules/ldexpl-tests (Files): Likewise.
25318         * modules/link-tests (Files): Likewise.
25319         * modules/linkat-tests (Files): Likewise.
25320         * modules/linked-list-tests (Files): Likewise.
25321         * modules/linkedhash-list-tests (Files): Likewise.
25322         * modules/localename-tests (Files): Likewise.
25323         * modules/lseek-tests (Files): Likewise.
25324         * modules/lstat-tests (Files): Likewise.
25325         * modules/mbmemcasecmp-tests (Files): Likewise.
25326         * modules/mbmemcasecoll-tests (Files): Likewise.
25327         * modules/mbrtowc-tests (Files): Likewise.
25328         * modules/mbscasecmp-tests (Files): Likewise.
25329         * modules/mbscasestr-tests (Files): Likewise.
25330         * modules/mbschr-tests (Files): Likewise.
25331         * modules/mbscspn-tests (Files): Likewise.
25332         * modules/mbsinit-tests (Files): Likewise.
25333         * modules/mbsncasecmp-tests (Files): Likewise.
25334         * modules/mbsnrtowcs-tests (Files): Likewise.
25335         * modules/mbspbrk-tests (Files): Likewise.
25336         * modules/mbspcasecmp-tests (Files): Likewise.
25337         * modules/mbsrchr-tests (Files): Likewise.
25338         * modules/mbsrtowcs-tests (Files): Likewise.
25339         * modules/mbsspn-tests (Files): Likewise.
25340         * modules/mbsstr-tests (Files): Likewise.
25341         * modules/memchr-tests (Files): Likewise.
25342         * modules/memchr2-tests (Files): Likewise.
25343         * modules/memcmp-tests (Files): Likewise.
25344         * modules/memmem-tests (Files): Likewise.
25345         * modules/memrchr-tests (Files): Likewise.
25346         * modules/mkdir-tests (Files): Likewise.
25347         * modules/mkfifo-tests (Files): Likewise.
25348         * modules/mkfifoat-tests (Files): Likewise.
25349         * modules/mknod-tests (Files): Likewise.
25350         * modules/nanosleep-tests (Files): Likewise.
25351         * modules/nl_langinfo-tests (Files): Likewise.
25352         * modules/obstack-printf-tests (Files): Likewise.
25353         * modules/open-tests (Files): Likewise.
25354         * modules/openat-tests (Files): Likewise.
25355         * modules/pipe-filter-gi-tests (Files): Likewise.
25356         * modules/pipe-filter-ii-tests (Files): Likewise.
25357         * modules/pipe2-tests (Files): Likewise.
25358         * modules/popen-safer-tests (Files): Likewise.
25359         * modules/popen-tests (Files): Likewise.
25360         * modules/posixtm-tests (Files): Likewise.
25361         * modules/pread-tests (Files): Likewise.
25362         * modules/printf-frexp-tests (Files): Likewise.
25363         * modules/printf-frexpl-tests (Files): Likewise.
25364         * modules/printf-posix-tests (Files): Likewise.
25365         * modules/priv-set-tests (Files): Likewise.
25366         * modules/quotearg-tests (Files): Likewise.
25367         * modules/random_r-tests (Files): Likewise.
25368         * modules/rawmemchr-tests (Files): Likewise.
25369         * modules/rbtree-list-tests (Files): Likewise.
25370         * modules/rbtree-oset-tests (Files): Likewise.
25371         * modules/rbtreehash-list-tests (Files): Likewise.
25372         * modules/readlink-tests (Files): Likewise.
25373         * modules/remove-tests (Files): Likewise.
25374         * modules/rename-tests (Files): Likewise.
25375         * modules/renameat-tests (Files): Likewise.
25376         * modules/rmdir-tests (Files): Likewise.
25377         * modules/round-tests (Files): Likewise.
25378         * modules/roundf-tests (Files): Likewise.
25379         * modules/roundl-tests (Files): Likewise.
25380         * modules/safe-alloc-tests (Files): Likewise.
25381         * modules/setenv-tests (Files): Likewise.
25382         * modules/sigaction-tests (Files): Likewise.
25383         * modules/signbit-tests (Files): Likewise.
25384         * modules/sleep-tests (Files): Likewise.
25385         * modules/snprintf-posix-tests (Files): Likewise.
25386         * modules/snprintf-tests (Files): Likewise.
25387         * modules/sprintf-posix-tests (Files): Likewise.
25388         * modules/stat-tests (Files): Likewise.
25389         * modules/stat-time-tests (Files): Likewise.
25390         * modules/strcasestr-tests (Files): Likewise.
25391         * modules/strchrnul-tests (Files): Likewise.
25392         * modules/strerror-tests (Files): Likewise.
25393         * modules/striconv-tests (Files): Likewise.
25394         * modules/striconveh-tests (Files): Likewise.
25395         * modules/striconveha-tests (Files): Likewise.
25396         * modules/strsignal-tests (Files): Likewise.
25397         * modules/strstr-tests (Files): Likewise.
25398         * modules/strtod-tests (Files): Likewise.
25399         * modules/strverscmp-tests (Files): Likewise.
25400         * modules/symlink-tests (Files): Likewise.
25401         * modules/symlinkat-tests (Files): Likewise.
25402         * modules/trunc-tests (Files): Likewise.
25403         * modules/truncf-tests (Files): Likewise.
25404         * modules/truncl-tests (Files): Likewise.
25405         * modules/uname-tests (Files): Likewise.
25406         * modules/unicase/cased-tests (Files): Likewise.
25407         * modules/unicase/ignorable-tests (Files): Likewise.
25408         * modules/unicase/locale-language-tests (Files): Likewise.
25409         * modules/unicase/tolower-tests (Files): Likewise.
25410         * modules/unicase/totitle-tests (Files): Likewise.
25411         * modules/unicase/toupper-tests (Files): Likewise.
25412         * modules/unicase/u8-casecmp-tests (Files): Likewise.
25413         * modules/unicase/u8-casecoll-tests (Files): Likewise.
25414         * modules/unicase/u8-casefold-tests (Files): Likewise.
25415         * modules/unicase/u8-is-cased-tests (Files): Likewise.
25416         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
25417         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
25418         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
25419         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
25420         * modules/unicase/u8-tolower-tests (Files): Likewise.
25421         * modules/unicase/u8-totitle-tests (Files): Likewise.
25422         * modules/unicase/u8-toupper-tests (Files): Likewise.
25423         * modules/unicase/u16-casecmp-tests (Files): Likewise.
25424         * modules/unicase/u16-casecoll-tests (Files): Likewise.
25425         * modules/unicase/u16-casefold-tests (Files): Likewise.
25426         * modules/unicase/u16-is-cased-tests (Files): Likewise.
25427         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
25428         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
25429         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
25430         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
25431         * modules/unicase/u16-tolower-tests (Files): Likewise.
25432         * modules/unicase/u16-totitle-tests (Files): Likewise.
25433         * modules/unicase/u16-toupper-tests (Files): Likewise.
25434         * modules/unicase/u32-casecmp-tests (Files): Likewise.
25435         * modules/unicase/u32-casecoll-tests (Files): Likewise.
25436         * modules/unicase/u32-casefold-tests (Files): Likewise.
25437         * modules/unicase/u32-is-cased-tests (Files): Likewise.
25438         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
25439         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
25440         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
25441         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
25442         * modules/unicase/u32-tolower-tests (Files): Likewise.
25443         * modules/unicase/u32-totitle-tests (Files): Likewise.
25444         * modules/unicase/u32-toupper-tests (Files): Likewise.
25445         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
25446         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
25447         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
25448         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
25449         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
25450         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
25451         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
25452         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
25453         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
25454         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
25455         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
25456         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
25457         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
25458         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
25459         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
25460         * modules/unictype/bidicategory-name-tests (Files): Likewise.
25461         * modules/unictype/bidicategory-of-tests (Files): Likewise.
25462         * modules/unictype/bidicategory-test-tests (Files): Likewise.
25463         * modules/unictype/block-list-tests (Files): Likewise.
25464         * modules/unictype/block-of-tests (Files): Likewise.
25465         * modules/unictype/block-test-tests (Files): Likewise.
25466         * modules/unictype/category-C-tests (Files): Likewise.
25467         * modules/unictype/category-Cc-tests (Files): Likewise.
25468         * modules/unictype/category-Cf-tests (Files): Likewise.
25469         * modules/unictype/category-Cn-tests (Files): Likewise.
25470         * modules/unictype/category-Co-tests (Files): Likewise.
25471         * modules/unictype/category-Cs-tests (Files): Likewise.
25472         * modules/unictype/category-L-tests (Files): Likewise.
25473         * modules/unictype/category-Ll-tests (Files): Likewise.
25474         * modules/unictype/category-Lm-tests (Files): Likewise.
25475         * modules/unictype/category-Lo-tests (Files): Likewise.
25476         * modules/unictype/category-Lt-tests (Files): Likewise.
25477         * modules/unictype/category-Lu-tests (Files): Likewise.
25478         * modules/unictype/category-M-tests (Files): Likewise.
25479         * modules/unictype/category-Mc-tests (Files): Likewise.
25480         * modules/unictype/category-Me-tests (Files): Likewise.
25481         * modules/unictype/category-Mn-tests (Files): Likewise.
25482         * modules/unictype/category-N-tests (Files): Likewise.
25483         * modules/unictype/category-Nd-tests (Files): Likewise.
25484         * modules/unictype/category-Nl-tests (Files): Likewise.
25485         * modules/unictype/category-No-tests (Files): Likewise.
25486         * modules/unictype/category-P-tests (Files): Likewise.
25487         * modules/unictype/category-Pc-tests (Files): Likewise.
25488         * modules/unictype/category-Pd-tests (Files): Likewise.
25489         * modules/unictype/category-Pe-tests (Files): Likewise.
25490         * modules/unictype/category-Pf-tests (Files): Likewise.
25491         * modules/unictype/category-Pi-tests (Files): Likewise.
25492         * modules/unictype/category-Po-tests (Files): Likewise.
25493         * modules/unictype/category-Ps-tests (Files): Likewise.
25494         * modules/unictype/category-S-tests (Files): Likewise.
25495         * modules/unictype/category-Sc-tests (Files): Likewise.
25496         * modules/unictype/category-Sk-tests (Files): Likewise.
25497         * modules/unictype/category-Sm-tests (Files): Likewise.
25498         * modules/unictype/category-So-tests (Files): Likewise.
25499         * modules/unictype/category-Z-tests (Files): Likewise.
25500         * modules/unictype/category-Zl-tests (Files): Likewise.
25501         * modules/unictype/category-Zp-tests (Files): Likewise.
25502         * modules/unictype/category-Zs-tests (Files): Likewise.
25503         * modules/unictype/category-and-not-tests (Files): Likewise.
25504         * modules/unictype/category-and-tests (Files): Likewise.
25505         * modules/unictype/category-byname-tests (Files): Likewise.
25506         * modules/unictype/category-name-tests (Files): Likewise.
25507         * modules/unictype/category-none-tests (Files): Likewise.
25508         * modules/unictype/category-of-tests (Files): Likewise.
25509         * modules/unictype/category-or-tests (Files): Likewise.
25510         * modules/unictype/category-test-withtable-tests (Files): Likewise.
25511         * modules/unictype/combining-class-tests (Files): Likewise.
25512         * modules/unictype/ctype-alnum-tests (Files): Likewise.
25513         * modules/unictype/ctype-alpha-tests (Files): Likewise.
25514         * modules/unictype/ctype-blank-tests (Files): Likewise.
25515         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
25516         * modules/unictype/ctype-digit-tests (Files): Likewise.
25517         * modules/unictype/ctype-graph-tests (Files): Likewise.
25518         * modules/unictype/ctype-lower-tests (Files): Likewise.
25519         * modules/unictype/ctype-print-tests (Files): Likewise.
25520         * modules/unictype/ctype-punct-tests (Files): Likewise.
25521         * modules/unictype/ctype-space-tests (Files): Likewise.
25522         * modules/unictype/ctype-upper-tests (Files): Likewise.
25523         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
25524         * modules/unictype/decimal-digit-tests (Files): Likewise.
25525         * modules/unictype/digit-tests (Files): Likewise.
25526         * modules/unictype/mirror-tests (Files): Likewise.
25527         * modules/unictype/numeric-tests (Files): Likewise.
25528         * modules/unictype/property-alphabetic-tests (Files): Likewise.
25529         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
25530         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
25531         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
25532         Likewise.
25533         * modules/unictype/property-bidi-block-separator-tests (Files):
25534         Likewise.
25535         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
25536         Likewise.
25537         * modules/unictype/property-bidi-common-separator-tests (Files):
25538         Likewise.
25539         * modules/unictype/property-bidi-control-tests (Files): Likewise.
25540         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
25541         Likewise.
25542         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
25543         Likewise.
25544         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
25545         Likewise.
25546         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
25547         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
25548         Likewise.
25549         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
25550         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
25551         Likewise.
25552         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
25553         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
25554         * modules/unictype/property-bidi-segment-separator-tests (Files):
25555         Likewise.
25556         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
25557         * modules/unictype/property-byname-tests (Files): Likewise.
25558         * modules/unictype/property-combining-tests (Files): Likewise.
25559         * modules/unictype/property-composite-tests (Files): Likewise.
25560         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
25561         * modules/unictype/property-dash-tests (Files): Likewise.
25562         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
25563         * modules/unictype/property-default-ignorable-code-point-tests (Files):
25564         Likewise.
25565         * modules/unictype/property-deprecated-tests (Files): Likewise.
25566         * modules/unictype/property-diacritic-tests (Files): Likewise.
25567         * modules/unictype/property-extender-tests (Files): Likewise.
25568         * modules/unictype/property-format-control-tests (Files): Likewise.
25569         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
25570         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
25571         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
25572         * modules/unictype/property-hex-digit-tests (Files): Likewise.
25573         * modules/unictype/property-hyphen-tests (Files): Likewise.
25574         * modules/unictype/property-id-continue-tests (Files): Likewise.
25575         * modules/unictype/property-id-start-tests (Files): Likewise.
25576         * modules/unictype/property-ideographic-tests (Files): Likewise.
25577         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
25578         * modules/unictype/property-ids-trinary-operator-tests (Files):
25579         Likewise.
25580         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
25581         * modules/unictype/property-iso-control-tests (Files): Likewise.
25582         * modules/unictype/property-join-control-tests (Files): Likewise.
25583         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
25584         * modules/unictype/property-line-separator-tests (Files): Likewise.
25585         * modules/unictype/property-logical-order-exception-tests (Files):
25586         Likewise.
25587         * modules/unictype/property-lowercase-tests (Files): Likewise.
25588         * modules/unictype/property-math-tests (Files): Likewise.
25589         * modules/unictype/property-non-break-tests (Files): Likewise.
25590         * modules/unictype/property-not-a-character-tests (Files): Likewise.
25591         * modules/unictype/property-numeric-tests (Files): Likewise.
25592         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
25593         * modules/unictype/property-other-default-ignorable-code-point-tests
25594         (Files): Likewise.
25595         * modules/unictype/property-other-grapheme-extend-tests (Files):
25596         Likewise.
25597         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
25598         * modules/unictype/property-other-id-start-tests (Files): Likewise.
25599         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
25600         * modules/unictype/property-other-math-tests (Files): Likewise.
25601         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
25602         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
25603         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
25604         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
25605         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
25606         * modules/unictype/property-private-use-tests (Files): Likewise.
25607         * modules/unictype/property-punctuation-tests (Files): Likewise.
25608         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
25609         * modules/unictype/property-radical-tests (Files): Likewise.
25610         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
25611         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
25612         * modules/unictype/property-space-tests (Files): Likewise.
25613         * modules/unictype/property-terminal-punctuation-tests (Files):
25614         Likewise.
25615         * modules/unictype/property-test-tests (Files): Likewise.
25616         * modules/unictype/property-titlecase-tests (Files): Likewise.
25617         * modules/unictype/property-unassigned-code-value-tests (Files):
25618         Likewise.
25619         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
25620         * modules/unictype/property-uppercase-tests (Files): Likewise.
25621         * modules/unictype/property-variation-selector-tests (Files): Likewise.
25622         * modules/unictype/property-white-space-tests (Files): Likewise.
25623         * modules/unictype/property-xid-continue-tests (Files): Likewise.
25624         * modules/unictype/property-xid-start-tests (Files): Likewise.
25625         * modules/unictype/property-zero-width-tests (Files): Likewise.
25626         * modules/unictype/scripts-tests (Files): Likewise.
25627         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
25628         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
25629         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
25630         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
25631         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
25632         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
25633         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
25634         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
25635         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
25636         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
25637         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
25638         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
25639         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
25640         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
25641         * modules/uninorm/composition-tests (Files): Likewise.
25642         * modules/uninorm/decomposing-form-tests (Files): Likewise.
25643         * modules/uninorm/decomposition-tests (Files): Likewise.
25644         * modules/uninorm/filter-tests (Files): Likewise.
25645         * modules/uninorm/nfc-tests (Files): Likewise.
25646         * modules/uninorm/nfd-tests (Files): Likewise.
25647         * modules/uninorm/nfkc-tests (Files): Likewise.
25648         * modules/uninorm/nfkd-tests (Files): Likewise.
25649         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
25650         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
25651         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
25652         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
25653         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
25654         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
25655         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
25656         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
25657         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
25658         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
25659         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
25660         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
25661         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
25662         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
25663         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
25664         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
25665         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
25666         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
25667         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
25668         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
25669         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
25670         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
25671         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
25672         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
25673         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
25674         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
25675         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
25676         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
25677         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
25678         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
25679         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
25680         * modules/uniwidth/u8-width-tests (Files): Likewise.
25681         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
25682         * modules/uniwidth/u16-width-tests (Files): Likewise.
25683         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
25684         * modules/uniwidth/u32-width-tests (Files): Likewise.
25685         * modules/uniwidth/width-tests (Files): Likewise.
25686         * modules/unlink-tests (Files): Likewise.
25687         * modules/unsetenv-tests (Files): Likewise.
25688         * modules/usleep-tests (Files): Likewise.
25689         * modules/utimens-tests (Files): Likewise.
25690         * modules/utimensat-tests (Files): Likewise.
25691         * modules/vasnprintf-posix-tests (Files): Likewise.
25692         * modules/vasnprintf-tests (Files): Likewise.
25693         * modules/vasprintf-posix-tests (Files): Likewise.
25694         * modules/vasprintf-tests (Files): Likewise.
25695         * modules/vdprintf-posix-tests (Files): Likewise.
25696         * modules/vfprintf-posix-tests (Files): Likewise.
25697         * modules/vprintf-posix-tests (Files): Likewise.
25698         * modules/vsnprintf-posix-tests (Files): Likewise.
25699         * modules/vsnprintf-tests (Files): Likewise.
25700         * modules/vsprintf-posix-tests (Files): Likewise.
25701         * modules/wcrtomb-tests (Files): Likewise.
25702         * modules/wcsnrtombs-tests (Files): Likewise.
25703         * modules/wcsrtombs-tests (Files): Likewise.
25704         * modules/wctype-tests (Files): Likewise.
25705         * modules/wcwidth-tests (Files): Likewise.
25706         * modules/xmemdup0-tests (Files): Likewise.
25707         * modules/xprintf-posix-tests (Files): Likewise.
25708         * modules/xvasprintf-tests (Files): Likewise.
25709
25710 2009-12-24  Eric Blake  <ebb9@byu.net>
25711
25712         test-nanosleep: fix typo
25713         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
25714         patch.
25715         Reported by Bruno Haible.
25716
25717 2009-12-24  Bruno Haible  <bruno@clisp.org>
25718
25719         Reduce namespace pollution on glibc systems.
25720         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
25721         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
25722         systems.
25723         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
25724         <getopt.h> on glibc systems.
25725         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
25726         systems.
25727         * lib/fcntl.c: Include <unistd.h> here instead.
25728
25729 2009-12-24  Bruno Haible  <bruno@clisp.org>
25730
25731         * lib/stdlib.in.h (includes): Fix typo in today's commit.
25732
25733 2009-12-24  Eric Blake  <ebb9@byu.net>
25734
25735         tests: add signature checks
25736         * tests/signature.h (SIGNATURE_CHECK): New file.
25737         * modules/atexit-tests (Files): Use it.
25738         * modules/btowc-tests (Files): Likewise.
25739         * modules/canonicalize-lgpl-tests (Files): Likewise.
25740         * modules/ceilf-tests (Files): Likewise.
25741         * modules/ceill-tests (Files): Likewise.
25742         * modules/chown-tests (Files): Likewise.
25743         * modules/dprintf-posix-tests (Files): Likewise.
25744         * modules/dup2-tests (Files): Likewise.
25745         * modules/dup3-tests (Files): Likewise.
25746         * modules/duplocale-tests (Files): Likewise.
25747         * modules/fchdir-tests (Files): Likewise.
25748         * modules/fcntl-tests (Files): Likewise.
25749         * modules/fdopendir-tests (Files): Likewise.
25750         * modules/fflush-tests (Files): Likewise.
25751         * modules/flock-tests (Files): Likewise.
25752         * modules/floorf-tests (Files): Likewise.
25753         * modules/floorl-tests (Files): Likewise.
25754         * modules/fnmatch-tests (Files): Likewise.
25755         * modules/fopen-tests (Files): Likewise.
25756         * modules/fprintf-posix-tests (Files): Likewise.
25757         * modules/freopen-tests (Files): Likewise.
25758         * modules/frexp-nolibm-tests (Files): Likewise.
25759         * modules/frexp-tests (Files): Likewise.
25760         * modules/frexpl-nolibm-tests (Files): Likewise.
25761         * modules/frexpl-tests (Files): Likewise.
25762         * modules/fseek-tests (Files): Likewise.
25763         * modules/fseeko-tests (Files): Likewise.
25764         * modules/fsync-tests (Files): Likewise.
25765         * modules/ftell-tests (Files): Likewise.
25766         * modules/ftello-tests (Files): Likewise.
25767         * modules/futimens-tests (Files): Likewise.
25768         * modules/getaddrinfo-tests (Files): Likewise.
25769         * modules/getcwd-tests (Files): Likewise.
25770         * modules/getdelim-tests (Files): Likewise.
25771         * modules/getdtablesize-tests (Files): Likewise.
25772         * modules/getgroups-tests (Files): Likewise.
25773         * modules/gethostname-tests (Files): Likewise.
25774         * modules/getline-tests (Files): Likewise.
25775         * modules/getopt-posix-tests (Files): Likewise.
25776         * modules/gettimeofday-tests (Files): Likewise.
25777         * modules/glob-tests (Files): Likewise.
25778         * modules/iconv-tests (Files): Likewise.
25779         * modules/inet_ntop-tests (Files): Likewise.
25780         * modules/inet_pton-tests (Files): Likewise.
25781         * modules/isblank-tests (Files): Likewise.
25782         * modules/lchown-tests (Files): Likewise.
25783         * modules/ldexpl-tests (Files): Likewise.
25784         * modules/link-tests (Files): Likewise.
25785         * modules/linkat-tests (Files): Likewise.
25786         * modules/lseek-tests (Files): Likewise.
25787         * modules/lstat-tests (Files): Likewise.
25788         * modules/mbrtowc-tests (Files): Likewise.
25789         * modules/mbsinit-tests (Files): Likewise.
25790         * modules/mbsnrtowcs-tests (Files): Likewise.
25791         * modules/mbsrtowcs-tests (Files): Likewise.
25792         * modules/memchr-tests (Files): Likewise.
25793         * modules/memcmp-tests (Files): Likewise.
25794         * modules/memmem-tests (Files): Likewise.
25795         * modules/memrchr-tests (Files): Likewise.
25796         * modules/mkdir-tests (Files): Likewise.
25797         * modules/mkfifo-tests (Files): Likewise.
25798         * modules/mkfifoat-tests (Files): Likewise.
25799         * modules/mknod-tests (Files): Likewise.
25800         * modules/nanosleep-tests (Files): Likewise.
25801         * modules/nl_langinfo-tests (Files): Likewise.
25802         * modules/obstack-printf-tests (Files): Likewise.
25803         * modules/open-tests (Files): Likewise.
25804         * modules/openat-tests (Files): Likewise.
25805         * modules/perror-tests (Files): Likewise.
25806         * modules/pipe2-tests (Files): Likewise.
25807         * modules/poll-tests (Files): Likewise.
25808         * modules/popen-tests (Files): Likewise.
25809         * modules/posix_spawn-tests (Files): Likewise.
25810         * modules/posix_spawnp-tests (Files): Likewise.
25811         * modules/pread-tests (Files): Likewise.
25812         * modules/printf-posix-tests (Files): Likewise.
25813         * modules/pty-tests (Files): Likewise.
25814         * modules/random_r-tests (Files): Likewise.
25815         * modules/rawmemchr-tests (Files): Likewise.
25816         * modules/readlink-tests (Files): Likewise.
25817         * modules/remove-tests (Files): Likewise.
25818         * modules/rename-tests (Files): Likewise.
25819         * modules/renameat-tests (Files): Likewise.
25820         * modules/rmdir-tests (Files): Likewise.
25821         * modules/round-tests (Files): Likewise.
25822         * modules/roundf-tests (Files): Likewise.
25823         * modules/roundl-tests (Files): Likewise.
25824         * modules/select-tests (Files): Likewise.
25825         * modules/setenv-tests (Files): Likewise.
25826         * modules/sigaction-tests (Files): Likewise.
25827         * modules/sleep-tests (Files): Likewise.
25828         * modules/snprintf-posix-tests (Files): Likewise.
25829         * modules/snprintf-tests (Files): Likewise.
25830         * modules/sprintf-posix-tests (Files): Likewise.
25831         * modules/stat-tests (Files): Likewise.
25832         * modules/strcasestr-tests (Files): Likewise.
25833         * modules/strchrnul-tests (Files): Likewise.
25834         * modules/strerror-tests (Files): Likewise.
25835         * modules/strsignal-tests (Files): Likewise.
25836         * modules/strstr-tests (Files): Likewise.
25837         * modules/strtod-tests (Files): Likewise.
25838         * modules/strverscmp-tests (Files): Likewise.
25839         * modules/symlink-tests (Files): Likewise.
25840         * modules/symlinkat-tests (Files): Likewise.
25841         * modules/times-tests (Files): Likewise.
25842         * modules/trunc-tests (Files): Likewise.
25843         * modules/truncf-tests (Files): Likewise.
25844         * modules/truncl-tests (Files): Likewise.
25845         * modules/tsearch-tests (Files): Likewise.
25846         * modules/uname-tests (Files): Likewise.
25847         * modules/unlink-tests (Files): Likewise.
25848         * modules/unsetenv-tests (Files): Likewise.
25849         * modules/usleep-tests (Files): Likewise.
25850         * modules/utimensat-tests (Files): Likewise.
25851         * modules/vasprintf-tests (Files): Likewise.
25852         * modules/vdprintf-posix-tests (Files): Likewise.
25853         * modules/vfprintf-posix-tests (Files): Likewise.
25854         * modules/vprintf-posix-tests (Files): Likewise.
25855         * modules/vsnprintf-posix-tests (Files): Likewise.
25856         * modules/vsnprintf-tests (Files): Likewise.
25857         * modules/vsprintf-posix-tests (Files): Likewise.
25858         * modules/wcrtomb-tests (Files): Likewise.
25859         * modules/wcsnrtombs-tests (Files): Likewise.
25860         * modules/wcsrtombs-tests (Files): Likewise.
25861         * modules/wcwidth-tests (Files): Likewise.
25862         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
25863         * tests/test-isinf.c (isinf): Likewise.
25864         * tests/test-isnan.c (isnan): Likewise.
25865         * tests/test-signbit.c (signbit): Likewise.
25866         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
25867         declaration, either as macro or with correct signature.
25868         (select): Ensure function under test is declared with correct
25869         signature in correct header.
25870         * tests/test-atexit.c (atexit): Likewise.
25871         * tests/test-btowc.c (btowc): Likewise.
25872         * tests/test-canonicalize-lgpl.c (realpath)
25873         (canonicalize_file_name): Likewise.
25874         * tests/test-ceilf1.c (ceilf): Likewise.
25875         * tests/test-ceill.c (ceill): Likewise.
25876         * tests/test-chown.c (chown): Likewise.
25877         * tests/test-dprintf-posix.c (dprintf): Likewise.
25878         * tests/test-dup2.c (dup2): Likewise.
25879         * tests/test-dup3.c (dup3): Likewise.
25880         * tests/test-duplocale.c (duplocale): Likewise.
25881         * tests/test-fchdir.c (fchdir): Likewise.
25882         * tests/test-fchownat.c (fchownat): Likewise.
25883         * tests/test-fcntl.c (fcntl): Likewise.
25884         * tests/test-fdopendir.c (fdopendir): Likewise.
25885         * tests/test-fflush.c (fflush): Likewise.
25886         * tests/test-flock.c (flock): Likewise.
25887         * tests/test-floorf1.c (floorf): Likewise.
25888         * tests/test-floorl.c (floorl): Likewise.
25889         * tests/test-fnmatch.c (fnmatch): Likewise.
25890         * tests/test-fopen.c (fopen): Likewise.
25891         * tests/test-fprintf-posix.c (fprintf): Likewise.
25892         * tests/test-freopen.c (freopen): Likewise.
25893         * tests/test-frexp.c (frexp): Likewise.
25894         * tests/test-frexpl.c (frexpl): Likewise.
25895         * tests/test-fseek.c (fseek): Likewise.
25896         * tests/test-fseeko.c (fseeko): Likewise.
25897         * tests/test-fstatat.c (fstatat): Likewise.
25898         * tests/test-fsync.c (fsync): Likewise.
25899         * tests/test-ftell.c (ftell): Likewise.
25900         * tests/test-ftello.c (ftello): Likewise.
25901         * tests/test-futimens.c (futimens): Likewise.
25902         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
25903         (gai_strerror): Likewise.
25904         * tests/test-getcwd.c (getcwd): Likewise.
25905         * tests/test-getdelim.c (getdelim): Likewise.
25906         * tests/test-getdtablesize.c (getdtablesize): Likewise.
25907         * tests/test-getgroups.c (getgroups): Likewise.
25908         * tests/test-gethostname.c (gethostname): Likewise.
25909         * tests/test-getline.c (getline): Likewise.
25910         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
25911         Likewise.
25912         * tests/test-gettimeofday.c (gettimeofday): Likewise.
25913         * tests/test-glob.c (glob, globfree): Likewise.
25914         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
25915         * tests/test-inet_ntop.c (inet_ntop): Likewise.
25916         * tests/test-inet_pton.c (inet_pton): Likewise.
25917         * tests/test-isblank.c (isblank): Likewise.
25918         * tests/test-lchown.c (lchown): Likewise.
25919         * tests/test-ldexpl.c (ldexpl): Likewise.
25920         * tests/test-link.c (link): Likewise.
25921         * tests/test-linkat.c (linkat): Likewise.
25922         * tests/test-lseek.c (lseek): Likewise.
25923         * tests/test-lstat.c (lstat): Likewise.
25924         * tests/test-mbrtowc.c (mbrtowc): Likewise.
25925         * tests/test-mbsinit.c (mbsinit): Likewise.
25926         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
25927         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
25928         * tests/test-memchr.c (memchr): Likewise.
25929         * tests/test-memcmp.c (memcmp): Likewise.
25930         * tests/test-memmem.c (memmem): Likewise.
25931         * tests/test-memrchr.c (memrchr): Likewise.
25932         * tests/test-mkdir.c (mkdir): Likewise.
25933         * tests/test-mkdirat.c (mkdirat): Likewise.
25934         * tests/test-mkfifo.c (mkfifo): Likewise.
25935         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
25936         * tests/test-mknod.c (mknod): Likewise.
25937         * tests/test-nanosleep.c (nanosleep): Likewise.
25938         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
25939         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
25940         Likewise.
25941         * tests/test-open.c (open): Likewise.
25942         * tests/test-openat.c (openat): Likewise.
25943         * tests/test-perror.c (perror): Likewise.
25944         * tests/test-pipe2.c (pipe2): Likewise.
25945         * tests/test-poll.c (poll): Likewise.
25946         * tests/test-popen.c (popen, pclose): Likewise.
25947         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
25948         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
25949         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
25950         (posix_spawn_file_actions_destroy)
25951         (posix_spawn_file_actions_addclose)
25952         (posix_spawn_file_actions_addopen)
25953         (posix_spawn_file_actions_adddup2): Likewise.
25954         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
25955         * tests/test-pread.c (pread): Likewise.
25956         * tests/test-printf-posix.c (printf): Likewise.
25957         * tests/test-pty.c (openpty, forkpty): Likewise.
25958         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
25959         (random_r): Likewise.
25960         * tests/test-rawmemchr.c (rawmemchr): Likewise.
25961         * tests/test-readlink.c (readlink): Likewise.
25962         * tests/test-remove.c (remove): Likewise.
25963         * tests/test-rename.c (rename): Likewise.
25964         * tests/test-renameat.c (renameat): Likewise.
25965         * tests/test-rmdir.c (rmdir): Likewise.
25966         * tests/test-round1.c (round): Likewise.
25967         * tests/test-roundf1.c (roundf): Likewise.
25968         * tests/test-roundl.c (roundl): Likewise.
25969         * tests/test-setenv.c (setenv): Likewise.
25970         * tests/test-sigaction.c (sigaction): Likewise.
25971         * tests/test-sleep.c (sleep): Likewise.
25972         * tests/test-snprintf.c (snprintf): Likewise.
25973         * tests/test-sprintf-posix.c (sprintf): Likewise.
25974         * tests/test-stat.c (stat): Likewise.
25975         * tests/test-stpncpy.c (stpncpy): Likewise.
25976         * tests/test-strcasestr.c (strcasestr): Likewise.
25977         * tests/test-strchrnul.c (strchrnul): Likewise.
25978         * tests/test-strerror.c (strerror): Likewise.
25979         * tests/test-strsignal.c (strsignal): Likewise.
25980         * tests/test-strstr.c (strstr): Likewise.
25981         * tests/test-strtod.c (strtod): Likewise.
25982         * tests/test-strverscmp.c (strverscmp): Likewise.
25983         * tests/test-symlink.c (symlink): Likewise.
25984         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
25985         * tests/test-times.c (times): Likewise.
25986         * tests/test-trunc1.c (trunc): Likewise.
25987         * tests/test-truncf1.c (truncf): Likewise.
25988         * tests/test-truncl.c (truncl): Likewise.
25989         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
25990         Likewise.
25991         * tests/test-uname.c (uname): Likewise.
25992         * tests/test-unlink.c (unlink): Likewise.
25993         * tests/test-unlinkat.c (unlinkat): Likewise.
25994         * tests/test-unsetenv.c (unsetenv): Likewise.
25995         * tests/test-usleep.c (usleep): Likewise.
25996         * tests/test-utimensat.c (utimensat): Likewise.
25997         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
25998         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
25999         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
26000         * tests/test-vprintf-posix.c (vprintf): Likewise.
26001         * tests/test-vsnprintf.c (vsnprintf): Likewise.
26002         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
26003         * tests/test-wcrtomb.c (wcrtomb): Likewise.
26004         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
26005         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
26006         * tests/test-wcwidth.c (wcwidth): Likewise.
26007
26008         build: pull in conditional headers during GNULIB_POSIXCHECK
26009         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
26010         definitions from any conditionally-included headers.
26011         * lib/stdlib.in.h (includes): Likewise.
26012         * lib/unistd.in.h (includes): Likewise.
26013
26014 2009-12-24  Bruno Haible  <bruno@clisp.org>
26015
26016         * tests/test-argv-iter.c: Include header file being tested immediately
26017         after config.h.
26018         * tests/test-base64.c: Likewise.
26019         * tests/test-flock.c: Likewise.
26020         * tests/test-fsync.c: Likewise.
26021         * tests/test-getdate.c: Likewise.
26022         * tests/test-getndelim2.c: Likewise.
26023         * tests/test-isfinite.c: Likewise.
26024         * tests/test-isinf.c: Likewise.
26025         * tests/test-strerror.c: Likewise.
26026         * tests/test-strsignal.c: Likewise.
26027
26028 2009-12-23  Eric Blake  <ebb9@byu.net>
26029
26030         unistd: work around cygwin bug
26031         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
26032         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
26033         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
26034
26035 2009-12-23  Bruno Haible  <bruno@clisp.org>
26036
26037         localename: More tests.
26038         * tests/test-localename.c (SIZEOF): New macro.
26039         (categories): New variable.
26040         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
26041         test_locale_name_default): Add test w.r.t. thread locale.
26042         (test_locale_name_thread): New function.
26043         (main): Invoke it.
26044
26045         localename: Make aware of thread locale.
26046         * lib/localename.h (gl_locale_name_thread): New declaration.
26047         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
26048         behaviour with respect to thread locale.
26049         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
26050         <langinfo.h>, glthread/lock.h.
26051         (SIZE_BITS): New macro.
26052         (string_hash): New function.
26053         (struct hash_node): New type.
26054         (HASH_TABLE_SIZE): New macro.
26055         (struniq_hash_table, struniq_lock): New variables.
26056         (struniq): New function.
26057         (gl_locale_name_thread): New function.
26058         (gl_locale_name): Invoke it.
26059         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
26060         * modules/localename (Depends-on): Add lock.
26061         Reported by Mike Gran <spk121@yahoo.com>.
26062
26063 2009-12-23  Eric Blake  <ebb9@byu.net>
26064
26065         va-args: new module
26066         * modules/va-args: New file.
26067         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
26068         * MODULES.html.sh (Core language properties): Mention it.
26069
26070         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
26071         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
26072         named alias for __attribute__((__unused__)).
26073         * lib/chown.c: Update client.
26074         * lib/fchmodat.c: Likewise.
26075         * lib/fts.c: Likewise.
26076         * lib/getdate.y: Likewise.
26077         * lib/getgroups.c: Likewise.
26078         * lib/getopt.c: Likewise.
26079         * lib/getugroups.c: Likewise.
26080         * lib/mkdir.c: Likewise.
26081         * lib/mkfifo.c: Likewise.
26082         * lib/mkfifoat.c: Likewise.
26083         * lib/mknod.c: Likewise.
26084         * lib/mknodat.c: Likewise.
26085         * lib/readlink.c: Likewise.
26086         * lib/se-context.in.h: Likewise.
26087         * lib/se-selinux.in.h: Likewise.
26088         * lib/sockets.c: Likewise.
26089         * lib/symlink.c: Likewise.
26090         * lib/symlinkat.c: Likewise.
26091         * lib/unicodeio.c: Likewise.
26092         * lib/unistr.h: Likewise.
26093         * tests/test-areadlink.c: Likewise.
26094         * tests/test-areadlinkat.c: Likewise.
26095         * tests/test-filenamecat.c: Likewise.
26096         * tests/test-fseeko.c: Likewise.
26097         * tests/test-ftello.c: Likewise.
26098         * tests/test-getdate.c: Likewise.
26099         * tests/test-getgroups.c: Likewise.
26100         * tests/test-gethostname.c: Likewise.
26101         * tests/test-quotearg.c: Likewise.
26102         * tests/test-version-etc.c: Likewise.
26103         * tests/test-xalloc-die.c: Likewise.
26104         * tests/test-xfprintf-posix.c: Likewise.
26105         * tests/test-xprintf-posix.c: Likewise.
26106         * tests/test-xvasprintf.c: Likewise.
26107
26108         tests: avoid compiler warnings
26109         * tests/test-fcntl.c (main): Delete unused parameters.
26110         * tests/test-freopen-safer.c (main): Likewise.
26111         * tests/test-xalloc-die.c (main): Mark unused parameters.
26112         * tests/test-fseeko.c (main): Likewise.
26113         * tests/test-ftello.c (main): Likewise.
26114         * tests/test-nanosleep.c (main): Avoid declaration warning.
26115         * tests/test-sleep.c (main): Likewise.
26116         * tests/test-unsetenv.c (main): Silence warning about string
26117         literal.
26118         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
26119
26120 2009-12-23  Bruno Haible  <bruno@clisp.org>
26121
26122         * tests/test-localename.c (test_locale_name): New function, extracted
26123         from main. Also test mixed situations.
26124         (test_locale_name_posix, test_locale_name_environ,
26125         test_locale_name_default): New functions.
26126         (main): Invoke them all.
26127         * modules/localename-tests (configure.ac): Test for newlocale.
26128
26129 2009-12-23  Bruno Haible  <bruno@clisp.org>
26130
26131         unistd: Ensure getcwd gets declared before being overridden.
26132         * lib/unistd.in.h: Conditionally include <io.h>.
26133
26134 2009-12-22  Bruno Haible  <bruno@clisp.org>
26135
26136         wchar: Diagnose broken combination of glibc and gcc versions and flags.
26137         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
26138         (gl_WCHAR_H): Invoke it.
26139         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
26140         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
26141         Reported by Karl Berry <karl@freefriends.org>.
26142
26143 2009-12-22  Eric Blake  <ebb9@byu.net>
26144
26145         math, unistd: avoid redundant includes
26146         * lib/math.in.h (isnan): No need to re-include <math.h>.
26147         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
26148
26149         getsubopt: work around cygwin bug
26150         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
26151         avoid conflicting with system getsubopt.
26152         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
26153         bug.
26154
26155         getopt: synchronize from glibc
26156         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
26157         parameter order.  Adjust all callers.
26158         (_getopt_internal_r, main): Adjust quoting in error messages.
26159         Drop considerations for outdated POSIX 1003.2 error message.
26160         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
26161         callers.
26162         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
26163
26164         test-getopt: test stderr behavior
26165         * modules/getopt-posix-tests (Depends-on): Add dup2.
26166         * tests/test-getopt.c (ASSERT): Avoid stderr.
26167         (main): Move stderr to a temporary file.
26168         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
26169         Instead, add parameter to inform caller if output occurred.
26170         (test_getopt): Adjust all existing tests to expect silence, and
26171         add new tests of leading ":".
26172         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
26173         glibc shortcomings with leading "-:" or "+:" in optstring.
26174         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26175         Likewise.
26176         * doc/posix-functions/getopt.texi (getopt): Likewise.
26177
26178         test-getopt: enhance test
26179         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
26180         supports optind=0.
26181         * tests/test-getopt.c (OPTIND_MIN): Move...
26182         * tests/test-getopt.h (OPTIND_MIN): ...here.
26183         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
26184         Require that optind=0 works, since modern BSD supports it in
26185         addition to optreset, and since coreutils expects it.
26186         (test_getopt_long_only): New test.
26187         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
26188         glibc shortcomings with 'W;', and enforcement of optind=0.
26189         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26190         Likewise.
26191
26192 2009-12-21  Bruno Haible  <bruno@clisp.org>
26193
26194         localename: Improvements for MacOS X and Cygwin.
26195         * lib/localename.h (gl_locale_name_environ): New declaration.
26196         * lib/localename.c (gl_locale_name_environ): New function, extracted from
26197         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
26198         (gl_locale_name_posix): Invoke it.
26199         (gl_locale_name_default): Add comments. Use Windows native API also on
26200         Cygwin.
26201
26202 2009-12-21  Bruno Haible  <bruno@clisp.org>
26203
26204         Update list of Win32 locale ids.
26205         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
26206         (LANG_SAMI): Renamed from LANG_SAAMI.
26207         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
26208         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
26209         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
26210         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
26211         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
26212         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
26213         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
26214         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
26215         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
26216         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
26217         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
26218         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
26219         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
26220         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
26221         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
26222         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
26223         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
26224         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
26225         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
26226         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
26227         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
26228         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
26229         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
26230         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
26231         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
26232         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
26233         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
26234         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
26235         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
26236         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
26237         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
26238         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
26239         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
26240         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
26241         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
26242         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
26243         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
26244         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
26245         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
26246         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
26247         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
26248         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
26249         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
26250         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
26251         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
26252         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
26253         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
26254         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
26255         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
26256         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
26257         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
26258         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
26259         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
26260         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
26261         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
26262         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
26263         Add more languages and countries for Sami, Sorbian. Add more countries
26264         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
26265         for Pashto. Change country for Syriac, Tswana.
26266
26267 2009-12-21  Eric Blake  <ebb9@byu.net>
26268
26269         test-utimens: avoid spurious failure
26270         * tests/test-chown.h (nap): Factor...
26271         * tests/nap.h: ...into new file.
26272         * tests/test-lchown.h (nap): Avoid duplication.
26273         * tests/test-utimens-common.h (nap): Use shared implementation,
26274         necessary on file systems with 1-second resolution.
26275         * modules/chown-tests (Files): Include new file.
26276         * modules/fdutimensat-tests (Files): Likewise.
26277         * modules/futimens-tests (Files): Likewise.
26278         * modules/lchown-tests (Files): Likewise.
26279         * modules/openat-tests (Files): Likewise.
26280         * modules/utimens-tests (Files): Likewise.
26281         * modules/utimensat-tests (Files): Likewise.
26282
26283 2009-12-19  Eric Blake  <ebb9@byu.net>
26284
26285         futimens, utimensat: work around Linux bug
26286         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
26287         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26288         * lib/utimensat.c (rpl_utimensat): Work around it.
26289         * lib/futimens.c (rpl_futimens): Adjust comment.
26290
26291         utimens: work around Linux ctime bug
26292         * lib/utimens.c (detect_ctime_bug): New helper function.
26293         (update_timespec): Differentiate between workaround needed for
26294         this bug vs. what is needed for systems that lack utimensat.
26295         (fdutimens, lutimens): Work around bug.
26296
26297         utimens: check for ctime update
26298         * tests/test-utimens-common.h (check_ctime): Define.
26299         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
26300         * tests/test-futimens.h (test_futimens): Likewise.
26301         * tests/test-lutimens.h (test_lutimens): Likewise.
26302         * doc/posix-functions/futimens.texi (futimens): Document the bug.
26303         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26304
26305 2009-12-19  Bruno Haible  <bruno@clisp.org>
26306
26307         dprintf-posix: Check against memory leak fixed on 2009-12-15.
26308         * tests/test-dprintf-posix2.sh: New file.
26309         * tests/test-dprintf-posix2.c: New file.
26310         * modules/dprintf-posix-tests (Files): Add them.
26311         (configure.ac): Check for getrlimit and setrlimit.
26312         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
26313
26314 2009-12-19  Bruno Haible  <bruno@clisp.org>
26315
26316         fprintf-posix: Check against memory leak fixed on 2009-12-15.
26317         * tests/test-fprintf-posix3.sh: New file.
26318         * tests/test-fprintf-posix3.c: New file.
26319         * modules/fprintf-posix-tests (Files): Add them.
26320         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
26321
26322 2009-12-19  Eric Blake  <ebb9@byu.net>
26323
26324         dirfd: fix prototype
26325         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
26326         * lib/dirfd.c (dirfd): Likewise.
26327
26328         canonicalize: reduce memory usage
26329         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
26330         allocation to size.
26331         Reported by Solar Designer <solar@openwall.com>.
26332
26333 2009-12-19  Bruno Haible  <bruno@clisp.org>
26334
26335         New module attribute 'Applicability'.
26336         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
26337         * gnulib-tool: New option --extract-applicability.
26338         (func_usage): Document it.
26339         (sed_extract_prog): Recognize it.
26340         (func_get_applicability): New function.
26341         (func_import): Generalize handling of 'link-warning' module.
26342         * modules/link-warning (Applicability): New section.
26343         * modules/arg-nonnull (Applicability): New section.
26344         Repoted by Simon Josefsson <simon@josefsson.org>.
26345
26346 2009-12-19  Bruno Haible  <bruno@clisp.org>
26347
26348         fflush: tweak
26349         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
26350         * lib/fseeko.c (rpl_fseeko): Likewise.
26351
26352 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
26353
26354         * lib/gl_list.h: Fix typo in comment.
26355
26356 2009-12-16  Eric Blake  <ebb9@byu.net>
26357
26358         fcntl: use to simplify other modules
26359         * modules/cloexec (Depends-on): Add fcntl.
26360         * modules/fchdir (Depends-on): Likewise.
26361         * modules/fd-safer-flag (Depends-on): Likewise.
26362         * modules/unistd-safer (Depends-on): Likewise.
26363         * modules/dup3 (configure.ac): Set module indicator.
26364         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
26365         missing.
26366         * lib/fchdir.c (_gl_register_dup): Fix comment.
26367         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
26368         * lib/dup-safer.c (dup_safer): Likewise.
26369         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
26370         * lib/dup3.c (dup3): Likewise.
26371         * tests/test-fchdir.c (main): Enhance test.
26372         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
26373
26374         fcntl: port portions of fcntl to mingw
26375         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
26376         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
26377         replacement for mingw.
26378         * modules/fcntl (Description): Update.
26379         (Depends-on): Add dup2.
26380         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
26381         * modules/fcntl-h (Makefile.am): Substitute it.
26382         * lib/fcntl.in.h (fcntl): Update declaration.
26383         (F_DUPFD, F_GETFD): New macros, when needed.
26384         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
26385         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
26386         * tests/test-fcntl.c (check_flags, main): Enhance test for items
26387         we now guarantee.
26388
26389         fcntl: work around cygwin bug in F_DUPFD
26390         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
26391         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
26392         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
26393         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
26394         * doc/posix-functions/fcntl.texi (fcntl): Document it.
26395
26396         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
26397         * modules/fcntl (Files): List new files.
26398         (configure.ac): Run a test.
26399         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
26400         * lib/fcntl.c (rpl_fcntl): Likewise.
26401         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
26402         (gl_FCNTL_H): Always replace fcntl.h.
26403         * modules/fcntl-h (Makefile.am): Substitute witnesses.
26404         * lib/fcntl.in.h (fcntl): Declare replacement.
26405         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
26406         needed, plus a witness.
26407         * doc/posix-functions/fcntl.texi (fcntl): Document this.
26408         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
26409         * tests/test-fcntl.c: New file.
26410         * modules/fcntl-tests: Likewise.
26411
26412         binary-io: avoid potential compilation warning
26413         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
26414         directives.
26415
26416         fflush: avoid compilation error on NetBSD
26417         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
26418         between off_t and fpos_t, since the latter is sometimes a struct.
26419         * lib/fseeko.c (rpl_fseeko): Likewise.
26420         Reported by Alexander Nasonov <alnsn@yandex.ru>.
26421
26422 2009-12-15  Eric Blake  <ebb9@byu.net>
26423
26424         fcntl-h, stdio, sys_ioctl: fix declarations
26425         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
26426         function must not take arguments.
26427         * lib/sys_ioctl.in.h (ioctl): Likewise.
26428         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
26429         (open): Add a link warning.
26430
26431 2009-12-15  Jim Meyering  <meyering@redhat.com>
26432
26433         areadlink, areadlink-with-size: relax license to LGPLv2+
26434         * modules/areadlink (License): Relax to LGPLv2+.
26435         * modules/areadlink-with-size (License): Likewise.
26436
26437 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
26438             Bruno Haible  <bruno@clisp.org>
26439
26440         *printf: Fix memory leak.
26441         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
26442         * lib/vfprintf.c (vfprintf): Likewise.
26443         * lib/dprintf.c (dprintf): Likewise.
26444         * lib/vdprintf.c (vdprintf): Likewise.
26445
26446 2009-12-14  Eric Blake  <ebb9@byu.net>
26447
26448         accept4: adjust module dependencies
26449         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
26450
26451         utimens: one more try at avoiding compiler warning
26452         * lib/utimens.c (lutimens): Lower scope of result.
26453
26454 2009-12-13  Bruno Haible  <bruno@clisp.org>
26455
26456         Move the malloc checking from module 'list' to new module 'xlist'.
26457         * modules/xlist: New file.
26458         * lib/gl_xlist.h: New file.
26459         * lib/gl_xlist.c: New file.
26460         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
26461         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
26462         gl_list_add_last, gl_list_add_before, gl_list_add_after,
26463         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
26464         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
26465         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
26466         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
26467         gl_sortedlist_nx_add): New declarations.
26468         (struct gl_list_implementation): Rename and change methods accordingly.
26469         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
26470         (gl_list_nx_create): Renamed from gl_list_create.
26471         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
26472         (gl_list_nx_set_at): Renamed from gl_list_set_at.
26473         (gl_list_nx_add_first): Renamed from gl_list_add_first.
26474         (gl_list_nx_add_last): Renamed from gl_list_add_last.
26475         (gl_list_nx_add_before): Renamed from gl_list_add_before.
26476         (gl_list_nx_add_after): Renamed from gl_list_add_after.
26477         (gl_list_nx_add_at): Renamed from gl_list_add_at.
26478         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
26479         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
26480         gl_list_create_empty.
26481         (gl_list_nx_create): Renamed from gl_list_create.
26482         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
26483         (gl_list_nx_set_at): Renamed from gl_list_set_at.
26484         (gl_list_nx_add_first): Renamed from gl_list_add_first.
26485         (gl_list_nx_add_last): Renamed from gl_list_add_last.
26486         (gl_list_nx_add_before): Renamed from gl_list_add_before.
26487         (gl_list_nx_add_after): Renamed from gl_list_add_after.
26488         (gl_list_nx_add_at): Renamed from gl_list_add_at.
26489         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
26490         * lib/gl_array_list.c: Don't include xalloc.h.
26491         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
26492         NULL upon out-of-memory.
26493         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
26494         out-of-memory.
26495         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
26496         Change return type to 'int'.
26497         (gl_array_nx_set_at): Renamed from gl_array_set_at.
26498         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
26499         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
26500         upon out-of-memory.
26501         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
26502         upon out-of-memory.
26503         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
26504         upon out-of-memory.
26505         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
26506         upon out-of-memory.
26507         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
26508         out-of-memory.
26509         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
26510         Update.
26511         (gl_array_list_implementation): Update.
26512         * lib/gl_carray_list.c: Don't include xalloc.h.
26513         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
26514         Return NULL upon out-of-memory.
26515         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
26516         out-of-memory.
26517         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
26518         Change return type to 'int'.
26519         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
26520         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
26521         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
26522         upon out-of-memory.
26523         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
26524         upon out-of-memory.
26525         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
26526         out-of-memory.
26527         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
26528         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
26529         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
26530         Update.
26531         (gl_carray_list_implementation): Update.
26532         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
26533         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
26534         gl_linked_create_empty. Return NULL upon out-of-memory.
26535         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
26536         out-of-memory.
26537         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
26538         Change return type to 'int'. Return -1 upon out-of-memory.
26539         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
26540         out-of-memory.
26541         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
26542         upon out-of-memory.
26543         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
26544         upon out-of-memory.
26545         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
26546         NULL upon out-of-memory.
26547         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
26548         upon out-of-memory.
26549         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
26550         out-of-memory.
26551         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
26552         Update.
26553         * lib/gl_linked_list.c: Don't include xalloc.h.
26554         (gl_linked_list_implementation): Update.
26555         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
26556         (add_to_bucket): Change return type to 'int'.
26557         (gl_linkedhash_list_implementation): Update.
26558         * lib/gl_anytree_list1.h (free_subtree): New function.
26559         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
26560         gl_tree_create_empty. Return NULL upon out-of-memory.
26561         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
26562         Change return type to 'int'. Return -1 upon out-of-memory.
26563         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
26564         out-of-memory.
26565         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
26566         (gl_tree_remove_node): New function, moved here from
26567         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
26568         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
26569         Update.
26570         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
26571         malloc, not xmalloc. Return NULL upon out-of-memory.
26572         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
26573         out-of-memory.
26574         (gl_tree_remove_node_from_tree): New function, extracted from
26575         gl_tree_remove_node.
26576         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
26577         upon out-of-memory.
26578         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
26579         out-of-memory.
26580         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
26581         upon out-of-memory.
26582         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
26583         upon out-of-memory.
26584         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
26585         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
26586         not xmalloc. Return NULL upon out-of-memory.
26587         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
26588         out-of-memory.
26589         (gl_tree_remove_node_from_tree): New function, extracted from
26590         gl_tree_remove_node.
26591         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
26592         upon out-of-memory.
26593         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
26594         out-of-memory.
26595         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
26596         upon out-of-memory.
26597         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
26598         upon out-of-memory.
26599         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
26600         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
26601         gl_anytree_list1.h before gl_anyavltree_list2.h.
26602         (gl_avltree_list_implementation): Update.
26603         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
26604         gl_anytree_list1.h before gl_anyavltree_list2.h.
26605         (gl_rbtree_list_implementation): Update.
26606         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
26607         Change return type to 'int'. Return -1 upon out-of-memory. Use
26608         __builtin_expect.
26609         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
26610         (gl_avltreehash_list_implementation): Update.
26611         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
26612         (gl_rbtreehash_list_implementation): Update.
26613         * modules/array-list (Depends-on): Remove xalloc.
26614         * modules/carray-list (Depends-on): Likewise.
26615         * modules/linked-list (Depends-on): Likewise.
26616         * modules/linkedhash-list (Depends-on): Likewise.
26617         * modules/avltree-list (Depends-on): Likewise.
26618         * modules/rbtree-list (Depends-on): Likewise.
26619         * modules/avltreehash-list (Depends-on): Likewise.
26620         * modules/rbtreehash-list (Depends-on): Likewise.
26621
26622         * modules/xsublist: New file.
26623         * lib/gl_xsublist.h: New file.
26624         * lib/gl_xsublist.c: New file.
26625         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
26626         (gl_sublist_nx_create): New declaration.
26627         * lib/gl_sublist.c: Don't include xalloc.h.
26628         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
26629         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
26630         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
26631         Change return type to 'int'. Return -1 upon out-of-memory.
26632         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
26633         upon out-of-memory.
26634         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
26635         NULL upon out-of-memory.
26636         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
26637         upon out-of-memory.
26638         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
26639         NULL upon out-of-memory.
26640         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
26641         NULL upon out-of-memory.
26642         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
26643         upon out-of-memory.
26644         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
26645         (gl_sublist_list_implementation): Update.
26646         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
26647         upon out-of-memory.
26648         * modules/sublist (Depends-on): Remove xalloc.
26649
26650         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
26651         * tests/test-carray_list.c: Likewise.
26652         * tests/test-linked_list.c: Likewise.
26653         * tests/test-linkedhash_list.c: Likewise.
26654         * tests/test-avltree_list.c: Likewise.
26655         * tests/test-rbtree_list.c: Likewise.
26656         * tests/test-avltreehash_list.c: Likewise.
26657         * tests/test-rbtreehash_list.c: Likewise.
26658         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
26659         * modules/carray-list-tests (Makefile.am): Likewise.
26660         * modules/linked-list-tests (Makefile.am): Likewise.
26661         * modules/linkedhash-list-tests (Makefile.am): Likewise.
26662         * modules/avltree-list-tests (Makefile.am): Likewise.
26663         * modules/rbtree-list-tests (Makefile.am): Likewise.
26664         * modules/avltreehash-list-tests (Makefile.am): Likewise.
26665         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
26666
26667         * NEWS: Mention the changes.
26668
26669         * lib/clean-temp.c: Include gl_xlist.h.
26670         * modules/clean-temp (Depends-on): Add xlist.
26671
26672         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
26673         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
26674
26675         * tests/test-array_oset.c: Include gl_xlist.h.
26676         * modules/array-oset-tests (Depends-on): Add xlist.
26677
26678         Reported by José E. Marchesi <jemarch@gnu.org>.
26679
26680 2009-12-13  Bruno Haible  <bruno@clisp.org>
26681
26682         Move the malloc checking from module 'oset' to new module 'xoset'.
26683         * modules/xoset: New file.
26684         * lib/gl_xoset.h: New file.
26685         * lib/gl_xoset.c: New file.
26686         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
26687         declarations.
26688         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
26689         (struct gl_oset_implementation): Rename and change methods accordingly.
26690         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
26691         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
26692         'int'. Mark as __warn_unused_result__.
26693         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
26694         gl_oset_create_empty.
26695         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
26696         'int'.
26697         * lib/gl_array_oset.c: Don't include xalloc.h.
26698         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
26699         malloc, not xmalloc.
26700         (grow): Change return type to 'int'. Don't call xalloc_die.
26701         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
26702         to 'int'.
26703         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
26704         'int'.
26705         (gl_array_oset_implementation): Update.
26706         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
26707         gl_tree_create_empty.
26708         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
26709         'int'.
26710         * lib/gl_avltree_oset.c: Don't include xalloc.h.
26711         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
26712         xmalloc.
26713         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
26714         not xmalloc.
26715         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
26716         xmalloc.
26717         (gl_avltree_oset_implementation): Update.
26718         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
26719         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
26720         xmalloc.
26721         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
26722         not xmalloc.
26723         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
26724         xmalloc.
26725         (gl_rbtree_oset_implementation): Update.
26726         * modules/array-oset (Depends-on): Remove xalloc.
26727         * modules/avltree-oset (Depends-on): Likewise.
26728         * modules/rbtree-oset (Depends-on): Likewise.
26729         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
26730         * tests/test-avltree_oset.c: Likewise.
26731         * tests/test-rbtree_oset.c: Likewise.
26732         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
26733         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
26734         * modules/rbtree-oset-tests (Makefile.am): Likewise.
26735         * NEWS: Mention the change.
26736
26737 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
26738
26739         maint.mk: allow a project to override release-prep commands
26740         * top/maint.mk (alpha, beta, stable): Move release-preparatory
26741         commands into a new rule.
26742         (release-prep): New rule.
26743         (release-prep-hook): New overridable variable.
26744
26745 2009-12-13  Bruno Haible  <bruno@clisp.org>
26746
26747         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
26748
26749 2009-12-13  Jim Meyering  <meyering@redhat.com>
26750
26751         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
26752         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
26753
26754 2009-12-12  Bruno Haible  <bruno@clisp.org>
26755
26756         duplocale: Tweak.
26757         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
26758
26759 2009-12-12  Karl Berry  <karl@gnu.org>
26760
26761         * config/srclist.txt (strtoll.c): tab changes, no more sync.
26762
26763 2009-12-12  Bruno Haible  <bruno@clisp.org>
26764
26765         * m4/po.m4: Undo incorrect untabification.
26766
26767 2009-12-12  Bruno Haible  <bruno@clisp.org>
26768
26769         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
26770         * modules/c-strtod (Depends-on): Add locale.
26771         * modules/c-strtold (Depends-on): Likewise.
26772
26773 2009-12-12  Bruno Haible  <bruno@clisp.org>
26774
26775         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
26776
26777 2009-12-11  Eric Blake  <ebb9@byu.net>
26778
26779         setenv: relax requirement in light of POSIX ruling
26780         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
26781         not NULL.
26782         * tests/test-setenv.c (main): Relax test.
26783         * tests/test-unsetenv.c (main): Likewise.
26784         * doc/posix-functions/setenv.texi (setenv): Document this.
26785         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
26786
26787 2009-12-11  Bruno Haible  <bruno@clisp.org>
26788
26789         New module 'fd-safer-flag'.
26790         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
26791         * lib/dup-safer.c (dup_safer_flag): Remove function.
26792         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
26793         * lib/fd-safer.c (fd_safer_flag): Remove function.
26794         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
26795         * modules/cloexec (configure.ac): Drop indicator macro.
26796         * modules/fd-safer-flag: New file.
26797         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
26798         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
26799         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
26800
26801 2009-12-11  Bruno Haible  <bruno@clisp.org>
26802
26803         Tests for module 'nl_langinfo'.
26804         * modules/nl_langinfo-tests: New file.
26805         * tests/test-nl_langinfo.sh: New file.
26806         * tests/test-nl_langinfo.c: New file.
26807
26808         New module 'nl_langinfo'.
26809         * lib/nl_langinfo.c: New file.
26810         * m4/nl_langinfo.m4: New file.
26811         * modules/nl_langinfo: New file.
26812         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
26813
26814 2009-12-11  Bruno Haible  <bruno@clisp.org>
26815
26816         Tests for module 'langinfo'.
26817         * modules/langinfo-tests: New file.
26818         * tests/test-langinfo.c: New file.
26819
26820         New module 'langinfo'.
26821         * lib/langinfo.in.h: New file.
26822         * m4/langinfo_h.m4: New file.
26823         * modules/langinfo: New file.
26824         * doc/posix-headers/langinfo.texi: Mention the new module.
26825
26826 2009-12-11  Bruno Haible  <bruno@clisp.org>
26827
26828         * lib/config.charset: Untabify.
26829
26830 2009-12-11  Bruno Haible  <bruno@clisp.org>
26831
26832         * modules/unistd-safer (configure.ac): Drop indicator macro.
26833
26834 2009-12-11  Bruno Haible  <bruno@clisp.org>
26835
26836         Move pipe2-safer code to its own file.
26837         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
26838         * lib/pipe-safer.c (pipe2_safer): Remove function.
26839         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
26840         (Makefile.am): Add it to lib_SOURCES.
26841
26842 2009-12-10  Bruno Haible  <bruno@clisp.org>
26843
26844         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
26845
26846 2009-12-10  Bruno Haible  <bruno@clisp.org>
26847
26848         Declare which arguments expect non-NULL values, for GCC and clang.
26849         * build-aux/arg-nonnull.h: New file.
26850         * modules/arg-nonnull: New file.
26851         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
26852         (inet_ntop, inet_pton): Use it.
26853         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
26854         (closedir, dirfd, opendir, scandir, alphasort): Use it.
26855         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
26856         (open, openat): Use it.
26857         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
26858         (fnmatch): Use it.
26859         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
26860         (getopt, getopt_long, getopt_long_only): Use it.
26861         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
26862         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
26863         Use it.
26864         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
26865         (iconv_open): Use it.
26866         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
26867         (strtoimax, strtoumax): Use it.
26868         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
26869         (duplocale): Use it.
26870         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
26871         (frexp, frexpl): Use it.
26872         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
26873         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
26874         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
26875         (tsearch, tfind, tdelete, twalk): Use it.
26876         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
26877         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26878         sigpending): Use it.
26879         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
26880         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26881         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26882         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26883         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26884         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26885         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26886         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26887         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26888         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26889         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26890         Use it.
26891         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
26892         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
26893         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
26894         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
26895         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
26896         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
26897         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
26898         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
26899         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
26900         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
26901         strtoull, unsetenv): Use it.
26902         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
26903         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26904         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26905         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
26906         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
26907         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
26908         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
26909         (strcasecmp, strncasecmp): Use it.
26910         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
26911         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
26912         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
26913         rpl_setsockopt): Use it.
26914         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
26915         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
26916         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
26917         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
26918         (gettimeofday): Use it.
26919         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
26920         (times): Use it.
26921         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
26922         (uname): Use it.
26923         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
26924         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
26925         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
26926         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
26927         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
26928         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
26929         unlinkat, write): Use it.
26930         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
26931         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
26932         * lib/argv-iter.h: Include arg-nonnull.h.
26933         (_ATTRIBUTE_NONNULL_): Remove macro.
26934         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
26935         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
26936         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
26937         optimization.
26938         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
26939         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
26940         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
26941         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
26942         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
26943         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
26944         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
26945         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
26946         * modules/arpa_inet (Depends-on): Add arg-nonnull.
26947         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
26948         * modules/dirent (Depends-on): Add arg-nonnull.
26949         (Makefile.am): Insert arg-nonnull.h into dirent.h.
26950         * modules/fcntl-h (Depends-on): Add arg-nonnull.
26951         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
26952         * modules/fnmatch (Depends-on): Add arg-nonnull.
26953         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
26954         * modules/getopt-posix (Depends-on): Add arg-nonnull.
26955         (Makefile.am): Insert arg-nonnull.h into getopt.h.
26956         * modules/glob (Depends-on): Add arg-nonnull.
26957         (Makefile.am): Insert arg-nonnull.h into glob.h.
26958         * modules/iconv_open (Depends-on): Add arg-nonnull.
26959         (Makefile.am): Insert arg-nonnull.h into iconv.h.
26960         * modules/inttypes (Depends-on): Add arg-nonnull.
26961         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
26962         * modules/locale (Depends-on): Add arg-nonnull.
26963         (Makefile.am): Insert arg-nonnull.h into locale.h.
26964         * modules/math (Depends-on): Add arg-nonnull.
26965         (Makefile.am): Insert arg-nonnull.h into math.h.
26966         * modules/netdb (Depends-on): Add arg-nonnull.
26967         (Makefile.am): Insert arg-nonnull.h into netdb.h.
26968         * modules/search (Depends-on): Add arg-nonnull.
26969         (Makefile.am): Insert arg-nonnull.h into search.h.
26970         * modules/signal (Depends-on): Add arg-nonnull.
26971         (Makefile.am): Insert arg-nonnull.h into signal.h.
26972         * modules/spawn (Depends-on): Add arg-nonnull.
26973         (Makefile.am): Insert arg-nonnull.h into spawn.h.
26974         * modules/stdio (Depends-on): Add arg-nonnull.
26975         (Makefile.am): Insert arg-nonnull.h into stdio.h.
26976         * modules/stdlib (Depends-on): Add arg-nonnull.
26977         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
26978         * modules/string (Depends-on): Add arg-nonnull.
26979         (Makefile.am): Insert arg-nonnull.h into string.h.
26980         * modules/strings (Depends-on): Add arg-nonnull.
26981         (Makefile.am): Insert arg-nonnull.h into strings.h.
26982         * modules/sys_socket (Depends-on): Add arg-nonnull.
26983         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
26984         * modules/sys_stat (Depends-on): Add arg-nonnull.
26985         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
26986         * modules/sys_time (Depends-on): Add arg-nonnull.
26987         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
26988         * modules/sys_times (Depends-on): Add arg-nonnull.
26989         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
26990         * modules/sys_utsname (Depends-on): Add arg-nonnull.
26991         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
26992         * modules/time (Depends-on): Add arg-nonnull.
26993         (Makefile.am): Insert arg-nonnull.h into time.h.
26994         * modules/unistd (Depends-on): Add arg-nonnull.
26995         (Makefile.am): Insert arg-nonnull.h into unistd.h.
26996         * modules/wchar (Depends-on): Add arg-nonnull.
26997         (Makefile.am): Insert arg-nonnull.h into wchar.h.
26998         * modules/argv-iter (Depends-on): Add arg-nonnull.
26999         * tests/test-canonicalize.c (null_ptr): New function.
27000         (main): Use it.
27001         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
27002         (main): Use it.
27003         * tests/test-memmem.c (null_ptr): New function.
27004         (main): Use it.
27005         Reported by Jim Meyering.
27006
27007 2009-12-10  Bruno Haible  <bruno@clisp.org>
27008
27009         Use spaces for indentation, not tabs.
27010         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
27011         * m4/*.m4: Untabify.
27012         * build-aux/*.h: Untabify.
27013         * tests/**/*.[hc]: Untabify.
27014         * README: New section "Indent with spaces, not TABs", based on
27015         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
27016         * NEWS: Mention the change.
27017
27018 2009-12-10  Bruno Haible  <bruno@clisp.org>
27019
27020         pty test: Fix link error.
27021         * modules/pty-tests (Makefile.am): Add the default LDADD value to
27022         test_pty_LDADD.
27023
27024 2009-12-07  Simon Josefsson  <simon@josefsson.org>
27025
27026         * modules/pty: New file.
27027         * modules/pty-tests: New file.
27028         * m4/pty.m4: New file.
27029         * tests/test-pty.c: New file.
27030         * doc/glibc-headers/pty.texi: Modified.
27031         * doc/glibc-functions/forkpty.texi: Modified.
27032         * doc/glibc-functions/openpty.texi: Modified.
27033
27034 2009-12-10  Bruno Haible  <bruno@clisp.org>
27035
27036         Avoid syntax error in C++ mode.
27037         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
27038
27039 2009-12-10  Bruno Haible  <bruno@clisp.org>
27040
27041         Use sed with option -e.
27042         * gnulib-tool (func_version, func_emit_copyright_notice,
27043         func_emit_initmacro_end, func_import, func_create_testdir): Pass
27044         option -e to sed.
27045         * modules/link-warning (Makefile.am): Likewise.
27046
27047 2009-12-10  Jim Meyering  <meyering@redhat.com>
27048
27049         mgetgroups: do not write bytes beyond end of malloc'd buffer
27050         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
27051         username, we call getgroups with a one-element-shorter buffer,
27052         but still told it the length was original, max_n_groups.
27053
27054 2009-12-09  Eric Blake  <ebb9@byu.net>
27055
27056         cloexec: relax license
27057         * modules/cloexec (Maintainer): Add myself.
27058         (License): Use LGPL, not GPL.
27059
27060         link-warning: optimize generation
27061         * modules/link-warning (Makefile.am): Reduce process usage.
27062
27063 2009-12-09  Bruno Haible  <bruno@clisp.org>
27064
27065         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
27066         workaround was added on 2009-11-17.
27067
27068 2009-12-09  Jim Meyering  <meyering@redhat.com>
27069             Bruno Haible  <bruno@clisp.org>
27070
27071         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
27072         * modules/link-warning (Makefile.am): Make the comment-removing sed
27073         command more robust in the face of bootstrap-prepended comment lines.
27074
27075 2009-12-09  Bruno Haible  <bruno@clisp.org>
27076
27077         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
27078         most one group.
27079
27080 2009-12-09  Simon Josefsson <simon@josefsson.org>
27081             Bruno Haible  <bruno@clisp.org>
27082
27083         * build-aux/link-warning.h: Add copyright notice.
27084         * modules/link-warning (Makefile.am): Generate link-warning.h from
27085         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
27086         * NEWS: Mention change in link-warning module.
27087         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
27088         * modules/dirent (Makefile.am): Add dependency to dirent.h.
27089         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
27090         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
27091         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
27092         * modules/math (Makefile.am): Add dependency to math.h.
27093         * modules/search (Makefile.am): Add dependency to search.h.
27094         * modules/signal (Makefile.am): Add dependency to signal.h.
27095         * modules/spawn (Makefile.am): Add dependency to spawn.h.
27096         * modules/stdio (Makefile.am): Add dependency to stdio.h.
27097         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
27098         * modules/string (Makefile.am): Add dependency to string.h.
27099         * modules/strings (Makefile.am): Add dependency to strings.h.
27100         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
27101         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
27102         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
27103         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
27104         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
27105         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
27106         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
27107         * modules/unistd (Makefile.am): Add dependency to unistd.h.
27108         * modules/wchar (Makefile.am): Add dependency to wchar.h.
27109
27110 2009-12-09  Bruno Haible  <bruno@clisp.org>
27111
27112         fchdir: Optimize away rpl_fstat when possible.
27113         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
27114         REPLACE_OPEN_DIRECTORY.
27115         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
27116
27117 2009-12-09  Bruno Haible  <bruno@clisp.org>
27118
27119         * lib/fchdir.c: Update comment.
27120
27121 2009-12-09  Bruno Haible  <bruno@clisp.org>
27122
27123         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
27124
27125 2009-12-08  Eric Blake  <ebb9@byu.net>
27126
27127         fchdir: avoid memory leak on re-registration.
27128         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
27129
27130 2009-12-08  Jim Meyering  <meyering@redhat.com>
27131
27132         init.sh: avoid Solaris 10 /bin/sh portability problem
27133         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
27134         sourced script:
27135           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
27136           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
27137           bar
27138         tests/init.sh relied on that, accepting a --set-path=DIR argument,
27139         and two tests used that idiom.
27140         * tests/init.sh: Update suggested usage comments.
27141         (path_prepend_): New function, to be used in place
27142         of the --src-path=DIR option.
27143         (setup_): Move PATH-prepending code into path_prepend_.
27144         * tests/test-pread.sh: Adapt to new usage.
27145         * tests/test-xalloc-die.sh: Likewise.
27146
27147 2009-12-08  Simon Josefsson  <simon@josefsson.org>
27148
27149         * doc/gnulib.texi (Glibc pty.h): Add.
27150         * doc/glibc-functions/forkpty.texi: Add.
27151         * doc/glibc-functions/openpty.texi: Add.
27152         Suggested by Bruno Haible.
27153
27154 2009-12-08  Eric Blake  <ebb9@byu.net>
27155
27156         fchdir: fix logic bugs
27157         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
27158         * tests/test-fchdir.c (main): Enhance test.
27159         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
27160         is in use.
27161
27162         dup2: fix logic bugs
27163         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
27164         REPLACE_DUP2 to decide when rpl_dup2 is needed.
27165         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
27166         exists.
27167         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
27168
27169 2009-12-07  Eric Blake  <ebb9@byu.net>
27170
27171         unlink: fix m4 detection
27172         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
27173
27174         unistd-safer: add unit test
27175         * modules/unistd-safer-tests: New file.
27176         * tests/test-dup-safer.c: Likewise.
27177         * tests/test-cloexec.c (setmode): Avoid compiler warning.
27178         * tests/test-dup2.c (setmode): Likewise.
27179         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
27180
27181         cloexec: preserve text vs. binary across dup_cloexec
27182         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
27183         mode.
27184         * modules/dup2-tests (Depends-on): Add binary-io.
27185         * modules/cloexec-tests (Depends-on): Likewise.
27186         * tests/test-dup2.c (setmode, is_mode): New helpers.
27187         (main): Add tests that translation mode is preserved.
27188         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
27189         Reported by Bruno Haible.
27190
27191         mgetgroups: reduce duplicate listings
27192         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
27193         resulting array.
27194         * tests/test-chown.h (test_chown): Simplify client.
27195         * tests/test-lchown.h (test_lchown): Likewise.
27196
27197 2009-12-06  Bruno Haible  <bruno@clisp.org>
27198
27199         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
27200         value.
27201
27202 2009-12-06  Bruno Haible  <bruno@clisp.org>
27203
27204         * lib/progname.c: Include stdio.h, stdlib.h.
27205         (set_program_name): Reject a NULL argument.
27206
27207 2009-12-05  Eric Blake  <ebb9@byu.net>
27208
27209         pipe2-safer: new module
27210         * modules/pipe2-safer: New file.
27211         * lib/unistd-safer.h (pipe2_safer): New prototype.
27212         * lib/unistd--.h (pipe2): New wrapper.
27213         * lib/pipe-safer.c (pipe2_safer): New function.
27214         * modules/pipe (Depends-on): Add pipe2-safer.
27215         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
27216
27217         stdlib-safer: preserve cloexec flag for mkostemp[s]
27218         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
27219         fd_safer_flag.
27220
27221         unistd-safer: allow preservation of cloexec status via flag
27222         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
27223         prototypes.
27224         * lib/dup-safer.c (dup_safer_flag): New function.
27225         * lib/fd-safer.c (fd_safer_flag): Likewise.
27226         * modules/cloexec (configure.ac): Set witness.
27227
27228         test-dup2: enhance test
27229         * modules/dup2-tests (Depends-on): Add cloexec.
27230         * tests/test-dup2.c (main): Enhance test.
27231
27232         cloexec: add dup_cloexec
27233         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
27234         header and comments.
27235         * lib/cloexec.c (set_cloexec_flag): Add comments.
27236         (dup_cloexec): New function, with mingw implementation borrowed
27237         from...
27238         * lib/w32spawn.h (dup_noinherit): ...here.
27239         * modules/execute (Depends-on): Add cloexec.
27240         * modules/pipe (Depends-on): Likewise.
27241         * modules/cloexec (Depends-on): Add dup2.
27242         * modules/cloexec-tests (Files): New file.
27243         * tests/test-cloexec.c: Likewise.
27244
27245         test-xalloc-die: fix test for mingw
27246         * modules/xalloc-die-tests (Files): Add tests/init.sh.
27247         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
27248         directory and .exe suffix off argv[0] output.
27249
27250         test-fseeko: fix test for mingw
27251         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
27252         than undefining fseek, so test will pass on mingw.
27253
27254 2009-12-05  Bruno Haible  <bruno@clisp.org>
27255
27256         * lib/progname.h (set_program_name): Clarify specification.
27257         * lib/progname.c (set_program_name): Likewise.
27258         Reported by Jim Meyering.
27259
27260 2009-12-05  Jim Meyering  <meyering@redhat.com>
27261
27262         maint.mk: backslash-escape parens in default regexp
27263         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
27264         backslash-escape the literal parentheses.
27265
27266         maint.mk: news-date-check: use grep -E
27267         * top/maint.mk (today): Define a Make variable, not a...
27268         (news-date-check): ...shell variable.
27269         (news-date-regexp): Use the Make variable.
27270         Use grep's -E option.  Change the failing diagnostic to mention
27271         the variable, $(news-date-regexp).
27272
27273 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
27274
27275         maintainer-makefile: allow customization of NEWS entry format
27276         * top/maint.mk (news-date-regexp): New overridable variable.
27277         (news-date-check): Use it.
27278
27279 2009-12-04  Eric Blake  <ebb9@byu.net>
27280
27281         mgetgroups: add xgetgroups, and avoid ENOSYS failures
27282         * lib/mgetgroups.h (xgetgroups): New prototype.
27283         * lib/mgetgroups.c (xgetgroups): New wrapper.
27284         (mgetgroups): Handle ENOSYS.
27285         * modules/mgetgroups (Depends-on): Add realloc.
27286         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
27287
27288         mgetgroups: avoid argument promotion issues with -1
27289         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
27290         for invalid gid_t.
27291         * tests/test-chown.h (getegid, test_chown): Likewise.
27292         * tests/test-lchown.h (getegid, test_lchown): Likewise.
27293
27294 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
27295
27296         exclude: Fix header file problems.
27297         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
27298
27299 2009-12-01  Jim Meyering  <meyering@redhat.com>
27300
27301         fts: fts_open: do not let an empty string cause immediate failure
27302         This is required in support of GNU rm, for which the command
27303         "rm A '' B" must process and remove both A and B, in spite of
27304         the empty string argument.
27305         * lib/fts.c (fts_open): Do not let the presence of an empty string
27306         cause fts_open to fail immediately.  Most fts-using tools must be
27307         able to process all arguments, in order, and can be expected to
27308         diagnose such arguments themselves.
27309
27310 2009-11-30  Eric Blake  <ebb9@byu.net>
27311
27312         utimens: fix compilation error
27313         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
27314         Declare variable at right scope.
27315
27316 2009-11-29  Jim Meyering  <meyering@redhat.com>
27317
27318         bootstrap: handle perl-5.11's changed --version output
27319         * build-aux/bootstrap (get_version): Handle perl separately,
27320         since perl-5.11's --version output is different.
27321
27322 2009-11-28  Jim Meyering  <meyering@redhat.com>
27323
27324         userspec: depend on the inttostr module, too
27325         * modules/userspec (Depends-on): Add inttostr.
27326
27327         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
27328         * lib/userspec.c (parse_with_separator): Do not accept a user ID
27329         number of MAXUID when it evaluates to (uid_t) -1.
27330         Likewise for group ID.  Reported by Matt McCutchen in
27331         <http://savannah.gnu.org/bugs/?28113>
27332
27333         userspec: reformat to use spaces, not TABs
27334         * lib/userspec.c: Expand TABs to spaces.
27335         Add Emacs' "indent-tabs-mode: nil" hint.
27336
27337 2009-11-27  Eric Blake  <ebb9@byu.net>
27338
27339         getopt-gnu: flush out another BSD bug
27340         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
27341         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
27342         flush out BSD bug.
27343         * tests/test-getopt.h (test_getopt): End lists with NULL.
27344         * tests/test-getopt_long.h (test_getopt_long): Likewise.
27345         (test_getopt_long_posix): Enhance test.
27346         * modules/getopt-posix-tests (Depends-on): Add stdbool.
27347         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
27348         getopt-gnu.
27349         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27350         Likewise.
27351
27352 2009-11-27  Simon Josefsson  <simon@josefsson.org>
27353
27354         * modules/idpriv-droptemp-tests (Notice): Fix text.
27355
27356 2009-11-27  Jim Meyering  <meyering@redhat.com>
27357
27358         test-xalloc-die: avoid spurious failure due to libtool argv difference
27359         In a libtool-enabled project, this test would fail due to a difference
27360         in the emitted program name, e.g.,
27361         -test-xalloc-die: memory exhausted
27362         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
27363         Use program to avoid that.
27364         * modules/xalloc-die-tests (Depends-on): Add progname.
27365         * tests/test-xalloc-die.c: Include progname.h".
27366         (program_name): Remove decl.
27367         (main): Call set_program_name.
27368         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
27369
27370 2009-11-26  Richard Jones  <rjones@redhat.com>
27371
27372         w32sock: leave win32 error in place.
27373         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
27374
27375 2009-11-26  Eric Blake  <ebb9@byu.net>
27376
27377         init.sh: suggest to use skip_ and fail_ functions in comments
27378         * tests/init.sh: Add a sentence.
27379
27380 2009-11-25  Bruno Haible  <bruno@clisp.org>
27381
27382         init.sh: add documentation in comments
27383         * tests/init.sh: Add some developer and user documentation.
27384
27385 2009-11-26  Jim Meyering  <meyering@redhat.com>
27386
27387         init.sh: accommodate even those who specify bogus srcdir manually
27388         * tests/init.sh: Normally, srcdir is guaranteed by automake and
27389         configure-time tests to be sanitized, so that there is no need to
27390         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
27391         (with no double quotes) suffices.  However, since tests may be
27392         invoked manually, and since you may explicitly set srcdir to the
27393         name of a directory containing spaces, do quote its uses here.
27394         * tests/test-pread.sh: Likewise.
27395         Suggested by Bruno Haible.
27396
27397         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
27398         * tests/test-pread.sh: Write no data into the pipe, because
27399         test-pread actually reads none.  This avoids a diagnostic,
27400         "bash: echo: write error: Broken pipe", that arises in the unusual
27401         event something is ignoring SIGPIPE, and might be interpreted
27402         as some sort of failure.  Reported by Bruno Haible.
27403
27404 2009-11-25  Jim Meyering  <meyering@redhat.com>
27405
27406         test-pread: cover failure with ESPIPE and EINVAL
27407         * tests/test-pread.c (main): Test for failure, too.
27408         * tests/test-pread.sh: Invoke with stdin on a pipe.
27409         Suggested by Eric Blake.
27410
27411         pread: improvement and fix
27412         * modules/pread (Depends-on): Depend on lseek, for portability to
27413         e.g., mingw.  Suggested by Eric Blake.
27414         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
27415
27416         unistd.in.h: correct declaration of pread
27417         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
27418         Reported by Richard W.M. Jones.
27419
27420         test-pread.sh: distribute the test script
27421         * modules/pread-tests (Files): Include test-pread.sh.
27422
27423         test-pread.sh: clean up
27424         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
27425         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
27426         That is unnecessary, since it's always ".".
27427         Suggestion from Eric Blake.
27428
27429         test-pread.sh: make executable
27430         * tests/test-pread.sh: Set executable bit.
27431         Reported by Eric Blake.
27432
27433         correct typo in test-pread.sh
27434         * tests/test-pread.sh: Add #! line.
27435
27436         test pread
27437         * tests/test-pread.c: New file.
27438         * tests/test-pread.sh: Likewise.
27439         * modules/pread-tests: Likewise.
27440
27441         pread: new module
27442         * modules/pread: New file.
27443         * lib/unistd.in.h (pread): Define/declare.
27444         * lib/pread.c (pread): New file.
27445         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
27446         * modules/unistd (Makefile.am): Substitute witnesses.
27447         * doc/posix-functions/pread.texi (pread): Update.
27448         * MODULES.html.sh: Add pread.
27449
27450 2009-11-25  Jim Meyering  <meyering@redhat.com>
27451
27452         tests/init.sh: new file to be used via most *.sh tests
27453         * tests/init.sh: New file.
27454
27455 2009-11-25  Eric Blake  <ebb9@byu.net>
27456
27457         utimens: work around older Linux failure with symlinks
27458         * lib/utimens.c (lutimensat_works_really): New variable.
27459         (fdutimens, lutimens): Use it to manage kernels that support
27460         nanosecond times on files, but not on symlinks.
27461         Reported by OndÅ™ej Vašík.
27462
27463         utimes: fix configure grammar
27464         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
27465
27466 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
27467
27468         regex: Fix fastmap for multibyte character ranges.
27469         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
27470         characters when a multibyte character range is included.
27471
27472 2009-11-22  Andy Wingo  <wingo@pobox.com>
27473
27474         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
27475         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
27476
27477 2009-11-24  Bruno Haible  <bruno@clisp.org>
27478
27479         doc: Most *_l functions exist in MacOS X 10.5.
27480         * doc/posix-functions/duplocale.texi: Update platforms list.
27481         * doc/posix-functions/freelocale.texi: Likewise.
27482         * doc/posix-functions/newlocale.texi: Likewise.
27483         * doc/posix-functions/uselocale.texi: Likewise.
27484         * doc/posix-functions/isalnum_l.texi: Likewise.
27485         * doc/posix-functions/isalpha_l.texi: Likewise.
27486         * doc/posix-functions/isblank_l.texi: Likewise.
27487         * doc/posix-functions/iscntrl_l.texi: Likewise.
27488         * doc/posix-functions/isdigit_l.texi: Likewise.
27489         * doc/posix-functions/isgraph_l.texi: Likewise.
27490         * doc/posix-functions/islower_l.texi: Likewise.
27491         * doc/posix-functions/isprint_l.texi: Likewise.
27492         * doc/posix-functions/ispunct_l.texi: Likewise.
27493         * doc/posix-functions/isspace_l.texi: Likewise.
27494         * doc/posix-functions/isupper_l.texi: Likewise.
27495         * doc/posix-functions/iswalnum_l.texi: Likewise.
27496         * doc/posix-functions/iswalpha_l.texi: Likewise.
27497         * doc/posix-functions/iswblank_l.texi: Likewise.
27498         * doc/posix-functions/iswcntrl_l.texi: Likewise.
27499         * doc/posix-functions/iswctype_l.texi: Likewise.
27500         * doc/posix-functions/iswdigit_l.texi: Likewise.
27501         * doc/posix-functions/iswgraph_l.texi: Likewise.
27502         * doc/posix-functions/iswlower_l.texi: Likewise.
27503         * doc/posix-functions/iswprint_l.texi: Likewise.
27504         * doc/posix-functions/iswpunct_l.texi: Likewise.
27505         * doc/posix-functions/iswspace_l.texi: Likewise.
27506         * doc/posix-functions/iswupper_l.texi: Likewise.
27507         * doc/posix-functions/iswxdigit_l.texi: Likewise.
27508         * doc/posix-functions/isxdigit_l.texi: Likewise.
27509         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
27510         * doc/posix-functions/strcasecmp_l.texi: Likewise.
27511         * doc/posix-functions/strcoll_l.texi: Likewise.
27512         * doc/posix-functions/strfmon_l.texi: Likewise.
27513         * doc/posix-functions/strftime_l.texi: Likewise.
27514         * doc/posix-functions/strncasecmp_l.texi: Likewise.
27515         * doc/posix-functions/strxfrm_l.texi: Likewise.
27516         * doc/posix-functions/tolower_l.texi: Likewise.
27517         * doc/posix-functions/toupper_l.texi: Likewise.
27518         * doc/posix-functions/towctrans_l.texi: Likewise.
27519         * doc/posix-functions/towlower_l.texi: Likewise.
27520         * doc/posix-functions/towupper_l.texi: Likewise.
27521         * doc/posix-functions/wcscoll_l.texi: Likewise.
27522         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
27523         * doc/posix-functions/wctrans_l.texi: Likewise.
27524         * doc/posix-functions/wctype_l.texi: Likewise.
27525         * doc/glibc-functions/strptime_l.texi: Likewise.
27526         * doc/glibc-functions/strtod_l.texi: Likewise.
27527         * doc/glibc-functions/strtof_l.texi: Likewise.
27528         * doc/glibc-functions/strtol_l.texi: Likewise.
27529         * doc/glibc-functions/strtold_l.texi: Likewise.
27530         * doc/glibc-functions/strtoll_l.texi: Likewise.
27531         * doc/glibc-functions/strtoul_l.texi: Likewise.
27532         * doc/glibc-functions/strtoull_l.texi: Likewise.
27533         * doc/glibc-functions/wcsftime_l.texi: Likewise.
27534         * doc/glibc-functions/wcstod_l.texi: Likewise.
27535         * doc/glibc-functions/wcstof_l.texi: Likewise.
27536         * doc/glibc-functions/wcstol_l.texi: Likewise.
27537         * doc/glibc-functions/wcstold_l.texi: Likewise.
27538         * doc/glibc-functions/wcstoll_l.texi: Likewise.
27539         * doc/glibc-functions/wcstoul_l.texi: Likewise.
27540         * doc/glibc-functions/wcstoull_l.texi: Likewise.
27541
27542 2009-11-24  Bruno Haible  <bruno@clisp.org>
27543
27544         duplocale: Fix logic bug.
27545         * lib/duplocale.c: Don't include <langinfo.h>.
27546         (_NL_LOCALE_NAME): Remove macro.
27547         (rpl_duplocale): Use setlocale instead of nl_langinfo.
27548         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
27549
27550 2009-11-23  Jim Meyering  <meyering@redhat.com>
27551
27552         test-update-copyright: don't hard-code /usr/bin/perl
27553         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
27554         perl to print the current year.  Gilles Espinasse reported that
27555         the replaced use of perl was hard-coded as /usr/bin/perl.
27556
27557 2009-11-23  Bruno Haible  <bruno@clisp.org>
27558
27559         duplocale: Add support for glibc 2.3.x.
27560         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
27561
27562 2009-11-22  Bruno Haible  <bruno@clisp.org>
27563
27564         vasnprintf: Tiny optimization.
27565         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
27566         MacOS X.
27567
27568 2009-11-22  Bruno Haible  <bruno@clisp.org>
27569
27570         Tests for module 'duplocale'.
27571         * modules/duplocale-tests: New file.
27572         * tests/test-duplocale.c: New file.
27573
27574         New module 'duplocale'.
27575         * m4/duplocale.m4: New file.
27576         * lib/locale.in.h (duplocale): New declaration.
27577         * lib/duplocale.c: New file.
27578         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
27579         gl_LOCALE_H_DEFAULTS): New macros.
27580         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
27581         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
27582         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
27583         REPLACE_DUPLOCALE.
27584         * modules/duplocale: New file.
27585         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
27586
27587 2009-11-22  Bruno Haible  <bruno@clisp.org>
27588
27589         * modules/locale-tests (configure.ac): Test for newlocale function.
27590         * tests/test-locale.c: When the system has extended locale functions,
27591         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
27592
27593         locale: Make locale_t available when possible.
27594         * lib/locale.in.h: Include <xlocale.h> when it exists.
27595         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
27596         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
27597         * modules/locale (Depends-on): Add extensions.
27598         (Makefile.am): Also substitute HAVE_XLOCALE_H.
27599         * doc/posix-headers/locale.texi: Document the problem with locale_t.
27600
27601 2009-11-22  Bruno Haible  <bruno@clisp.org>
27602
27603         Add comments.
27604         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
27605         invocation.
27606         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
27607         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
27608         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27609
27610 2009-11-22  Bruno Haible  <bruno@clisp.org>
27611
27612         error: account for the possibility of freopen (stdout).
27613         * lib/error.c: Include <unistd.h>.
27614         (flush_stdout): New function, extracted from error and error_at_line.
27615         Determine stdout's fd dynamically.
27616         (error, error_at_line): Invoke flush_stdout.
27617         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
27618         * modules/error (Depends-on): Add unistd.
27619
27620 2009-11-22  Bruno Haible  <bruno@clisp.org>
27621
27622         diffseq: Add comment.
27623         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
27624
27625 2009-11-22  Jim Meyering  <meyering@redhat.com>
27626
27627         c-stack: avoid defining an unused static function
27628         * lib/c-stack.c (find_stack_direction): Do not define this function
27629         when it will not be used.
27630
27631         diffseq: avoid spurious gcc warnings
27632         * lib/diffseq.h (IF_LINT2): Define.
27633         (compareseq): Use it to initialize two members of "part".
27634         This avoids two used-uninitialized warnings.
27635
27636 2009-11-21  Jim Meyering  <meyering@redhat.com>
27637
27638         c-stack: avoid "ignoring return value of `write'" warning
27639         * lib/c-stack.c: Include "ignore-value.h".
27640         (die): Explicitly ignore each write return value.
27641         * modules/c-stack (Depends-on): Add ignore-value.
27642
27643 2009-11-21  Bruno Haible  <bruno@clisp.org>
27644
27645         diffseq: reduce scope of variable 'best'.
27646         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
27647         variable, earlier used for two different purposes.
27648
27649 2009-11-21  Jim Meyering  <meyering@redhat.com>
27650
27651         diffseq: remove useless assignment to "best"
27652         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
27653         assignment.  At that point "best" is already guaranteed to be zero.
27654
27655 2009-11-20  Eric Blake  <ebb9@byu.net>
27656
27657         build: mention ftp redirector in release announcements
27658         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
27659         values that used to come from cfg.mk; mention FTP redirect URL.
27660         * build-aux/announce-gen: Mention the mirror list.
27661         Suggested by Karl Berry.
27662
27663         nanosleep: improve port to mingw
27664         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
27665         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
27666         LIB_NANOSLEEP, but only when needed.
27667         * modules/select (Link): Document LIBSOCKET.
27668         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
27669         enough.
27670
27671         nanosleep: work around cygwin bug
27672         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
27673         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
27674         bug.
27675         (getnow): Delete, not needed.
27676         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
27677         LIB_CLOCK_GETTIME.
27678         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
27679         clock-time, gettime.
27680         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
27681         bug.
27682         * modules/nanosleep-tests: New test.
27683         * tests/test-nanosleep.c: New file.
27684
27685         sleep: work around cygwin bug
27686         * lib/sleep.c (rpl_sleep): Work around the bug.
27687         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
27688         (gl_PREREQ_SLEEP): Delete unused macro.
27689         * modules/sleep (Depends-on): Add verify.
27690         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
27691         * modules/unistd (Makefile.am): Substitute witness.
27692         * lib/unistd.in.h (sleep): Update prototype.
27693         * doc/posix-functions/sleep.texi (sleep): Document the bug.
27694         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
27695         * modules/sleep-tests (Depends-on): Check for alarm.
27696
27697 2009-11-20  Jim Meyering  <meyering@redhat.com>
27698
27699         maint.mk: improve sc_prohibit_magic_number_exit
27700         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
27701         so it does not match uses like System.exit(1).
27702         Add comments showing how to correct all offenders.
27703
27704 2009-11-19  Eric Blake  <ebb9@byu.net>
27705
27706         xalloc-die-tests: add missing library
27707         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
27708
27709         test-xvasprintf: silence compiler warnings
27710         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
27711         empty string from gcc.
27712
27713 2009-11-19  Jim Meyering  <meyering@redhat.com>
27714
27715         xfreopen: new module, from coreutils
27716         * modules/xfreopen: New module.
27717         * lib/xfreopen.c: New file.
27718         * lib/xfreopen.h: New file.
27719         * MODULES.html.sh (File stream based Input/Output"): Add it.
27720
27721 2009-11-19  Eric Blake  <ebb9@byu.net>
27722
27723         manywarnings: depend on warnings
27724         * modules/manywarnings (Depends-on): Add warnings.
27725
27726         build: avoid compiler warnings
27727         * lib/select.c (rpl_select): Delete unused variable.
27728         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
27729
27730 2009-11-18  Eric Blake  <ebb9@byu.net>
27731
27732         tests: avoid false negative with --with-packager
27733         * tests/test-version-etc.sh: Discard packager information.
27734         * tests/test-argp-version-etc-1.sh: Likewise.
27735         Reported by Mike Frysinger.
27736
27737         utimens: fix regression on Solaris
27738         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
27739         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
27740         can only change fd timestamps via futimesat.  Instead, use an
27741         additional witness macro to avoid BSD bug.
27742         Reported by Jim Meyering.
27743
27744 2009-11-17  Eric Blake  <ebb9@byu.net>
27745
27746         usleep: use it to simplify tests
27747         * modules/stat-time-tests (Depends-on): Add usleep.
27748         (configure.ac): Drop usleep check.
27749         * modules/chown-tests (Depends-on, configure.ac): Likewise.
27750         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
27751         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
27752         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
27753         * modules/openat-tests (Depends-on, configure.ac): Likewise.
27754         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
27755         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
27756         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
27757         Likewise.
27758         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
27759         * tests/test-lchown.h (nap): Likewise.
27760         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
27761         * tests/test-stat-time.c (nap): Likewise.
27762         * tests/test-utimens-common.h (nap): Update comments.
27763
27764         usleep: new module
27765         * modules/usleep: New file.
27766         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
27767         * lib/usleep.c (usleep): Likewise.
27768         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
27769         * modules/unistd (Makefile.am): Substitute witnesses.
27770         * lib/unistd.in.h (usleep): Add declaration.
27771         * doc/pastposix-functions/usleep.texi (usleep): Document this.
27772         * MODULES.html.sh (Date and time): Likewise.
27773         * modules/usleep-tests (Depends-on): New test.
27774         * tests/test-usleep.c: New file.
27775
27776         chown: work around OpenBSD bug
27777         * lib/chown.c (rpl_chown): Work around the bug.
27778         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
27779         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
27780         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
27781         * modules/chown (Depends-on): Add stdbool.
27782         * modules/lchown (Depends-on): Likewise.
27783         * doc/posix-functions/chown.texi (chown): Document the bug.
27784         * doc/posix-functions/lchown.texi (lchown): Likewise.
27785         * tests/test-lchown.h (test_chown): Relax test.
27786
27787         mkstemp: avoid conflict with C++ keyword template
27788         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
27789         * lib/mkostemp.c (mkostemp): Likewise.
27790         * lib/mkostemps.c (mkostemps): Likewise.
27791         * lib/mkstemp.c (mkstemp): Likewise.
27792         * lib/mkstemps.c (mkstemps): Likewise.
27793
27794         xalloc-die-tests: optimize
27795         * tests/test-xalloc-die.sh: Reduce number of processes.
27796
27797 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27798
27799         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
27800         patch from ludo@gnu.org (Ludovic Courtès).
27801
27802 2009-11-17  Jim Meyering  <meyering@redhat.com>
27803
27804         version-etc: use proper license string
27805         * modules/version-etc (License): Use LGPL, not LGPLv3+.
27806         * modules/version-etc-fsf: Likewise.
27807
27808 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27809
27810         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
27811         printed to stdout.  Deal with EOL differences.
27812
27813 2009-11-17  Eric Blake  <ebb9@byu.net>
27814
27815         unsetenv: work around Solaris bug
27816         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
27817         * lib/unsetenv.c (rpl_unsetenv): Work around it.
27818         Reported by Jim Meyering.
27819
27820         vasnprintf: avoid compiler warnings
27821         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
27822         variables.
27823         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
27824
27825 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27826
27827         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
27828         settings since xalloc-die is no longer the self test,
27829         xalloc-die.sh is.
27830
27831 2009-11-17  Jim Meyering  <meyering@redhat.com>
27832
27833         test-xalloc-die.sh: make the code agree with the commit log
27834         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
27835         at the end, just in case you happen to have a test-xalloc-die
27836         program in some other PATH directory.
27837
27838         test-xalloc-die.sh: fix a portability bug
27839         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
27840         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
27841         Otherwise, argv[0] (as often seen in diagnostics) would be too
27842         system-dependent, sometimes with, and sometimes without the leading "./".
27843
27844         version-etc-fsf: relax license to LGPLv3+
27845         * modules/version-etc-fsf (License): Relax license.
27846
27847 2009-11-16  Eric Blake  <ebb9@byu.net>
27848
27849         xalloc-die-tests: avoid printing null pointer
27850         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
27851         shell script.
27852         * tests/test-xalloc-die.c (program_name): Declare.
27853         * tests/test-xalloc-die.sh (tmpfiles): New file.
27854
27855         setenv, unsetenv: work around various bugs
27856         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
27857         (setenv) [HAVE_SETENV]: Work around bugs.
27858         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
27859         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
27860         for bugs.
27861         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
27862         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
27863         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
27864         * modules/stdlib (Makefile.am): Update substitutions.
27865         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
27866         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
27867         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
27868         * modules/setenv-tests: New test.
27869         * modules/unsetenv-tests: Likewise.
27870         * tests/test-setenv.c: New file.
27871         * tests/test-unsetenv.c: Likewise.
27872
27873 2009-11-16  Jim Meyering  <meyering@redhat.com>
27874
27875         version-etc: relax license to LGPLv3+
27876         * modules/version-etc (License): Relax license.
27877
27878         better AC_REQUIRE expanded-before-required-warning avoidance
27879         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
27880         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
27881         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
27882         which is no longer needed.
27883
27884 2009-11-16  Eric Blake  <ebb9@byu.net>
27885
27886         test-freading: clean up temporary file
27887         * tests/test-freading.c (main): Remove file on success, and use
27888         ASSERT more liberally.
27889         Reported by Jim Meyering.
27890
27891 2009-11-16  Jim Meyering  <meyering@redhat.com>
27892
27893         avoid new AC_REQUIRE expanded-before-required warnings
27894         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
27895         merely using it.
27896         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
27897         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
27898
27899 2009-11-15  Simon Josefsson  <simon@josefsson.org>
27900
27901         * tests/test-xalloc-die.c: New file.
27902         * modules/xalloc-die-tests: New file.
27903         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
27904         XFAIL_TESTS so it can be appended by modules.
27905
27906 2009-11-15  Simon Josefsson  <simon@josefsson.org>
27907
27908         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
27909         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
27910
27911 2009-11-14  Eric Blake  <ebb9@byu.net>
27912
27913         fnmatch: avoid compiler warning
27914         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
27915         to silence compiler warning about mismatch signedness in ?:.
27916         Reported by Robert Millan.
27917
27918         intprops: add double-inclusion guard
27919         * lib/intprops.h: Allow idempotent includes.
27920         Suggested by Bruce Korb.
27921
27922         openat: detect Solaris fchownat bug
27923         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
27924         penalizing glibc chownat when only lchownat is broken.
27925         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
27926         trailing slash bugs.
27927         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
27928         * modules/openat-tests (Files): Include more files.
27929         (Depends-on): Add mgetgroups, sleep, stat-time.
27930         (configure.ac): Add additional checks.
27931         (Makefile.am): Build new test.
27932         * tests/test-fchownat.c: New file.
27933
27934         lchown: detect Solaris and FreeBSD bug
27935         * lib/lchown.c (rpl_lchown): Work around bug.
27936         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
27937         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27938         * modules/unistd (Makefile.am): Populate it.
27939         * lib/unistd.in.h (lchown): Update declaration.
27940         * doc/posix-functions/lchown.texi (lchown): Document the bug.
27941         * modules/lchown-tests: New file.
27942         * tests/test-lchown.h (test_lchown): Likewise.
27943         * tests/test-lchown.c (main): Likewise.
27944
27945         chown: detect Solaris and FreeBSD bug
27946         * lib/chown.c (rpl_chown): Work around bug.
27947         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
27948         (gl_PREREQ_CHOWN): Delete.
27949         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27950         * modules/unistd (Makefile.am): Populate it.
27951         * lib/unistd.in.h (chown): Update declaration.
27952         * lib/lchown.c (chown): Update client.
27953         * modules/lchown (Depends-on): Add lstat.
27954         * doc/posix-functions/chown.texi (chown): Document the bug.
27955         * doc/posix-functions/getgroups.texi (getgroups): Document
27956         getgroups pitfall.
27957         * modules/chown-tests: New file.
27958         * tests/test-chown.h (test_chown): Likewise.
27959         * tests/test-chown.c (main): Likewise.
27960
27961 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
27962
27963         gnulib-tool: correctly detect absence of m4 directories
27964         * gnulib-tool: Avoid extra newline on data passed to wc -l.
27965
27966 2009-11-14  Jim Meyering  <meyering@redhat.com>
27967
27968         maint.mk: Prohibit inclusion of "xalloc.h" without use.
27969         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
27970
27971 2009-11-14  John W. Eaton  <jwe@gnu.org>
27972
27973         strftime.h: wrap funtion declaration in extern "C" block
27974         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
27975
27976 2009-11-13  Eric Blake  <ebb9@byu.net>
27977
27978         getgroups: avoid compiler warning
27979         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
27980
27981         getgroups: work around FreeBSD bug
27982         * lib/getgroups.c (rpl_getgroups): Work around the bug.
27983         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
27984         * doc/posix-functions/getgroups.texi (getgroups): Document it.
27985         * tests/test-getgroups.c (main): Fix buffer overrun.
27986
27987         getgroups: avoid compilation failure
27988         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
27989         * modules/getgroups (Depends-on): Add stdint.
27990
27991 2009-11-13  Jim Meyering  <meyering@redhat.com>
27992
27993         test-getgroups: avoid compilation failure
27994         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
27995
27996 2009-11-13  Eric Blake  <ebb9@byu.net>
27997
27998         mgetgroups: new module, taken from coreutils
27999         * modules/mgetgroups: New file.
28000         * lib/mgetgroups.h: Likewise.
28001         * lib/mgetgroups.c (mgetgroups): Likewise.
28002         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
28003         * MODULES.html.sh (Users and groups): Mention it.
28004
28005         getgroups: don't expose GETGROUPS_T to user
28006         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
28007         an element at a time if GETGROUPS_T is wrong size.
28008         * lib/getugroups.h (getugroups): Change signature.
28009         * lib/unistd.in.h (getgroups): Likewise.
28010         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
28011         signature needs fixing.
28012         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
28013         AC_TYPE_GETGROUPS.
28014         * modules/group-member (Depends-on): Add getgroups.
28015         * lib/group-member.c (group_info, get_group_info): Use gid_t.
28016         (group_member): Rely on getgroups replacement.
28017         * lib/getugroups.c (getugroups): Use gid_t.
28018         * tests/test-getgroups.c (main): Likewise.
28019         * NEWS: Mention the signature change.
28020         * doc/posix-functions/getgroups.texi (getgroups): Mention the
28021         problem with signature.
28022         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
28023         GETGROUPS_T is still useful for setgroups.
28024
28025         getgroups, getugroups: provide stubs for mingw
28026         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
28027         * lib/getugroups.c (getugroups): Likewise.
28028         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
28029         function.  Modernize replacement scheme.
28030         (gl_PREREQ_GETGROUPS): Delete.
28031         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
28032         * modules/getgroups (configure.ac): Declare witness.
28033         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
28034         * modules/unistd (Depends-on): Substitute witness.
28035         * lib/unistd.in.h (getgroups): Declare replacement.
28036
28037         getgroups: avoid calling exit
28038         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
28039         drop xalloc.
28040         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
28041         dependencies.
28042         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
28043         exiting, in the rare case of malloc failure.
28044
28045         getgroups: fix logic error
28046         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
28047         has more than 20 groups.
28048         * modules/getgroups-tests: New test.
28049         * tests/test-getgroups.c: New file.
28050
28051 2009-11-13  Simon Josefsson  <simon@josefsson.org>
28052
28053         * tests/test-base64.c: Improve.
28054
28055 2009-11-13  Simon Josefsson  <simon@josefsson.org>
28056
28057         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
28058         Blake <ebb9@byu.net>.
28059
28060 2009-11-13  Simon Josefsson  <simon@josefsson.org>
28061
28062         * tests/test-xvasprintf.c: Add %s%s related checks.
28063
28064 2009-11-12  Eric Blake  <ebb9@byu.net>
28065
28066         version-etc: match standards.texi style
28067         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
28068         and use <> only for URLs.
28069
28070 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
28071
28072         fts: do not fail on a submount during traversal
28073         * lib/fts.c (fts_build): Read the stat info again after opening
28074         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
28075         Original report at http://bugzilla.redhat.com/501848.
28076
28077 2009-11-12  Jim Meyering  <meyering@redhat.com>
28078
28079         bootstrap: sync from coreutils
28080         * build-aux/bootstrap (bootstrap_epilogue): New function.
28081         Use git_modules_config in one more place.  This make bootstrap's
28082         --gnulib-srcdir option more useful for testing.
28083
28084         bootstrap: generalize autoheader check
28085         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
28086         AC_CONFIG_HEADERS.
28087
28088 2009-11-11  Eric Blake  <ebb9@byu.net>
28089
28090         mkfifoat: use new modules for Solaris and BSD bugs
28091         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
28092         * lib/mkfifoat.c (mknodat): Split...
28093         * lib/mknodat.c (mknodat): ...into new file.
28094         * modules/mkfifoat (Files): Ship new file.
28095         (Depends-on): Add mkfifo, mknod.
28096         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
28097         (Depends-on): Add symlink.
28098         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
28099         redundant with test_mkfifo.h.
28100         (do_mkfifoat, do_mknodat): New helpers.
28101
28102         mknod: new module
28103         * modules/mknod: New file.
28104         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
28105         * lib/mknod.c (mknod): Likewise.
28106         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
28107         defaults.
28108         * modules/sys_stat (Makefile.am): Substitute them.
28109         * lib/sys_stat.in.h (mknod): Declare replacement.
28110         * MODULES.html.sh (Support for systems lacking POSIX:2008):
28111         Document it.
28112         * doc/posix-functions/mknod.texi (mknod): Likewise.
28113         * modules/mknod-tests: New test.
28114         * tests/test-mknod.c: Likewise.
28115
28116         mkfifo: new module
28117         * modules/mkfifo: New file.
28118         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
28119         * lib/mkfifo.c (mkfifo): Likewise.
28120         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
28121         defaults.
28122         * modules/sys_stat (Makefile.am): Substitute them.
28123         * lib/sys_stat.in.h (mkfifo): Declare replacement.
28124         * MODULES.html.sh (Support for systems lacking POSIX:2008):
28125         Document it.
28126         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
28127         * modules/mkfifo-tests: New test.
28128         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
28129         from test-mkfifoat.c.
28130         * tests/test-mkfifo.c: New file.
28131
28132         readlink: detect FreeBSD bug
28133         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
28134         slash on symlink.
28135         * doc/posix-functions/readlink.texi (readlink): Document the bug.
28136         * tests/test-readlink.h (test_readlink): Enhance test.
28137
28138         symlink: detect FreeBSD bug
28139         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
28140         slash on symlink.
28141         * doc/posix-functions/symlink.texi (symlink): Document the bug.
28142         * tests/test-symlink.h (test_symlink): Enhance test.
28143
28144 2009-11-10  Eric Blake  <ebb9@byu.net>
28145
28146         link: detect FreeBSD bug
28147         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
28148         symlink.
28149         * doc/posix-functions/link.texi (link): Document the bug.
28150         * tests/test-link.h (test_link): Enhance test.
28151         * tests/test-linkat.c (main): Update caller.
28152
28153         unlink, remove: detect FreeBSD bug
28154         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
28155         slash on symlink.
28156         * doc/posix-functions/unlink.texi (unlink): Document the bug.
28157         * doc/posix-functions/remove.texi (remove): Likewise.
28158         * tests/test-unlink.h (test_unlink): Enhance test.
28159         * tests/test-remove.c (main): Likewise.
28160
28161 2009-11-09  Eric Blake  <ebb9@byu.net>
28162
28163         rename: detect FreeBSD bug
28164         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
28165         slash on symlink.
28166         * modules/renameat-tests (Depends-on): Add filenamecat.
28167         * tests/test-rename.h (test_rename): Allow one more errno.
28168         * tests/test-renameat.c (main): Likewise.
28169         * doc/posix-functions/rename.texi (rename): Document the bug.
28170
28171         open: detect FreeBSD bug
28172         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
28173         symlink.
28174         * doc/posix-functions/open.texi (open): Document the bug.
28175         * doc/posix-functions/utimes.texi (utimes): Likewise.
28176         * tests/test-open.h (test_open): Add parameters, and test symlink
28177         handling.
28178         * tests/test-open.c (main): Adjust caller.
28179         * tests/test-fcntl-safer.c (main): Likewise.
28180         * modules/open-tests (Depends-on): Add stdbool, symlink.
28181         * modules/fcntl-safer-tests (Depends-on): Likewise.
28182         * tests/test-openat.c (main): Add test-open tests.
28183
28184         stat: detect FreeBSD bug
28185         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
28186         symlink.
28187         * doc/posix-functions/stat.texi (stat): Document the bug.
28188         * tests/test-stat.h (test_stat_func): Add argument.
28189         * tests/test-stat.c (main): Adjust caller.
28190         * tests/test-fstatat.c (main): Likewise.
28191         * modules/stat-tests (Depends-on): Add stdbool, symlink.
28192         Reported by Jim Meyering.
28193
28194 2009-11-09  James Youngman  <jay@gnu.org>
28195
28196         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
28197         * lib/strftime.c: Correct placement of #include "ignore-value.h".
28198
28199 2009-11-08  Jim Meyering  <meyering@redhat.com>
28200
28201         utimens: remove invalid futimesat call
28202         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
28203         It used the file descriptor of the target file as the DIR_FD
28204         parameter and NULL as the file name.  That caused failure with
28205         errno == EFAULT on FreeBSD-8.0-rc2
28206
28207 2009-11-07  Eric Blake  <ebb9@byu.net>
28208
28209         fflush, freadseek: use fseeko, not fseek
28210         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
28211         (clear_ungetc_buffer): Avoid potential problems on large files.
28212         * lib/freadseek.c (freadseek): Likewise.
28213         * modules/freadseek (Depends-on): Add fseeko.
28214         * modules/fseek (configure.ac): Set a witness.
28215         * tests/test-fflush.c (main): Use fseeko.
28216         * tests/test-fpurge.c (fseek): Disable link warning.
28217         * tests/test-freadable.c (fseek): Likewise.
28218         * tests/test-freading.c (fseek): Likewise.
28219         * tests/test-fseeko.c (fseek): Likewise.
28220         * tests/test-ftell.c (fseek): Likewise.
28221         * tests/test-ftello.c (fseek): Likewise.
28222         * tests/test-fwritable.c (fseek): Likewise.
28223         * tests/test-fwriting.c (fseek): Likewise.
28224
28225 2009-11-06  Simon Josefsson  <simon@josefsson.org>
28226
28227         * modules/memchr (Depends-on): Drop getpagesize dependency.
28228
28229 2009-11-06  Simon Josefsson  <simon@josefsson.org>
28230
28231         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
28232         Reported by Ludovic Courtès.
28233         * build-aux/pmccabe2html: Improve example usage.
28234         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
28235
28236 2009-11-06  Jim Meyering  <meyering@redhat.com>
28237
28238         do-release-commit-and-tag: New module.
28239         Automate the release-commit and tag process.
28240         * build-aux/do-release-commit-and-tag: New script, from coreutils.
28241         * modules/do-release-commit-and-tag: New file.
28242         * MODULES.html.sh (Support for maintaining and releasing): Add it.
28243
28244 2009-11-06  Simon Josefsson  <simon@josefsson.org>
28245
28246         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
28247         because test-select.c uses inet_pton.
28248
28249 2009-11-06  Simon Josefsson  <simon@josefsson.org>
28250
28251         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
28252         GETADDRINFO_LIB.  Bump serial number.
28253         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
28254         Suggested by Eric Blake <ebb9@byu.net>.
28255
28256 2009-11-05  Eric Blake  <ebb9@byu.net>
28257
28258         strtod: detect darwin bug
28259         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
28260         Reported by Leo Davis.
28261
28262         freopen-safer: new module
28263         * modules/freopen-safer: New module.
28264         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
28265         * lib/freopen-safer.c (freopen_safer): New file.
28266         * lib/stdio-safer.h (freopen_safer): New declaration.
28267         * lib/stdio--.h (freopen): New override.
28268         * MODULES.html.sh (File stream based Input/Output): Mention it.
28269         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
28270         freopen-safer module.
28271         * doc/posix-functions/stderr.texi (stderr): Likewise.
28272         * doc/posix-functions/stdin.texi (stdin): Likewise.
28273         * doc/posix-functions/stdout.texi (stdout): Likewise.
28274         * modules/freopen-safer-tests: New test.
28275         * tests/test-reopen-safer.c: New file.
28276
28277 2009-11-05  Jim Meyering  <meyering@redhat.com>
28278
28279         maint.mk: Prohibit inclusion of "close-stream.h" without use.
28280         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
28281
28282 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28283
28284         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
28285
28286 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28287
28288         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
28289
28290 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28291
28292         Fix link error.
28293         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
28294         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
28295
28296 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28297
28298         * tests/test-func.c: Also test value of __func__.
28299
28300 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28301
28302         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
28303         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
28304
28305 2009-11-05  Bruno Haible  <bruno@clisp.org>
28306
28307         Fix link error.
28308         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
28309         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
28310         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
28311
28312 2009-11-05  Bruno Haible  <bruno@clisp.org>
28313
28314         Tests for module 'inet_pton'.
28315         * modules/inet_pton-tests: New file.
28316         * tests/test-inet_pton.c: New file.
28317
28318 2009-11-05  Bruno Haible  <bruno@clisp.org>
28319
28320         Tests for module 'inet_ntop'.
28321         * modules/inet_ntop-tests: New file.
28322         * tests/test-inet_ntop.c: New file.
28323
28324 2009-11-04  Eric Blake  <ebb9@byu.net>
28325
28326         stdlib-safer: wrap all mkstemp variants
28327         * modules/mkostemp (configure.ac): Set witness.
28328         * modules/mkostemps (configure.ac): Likewise.
28329         * modules/mkstemps (configure.ac): Likewise.
28330         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
28331         (mkstemps_safer): Wrap more functions.
28332         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
28333         wrapping.
28334         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
28335         (mkstemps_safer): Implement the wrappers.
28336
28337         mkstemps, mkostemps: new modules
28338         * modules/mkostemps: New module.
28339         * modules/mkstemps: Likewise.
28340         * lib/mkostemps.c (mkostemps): New file.
28341         * lib/mkstemps.c (mkstemps): Likewise.
28342         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
28343         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
28344         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
28345         * modules/stdlib (Makefile.am): Substitute them.
28346         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
28347         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
28348         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
28349         * doc/gnulib.texi (Glibc stdlib.h): Include them.
28350         * MODULES.html.sh (File system functions): Mention them.
28351
28352         tempname: resync from glibc
28353         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
28354         same values for __GT_FILE as glibc.  Abort even when assertions
28355         are disabled.
28356         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
28357         match its value otherwise.  Allow idempotent inclusion.
28358         * lib/mkdtemp.c (mkdtemp): Adjust caller.
28359         * lib/mkostemp.c (mkostemp): Likewise.
28360         * lib/mkstemp.c (mkstemp): Likewise.
28361         * lib/tmpfile.c (tmpfile): Likewise.
28362         * NEWS: Document this.
28363
28364         utimens: fix use of futimens on older Linux
28365         * lib/utimens.c (fdutimens): Use updated, rather than original,
28366         timespec to avoid bug in older Linux kernel.
28367         Reported by Simon Josefsson.
28368
28369 2009-11-04  Bruno Haible  <bruno@clisp.org>
28370
28371         Make num_processors more flexible and consistent.
28372         * lib/nproc.h (enum nproc_query): New type.
28373         (num_processors): Add a 'query' argument.
28374         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
28375         (num_processors): Add a 'query' argument. Test the value of the
28376         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
28377         mingw, count the number of CPUs available for the current process.
28378         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
28379         Check for sched_getaffinity and sched_getaffinity_np.
28380         * modules/nproc (Depends-on): Add c-ctype, extensions.
28381         * NEWS: Mention the change.
28382
28383 2009-11-03  Bruno Haible  <bruno@clisp.org>
28384
28385         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
28386
28387 2009-11-03  Jim Meyering  <meyering@redhat.com>
28388
28389         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
28390         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
28391         if it is defined.
28392
28393 2009-11-02  Eric Blake  <ebb9@byu.net>
28394
28395         mktime, timegm: share common declaration
28396         * lib/mktime-internal.h: New file.
28397         * lib/mktime.c: Use it rather than open-coding a declaration.
28398         * lib/timegm.c: Likewise.
28399         * modules/mktime (Files): Ship it.
28400         * modules/timegm (Files): Likewise.
28401         Suggested by Bruno Haible.
28402
28403         test-update-copyright: update test to match script changes
28404         * tests/test-update-copyright.sh: Avoid hard-coding perl
28405         location.  Don't update *.bak created by earlier runs.
28406
28407 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
28408             Simon Josefsson  <simon@josefsson.org>
28409             Bruno Haible  <bruno@clisp.org>
28410
28411         Fix link error on Solaris 8.
28412         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
28413         also in libnsl. Define also INET_PTON_LIB.
28414         * modules/inet_pton (Link): New section.
28415
28416 2009-11-02  Simon Josefsson  <simon@josefsson.org>
28417             Bruno Haible  <bruno@clisp.org>
28418
28419         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
28420         * modules/inet_ntop (Link): New section.
28421         Reported by Boyan Kasarov <bkasarov@gmail.com>.
28422
28423 2009-11-02  Eric Blake  <ebb9@byu.net>
28424
28425         maint: avoid compiler warnings in m4 macros
28426         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
28427         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
28428
28429 2009-11-02  Simon Josefsson  <simon@josefsson.org>
28430
28431         * m4/pmccabe2html.m4: Remove file.
28432         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
28433         function.  Change maintainer.
28434         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
28435         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
28436         Courtès).
28437
28438 2009-10-31  Eric Blake  <ebb9@byu.net>
28439
28440         fseeko: fix m4 regression
28441         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
28442         regression from 2009-10-27.
28443         Reported by Ralf Wildenhues.
28444
28445 2009-10-31  Jim Meyering  <meyering@redhat.com>
28446
28447         inttostr: aesthetics and improved (compile-time) safety
28448         Define inttype_is_signed rather than inttype_is_unsigned,
28449         since the sole use is via "#if inttype_is_signed".
28450         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
28451         inttype_is_unsigned.
28452         * lib/offtostr.c (inttype_is_signed): Likewise.
28453         * lib/uinttostr.c (inttype_is_signed): Likewise.
28454         * lib/umaxtostr.c (inttype_is_signed): Likewise.
28455         * lib/inttostr.c (inttostr): Use verify to cross-check the
28456         inttype_is_signed value and the signedness of the actual type.
28457         * modules/inttostr (Depends-on): Add verify.
28458
28459 2009-10-30  Eric Blake  <ebb9@byu.net>
28460
28461         build: avoid compiler warnings
28462         * lib/fchmodat.c (lchmod): Mark unused variables.
28463         * lib/getopt.c (_getopt_initialize): Likewise.
28464         * lib/mktime.c (__mktime_internal): Provide prototype.
28465         * lib/inttostr.c (inttostr): Avoid compiler warning even with
28466         older gcc that do not understand #pragma GCC diagnostic.
28467         * lib/uinttostr.c (inttype_is_unsigned): Define.
28468         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
28469
28470 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
28471
28472         stat: fix compilation on AIX
28473         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
28474         only see struct stat64.
28475
28476 2009-10-30  Eric Blake  <ebb9@byu.net>
28477
28478         exclude: make more robust
28479         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
28480         rather than masking a coding bug.
28481         Suggested by Bruno Haible.
28482
28483 2009-10-30  Jim Meyering  <meyering@redhat.com>
28484
28485         perl scripts: remove #!/usr/bin/perl in favor of more portable...
28486         Rather than putting #!/usr/bin/perl on the first line,
28487         start with a variant of what's recommended by "man perlrun" that
28488         invokes the first "perl" program from your shell's search path.
28489         * build-aux/gitlog-to-changelog: Replace #!... as above.
28490         Add a "Local Variables" perl mode setting.
28491         Prompted by a patch from Ludovic Courtès.
28492         Improved by Eric Blake.
28493         * build-aux/useless-if-before-free: Likewise.
28494         * build-aux/announce-gen: Likewise.
28495         * build-aux/update-copyright: Likewise.
28496
28497 2009-10-29  Eric Blake  <ebb9@byu.net>
28498
28499         filenamecat-lgpl: adjust clients
28500         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
28501         filenamecat.
28502         * modules/renameat (Depends-on): Likewise.
28503
28504         filenamecat: split into filenamecat-lgpl
28505         * modules/filenamecat-lgpl: New module.
28506         * modules/filenamecat (Files): Move library-safe files into
28507         filenamecat-lgpl.
28508         (Depends-on): Add filenamecat-lgpl.
28509         (configure.ac): Declare witness.
28510         * lib/filenamecat.h (file_name_concat): Only declare when using
28511         GPL module.
28512         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
28513         Move...
28514         * lib/filenamecat-lgpl.c: ...into new file.
28515         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
28516         (gl_FILE_NAME_CONCAT): Use it.
28517         * MODULES.html.sh (File system functions): Mention new module.
28518
28519         argp: avoid memory leak
28520         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
28521         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
28522         base_name, since the latter malloc()s and can call exit().
28523         Leak introduced 2006-07-03.
28524
28525         dirname-lgpl: adjust clients that don't need full dirname
28526         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
28527         * modules/filenamecat (Depends-on): Likewise.
28528         * modules/linkat (Depends-on): Likewise.
28529         * modules/mkancesdirs (Depends-on): Likewise.
28530         * modules/mkdir (Depends-on): Likewise.
28531         * modules/openat (Depends-on): Likewise.
28532         * modules/savewd (Depends-on): Likewise.
28533         * modules/rename (Depends-on): Likewise.
28534         (License): Relax license.
28535         * modules/mkdir-tests (Depends-on): Drop progname.
28536         (Makefile.am): Delete unneeded LDADD.
28537         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
28538
28539         dirname: split into dirname-lgpl
28540         * modules/dirname-lgpl: New module.
28541         * modules/dirname (Files): Move library-safe files into
28542         dirname-lgpl.
28543         (Depends-on): Add dirname-lgpl.
28544         (configure.ac): Declare witness.
28545         * modules/double-slash-root (License): Relax license.
28546         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
28547         module.
28548         * lib/dirname.c (dir_len, mdir_name): Move...
28549         * lib/dirname-lgpl.c: ...into new file.
28550         * lib/basename.c (last_component, base_len): Move...
28551         * lib/basename-lgpl.c: ...into new file.
28552         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
28553         (gl_DIRNAME): Use it.
28554         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
28555         Mention new module.
28556         * modules/dirname-tests (Depends-on): Add progname.
28557         * tests/test-dirname.c (program_name): Delete.
28558
28559         mkdir: make safe for libraries
28560         * modules/mkdir (Depends-on): Drop xalloc.
28561         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
28562         exit.
28563
28564         tests: avoid some compiler warnings
28565         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
28566         literals.
28567         * tests/test-memchr.c (main): Avoid type mismatch.
28568         * tests/test-arpa_inet.c (main): Avoid unused parameters.
28569         * tests/test-base64.c (main): Likewise.
28570         * tests/test-getdelim.c (main): Likewise.
28571         * tests/test-gethostname.c (main): Likewise.
28572         * tests/test-getline.c (main): Likewise.
28573         * tests/test-netinet_in.c (main): Likewise.
28574         * tests/test-select.c (open_server_socket, main): Likewise.
28575         * tests/test-select-stdin.c (main): Likewise.
28576         * tests/test-sockets.c (main): Likewise.
28577         * tests/test-strsignal.c (main): Likewise.
28578         * tests/test-sys_select.c (main): Likewise.
28579         * tests/test-sys_socket.c (main): Likewise.
28580         * tests/test-u64.c (main): Likewise.
28581         * tests/test-xfprintf-posix.c (main): Likewise.
28582         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
28583
28584         sockets: avoid compiler warning
28585         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
28586
28587         maint: detect usage(1) and other suspicious exits
28588         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
28589
28590 2009-10-29  Jim Meyering  <meyering@redhat.com>
28591
28592         timespec: long-to-int truncation could make timespec_cmp malfunction
28593         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
28594         a multiple of 2^32 nanoseconds as no difference.
28595
28596 2009-10-28  Jim Meyering  <meyering@redhat.com>
28597
28598         fprintftime: wrap macro code argument in "do {...} while(0)"
28599         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
28600         cpy macro must be a statement that can be followed by a semicolon.
28601         Now that the else clause contains a comment and is hence longer
28602         than one line, I require curly braces.  That in turn requires
28603         that we wrap this code block in the standard do...while(0).
28604
28605         fprintftime: remove stray semicolon from previous change
28606         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
28607
28608         fprintftime: avoid a warning about ignored fwrite return value
28609         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
28610         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
28611         that is unsafe.
28612         * modules/fprintftime (Depends-on): Add ignore-value.
28613
28614         exclude: avoid an unwarranted warning
28615         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
28616
28617 2009-10-27  Eric Blake  <ebb9@byu.net>
28618
28619         fseek: avoid compilation failure when fflush is replaced
28620         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
28621         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
28622         module is in use.
28623         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
28624         module is not in use; since REPLACE_FSEEK worked otherwise.
28625         (GNULIB_FTELLO): Likewise for ftell.
28626         Reported by Ian Beckwith and others.
28627
28628 2009-10-27  Bruno Haible  <bruno@clisp.org>
28629
28630         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
28631         Reported by Jim Meyering.
28632
28633 2009-10-27  Jim Meyering  <jim@meyering.net>
28634             Bruno Haible  <bruno@clisp.org>
28635
28636         Avoid warning despite dropping the return value of fwrite.
28637         * lib/unicodeio.c: Include ignore-value.h.
28638         (fwrite_success_callback): Explicitly ignore fwrite's return value.
28639         * modules/unicodeio (Depends-on): Add ignore-value.
28640
28641 2009-10-26  Eric Blake  <ebb9@byu.net>
28642
28643         areadlinkat: fix fallback path
28644         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
28645         pointer and zero.
28646
28647 2009-10-22  Pádraig Brady  <P@draigBrady.com>
28648
28649         Use a better IO block size for modern systems
28650         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
28651         * lib/md2.c: Likewise.
28652         * lib/md4.c: Likewise.
28653         * lib/md5.c: Likewise.
28654         * lib/sha1.c: Likewise.
28655         * lib/sha256.c: Likewise.
28656         * lib/sha512.c: Likewise.
28657
28658 2009-10-22  Eric Blake  <ebb9@byu.net>
28659
28660         tests: avoid several compiler warnings
28661         * tests/test-getcwd.c (main): Avoid buffer underflow.
28662         * tests/test-getdate.c (main): String literals are not safe with
28663         putenv, so use setenv.  Declare unused argument.
28664         * modules/getdate-tests (Depends-on): Add setenv.
28665         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
28666         problems with string literals in char *.
28667         * tests/test-hash.c (main): Avoid shadowing declaration.
28668         (insert_new): Treat string literals as char const *.
28669         * tests/test-getopt.h (test_getopt): Likewise.
28670         (getopt_loop): Alter types to minimize casting elsewhere.
28671         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
28672         (test_getopt_long_posix): Likewise.
28673         (do_getopt_long): Add wrapper to minimize casting.
28674         * tests/test-atexit.c (clear_temp_file): Use void.
28675         * tests/test-areadlink-with-size.c (main): Declare unused
28676         arguments.
28677         * tests/test-areadlink.c (main): Likewise.
28678         * tests/test-areadlinkat-with-size.c (main): Likewise.
28679         * tests/test-areadlinkat.c (main): Likewise.
28680         * tests/test-canonicalize-lgpl.c (main): Likewise.
28681         * tests/test-canonicalize.c (main): Likewise.
28682         * tests/test-dirent-safer.c (main): Likewise.
28683         * tests/test-dirname.c (main): Likewise.
28684         * tests/test-dup2.c (main): Likewise.
28685         * tests/test-fchdir.c (main): Likewise.
28686         * tests/test-fcntl-h.c (main): Likewise.
28687         * tests/test-fcntl-safer.c (main): Likewise.
28688         * tests/test-fdopendir.c (main): Likewise.
28689         * tests/test-fdutimensat.c (main): Likewise.
28690         * tests/test-fflush.c (main): Likewise.
28691         * tests/test-filenamecat.c (main): Likewise.
28692         * tests/test-filevercmp.c (main): Likewise.
28693         * tests/test-fopen-safer.c (main): Likewise.
28694         * tests/test-fopen.c (main): Likewise.
28695         * tests/test-fpending.c (main): Likewise.
28696         * tests/test-fpurge.c (main): Likewise.
28697         * tests/test-freading.c (main): Likewise.
28698         * tests/test-fstatat.c (main): Likewise.
28699         * tests/test-fsync.c (main): Likewise.
28700         * tests/test-futimens.c (main): Likewise.
28701         * tests/test-getndelim2.c (main): Likewise.
28702         * tests/test-gettimeofday.c (main): Likewise.
28703         * tests/test-getopt.c (main): Likewise.
28704         * tests/test-i-ring.c (main): Likewise.
28705         * tests/test-inttypes.c (main): Likewise.
28706         * tests/test-link.c (main): Likewise.
28707         * tests/test-lstat.c (main): Likewise.
28708         * tests/test-math.c (main): Likewise.
28709         * tests/test-md5.c (main): Likewise.
28710         * tests/test-memchr2.c (main): Likewise.
28711         * tests/test-memrchr.c (main): Likewise.
28712         * tests/test-mkdir.c (main): Likewise.
28713         * tests/test-mkdirat.c (main): Likewise.
28714         * tests/test-mkfifoat.c (main): Likewise.
28715         * tests/test-open.c (main): Likewise.
28716         * tests/test-openat-safer.c (main): Likewise.
28717         * tests/test-openat.c (main): Likewise.
28718         * tests/test-quotearg.c (main): Likewise.
28719         * tests/test-rawmemchr.c (main): Likewise.
28720         * tests/test-readlink.c (main): Likewise.
28721         * tests/test-remove.c (main): Likewise.
28722         * tests/test-rename.c (main): Likewise.
28723         * tests/test-renameat.c (main): Likewise.
28724         * tests/test-rmdir.c (main): Likewise.
28725         * tests/test-sha1.c (main): Likewise.
28726         * tests/test-signal.c (main): Likewise.
28727         * tests/test-sigaction.c (main): Likewise.
28728         * tests/test-stat.c (main): Likewise.
28729         * tests/test-stat-time.c (main): Likewise.
28730         * tests/test-stddef.c (main): Likewise.
28731         * tests/test-stdint.c (main): Likewise.
28732         * tests/test-stdio.c (main): Likewise.
28733         * tests/test-stdlib.c (main): Likewise.
28734         * tests/test-strchrnul.c (main): Likewise.
28735         * tests/test-strerror.c (main): Likewise.
28736         * tests/test-string.c (main): Likewise.
28737         * tests/test-strtod.c (main): Likewise.
28738         * tests/test-strverscmp.c (main): Likewise.
28739         * tests/test-symlink.c (main): Likewise.
28740         * tests/test-symlinkat.c (main): Likewise.
28741         * tests/test-sys_stat.c (main): Likewise.
28742         * tests/test-sys_time.c (main): Likewise.
28743         * tests/test-time.c (main): Likewise.
28744         * tests/test-unistd.c (main): Likewise.
28745         * tests/test-unlink.c (main): Likewise.
28746         * tests/test-unlinkat.c (main): Likewise.
28747         * tests/test-utimens.c (main): Likewise.
28748         * tests/test-utimensat.c (main): Likewise.
28749         * tests/test-version-etc.c (main): Likewise.
28750         * tests/test-wchar.c (main): Likewise.
28751         * tests/test-wctype.c (main): Likewise.
28752         * tests/test-xprintf-posix.c (main): Likewise.
28753         * tests/test-posixtm.c (main): Likewise.
28754         (STREQ): Delete unused macro.
28755         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
28756         shadowed variables.
28757         * tests/test-memchr.c (main): Likewise.
28758
28759 2009-10-21  Eric Blake  <ebb9@byu.net>
28760
28761         areadlinkat: avoid failure on older glibc
28762         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
28763         rather than mis-comparing 0 against FUNC_RESULT of char*.
28764
28765 2009-10-21  Bruno Haible  <bruno@clisp.org>
28766
28767         * modules/stpncpy (License): Relicense under LGPLv2+.
28768         Reported by David Lutterkort <lutter@redhat.com>.
28769
28770 2009-10-20  Eric Blake  <ebb9@byu.net>
28771
28772         utimensat: work around Solaris 9 bug
28773         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
28774         has trailing slash bugs.
28775         * tests/test-lutimens.h (test_lutimens): Enhance test.
28776         * tests/test-utimens.h (test_utimens): Likewise.
28777         * doc/posix-functions/utime.texi (utime): Enhance documentation.
28778         * doc/posix-functions/utimes.texi (utimes): Likewise.
28779         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28780         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
28781         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
28782         * doc/posix-functions/futimens.texi (futimens): Likewise.
28783
28784         fdutimensat: new module
28785         * modules/fdutimensat: New file.
28786         * lib/fdutimensat.c (fdutimensat): Likewise.
28787         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
28788         * MODULES.html.sh (File system functions): Mention module.
28789         * modules/fdutimensat-tests: New test.
28790         * tests/test-fdutimensat.c: Likewise.
28791
28792         doc: regenerate INSTALL
28793         * doc/INSTALL: Reflect recent autoconf update.
28794         * doc/INSTALL.ISO: Likewise.
28795         * doc/INSTALL.UTF-8: Likewise.
28796
28797 2009-10-20  Pádraig Brady  <P@draigBrady.com>
28798
28799         acl: warn if ACL support is not detected
28800         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
28801
28802 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
28803
28804         * lib/nproc.h: Add extern "C" block for C++.
28805
28806 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
28807             Bruno Haible  <bruno@clisp.org>
28808
28809         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
28810         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
28811         * doc/posix-functions/isalpha.texi: Likewise.
28812         * doc/posix-functions/isblank.texi: Likewise.
28813         * doc/posix-functions/iscntrl.texi: Likewise.
28814         * doc/posix-functions/isdigit.texi: Likewise.
28815         * doc/posix-functions/isgraph.texi: Likewise.
28816         * doc/posix-functions/islower.texi: Likewise.
28817         * doc/posix-functions/isprint.texi: Likewise.
28818         * doc/posix-functions/ispunct.texi: Likewise.
28819         * doc/posix-functions/isspace.texi: Likewise.
28820         * doc/posix-functions/isupper.texi: Likewise.
28821         * doc/posix-functions/isxdigit.texi: Likewise.
28822
28823 2009-10-18  Bruno Haible  <bruno@clisp.org>
28824
28825         Tests for module 'isblank'.
28826         * modules/isblank-tests: New file.
28827         * tests/test-isblank.c: New file.
28828
28829         New module 'isblank'.
28830         * lib/isblank.c: New file.
28831         * m4/isblank.m4: New file.
28832         * modules/isblank: New file.
28833         * doc/posix-functions/isblank.texi: Mention the new module.
28834
28835 2009-10-18  Bruno Haible  <bruno@clisp.org>
28836
28837         New module 'ctype'.
28838         * lib/ctype.in.h: New file.
28839         * m4/ctype.m4: New file.
28840         * modules/ctype: New file.
28841         * doc/posix-headers/ctype.texi: Mention the new module.
28842
28843 2009-10-18  Jim Meyering  <meyering@redhat.com>
28844
28845         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
28846         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
28847         right after its initialization, rather than farther down.
28848         Keeping these in close proximity makes it easier to ensure
28849         that each such variable is initialized.  E.g.,
28850
28851             LIB_CLOCK_GETTIME=
28852             AC_SUBST([LIB_CLOCK_GETTIME])
28853
28854         This change also increments these serial numbers.
28855         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
28856         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
28857         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28858
28859 2009-10-18  Bruno Haible  <bruno@clisp.org>
28860
28861         Don't let environment variables perturb build.
28862         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
28863         (gl_PREREQ_GETHRXTIME): ... not here.
28864
28865 2009-10-18  Bruno Haible  <bruno@clisp.org>
28866
28867         Avoid symlink attack in localcharset module.
28868         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
28869         (O_NOFOLLOW): Define fallback.
28870         (get_charset_aliases): Don't open the file if it is a symbolic link.
28871         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
28872         gl_FCNTL_H.
28873         (gl_FCNTL_H): Require it.
28874         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
28875         * modules/localcharset (Files): Add m4/fcntl_h.m4.
28876         Reported by Fergal Glynn <fglynn@veracode.com>.
28877
28878 2009-10-18  Bruno Haible  <bruno@clisp.org>
28879
28880         Implement nproc for mingw.
28881         * lib/nproc.c: Include <windows.h>
28882         (num_processors): On native Windows platforms, try GetSystemInfo.
28883
28884 2009-10-18  Bruno Haible  <bruno@clisp.org>
28885
28886         Implement nproc for IRIX.
28887         * lib/nproc.c: Include <sys/sysmp.h>.
28888         (num_processors): On IRIX systems, try sysmp.
28889         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
28890
28891 2009-10-18  Bruno Haible  <bruno@clisp.org>
28892
28893         Implement nproc for HP-UX.
28894         * lib/nproc.c: Include <sys/pstat.h>
28895         (num_processors): On HP-UX systems, try pstat_getdynamic.
28896         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
28897         pstat_getdynamic.
28898
28899 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
28900             Bruno Haible  <bruno@clisp.org>
28901
28902         Implement nproc for NetBSD, OpenBSD.
28903         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
28904         (ARRAY_SIZE): New macro.
28905         (num_processors): On BSD systems, try sysctl of HW_NCPU.
28906         * m4/nproc.m4: New file.
28907         * modules/nproc (Files): Add m4/nproc.m4.
28908         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
28909         (Makefile.am): Instead, augment lib_SOURCES.
28910
28911 2009-10-18  Bruno Haible  <bruno@clisp.org>
28912
28913         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
28914         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
28915         sys/param.h.
28916
28917 2009-10-16  Eric Blake  <ebb9@byu.net>
28918
28919         utimensat: new module
28920         * modules/utimensat: New file.
28921         * lib/utimensat.c (utimensat): Likewise.
28922         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28923         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
28924         so we can work around Linux bugs.
28925         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28926         * modules/sys_stat (Makefile.am): Substitute them.
28927         * lib/sys_stat.in.h (utimensat): Declare it.
28928         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28929         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28930         * modules/utimensat-tests: New test.
28931         * tests/test-utimensat.c: Likewise.
28932
28933         utimens: let lutimens work on non-symlinks
28934         * lib/utimens.c (lutimens): Fall back to utimens rather than
28935         failing with ENOSYS, when file is not a symlink.
28936         (utimens): Reduce redirection.
28937         * tests/test-lutimens.h (test_lutimens): Update test to cover
28938         non-symlinks.
28939         * tests/test-utimens.h (test_utimens): Update test to cover
28940         symlinks.
28941         * tests/test-utimens.c (main): Update caller.
28942
28943         utimens: cache whether utimensat syscall works
28944         * lib/utimens.c (utimensat_works_really): New cache variable.
28945         (fdutimens, lutimens): Use it to avoid failing syscall.
28946
28947         test-stat-time, test-utimens: improve portability
28948         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
28949         ext4 on alpha, and for cygwin.
28950         * tests/test-utimens-common.h: New file.
28951         (nap): Factor delays into single function.
28952         * tests/test-lutimens.h (test_lutimens): Use new header.
28953         * tests/test-futimens.h (test_futimens): Likewise.
28954         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
28955         timestamps to occur from same machine, as was done previously for
28956         test_utimens.
28957         * modules/utimens-tests (Files): Ship new file.
28958         * modules/futimens-tests (Files): Likewise.
28959         Reported in part by Jim Meyering.
28960
28961         sys_stat: sort replacement declarations
28962         * lib/sys_stat.in.h: Sort declarations.
28963         * lib/futimens.c (futimens): Fix typo.
28964
28965 2009-10-15  Jim Meyering  <meyering@redhat.com>
28966
28967         don't let environment settings perturb build
28968         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
28969         could cause a configure-time and/or build-time malfunction.
28970         Typically, a configure-time function-in-library test is performed
28971         via code like this:
28972
28973           LIB_VAR=
28974           AC_SUBST([LIB_VAR])
28975           prefix_saved_LIBS=$LIBS
28976             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
28977                        [test "$ac_cv_search_FUNC" = "none required" ||
28978                         LIB_VAR=$ac_cv_search_FUNC])
28979           LIBS=$prefix_saved_LIBS
28980
28981         However, in each of the files affected by this change, the LIB_VAR=
28982         initialization was omitted.  Thus, when set in the environment, its
28983         value would propagate into generated Makefiles when FUNC is not found
28984         in LIB_NAME.
28985         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
28986         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
28987         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28988
28989 2009-10-14  Eric Blake  <ebb9@byu.net>
28990
28991         fchdir: avoid infinite recursion in mingw
28992         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
28993         recursing.
28994
28995         test-stat-time: port to mingw
28996         * tests/test-stat-time.c (force_unlink): Return a value.
28997         (test_ctime) [W32]: Fix compilation error.
28998         (nap): Don't call usleep with too large an argument.  Use
28999         force_unlink.
29000         * doc/pastposix-functions/usleep.texi (usleep): Document the
29001         portability issue.
29002
29003 2009-10-13  Jim Meyering  <meyering@redhat.com>
29004
29005         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
29006         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
29007         * modules/pipe-filter-ii: Likewise.
29008         * modules/sys_socket-tests: Likewise.
29009         * modules/tsearch-tests: Likewise.
29010         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
29011         (check): Depend on it.
29012
29013 2009-10-12  Eric Blake  <ebb9@byu.net>
29014
29015         utimens-tests: port to NFS file systems
29016         * tests/test-utimens.h (test_utimens): Refactor utimecmp
29017         comparisons to avoid spurious failures from timestamp drift
29018         between NFS machines.
29019
29020 2009-10-12  Eric Blake  <ebb9@byu.net>
29021
29022         stat-time-tests: minor cleanups
29023         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
29024         * tests/test-stat-time.c (nap): Separate assignment from call.
29025         Suggested by Paolo Bonzini and Bruno Haible.
29026
29027         sys_stat: guarantee struct timespec
29028         * lib/sys_stat.in.h (includes): Always include <time.h>
29029         * modules/sys_stat (Depends-on): Add time.
29030         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
29031         mode_t permission values.
29032         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
29033         get at subsecond timestamps.
29034
29035 2009-10-10  Eric Blake  <ebb9@byu.net>
29036
29037         futimens: new module
29038         * modules/futimens: New file.
29039         * lib/futimens.c (futimens): Likewise.
29040         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
29041         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
29042         we can work around Linux bugs.
29043         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29044         * modules/sys_stat (Makefile.am): Substitute them.
29045         * lib/sys_stat.in.h (futimens): Declare it.
29046         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29047         * doc/posix-functions/futimens.texi (futimens): Likewise.
29048         * modules/futimens-tests: New test.
29049         * tests/test-futimens.c: Likewise.
29050
29051         utimens: introduce fdutimens
29052         * lib/utimens.h (fdutimens): New prototype.
29053         * lib/utimens.c (gl_futimens): Move guts...
29054         (fdutimens): ...to new interface.
29055         * tests/test-utimens.c (do_fdutimens): Use it.
29056
29057         utimens: add UTIME_NOW and UTIME_OMIT support
29058         * lib/utimens.c (validate_timespec, update_timespec): New helper
29059         functions.
29060         (gl_futimens, lutimens): Use them.
29061         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
29062         stdbool, sys_stat.
29063         (Link): Mention resulting library dependency.
29064         * modules/utimecmp (Link): Likewise.
29065         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
29066         (Makefile.am): Pick up library dependency.
29067         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
29068         definition.
29069         * tests/test-sys_stat.c: Test the definitions.
29070         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
29071         * NEWS: Document library dependency.
29072
29073         utimecmp: support symlink timestamps
29074         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
29075         hashing when possible.  Use pathconf when available.
29076         (SYSCALL_RESOLUTION): Recognize tighter resolution.
29077         * modules/utimecmp (Depends-on): Add lstat.
29078
29079         utimens: add lutimens interface
29080         * lib/utimens.c (lutimens): New function.
29081         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
29082         * lib/utimens.h (lutimens): Declare new interface.
29083         * tests/test-utimens.c (main): Enhance test.
29084         * tests/test-lutimens.h (test_lutimens): New file.
29085         * modules/utimens-tests (Files): Distribute it.
29086         (Depends-on): Add symlink.
29087         (configure.ac): Check for usleep.
29088
29089         utimens: validate futimens usage
29090         * lib/utimens.c (gl_futimens): Require valid fd up front, using
29091         fewer syscalls on failure later on.  Avoid compiler warning on
29092         mingw.
29093         * modules/utimens (Depends-on): Add dup2.
29094
29095         utimens: add test
29096         * modules/utimens-tests: New test.
29097         * tests/test-utimens.h: New file.
29098         * tests/test-futimens.h: Likewise.
29099         * tests/test-utimens.c: Likewise.
29100
29101         doc: mention timestamp portability issues
29102         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
29103         instead.
29104         * doc/posix-functions/utime.texi (utime): Likewise.
29105         * doc/posix-functions/utimes.texi (utimes): Likewise.
29106         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
29107         instead.
29108         * doc/posix-functions/futimens.texi (futimens): Mention utimens
29109         module.
29110         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
29111         Mention weakness with symlink timestamps.
29112         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
29113         to utimensat/futimens instead.
29114         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
29115
29116         test-dup2: enhance test
29117         * tests/test-dup2.c (main): Also check AT_FDCWD.
29118
29119         test-stat-time: avoid more spurious failures
29120         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
29121         xfs; and avoid race if the two timestamps cross quantization edge.
29122
29123         relocatable: prefer 'file system' over 'filesystem'
29124         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
29125         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
29126         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
29127         * doc/relocatable.texi (Enabling Relocatability): Likewise.
29128         * lib/relocatable.c (compute_curr_prefix): Likewise.
29129
29130 2009-10-10  Jim Meyering  <meyering@redhat.com>
29131
29132         stat-time-tests: check for the usleep function
29133         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
29134
29135 2009-10-10  Bruno Haible  <bruno@clisp.org>
29136
29137         * modules/xnanosleep: Put the Link section after the Include section.
29138
29139 2009-10-09  Eric Blake  <ebb9@byu.net>
29140
29141         dup2: work around FreeBSD 6.1 bug
29142         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
29143         * doc/posix-functions/dup2.texi (dup2): Document it.
29144         Reported by Nelson H. F. Beebe and Jim Meyering.
29145
29146         test-stat-time: port to buggy NFS clients
29147         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
29148         (test_ctime): Also skip test if mtime and ctime are skewed.
29149
29150         maint: prefer 'file system' over 'filesystem'
29151         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
29152         * doc/posix-functions/lstat.texi (lstat): Likewise.
29153         * lib/file-has-acl.c (file_has_acl): Likewise.
29154         * lib/fwriteerror.c [TEST]: Likewise.
29155         * tests/test-areadlink.h (test_areadlink): Likewise.
29156         * tests/test-areadlinkat-with-size.c (main): Likewise.
29157         * tests/test-areadlinkat.c (main): Likewise.
29158         * tests/test-canonicalize-lgpl.c (main): Likewise.
29159         * tests/test-canonicalize.c (main): Likewise.
29160         * tests/test-fstatat.c (main): Likewise.
29161         * tests/test-linkat.c (main): Likewise.
29162         * tests/test-lstat.h (test_lstat_func): Likewise.
29163         * tests/test-mkdir.h (test_mkdir): Likewise.
29164         * tests/test-readlink.h (test_readlink): Likewise.
29165         * tests/test-remove.c (main): Likewise.
29166         * tests/test-rename.h (test_rename): Likewise.
29167         * tests/test-renameat.c (main): Likewise.
29168         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29169         * tests/test-symlink.h (test_symlink): Likewise.
29170         * tests/test-symlinkat.c (main): Likewise.
29171         * tests/test-unlink.h (test_unlink_func): Likewise.
29172         * tests/test-unlinkat.c (main): Likewise.
29173
29174         maint: make realtime library usage explicit
29175         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
29176         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
29177         * modules/settime (Link): Likewise.
29178         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
29179
29180         test-stat-time: speed up execution
29181         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
29182         warning on mingw.
29183         (nap): New helper function.
29184         (prepare_test): Use it to reduce sleep time.
29185         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
29186         execution.
29187         * modules/stat-time-tests (configure.ac): Check for usleep.
29188
29189 2009-10-09  Jim Meyering  <meyering@redhat.com>
29190
29191         selinux-h: always use getfilecon wrappers
29192         * lib/getfilecon.c: New file.
29193         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
29194         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
29195         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
29196         (fgetfilecon): Provide a stub.
29197         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
29198         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
29199         file unconditionally.
29200         When <selinux/selinux.h> is found, arrange to use wrappers.
29201         * modules/selinux-h (Files): Add getfilecon.c.
29202         (Makefile.am): Substitute include-next-related bits
29203         into the now-always-generated selinux/selinux.h file.
29204         * doc/glibc-functions/lgetfilecon.texi: New file.
29205         * doc/glibc-functions/fgetfilecon.texi: New file.
29206         * doc/glibc-functions/getfilecon.texi: New file.
29207         * doc/glibc-functions/getfilecon-desc.texi: New file.
29208         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
29209         which to pull in the new files.
29210         * MODULES.html.sh (Misc): Add selinux-h.
29211
29212 2009-10-08  Jim Meyering  <meyering@redhat.com>
29213
29214         unistd: fix comment typo
29215         * lib/unistd.in.h (euidaccess): Fix a comment typo.
29216
29217 2009-10-08  Eric Blake  <ebb9@byu.net>
29218
29219         areadlink: use SIZE_MAX consistently
29220         * modules/areadlink (Depends-on): Add stdint.
29221         * modules/areadlink-with-size (Depends-on): Likewise.
29222         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
29223         gives NULL; drop sys/types, since unistd gives size_t; and add
29224         stdint for SIZE_MAX.
29225         (SIZE_MAX): Rely on headers.
29226         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
29227         and add stdint.
29228         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
29229         (SIZE_MAX): Likewise.
29230         (INITIAL_BUF_SIZE): Turn into enum.
29231         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
29232
29233 2009-10-08  Jim Meyering  <meyering@redhat.com>
29234
29235         areadlinkat: avoid compilation failure
29236         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
29237         Fix typo in comment.
29238
29239 2009-10-07  Eric Blake  <ebb9@byu.net>
29240
29241         areadlinkat-with-size: new module
29242         * modules/areadlinkat-with-size: New module.
29243         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
29244         * lib/areadlink.h (areadlinkat): Declare it.
29245         * MODULES.html.sh (File system functions): Mention it.
29246         * modules/areadlinkat-with-size-tests: New test.
29247         * tests/test-areadlinkat-with-size.c: New file.
29248
29249         xreadlinkat: new module
29250         * modules/xreadlinkat: New module.
29251         * lib/xreadlinkat.c (xreadlinkat): New file.
29252         * lib/xreadlink.h (xreadlinkat): Declare it.
29253         * MODULES.html.sh (File system functions): Mention it.
29254
29255         areadlinkat: new module
29256         * lib/at-func.c (FUNC_FAIL): New define.
29257         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
29258         * modules/areadlinkat: New module.
29259         * lib/linkat.c (areadlinkat): Move...
29260         * lib/areadlinkat.c (areadlinkat): ...to new file.
29261         * lib/areadlink.h (areadlinkat): Declare it.
29262         * modules/linkat (Depends-on): Add areadlinkat.
29263         * MODULES.html.sh (File system functions): Mention it.
29264         * modules/areadlinkat-tests: New test.
29265         * tests/test-areadlinkat.c: New file.
29266
29267         areadlink, areadlink-with-size: add tests
29268         * modules/areadlink-tests: New test.
29269         * modules/areadlink-with-size-tests: Likewise.
29270         * tests/test-areadlink.h: New file.
29271         * tests/test-areadlink.c: Likewise.
29272         * tests/test-areadlink-with-size.c: Likewise.
29273
29274         maint: minor cleanups
29275         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
29276         _UNUSED_PARAMETER_ instead.
29277         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
29278         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
29279         * modules/linkat-tests (Files): Distribute test-link.h.
29280
29281         openat, utimens: whitespace cleanup
29282         * lib/openat.c: Prefer space throughout, rather than mix of 8
29283         spaces vs. tabs.
29284         * lib/at-func.c: Likewise.
29285         * lib/utimens.c: Likewise.
29286
29287         openat: avoid using wrong fd
29288         * lib/openat.c (openat_permissive): Reject user's fd if saving the
29289         working directory chooses same fd.
29290         * lib/at-func.c (AT_FUNC_NAME): Likewise.
29291
29292         mkdir, mkdirat: fix cygwin 1.5.x bug
29293         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
29294         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
29295         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
29296         bug.
29297         (gl_PREREQ_MKDIR): Delete unused macro.
29298         * modules/mkdir (Files): Track file rename.
29299         (configure.ac): Update macro name.
29300         * modules/openat (Depends-on): Add mkdir.
29301         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
29302
29303         mkdir, mkdirat: add tests
29304         * modules/mkdir-tests: New test.
29305         * tests/test-mkdir.h: New file.
29306         * tests/test-mkdir.c: Likewise.
29307         * tests/test-mkdirat.c: Likewise.
29308         * modules/openat-tests (Files): Add new files.
29309         (Makefile.am): Run new test.
29310
29311 2009-10-06  Eric Blake  <ebb9@byu.net>
29312
29313         doc: tweak *at function documentation
29314         * doc/posix-functions/faccessat.texi (faccessat): Mention
29315         known issue with replacement.
29316         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
29317         * doc/posix-functions/linkat.texi (linkat): Likewise.
29318         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
29319         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
29320         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29321         * doc/posix-functions/renameat.texi (renameat): Likewise.
29322         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
29323
29324         openat: fix GNU/Hurd bug in unlinkat
29325         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
29326         broken.
29327         * doc/posix-functions/unlink.texi (unlink): Document this.
29328         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
29329
29330         fdopendir: fix GNU/Hurd bug
29331         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
29332         allowing non-directory fds.
29333         * lib/fdopendir.c (rpl_fdopendir): Work around it.
29334         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
29335         * modules/dirent (Makefile.am): Substitute it.
29336         * lib/dirent.in.h (fdopendir): Declare replacement.
29337         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
29338         * tests/test-fdopendir.c (main): Test something other than
29339         /dev/null, since on Hurd that behaves like a directory.
29340
29341         test-symlink: port to GNU/Hurd
29342         * tests/test-symlink.h (test_symlink): Relax expected errno.
29343
29344         doc: tweak more cygwin information
29345         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
29346         now compatible with glibc.
29347         * doc/posix-functions/getopt.texi (getopt): Likewise.
29348
29349         getopt-gnu: add another test
29350         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
29351         guarantee behavior relied on by m4.
29352         * tests/test-getopt.c (main): Use it.
29353         * modules/getopt-posix-tests (Depends-on): Add setenv.
29354         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
29355
29356         getopt: fix compilation on darwin
29357         * lib/getopt.in.h (includes): Leave breadcrumbs during system
29358         include.
29359         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
29360         Reported by Ludovic Courtès.
29361
29362 2009-10-06  Bruno Haible  <bruno@clisp.org>
29363
29364         * modules/size_max (Description): Discourage its use.
29365         Reported by Simon Josefsson.
29366
29367 2009-10-06  Jim Meyering  <meyering@redhat.com>
29368
29369         linkat: avoid compilation failure
29370         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
29371
29372 2009-10-05  Eric Blake  <ebb9@byu.net>
29373
29374         linkat: support Linux 2.6.17
29375         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
29376         linkat on Linux, but allow cache variable override.
29377         * lib/linkat.c (rpl_linkat): Define override.
29378         * modules/linkat (Depends-on): Add symlinkat.
29379         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
29380         * modules/unistd (Makefile.am): Substitute it.
29381         * lib/unistd.in.h (linkat): Declare replacement.
29382         Reported by Pádraig Brady.
29383
29384         quotearg: port test to systems with C.UTF-8 locale
29385         * tests/test-quotearg.c (struct result_strings): Add another
29386         member, differentiating between C.ASCII and C.UTF-8 handling.
29387         (compare_strings): Add parameter.
29388         (main): Adjust all callers.
29389
29390         getopt: avoid clash with FreeBSD _getopt_internal
29391         * lib/getopt.in.h (_getopt_internal): Override the name.
29392         * lib/getopt_int.h (includes): Pick up any overrides.
29393         Reported by Reuben Thomas.
29394
29395         hash: allow C89 compilation
29396         * lib/hash.c (check_tuning): Move declaration before statement.
29397         Reported by Reuben Thomas.
29398
29399 2009-10-05  Karl Berry  <karl@gnu.org>
29400
29401         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
29402
29403 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
29404             Bruno Haible  <bruno@clisp.org>
29405
29406         * lib/uname.c (uname): Use a table-driven algorithm to compute
29407         Windows NT versions.
29408
29409 2009-10-04  Bruno Haible  <bruno@clisp.org>
29410
29411         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
29412         program_invocation_short_name.
29413         * modules/progname (configure.ac): Test for presence of
29414         program_invocation_short_name.
29415         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
29416
29417 2009-10-04  Bruno Haible  <bruno@clisp.org>
29418
29419         * lib/progname.c (set_program_name): Fix comment.
29420         Reported by Jim Meyering.
29421
29422 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
29423             Bruno Haible  <bruno@clisp.org>
29424
29425         * lib/uname.c: Include <string.h>.
29426         (uname): Do only one call to GetVersionEx in the common case.
29427
29428 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
29429             Bruno Haible  <bruno@clisp.org>
29430
29431         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
29432         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
29433         (uname): Add support for Windows CE and various non-x86 CPU types.
29434
29435 2009-10-03  Bruno Haible  <bruno@clisp.org>
29436
29437         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
29438         invocation to tests/configure.ac.
29439         Reported by Ian Beckwith <ianb@erislabs.net>.
29440
29441 2009-10-02  Eric Blake  <ebb9@byu.net>
29442
29443         fchdir: avoid compiler warning
29444         * lib/fchdir.c (canonicalize_file_name)
29445         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
29446
29447         test-open: support mingw errno values
29448         * tests/test-open.h (test_open): Relax test.
29449         * tests/test-fopen.h (test_fopen): Likewise.
29450         * tests/test-openat-safer.c (main): Likewise.
29451
29452         open: fix opening directory on mingw
29453         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
29454
29455         test-open: on GNU/Hurd, /dev/null is a directory
29456         * tests/test-fopen.h (main): Rename...
29457         (test_fopen): ...to this.  Use a guaranteed non-directory when
29458         confirming open behavior on trailing slash.
29459         * tests/test-openat-safer.c (main): Likewise.
29460         * tests/test-open.h (main): Likewise....
29461         (test_open): ...to this.
29462         * tests/test-fopen.c (main): Adjust caller.
29463         * tests/test-fopen-safer.c (main): Likewise.
29464         * tests/test-open.c (main): Likewise.
29465         * tests/test-fcntl-safer.c (main): Likewise.
29466         Reported by Samuel Thibault.
29467
29468         rename, fchdir: don't ignore chdir failure
29469         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
29470         * lib/rename.c (rpl_rename) [W32]: Likewise.
29471         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
29472         an empty destination directory if source cannot be renamed,
29473         although there is still possibility for failure.
29474         * doc/posix-functions/rename.texi (rename): Document the race.
29475         Reported by Jim Meyering.
29476
29477         maint: cleanup whitespace in recent commits
29478         * lib/rename.c (rpl_rename): Remove tabs.
29479         * tests/test-link.h (test_link): Likewise.
29480         * lib/fchdir.c (get_name): Likewise.
29481         Reported by Jim Meyering.
29482
29483 2009-10-02  Ben Pfaff  <blp@gnu.org>
29484
29485         relocatable-prog-wrapper: Add missing dependency on
29486         double-slash-root.
29487         * modules/relocatable-prog-wrapper: Add dependency.
29488         Reported by Ian Beckwith <ianb@erislabs.net>.
29489
29490 2009-10-02  Eric Blake  <ebb9@byu.net>
29491
29492         renameat: fix Solaris bugs
29493         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
29494         needed fixing.
29495         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
29496         * modules/stdio (Makefile.am): Substitute it.
29497         * lib/stdio.in.h (renameat): Declare replacement.
29498         * lib/renameat.c (rpl_renameat): Implement fix.
29499
29500         renameat: new module
29501         * modules/renameat: New file.
29502         * lib/renameat.c (renameat): Likewise.
29503         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
29504         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
29505         * modules/stdio (Makefile.am): Substitute them.
29506         * lib/stdio.in.h (renameat): Declare it.
29507         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29508         * doc/posix-functions/renameat.texi (renameat): Likewise.
29509         * modules/renameat-tests: New test.
29510         * tests/test-renameat.c: Likewise.
29511
29512         rename: fix mingw bugs
29513         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
29514         directory overwrite bugs.
29515
29516         rename: fix another cygwin 1.5 bug
29517         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
29518         checks.
29519         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
29520         unnecessary cygwin workarounds.  Also work around bug with moving
29521         full directory onto an empty one.
29522         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
29523
29524         rename-dest-slash: merge into rename module
29525         * modules/rename-dest-slash (Status): Mark obsolete.
29526         (Depends-on): Add rename.
29527         (Files): Let rename do it all.
29528         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
29529         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
29530         * m4/rename-dest-slash.m4: ...so this file can be deleted.
29531         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
29532         * lib/rename.c (rpl_rename): Update comments.
29533
29534         rename: fix cygwin 1.5.x bugs
29535         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
29536         * lib/rename.c (rpl_rename): Work around them.
29537         * modules/rename (Depends-on): Add same-inode.
29538
29539         rename: fix Solaris 10 bug
29540         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
29541         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
29542         was the only bug.
29543
29544         rename: fix Solaris 9 bug
29545         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
29546         on non-directory.  Avoid calling exit.
29547         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
29548         strdup.
29549         * modules/rename-tests (Depends-on): Drop lstat.
29550         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
29551         (gl_PREREQ_RENAME): Delete unused macro.
29552
29553         rename-dest-slash: fix NetBSD bug
29554         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
29555         links.
29556         * modules/rename-dest-slash (Depends-on): Add same-inode.
29557
29558         rename-tests: new test, exposes several platform bugs
29559         * modules/rename-tests: New file.
29560         * tests/test-rename.h: Likewise.
29561         * tests/test-rename.c: Likewise.
29562         * doc/posix-functions/rename.texi (rename): Improve documentation,
29563         including bugs that will eventually be fixed in gnulib.
29564
29565 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
29566
29567         * lib/uname.c: Include <stdlib.h>
29568         (uname): Assume version info is available.
29569
29570 2009-10-02  Jim Meyering  <meyering@redhat.com>
29571
29572         gnu-web-doc-update: correct --help output
29573         * build-aux/gnu-web-doc-update: Make --help output relevant.
29574
29575         gnu-web-doc-update: add standard options
29576         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
29577
29578         gnu-web-doc-update: New module.
29579         Use this script to automatically update the on-line web documentation
29580         for your GNU project at http://www.gnu.org/software/$pkg/manual/
29581         * modules/gnu-web-doc-update: New file, from coreutils.
29582         * build-aux/gnu-web-doc-update: New script.
29583
29584 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
29585
29586         link: LoadLibrary is not needed.
29587         * lib/link.c: Use GetModuleHandle.
29588
29589 2009-10-01  Eric Blake  <ebb9@byu.net>
29590
29591         getopt: bump serial number
29592         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
29593         change.
29594
29595         tests: tighten link, rmdir, and remove tests
29596         * tests/test-link.h (includes): No need to use <config.h> here.
29597         Clean up if directory hard link was created, otherwise test for
29598         trailing '.'.
29599         * tests/test-linkat.c (main): Simplify.
29600         * tests/test-remove.c (main): Enhance test for trailing '.'.
29601         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29602
29603 2009-10-01  Jim Meyering  <meyering@redhat.com>
29604
29605         maint.mk: requiring "make major" was annoying, for a "minor" release.
29606         What is intended is "stable", to contrast with alpha and beta,
29607         so require "make stable", not "make major".
29608         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
29609         (get_tool_versions): Likewise.
29610         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
29611
29612 2009-09-30  Ben Pfaff  <blp@gnu.org>
29613
29614         Fix broken build of replacement for Windows tmpfile().
29615         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
29616         flags argument added along with the 'mkostemp' module.
29617
29618 2009-09-28  Bruno Haible  <bruno@clisp.org>
29619
29620         Avoid identifier clash with POSIX function 'remove' defined as a macro.
29621         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
29622         to 'remove_elt'.
29623         (gl_list_remove): Update.
29624         * lib/gl_list.c (gl_list_remove): Update.
29625         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
29626         to 'remove_elt'.
29627         (gl_oset_remove): Update.
29628         * lib/gl_list.c (gl_oset_remove): Update.
29629         Reported by Eric Blake.
29630
29631 2009-09-28  Eric Blake  <ebb9@byu.net>
29632
29633         doc: mention yet more cygwin 1.7 status
29634         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
29635         cygwin.
29636         * doc/glibc-functions/execvpe.texi (execvpe): New file.
29637         * doc/gnulib.texi (Glibc unistd.h): Mention it.
29638
29639         argp: fix test failure
29640         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
29641         that are not upper-case.  Pass correct range to tolower.
29642
29643 2009-09-27  Jim Meyering  <meyering@redhat.com>
29644
29645         test-yesno: work around sparc-dash here-document infelicity
29646         Without this change, the literal \177 byte in a here document
29647         would make dash 0.5.5.1-3 access uninitialized memory.
29648         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
29649         Instead, use a marker, "@", and filter through tr to create the desired
29650         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
29651
29652 2009-09-27  Bruno Haible  <bruno@clisp.org>
29653
29654         Disable untested support for new flavours of ACLs on AIX.
29655         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
29656         progress.
29657         * lib/set-mode-acl.c (qset_acl): Likewise.
29658
29659 2008-12-07  Bruno Haible  <bruno@clisp.org>
29660
29661         Add support for new flavours of ACLs on AIX. (Untested.)
29662         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
29663         (file_has_acl): Add support for newer AIX.
29664         * lib/set-mode-acl.c (qset_acl): Likewise.
29665         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
29666         Rainer Tammer <tammer@tammer.net>.
29667
29668 2009-09-26  Eric Blake  <ebb9@byu.net>
29669
29670         argp: fix compilation of getopt
29671         * lib/getopt.in.h (includes): Use different guard than glibc.
29672         Reported by Sergey Poznyakoff.
29673
29674         doc: mention more cygwin 1.7 status
29675         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
29676         bug.
29677         * doc/posix-functions/execl.texi (execl): Likewise.
29678         * doc/posix-functions/execle.texi (execle): Likewise.
29679         * doc/posix-functions/execlp.texi (execlp): Likewise.
29680         * doc/posix-functions/execv.texi (execv): Likewise.
29681         * doc/posix-functions/execve.texi (execve): Likewise.
29682         * doc/posix-functions/execvp.texi (execvp): Likewise.
29683         * doc/glibc-functions/canonicalize_file_name.texi
29684         (canonicalize_file_name): Cygwin 1.7 now provides this.
29685         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
29686         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
29687         on AT_SYMLINK_NOFOLLOW.
29688
29689 2009-09-24  Eric Blake  <ebb9@byu.net>
29690
29691         test-linkat: make test more robust
29692         * tests/test-linkat.c (main): Avoid collision with EEXIST.
29693
29694         getopt: fix inclusion guards for cygwin
29695         * modules/getopt-posix (Depends-on): Add include-next.
29696         (Makefile.am): Substitute more items in replacement header.
29697         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
29698         <getopt.h>.
29699         * lib/getopt.in.h (includes): Use split inclusion guard, and
29700         prefer <getopt.h> over include <unistd.h> when one is present.
29701         (option): Also override name of 'struct option'.
29702
29703         same-inode: revert prior change; it is not yet ready
29704         * NEWS: Undo mention of this change.
29705         * lib/same-inode.h (same-inode.h): Undo tri-state change.
29706         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
29707         * lib/cycle-check.c (cycle_check): Likewise.
29708         * lib/same.c (same_name): Likewise.
29709         * lib/at-func2.c (at_func2): Likewise.
29710
29711 2009-09-23  Eric Blake  <ebb9@byu.net>
29712
29713         linkat: new module
29714         * modules/linkat: New file.
29715         * lib/at-func2.c (at_func2): Likewise.
29716         * lib/linkat.c (linkat): Likewise.
29717         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
29718         * lib/openat-priv.h (at_func2): Add declaration.
29719         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
29720         * modules/unistd (Makefile.am): Substitute them.
29721         * lib/unistd.in.h (linkat): Declare it.
29722         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29723         * doc/posix-functions/linkat.texi (linkat): Likewise.
29724         * doc/posix-functions/link.texi (link): Tweak wording.
29725         * tests/test-link.c (main): Move guts...
29726         * tests/test-link.h (test_link): ...into new file.
29727         * modules/linkat-tests: New test.
29728         * tests/test-linkat.c: Likewise.
29729         * modules/link-tests (Files): Ship new file.
29730         (Depends-on): Add stdbool.
29731
29732         dirname: add library-safe mdir_name
29733         * lib/dirname.h (mdir_name): New prototype.
29734         * lib/dirname.c (dir_name): Move guts...
29735         (mdir_name): ...to new function that avoids xalloc_die.
29736
29737         fchdir: another mingw fix
29738         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
29739         * lib/fchdir.c (get_name): New helper method; skips canonicalize
29740         on mingw (where it has not yet been ported), and make it optional
29741         elsewhere.
29742         (_gl_register_fd): Use it.
29743
29744         same-inode: make SAME_INODE tri-state, to port to mingw
29745         * NEWS: Mention this change.
29746         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
29747         st_ino always being 0.
29748         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
29749         * lib/cycle-check.c (cycle_check): Likewise.
29750         * lib/same.c (same_name): Likewise.
29751
29752         lstat: avoid mingw compilation error
29753         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
29754         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
29755         lstat ourselves.
29756         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
29757         was adequate.
29758         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
29759         the checks for lstat.
29760         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
29761
29762         link: fix test failure on Solaris 9
29763         * lib/link.c (rpl_link): Don't assume link will catch bogus
29764         trailing slash on source.
29765
29766         test-symlinkat: enhance test
29767         * tests/test-readlink.c (main): Move guts...
29768         * tests/test-readlink.h (test_readlink): ...into new file.
29769         * tests/test-symlink.c (main): Move guts...
29770         * tests/test-symlink.h (test_symlink): ...into new file.
29771         * tests/test-symlinkat.c (main): Use new files for further
29772         coverage.
29773         (do_symlink, do_readlink): New helper functions.
29774         * modules/symlink-tests (Files): Ship new file.
29775         (Depends-on): Add stdbool.
29776         * modules/readlink-tests (Files): Ship new file.
29777         (Depends-on): Add stdbool.
29778         * modules/symlinkat-tests (Files): Use new files.
29779
29780 2009-09-23  Eric Blake  <ebb9@byu.net>
29781
29782         readlink: document portability issue with symlink length
29783         * doc/posix-functions/lstat.texi (lstat): Mention that some file
29784         systems have bogus st_size on symlinks, and mention the
29785         areadlink-with-size module.
29786         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
29787         * doc/posix-functions/readlink.texi (readlink): Mention the
29788         areadlink module, and ERANGE failure.
29789         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29790         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
29791
29792         readlink: fix Solaris 9 bug with trailing slash
29793         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
29794         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
29795         * doc/posix-functions/readlink.texi (readlink): Document this.
29796         * modules/readlink-tests: New test.
29797         * tests/test-readlink.c: Likewise.
29798
29799         readlink: fix cygwin 1.5.x bug with return type
29800         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
29801         * lib/unistd.in.h (readlink): Use ssize_t.
29802         * lib/readlink.c (readlink): Likewise.
29803         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29804         * modules/unistd (Makefile.am): Substitute it.
29805         * lib/unistd.in.h (readlink): Declare replacement.
29806         * doc/posix-functions/readlink.texi (readlink): Document this.
29807
29808         symlink: use throughout gnulib
29809         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
29810         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
29811         symlink is not used.
29812         * modules/symlinkat (Depends-on): Add symlink.
29813         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29814         * modules/canonicalize-tests (Depends-on): Likewise.
29815         * modules/lstat-tests (Depends-on): Likewise.
29816         * modules/openat-tests (Depends-on): Likewise.
29817         * modules/remove-tests (Depends-on): Likewise.
29818         * modules/rmdir-tests (Depends-on): Likewise.
29819         * modules/unlink-tests (Depends-on): Likewise.
29820         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
29821         * tests/test-canonicalize.c (symlink): Likewise.
29822         * tests/test-fstatat.c (symlink): Likewise.
29823         * tests/test-lstat.c (symlink): Likewise.
29824         * tests/test-remove.c (symlink): Likewise.
29825         * tests/test-rmdir.c (symlink): Likewise.
29826         * tests/test-unlink.c (symlink): Likewise.
29827         * tests/test-unlinkat.c (symlink): Likewise.
29828
29829         symlink: new module, for Solaris 9 bug
29830         * modules/symlink: New file.
29831         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
29832         * lib/symlink.c: Likewise.
29833         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
29834         * modules/unistd (Makefile.am): Substitute them.
29835         * lib/unistd.in.h (symlink): Declare replacement.
29836         * MODULES.html.sh (File system functions): Mention it.
29837         * doc/posix-functions/symlink.texi (symlink): Likewise.
29838         * modules/symlink-tests: New test.
29839         * tests/test-symlink.c: Likewise.
29840
29841 2009-09-23  Bruno Haible  <bruno@clisp.org>
29842
29843         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
29844         when needed.
29845         Test case: gnulib-tool --import --with-tests atexit inttypes.
29846         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
29847
29848 2009-09-23  Bruno Haible  <bruno@clisp.org>
29849
29850         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
29851         subcommand, not in a subshell.
29852
29853 2009-09-22  Eric Blake  <ebb9@byu.net>
29854
29855         unistd: sort replacement declarations
29856         * lib/unistd.in.h: Sort declarations.
29857
29858         open, openat: minor optimization
29859         * lib/open.c (open): If open succeeded, len is non-zero.
29860         * lib/openat.c (rpl_openat): Likewise.
29861
29862         link-follow: ensure correct result
29863         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
29864         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
29865         distinguish between possible failures.
29866
29867 2009-09-21  Eric Blake  <ebb9@byu.net>
29868
29869         fts: avoid compiler warning
29870         * lib/fts.c (dirent_inode_sort_may_be_useful)
29871         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
29872
29873 2009-09-19  Bruno Haible  <bruno@clisp.org>
29874
29875         * lib/progreloc.c (canonicalize_file_name): New declaration.
29876
29877 2009-09-19  Eric Blake  <ebb9@byu.net>
29878
29879         link: fix quoting
29880         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
29881
29882         openat: fix openat bugs on Solaris 9
29883         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
29884         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
29885         * modules/openat (Depends-on): Add open.
29886         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
29887         * modules/fcntl-h (Makefile.am): Substitute it.
29888         * lib/fcntl.in.h (openat): Declare replacement.
29889         * doc/posix-functions/openat.texi (openat): Document this.
29890
29891         openat: move fstatat and unlinkat into correct files
29892         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
29893         compiled.
29894         * lib/openat.c (fstatat, unlinkat): Move...
29895         * lib/fstatat.c (fstatat): ...into correct files.
29896         * lib/unlinkat.c (unlinkat): Likewise.
29897
29898         openat: fix unlinkat bugs on Solaris 9
29899         * lib/unlinkat.c (unlinkat): New file.
29900         * modules/openat (Depends-on): Add unlink.
29901         (Files): Distribute it.
29902         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
29903         trailing slash behavior is broken.
29904         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29905         * modules/unistd (Makefile.am): Substitute it.
29906         * lib/unistd.in.h (unlinkat): Declare replacement.
29907         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
29908
29909         openat: fix fstatat bugs on Solaris 9
29910         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
29911         stat.
29912         * doc/posix-functions/fstatat.texi (fstatat): Document this.
29913
29914         test-unlinkat: enhance test, to expose Solaris 9 bug
29915         * tests/test-unlink.c (main): Factor guts...
29916         * tests/test-unlink.h (test_rmdir_func): ...into new file.
29917         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
29918         * tests/test-rmdir.c (main): Adjust caller.
29919         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
29920         (unlinker): New helper function.
29921         (rmdirat): Enhance check.
29922         * modules/rmdir-tests (Depends-on): Add stdbool.
29923         * modules/unlink-tests (Depends-on): Likewise.
29924         (Files): Add test-unlink.h.
29925         * modules/openat-tests (Files): Likewise.
29926         (Depends-on): Add unlinkdir.
29927
29928         test-fstatat: new test, to expose Solaris 9 bugs
29929         * tests/test-stat.c (main): Factor guts...
29930         * tests/test-stat.h (test_stat_func): ...into new file.
29931         * tests/test-lstat.c (main): Factor guts...
29932         * tests/test-lstat.h (test_lstat_func): ...into new file.
29933         * tests/test-fstatat.c: New file.
29934         * modules/stat-tests (Files): Add test-stat.h.
29935         * modules/lstat-tests (Files): Add test-lstat.h.
29936         (Depends-on): Add stdbool.
29937         * modules/openat-tests (Depends-on): Add pathmax.
29938         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
29939         (Makefile.am): Run new test.
29940
29941         remove: new module, for mingw and Solaris 9 bugs
29942         * modules/remove: New file.
29943         * lib/remove.c: Likewise.
29944         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
29945         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
29946         * modules/stdio (Makefile.am): Use them.
29947         * lib/stdio.in.h (remove): Declare replacement.
29948         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29949         * doc/posix-functions/remove.texi (remove): Likewise.
29950         * modules/remove-tests: New test.
29951         * tests/test-remove.c: Likewise.
29952
29953         unlink: new module, for Solaris 9 bug
29954         * modules/unlink: New file.
29955         * lib/unlink.c: Likewise.
29956         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
29957         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
29958         * modules/unistd (Makefile.am): Use them.
29959         * lib/unistd.in.h (stat): Declare replacement.
29960         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29961         * doc/posix-functions/unlink.texi (unlink): Likewise.
29962         * modules/unlink-tests: New test.
29963         * tests/test-unlink.c: Likewise.
29964
29965         lstat: fix Solaris 9 bug
29966         * lib/lstat.c (lstat): Also check for trailing slash on
29967         non-symlink, non-directories.  Use stat module to simplify logic.
29968         * doc/posix-functions/lstat.texi (lstat): Document it.
29969         * modules/lstat-tests (Depends-on): Add errno, same-inode.
29970         (configure.ac): Check for symlink.
29971         * tests/test-lstat.c (main): Add more tests.
29972
29973         stat: add as dependency to other modules
29974         * modules/chown (Depends-on): Add stat.
29975         * modules/euidaccess (Depends-on): Likewise.
29976         * modules/fchdir (Depends-on): Likewise.
29977         * modules/isdir (Depends-on): Likewise.
29978         * modules/link (Depends-on): Likewise.
29979         * modules/lstat (Depends-on): Likewise.
29980         * modules/mkdir-p (Depends-on): Likewise.
29981         * modules/modechange (Depends-on): Likewise.
29982         * modules/open (Depends-on): Likewise.
29983         * modules/readlink (Depends-on): Likewise.
29984         * modules/same (Depends-on): Likewise.
29985
29986         stat: fix Solaris 9 bug
29987         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
29988         slash.
29989         * lib/stat.c (rpl_stat): Work around it.
29990         * doc/posix-functions/stat.texi (stat): Update documentation.
29991
29992         stat: new module, for mingw bug
29993         * modules/stat: New file.
29994         * lib/stat.c: Likewise.
29995         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29996         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29997         * modules/sys_stat (Makefile.am): Use them.
29998         * lib/sys_stat.in.h (stat): Declare replacement.
29999         * lib/openat.c (fstatat): Deal with lstat and stat being function
30000         macros.
30001         * modules/openat (Depends-on): Add inline.
30002         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30003         * doc/posix-functions/stat.texi (stat): Likewise.
30004         * modules/stat-tests: New test.
30005         * tests/test-stat.c: Likewise.
30006
30007 2009-09-19  Jim Meyering  <meyering@redhat.com>
30008
30009         syntax-check: detect unnecessary inclusion of canonicalize.h
30010         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
30011
30012 2009-09-19  Eric Blake  <ebb9@byu.net>
30013
30014         canonicalize-lgpl: adjust clients to use correct header
30015         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
30016         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
30017         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
30018         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
30019         * lib/progreloc.c (includes): Likewise.
30020
30021 2009-09-19  Jim Meyering  <meyering@redhat.com>
30022
30023         test-posixtm.c: correct a comment
30024         * tests/test-posixtm.c: Correct first-line comment.
30025         Spotted by Eric Blake.
30026
30027 2009-09-16  Jim Meyering  <meyering@redhat.com>
30028
30029         posixtm-tests: make T const-correct; add a test case
30030         * tests/test-posixtm.c (T): Declare const.
30031         Add a test for -(2^31+1).
30032         Remove useless can-succeed-only-in-2002 test.
30033
30034         posixtm-tests: adjust the sole failing test
30035         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
30036         expected output matches what mktime now produces.  Cross-checked via
30037         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
30038
30039         posixtm: move #ifdef'd tests into a new module
30040         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
30041         * tests/test-posixtm.c: ... this new file.
30042         * modules/posixtm-tests: New module.
30043
30044 2009-09-19  Eric Blake  <ebb9@byu.net>
30045
30046         openat: simplify use of at-func.c
30047         * lib/at-func.c (includes): Include prerequisites here, to
30048         simplify requirements on client files.
30049         * lib/openat-priv.h: Add double-inclusion guard.
30050         * lib/faccessat.c (includes): Simplify.
30051         * lib/fchmodat.c (includes): Likewise.
30052         * lib/fchownat.c (includes): Likewise.
30053         * lib/mkdirat.c (includes): Likewise.
30054         * lib/mkfifoat.c (includes): Likewise.
30055         * lib/symlinkat.c (includes): Likewise.
30056
30057         openat: allow return of fd 0
30058         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
30059         * modules/save-cwd (Depends-on): Replace fcntl-safer with
30060         unistd-safer.
30061         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
30062         <fcntl.h>; this module does not leak fds.
30063         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
30064         must be allowed to return 0, leaving openat_safer to add the
30065         safety.
30066         (openat_permissive): Avoid writing to just-opened fd 2 if
30067         restoring the current directory fails.
30068         * lib/openat-die.c (openat_restore_fail): Add comment.
30069         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
30070         (save_cwd): Guarantee safe fd, but without use of open_safer.
30071         * tests/test-openat.c: New test.
30072         * modules/openat-tests (Files, Makefile.am): Distribute and build
30073         new file.
30074
30075         relocatable-prog-wrapper: fix build
30076         * modules/relocatable-prog-wrapper (Files): Update name of
30077         canonicalize m4 file, broken on 2009-09-17.
30078         Reported by emad hajjar <aleppos@hotmail.com>.
30079
30080 2009-09-19  Bruno Haible  <bruno@clisp.org>
30081
30082         * lib/safe-alloc.h: Use the standard header with GPL copyright.
30083         * lib/safe-alloc.c: Likewise.
30084         Reported by Ian Beckwith <ianb@erislabs.net>.
30085
30086 2009-09-18  Bruno Haible  <bruno@clisp.org>
30087
30088         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
30089         Reported by <erobles@sensacd.com.mx>.
30090
30091 2009-09-17  Eric Blake  <ebb9@byu.net>
30092
30093         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
30094         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
30095         slashes when checking if last component is missing.
30096         * tests/test-canonicalize.c (main): Test this.
30097
30098         canonicalize, canonicalize-lgpl: honor // if distinct from /
30099         * modules/canonicalize (Files): Add double-slash-root.m4.
30100         * modules/canonicalize-lgpl (Files): Likewise.
30101         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
30102         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
30103         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
30104         fallback definition.
30105         (canonicalize_filename_mode): Use it to protect //.
30106         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
30107         (__realpath): Likewise.
30108         * tests/test-canonicalize.c (main): Test this.
30109         * tests/test-canonicalize-lgpl.c (main): Likewise.
30110         * modules/canonicalize-tests (Depends-on): Add same-inode.
30111         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
30112
30113         canonicalize-lgpl: fix glibc bug with trailing slash
30114         * m4/canonicalize-lgpl.m4: Move contents...
30115         * m4/canonicalize.m4: ...here.
30116         (gl_CANONICALIZE_LGPL): Factor realpath check...
30117         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
30118         glibc 2.3.5 bug, fixed 2005-04-27.
30119         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
30120         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
30121         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
30122         * modules/canonicalize-lgpl (Files): Manage file rename.
30123         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
30124         * modules/stdlib (Makefile.am): Substitute witness.
30125         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
30126         is needed.
30127         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
30128         replacement is required.
30129         * lib/canonicalize.c (canonicalize_file_name): Likewise.
30130         * doc/glibc-functions/canonicalize_file_name.texi
30131         (canonicalize_file_name): Document this.
30132         * doc/posix-functions/realpath.texi (realpath): Likewise.
30133
30134         canonicalize-lgpl: reject non-directory with trailing slash
30135         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
30136         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
30137         catches failures in glibc 2.3.5.
30138         * tests/test-canonicalize.c (main): Likewise.
30139
30140         canonicalize-lgpl: use native realpath if it works
30141         * lib/canonicalize-lgpl.c (realpath): Guard with
30142         FUNC_REALPATH_WORKS.
30143         * lib/stdlib.in.h (realpath): Make declaration optional based on
30144         HAVE_REALPATH.
30145         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
30146         native realpath works.
30147         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
30148         * modules/stdlib (Makefile.am): Substitute witness.
30149
30150         canonicalize, canonicalize-lgpl: use <stdlib.h>
30151         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
30152         (Include): Mention <stdlib.h>.
30153         (configure.ac): Mention functions we provide.
30154         * modules/canonicalize (configure.ac): Likewise.
30155         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
30156         realpath if canonicalize_file_name is missing.
30157         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
30158         * modules/stdlib (Makefile.am): Substitute witnesses.
30159         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
30160         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
30161         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
30162         * NEWS: Document this.
30163         * doc/glibc-functions/canonicalize_file_name.texi
30164         (canonicalize_file_name): Likewise.
30165         * doc/posix-functions/realpath.texi (realpath): Likewise.
30166         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
30167
30168         test-canonicalize: consolidate into single C program
30169         * tests/test-canonicalize.sh: Delete; move setup into...
30170         * tests/test-canonicalize.c (main): ...the program, making it
30171         easier to run in debugger.  Add some tests.
30172         * modules/canonicalize-tests (Files): Remove unused file.
30173         (Depends-on): Add progname.
30174         (configure.ac, Makefile.am): Simplify.
30175
30176         test-canonicalize-lgpl: consolidate into single C program
30177         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
30178         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
30179         easier to run in debugger.  Add some tests.
30180         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
30181         (configure.ac, Makefile.am): Simplify.
30182
30183         canonicalize: avoid resolvepath
30184         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
30185         unnecessary checks.
30186         * lib/canonicalize.c (includes): Simplify.
30187         (canonicalize_file_name): Drop resolvepath implementation.
30188         * modules/canonicalize (Depends-on): Drop filenamecat.
30189
30190         canonicalize: don't lose errno
30191         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
30192         over calls to free.
30193
30194         canonicalize: simplify errno handling
30195         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
30196         assignment.
30197
30198         canonicalize, canonicalize-lgpl: update module dependencies
30199         * modules/canonicalize (Depends-on): Add extensions, lstat,
30200         pathmax, stdlib.
30201         (Files): Drop pathmax.h.
30202         (configure.ac): Adjust macro name.
30203         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
30204         lstat, stdlib, sys_stat.
30205         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
30206         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
30207         extensions.
30208         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
30209         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
30210         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
30211         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
30212         declaration, if available.
30213         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
30214         we can rely on the readlink module.
30215         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
30216         (includes): Use <unistd.h> unconditionally.
30217
30218 2009-09-17  Eric Blake  <ebb9@byu.net>
30219
30220         maint: make Include sections of modules consistent
30221         * modules/alloca: Use only header name; no need to list #include.
30222         * modules/alloca-opt: Likewise.
30223         * modules/arpa_inet: Likewise.
30224         * modules/canon-host: Likewise.
30225         * modules/configmake: Likewise.
30226         * modules/dirent: Likewise.
30227         * modules/eealloc: Likewise.
30228         * modules/environ: Likewise.
30229         * modules/fchdir: Likewise.
30230         * modules/fcntl: Likewise.
30231         * modules/fcntl-h: Likewise.
30232         * modules/gethrxtime: Likewise.
30233         * modules/gettime: Likewise.
30234         * modules/ignore-value: Likewise.
30235         * modules/inet_ntop: Likewise.
30236         * modules/inet_pton: Likewise.
30237         * modules/inttypes: Likewise.
30238         * modules/isnand-nolibm: Likewise.
30239         * modules/isnanf-nolibm: Likewise.
30240         * modules/mbchar: Likewise.
30241         * modules/mbfile: Likewise.
30242         * modules/mbiter: Likewise.
30243         * modules/mbuiter: Likewise.
30244         * modules/netdb: Likewise.
30245         * modules/netinet_in: Likewise.
30246         * modules/nproc: Likewise.
30247         * modules/pagealign_alloc: Likewise.
30248         * modules/poll: Likewise.
30249         * modules/printf-frexp: Likewise.
30250         * modules/pthread: Likewise.
30251         * modules/putenv: Likewise.
30252         * modules/random_r: Likewise.
30253         * modules/relocatable-prog: Likewise.
30254         * modules/search: Likewise.
30255         * modules/select: Likewise.
30256         * modules/selinux-h: Likewise.
30257         * modules/settime: Likewise.
30258         * modules/signal: Likewise.
30259         * modules/size_max: Likewise.
30260         * modules/socklen: Likewise.
30261         * modules/ssize_t: Likewise.
30262         * modules/stdarg: Likewise.
30263         * modules/stdbool: Likewise.
30264         * modules/stddef: Likewise.
30265         * modules/stdint: Likewise.
30266         * modules/stdio: Likewise.
30267         * modules/stdlib: Likewise.
30268         * modules/string: Likewise.
30269         * modules/strings: Likewise.
30270         * modules/sys_file: Likewise.
30271         * modules/sys_ioctl: Likewise.
30272         * modules/sys_select: Likewise.
30273         * modules/sys_socket: Likewise.
30274         * modules/sys_stat: Likewise.
30275         * modules/sys_time: Likewise.
30276         * modules/sys_times: Likewise.
30277         * modules/sys_utsname: Likewise.
30278         * modules/sys_wait: Likewise.
30279         * modules/sysexits: Likewise.
30280         * modules/time: Likewise.
30281         * modules/times: Likewise.
30282         * modules/tmpfile: Likewise.
30283         * modules/trim: Likewise.
30284         * modules/unistd: Likewise.
30285         * modules/wchar: Likewise.
30286         * modules/wctype: Likewise.
30287
30288 2009-09-17  Bruno Haible  <bruno@clisp.org>
30289
30290         Make getdate.y compile on QNX and NetBSD 5 / i386.
30291         * m4/getdate.m4 (gl_GETDATE): Conditionally define
30292         TIME_T_FITS_IN_LONG_INT.
30293         * lib/getdate.y (long_time_t): New type.
30294         (relative_time): Change type of 'seconds' field to long_time_t.
30295         (get_date): Update types of local variables. Check against overflow
30296         during conversion from long_time_t to time_t.
30297         Reported by Matt Kraai <kraai@ftbfs.org>
30298         and Hasso Tepper <hasso@netbsd.org>.
30299
30300 2009-09-17  Bruno Haible  <bruno@clisp.org>
30301
30302         * modules/COPYING: Update copyright years.
30303         * modules/README: Likeiwse.
30304         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
30305         Reported by Ian Beckwith <ianb@erislabs.net>.
30306
30307 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
30308
30309         * users.txt: Update references for gnuit package.
30310
30311 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
30312
30313         * m4/getdelim.m4: Fix typo in copyright line.
30314
30315 2009-09-17  Bruno Haible  <bruno@clisp.org>
30316
30317         * lib/atoll.c: Use the standard header with GPL copyright.
30318         * lib/argz.in.h: Likewise.
30319         * lib/glob.c: Likewise.
30320         * lib/glob-libc.h: Likewise.
30321         * lib/random_r.c: Likewise.
30322         * lib/siglist.h: Likewise.
30323         * lib/strsignal.c: Likewise.
30324         Reported by Ian Beckwith <ianb@erislabs.net>.
30325
30326 2009-09-17  Eric Blake  <ebb9@byu.net>
30327
30328         rmdir: ensure correct dependency order
30329         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
30330
30331 2009-09-17  Bruno Haible  <bruno@clisp.org>
30332
30333         Disable assertion that fails on NetBSD 5 / i386.
30334         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
30335         Reported by Sam Steingold <sds@gnu.org>
30336         and Hasso Tepper <hasso@netbsd.org>.
30337
30338 2009-09-16  Eric Blake  <ebb9@byu.net>
30339
30340         unlinkdir: port to mingw
30341         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
30342         on which no one can unlink a directory.
30343
30344         stdlib: sort witness names
30345         * modules/stdlib (Makefile.am): Sort replacements.
30346         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
30347         * lib/stdlib.in.h: Likewise.
30348
30349         parse-duration-tests: avoid link failure
30350         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
30351         LIBINTL.
30352         Reported by Tom G. Christensen.
30353
30354         openat-tests: ensure unlinkat behaves like rmdir
30355         * tests/test-rmdir.c (main): Factor guts...
30356         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
30357         * modules/rmdir-tests (Files): Ship new file.
30358         * modules/openat-tests: New test.
30359         * tests/test-unlinkat.c: Likewise.
30360
30361         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
30362         * modules/rmdir-errno (Status, Notice): Now obsolete.
30363
30364         rmdir: work around cygwin 1.5.x and mingw bugs
30365         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
30366         * lib/rmdir.c (rmdir): Work around it.
30367         * modules/rmdir (Status, Notice): No longer obsolete.
30368         (Files): Add dos.m4.
30369         (Depends-on): Add unistd.
30370         (configure.ac): Set witnesses.
30371         (License): Relax to LGPLv2+.
30372         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
30373         * modules/unistd (Makefile.am): Substitute witnesses.
30374         * lib/unistd.in.h (rmdir): Declare replacement.
30375         * doc/posix-functions/rmdir.texi (rmdir): Document this.
30376         * modules/rmdir-tests: New tests.
30377         * tests/test-rmdir.c: Likewise.
30378
30379 2009-09-15  Eric Blake  <ebb9@byu.net>
30380
30381         fchdir: improve use of replacement functions
30382         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
30383         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
30384         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
30385         REPLACE_CLOSEDIR.
30386         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
30387         * modules/sys_stat (Makefile.am): Substitute correct witness.
30388         * modules/dirent (Makefile.am): Likewise.
30389         * modules/unistd (Makefile.am): Likewise.
30390         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
30391         * lib/unistd.in.h (dup): Likewise.
30392         * lib/sys_stat.in.h (fstat): Likewise.
30393
30394         maint: ignore gnulib-tool temp files
30395         * .gitignore: Ignore files created during gnulib-tool --test.
30396
30397 2009-09-13  Jim Meyering  <meyering@redhat.com>
30398
30399         posixtm: don't reject a time that specify "60" as the number of seconds
30400         * lib/posixtm.c (posixtime): The code to reject invalid dates
30401         would also reject a time specified with the .60 suffix.
30402         But POSIX allows that, in order to accommodate leap seconds.
30403         So don't reject it.
30404         (main): Adjust tests accordingly.
30405         * modules/posixtm (Depends-on): Add stpcpy.
30406
30407 2009-09-11  Jim Meyering  <meyering@redhat.com>
30408
30409         announce-gen: include [$release_type] in emitted Subject:
30410         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
30411         e.g., [stable] in the emitted Subject: line.
30412
30413 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30414
30415         Remove obsolete macros from several modules.
30416         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
30417         obsolete Autoconf macros with their modern counterparts.
30418         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
30419         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
30420         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
30421         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
30422         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
30423         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
30424         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
30425         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
30426         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
30427         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
30428         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
30429         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
30430         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
30431         * m4/sockets.m4 (gl_SOCKETS): Likewise.
30432         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
30433         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
30434         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
30435         * m4/time_r.m4 (gl_TIME_R): Likewise.
30436         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
30437         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
30438         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
30439
30440         Fix copyright header in build-aux scripts.
30441         * build-aux/git-version-gen: Fix copyright header to match GPLv3
30442         recommendation.
30443         * build-aux/ncftpput-ftp: Likewise.
30444         * build-aux/update-copyright: Likewise.
30445
30446 2009-09-09  Eric Blake  <ebb9@byu.net>
30447
30448         test-link: allow Linux choice of errno
30449         * tests/test-link.c (main): Relax test for alternate error.
30450
30451         strndup: fix improper m4 caching
30452         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
30453         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
30454         (gl_PREREQ_STRNDUP): Delete.
30455         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
30456         * modules/string (Makefile.am): Substitute it.
30457         * lib/string.in.h (strndup): Modernize prototype.
30458
30459         getcwd: port to mingw
30460         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
30461         different from the POSIX assumptions made throughout the getcwd
30462         module; fortunately, the mingw getcwd does not need replacement.
30463         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
30464         * modules/getcwd-tests: New test.
30465         * tests/test-getcwd.c: Likewise.
30466
30467         link: fix platform bugs
30468         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
30469         * lib/link.c (link): Work around them.  Fix related mingw bug.
30470         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
30471         * modules/unistd (Makefile.am): Substitute it.
30472         * lib/unistd.in.h (link): Declare replacement.
30473         * doc/posix-functions/link.texi (link): Document this.
30474         * modules/link (Depends-on): Add strdup-posix, sys_stat.
30475
30476         test-link: consolidate into single C program, test more cases
30477         * tests/test-link.sh: Delete.
30478         * tests/test-link.c: Test more error conditions.  Exposes bugs on
30479         at least Cygwin and Solaris.
30480         * modules/link-tests (Files): Remove unused file.
30481         (Depends-on): Add errno, sys_stat.
30482         (Makefile.am): Simplify.
30483
30484 2009-09-08  Bruno Haible  <bruno@clisp.org>
30485
30486         Work around towlower, towupper bug on mingw.
30487         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
30488         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
30489         * doc/posix-functions/towlower.texi: Mention the mingw bug.
30490         * doc/posix-functions/towupper.texi: Likewise.
30491         Reported by Eric Blake.
30492
30493 2009-09-08  Jim Meyering  <meyering@redhat.com>
30494
30495         build: don't try to run autoheader if we don't use it
30496         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
30497         is not used in configure.ac.
30498
30499 2009-09-08  Eric Blake  <ebb9@byu.net>
30500
30501         euidaccess: fix compilation error
30502         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
30503
30504         rawmemchr: relax license
30505         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
30506         okay.
30507         Reported by Jim Meyering.
30508
30509         mkfifoat: new module
30510         * modules/mkfifoat: New file.
30511         * lib/mkfifoat.c: Likewise.
30512         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
30513         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30514         * modules/sys_stat (Makefile.am): Use them.
30515         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
30516         * MODULES.html.sh (File system functions): Mention module.
30517         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
30518         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
30519         * modules/mkfifoat-tests: New test.
30520         * tests/test-mkfifoat.c: Likewise.
30521
30522         strchrnul: relax license
30523         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
30524         okay.
30525         Reported by Jim Meyering.
30526
30527 2009-09-08  Eric Blake  <ebb9@byu.net>
30528
30529         fstatat: fix compilation on Solaris
30530         * lib/fstatat.c (includes): Add fcntl.h.
30531         Reported by Pádraig Brady.
30532
30533 2009-09-07  Eric Blake  <ebb9@byu.net>
30534
30535         rename: modernize replacement
30536         * modules/rename (Depends-on): Add stdio.
30537         (configure.ac): Declare witness.
30538         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
30539         stdio take care of replacement.
30540         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
30541         * modules/stdio (Makefile.am): Substitute them.
30542         * lib/stdio.in.h (rename): Declare replacement.
30543         * lib/rename.c (includes): Allow cross-compilation to non-windows
30544         machines.
30545         * doc/posix-functions/rename.texi (rename): Improve
30546         documentation.
30547
30548         stdio: sort witness names
30549         * modules/stdio (Makefile.am): Sort replacements.
30550         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30551         * lib/stdio.in.h: Likewise.
30552
30553         getcwd: minor cleanups
30554         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
30555         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
30556
30557         openat: provide more convenience names
30558         * modules/faccessat (configure.ac): Add C witness.
30559         * lib/unistd.in.h (readlinkat): Fix typo.
30560         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
30561         convenience wrappers.
30562         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
30563         wrappers in syntax checks.
30564
30565 2009-09-06  Eric Blake  <ebb9@byu.net>
30566
30567         doc: fix comments in recent patches
30568         * lib/faccessat.c: Mention correct function.
30569         * lib/fchmodat.c: Likewise.
30570         * lib/fchownat.c: Likewise.
30571         * lib/symlinkat.c: Likewise.
30572         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
30573         constants.
30574
30575         faccessat, symlinkat: continue cleanup of previous patch
30576         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
30577         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
30578         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
30579         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
30580         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
30581         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
30582         set.
30583
30584 2009-09-06  Bruno Haible  <bruno@clisp.org>
30585
30586         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
30587         (fstatat): Declare if GNULIB_FSTATAT is set.
30588         (mkdirat): Declare if GNULIB_MKDIRAT is set.
30589         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
30590         (unlinkat): Declare if GNULIB_UNLINKAT is set.
30591         * modules/fcntl-h (Files): Remove m4/openat.m4.
30592         * modules/sys_stat (Files): Remove m4/openat.m4.
30593         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
30594         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
30595         * modules/unistd (Files): Remove m4/openat.m4.
30596         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
30597         GNULIB_OPENAT.
30598         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
30599         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
30600         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
30601         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
30602         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
30603         gl_OPENAT_DEFAULTS.
30604         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
30605         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
30606         Don't require gl_OPENAT_DEFAULTS.
30607         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
30608         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
30609         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
30610         (gl_OPENAT_DEFAULTS): Remove macro.
30611
30612 2009-09-06  Bruno Haible  <bruno@clisp.org>
30613
30614         * modules/openat (configure.ac): Remove unneeded witness.
30615
30616 2009-09-06  Bruno Haible  <bruno@clisp.org>
30617
30618         Set errno to ENOSYS when a function is entirely unsupported.
30619         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
30620         EOPNOTSUPP.
30621         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
30622         * modules/chown (Depends-on): Remove errno.
30623
30624 2009-09-06  Bruno Haible  <bruno@clisp.org>
30625
30626         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
30627
30628 2009-09-06  Bruno Haible  <bruno@clisp.org>
30629
30630         * lib/sys_stat.in.h: Fix preprocessor command indentation.
30631
30632 2009-09-06  Ben Pfaff  <blp@gnu.org>
30633             Bruno Haible  <bruno@clisp.org>
30634
30635         Work around a glibc bug in strtok_r.
30636         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
30637         Undefine if UNDEFINE_STRTOK_R is set.
30638         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
30639         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30640         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
30641         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
30642         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
30643         UNDEFINE_STRTOK_R.
30644         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
30645
30646 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
30647
30648         exclude: minor fix
30649         * lib/exclude.c: Include wctype.h
30650
30651 2009-09-06  Akim Demaille  <demaille@gostai.com>
30652
30653         bootstrap: improve error message
30654         * build-aux/bootstrap (find_tool): Upon failure, report the list
30655         of candidates.
30656         Honor the initial value of the envvar.
30657
30658 2009-09-05  Eric Blake  <ebb9@byu.net>
30659
30660         symlinkat: new module
30661         * modules/symlinkat: New file.
30662         * lib/symlinkat.c: Likewise.
30663         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
30664         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
30665         * modules/unistd (Makefile.am): Use them.
30666         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
30667         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
30668         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
30669         * MODULES.html.sh (File system functions): Mention module.
30670         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30671         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30672         * modules/symlinkat-tests: New test.
30673         * tests/test-symlinkat.c: Likewise.
30674
30675         test-openat-safer: add more checks
30676         * tests/test-openat-safer.c (main): Check more code paths.
30677
30678 2009-09-05  Jim Meyering  <meyering@redhat.com>
30679
30680         syntax-check: detect unnecessary inclusion of openat.h
30681         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
30682
30683 2009-09-05  Bruno Haible  <bruno@clisp.org>
30684
30685         Support towlower, towupper.
30686         * doc/posix-functions/towlower.texi: Mention module wctype.
30687         * doc/posix-functions/towupper.texi: Likewise.
30688         * lib/wctype.in.h (towlower, towupper): New functions.
30689         * tests/test-wctype.c: Include stdio.h, stdlib.h.
30690         (ASSERT): New macro.
30691         (e): New variable.
30692         (main): Test also towlower, towupper. Test WEOF argument.
30693         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30694
30695 2009-09-05  Bruno Haible  <bruno@clisp.org>
30696
30697         Fix conversion behaviour when the input is invalid.
30698         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
30699         mark occurring in first pass of indirect conversion.
30700         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
30701         input.
30702         Found by clang's static analyzer.
30703
30704 2009-09-05  Bruno Haible  <bruno@clisp.org>
30705
30706         * tests/test-striconveh.c (main): Test indirect conversion on platforms
30707         where direct conversion is possible.
30708
30709 2009-09-04  Eric Blake  <ebb9@byu.net>
30710
30711         openat: fail with ENOENT on empty name
30712         * lib/openat-proc.c (openat_proc_name): Special-case the empty
30713         buffer.
30714
30715         link-follow: fix logic bug in prior patch
30716         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
30717         reversed sense of yes and no in prior patch.  Avoid confusing
30718         compilation failure with desired semantics.
30719
30720         link-follow: accomodate mingw and cross-compilation
30721         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
30722         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
30723         cross-compilation results to -1, to make linkat easier to
30724         implement when cross-compiling.  Trivially support mingw.
30725         * modules/link-follow (configure.ac): Call new name.
30726         * NEWS: Mention this.
30727
30728 2009-09-03  Eric Blake  <ebb9@byu.net>
30729
30730         faccessat: compile replacement
30731         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
30732         needed.
30733
30734         fts: fix compilation error
30735         * lib/fts.c (includes): Re-add "openat.h", for
30736         openat_needs_fchdir.
30737
30738         faccessat: new module
30739         * modules/faccessat: New file.
30740         * lib/faccessat.c: Likewise.
30741         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
30742         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30743         * modules/unistd (Makefile.am): Use it.
30744         * lib/unistd.in.h (faccessat): Declare it.
30745         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
30746         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
30747         * MODULES.html.sh (File system functions): Mention it.
30748         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
30749         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
30750
30751         euidaccess: prefer POSIX over non-standard implementation
30752         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
30753         * lib/euidaccess.c (euidaccess): Use it if available.
30754
30755         openat: make template easier to use
30756         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
30757         AT_FUNC_F2 to be undefined.
30758         (VALIDATE_FLAG): New macro; use it to reject bad flags.
30759         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
30760         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
30761         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
30762         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
30763         Likewise.
30764         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
30765         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
30766         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
30767         Likewise.
30768
30769         openat: declare in POSIX headers
30770         * NEWS: Mention this.
30771         * modules/openat (configure.ac): Declare witnesses.
30772         (Depends-on): Add fcntl-h, sys_stat, unistd.
30773         (Include): Mention correct headers.
30774         * modules/fcntl-h (Depends-on): Add link-warning.
30775         (Files): Add openat.m4.
30776         (Makefile.am): Substitute witnesses.
30777         * modules/sys_stat (Files, Makefile.am): Likewise.
30778         * modules/unistd (Files, Makefile.am): Likewise.
30779         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
30780         (gl_OPENAT_DEFAULTS): New macro.
30781         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
30782         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
30783         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
30784         (SYS_STAT_H): Remove unused variable.
30785         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
30786         * lib/fcntl--.h (includes): Remove unneeded header.
30787         * lib/openat-safer.c (includes): Likewise.
30788         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
30789         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
30790         appropriate headers.
30791         (__OPENAT_PREFIX): Delete.
30792         * lib/fcntl.in.h (openat): Provide declaration.
30793         (AT_FDCWD): Fix Solaris bug.
30794         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
30795         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
30796         * lib/fchmodat.c (includes):  Adjust to find declaration.
30797         * lib/fchownat.c (includes): Likewise.
30798         * lib/mkdirat.c (includes): Likewise.
30799         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
30800         still visible.
30801
30802 2009-09-02  Eric Blake  <ebb9@byu.net>
30803
30804         errno: use consistently
30805         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
30806         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
30807         * lib/canonicalize.c (ELOOP): Likewise.
30808         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
30809         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
30810         * lib/lchown.c (EOPNOTSUPP): Likewise.
30811         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
30812         * lib/savewd.c (ESTALE): Likewise.
30813         * lib/settime.c (ENOSYS): Likewise.
30814         * lib/utimens.c (ENOSYS): Likewise.
30815         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
30816         * lib/chdir-safer.c (ELOOP): Likewise.
30817         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
30818         * modules/c-stack (Depends-on): Add errno.
30819         * modules/canonicalize (Depends-on): Likewise.
30820         * modules/chdir-safer (Depends-on): Likewise.
30821         * modules/fdopendir (Depends-on): Likewise.
30822         * modules/inet_ntop (Depends-on): Likewise.
30823         * modules/inet_pton (Depends-on): Likewise.
30824         * modules/lchown (Depends-on): Likewise.
30825         * modules/openat (Depends-on): Likewise.
30826         * modules/savewd (Depends-on): Likewise.
30827         * modules/settime (Depends-on): Likewise.
30828         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
30829
30830         fts: avoid leaking fds
30831         * modules/fts (Depends-on): Add cloexec.
30832         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
30833         flag.
30834
30835         fts: make directory fds more robust
30836         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
30837         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
30838
30839         backupfile, chdir-long, fts, savedir: make safer
30840         * lib/backupfile.c (includes): Use "dirent--.h", since
30841         numbered_backup can write to stderr during readdir.
30842         * lib/savedir.c (includes): Likewise.
30843         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
30844         emulation can write to stderr on failure.
30845         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
30846         * lib/getcwd.c: Document why opendir_safer is unused.
30847         * lib/glob.c: Likewise.
30848         * lib/scandir.c: Likewise.
30849         * lib/openat-proc.c: Likewise, for open_safer.
30850         * modules/backupfile (Depends-on): Add dirent-safer.
30851         * modules/savedir (Depends-on): Likewise.
30852         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
30853         * modules/chdir-long (Depends-on): Add openat-safer.
30854
30855         openat-safer: new module
30856         * modules/openat-safer: New file.
30857         * lib/openat-safer.c: Likewise.
30858         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
30859         * lib/fcntl-safer.h (openat_safer): Declare.
30860         * lib/fcntl--.h (openat): Override.
30861         * MODULES.html.sh (File descriptor based I/O): Mention it.
30862         * lib/openat.h: Add double-inclusion guards.
30863         * lib/openat.c (includes): Only include "fcntl-safer.h", not
30864         "fcntl--.h", so we can implement openat.
30865         * modules/openat-safer-tests: New test.
30866         * tests/test-openat-safer.c: New file.
30867
30868         dirent-safer: new module
30869         * modules/dirent-safer: New file.
30870         * lib/dirent--.h: Likewise.
30871         * lib/dirent-safer.h: Likewise.
30872         * lib/opendir-safer.c: Likewise.
30873         * m4/dirent-safer.m4: Likewise.
30874         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
30875         * modules/dirent-safer-tests: New test.
30876         * tests/test-dirent-safer.c: New file.
30877         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
30878
30879         fdopendir: optimize on mingw
30880         * lib/unistd.in.h (_gl_directory_name): New prototype.
30881         * lib/fchdir.c (_gl_directory_name): Implement it.
30882         (fchdir): Use it to simplify implementation.
30883         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
30884         fchdir, when available, to avoid calling [f]chdir().
30885
30886         fdopendir: split into its own module
30887         * lib/openat.c (fdopendir): Move...
30888         * lib/fdopendir.c: ...into new file.
30889         * modules/fdopendir: New module.
30890         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
30891         * modules/openat (Depends-on): Add fdopendir.
30892         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
30893         fdopendir here.
30894         * modules/savedir (Depends-on): Only need fdopendir, not full
30895         openat.
30896         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
30897         * lib/openat.h (fdopendir): Drop prototype.
30898         * lib/dirent.in.h (fdopendir): Provide prototype.
30899         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
30900         * modules/dirent (Makefile.am): Substitute them.
30901         * MODULES.html.sh (File system functions): Mention it.
30902         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
30903         * modules/fdopendir-tests: New file.
30904         * tests/test-fdopendir.c: Likewise.
30905
30906         fchdir: use more consistent macro convention
30907         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
30908         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
30909         REPLACE_FCHDIR, rather than relying on config.h macros.
30910         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
30911         inside a single make-time REPLACE_FCHDIR block, rather than using
30912         the config.h FCHDIR_REPLACEMENT.
30913         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
30914         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
30915         Manage fstat replacement.
30916         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
30917         REPLACE_FCHDIR.
30918         * modules/sys_stat (Files): Add m4/unistd_h.m4.
30919         (Makefile.am): Substitute REPLACE_FCHDIR.
30920         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
30921         FCHDIR_REPLACEMENT.
30922         * lib/dup-safer.c (dup_safer): Likewise.
30923         * lib/dup2.c (rpl_dup2): Likewise.
30924         * lib/dup3.c (rpl_dup3): Likewise.
30925         * lib/open.c (rpl_open): Likewise.
30926
30927         fchdir: simplify error handling, and support dup3
30928         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
30929         stdbool, malloc-posix, realloc-posix.
30930         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
30931         (ensure_dirs_slot): Return false on allocation failure.
30932         (rpl_dup2): Delete.
30933         (_gl_register_dup): New function.
30934         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
30935         (_gl_register_fd): Close fd on allocation failure.
30936         * lib/fcntl.in.h (_gl_register_fd): Update signature.
30937         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
30938         prototype.
30939         (rpl_dup2_fchdir): Delete prototype.
30940         * lib/open.c (open): Update caller.
30941         * lib/dup2.c (dup2): Track fchdir metadata.
30942         * lib/dup3.c (dup3): Likewise.
30943         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
30944         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
30945
30946 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30947
30948         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
30949         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
30950         don't pass arguments to AC_OUTPUT.
30951
30952 2009-09-02  Bruno Haible  <bruno@clisp.org>
30953
30954         * modules/mkdtemp (License): Relicense under LGPLv2+.
30955         Reported by Paolo Bonzini.
30956
30957 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30958
30959         Replace uses of obsolete autoconf macros in Jim's modules.
30960         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
30961         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
30962         can evoke a warning from autoconf when run with -Wobsolete
30963         enabled.  They were declared obsolete for good reasons (see
30964         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
30965         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
30966         should not continue using the deprecated macros.
30967         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
30968         obsolete Autoconf macros with modern counterparts.
30969         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
30970         * m4/dos.m4 (gl_AC_DOS): Likewise.
30971         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
30972         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
30973         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
30974         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
30975         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
30976         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
30977         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
30978         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
30979         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
30980         Likewise.
30981         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
30982         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
30983         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
30984         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
30985         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
30986         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
30987
30988 2009-09-01  Eric Blake  <ebb9@byu.net>
30989
30990         fchdir: fix off-by-one bug in previous patch
30991         * lib/fchdir.c (rpl_fstat): Use correct bounds.
30992         (_gl_unregister_fd): Delete useless if.
30993
30994 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
30995
30996         maint.mk: sort the list of syntax-check rules
30997         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
30998         easier to get a sense of progress when the rules are run sequentially
30999         and take a long time.
31000
31001 2009-09-01  Simon Josefsson  <simon@josefsson.org>
31002
31003         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
31004         * modules/netinet_in: Likewise.
31005         * modules/sys_file: Likewise.
31006         * modules/sys_ioctl: Likewise.
31007         * modules/sys_select: Likewise.
31008         * modules/sys_socket: Likewise.
31009         * modules/sys_stat: Likewise.
31010         * modules/sys_time: Likewise.
31011         * modules/sys_times: Likewise.
31012         * modules/sys_utsname: Likewise.
31013         * modules/sys_wait: Likewise.
31014
31015 2009-09-01  Jim Meyering  <meyering@redhat.com>
31016
31017         fts: help ensure that return values are not ignored
31018         * lib/fts_.h (__GNUC_PREREQ): Define.
31019         (__attribute_warn_unused_result__): Define.
31020         (fts_children, fts_close, fts_open, fts_read): Declare with
31021         __attribute_warn_unused_result__.
31022
31023         fts: fts_close now fails also when closing a dir file descriptor fails
31024         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
31025         and propagate to caller, along with errno.
31026
31027         announce-gen: correct formatting in --help output
31028         * build-aux/announce-gen (usage): Move the one-line description in
31029         --help output "up", to where it belongs, just after Usage:.
31030
31031 2009-08-31  Eric Blake  <ebb9@byu.net>
31032
31033         fchdir: port to mingw
31034         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
31035         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
31036         opened, then use a substitute.
31037         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
31038         replacement.
31039         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
31040         (_gl_register_fd): No need to check stat if open already filters
31041         all directories.
31042         (fchdir): Fix error condition to match POSIX.
31043         * modules/fchdir (Depends-on): Add sys_stat.
31044         * doc/posix-functions/open.texi (open): Document the limitation.
31045         * modules/fchdir-tests: New file.
31046         * tests/test-fchdir.c: Likewise.
31047
31048         canonicalize: allow cross-testing from cygwin to mingw
31049         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
31050         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
31051         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
31052         Likewise.
31053         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
31054         target does not support symlinks.
31055         * tests/test-canonicalize-lgpl.sh: Likewise.
31056
31057         chown: avoid compilation warning on mingw
31058         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
31059         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
31060         mingw.
31061         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
31062         * modules/chown (Depends-on): Add errno.
31063
31064 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
31065
31066         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
31067         command.
31068
31069 2009-08-31  Jim Meyering  <meyering@redhat.com>
31070
31071         canonicalize: remove useless initialization
31072         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
31073         initialization of local, "end".
31074
31075 2009-08-30  Bruno Haible  <bruno@clisp.org>
31076
31077         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
31078         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
31079         ENOSYS.
31080
31081 2009-08-30  Bruno Haible  <bruno@clisp.org>
31082
31083         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
31084         /usr/xpg4/bin/tr when it exists.
31085         * tests/test-pipe-filter-gi1.sh: Likewise.
31086
31087 2009-08-30  Bruno Haible  <bruno@clisp.org>
31088
31089         Work around deficient /usr/bin/id program on Solaris.
31090         * tests/test-file-has-acl.sh (ID): New variable.
31091         * tests/test-set-mode-acl.sh (ID): Likewise.
31092         * tests/test-copy-acl.sh (ID): Likewise.
31093         * tests/test-copy-file.sh (ID): Likewise.
31094
31095 2009-08-30  Bruno Haible  <bruno@clisp.org>
31096
31097         New module 'xstriconveh'.
31098         * lib/xstriconveh.h: New file.
31099         * lib/xstriconveh.c: New file.
31100         * modules/xstriconveh: New file.
31101
31102 2009-08-30  Bruno Haible  <bruno@clisp.org>
31103
31104         Make it easier to use mem_cd_iconveh.
31105         * lib/striconveh.h (iconveh_t): New type.
31106         (iconveh_open, iconveh_close): New declarations.
31107         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
31108         with a single 'const iconveh_t *' argument.
31109         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
31110         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
31111         with a single 'const iconveh_t *' argument.
31112         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
31113         * tests/test-striconveh.c (main): Update.
31114         * NEWS: Mention the change.
31115
31116 2009-08-30  Bruno Haible  <bruno@clisp.org>
31117
31118         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
31119         problem.
31120
31121 2009-08-30  Bruno Haible  <bruno@clisp.org>
31122
31123         Work around iconv_open problem on Solaris.
31124         * lib/iconv_open-solaris.gperf: New file.
31125         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
31126         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
31127         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
31128         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
31129         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
31130         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
31131
31132 2009-08-29  Jim Meyering  <meyering@redhat.com>
31133
31134         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
31135         * top/maint.mk (cvs-check): Remove target; it was just an alias
31136         to the better-named vc-diff-check.
31137         (maintainer-distcheck): Remove rule.  It was used only from
31138         the (alpha/beta/major) target, and all of its commands but one
31139         were coreutils-specific.
31140         (vc-dist): Remove rule.
31141         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
31142         Run vc-diff-check, not vc-dist.
31143         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
31144
31145 2009-08-27  Bruno Haible  <bruno@clisp.org>
31146
31147         * tests/test-bitrotate.c (main): Remove test that uses a shift count
31148         of 0.
31149
31150 2009-08-27  Bruno Haible  <bruno@clisp.org>
31151
31152         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
31153         compilers.
31154         * doc/func.texi: Document the SunPRO C bug.
31155
31156 2009-08-27  Bruno Haible  <bruno@clisp.org>
31157
31158         Fix link error on Solaris.
31159         * tests/test-parse-duration.c (xstrdup): Remove function.
31160
31161 2009-08-26  Pádraig Brady  <P@draigbrady.com>
31162
31163         ignore-value: handle pointer types, too
31164         * lib/ignore-value.h (__attribute__): Remove definition.
31165         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
31166         of a more concise and more-often effective "(void) i" statement.
31167         (ignore_ptr): New function to suppress warnings from functions that
31168         return pointers, and to make it explicit that one function doesn't
31169         handle all cases.
31170
31171 2009-08-25  Bruno Haible  <bruno@clisp.org>
31172
31173         dup2: work around a Linux bug.
31174         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
31175         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
31176         * doc/posix-functions/dup2.texi: Mention the Linux bug.
31177         Reported by Simon Josefsson.
31178
31179 2009-08-25  Jim Meyering  <meyering@redhat.com>
31180
31181         libguestfs uses gnulib
31182         * users.txt: Add libguestfs.
31183
31184 2009-08-24  Eric Blake  <ebb9@byu.net>
31185
31186         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
31187         * lib/pipe2.c (includes): Add binary-io.h.
31188         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
31189
31190 2009-08-24  Bruno Haible  <bruno@clisp.org>
31191
31192         Tolerate declared but missing accept4 syscall.
31193         * lib/accept4.c (accept4): Invoke original accept4 function first, if
31194         available.
31195         * lib/sys_socket.in.h (accept4): If the function is already present,
31196         override it.
31197         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
31198         * modules/accept4 (Makefile.am): Compile accept4.c always.
31199         Reported by Paolo Bonzini and Eric Blake.
31200
31201 2009-08-23  Bruno Haible  <bruno@clisp.org>
31202
31203         New module 'accept4'.
31204         * lib/sys_socket.in.h (accept4): New declaration.
31205         * lib/accept4.c: New file.
31206         * m4/accept4.m4: New file.
31207         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
31208         GNULIB_ACCEPT4, HAVE_ACCEPT4.
31209         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
31210         HAVE_ACCEPT4.
31211         * modules/accept4: New file.
31212         * doc/glibc-functions/accept4.texi: Mention the new module.
31213
31214 2009-08-24  Jim Meyering  <meyering@redhat.com>
31215
31216         progname: also set global program_invocation_name, when possible
31217         Before this change, a libtool-enabled program that calls glibc's
31218         error function would report the program name as
31219         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
31220         * modules/progname (configure.ac): Check for a declaration of
31221         program_invocation_name.
31222         * lib/progname.c:  Include <errno.h>.
31223         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
31224         Set program_invocation_name.
31225
31226 2009-08-23  Bruno Haible  <bruno@clisp.org>
31227
31228         * lib/dup3.c: Include <string.h>.
31229
31230 2009-08-23  Bruno Haible  <bruno@clisp.org>
31231
31232         * lib/dup3.c (dup3): Test only once whether the system actually exists.
31233         * lib/pipe2.c (pipe2): Likewise.
31234         Suggested by Eric Blake.
31235
31236 2009-08-23  Bruno Haible  <bruno@clisp.org>
31237
31238         Tolerate declared but missing dup3 syscall.
31239         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
31240         * lib/unistd.in.h (dup3): If the function is already present,
31241         override it.
31242         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
31243         * modules/dup3 (Makefile.am): Compile dup3.c always.
31244         Reported by Paolo Bonzini.
31245
31246 2009-08-23  Bruno Haible  <bruno@clisp.org>
31247
31248         Tolerate declared but missing pipe2 syscall.
31249         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
31250         available.
31251         * lib/unistd.in.h (pipe2): If the function is already present,
31252         override it.
31253         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
31254         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
31255         Reported by Paolo Bonzini.
31256
31257 2009-08-23  Bruno Haible  <bruno@clisp.org>
31258
31259         * lib/pipe2.c (pipe2): Move #ifs inside function.
31260
31261 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
31262
31263         quotearg: document limitations of quote_these_too
31264         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
31265         those limitations are created.
31266         * lib/quotearg.h (set_char_quoting): Document that digits and
31267         letters that are special after backslash are not permitted.
31268         (quotearg_char): Cross-reference set_char_quoting documentation.
31269
31270 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
31271
31272         quotearg: implement custom_quoting_style
31273         * lib/quotearg.c: (struct quoting_options): Add left_quote and
31274         right_quote fields.
31275         (set_custom_quoting): New public function.
31276         (quotearg_buffer_restyled): Add left_quote and right_quote
31277         arguments, handle them very much like locale quoting, and update
31278         all uses.
31279         (quotearg_n_custom): New public function.
31280         (quotearg_n_custom_mem): New public function.
31281         (quotearg_custom): New public function.
31282         (quotearg_custom_mem): New public function.
31283         * lib/quotearg.h: Prototype and document new public functions.
31284         (enum quoting_style): For escape_quoting_style and
31285         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
31286         ignored even though they're otherwise like c_quoting_style.
31287         Add custom_quoting_style member and document with comparison to
31288         clocale_quoting_style.
31289         * tests/test-quotearg.c (custom_quotes): New array.
31290         (custom_results): New array.
31291         (main): Extend to test custom quoting.
31292
31293 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
31294
31295         quotearg: fix right quote escaping when it's in quote_these_too
31296         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
31297         quote, be sure to prepend only one backslash.
31298         * tests/test-quotearg.c (use_quote_double_quotes): New function.
31299         (main): Test it.
31300
31301 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
31302
31303         quotearg-tests: test escaping of embedded locale quotes
31304         * tests/test-quotearg.c (struct result_strings): Add member for
31305         new input.
31306         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
31307         (inputs): Add new input.
31308         (results_g): Add expected results.
31309         (flag_results): Likewise.
31310         (locale_results): Likewise.
31311         (compare_strings): Check those.
31312
31313 2009-08-23  Bruno Haible  <bruno@clisp.org>
31314
31315         Tests for module 'dup3'.
31316         * modules/dup3-tests: New file.
31317         * tests/test-dup3.c: New file.
31318
31319         New module 'dup3'.
31320         * lib/unistd.in.h (dup3): New declaration.
31321         * lib/dup3.c: New file.
31322         * m4/dup3.m4: New file.
31323         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
31324         HAVE_DUP3.
31325         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
31326         * modules/dup3: New file.
31327         * doc/glibc-functions/dup3.texi: Mention the new module.
31328
31329 2009-08-23  Bruno Haible  <bruno@clisp.org>
31330
31331         Tweak the dup2 test.
31332         * tests/test-dup2.c (main): Create the test file empty. Verify that an
31333         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
31334         the test file is still empty. Fix argument order of lseek.
31335
31336 2009-08-23  Bruno Haible  <bruno@clisp.org>
31337
31338         Avoid test link errors when the modules getopt-gnu, gettext are used.
31339         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
31340         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31341
31342 2009-08-23  Bruno Haible  <bruno@clisp.org>
31343
31344         Fix getdtablesize() on mingw.
31345         * lib/getdtablesize.c (getdtablesize): Implement differently.
31346         * lib/unistd.in.h (getdtablesize): Improve comment.
31347
31348 2009-08-23  Bruno Haible  <bruno@clisp.org>
31349
31350         New module 'mkostemp'.
31351         Based on Ulrich Drepper's 2007-08-10 change in glibc.
31352         * lib/stdlib.in.h (mksotemp): New declaration.
31353         * lib/mkostemp.c: New file, from glibc with modifications.
31354         * lib/tempname.h (GT_FILE): Remove outdated comment.
31355         (gen_tempname): Add flags argument.
31356         * lib/tempname.c (__GT_BIGFILE): Remove macro.
31357         (__GT_FILE): Map to 1.
31358         (small_open, large_open): Remove macros.
31359         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
31360         * lib/mkstemp.c (mkstemp): Update.
31361         * lib/mkdtemp.c (mkdtemp): Likewise.
31362         * m4/mkostemp.m4: New file.
31363         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
31364         HAVE_MKOSTEMP.
31365         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
31366         HAVE_MKOSTEMP.
31367         * modules/mkostemp: New file, based on modules/mkstemp.
31368         * doc/glibc-functions/mkostemp.texi: Mention the new module.
31369         * NEWS: Mention the change.
31370
31371 2009-08-23  Bruno Haible  <bruno@clisp.org>
31372
31373         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
31374         Reported by Eric Blake.
31375
31376 2009-08-23  Bruno Haible  <bruno@clisp.org>
31377
31378         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
31379         Reported by Eric Blake.
31380
31381 2009-08-23  Bruno Haible  <bruno@clisp.org>
31382
31383         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
31384         * modules/pipe2 (Depends-on): Likewise.
31385
31386 2009-08-23  Eric Blake  <ebb9@byu.net>
31387
31388         fcntl-h: add O_TTY_INIT support
31389         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
31390         * tests/test-fcntl-h.c (o): Test it.
31391         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31392
31393         fcntl-h: rename from fcntl, in preparation for fcntl(2)
31394         * modules/fcntl: Move <fcntl.h> header replacement...
31395         * modules/fcntl-h: ...to new name, so as not to collide with
31396         like-named function.
31397         * tests/test-fcntl.c: Rename...
31398         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
31399         * modules/fcntl-tests: Rename...
31400         * modules/fcntl-h-tests: ...to this.  Update test file name.
31401         * modules/chdir-long (Depends-on): Update clients.
31402         * modules/chdir-safer (Depends-on): Likewise.
31403         * modules/fcntl-safer (Depends-on): Likewise.
31404         * modules/fts (Depends-on): Likewise.
31405         * modules/mkancesdirs (Depends-on): Likewise.
31406         * modules/mkdir-p (Depends-on): Likewise.
31407         * modules/open (Depends-on): Likewise.
31408         * modules/savewd (Depends-on): Likewise.
31409         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
31410         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31411
31412 2009-08-22  Bruno Haible  <bruno@clisp.org>
31413
31414         * modules/binary-io (License): Relicense under LGPL.
31415         * modules/pipe2 (License): Likewise.
31416
31417 2009-08-22  Bruno Haible  <bruno@clisp.org>
31418
31419         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
31420         return value.
31421         * lib/pipe-filter-gi.c (filter_init): Likewise.
31422         Reported by Eric Blake.
31423
31424 2009-08-22  Bruno Haible  <bruno@clisp.org>
31425
31426         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
31427         * modules/pipe (Depends-on): Add pipe2.
31428
31429 2009-08-22  Bruno Haible  <bruno@clisp.org>
31430
31431         Tests for module 'pipe2'.
31432         * modules/pipe2-tests: New file.
31433         * tests/test-pipe2.c: New file.
31434
31435         New module 'pipe2'.
31436         * lib/unistd.in.h (pipe2): New declaration.
31437         * lib/pipe2.c: New file.
31438         * m4/pipe2.m4: New file.
31439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
31440         HAVE_PIPE2.
31441         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
31442         * modules/pipe2: New file.
31443         * doc/glibc-functions/pipe2.texi: Mention the new module.
31444
31445 2009-08-22  Bruno Haible  <bruno@clisp.org>
31446
31447         Reference some new glibc functions.
31448         * doc/glibc-functions/accept4.texi: New file.
31449         * doc/glibc-functions/dup3.texi: New file.
31450         * doc/glibc-functions/mkostemp.texi: New file.
31451         * doc/glibc-functions/pipe2.texi: New file.
31452         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
31453         (Glibc sys/socket.h): Refer to accept4.
31454         (Glibc unistd.h): Refer to dup3, pipe2.
31455         Reported by Eric Blake.
31456
31457 2009-08-22  Jim Meyering  <meyering@redhat.com>
31458             Bruno Haible  <bruno@clisp.org>
31459
31460         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
31461         This makes it so packages using automake-1.11's silent-rules option
31462         can print e.g., a single "GEN    configmake.h" line, rather than
31463         the 30+ statements that perform the job.  If you want to see the
31464         actual commands, you can still run "make V=1".
31465         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
31466         so that make output is abbreviated when those variables are defined
31467         appropriately.
31468         * modules/argz: Likewise.
31469         * modules/arpa_inet: Likewise.
31470         * modules/byteswap: Likewise.
31471         * modules/configmake: Likewise.
31472         * modules/dirent: Likewise.
31473         * modules/errno: Likewise.
31474         * modules/fcntl: Likewise.
31475         * modules/float: Likewise.
31476         * modules/fnmatch: Likewise.
31477         * modules/getopt-posix: Likewise.
31478         * modules/glob: Likewise.
31479         * modules/iconv_open: Likewise.
31480         * modules/inttypes: Likewise.
31481         * modules/localcharset: Likewise.
31482         * modules/locale: Likewise.
31483         * modules/math: Likewise.
31484         * modules/netdb: Likewise.
31485         * modules/netinet_in: Likewise.
31486         * modules/poll: Likewise.
31487         * modules/posix_spawnp-tests: Likewise.
31488         * modules/sched: Likewise.
31489         * modules/search: Likewise.
31490         * modules/selinux-h: Likewise.
31491         * modules/signal: Likewise.
31492         * modules/spawn: Likewise.
31493         * modules/stdarg: Likewise.
31494         * modules/stdbool: Likewise.
31495         * modules/stddef: Likewise.
31496         * modules/stdint: Likewise.
31497         * modules/stdio: Likewise.
31498         * modules/stdlib: Likewise.
31499         * modules/string: Likewise.
31500         * modules/strings: Likewise.
31501         * modules/sys_file: Likewise.
31502         * modules/sys_ioctl: Likewise.
31503         * modules/sys_select: Likewise.
31504         * modules/sys_socket: Likewise.
31505         * modules/sys_stat: Likewise.
31506         * modules/sys_time: Likewise.
31507         * modules/sys_times: Likewise.
31508         * modules/sys_utsname: Likewise.
31509         * modules/sys_wait: Likewise.
31510         * modules/sysexits: Likewise.
31511         * modules/time: Likewise.
31512         * modules/unistd: Likewise.
31513         * modules/wchar: Likewise.
31514         * modules/wctype: Likewise.
31515
31516 2009-08-22  Jim Meyering  <meyering@redhat.com>
31517
31518         announce-gen: detect write failure
31519         * build-aux/announce-gen: Add Coda at end.
31520         Remove equivalent-but-more-verbose block at top.
31521
31522 2009-08-19  Akim Demaille  <demaille@gostai.com>
31523
31524         bootstrap: --help to stdout.
31525         * bootstrap (usage): Don't send --help to stderr.
31526         Use a here doc instead of a long string.
31527
31528 2009-08-21  Eric Blake  <ebb9@byu.net>
31529
31530         test-popen-safer: split from test-popen
31531         * tests/test-popen.c (main): Move...
31532         * tests/test-popen.h: ...into new file.
31533         * tests/test-popen-safer2.c: New file.
31534         * modules/popen-tests (Files): Add test-popen.h.
31535         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
31536         Suggested by Bruno Haible.
31537
31538         test-fcntl-safer: split from test-open
31539         * tests/test-open.c (main): Move...
31540         * tests/test-open.h: ...into new file.
31541         * tests/test-fcntl-safer.c: New file.
31542         * modules/open-tests (Files): Add test-open.h.
31543         * modules/fcntl-safer-tests: New file.
31544         Suggested by Bruno Haible.
31545
31546         test-fopen-safer: split from test-fopen
31547         * tests/test-fopen.c (main): Move...
31548         * tests/test-fopen.h: ...into new file.
31549         * tests/test-fopen-safer.c: New file.
31550         * modules/fopen-tests (Files): Add test-fopen.h.
31551         * modules/fopen-safer-tests: New file.
31552         Suggested by Bruno Haible.
31553
31554 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
31555
31556         popen-safer: test O_CLOEXEC at run-time.
31557         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
31558
31559 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
31560
31561         fcntl: move more flags to the header
31562         * lib/cloexec.c: Do not define FD_CLOEXEC here.
31563         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
31564         * lib/fcntl.in.h: Do both things here.
31565
31566 2009-08-21  Jim Meyering  <meyering@redhat.com>
31567
31568         consistently remove $@-t before redirecting to it
31569         * modules/argz: Remove $@-t and $@ before redirecting to the former.
31570         * modules/alloca-opt: Likewise.
31571         * modules/byteswap: Likewise.
31572         * modules/fnmatch: Likewise.
31573         * modules/getopt-posix: Likewise.
31574         * modules/glob: Likewise.
31575         * modules/poll: Likewise.
31576         * modules/posix_spawnp-tests: Likewise.
31577         * modules/sys_socket: Likewise.
31578         * modules/sysexits: Likewise.
31579
31580 2009-08-21  Eric Blake  <ebb9@byu.net>
31581
31582         popen: simplify access to original popen
31583         * lib/popen.c (rpl_popen): No need to worry about popen being a
31584         macro.
31585         Reported by Bruno Haible.
31586
31587 2009-08-20  Eric Blake  <ebb9@byu.net>
31588
31589         build: avoid some compiler warnings
31590         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
31591         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
31592         type.
31593         (new_exclude_segment, excluded_file_pattern_p)
31594         (excluded_file_name_p): Reduce scope.
31595         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
31596         old-style declaration.
31597
31598 2009-08-20  Simon Josefsson  <simon@josefsson.org>
31599
31600         * tests/test-exclude1.sh: Handle Windows EOL.
31601         * tests/test-exclude2.sh: Likewise.
31602         * tests/test-exclude3.sh: Likewise.
31603         * tests/test-exclude4.sh: Likewise.
31604         * tests/test-exclude5.sh: Likewise.
31605         * tests/test-exclude6.sh: Likewise.
31606         * tests/test-exclude7.sh: Likewise.
31607
31608 2009-08-19  Akim Demaille  <demaille@gostai.com>
31609
31610         bootstrap: find sha1sum when named gsha1sum.
31611         * bootstrap (find_tool): New.
31612         ($SHA1SUM): New.
31613         Use it.
31614
31615 2009-08-20  Jim Meyering  <meyering@redhat.com>
31616
31617         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
31618         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
31619         expression that converts "." in a file name to "\." in the resulting
31620         regexp.  Start with a dummy statement, so that prior shell variable
31621         definitions are expanded portably.  Reported by Simon Josefsson.
31622
31623 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
31624
31625         Fix polling for writeability of a screen buffer.
31626         * lib/poll.c: Distinguish input and screen buffers for the
31627         Win32 implementation.
31628         * lib/select.c: Likewise.
31629
31630 2009-08-19  Eric Blake  <ebb9@byu.net>
31631
31632         popen-safer: prevent popen from clobbering std descriptors
31633         * modules/popen-safer: New file.
31634         * lib/popen-safer.c: Likewise.
31635         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
31636         * lib/stdio--.h (popen): Provide override.
31637         * lib/stdio-safer.h (popen_safer): Provide declaration.
31638         * tests/test-popen.c (includes): Partially test this.
31639         * modules/popen-safer-tests: New file, for more tests.
31640         * tests/test-popen-safer.c: Likewise.
31641         * MODULES.html.sh (file stream based Input/Output): Mention it.
31642
31643         tests: test some of the *-safer modules
31644         * modules/fopen-safer (Depends-on): Add fopen.
31645         * modules/fcntl-safer (Depends-on): Add fcntl.
31646         * modules/stdlib-safer (Depends-on): Add stdlib.
31647         (configure.ac): Set indicator.
31648         * modules/unistd-safer (configure.ac): Likewise.
31649         * modules/tmpfile-safer (configure.ac): Likewise.
31650         (Depends-on): Add tmpfile.
31651         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
31652         active.
31653         * tests/test-fopen.c (includes): Test safer versions when they are
31654         in use.
31655         * tests/test-open.c (includes): Likewise.
31656
31657         popen: fix cygwin 1.5 bug when stdin closed
31658         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
31659         * modules/popen: New file.
31660         * modules/popen-tests: Likewise.
31661         * tests/test-popen.c: Likewise.
31662         * m4/popen.m4: Likewise.
31663         * lib/popen.c: Likewise.
31664         * lib/stdio.in.h (popen): New declaration.
31665         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
31666         * modules/stdio (Makefile.am): Likewise.
31667         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
31668
31669 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
31670
31671         maint.mk: give full control over update-copyright exclusions
31672         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
31673         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
31674         (update-copyright): Don't force inclusion of top-level
31675         ChangeLog.  Don't force exclusion of all COPYING files, but make
31676         them the default exclusion instead.
31677
31678 2009-08-16  Bruno Haible  <bruno@clisp.org>
31679
31680         Fix test failures on Solaris 10.
31681         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
31682         tests when Solaris iconv() is used.
31683         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
31684         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
31685         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
31686         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
31687         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
31688
31689 2009-08-16  Bruno Haible  <bruno@clisp.org>
31690
31691         Fix test failures on Solaris 10.
31692         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
31693         'tr' program and pass it as first argument.
31694         * tests/test-pipe-filter-gi1.sh: Likewise.
31695         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
31696         program as first argument.
31697         * tests/test-pipe-filter-gi1.c (main): Likewise.
31698
31699 2009-08-16  Eric Blake  <ebb9@byu.net>
31700
31701         fpurge: fix previous commits
31702         * modules/fpurge (Makefile.am): Make replacement conditional,
31703         partially reverting 2007-04-29 change; missed in previous
31704         attempt.
31705         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
31706         is missing.
31707
31708 2009-08-16  Bruno Haible  <bruno@clisp.org>
31709
31710         Clarify fpurge's effect on the file position.
31711         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
31712         * tests/test-fpurge.c (main): Make a second pass for checking the file
31713         position.
31714
31715 2009-08-16  Bruno Haible  <bruno@clisp.org>
31716
31717         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
31718         declaration of fpurge is missing.
31719         * tests/test-fpurge.c (main): Check that the file has not more contents
31720         than expected. Close the file before removing it.
31721
31722 2009-08-15  Eric Blake  <ebb9@byu.net>
31723
31724         fpurge: don't wrap working cygwin implementation
31725         * lib/fpurge.c (fpurge): Fix comment typo.
31726         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
31727         1.7 to avoid replacement.
31728         * tests/test-fpurge.c (main): Enhance test.
31729
31730 2009-08-15  Eric Blake  <ebb9@byu.net>
31731         and Jim Meyering  <meyering@redhat.com>
31732
31733         test-update-copyright: skip if perl is insufficient
31734         * tests/test-update-copyright.sh: Failure to run maintainer tool
31735         should not cause testsuite failure on cygwin 1.5.
31736
31737 2009-08-14  Eric Blake  <ebb9@byu.net>
31738
31739         doc: mention more functions added in cygwin 1.7.0
31740         * doc/posix-headers/limits.texi (limits.h): Update for recent
31741         cygwin additions.
31742         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
31743         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
31744         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
31745         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
31746         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
31747
31748 2009-08-14  Eric Blake  <ebb9@byu.net>
31749
31750         maint.mk: simplify update-copyright rule
31751         * top/maint.mk (update-copyright-local): Delete, and document how
31752         to do it in cfg.mk instead.
31753         (update-copyright-exclude-regexp): Delete, and document how to do
31754         it in .x-update-copyright instead.
31755         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
31756         exclude ChangeLog.
31757
31758 2009-08-14  Bruno Haible  <bruno@clisp.org>
31759
31760         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
31761
31762 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31763
31764         maint.mk: support update-copyright-env
31765         * top/maint.mk (update-copyright-env): Define place-holder.
31766         (update-copyright): Expand $(update-copyright-env) before
31767         invoking update-copyright.
31768
31769 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31770
31771         update-copyright: implement forced reformatting
31772         * build-aux/update-copyright: Implement and document
31773         UPDATE_COPYRIGHT_FORCE.
31774         * tests/test-update-copyright.sh: Test it.
31775
31776 2009-08-14  Eric Blake  <ebb9@byu.net>
31777         and Bruno Haible  <bruno@clisp.org>
31778
31779         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
31780         * tests/test-locale.c: Revert previous patch related to NULL.
31781         * tests/test-stdio.c: Likewise.
31782         * tests/test-stdlib.c: Likewise.
31783         * tests/test-string.c: Likewise.
31784         * tests/test-unistd.c: Likewise.
31785         * modules/time-tests (Depends-on): Add verify.
31786         * modules/wchar-tests (Depends-on): Likewise.
31787         * tests/test-time.c: Test for NULL compliance.
31788         * tests/test-wchar.c: Likewise.
31789         * modules/locale (Depends-on): Add stddef.
31790         * modules/stdio (Depends-on): Likewise.
31791         * modules/stdlib (Depends-on): Likewise.
31792         * modules/string (Depends-on): Likewise.
31793         * modules/time (Depends-on): Likewise.
31794         * modules/unistd (Depends-on): Likewise.
31795         * modules/wchar (Depends-on): Likewise.
31796         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
31797         * lib/stdlib.in.h (includes): Likewise.
31798         * lib/string.in.h (includes): Likewise.
31799         * lib/time.in.h (includes): Likewise.
31800         * lib/unistd.in.h (includes): Likewise.
31801         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
31802         replaced.
31803         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31804         * m4/stddef_h.m4: New file.
31805         * modules/stddef: Likewise.
31806         * lib/stddef.in.h: Likewise.
31807         * modules/stddef-tests: Likewise.
31808         * tests/test-stddef.c: Likewise.
31809         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
31810         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
31811         * doc/posix-headers/locale.texi (locale.h): Likewise.
31812         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
31813         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
31814         * doc/posix-headers/string.texi (string.h): Likewise.
31815         * doc/posix-headers/time.texi (time.h): Likewise.
31816         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
31817         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
31818
31819 2009-08-14  Eric Blake  <ebb9@byu.net>
31820
31821         doc: improve git diff of texinfo files
31822         * .gitattributes: Add rule for *.texi files, with hint on how to
31823         use it.
31824         Copied from m4, and based on a report by Bruno Haible.
31825
31826 2009-08-14  Bruno Haible  <bruno@clisp.org>
31827
31828         Disable multithread support by default on Cygwin 1.5.x for real.
31829         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
31830
31831 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31832
31833         update-copyright: much ado about intervals
31834         * build-aux/update-copyright: Implement and document
31835         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
31836         of copyright year intervals.
31837         Also, document UPDATE_COPYRIGHT_YEAR.
31838         * tests/test-update-copyright.sh: Test it.
31839
31840         update-copyright: convert 2-digit to 4-digit years
31841         * build-aux/update-copyright: Implement and document.
31842         * tests/test-update-copyright.sh: Update.
31843
31844 2009-08-14  Jim Meyering  <meyering@redhat.com>
31845
31846         test-exclude: avoid coreutils "make check" failure
31847         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
31848         just as in test-argmatch.c.
31849
31850 2009-08-13  Eric Blake  <ebb9@byu.net>
31851
31852         test-dup2: fix bad assumption
31853         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
31854         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
31855
31856         test-version-etc: fix CRLF portability issue
31857         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
31858         recognize \r.
31859         * tests/test-argp-version-etc-1.sh: Likewise.
31860
31861         getopt: update client modules
31862         * modules/argp (Depends-on): Use getopt-gnu.
31863         * modules/git-merge-changelog (Depends-on): Likewise.
31864         * modules/long-options (Depends-on): Likewise.
31865         * modules/xstrtol (Depends-on): Likewise.
31866
31867 2009-08-13  Simon Josefsson  <simon@josefsson.org>
31868
31869         * tests/test-version-etc.sh: Don't fail on different
31870         project/version.  Don't fail on CRLF differences.  Rewrite to use
31871         multiple -e instead of multiple sed forks, suggested by Eric Blake
31872         <ebb9@byu.net>.
31873         * tests/test-argp-version-etc-1.sh: Likewise.
31874
31875 2009-08-13  Simon Josefsson  <simon@josefsson.org>
31876
31877         * tests/test-version-etc.sh: Don't fail on different
31878         project/version.
31879
31880 2009-08-12  Bruno Haible  <bruno@clisp.org>
31881
31882         Tests for modules 'getopt-posix', 'getopt-gnu'.
31883         * modules/getopt-posix-tests: New file.
31884         * tests/test-getopt.c: New file.
31885         * tests/test-getopt.h: New file.
31886         * tests/test-getopt_long.h: New file.
31887
31888         New modules 'getopt-posix', 'getopt-gnu'.
31889         * modules/getopt-gnu: New file, renamed from modules/getopt.
31890         * modules/getopt-posix: New file.
31891         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
31892         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
31893         (gl_GETOPT): Remove macro.
31894         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
31895         Disable the test against BSD systems that declare optreset. Test
31896         against mingw bug. Test against lack of support of optional arguments
31897         on many platforms.
31898         * doc/glibc-headers/getopt.texi: Update module name and list of
31899         relevant platforms.
31900         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
31901         'getopt-gnu' and more portability problems.
31902         * NEWS: Mention the changes.
31903
31904 2009-08-12  Bruno Haible  <bruno@clisp.org>
31905
31906         Ensure that optarg etc. get declared by <unistd.h>.
31907         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
31908         AC_USE_SYSTEM_EXTENSIONS.
31909         * modules/getopt (Depends-on): Add 'extensions'.
31910
31911 2009-08-12  Bruno Haible  <bruno@clisp.org>
31912
31913         Avoid test link errors.
31914         * modules/pipe-filter-ii-tests (Makefile.am): Define
31915         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
31916         * modules/pipe-filter-gi-tests (Makefile.am): Define
31917         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
31918         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31919
31920 2009-08-12  Bruno Haible  <bruno@clisp.org>
31921
31922         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
31923         gl_GETOPT_SUBSTITUTE before.
31924         (gl_GETOPT): Use it.
31925         * m4/argp.m4 (gl_ARGP): Update.
31926         Reported by Sergey Poznyakoff.
31927
31928         * m4/getopt.m4: Reorder macros.
31929         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
31930         (gl_GETOPT_SUBSTITUTE): Remove macro.
31931
31932 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31933
31934         Minor improvement in gitlog-to-changelog
31935
31936         * build-aux/gitlog-to-changelog: New option `--format' makes
31937         output format string configurable.
31938
31939 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31940
31941         Optimize exclude: use hash tables for non-wildcard patterns.
31942
31943         * lib/exclude.c: Include hash.h and mbuiter.h
31944         (struct exclude_pattern, exclude_segment): New data types.
31945         (struct exclude): Rewrite.
31946         (fnmatch_pattern_has_wildcards): New function.
31947         (new_exclude_segment, free_exclude_segment): New functions.
31948         (excluded_file_pattern_p, excluded_file_name_p): New functions.
31949         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
31950         * lib/exclude.h (is_fnmatch_pattern): New prototype.
31951         * modules/exclude: Depend on hash and mbuiter.
31952
31953         * modules/exclude-tests: New file.
31954         * tests/test-exclude.c: New file.
31955         * tests/test-exclude1.sh: New file.
31956         * tests/test-exclude2.sh: New file.
31957         * tests/test-exclude3.sh: New file.
31958         * tests/test-exclude4.sh: New file.
31959         * tests/test-exclude5.sh: New file.
31960         * tests/test-exclude6.sh: New file.
31961         * tests/test-exclude7.sh: New file.
31962
31963 2009-08-12  Bruno Haible  <bruno@clisp.org>
31964
31965         Ensure that getopt() gets declared by <unistd.h>.
31966         * lib/unistd.in.h: Conditionally include getopt.h.
31967         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
31968         Set GNULIB_UNISTD_H_GETOPT.
31969         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31970         GNULIB_UNISTD_H_GETOPT.
31971         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
31972
31973 2009-08-12  Bruno Haible  <bruno@clisp.org>
31974
31975         Clarify logic.
31976         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
31977         gl_replace_getopt instead of GETOPT_H.
31978
31979 2009-08-12  Bruno Haible  <bruno@clisp.org>
31980
31981         * m4/getopt.m4: Add comments.
31982
31983 2009-08-12  Bruno Haible  <bruno@clisp.org>
31984
31985         Disable multithread support by default on Cygwin 1.5.x.
31986         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
31987         set gl_use_threads=no if not specified otherwise.
31988
31989 2009-08-11  Bruno Haible  <bruno@clisp.org>
31990
31991         Avoid compilation error on NetBSD 5.0.
31992         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
31993         * tests/test-stdio.c: Likewise.
31994         * tests/test-stdlib.c: Likewise.
31995         * tests/test-string.c: Likewise.
31996         * tests/test-unistd.c: Likewise.
31997         Reported by Greg Troxel <gdt@ir.bbn.com>
31998         at <https://savannah.gnu.org/support/?106973>.
31999
32000 2009-08-11  Bruno Haible  <bruno@clisp.org>
32001
32002         * modules/dup2-tests (Depends-on): Remove close.
32003
32004         Undo 2009-07-19 commit.
32005         * modules/acl-tests (Depends-on): Remove close.
32006         * modules/binary-io-tests (Depends-on): Likewise.
32007         * modules/closein-tests (Depends-on): Likewise.
32008         * modules/flock-tests (Depends-on): Likewise.
32009         * modules/fsync-tests (Depends-on): Likewise.
32010         * modules/lseek-tests (Depends-on): Likewise.
32011         * modules/pipe-tests (Depends-on): Likewise.
32012         * modules/posix_spawn-tests (Depends-on): Likewise.
32013         * modules/posix_spawnp-tests (Depends-on): Likewise.
32014         * modules/stat-time-tests (Depends-on): Likewise.
32015         * modules/yesno-tests (Depends-on): Likewise.
32016
32017 2009-08-10  Bruno Haible  <bruno@clisp.org>
32018
32019         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
32020
32021 2009-08-10  Bruno Haible  <bruno@clisp.org>
32022
32023         Fix a gcc warning.
32024         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
32025
32026 2009-08-10  Bruno Haible  <bruno@clisp.org>
32027
32028         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
32029         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
32030         not only the first time.
32031         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
32032         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
32033         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
32034         is 1, not only the the first time.
32035
32036 2009-08-10  Bruno Haible  <bruno@clisp.org>
32037
32038         Make it possible to use module 'gethostname' without module 'close'.
32039         * lib/unistd.in.h (close): Evoke a link error only if
32040         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
32041         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32042         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32043         * modules/unistd (Makefile.am): Substitute
32044         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32045         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
32046         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
32047         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
32048         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32049         * modules/sys_ioctl (Makefile.am): Substitute
32050         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32051         * modules/socket (configure.ac): On native Windows, set
32052         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
32053         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32054         Reported by Sam Steingold <sds@gnu.org>.
32055
32056 2009-08-10  Bruno Haible  <bruno@clisp.org>
32057
32058         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
32059         * modules/ioctl (configure.ac): Likewise.
32060
32061 2009-08-10  Bruno Haible  <bruno@clisp.org>
32062
32063         Avoid collision between gnulib wrapper and libintl wrapper.
32064         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
32065         already defined in intl/printf.c.
32066         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
32067         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
32068
32069 2009-08-09  Bruno Haible  <bruno@clisp.org>
32070
32071         Make <sys/select.h> really self-contained, also on Solaris 10.
32072         * lib/sys_select.in.h: Include <string.h>.
32073         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
32074         Solaris 10 problem.
32075         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
32076         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
32077         Reported by Jim Meyering.
32078
32079 2009-08-09  Bruno Haible  <bruno@clisp.org>
32080
32081         Avoid warnings from 'aclocal' that are due to a use of macro name
32082         AM_XGETTEXT_OPTION that is not defined in automake.
32083         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
32084         automake.
32085         * modules/error (configure.ac): Likewise.
32086         * modules/propername (configure.ac): Likewise.
32087         * modules/vasprintf (configure.ac): Likewise.
32088         * modules/verror (configure.ac): Likewise.
32089         * modules/xprintf (configure.ac): Likewise.
32090         * modules/xvasprintf (configure.ac): Likewise.
32091
32092 2009-08-08  Bruno Haible  <bruno@clisp.org>
32093
32094         Avoid compilation error in C++ mode.
32095         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
32096         Reported by Sam Steingold <sds@gnu.org>.
32097
32098 2009-08-08  Bruno Haible  <bruno@clisp.org>
32099
32100         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
32101         for the various Unix platforms.
32102         * doc/posix-headers/limits.texi: Update platforms list regarding
32103         HOST_NAME_MAX.
32104         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32105
32106 2009-08-07  Jim Meyering  <meyering@redhat.com>
32107
32108         selinux-at: fix typo in a comment
32109         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
32110         Spotted by Paolo Bonzini.
32111
32112         selinux-at: remove redundant m4 code, add documentation
32113         * modules/selinux-at (configure.ac): Remove redundant code.
32114         LIB_SELINUX is already set via the dependent module, selinux-h.
32115         (Include): Add quotes around selinux-at.h.
32116         * lib/selinux-at.h: Add documentation.
32117         Reported by Bruno Haible in
32118         http://marc.info/?l=gnulib-bug&m=124958988300749
32119
32120 2009-08-07  Bruno Haible  <bruno@clisp.org>
32121
32122         Avoid link error on MacOS X 10.3 and 10.4.
32123         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
32124         on non-ELF systems.
32125         * lib/argp-pv.c (argp_program_version): Likewise.
32126         Reported by Simon Josefsson.
32127
32128 2009-08-07  Simon Josefsson  <simon@josefsson.org>
32129
32130         * tests/test-version-etc.sh: Use $EXEEXT.
32131
32132 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
32133
32134         update-copyright: update documentation to point to maint.mk
32135         * build-aux/update-copyright: Here.
32136
32137 2009-08-06  Jim Meyering  <meyering@redhat.com>
32138
32139         maint.mk: support update-copyright-local
32140         * top/maint.mk (update-copyright-local): Define place-holder.
32141         (update-copyright): Depend on $(update-copyright-local).
32142
32143 2009-08-06  Jim Meyering  <meyering@redhat.com>
32144
32145         selinux-at: new module
32146         Initially written for coreutils, this module will soon be
32147         used by findutils, too.
32148         * MODULES.html.sh [Misc]: Add selinux-at.
32149         * lib/selinux-at.h: New file, from coreutils.
32150         * lib/selinux-at.c: Likewise.
32151         * modules/selinux-at: Likewise.
32152         (License): Change from LGPL to GPL, since it depends
32153         on the GPL'd openat module.
32154
32155         doc: update README
32156         * README: Remove references to cogito.
32157         Remove cvs-repo-updating instructions from 2007.
32158         Don't imply that CVS is better if you have limited disk space.
32159
32160 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
32161
32162         update-copyright: support C-style comments
32163         * build-aux/update-copyright: Implement and document.
32164         * tests/test-update-copyright.sh: Test.
32165
32166 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
32167
32168         update-copyright: support omitted "(C)"
32169         * build-aux/update-copyright: Implement and document.  Also,
32170         allow variable whitespace before "(C)".
32171         * tests/test-update-copyright.sh: Test.
32172
32173 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
32174
32175         update-copyright: don't trip on non-FSF copyright statements
32176         * build-aux/update-copyright: Fix so that the first correctly
32177         formatted FSF copyright statement is recognized no matter what
32178         appears before it.  Update documentation.
32179         * tests/test-update-copyright.sh: Test that.
32180
32181 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
32182
32183         update-copyright: clean up code a little
32184         * build-aux/update-copyright: Append "_re" to the name of any
32185         variable holding a regular expression.
32186         Replace "old" and "new" with "stmt" in variable names.
32187         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
32188         handled correctly.
32189         Format code more consistently.
32190
32191 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
32192
32193         update-copyright-tests: improve portability
32194         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
32195         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
32196
32197 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
32198
32199         update-copyright: support @copyright{} and &copy;
32200         * build-aux/update-copyright: Implement and document.
32201         * tests/test-update-copyright.sh: Test.
32202
32203 2009-08-04  Jim Meyering  <meyering@redhat.com>
32204
32205         update-copyright-tests: correctly test EOL=\r\n handling
32206         * tests/test-update-copyright.sh: Put \r at the end of some lines
32207         for the dos-eol tests.  Based on a patch by Joel E. Denny.
32208
32209         maint.mk: make update-copyright exclusion list more configurable
32210         * top/maint.mk (update-copyright): Default to excluding COPYING,
32211         but allow an override, in case someone does want to update that file.
32212
32213         maint.mk: don't update copyright date in COPYING
32214         * top/maint.mk (update-copyright): Exclude COPYING.
32215
32216         maint.mk: add a copyright-updating rule
32217         * top/maint.mk (update-copyright): New rule.
32218         Derived from coreutils/Makefile.am.
32219
32220         update-copyright: rename some variables
32221         * build-aux/update-copyright: Rename a few variables for clarity.
32222         Tweak syntax.  List Joel E. Denny as coauthor.
32223
32224 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
32225
32226         update-copyright: fix bug for 2-digit last year and add tests
32227         * build-aux/update-copyright: Fix bug.
32228         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
32229         specified.
32230         * modules/update-copyright-tests: New
32231         * tests/test-update-copyright.sh: New.
32232
32233 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
32234
32235         update-copyright: handle leading tabs in line prefix
32236         * build-aux/update-copyright: Count leading tabs as 8 spaces
32237         when computing margin.  This helps with the formatting of
32238         ChangeLogs, for example.
32239         Fix documentation a little.
32240
32241 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
32242
32243         update-copyright: support EOL=\r\n
32244         * build-aux/update-copyright: Implement that.
32245
32246 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
32247
32248         update-copyright: automatically format copyright statements
32249         * build-aux/update-copyright: Implement that.
32250         Also, be a little more predictable and safer by always failing
32251         when the full copyright format is not perfectly recognized as an
32252         unbroken whole.  Discussed at
32253         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
32254         Rewrite documentation.
32255
32256 2009-08-03  Bruno Haible  <bruno@clisp.org>
32257
32258         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
32259
32260 2009-08-02  Bruno Haible  <bruno@clisp.org>
32261
32262         Tests for module 'uname'.
32263         * modules/uname-tests: New file.
32264         * tests/test-uname.c: New file.
32265
32266         New module 'uname'.
32267         * lib/uname.c: New file.
32268         * m4/uname.m4: New file.
32269         * modules/uname: New file.
32270         * doc/posix-functions/uname.texi: Mention the new module.
32271
32272 2009-08-02  Bruno Haible  <bruno@clisp.org>
32273
32274         Tests for module 'sys_utsname'.
32275         * modules/sys_utsname-tests: New file.
32276         * tests/test-sys_utsname.c: New file.
32277
32278         New module 'sys_utsname'.
32279         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
32280         * m4/sys_utsname_h.m4: New file.
32281         * modules/sys_utsname: New file.
32282         * doc/posix-headers/sys_utsname.texi: Mention the new module.
32283
32284 2009-08-02  Bruno Haible  <bruno@clisp.org>
32285
32286         Implicitly initialize the sockets library.
32287         * lib/gethostname.c: Include sockets.h.
32288         (rpl_gethostname): Invoke gl_sockets_startup.
32289         * lib/socket.c: Include sockets.h.
32290         (rpl_socket): Invoke gl_sockets_startup.
32291         * modules/gethostname (Depends-on): Add sockets.
32292         * modules/socket (Depends-on): Likewise.
32293         * tests/test-poll.c: Don't include sockets.h.
32294         (main): Don't invoke gl_sockets_startup.
32295         * tests/test-select.c: Don't include sockets.h.
32296         (main): Don't invoke gl_sockets_startup.
32297
32298 2009-08-02  Bruno Haible  <bruno@clisp.org>
32299
32300         Allow multiple calls to gl_sockets_startup.
32301         * lib/sockets.c (initialized_sockets_version): New variable.
32302         (gl_sockets_startup): Do nothing if already called for this or a higher
32303         version.
32304         (gl_sockets_cleanup): Reset initialized_sockets_version.
32305
32306 2009-08-03  Simon Josefsson  <simon@josefsson.org>
32307
32308         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
32309         different project/version.
32310
32311 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
32312             Bruno Haible  <bruno@clisp.org>
32313
32314         Tests for module 'pipe-filter-gi'.
32315         * modules/pipe-filter-gi-tests: New file.
32316         * tests/test-pipe-filter-gi1.sh: New file.
32317         * tests/test-pipe-filter-gi1.c: New file.
32318         * tests/test-pipe-filter-gi2.sh: New file.
32319         * tests/test-pipe-filter-gi2-main.c: New file.
32320         * tests/test-pipe-filter-gi2-child.c: New file.
32321
32322         New module 'pipe-filter-gi'.
32323         * lib/pipe-filter-gi.c: New file.
32324         * modules/pipe-filter-gi: New file.
32325
32326 2009-08-02  Bruno Haible  <bruno@clisp.org>
32327             Paolo Bonzini  <bonzini@gnu.org>
32328
32329         Tests for module 'pipe-filter-ii'.
32330         * modules/pipe-filter-ii-tests: New file.
32331         * tests/test-pipe-filter-ii1.sh: New file.
32332         * tests/test-pipe-filter-ii1.c: New file.
32333         * tests/test-pipe-filter-ii2.sh: New file.
32334         * tests/test-pipe-filter-ii2-main.c: New file.
32335         * tests/test-pipe-filter-ii2-child.c: New file.
32336
32337         New module 'pipe-filter-ii'.
32338         * lib/pipe-filter.h: New file.
32339         * lib/pipe-filter-ii.c: New file.
32340         * lib/pipe-filter-aux.h: New file.
32341         * modules/pipe-filter-ii: New file.
32342
32343 2009-08-02  Simon Josefsson  <simon@josefsson.org>
32344
32345         * lib/gc-libgcrypt.c: Change copyright to FSF.
32346         * lib/gc-gnulib.c: Likewise.
32347
32348 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
32349
32350         * lib/gethostname.c: Include limits.h.
32351
32352 2009-08-02  Simon Josefsson  <simon@josefsson.org>
32353             Bruno Haible  <bruno@clisp.org>
32354
32355         Ensure HOST_NAME_MAX as part of the gethostname module.
32356         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
32357         define also HOST_NAME_MAX.
32358         * tests/test-gethostname.c: Include <limits.h>.
32359         (main): Check also HOST_NAME_MAX.
32360         * doc/posix-headers/limits.texi: Document the mingw problem.
32361
32362 2009-08-02  Bruno Haible  <bruno@clisp.org>
32363
32364         * lib/gethostname.c (gethostname): Fix handling of large len argument.
32365         Add comments.
32366
32367 2009-03-31  Simon Josefsson  <simon@josefsson.org>
32368
32369         * lib/gethostname.c: Add Windows wrapper.
32370         * m4/gethostname.m4: Look for gethostname in -lws2_32.
32371         * modules/gethostname: Depend on sys_socket & errno, for also
32372         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
32373         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
32374
32375 2009-07-31  Jim Meyering  <meyering@redhat.com>
32376
32377         getloadavg: fix symbol name in comment
32378         * lib/getloadavg.c: Correct a typo I introduced when adding
32379         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
32380         Matt Kraai spotted the problem.
32381
32382 2009-07-29  Matt Kraai  <mkraai@beckman.com>
32383
32384         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
32385         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
32386         code also if ! defined N_NAME_POINTER.
32387         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
32388         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
32389         but the n_name member is a 12-byte array.
32390
32391 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
32392
32393         update-copyright: generalize comment handling
32394         * build-aux/update-copyright: Handle copyright statements
32395         within more comment styles.
32396         Document usage.
32397         Report any file with an external copyright holder or parse failure.
32398
32399 2009-07-29  Jim Meyering  <meyering@redhat.com>
32400
32401         mktime: correct setting of REPLACE_MKTIME
32402         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
32403
32404         update-copyright: new module
32405         * modules/update-copyright: New file.
32406         * build-aux/update-copyright: New file.
32407         * MODULES.html.sh (maint+release support): Add update-copyright.
32408
32409 2009-07-27  Bruno Haible  <bruno@clisp.org>
32410
32411         Fix compilation error when <ctime> is used and mktime is replaced.
32412         * lib/time.in.h (mktime): New declaration.
32413         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
32414         REPLACE_MKTIME instead of defining mktime in config.h.
32415         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
32416         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
32417         Reported by Ross McFarland <rwmcfa1@neces.com>.
32418
32419 2009-07-27  Bruno Haible  <bruno@clisp.org>
32420
32421         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
32422         Reported by Matt Kraai <mkraai@beckman.com>.
32423
32424 2009-07-25  Jim Meyering  <meyering@redhat.com>
32425
32426         maint.mk: avoid warnings about missing files
32427         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
32428         diagnostic when .prev-version does not exist.
32429         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
32430         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
32431         nonexistent cfg.mk.
32432         Suggestions from Simon Josefsson.
32433
32434 2009-07-25  Bruno Haible  <bruno@clisp.org>
32435
32436         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
32437         defined as macros. Needed on QNX 6.4.1.
32438         Reported by Matt Kraai <mkraai@beckman.com>.
32439
32440 2009-07-23  Jim Meyering  <meyering@redhat.com>
32441
32442         maint.mk: invoke "make dist" with a working value of XZ_OPT
32443         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
32444
32445 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
32446
32447         Make fseeko.c compile on QNX.
32448         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
32449
32450 2009-07-22  Peter Simons  <simons@cryp.to>
32451
32452         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
32453         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
32454         * lib/md4.h: Likewise.
32455         * lib/md5.h: Likewise.
32456         * lib/sha1.h: Likewise.
32457         * lib/sha256.h: Likewise.
32458         * lib/sha512.h: Likewise.
32459
32460         tests-sha1: don't assign literal string to 'char *' variable
32461         * tests/test-sha1.c (main): Declare locals with "const" to match
32462         attributes of the right hand side.
32463
32464 2009-07-21  Eric Blake  <ebb9@byu.net>
32465
32466         dup2: fix more mingw problems
32467         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
32468         fd to itself.
32469         * doc/posix-functions/dup2.texi (dup2): Document the bug.
32470         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
32471         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
32472         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
32473         care of mingw bugs.
32474
32475 2009-07-21  Jim Meyering  <meyering@redhat.com>
32476
32477         vc-list-files: avoid failure when /bin/sh is dash
32478         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
32479         On some Debian based systems, /bin/sh is a symlink to dash, and running
32480         this command would omit the "/" following each 'tests' prefix:
32481           dash -x build-aux/vc-list-files -C . tests
32482         That is because bash and dash work differently:
32483           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
32484           bash ok
32485           dash odd
32486
32487 2009-07-21  Eric Blake  <ebb9@byu.net>
32488
32489         dup2-tests: test previous patch
32490         * modules/dup2-tests: New file.
32491         * tests/test-dup2.c: Likewise.
32492         * tests/test-open.c (main): Avoid unspecified behavior.
32493         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
32494         test.
32495
32496         dup2: work around mingw and cygwin 1.5 bug
32497         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
32498         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32499         * modules/unistd (Makefile.am): Substitute it.
32500         * lib/unistd.in.h (dup2): Declare the replacement.
32501         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
32502         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
32503         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
32504         * modules/execute (Depends-on): Add dup2.
32505         * modules/fseterr (Depends-on): Likewise.
32506         * modules/pipe (Depends-on): Likewise.
32507         * modules/posix_spawn-internal (Depends-on): Likewise.
32508
32509 2009-07-21  Bruno Haible  <bruno@clisp.org>
32510
32511         * modules/.gitattributes: New file.
32512
32513 2009-07-20  Bruno Haible  <bruno@clisp.org>
32514
32515         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
32516         (main): Use it.
32517
32518 2009-07-20  Eric Blake  <ebb9@byu.net>
32519
32520         test-pipe: make a bit more robust.
32521         * tests/test-pipe.c (myerr): Allow error messages regardless of
32522         what we do to stderr.
32523         (test_pipe): Rearrange to avoid deadlock.
32524         (child_main): Try a larger read, to ensure we avoided deadlock.
32525         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
32526         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
32527         if misused.
32528
32529 2009-07-19  Jim Meyering  <meyering@redhat.com>
32530
32531         fts: avoid false-positive cycle-detection
32532         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
32533         for each new command line argument.
32534
32535 2009-07-19  Bruno Haible  <bruno@clisp.org>
32536
32537         Fix build error on mingw with the modules sys_select and unistd.
32538         * modules/acl-tests (Depends-on): Add close.
32539         * modules/binary-io-tests (Depends-on): Likewise.
32540         * modules/closein-tests (Depends-on): Likewise.
32541         * modules/flock-tests (Depends-on): Likewise.
32542         * modules/fsync-tests (Depends-on): Likewise.
32543         * modules/lseek-tests (Depends-on): Likewise.
32544         * modules/pipe-tests (Depends-on): Likewise.
32545         * modules/posix_spawn-tests (Depends-on): Likewise.
32546         * modules/posix_spawnp-tests (Depends-on): Likewise.
32547         * modules/stat-time-tests (Depends-on): Likewise.
32548         * modules/yesno-tests (Depends-on): Likewise.
32549
32550 2009-07-19  Bruno Haible  <bruno@clisp.org>
32551
32552         Unify conditionals.
32553         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
32554         macros, not at the compiler macros.
32555         * lib/pipe.c: Likewise.
32556         * lib/execute.c: Likewise.
32557         * lib/spawni.c: Likewise.
32558
32559 2009-07-19  Bruno Haible  <bruno@clisp.org>
32560
32561         Fix handling of closed stdin/stdout/stderr on mingw.
32562         * lib/w32spawn.h: Include unistd.h.
32563         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
32564         file descriptor with O_NOINHERIT flag.
32565         (fd_safer_noinherit): New function, based on fd-safer.c.
32566         (dup_safer_noinherit): New function, based on dup-safer.c.
32567         (undup_safer_noinherit): New function.
32568         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
32569         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
32570         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
32571         instead of fd_safer.
32572         * tests/test-pipe.c: Include <windows.h>.
32573         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
32574         result.
32575
32576         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
32577         from main.
32578         (test_pipe): Pass an extra argument for disambiguation.
32579         (main): Invoke parent_main or child_main.
32580
32581         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
32582         consistently.
32583
32584 2009-07-18  Eric Blake  <ebb9@byu.net>
32585
32586         test-pipe: fix mingw build
32587         * tests/test-pipe.c (main): Avoid fcntl on mingw.
32588
32589 2009-07-18  Bruno Haible  <bruno@clisp.org>
32590
32591         * modules/pipe-tests (Makefile.am): Fix typo.
32592
32593 2009-07-18  Eric Blake  <ebb9@byu.net>
32594
32595         error: fix mingw build
32596         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
32597         Reported by Bruno Haible.
32598
32599         error: avoid undefined use of stdout
32600         * lib/error.c (error, error_at_line): Check that fd 1 is open
32601         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
32602         is handling faults and the close_stdout module wants to report the
32603         detection of closed stdout as an error.
32604
32605 2009-07-17  Eric Blake  <ebb9@byu.net>
32606
32607         pipe: be robust in face of closed fds
32608         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
32609         should cause child to misbehave.
32610         * modules/pipe-tests: New module.
32611         * tests/test-pipe.c: New file.
32612         * tests/test-pipe.sh: New file.
32613         Reported by Akim Demaille.
32614
32615 2009-07-14  Bruno Haible  <bruno@clisp.org>
32616
32617         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
32618         Reported by anonymous kc.
32619
32620 2009-07-07  Jim Meyering  <meyering@redhat.com>
32621
32622         maint.mk: don't look for translatable strings in *.m4 or *.mk
32623         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
32624         when searching for translatable strings.
32625
32626 2009-07-05  Jim Meyering  <meyering@redhat.com>
32627
32628         remove superfluous parentheses in STREQ definition
32629         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
32630         * lib/getugroups.c (STREQ): Likewise.
32631         * lib/fnmatch.c (STREQ): Likewise.
32632         Spotted by Bruno Haible.
32633
32634 2009-07-04  Jim Meyering  <meyering@redhat.com>
32635
32636         argv-iter: new module
32637         * MODULES.html.sh: Add argv-iter.
32638         * lib/argv-iter.c, lib/argv-iter.h: New files.
32639         * modules/argv-iter: New file.
32640         * modules/argv-iter-tests: New file.
32641         * tests/test-argv-iter.c: Test it.
32642
32643 2009-07-04  Bruno Haible  <bruno@clisp.org>
32644
32645         Fix assertion.
32646         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
32647         contains more exact copies of a given entry than file2, leave the extra
32648         copies unpaired rather than aborting.
32649         Reported by Eric Blake.
32650
32651 2009-07-02  Bruno Haible  <bruno@clisp.org>
32652
32653         Speedup git-merge-changelog for git cherry-pick.
32654         * lib/git-merge-changelog.c (struct entries_mapping): New type.
32655         (entries_mapping_get): New function, extracted from compute_mapping.
32656         (entries_mapping_reverse_get): New function.
32657         (compute_mapping): Add a 'full' argument. Return the result in a
32658         'struct entries_mapping'.
32659         (main): Update. Access the mappings through entries_mapping_get.
32660         Reported by Eric Blake.
32661
32662 2009-07-02  Bruno Haible  <bruno@clisp.org>
32663
32664         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
32665         best_i.
32666
32667 2009-07-02  Bruno Haible  <bruno@clisp.org>
32668
32669         Speed up approximate search for matching ChangeLog entries.
32670         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
32671         argument. Call fstrcmp_bounded instead of fstrcmp.
32672         (compute_mapping, try_split_merged_entry, main): Update callers.
32673
32674 2009-07-02  Bruno Haible  <bruno@clisp.org>
32675
32676         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
32677
32678 2009-06-30  Bruno Haible  <bruno@clisp.org>
32679
32680         Reduce the number of uc_is_cased calls.
32681         * lib/unicase.h (casing_suffix_context_t): Add
32682         'first_char_except_ignorable' field.
32683         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
32684         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
32685         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
32686         Update initializer.
32687         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
32688         case-ignorable characters.
32689         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
32690         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
32691         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
32692         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
32693         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
32694
32695 2009-06-30  Bruno Haible  <bruno@clisp.org>
32696
32697         Tests for module 'unicase/ignorable'.
32698         * modules/unicase/ignorable-tests: New file.
32699         * tests/unicase/test-ignorable.c: New file, generated by
32700         gen-uni-tables.
32701
32702         Tests for module 'unicase/cased'.
32703         * modules/unicase/cased-tests: New file.
32704         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
32705         * tests/unicase/test-predicate-part1.h: New file, derived from
32706         tests/unictype/test-predicate-part1.h.
32707         * tests/unicase/test-predicate-part2.h: New file, same as
32708         tests/unictype/test-predicate-part2.h.
32709
32710         Fix evaluation of "Before C" condition of FINAL_SIGMA.
32711         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
32712         (output_casing_properties): New function.
32713         (main): Call it.
32714         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
32715         * lib/unicase/cased.c: Include unictype/bitmap.h.
32716         (uc_is_cased): Define through a bitmap lookup.
32717         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
32718         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
32719         (uc_is_case_ignorable): Define through a bitmap lookup.
32720         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
32721         lib/unictype/bitmap.h.
32722         (Depends-on): Add inline. Clean up.
32723         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
32724         lib/unictype/bitmap.h.
32725         (Depends-on): Add inline. Clean up.
32726         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
32727         recognition.
32728         * tests/unicase/test-u16-tolower.c (main): Likewise.
32729         * tests/unicase/test-u32-tolower.c (main): Likewise.
32730
32731 2009-06-30  Bruno Haible  <bruno@clisp.org>
32732
32733         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
32734         * lib/unicase/u16-casemap.c: Likewise.
32735         * lib/unicase/u32-casemap.c: Likewise.
32736
32737 2009-06-29  Bruno Haible  <bruno@clisp.org>
32738
32739         Define u32_casefold as a wrapper around u32_ct_casefold.
32740         * lib/unicase/u32-casefold.c: Update.
32741         * modules/unicase/u32-casefold (Depends-on): Add
32742         unicase/u32-ct-casefold, unicase/empty-prefix-context,
32743         unicase/empty-suffix-context. Clean up.
32744
32745         Define u16_casefold as a wrapper around u16_ct_casefold.
32746         * lib/unicase/u16-casefold.c: Update.
32747         * modules/unicase/u16-casefold (Depends-on): Add
32748         unicase/u16-ct-casefold, unicase/empty-prefix-context,
32749         unicase/empty-suffix-context. Clean up.
32750
32751         Define u8_casefold as a wrapper around u8_ct_casefold.
32752         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
32753         * lib/unicase/u8-casefold.c: Update.
32754         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
32755         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32756
32757         Define u32_totitle as a wrapper around u32_ct_totitle.
32758         * lib/unicase/u32-totitle.c: Update.
32759         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
32760         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32761
32762         Define u16_totitle as a wrapper around u16_ct_totitle.
32763         * lib/unicase/u16-totitle.c: Update.
32764         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
32765         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32766
32767         Define u8_totitle as a wrapper around u8_ct_totitle.
32768         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
32769         functions.
32770         (FUNC): Delegate to U_CT_TOTITLE.
32771         * lib/unicase/u8-totitle.c: Update.
32772         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
32773         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32774
32775         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
32776         invocation.
32777         * modules/unicase/u32-tolower (Depends-on): Add
32778         unicase/empty-prefix-context, unicase/empty-suffix-context.
32779
32780         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
32781         invocation.
32782         * modules/unicase/u16-tolower (Depends-on): Add
32783         unicase/empty-prefix-context, unicase/empty-suffix-context.
32784
32785         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
32786         * modules/unicase/u8-tolower (Depends-on): Add
32787         unicase/empty-prefix-context, unicase/empty-suffix-context.
32788
32789         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
32790         invocation.
32791         * modules/unicase/u32-toupper (Depends-on): Add
32792         unicase/empty-prefix-context, unicase/empty-suffix-context.
32793
32794         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
32795         invocation.
32796         * modules/unicase/u16-toupper (Depends-on): Add
32797         unicase/empty-prefix-context, unicase/empty-suffix-context.
32798
32799         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
32800         * modules/unicase/u8-toupper (Depends-on): Add
32801         unicase/empty-prefix-context, unicase/empty-suffix-context.
32802
32803         New module 'unicase/u32-ct-casefold'.
32804         * lib/unicase/u32-ct-casefold.c: New file.
32805         * modules/unicase/u32-ct-casefold: New file.
32806
32807         New module 'unicase/u16-ct-casefold'.
32808         * lib/unicase/u16-ct-casefold.c: New file.
32809         * modules/unicase/u16-ct-casefold: New file.
32810
32811         New module 'unicase/u8-ct-casefold'.
32812         * lib/unicase/u8-ct-casefold.c: New file.
32813         * lib/unicase/u-ct-casefold.h: New file, derived from
32814         lib/unicase/u-casefold.h.
32815         * modules/unicase/u8-ct-casefold: New file.
32816
32817         New module 'unicase/u32-ct-totitle'.
32818         * lib/unicase/u32-ct-totitle.c: New file.
32819         * modules/unicase/u32-ct-totitle: New file.
32820
32821         New module 'unicase/u16-ct-totitle'.
32822         * lib/unicase/u16-ct-totitle.c: New file.
32823         * modules/unicase/u16-ct-totitle: New file.
32824
32825         New module 'unicase/u8-ct-totitle'.
32826         * lib/unicase/u8-ct-totitle.c: New file.
32827         * lib/unicase/u-ct-totitle.h: New file, derived from
32828         lib/unicase/u-totitle.h.
32829         * modules/unicase/u8-ct-totitle: New file.
32830
32831         New module 'unicase/u32-ct-tolower'.
32832         * lib/unicase/u32-ct-tolower.c: New file.
32833         * modules/unicase/u32-ct-tolower: New file.
32834
32835         New module 'unicase/u16-ct-tolower'.
32836         * lib/unicase/u16-ct-tolower.c: New file.
32837         * modules/unicase/u16-ct-tolower: New file.
32838
32839         New module 'unicase/u8-ct-tolower'.
32840         * lib/unicase/u8-ct-tolower.c: New file.
32841         * modules/unicase/u8-ct-tolower: New file.
32842
32843         New module 'unicase/u32-ct-toupper'.
32844         * lib/unicase/u32-ct-toupper.c: New file.
32845         * modules/unicase/u32-ct-toupper: New file.
32846
32847         New module 'unicase/u16-ct-toupper'.
32848         * lib/unicase/u16-ct-toupper.c: New file.
32849         * modules/unicase/u16-ct-toupper: New file.
32850
32851         New module 'unicase/u8-ct-toupper'.
32852         * lib/unicase/u8-ct-toupper.c: New file.
32853         * modules/unicase/u8-ct-toupper: New file.
32854
32855         Add context arguments to u*_casemap functions.
32856         * lib/unicase/unicasemap.h: Include unicase.h.
32857         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
32858         suffix_context arguments.
32859         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
32860         functions.
32861         (FUNC): Add prefix_context and suffix_context arguments. Use
32862         uc_is_cased and uc_is_case_ignorable.
32863         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
32864         * lib/unicase/u16-casemap.c: Likewise.
32865         * lib/unicase/u32-casemap.c: Likewise.
32866         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
32867         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32868         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
32869         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32870         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
32871         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32872
32873         New module 'unicase/u32-suffix-context'.
32874         * lib/unicase/u32-suffix-context.c: New file.
32875         * modules/unicase/u32-suffix-context: New file.
32876
32877         New module 'unicase/u16-suffix-context'.
32878         * lib/unicase/u16-suffix-context.c: New file.
32879         * modules/unicase/u16-suffix-context: New file.
32880
32881         New module 'unicase/u8-suffix-context'.
32882         * lib/unicase/u8-suffix-context.c: New file.
32883         * lib/unicase/u-suffix-context.h: New file.
32884         * modules/unicase/u8-suffix-context: New file.
32885
32886         New module 'unicase/empty-suffix-context'.
32887         * lib/unicase/empty-suffix-context.c: New file.
32888         * modules/unicase/empty-suffix-context: New file.
32889
32890         New module 'unicase/u32-prefix-context'.
32891         * lib/unicase/u32-prefix-context.c: New file.
32892         * modules/unicase/u32-prefix-context: New file.
32893
32894         New module 'unicase/u16-prefix-context'.
32895         * lib/unicase/u16-prefix-context.c: New file.
32896         * modules/unicase/u16-prefix-context: New file.
32897
32898         New module 'unicase/u8-prefix-context'.
32899         * lib/unicase/u8-prefix-context.c: New file.
32900         * lib/unicase/u-prefix-context.h: New file.
32901         * lib/unicase/context.h: New file.
32902         * modules/unicase/u8-prefix-context: New file.
32903
32904         New module 'unicase/empty-prefix-context'.
32905         * lib/unicase/empty-prefix-context.c: New file.
32906         * modules/unicase/empty-prefix-context: New file.
32907
32908         New module 'unicase/ignorable'.
32909         * lib/unicase/ignorable.c: New file.
32910         * modules/unicase/ignorable: New file.
32911
32912         New module 'unicase/cased'.
32913         * lib/unicase/caseprop.h: New file.
32914         * lib/unicase/cased.c: New file.
32915         * modules/unicase/cased: New file.
32916
32917         New functions for case mapping of substrings.
32918         * lib/unicase.h (casing_prefix_context_t): New type.
32919         (unicase_empty_prefix_context): New variable.
32920         (u8_casing_prefix_context, u16_casing_prefix_context,
32921         u32_casing_prefix_context, u8_casing_prefixes_context,
32922         u16_casing_prefixes_context, u32_casing_prefixes_context): New
32923         declarations.
32924         (casing_suffix_context_t): New type.
32925         (unicase_empty_suffix_context): New variable.
32926         (u8_casing_suffix_context, u16_casing_suffix_context,
32927         u32_casing_suffix_context, u8_casing_suffixes_context,
32928         u16_casing_suffixes_context, u32_casing_suffixes_context,
32929         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
32930         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
32931         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
32932         declarations.
32933
32934 2009-06-28  Jim Meyering  <meyering@redhat.com>
32935
32936         boostrap: indent only with spaces
32937         * build-aux/bootstrap: Indent only with spaces, never TABs.
32938
32939         bootstrap: split long lines
32940         * build-aux/bootstrap: Keep line length < 80.
32941
32942         bootstrap: sync from coreutils
32943         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
32944         just as autoreconf does.  Verify a list of prerequisite
32945         package-name,version-number pairs if defined in bootstrap.conf.
32946         Refer to README-prereq, if prerequisites are not satisfied.
32947
32948 2009-06-27  Eric Blake  <ebb9@byu.net>
32949
32950         tests: add test for bogus NULL definition
32951         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
32952         * tests/test-stdlib.c: Likewise.
32953         * tests/test-string.c: Likewise.
32954         * tests/test-locale.c: Likewise.
32955         * tests/test-unistd.c: Likewise.
32956         * modules/stdio-tests (Depends-on): Add verify.
32957         * modules/stdlib-tests (Depends-on): Likewise.
32958         * modules/string-tests (Depends-on): Likewise.
32959         * modules/locale-tests (Depends-on): Likewise.
32960         * modules/unistd-tests (Depends-on): Likewise.
32961
32962 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
32963
32964         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
32965         self-explaining comment.
32966         * m4/selinux-selinux-h: Update serial.
32967         (gl_LIBSELINUX): New macro, adding a warning for missing development
32968         packages to code extracted from...
32969         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
32970         Add warning for missing development packages here, too.
32971
32972 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
32973
32974         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
32975
32976 2009-06-25  Eric Blake  <ebb9@byu.net>
32977
32978         version-etc: fix regression
32979         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
32980         gcc.
32981         (version_etc): Use it, to catch bugs with trailing NULL.
32982         * lib/version-etc.c (version_etc_arn): Delete unused argument.
32983         (version_etc_va): Fix logic bug.
32984         * modules/version-etc-tests: Add test.
32985         * tests/test-version-etc.c: New file.
32986         * tests/test-version-etc.sh: Likewise.
32987
32988 2009-06-25  Sam Steingold  <sds@gnu.org>
32989
32990         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
32991         mbtowc declaration.
32992
32993 2009-06-25  Eric Blake  <ebb9@byu.net>
32994
32995         fpurge: migrate into <stdio.h>
32996         * lib/fpurge.h: Delete...
32997         * lib/stdio.in.h (fpurge): ...and declare here, instead.
32998         * lib/fpurge.c (fpurge): Change declaring header.
32999         * modules/fpurge (Files): Drop deleted file.
33000         (Depends-on): Add stdio.
33001         (configure.ac): Set witness.
33002         * modules/stdio (Makefile.am): Support fpurge macros.
33003         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
33004         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
33005         * lib/fflush.c: Update client.
33006         * tests/test-fpurge.c: Likewise.
33007         * NEWS: Mention the change.
33008
33009 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
33010
33011         * lib/argp-version-etc.c (program_authors): Add const
33012         qualifier.
33013         * lib/version-etc.c: Fix typos in the comments.
33014         * modules/argp-version-etc: Depends on version-etc.
33015
33016 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
33017
33018         argp-version-etc: new module.
33019
33020         * lib/argp-version-etc.c: New file.
33021         * lib/argp-version-etc.h: New file.
33022         * modules/argp-version-etc: New file.
33023         * modules/argp-version-etc-tests: New file.
33024         * tests/test-argp-version-etc.c: New test.
33025         * tests/test-argp-version-etc-1.sh: New test.
33026
33027 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
33028
33029         Provide additional interfaces and documentation for version-etc
33030         module.
33031
33032         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
33033         interfaces.
33034         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
33035         prototypes.
33036
33037 2009-06-24  Bruno Haible  <bruno@clisp.org>
33038
33039         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
33040         HAVE_LIB${NAME} macro.
33041         Reported by Sam Steingold <sds@gnu.org>.
33042
33043 2009-06-23  Simon Josefsson  <simon@josefsson.org>
33044
33045         * modules/hash-tests (test_hash_LDADD): Link to libintl when
33046         needed.
33047
33048 2009-06-21  Bruno Haible  <bruno@clisp.org>
33049
33050         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
33051         work.
33052         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
33053         together with LIB${NAME}, LTLIB${NAME}.
33054         Reported by Sam Steingold <sds@gnu.org>.
33055
33056 2009-06-20  Jim Meyering  <meyering@redhat.com>
33057
33058         tests: make sc_require_test_exit_idiom more generic
33059         * top/maint.mk (Exit_witness_file): New overridable variable.
33060         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
33061         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
33062
33063 2009-06-19  Jim Meyering  <meyering@redhat.com>
33064
33065         hash: reverse order of src/dst parameters in an internal interface
33066         * lib/hash.c (transfer_entries): Reverse order of parameters to
33067         put DST before SRC.  Adjust callers.
33068
33069         tests: test-hash: avoid wholesale duplication
33070         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
33071         Instead, use a loop and add a single conditional.
33072
33073         tests: test-hash: allow seed selection via a command line argument
33074         * tests/test-hash.c (get_seed): New function.
33075         (main): Use it.
33076
33077 2009-06-19  Eric Blake  <ebb9@byu.net>
33078
33079         hash: avoid memory leak on allocation failure
33080         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
33081         failure.  Factor repeated algorithm...
33082         (transfer_entries): ...into new helper routine.
33083         (hash_delete): React to hash_rehash return value.
33084
33085         hash: reduce memory pressure in hash_rehash no-op case
33086         * lib/hash.c (next_prime): Avoid overflow.
33087         (hash_initialize): Factor bucket size computation...
33088         (compute_bucket_size): ...into new helper function.
33089         (hash_rehash): Use new function and open coding to reduce memory
33090         pressure, and avoid a memory leak in USE_OBSTACK code.
33091         Reported by Jim Meyering.
33092
33093 2009-06-18  Eric Blake  <ebb9@byu.net>
33094
33095         hash: make rotation more obvious
33096         * modules/hash (Depends-on): Add bitrotate and stdint.
33097         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
33098         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
33099         (SIZE_MAX): Rely on headers for definition.
33100         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
33101         (raw_hasher): Use rotr_sz.
33102         Suggested by Jim Meyering.
33103
33104         hash: fix memory leak in last patch
33105         * lib/hash.c (hash_rehash): Avoid memory leak.
33106
33107         hash: avoid no-op rehashing
33108         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
33109
33110         hash: provide default callback functions
33111         * lib/hash.c (raw_hasher, raw_comparator): New functions.
33112         (hash_initialize): Use them as defaults.
33113         * tests/test-hash.c (main): Test this.
33114
33115         hash: minor optimization
33116         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
33117         when possible.
33118         (hash_initialize): Document this promise.
33119         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
33120         * tests/test-hash.c (hash_compare_strings): Test this.
33121
33122 2009-06-18  Bruno Haible  <bruno@clisp.org>
33123
33124         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
33125         going to be replaced anyway.
33126
33127 2009-06-18  Bruno Haible  <bruno@clisp.org>
33128
33129         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
33130         in one place.
33131         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
33132         be replaced anyway.
33133
33134 2009-06-18  Eric Blake  <ebb9@byu.net>
33135
33136         hash: check for resize before insertion
33137         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
33138         threshold before insertion, so that a pathological hash_rehash
33139         that fills every bucket can still trigger another rehash.
33140
33141 2009-06-18  Jim Meyering  <meyering@redhat.com>
33142
33143         hash-tests: add a loop around the small tests
33144         * tests/test-hash.c (main): Repeat small tests with selected
33145         small initial table sizes.
33146
33147 2009-06-17  Eric Blake  <ebb9@byu.net>
33148
33149         hash: minor cleanups
33150         * lib/hash.h (hash_entry): Make opaque, by moving...
33151         * lib/hash.c (hash_entry): ...here.
33152         (hash_insert): Clarify restrictions on what can be inserted.
33153         (hash_get_next): Clarify when it is safe to remove an element
33154         during traversal.
33155         (check_tuning): Skip verification when tuning is known safe.
33156         (hash_initialize): Clarify restrictions on tuning.
33157
33158 2009-06-17  Jim Meyering  <jim@meyering.net>
33159         and Eric Blake  <ebb9@byu.net>
33160
33161         hash-tests: new module
33162         * modules/hash-tests: New file.
33163         * tests/test-hash.c: New file.
33164
33165 2009-06-17  Eric Blake  <ebb9@byu.net>
33166
33167         strstr-simple: document new module
33168         * MODULES.html.sh: Document new module.
33169
33170         strstr, strcasestr: replace on platforms with broken memchr
33171         * modules/strstr: Split into...
33172         * modules/strstr-simple: ...new module that does not care about
33173         performance, but does care about glibc bug.
33174         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
33175         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
33176         if platform memchr is broken, per Debian bug 521737.
33177         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
33178         memchr.
33179         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
33180         * doc/posix-functions/strstr.texi (strstr): Document the fix.
33181         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
33182         * modules/mountlist (Depends-on): Add strstr-simple.
33183         * modules/gen-uni-tables (Depends-on): Likewise.
33184         * modules/argz (Depends-on): Add strstr.
33185
33186 2009-06-17  Bruno Haible  <bruno@clisp.org>
33187
33188         * modules/posix_spawn-internal (Depends-on): Add errno.
33189
33190 2009-06-17  Bruno Haible  <bruno@clisp.org>
33191
33192         Define missing ESTALE on Interix 3.5.
33193         * lib/errno.in.h (ESTALE): Assign a value if missing.
33194         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
33195         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
33196         missing.
33197         * doc/posix-headers/errno.texi: Mention the Interix bug.
33198         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
33199
33200 2009-06-15  Eric Blake  <ebb9@byu.net>
33201
33202         memchr, memchr2: add valgrind exception
33203         * lib/memchr.valgrind: New file.
33204         * lib/memchr2.valgrind: New file.
33205         * modules/memchr (Files): Distribute valgrind file.
33206         * modules/memchr2 (Files): Likewise.
33207
33208         docs: memchr is no longer obsolete
33209         * MODULES.html.sh: Move memchr from obsolete to string.h section.
33210         * lib/string.in.h (memchr): Simplify logic.
33211
33212 2009-06-14  Jim Meyering  <meyering@redhat.com>
33213
33214         link-follow: fix the "checking..." message to not mention trailing slash
33215         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
33216         never considered trailing slashes.
33217
33218 2009-06-14  Bruno Haible  <bruno@clisp.org>
33219
33220         * m4/memchr.m4: Mention also the bug on IA-64.
33221         * doc/posix-functions/memchr.texi: Likewise.
33222
33223 2009-06-12  Eric Blake  <ebb9@byu.net>
33224
33225         memchr: detect broken x86_64 and alpha implementations
33226         * modules/memchr-tests (Depends-on): Move mmap detection...
33227         * modules/memchr (Depends-on): ...here.
33228         (configure.ac): Set indicator.
33229         * lib/string.in.h (memchr): Declare replacement.
33230         * modules/string (Makefile.am): Trigger replacement.
33231         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
33232         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
33233         bugs.
33234         * doc/posix-functions/memchr.texi (memchr): Document the bug.
33235         * modules/getpagesize (License): Relax license.
33236
33237 2009-06-11  Bruno Haible  <bruno@clisp.org>
33238
33239         * lib/idpriv.h: Add more references.
33240
33241 2009-06-08  Bruno Haible  <bruno@clisp.org>
33242
33243         Tests for module 'idpriv-droptemp'.
33244         * modules/idpriv-droptemp-tests: New file.
33245         * tests/test-idpriv-droptemp.sh: New file.
33246         * tests/test-idpriv-droptemp.su.sh: New file.
33247         * tests/test-idpriv-droptemp.c: New file.
33248
33249         New module 'idpriv-droptemp'.
33250         * lib/idpriv-droptemp.c: New file.
33251         * modules/idpriv-droptemp: New file.
33252
33253 2009-06-08  Bruno Haible  <bruno@clisp.org>
33254
33255         Tests for module 'idpriv-drop'.
33256         * modules/idpriv-drop-tests: New file.
33257         * tests/test-idpriv-drop.sh: New file.
33258         * tests/test-idpriv-drop.su.sh: New file.
33259         * tests/test-idpriv-drop.c: New file.
33260
33261         New module 'idpriv-drop'.
33262         * lib/idpriv.h: New file.
33263         * lib-idpriv-drop.c: New file.
33264         * m4/idpriv.m4: New file.
33265         * modules/idpriv-drop: New file.
33266
33267 2009-06-08  Bruno Haible  <bruno@clisp.org>
33268
33269         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
33270         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33271         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33272         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33273         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33274         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33275         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
33276
33277 2009-06-08  Eric Blake  <ebb9@byu.net>
33278
33279         test-strstr: use memory fence, when possible
33280         * tests/test-strstr.c (main): Use memory fence, in order to be
33281         more likely to trigger Debian bug 521737.
33282         * modules/strstr-tests (Files): Pull in additional files.
33283
33284         memchr: no longer obsolete, for wider field testing
33285         * modules/memchr (Status, Notice): Delete, this module is no
33286         longer obsolete.
33287         * modules/vasnprintf (Depends-on): Add memchr.
33288
33289 2009-06-07  Jim Meyering  <meyering@redhat.com>
33290
33291         hash: declare some functions with the warn_unused_result attribute
33292         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
33293
33294 2009-06-07  Bruno Haible  <bruno@clisp.org>
33295
33296         * tests/test-alignof.c: Don't test int64_t if it does not exist.
33297         Reported by Eric Blake.
33298
33299 2009-06-06  Eric Blake  <ebb9@byu.net>
33300
33301         test-alignof: fix typo with long double
33302         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
33303         compiler error.
33304
33305 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
33306
33307         Escape non-texinfo { and }s.
33308         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
33309         markup error.
33310
33311 2009-06-04  Jim Meyering  <meyering@redhat.com>
33312
33313         gitlog-to-changelog: don't infloop on an empty commit log
33314         * build-aux/gitlog-to-changelog: Warn about an empty log message.
33315         Reported by Boris Petersen <transacid@centerim.org>.
33316
33317 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
33318
33319         version-etc: extend for packagers
33320         Add three new configure options, intended for packagers:
33321           --with-packager="packager name"
33322           --with-packager-version="packager-specific version"
33323           --with-packager-bug-reports="packager bug reporting"
33324         An example with coreutils:
33325           $ ./configure \
33326             --with-packager=Gentoo \
33327             --with-packager-bug-report=http://bugs.gentoo.org/ \
33328             --with-packager-version="patchset 1.6"
33329           $ ./src/ls --version | head -n2
33330           ls (GNU coreutils) 7.1-dirty
33331           Packaged by Gentoo (patchset 1.6)
33332         Note that the bug reporting info via --help doesn't show up because
33333         coreutils uses its own custom emit_bug_reporting_address() implementation
33334         in src/system.h.  If it didn't, it'd look like:
33335           $ ./src/ls --help | tail -n4
33336           Report bugs to <bug-coreutils@gnu.org>.
33337           Report Gentoo bugs to <http://bugs.gentoo.org/>.
33338           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
33339           General help using GNU software: <http://www.gnu.org/gethelp/>.
33340         * lib/version-etc.c: Print new information, if provided.
33341         * m4/version-etc.m4: New file.
33342         * modules/version-etc (Files): Add m4/version-etc.m4.
33343         (configure.ac): Add gl_VERSION_ETC.
33344
33345 2009-05-31  Bruno Haible  <bruno@clisp.org>
33346
33347         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
33348         and 'int64_t'.
33349         * modules/alignof-tests (Dependencies): Add stdint.
33350         Reported by Eric Blake.
33351
33352 2009-05-31  Bruno Haible  <bruno@clisp.org>
33353
33354         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
33355         restriction due to compiler bugs.
33356         Reported by Eric Blake.
33357
33358 2009-05-31  Simon Josefsson  <simon@josefsson.org>
33359             Bruno Haible  <bruno@clisp.org>
33360
33361         Fix test-alignof failure.
33362         * lib/alignof.h (alignof_slot): New macro.
33363         (alignof_type): New macro, with the same semantics as the previous
33364         'alignof'.
33365         (alignof): Alias to alignof_slot.
33366         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
33367         check that the results are usable as constant expressions.
33368
33369 2009-05-31  Bruno Haible  <bruno@clisp.org>
33370
33371         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
33372         * tests/test-memchr.c (main): Check that memchr does not read past the
33373         first occurrence of the byte.
33374         * tests/test-strstr.c (main): Update comment.
33375         Suggested by Eric Blake.
33376
33377 2009-05-30  Bruno Haible  <bruno@clisp.org>
33378
33379         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
33380         detail how to use dumpbin.
33381         Reported by David Byron <dbyron@dbyron.com>.
33382
33383 2009-06-02  Simon Josefsson  <simon@josefsson.org>
33384
33385         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
33386
33387 2009-06-02  Simon Josefsson  <simon@josefsson.org>
33388
33389         * m4/manywarnings.m4: Add GCC 4.4 warnings.
33390
33391 2009-05-28  Bruno Haible  <bruno@clisp.org>
33392
33393         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
33394         build-aux/ files.
33395
33396 2009-05-28  Simon Josefsson  <simon@josefsson.org>
33397
33398         * gnulib-tool (func_import): Transform license on build-aux/ files too.
33399
33400 2009-05-27  Simon Josefsson  <simon@josefsson.org>
33401
33402         * gnulib-tool (sed_transform_main_lib_file)
33403         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
33404         regexps.
33405
33406 2009-05-26  Simon Josefsson  <simon@josefsson.org>
33407
33408         * tests/test-strstr.c: Add another self-test.
33409         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
33410         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
33411
33412 2009-05-23  Bruno Haible  <bruno@clisp.org>
33413
33414         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
33415         change.
33416
33417 2009-05-21  Bruno Haible  <bruno@clisp.org>
33418
33419         Simplify use of mode_t varargs.
33420         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
33421         uses 'mode_t' or 'int'.
33422         * lib/openat.c (openat): Likewise.
33423         * lib/open-safer.c (open_safer): Likewise.
33424         * m4/mode_t.m4: New file.
33425         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
33426         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
33427         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
33428         * modules/open (Files): Add m4/mode_t.m4.
33429         * modules/openat (Files): Likewise.
33430         * modules/fcntl-safer (Files): Likewise.
33431         Suggested by Eric Blake.
33432
33433 2009-05-21  Pádraig Brady  <P@draigbrady.com>
33434
33435         * doc/glibc-functions/fallocate.texi: New file.
33436         * doc/gnulib.texi: Include it.
33437
33438 2009-05-21  Eric Blake  <ebb9@byu.net>
33439             Bruno Haible  <bruno@clisp.org>
33440
33441         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
33442         invocations.
33443         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
33444
33445 2009-05-21  Eric Blake  <ebb9@byu.net>
33446             Bruno Haible  <bruno@clisp.org>
33447
33448         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
33449         include_next. Fix of 2008-11-20 commit.
33450         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
33451         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
33452         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
33453         NEXT_MATH_H.
33454         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
33455         instead of NEXT_MATH_H.
33456
33457 2009-05-21  Bruno Haible  <bruno@clisp.org>
33458
33459         Avoid redefinition warnings for SIZE_MAX.
33460         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
33461         Reported by Simon Josefsson.
33462
33463 2009-05-21  Bruno Haible  <bruno@clisp.org>
33464
33465         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
33466         AC_CACHE_VAL.
33467
33468 2009-05-20  Bruno Haible  <bruno@clisp.org>
33469
33470         Make zeroptr.h work on mingw.
33471         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
33472         mprotect.
33473         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
33474         * modules/memchr2-tests (configure.ac): Likewise.
33475         * modules/memcmp-tests (configure.ac): Likewise.
33476         * modules/memmem-tests (configure.ac): Likewise.
33477         * modules/memrchr-tests (configure.ac): Likewise.
33478         Reported by Simon Josefsson.
33479
33480 2009-05-20  Simon Josefsson  <simon@josefsson.org>
33481
33482         * tests/test-glob.c: Include string.h for strcmp prototype.
33483
33484 2009-05-20  Simon Josefsson  <simon@josefsson.org>
33485
33486         * modules/getdelim (Depends-on): Add explicit stdint, although it
33487         was implicitly already pulled in via realloc-posix.
33488         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
33489
33490 2009-05-20  Simon Josefsson  <simon@josefsson.org>
33491
33492         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
33493         G. Christensen" <tgc@jupiterrise.com>.
33494         * m4/sys_socket_h.m4: Check for sa_family_t.
33495         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
33496         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
33497         * tests/test-sys_socket.c: Check that sa_family_t works.
33498
33499 2009-05-18  Eric Blake  <ebb9@byu.net>
33500
33501         maint.mk: allow gnulib_dir in VPATH build
33502         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
33503
33504 2009-05-15  Jim Meyering  <meyering@redhat.com>
33505
33506         maint.mk: Give gnulib_dir a default definition.
33507         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
33508         Thus, most packages no longer need to specify this variable in cfg.mk
33509
33510 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
33511
33512         rename.m4: fix typos that would make non-mingw cross-configure fail
33513         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
33514
33515 2009-05-13  Eric Blake  <ebb9@byu.net>
33516
33517         mmap-anon: avoid out-of-order autoconf expansion
33518         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
33519         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
33520         * modules/memchr-tests (Depends-on): Add extensions.
33521         * modules/memchr2-tests (Depends-on): Add extensions.
33522         * modules/memcmp-tests (Depends-on): Add extensions.
33523         * modules/memmem-tests (Depends-on): Add extensions.
33524         * modules/memrchr-tests (Depends-on): Add extensions.
33525
33526 2009-05-13  Bruno Haible  <bruno@clisp.org>
33527
33528         Make some tests ISO C 99 compliant.
33529         * tests/zerosize-ptr.h: New file.
33530         * tests/test-memchr.c: Include zerosize-ptr.h.
33531         (main): Use a zero-size object pointer instead of NULL.
33532         * tests/test-memchr2.c: Include zerosize-ptr.h.
33533         (main): Use a zero-size object pointer instead of NULL.
33534         * tests/test-memcmp.c: Include zerosize-ptr.h.
33535         (main): Use a zero-size object pointer instead of NULL.
33536         * tests/test-memmem.c: Include zerosize-ptr.h.
33537         (main): Use a zero-size object pointer instead of NULL.
33538         * tests/test-memrchr.c: Include zerosize-ptr.h.
33539         (main): Use a zero-size object pointer instead of NULL.
33540         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
33541         m4/mmap-anon.m4.
33542         (Depends-on): Add getpagesize.
33543         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33544         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
33545         m4/mmap-anon.m4.
33546         (Depends-on): Add getpagesize.
33547         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33548         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
33549         m4/mmap-anon.m4.
33550         (Depends-on): Add getpagesize.
33551         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33552         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
33553         m4/mmap-anon.m4.
33554         (Depends-on): Add getpagesize.
33555         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33556         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
33557         m4/mmap-anon.m4.
33558         (Depends-on): Add getpagesize.
33559         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33560
33561 2009-05-12  Bruno Haible  <bruno@clisp.org>
33562
33563         Tests for module 'alignof'.
33564         * modules/alignof-tests: New file.
33565         * tests/test-alignof.c: New file.
33566
33567 2009-05-12  Bruno Haible  <bruno@clisp.org>
33568
33569         Fix alignof macro.
33570         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
33571         vendor compilers that are always correct.
33572
33573 2009-05-12  Bruno Haible  <bruno@clisp.org>
33574
33575         Make the MAP_ANONYMOUS detection work on HP-UX 11.
33576         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
33577         not whether its fully works.
33578
33579 2009-05-12  Bruno Haible  <bruno@clisp.org>
33580
33581         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
33582
33583 2009-05-12  Jim Meyering  <meyering@redhat.com>
33584
33585         * top/maint.mk: Adjust backslash alignment.
33586
33587 2009-05-11  Simon Josefsson  <simon@josefsson.org>
33588
33589         * top/maint.mk: Make $(srcdir)/build-aux configurable.
33590
33591 2009-05-11  Eric Blake  <ebb9@byu.net>
33592
33593         argp: avoid undefined behavior
33594         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
33595         macros.
33596
33597 2009-05-08  Simon Josefsson  <simon@josefsson.org>
33598
33599         * tests/test-vc-list-files-git.sh: Do git config of user.email and
33600         user.name to prevent git commit from complaining.
33601
33602 2009-05-10  Bruno Haible  <bruno@clisp.org>
33603
33604         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
33605         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
33606         it rewrites every file name only once.
33607         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
33608
33609 2009-05-08  Bruno Haible  <bruno@clisp.org>
33610
33611         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
33612         instead of 'max'.
33613
33614 2009-05-08  Simon Josefsson  <simon@josefsson.org>
33615
33616         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
33617         sockaddr_storage test.
33618
33619 2009-05-07  Simon Josefsson  <simon@josefsson.org>
33620
33621         * modules/sys_socket (Makefile.am): Substitute
33622         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
33623         * m4/sys_socket_h.m4: Check for sockaddr_storage.
33624         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
33625         * tests/test-sys_socket.c: Check sockaddr_storage.
33626
33627 2009-05-08  Bruno Haible  <bruno@clisp.org>
33628
33629         New module 'alignof'.
33630         * lib/alignof.h: New file.
33631         * modules/alignof: New file.
33632
33633 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33634             Bruno Haible  <bruno@clisp.org>
33635
33636         Fix test-file-has-acl on FreeBSD.
33637         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
33638         mask is implicitly added.
33639         * tests/test-file-has-acl.c: Include <signal.h>.
33640         (main): Terminate the test after 5 seconds.
33641         * modules/acl-tests (configure.ac): Check for alarm function.
33642
33643 2009-05-04  Bruno Haible  <bruno@clisp.org>
33644
33645         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
33646         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
33647         * modules/errno (configure.ac): Drop AC_REQUIRE.
33648         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
33649         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
33650
33651 2009-05-04  Simon Josefsson  <simon@josefsson.org>
33652
33653         * modules/glob-tests: New module.
33654         * tests/test-glob.c: Add.
33655
33656 2009-05-04  Simon Josefsson  <simon@josefsson.org>
33657
33658         * modules/fnmatch-tests: New module.
33659         * tests/test-fnmatch.c: Add.
33660
33661 2009-05-04  Eric Blake  <ebb9@byu.net>
33662
33663         maint: make the new no-submodule-changes rule VPATH-safe
33664         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
33665
33666 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33667             Bruno Haible  <bruno@clisp.org>
33668
33669         acl: Fix infinite loop on FreeBSD.
33670         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
33671         of return value from acl_get_entry.
33672         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
33673         Likewise.
33674
33675 2009-05-03  Bruno Haible  <bruno@clisp.org>
33676
33677         * lib/acl-internal.h (acl_entries): Clarify return value.
33678         * lib/acl_entries.c (acl_entries): Likewise.
33679
33680 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33681
33682         Bug fix in acl module.
33683         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
33684
33685 2009-05-03  Bruno Haible  <bruno@clisp.org>
33686
33687         Create gperf-generated file in the source dir, not in the build dir.
33688         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
33689         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
33690         * modules/unicase/locale-language (unicase/locale-languages.h):
33691         Likewise.
33692         * modules/unicase/special-casing (unicase/special-casing-table.h):
33693         Likewise.
33694         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
33695         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
33696         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
33697         Reported by Ralf Wildenhues.
33698
33699 2009-05-03  Bruno Haible  <bruno@clisp.org>
33700
33701         * modules/fnmatch (Description, configure.ac): Taken from
33702         fnmatch-posix.
33703         * modules/fnmatch-posix: Turn into a symbolic reference to the
33704         'fnmatch' module, and deprecate.
33705         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
33706
33707 2009-05-03  Bruno Haible  <bruno@clisp.org>
33708
33709         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
33710         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
33711         Reported by Ralf Wildenhues.
33712
33713 2009-05-04  Simon Josefsson  <simon@josefsson.org>
33714
33715         * m4/fnmatch.m4: Fix fnmatch re-define.
33716
33717 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33718
33719         priv-set: new module and tests; adapt write-any-file
33720         * lib/priv-set.c: New file.
33721         * lib/priv-set.h: New file.
33722         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
33723         * lib/write-any-file.c: Simplify by using priv-set module.
33724         * m4/priv-set.m4: New file.
33725         * modules/priv-set: New file.
33726         * modules/unlinkdir: Add dependency on priv-set module.
33727         * modules/write-any-file: Likewise.
33728
33729         Tests for module 'priv-set'.
33730         * modules/priv-set-tests: New file.
33731         * tests/test-priv-set.c: New file.
33732
33733 2009-05-03  Jim Meyering  <meyering@redhat.com>
33734             Bruno Haible  <bruno@clisp.org>
33735
33736         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
33737         use the converted UTF-8 variant of the name instead.
33738
33739 2009-05-03  Jim Meyering  <meyering@redhat.com>
33740
33741         tests: tighten some getdate tests
33742         * tests/test-getdate.c (main): Tighten tests: require equality,
33743         not just greater than.  Set TZ envvar to UTC0.
33744
33745 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
33746
33747         getdate: correctly interpret "next monday" when run on a Monday
33748         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
33749         that e.g., "next tues" (when run on a tuesday) results in a date
33750         that is one week in the future, and not today's date.
33751         I.e., add a week when the wday is the same as the current one.
33752         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
33753         and earlier by Martin Bernreuther and Jan Minář.
33754         * tests/test-getdate.c (main): Check that "next DAY" is always in
33755         the future and that "last DAY" is always in the past.
33756
33757 2009-05-02  Jim Meyering  <meyering@redhat.com>
33758
33759         build: ensure that a release build fails when a submodule is unclean
33760         * top/maint.mk (no-submodule-changes): New rule.
33761         (alpha beta major): Depend on it.
33762
33763 2009-05-02  Bruno Haible  <bruno@clisp.org>
33764
33765         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
33766         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
33767         shell variable gl_fnmatch_required to detect which variant is
33768         requested.
33769         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
33770         gl_FUNC_FNMATCH_POSIX.
33771         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
33772         exclude fnmatch-posix.
33773
33774 2009-05-02  Bruno Haible  <bruno@clisp.org>
33775
33776         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
33777         * modules/mbsrtowcs (License): Change to LGPLv2+.
33778         * modules/strnlen1 (License): Likewise.
33779         Reported by Simon Josefsson.
33780
33781 2009-05-02  Bruno Haible  <bruno@clisp.org>
33782
33783         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
33784         "cross".
33785         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
33786         gnulib-tool was called with option --source-base=lib.
33787
33788 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33789
33790         Use automake *-local hooks without commands, for extensibility.
33791         * modules/localcharset (Makefile.am): Rename install-exec-local
33792         rule to install-exec-localcharset, and make it a prerequisite of
33793         install-exec-local.  Likewise, rename the uninstall-local rule to
33794         uninstall-localcharset, and make it a prerequisite of the former.
33795
33796 2009-05-01  Bruno Haible  <bruno@clisp.org>
33797
33798         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
33799         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
33800         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
33801         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
33802         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
33803         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
33804         m4/locale-zh.m4, m4/codeset.m4.
33805
33806         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
33807         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
33808         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
33809         m4/locale-zh.m4.
33810
33811         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
33812         REPLACE_WCRTOMB if mbstate_t must be replaced.
33813         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
33814         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
33815
33816 2009-05-01  Bruno Haible  <bruno@clisp.org>
33817
33818         Avoid compiler warnings when redefining macros defined by <libintl.h>.
33819         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
33820         dngettext, dcngettext, textdomain, bindtextdomain,
33821         bind_textdomain_codeset): Undefine before redefining.
33822
33823 2009-04-30  Bruno Haible  <bruno@clisp.org>
33824
33825         Fix bug introduced on 2009-04-25.
33826         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
33827         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
33828         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
33829         is defined.
33830         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
33831         is defined.
33832         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
33833         is defined.
33834         Reported by Elbert_Pol <elbert.pol@gmail.com>.
33835
33836 2009-04-28  Bruno Haible  <bruno@clisp.org>
33837
33838         Comment tweaks.
33839         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
33840         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
33841         * lib/unicase.h (u*_casexfrm): Likewise.
33842         Reported by Paolo Bonzini.
33843
33844 2009-04-28  Bruno Haible  <bruno@clisp.org>
33845
33846         Fix a compilation error.
33847         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
33848         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
33849         Reported by Jim Meyering.
33850
33851 2009-04-27  Bruno Haible  <bruno@clisp.org>
33852
33853         New module 'libunistring'.
33854         * modules/libunistring: New file.
33855         * m4/libunistring.m4: New file.
33856         * MODULES.html.sh (Unicode string functions): Add it.
33857
33858 2009-04-27  Eric Blake  <ebb9@byu.net>
33859
33860         maint.mk: allow package-specific header to provide <config.h>
33861         * top/maint.mk (sc_require_config_h): New variable.
33862         (sc_require_config_h, sc_require_config_h_first): Use it.
33863
33864 2009-04-27  Simon Josefsson  <simon@josefsson.org>
33865
33866         * top/maint.mk (sc_avoid_if_before_free): Except
33867         useless-if-before-free script.
33868
33869 2009-04-27  Eric Blake  <ebb9@byu.net>
33870
33871         maintainer-makefile: depend on all required helper scripts
33872         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
33873         useless-if-before-free.
33874         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
33875         version, rather than assuming gnulib checkout is available.
33876         Reported by Simen Josefsson.
33877
33878 2009-04-26  Bruno Haible  <bruno@clisp.org>
33879
33880         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
33881         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
33882         "../" or "..".
33883
33884 2009-04-26  Bruno Haible  <bruno@clisp.org>
33885
33886         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
33887         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
33888         AC_LIB_HAVE_LINKFLAGS.
33889
33890 2009-04-26  Bruno Haible  <bruno@clisp.org>
33891
33892         Simplify calling convention of u*_conv_from_encoding.
33893         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
33894         u32_conv_from_encoding): Expect a resultbuf argument and return the
33895         result directly as a pointer.
33896         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
33897         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
33898         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
33899         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
33900         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
33901         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
33902         Update.
33903         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
33904         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
33905         * lib/vasnprintf.c (VASNPRINTF): Update.
33906         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
33907         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
33908         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
33909         * NEWS: Mention the change.
33910
33911 2009-04-26  Bruno Haible  <bruno@clisp.org>
33912
33913         Simplify calling convention of u*_conv_to_encoding.
33914         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
33915         u32_conv_to_encoding): Expect a resultbuf argument and return the
33916         result directly as a pointer.
33917         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
33918         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
33919         freeing scaled_offsets if mem_iconveha failed.
33920         * lib/unicase/u-casexfrm.h (FUNC): Update.
33921         * lib/uninorm/u-normxfrm.h (FUNC): Update.
33922         * lib/vasnprintf.c (VASNPRINTF): Update.
33923         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
33924         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
33925         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
33926         * NEWS: Mention the change.
33927
33928 2009-04-26  Bruno Haible  <bruno@clisp.org>
33929
33930         Avoid test failures on AIX and OSF/1.
33931         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
33932         malloc(0).
33933         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
33934         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
33935         Likewise.
33936         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
33937         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
33938         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
33939         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
33940         * doc/posix-functions/malloc.texi: Document the portability problem
33941         related to malloc(0).
33942
33943 2009-04-26  Bruno Haible  <bruno@clisp.org>
33944
33945         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
33946         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
33947         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
33948
33949 2009-04-25  Bruno Haible  <bruno@clisp.org>
33950
33951         Avoid link error when creating a namespace clean library.
33952         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
33953         as macro with arguments if already defined as an alias.
33954         * lib/signbitf.c (gl_signbitf): Don't undefine.
33955         * lib/signbitd.c (gl_signbitd): Don't undefine.
33956         * lib/signbitl.c (gl_signbitl): Don't undefine.
33957
33958 2009-04-25  Jim Meyering  <meyering@redhat.com>
33959
33960         vc-list-files: fix another quoting bug
33961         * build-aux/vc-list-files: Avoid sed backslash expansion
33962         of pathological directory names.
33963
33964 2009-04-25  Eric Blake  <ebb9@byu.net>
33965
33966         vc-list-files: fix shell quoting error
33967         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
33968         timestamp.
33969
33970 2009-04-25  Jim Meyering  <meyering@redhat.com>
33971
33972         vc-list-files: restore lost functionality with subdir argument
33973         * build-aux/vc-list-files: When given a non-"." sub-directory
33974         argument, substitute the $dir/ prefix back onto each resulting name.
33975         Otherwise, coreutils' root_tests check would fail.
33976
33977 2009-04-24  Eric Blake  <ebb9@byu.net>
33978
33979         vc-list-files: ignore git symlinks
33980         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
33981         than ls-files, to ignore git symlinks.
33982
33983         maint.mk: import improvements from m4
33984         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
33985         (move_if_change): Delete unused macro.
33986         (news-date-check, vc-diff-check): Support VPATH builds.
33987         (announcement): Likewise.  Split --bootstrap-tools list...
33988         (boostrap-tools): ...into separate list, which can be overridden
33989         in cfg.mk.
33990         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
33991         requiring dependency on useless-if-before-free module.
33992         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
33993         Support VPATH builds.
33994
33995 2009-04-24  Jim Meyering  <meyering@redhat.com>
33996
33997         maint.mk: remove coreutils-specific rules and variables
33998         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
33999         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
34000         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
34001
34002         maint.mk: remove obsolete rule
34003         * top/maint.mk (rel-check): Remove rule.
34004         (WGET, WGETFLAGS): Remove now-unused variables.
34005
34006 2009-04-24  Simon Josefsson  <simon@josefsson.org>
34007
34008         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
34009         consistency.
34010
34011         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
34012         '$(PATH_SEPARATOR)' instead of ':'.
34013
34014 2009-04-24  Simon Josefsson  <simon@josefsson.org>
34015
34016         * lib/getopt1.c (main): Use 'const' for static array.
34017
34018 2009-04-24  Simon Josefsson  <simon@josefsson.org>
34019
34020         * top/maint.mk: Sync with coreutils.
34021         * NEWS: Explain incompatibilities.
34022
34023 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34024             Bruno Haible  <bruno@clisp.org>
34025
34026         Fix cross-compilation results.
34027         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
34028         statement, as third argument of AC_TRY_RUN.
34029         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
34030         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
34031         Likewise.
34032         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
34033         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
34034         Likewise.
34035         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
34036         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
34037         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
34038
34039 2009-04-20  Bruno Haible  <bruno@clisp.org>
34040
34041         Avoid test failure on mingw.
34042         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
34043
34044 2009-04-20  Bruno Haible  <bruno@clisp.org>
34045
34046         Avoid compilation error on mingw.
34047         * modules/localename-tests (Depends-on): Add locale.
34048
34049 2009-04-19  Bruno Haible  <bruno@clisp.org>
34050
34051         Support for building a shared library on Windows platforms.
34052         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
34053         (main): Test the presence of UNINORM_NFC here.
34054         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
34055         (main): Test the presence of UNINORM_NFD here.
34056         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
34057         (main): Test the presence of UNINORM_NFKC here.
34058         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
34059         (main): Test the presence of UNINORM_NFKD here.
34060
34061 2009-04-19  Bruno Haible  <bruno@clisp.org>
34062
34063         Avoid a compiler warning.
34064         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
34065         Change type of variable 'sequence'.
34066
34067 2009-04-19  Bruno Haible  <bruno@clisp.org>
34068
34069         * modules/configmake (Makefile.am): When the contents of configmake.h
34070         does not change, arrange to preserve its modification time.
34071
34072 2009-04-17  Simon Josefsson  <simon@josefsson.org>
34073
34074         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
34075         gettext domain.
34076
34077 2009-04-16  Jim Meyering  <meyering@redhat.com>
34078
34079         useless-if-before-free: improve conversion code
34080         * build-aux/useless-if-before-free: Adjust code-in-comment to match
34081         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
34082
34083 2009-04-14  Bruno Haible  <bruno@clisp.org>
34084
34085         * modules/fcntl (Depends-on): Add extensions.
34086         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
34087
34088 2009-04-12  Ben Pfaff  <blp@gnu.org>
34089
34090         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
34091         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
34092
34093 2009-03-20  Ben Pfaff  <blp@gnu.org>
34094
34095         Make rename replace existing destinations on Windows.
34096         * m4/rename.m4: Add test for Mingw.
34097         * lib/rename.c: Add rename replacement that uses MoveFileEx with
34098         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
34099         * doc/posix-functions/rename.texi: Document.
34100
34101 2009-04-10  Bruno Haible  <bruno@clisp.org>
34102
34103         New include file "iconveh.h".
34104         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
34105         * lib/striconveh.h: Include it.
34106         (enum iconv_ilseq_handler): Remove definition.
34107         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
34108         striconveh.h.
34109         * lib/striconveha.c: Include striconveh.h.
34110         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
34111         * modules/striconveh (Files): Add lib/iconveh.h.
34112         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
34113         lib/striconveh.h.
34114
34115 2009-04-10  Bruno Haible  <bruno@clisp.org>
34116
34117         * lib/uniconv.h: Update comment.
34118
34119 2009-04-10  Bruno Haible  <bruno@clisp.org>
34120
34121         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
34122         always.
34123         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
34124         * lib/unistr/u16-mbtouc-aux.c: Likewise.
34125         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
34126         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
34127         "unistring-notinline.h", so that the function gets defined always.
34128         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
34129         * lib/unistr/u8-uctomb.c: Likewise.
34130         * lib/unistr/u16-mbtouc.c: Likewise.
34131         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
34132         * lib/unistr/u16-uctomb.c: Likewise.
34133         * lib/unistr/u32-mbtouc.c: Likewise.
34134         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
34135         * lib/unistr/u32-uctomb.c: Likewise.
34136
34137 2009-04-10  Bruno Haible  <bruno@clisp.org>
34138
34139         Mark 'utime' obsolete.
34140         * modules/utime (Status, Notice): New sections.
34141         Suggested by Jim Meyering.
34142
34143         Fix cross-compile guess for utime test.
34144         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
34145         autoconf.
34146         * doc/posix-functions/utime.texi: Give more precisions.
34147         Reported by Jan <ipif@ymail.com>.
34148
34149 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
34150
34151         filevercmp: correct today's change
34152         * lib/filevercmp.c: Also handle coreutils' test inputs.
34153         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
34154
34155         Fix regression in 'filevercmp' module. Thanks Sven Joachim
34156         for reporting it.
34157         * lib/filevercmp.c: Special handle for "", "." and "..".
34158         * tests/test-filevercmp.c: Enlarge the set suite.
34159
34160 2009-04-07  Jim Meyering  <meyering@redhat.com>
34161
34162         useless-if-before-free: show how to remove braced useless free, too
34163         * build-aux/useless-if-before-free: still only in a comment, though.
34164
34165 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
34166
34167         maint.mk: import changes to syntax-check macros from coreutils
34168         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
34169         Use them in the relevant macros.
34170
34171 2009-04-06  Bruno Haible  <bruno@clisp.org>
34172
34173         Fix unportable use of bit-fields.
34174         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
34175         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
34176         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
34177
34178 2009-04-06  Bruno Haible  <bruno@clisp.org>
34179
34180         Avoid test failures on AIX and OSF/1.
34181         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
34182         that malloc(0) = NULL.
34183         * tests/unicase/test-u8-tolower.c (check): Likewise.
34184         * tests/unicase/test-u8-totitle.c (check): Likewise.
34185         * tests/unicase/test-u8-toupper.c (check): Likewise.
34186         * tests/unicase/test-u16-casefold.c (check): Likewise.
34187         * tests/unicase/test-u16-tolower.c (check): Likewise.
34188         * tests/unicase/test-u16-totitle.c (check): Likewise.
34189         * tests/unicase/test-u16-toupper.c (check): Likewise.
34190         * tests/unicase/test-u32-casefold.c (check): Likewise.
34191         * tests/unicase/test-u32-tolower.c (check): Likewise.
34192         * tests/unicase/test-u32-totitle.c (check): Likewise.
34193         * tests/unicase/test-u32-toupper.c (check): Likewise.
34194         * tests/uninorm/test-u8-nfc.c (check): Likewise.
34195         * tests/uninorm/test-u8-nfd.c (check): Likewise.
34196         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
34197         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
34198         * tests/uninorm/test-u16-nfc.c (check): Likewise.
34199         * tests/uninorm/test-u16-nfd.c (check): Likewise.
34200         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
34201         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
34202         * tests/uninorm/test-u32-nfc.c (check): Likewise.
34203         * tests/uninorm/test-u32-nfd.c (check): Likewise.
34204         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
34205         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
34206
34207 2009-04-05  Bruno Haible  <bruno@clisp.org>
34208
34209         Work around an autoconf limitation.
34210         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
34211         comment line if it would be longer than 3 KB.
34212
34213 2009-04-05  Bruno Haible  <bruno@clisp.org>
34214
34215         Avoid test failure with libiconv-1.13.
34216         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
34217         of the expected test results.
34218
34219 2009-04-05  Bruno Haible  <bruno@clisp.org>
34220
34221         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
34222         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
34223         that it should be installed.
34224
34225 2009-04-05  Bruno Haible  <bruno@clisp.org>
34226
34227         * gnulib-tool: New option --copy-file.
34228         (func_usage): Document it.
34229         (func_dest_tmpfilename): Moved out of func_import.
34230         (func_add_file, func_update_file): New functions, extracted from
34231         func_import.
34232         (func_import): Update.
34233
34234 2009-04-05  Karl Berry  <karl@gnu.org>
34235
34236         * README: prominently mention gnulib-tool.
34237         Rearrange sections so getting the code is near the top.
34238
34239 2009-04-05  Bruno Haible  <bruno@clisp.org>
34240
34241         * lib/unicase.h: Mention u*_cmp2.
34242         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
34243         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
34244         * lib/unicase/ulc-casecmp.c: Likewise.
34245         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
34246         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
34247         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
34248         unistr/u8-cmp.
34249         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
34250         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
34251         unistr/u16-cmp.
34252         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
34253         unistr/u32-cmp.
34254
34255         * lib/uninorm.h: Mention u*_cmp2.
34256         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
34257         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
34258         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
34259         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
34260         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
34261         unistr/u8-cmp.
34262         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
34263         unistr/u16-cmp.
34264         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
34265         unistr/u32-cmp.
34266
34267         New module 'unistr/u32-cmp2'.
34268         * lib/unistr/u32-cmp2.c: New file.
34269         * modules/unistr/u32-cmp2: New file.
34270
34271         New module 'unistr/u16-cmp2'.
34272         * lib/unistr/u16-cmp2.c: New file.
34273         * modules/unistr/u16-cmp2: New file.
34274
34275         New module 'unistr/u8-cmp2'.
34276         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
34277         * lib/unistr/u8-cmp2.c: New file.
34278         * lib/unistr/u-cmp2.h: New file.
34279         * modules/unistr/u8-cmp2: New file.
34280
34281 2009-04-05  Bruno Haible  <bruno@clisp.org>
34282
34283         * lib/unictype.h (uc_property_is_valid): New macro.
34284         * tests/unictype/test-pr_byname.c (main): Use it.
34285
34286         * lib/unistr.h: Doc fixes.
34287         * lib/uniconv.h: Doc fixes.
34288         * lib/unictype.h: Doc fixes.
34289
34290 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
34291
34292         Port coreutils 7.2 to Solaris 8.
34293
34294         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
34295         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
34296         for Solaris 8.  This is a bit of a hack, as it means it's the
34297         caller's responsibility to add -lnsl if needed, but most likely it
34298         won't be needed since only getaddrinfo uses this and getaddrinfo
34299         isn't needed on Solaris 8.
34300
34301         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
34302         problem to Solaris 8 encountered with coreutils 7.2, which
34303         resulted in a message "fnmatch.c:292: warning: passing argument 4
34304         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
34305         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
34306
34307 2009-04-03  Simon Josefsson  <simon@josefsson.org>
34308
34309         * m4/ld-version-script.m4: Add FIXME comment.
34310
34311 2009-04-02  Simon Josefsson  <simon@josefsson.org>
34312
34313         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
34314         SOVERSION variable.
34315
34316 2009-04-02  Bruno Haible  <bruno@clisp.org>
34317
34318         * Makefile (info, html, dvi, pdf): Combine the rules.
34319         Suggested by Jim Meyering.
34320
34321 2009-04-01  Bruno Haible  <bruno@clisp.org>
34322
34323         * Makefile (info, html, dvi, pdf): New targets.
34324         Reported by Reuben Thomas <rrt@sc3d.org>.
34325
34326 2009-04-01  Bruno Haible  <bruno@clisp.org>
34327
34328         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
34329         can be put into PATH.
34330         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
34331
34332 2009-04-01  Bruno Haible  <bruno@clisp.org>
34333
34334         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
34335
34336 2009-04-01  Bruno Haible  <bruno@clisp.org>
34337
34338         Rename module 'visibility'.
34339         * modules/lib-symbol-visibility: Renamed from modules/visibility.
34340         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
34341         * doc/gnulib.texi: Update.
34342         * MODULES.html.sh (Misc): Update.
34343         * NEWS: Mention the change.
34344
34345 2009-04-01  Simon Josefsson  <simon@josefsson.org>
34346
34347         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
34348         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
34349         Eric Blake <ebb9@byu.net> for review.
34350         * MODULES.html.sh: Add lib-msvc-compat.
34351         * doc/gnulib.texi: Link to new section.
34352         * m4/ld-output-def.m4: New file.
34353         * doc/ld-output-def.texi: New file.
34354
34355 2009-04-01  Simon Josefsson  <simon@josefsson.org>
34356
34357         Rename ld-version-script to lib-symbol-versions.  Suggested by
34358         Bruno Haible <bruno@clisp.org>.
34359         * modules/ld-version-script: Renamed to lib-symbol-versions.
34360         * doc/ld-version-script.texi: Fix module name.
34361         * MODULES.html.sh: Add lib-symbol-versions.
34362
34363 2009-03-31  Simon Josefsson  <simon@josefsson.org>
34364
34365         * modules/u64-tests: New file.
34366         * tests/test-u64.c: New file.
34367
34368 2009-03-04  Simon Josefsson  <simon@josefsson.org>
34369
34370         * MODULES.html.sh: Mention u64.
34371         * modules/u64: New module.
34372         * modules/crypto/sha512: Depend on u64 module instead of providing
34373         u64.h.
34374
34375 2009-03-27  Eric Blake  <ebb9@byu.net>
34376
34377         test-strerror: make debugging EAI_SYSTEM easier
34378         * modules/getaddrinfo-tests (Depends-on): Add strerror.
34379         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
34380         failure was EAI_SYSTEM.
34381
34382 2009-03-25  Bruno Haible  <bruno@clisp.org>
34383
34384         Fix a problem with --enable-relocatable on Solaris 7.
34385         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
34386         since 2008-02-24.
34387
34388 2009-03-25  Eric Blake  <ebb9@byu.net>
34389
34390         test-sockets: avoid gcc warning
34391         * tests/test-sockets.c (main): Silence compiler warning.
34392
34393 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
34394
34395         New modules nproc, pthread, contributed by Glen Lenker.
34396
34397         * MODULES.html.sh: Add pthread, nproc.
34398         * lib/nproc.c: New file.
34399         * lib/nproc.h: New file.
34400         * lib/pthread.in.h: New file.
34401         * m4/pthread.m4: New file.
34402         * modules/nproc: New file.
34403         * modules/pthread: New file.
34404
34405 2009-03-24  Simon Josefsson  <simon@josefsson.org>
34406
34407         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
34408         New variable.
34409
34410 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
34411
34412         filevercmp: handle simple~ and numbered.~3~ backup suffixes
34413         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
34414         * tests/test-filevercmp.c: Add tests for backup suffixes.
34415
34416 2009-03-24  Simon Josefsson  <simon@josefsson.org>
34417
34418         * modules/stdlib (Depends-on): Add stdint, needed when defining
34419         struct random_data on, for example, HP-UX 10.20.  Reported by
34420         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34421
34422 2009-03-24  Simon Josefsson  <simon@josefsson.org>
34423
34424         * lib/readline.c (readline): Call fflush on stdout after printing
34425         prompt.
34426
34427 2009-03-20  Bruno Haible  <bruno@clisp.org>
34428
34429         Remove dependency from 'close' module to -lws2_32 on native Windows.
34430         * lib/close-hook.h: New file.
34431         * lib/close-hook.c: New file.
34432         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
34433         w32sock.h.
34434         (_gl_close_fd_maybe_socket): Remove function.
34435         (rpl_close): Invoke execute_all_close_hooks instead of
34436         _gl_close_fd_maybe_socket.
34437         * lib/sockets.c: Include close-hook.h, w32sock.h.
34438         (close_fd_maybe_socket): New function, essentially from lib/close.c.
34439         (close_sockets_hook): New variable.
34440         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
34441         (gl_sockets_cleanup): Unregister it.
34442         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
34443         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
34444         * modules/close-hook: New file.
34445         * modules/close (Files): Remove lib/w32sock.h.
34446         (Depends-on): Add close-hook.
34447         (Link): Remove section.
34448         * modules/sockets (Files): Add lib/w32sock.h.
34449         (Depends-on): Add close-hook.
34450         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
34451         invocation.
34452         * NEWS: Mention that LIB_CLOSE is gone.
34453
34454 2009-03-23  Eric Blake  <ebb9@byu.net>
34455
34456         signal-tests: test previous patch
34457         * tests/test-signal.c: New file.
34458         * modules/signal-tests: Likewise.
34459
34460         signal.h: always support 'volatile sig_atomic_t'
34461         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
34462         (gl_SIGNAL_H_DEFAULTS): Add a default.
34463         * modules/signal (Makefile.am): Substitute if needed.
34464         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
34465         users can blindly add volatile.
34466         * doc/posix-headers/signal.texi (signal.h): Document it.
34467         Reported by Matthew Woehlke.
34468
34469 2009-03-23  Jim Meyering  <meyering@redhat.com>
34470
34471         pathmax: PATH_MAX: use pathconf only when available
34472         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
34473         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
34474         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
34475         This avoids a link failure in a PSP cross-compilation environment
34476         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
34477
34478         * lib/vasnprintf.c (divide): Fix typo in comment.
34479
34480 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34481
34482         * gnulib-tool (func_filter_filelist): Fix comment.
34483
34484 2009-03-20  Bruno Haible  <bruno@clisp.org>
34485
34486         Make sockets.h self-contained.
34487         * lib/sockets.c: Include sockets.h first.
34488         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
34489
34490 2009-03-19  Eric Blake  <ebb9@byu.net>
34491
34492         doc: mention more functions added in cygwin 1.7.0
34493         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
34494         addition.
34495         * doc/posix-functions/log2f.texi: Likewise.
34496
34497 2009-03-19  Jim Meyering  <meyering@redhat.com>
34498
34499         fsusage: avoid syntax error due to statement-before-declaration
34500         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
34501         after all declarations.  Reported by Matthew Woehlke in
34502         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
34503
34504 2009-03-18  Eric Blake  <ebb9@byu.net>
34505
34506         build-aux/compile: sync from automake
34507         * build-aux/compile: New file, from automake.
34508         * config/srclist.txt: Mention build-aux/compile.
34509
34510 2009-03-17  Bruno Haible  <bruno@clisp.org>
34511
34512         * lib/git-merge-changelog.c: Fix typo in comment.
34513         Reported by Reuben Thomas <rrt@sc3d.org>.
34514
34515 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
34516
34517         * m4/regex.m4: update and improve help for
34518         --without-included-regex.
34519
34520 2009-03-17  Simon Josefsson  <simon@josefsson.org>
34521
34522         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
34523         failure on missing include files.
34524
34525 2009-03-17  Eric Blake  <ebb9@byu.net>
34526
34527         doc: mention more functions added in cygwin 1.7.0
34528         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
34529         addition.
34530         * doc/posix-functions/fwscanf.texi: Likewise.
34531         * doc/posix-functions/swprintf.texi: Likewise.
34532         * doc/posix-functions/swscanf.texi: Likewise.
34533         * doc/posix-functions/vfwprintf.texi: Likewise.
34534         * doc/posix-functions/vfwscanf.texi: Likewise.
34535         * doc/posix-functions/vswprintf.texi: Likewise.
34536         * doc/posix-functions/vswscanf.texi: Likewise.
34537         * doc/posix-functions/vwprintf.texi: Likewise.
34538         * doc/posix-functions/vwscanf.texi: Likewise.
34539         * doc/posix-functions/wcscasecmp.texi: Likewise.
34540         * doc/posix-functions/wcsdup.texi: Likewise.
34541         * doc/posix-functions/wcsftime.texi: Likewise.
34542         * doc/posix-functions/wcsncasecmp.texi: Likewise.
34543         * doc/posix-functions/wprintf.texi: Likewise.
34544         * doc/posix-functions/wscanf.texi: Likewise.
34545         * doc/glibc-functions/gethostbyname2.texi: Likewise.
34546
34547 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34548
34549         maint.mk: really add $(AM_MAKEFLAGS)
34550         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
34551         was inadvertently omitted in the last commit.
34552         Spotted by Bruno Haible.
34553
34554         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
34555         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
34556         $(AM_MAKEFLAGS)' rather than plain `make'.
34557
34558         gnulib-tool: execute $MAKE not make
34559         * gnulib-tool: Default $MAKE to 'make'.
34560         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
34561         than make.  Initialize $MAKE in the do-autobuild script.
34562
34563         gnulib-tool: use $MAKE not make in generated files
34564         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
34565         make, in generated files.  Initialize $MAKE in the do-autobuild
34566         script.
34567
34568         * top/GNUmakefile (_have-git-version-gen): Fix typo.
34569
34570         GNUmakefile: disable parallelism only for multiple, recursive targets
34571         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
34572         additions in the Makefile.
34573         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
34574         by Automake.
34575         (.NOTPARALLEL): Only disable parallel builds if multiple targets
34576         are listed on the command line and at least one of them is
34577         listed in $(ALL_RECURSIVE_TARGETS).
34578
34579 2009-03-14  Bruno Haible  <bruno@clisp.org>
34580
34581         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
34582         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
34583         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
34584         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
34585         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
34586         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
34587         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
34588         unistr/u8-uctomb.
34589         * modules/unistr/u8-strchr (Depends-on): Likewise.
34590         * modules/unistr/u8-strrchr (Depends-on): Likewise.
34591         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
34592         unistr/u16-uctomb.
34593         * modules/unistr/u16-strchr (Depends-on): Likewise.
34594         * modules/unistr/u16-strrchr (Depends-on): Likewise.
34595
34596 2009-03-12  Bruno Haible  <bruno@clisp.org>
34597
34598         Work around select() bug on Interix 3.5.
34599         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
34600         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
34601         * m4/select.m4: New file.
34602         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
34603         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
34604         * modules/select (Files): Add m4/select.m4.
34605         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
34606         * modules/nanosleep (Depends-on): Add select.
34607         * modules/poll (Depends-on): Likewise.
34608         * doc/posix-functions/select.texi: Mention the Interix bug.
34609         Reported by Markus Duft <mduft@gentoo.org>.
34610
34611         * lib/select.c: Renamed from lib/winsock-select.c.
34612         * modules/select (Files): Add lib/select.c, remove
34613         lib/winsock-select.c.
34614         (configure.ac): Update.
34615
34616 2009-03-12  Jim Meyering  <meyering@redhat.com>
34617
34618         avoid gcc warnings about unused macro definitions
34619         * lib/readtokens.c (STREQ): Remove unused definition.
34620         * lib/xmalloc.c (SIZE_MAX): Likewise.
34621         * lib/openat-die.c (N_): Likewise.
34622         * lib/mountlist.c (SIZE_MAX): Remove definition.
34623         Instead, include <stdint.h>.
34624         * lib/readutmp.c: Likewise.
34625         * modules/readutmp (Depends-on): Add stdint.
34626         * modules/mountlist (Depends-on): Add stdint.
34627         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
34628
34629 2009-03-10  Bruno Haible  <bruno@clisp.org>
34630
34631         Tests for module 'mbmemcasecoll'.
34632         * modules/mbmemcasecoll-tests: New file.
34633         * tests/test-mbmemcasecoll1.sh: New file.
34634         * tests/test-mbmemcasecoll2.sh: New file.
34635         * tests/test-mbmemcasecoll3.sh: New file.
34636         * tests/test-mbmemcasecoll.c: New file.
34637
34638         New module 'mbmemcasecoll'.
34639         * lib/mbmemcasecoll.h: New file.
34640         * lib/mbmemcasecoll.c: New file.
34641         * modules/mbmemcasecoll: New file.
34642
34643         * tests/test-mbmemcasecmp.h: New file, extracted from
34644         tests/test-mbmemcasecmp.c.
34645         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
34646         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
34647         (main): Update.
34648         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
34649
34650 2009-03-09  Bruno Haible  <bruno@clisp.org>
34651
34652         Tests for module 'mbmemcasecmp'.
34653         * modules/mbmemcasecmp-tests: New file.
34654         * tests/test-mbmemcasecmp1.sh: New file.
34655         * tests/test-mbmemcasecmp2.sh: New file.
34656         * tests/test-mbmemcasecmp3.sh: New file.
34657         * tests/test-mbmemcasecmp.c: New file.
34658
34659         New module 'mbmemcasecmp'.
34660         * lib/mbmemcasecmp.h: New file.
34661         * lib/mbmemcasecmp.c: New file.
34662         * modules/mbmemcasecmp: New file.
34663
34664 2009-03-09  Bruno Haible  <bruno@clisp.org>
34665
34666         Tests for module 'unicase/ulc-casecoll'.
34667         * modules/unicase/ulc-casecoll-tests: New file.
34668         * tests/unicase/test-ulc-casecoll1.sh: New file.
34669         * tests/unicase/test-ulc-casecoll2.sh: New file.
34670         * tests/unicase/test-ulc-casecoll.c: New file.
34671
34672         New module 'unicase/ulc-casecoll'.
34673         * lib/unicase.h (ulc_casecoll): New declaration.
34674         * lib/unicase/ulc-casecoll.c: New file.
34675         * modules/unicase/ulc-casecoll: New file.
34676
34677         New module 'unicase/ulc-casexfrm'.
34678         * lib/unicase.h (ulc_casexfrm): New declaration.
34679         * lib/unicase/ulc-casexfrm.c: New file.
34680         * modules/unicase/ulc-casexfrm: New file.
34681
34682 2009-03-09  Bruno Haible  <bruno@clisp.org>
34683
34684         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
34685         invocations.
34686
34687         * m4/mbscasecmp.m4: Remove file.
34688         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
34689         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
34690
34691         * m4/mbscasestr.m4: Remove file.
34692         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
34693         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
34694
34695         * m4/mbschr.m4: Remove file.
34696         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
34697         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
34698
34699         * m4/mbscspn.m4: Remove file.
34700         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
34701         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
34702
34703         * m4/mbslen.m4: Remove file.
34704         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
34705         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
34706
34707         * m4/mbsncasecmp.m4: Remove file.
34708         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
34709         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
34710
34711         * m4/mbsnlen.m4: Remove file.
34712         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
34713         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
34714
34715         * m4/mbspbrk.m4: Remove file.
34716         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
34717         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
34718
34719         * m4/mbspcasecmp.m4: Remove file.
34720         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
34721         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
34722
34723         * m4/mbsrchr.m4: Remove file.
34724         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
34725         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
34726
34727         * m4/mbssep.m4: Remove file.
34728         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
34729         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
34730
34731         * m4/mbsspn.m4: Remove file.
34732         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
34733         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
34734
34735         * m4/mbsstr.m4: Remove file.
34736         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
34737         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
34738
34739         * m4/mbstok_r.m4: Remove file.
34740         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
34741         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
34742
34743         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
34744
34745         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
34746         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
34747
34748         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
34749
34750 2009-03-08  Bruno Haible  <bruno@clisp.org>
34751
34752         Tests for module 'unicase/ulc-casecmp'.
34753         * modules/unicase/ulc-casecmp-tests: New file.
34754         * tests/unicase/test-ulc-casecmp1.sh: New file.
34755         * tests/unicase/test-ulc-casecmp2.sh: New file.
34756         * tests/unicase/test-ulc-casecmp.c: New file.
34757
34758         New module 'unicase/ulc-casecmp'.
34759         * lib/unicase.h (ulc_casecmp): New declaration.
34760         * lib/unicase/ulc-casecmp.c: New file.
34761         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
34762         'const SRC_UNIT *'.
34763         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
34764         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
34765         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
34766         * modules/unicase/ulc-casecmp: New file.
34767
34768         Tests for module 'unicase/u32-is-cased'.
34769         * modules/unicase/u32-is-cased-tests: New file.
34770         * tests/unicase/test-u32-is-cased.c: New file.
34771
34772         Tests for module 'unicase/u16-is-cased'.
34773         * modules/unicase/u16-is-cased-tests: New file.
34774         * tests/unicase/test-u16-is-cased.c: New file.
34775
34776         Tests for module 'unicase/u8-is-cased'.
34777         * modules/unicase/u8-is-cased-tests: New file.
34778         * tests/unicase/test-u8-is-cased.c: New file.
34779         * tests/unicase/test-is-cased.h: New file.
34780
34781         New module 'unicase/u32-is-cased'.
34782         * lib/unicase/u32-is-cased.c: New file.
34783         * modules/unicase/u32-is-cased: New file.
34784
34785         New module 'unicase/u16-is-cased'.
34786         * lib/unicase/u16-is-cased.c: New file.
34787         * modules/unicase/u16-is-cased: New file.
34788
34789         New module 'unicase/u8-is-cased'.
34790         * lib/unicase/u8-is-cased.c: New file.
34791         * lib/unicase/u-is-cased.h: New file.
34792         * modules/unicase/u8-is-cased: New file.
34793
34794         Tests for module 'unicase/u32-is-casefolded'.
34795         * modules/unicase/u32-is-casefolded-tests: New file.
34796         * tests/unicase/test-u32-is-casefolded.c: New file.
34797
34798         Tests for module 'unicase/u16-is-casefolded'.
34799         * modules/unicase/u16-is-casefolded-tests: New file.
34800         * tests/unicase/test-u16-is-casefolded.c: New file.
34801
34802         Tests for module 'unicase/u8-is-casefolded'.
34803         * modules/unicase/u8-is-casefolded-tests: New file.
34804         * tests/unicase/test-u8-is-casefolded.c: New file.
34805         * tests/unicase/test-is-casefolded.h: New file.
34806
34807         New module 'unicase/u32-is-casefolded'.
34808         * lib/unicase/u32-is-casefolded.c: New file.
34809         * modules/unicase/u32-is-casefolded: New file.
34810
34811         New module 'unicase/u16-is-casefolded'.
34812         * lib/unicase/u16-is-casefolded.c: New file.
34813         * modules/unicase/u16-is-casefolded: New file.
34814
34815         New module 'unicase/u8-is-casefolded'.
34816         * lib/unicase/u8-is-casefolded.c: New file.
34817         * modules/unicase/u8-is-casefolded: New file.
34818
34819         Tests for module 'unicase/u32-is-titlecase'.
34820         * modules/unicase/u32-is-titlecase-tests: New file.
34821         * tests/unicase/test-u32-is-titlecase.c: New file.
34822
34823         Tests for module 'unicase/u16-is-titlecase'.
34824         * modules/unicase/u16-is-titlecase-tests: New file.
34825         * tests/unicase/test-u16-is-titlecase.c: New file.
34826
34827         Tests for module 'unicase/u8-is-titlecase'.
34828         * modules/unicase/u8-is-titlecase-tests: New file.
34829         * tests/unicase/test-u8-is-titlecase.c: New file.
34830         * tests/unicase/test-is-titlecase.h: New file.
34831
34832         New module 'unicase/u32-is-titlecase'.
34833         * lib/unicase/u32-is-titlecase.c: New file.
34834         * modules/unicase/u32-is-titlecase: New file.
34835
34836         New module 'unicase/u16-is-titlecase'.
34837         * lib/unicase/u16-is-titlecase.c: New file.
34838         * modules/unicase/u16-is-titlecase: New file.
34839
34840         New module 'unicase/u8-is-titlecase'.
34841         * lib/unicase/u8-is-titlecase.c: New file.
34842         * modules/unicase/u8-is-titlecase: New file.
34843
34844         Tests for module 'unicase/u32-is-lowercase'.
34845         * modules/unicase/u32-is-lowercase-tests: New file.
34846         * tests/unicase/test-u32-is-lowercase.c: New file.
34847
34848         Tests for module 'unicase/u16-is-lowercase'.
34849         * modules/unicase/u16-is-lowercase-tests: New file.
34850         * tests/unicase/test-u16-is-lowercase.c: New file.
34851
34852         Tests for module 'unicase/u8-is-lowercase'.
34853         * modules/unicase/u8-is-lowercase-tests: New file.
34854         * tests/unicase/test-u8-is-lowercase.c: New file.
34855         * tests/unicase/test-is-lowercase.h: New file.
34856
34857         New module 'unicase/u32-is-lowercase'.
34858         * lib/unicase/u32-is-lowercase.c: New file.
34859         * modules/unicase/u32-is-lowercase: New file.
34860
34861         New module 'unicase/u16-is-lowercase'.
34862         * lib/unicase/u16-is-lowercase.c: New file.
34863         * modules/unicase/u16-is-lowercase: New file.
34864
34865         New module 'unicase/u8-is-lowercase'.
34866         * lib/unicase/u8-is-lowercase.c: New file.
34867         * modules/unicase/u8-is-lowercase: New file.
34868
34869         Tests for module 'unicase/u32-is-uppercase'.
34870         * modules/unicase/u32-is-uppercase-tests: New file.
34871         * tests/unicase/test-u32-is-uppercase.c: New file.
34872
34873         Tests for module 'unicase/u16-is-uppercase'.
34874         * modules/unicase/u16-is-uppercase-tests: New file.
34875         * tests/unicase/test-u16-is-uppercase.c: New file.
34876
34877         Tests for module 'unicase/u8-is-uppercase'.
34878         * modules/unicase/u8-is-uppercase-tests: New file.
34879         * tests/unicase/test-u8-is-uppercase.c: New file.
34880         * tests/unicase/test-is-uppercase.h: New file.
34881
34882         New module 'unicase/u32-is-uppercase'.
34883         * lib/unicase/u32-is-uppercase.c: New file.
34884         * modules/unicase/u32-is-uppercase: New file.
34885
34886         New module 'unicase/u16-is-uppercase'.
34887         * lib/unicase/u16-is-uppercase.c: New file.
34888         * modules/unicase/u16-is-uppercase: New file.
34889
34890         New module 'unicase/u8-is-uppercase'.
34891         * lib/unicase/u8-is-uppercase.c: New file.
34892         * modules/unicase/u8-is-uppercase: New file.
34893
34894         New module 'unicase/u32-is-invariant'.
34895         * lib/unicase/u32-is-invariant.c: New file.
34896         * modules/unicase/u32-is-invariant: New file.
34897
34898         New module 'unicase/u16-is-invariant'.
34899         * lib/unicase/u16-is-invariant.c: New file.
34900         * modules/unicase/u16-is-invariant: New file.
34901
34902         New module 'unicase/u8-is-invariant'.
34903         * lib/unicase/u8-is-invariant.c: New file.
34904         * lib/unicase/invariant.h: New file.
34905         * lib/unicase/u-is-invariant.h: New file.
34906         * modules/unicase/u8-is-invariant: New file.
34907
34908         Tests for module 'unicase/u32-casecoll'.
34909         * modules/unicase/u32-casecoll-tests: New file.
34910         * tests/unicase/test-u32-casecoll.c: New file.
34911
34912         Tests for module 'unicase/u16-casecoll'.
34913         * modules/unicase/u16-casecoll-tests: New file.
34914         * tests/unicase/test-u16-casecoll.c: New file.
34915
34916         Tests for module 'unicase/u8-casecoll'.
34917         * modules/unicase/u8-casecoll-tests: New file.
34918         * tests/unicase/test-u8-casecoll.c: New file.
34919
34920         New module 'unicase/u32-casecoll'.
34921         * lib/unicase/u32-casecoll.c: New file.
34922         * modules/unicase/u32-casecoll: New file.
34923
34924         New module 'unicase/u16-casecoll'.
34925         * lib/unicase/u16-casecoll.c: New file.
34926         * modules/unicase/u16-casecoll: New file.
34927
34928         New module 'unicase/u8-casecoll'.
34929         * lib/unicase/u8-casecoll.c: New file.
34930         * lib/unicase/u-casecoll.h: New file.
34931         * modules/unicase/u8-casecoll: New file.
34932
34933         New module 'unicase/u32-casexfrm'.
34934         * lib/unicase/u32-casexfrm.c: New file.
34935         * modules/unicase/u32-casexfrm: New file.
34936
34937         New module 'unicase/u16-casexfrm'.
34938         * lib/unicase/u16-casexfrm.c: New file.
34939         * modules/unicase/u16-casexfrm: New file.
34940
34941         New module 'unicase/u8-casexfrm'.
34942         * lib/unicase/u8-casexfrm.c: New file.
34943         * lib/unicase/u-casexfrm.h: New file.
34944         * modules/unicase/u8-casexfrm: New file.
34945
34946         Tests for module 'unicase/u32-casecmp'.
34947         * modules/unicase/u32-casecmp-tests: New file.
34948         * tests/unicase/test-u32-casecmp.c: New file.
34949
34950         Tests for module 'unicase/u16-casecmp'.
34951         * modules/unicase/u16-casecmp-tests: New file.
34952         * tests/unicase/test-u16-casecmp.c: New file.
34953
34954         Tests for module 'unicase/u8-casecmp'.
34955         * modules/unicase/u8-casecmp-tests: New file.
34956         * tests/unicase/test-u8-casecmp.c: New file.
34957         * tests/unicase/test-casecmp.h: New file.
34958
34959         New module 'unicase/u32-casecmp'.
34960         * lib/unicase/u32-casecmp.c: New file.
34961         * modules/unicase/u32-casecmp: New file.
34962
34963         New module 'unicase/u16-casecmp'.
34964         * lib/unicase/u16-casecmp.c: New file.
34965         * modules/unicase/u16-casecmp: New file.
34966
34967         New module 'unicase/u8-casecmp'.
34968         * lib/unicase/u8-casecmp.c: New file.
34969         * lib/unicase/u-casecmp.h: New file.
34970         * modules/unicase/u8-casecmp: New file.
34971
34972         Tests for module 'unicase/u32-casefold'.
34973         * modules/unicase/u32-casefold-tests: New file.
34974         * tests/unicase/test-u32-casefold.c: New file.
34975
34976         Tests for module 'unicase/u16-casefold'.
34977         * modules/unicase/u16-casefold-tests: New file.
34978         * tests/unicase/test-u16-casefold.c: New file.
34979
34980         Tests for module 'unicase/u8-casefold'.
34981         * modules/unicase/u8-casefold-tests: New file.
34982         * tests/unicase/test-u8-casefold.c: New file.
34983
34984         New module 'unicase/u32-casefold'.
34985         * lib/unicase/u32-casefold.c: New file.
34986         * modules/unicase/u32-casefold: New file.
34987
34988         New module 'unicase/u16-casefold'.
34989         * lib/unicase/u16-casefold.c: New file.
34990         * modules/unicase/u16-casefold: New file.
34991
34992         New module 'unicase/u8-casefold'.
34993         * lib/unicase/u8-casefold.c: New file.
34994         * lib/unicase/u-casefold.h: New file.
34995         * modules/unicase/u8-casefold: New file.
34996
34997         New module 'unicase/tocasefold'.
34998         * lib/unicase/casefold.h: New file.
34999         * lib/unicase/tocasefold.c: New file.
35000         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
35001         * modules/unicase/tocasefold: New file.
35002
35003         Tests for module 'unicase/u32-totitle'.
35004         * modules/unicase/u32-totitle-tests: New file.
35005         * tests/unicase/test-u32-totitle.c: New file.
35006
35007         Tests for module 'unicase/u16-totitle'.
35008         * modules/unicase/u16-totitle-tests: New file.
35009         * tests/unicase/test-u16-totitle.c: New file.
35010
35011         Tests for module 'unicase/u8-totitle'.
35012         * modules/unicase/u8-totitle-tests: New file.
35013         * tests/unicase/test-u8-totitle.c: New file.
35014
35015         New module 'unicase/u32-totitle'.
35016         * lib/unicase/u32-totitle.c: New file.
35017         * modules/unicase/u32-totitle: New file.
35018
35019         New module 'unicase/u16-totitle'.
35020         * lib/unicase/u16-totitle.c: New file.
35021         * modules/unicase/u16-totitle: New file.
35022
35023         New module 'unicase/u8-totitle'.
35024         * lib/unicase/u8-totitle.c: New file.
35025         * lib/unicase/u-totitle.h: New file.
35026         * modules/unicase/u8-totitle: New file.
35027
35028         Tests for module 'unicase/u32-tolower'.
35029         * modules/unicase/u32-tolower-tests: New file.
35030         * tests/unicase/test-u32-tolower.c: New file.
35031
35032         Tests for module 'unicase/u16-tolower'.
35033         * modules/unicase/u16-tolower-tests: New file.
35034         * tests/unicase/test-u16-tolower.c: New file.
35035
35036         Tests for module 'unicase/u8-tolower'.
35037         * modules/unicase/u8-tolower-tests: New file.
35038         * tests/unicase/test-u8-tolower.c: New file.
35039
35040         New module 'unicase/u32-tolower'.
35041         * lib/unicase/u32-tolower.c: New file.
35042         * modules/unicase/u32-tolower: New file.
35043
35044         New module 'unicase/u16-tolower'.
35045         * lib/unicase/u16-tolower.c: New file.
35046         * modules/unicase/u16-tolower: New file.
35047
35048         New module 'unicase/u8-tolower'.
35049         * lib/unicase/u8-tolower.c: New file.
35050         * modules/unicase/u8-tolower: New file.
35051
35052         Tests for module 'unicase/u32-toupper'.
35053         * modules/unicase/u32-toupper-tests: New file.
35054         * tests/unicase/test-u32-toupper.c: New file.
35055
35056         Tests for module 'unicase/u16-toupper'.
35057         * modules/unicase/u16-toupper-tests: New file.
35058         * tests/unicase/test-u16-toupper.c: New file.
35059
35060         Tests for module 'unicase/u8-toupper'.
35061         * modules/unicase/u8-toupper-tests: New file.
35062         * tests/unicase/test-u8-toupper.c: New file.
35063
35064         New module 'unicase/u32-toupper'.
35065         * lib/unicase/u32-toupper.c: New file.
35066         * modules/unicase/u32-toupper: New file.
35067
35068         New module 'unicase/u16-toupper'.
35069         * lib/unicase/u16-toupper.c: New file.
35070         * modules/unicase/u16-toupper: New file.
35071
35072         New module 'unicase/u8-toupper'.
35073         * lib/unicase/u8-toupper.c: New file.
35074         * modules/unicase/u8-toupper: New file.
35075
35076         New module 'unicase/u32-casemap'.
35077         * lib/unicase/u32-casemap.c: New file.
35078         * modules/unicase/u32-casemap: New file.
35079
35080         New module 'unicase/u16-casemap'.
35081         * lib/unicase/u16-casemap.c: New file.
35082         * modules/unicase/u16-casemap: New file.
35083
35084         New module 'unicase/u8-casemap'.
35085         * lib/unicase/unicasemap.h: New file.
35086         * lib/unicase/u8-casemap.c: New file.
35087         * lib/unicase/u-casemap.h: New file.
35088         * modules/unicase/u8-casemap: New file.
35089
35090         New module 'unicase/special-casing'.
35091         * lib/unicase/special-casing.h: New file.
35092         * lib/unicase/special-casing.c: New file.
35093         * lib/unicase/special-casing-table.gperf: New file, generated by
35094         gen-uni-tables.c.
35095         * modules/unicase/special-casing: New file.
35096
35097         Tests for module 'unicase/locale-language'.
35098         * modules/unicase/locale-language-tests: New file.
35099         * tests/unicase/test-locale-language.sh: New file.
35100         * tests/unicase/test-locale-language.c: New file.
35101
35102         New module 'unicase/locale-language'.
35103         * lib/unicase/locale-language.c: New file.
35104         * lib/unicase/locale-languages.gperf: New file.
35105         * modules/unicase/locale-language: New file.
35106
35107         Generate more tables for case conversion and case folding.
35108         * lib/gen-uni-tables.c (SCC_*): New enum items.
35109         (struct special_casing_rule): New type.
35110         (casing_rules, num_casing_rules, allocated_casing_rules): New
35111         variables.
35112         (add_casing_rule, fill_casing_rules): New functions.
35113         (struct casefold_rule): New type.
35114         (casefolding_rules, num_casefolding_rules,
35115         allocated_casefolding_rules): New variables.
35116         (fill_casefolding_rules): New function.
35117         (unicode_casefold): New variable.
35118         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
35119         sort_casing_rules, output_casing_rules): New functions.
35120         (main): Accept to more arguments: SpecialCasing.txt and
35121         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
35122         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
35123         Output mapping for casefolding.
35124
35125         * lib/unicase.h: Include stdbool.h, uninorm.h.
35126         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
35127         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
35128         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
35129         arguments.
35130         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
35131         resultp arguments.
35132         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
35133         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
35134         resultp arguments.
35135         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
35136         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
35137         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
35138         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
35139         declarations.
35140         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
35141
35142 2009-03-08  Bruno Haible  <bruno@clisp.org>
35143
35144         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
35145         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
35146         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
35147         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
35148
35149 2009-03-07  Bruno Haible  <bruno@clisp.org>
35150
35151         Adjust u*_normcmp, u*_normcoll API.
35152         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
35153         u16_normcoll, u32_normcoll): Change failure conventions.
35154         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
35155         errno and return -1.
35156         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
35157
35158 2009-03-07  Bruno Haible  <bruno@clisp.org>
35159
35160         Tests for module 'uninorm/u32-normcoll'.
35161         * modules/uninorm/u32-normcoll-tests: New file.
35162         * tests/uninorm/test-u32-normcoll.c: New file.
35163
35164         Tests for module 'uninorm/u16-normcoll'.
35165         * modules/uninorm/u16-normcoll-tests: New file.
35166         * tests/uninorm/test-u16-normcoll.c: New file.
35167
35168         Tests for module 'uninorm/u8-normcoll'.
35169         * modules/uninorm/u8-normcoll-tests: New file.
35170         * tests/uninorm/test-u8-normcoll.c: New file.
35171
35172 2009-03-07  Bruno Haible  <bruno@clisp.org>
35173
35174         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
35175         tests/uninorm/test-u32-normcmp.c.
35176         * tests/uninorm/test-u32-normcmp.c: Include it.
35177         (test_nonascii): New function, extracted from main. Add some more
35178         tests.
35179         (main): Invoke test_ascii and test_nonascii.
35180         * modules/uninorm/u32-normcmp-tests (Files): Add
35181         tests/uninorm/test-u32-normcmp.h.
35182         (Depends-on): Remove uninorm/u32-normcmp.
35183
35184         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
35185         tests/uninorm/test-u16-normcmp.c.
35186         * tests/uninorm/test-u16-normcmp.c: Include it.
35187         (test_nonascii): New function, extracted from main. Add some more
35188         tests.
35189         (main): Invoke test_ascii and test_nonascii.
35190         * modules/uninorm/u16-normcmp-tests (Files): Add
35191         tests/uninorm/test-u16-normcmp.h.
35192         (Depends-on): Remove uninorm/u16-normcmp.
35193
35194         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
35195         tests/uninorm/test-u8-normcmp.c.
35196         * tests/uninorm/test-u8-normcmp.c: Include it.
35197         (test_nonascii): New function, extracted from main. Add some more
35198         tests.
35199         (main): Invoke test_ascii and test_nonascii.
35200         * modules/uninorm/u8-normcmp-tests (Files): Add
35201         tests/uninorm/test-u8-normcmp.h.
35202         (Depends-on): Remove uninorm/u8-normcmp.
35203
35204 2009-03-07  Bruno Haible  <bruno@clisp.org>
35205
35206         New module 'uninorm/u32-normcoll'.
35207         * lib/uninorm/u32-normcoll.c: New file.
35208         * modules/uninorm/u32-normcoll: New file.
35209
35210         New module 'uninorm/u16-normcoll'.
35211         * lib/uninorm/u16-normcoll.c: New file.
35212         * modules/uninorm/u16-normcoll: New file.
35213
35214         New module 'uninorm/u8-normcoll'.
35215         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
35216         declarations.
35217         * lib/uninorm/u8-normcoll.c: New file.
35218         * lib/uninorm/u-normcoll.h: New file.
35219         * modules/uninorm/u8-normcoll: New file.
35220
35221         New module 'uninorm/u32-normxfrm'.
35222         * lib/uninorm/u32-normxfrm.c: New file.
35223         * modules/uninorm/u32-normxfrm: New file.
35224
35225         New module 'uninorm/u16-normxfrm'.
35226         * lib/uninorm/u16-normxfrm.c: New file.
35227         * modules/uninorm/u16-normxfrm: New file.
35228
35229         New module 'uninorm/u8-normxfrm'.
35230         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
35231         declarations.
35232         * lib/uninorm/u8-normxfrm.c: New file.
35233         * lib/uninorm/u-normxfrm.h: New file.
35234         * modules/uninorm/u8-normxfrm: New file.
35235
35236 2009-03-07  Bruno Haible  <bruno@clisp.org>
35237
35238         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
35239         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
35240         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
35241
35242 2009-03-07  Bruno Haible  <bruno@clisp.org>
35243
35244         New module 'memxfrm'.
35245         * lib/memxfrm.h: New file.
35246         * lib/memxfrm.c: New file.
35247         * modules/memxfrm: New file.
35248
35249 2009-03-07  Bruno Haible  <bruno@clisp.org>
35250
35251         New module 'memcmp2'.
35252         * lib/memcmp2.h: New file.
35253         * lib/memcmp2.c: New file.
35254         * modules/memcmp2: New file.
35255
35256 2009-03-07  Bruno Haible  <bruno@clisp.org>
35257
35258         Tests for module 'uninorm/decomposing-form'.
35259         * modules/uninorm/decomposing-form-tests: New file.
35260         * tests/uninorm/test-decomposing-form.c: New file.
35261
35262         New module 'uninorm/decomposing-form'.
35263         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
35264         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
35265         Add 'decomposing_variant' field.
35266         * lib/uninorm/decomposing-form.c: New file.
35267         * lib/uninorm/nfc.c (uninorm_nfc): Update.
35268         * lib/uninorm/nfd.c (uninorm_nfd): Update.
35269         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
35270         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
35271         * modules/uninorm/decomposing-form: New file.
35272         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
35273         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
35274
35275 2009-03-07  Bruno Haible  <bruno@clisp.org>
35276
35277         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
35278         strings.
35279
35280 2009-03-06  Bruno Haible  <bruno@clisp.org>
35281
35282         Tests for module 'uninorm/u32-normcmp'.
35283         * tests/uninorm/test-u32-normcmp.c: New file.
35284         * modules/uninorm/u32-normcmp-tests: New file.
35285
35286         Tests for module 'uninorm/u16-normcmp'.
35287         * tests/uninorm/test-u16-normcmp.c: New file.
35288         * modules/uninorm/u16-normcmp-tests: New file.
35289
35290         Tests for module 'uninorm/u8-normcmp'.
35291         * tests/uninorm/test-u8-normcmp.c: New file.
35292         * modules/uninorm/u8-normcmp-tests: New file.
35293
35294         New module 'uninorm/u32-normcmp'.
35295         * lib/uninorm/u32-normcmp.c: New file.
35296         * modules/uninorm/u32-normcmp: New file.
35297
35298         New module 'uninorm/u16-normcmp'.
35299         * lib/uninorm/u16-normcmp.c: New file.
35300         * modules/uninorm/u16-normcmp: New file.
35301
35302         New module 'uninorm/u8-normcmp'.
35303         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
35304         declarations.
35305         * lib/uninorm/u8-normcmp.c: New file.
35306         * lib/uninorm/u-normcmp.h: New file.
35307         * modules/uninorm/u8-normcmp: New file.
35308
35309 2009-03-06  Bruno Haible  <bruno@clisp.org>
35310
35311         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
35312         Reported by Eric Blake.
35313
35314 2009-03-06  Eric Blake  <ebb9@byu.net>
35315             Bruno Haible  <bruno@clisp.org>
35316
35317         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
35318         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
35319         condition.
35320         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
35321         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
35322         condition.
35323         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
35324
35325 2009-03-06  Eric Blake  <ebb9@byu.net>
35326
35327         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
35328         to avoid compiler warnings.
35329         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
35330
35331 2009-03-05  Bruno Haible  <bruno@clisp.org>
35332
35333         * tests/test-ftell.c (main): Disable test beyond end of file on
35334         FreeMiNT.
35335         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
35336
35337 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
35338
35339         * lib/filevercmp.c: Move hidden files up in ordering.
35340         * tests/test-filevercmp.c: Add tests for hidden files.
35341
35342 2009-03-04  Bruno Haible  <bruno@clisp.org>
35343
35344         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
35345         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
35346         AM_CFLAGS.
35347         Reported by Simon Josefsson.
35348
35349 2009-03-03  Bruno Haible  <bruno@clisp.org>
35350
35351         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
35352         Reported by Simon Josefsson.
35353
35354         * doc/ld-version-script.texi: Update node reference.
35355
35356 2009-03-03  Bruno Haible  <bruno@clisp.org>
35357
35358         * modules/visibility (License): Change to 'unlimited'.
35359         Suggested by Simon Josefsson.
35360
35361 2009-03-03  Jim Meyering  <meyering@redhat.com>
35362
35363         unlinkdir: cannot_unlink_dir may modify process state
35364         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
35365         it's neither thread-safe nor appropriate for use in a library.
35366
35367 2009-03-03  Eric Blake  <ebb9@byu.net>
35368
35369         test-closein: silence test under Darwin
35370         * tests/test-closein.sh: Ignore stderr from cat, since we don't
35371         care if it dies from EPIPE or EBADF.
35372
35373 2009-03-03  Bruno Haible  <bruno@clisp.org>
35374
35375         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
35376         earlier.
35377         * doc/visibility.texi: Fix @node and @section.
35378
35379 2009-03-03  Simon Josefsson  <simon@josefsson.org>
35380
35381         * doc/gnulib.texi: Link to sections for ld version script and
35382         visibility.
35383         * doc/visibility.texi: Add @node and @section.
35384         * modules/ld-version-script: New module.
35385         * m4/ld-version-script.m4: New file.
35386         * doc/ld-version-script.texi: New file.
35387
35388 2009-03-02  David Lutterkort  <lutter@redhat.com>
35389
35390         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
35391         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35392
35393 2009-03-02  Bruno Haible  <bruno@clisp.org>
35394
35395         * doc/visibility.texi: Mention libtool's -export-symbols option.
35396
35397 2009-03-02  Jim Meyering  <meyering@redhat.com>
35398
35399         announce-gen: new option: --no-print-checksums
35400         * build-aux/announce-gen (usage): Describe it.
35401         (print_checksums): Print a newline here, not in the [*] footnote.
35402         (main): Honor it.
35403
35404 2009-03-01  Bruno Haible  <bruno@clisp.org>
35405
35406         Use socklen_t in the native Windows replacements prototypes.
35407         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
35408         instead of 'int'.
35409         * lib/getsockopt.c (rpl_getsockopt): Likewise.
35410         * lib/setsockopt.c (rpl_setsockopt): Likewise.
35411         * modules/getsockopt (Depends-on): Add socklen.
35412         * modules/setsockopt (Depends-on): Add socklen.
35413
35414 2009-03-01  Bruno Haible  <bruno@clisp.org>
35415
35416         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
35417         least 4.2.
35418
35419 2009-03-01  Eric Blake  <ebb9@byu.net>
35420             Bruno Haible  <bruno@clisp.org>
35421
35422         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
35423         error messages.
35424         * lib/wait-process.c (wait_subprocess): Omit error message about
35425         deadly signal sent to the child of termsigp != NULL.
35426
35427 2009-03-01  Eric Blake  <ebb9@byu.net>
35428
35429         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
35430
35431 2009-03-01  Bruno Haible  <bruno@clisp.org>
35432
35433         Avoid a gcc warning.
35434         * tests/test-sched.c (b): Make global.
35435         Reported by Eric Blake.
35436
35437 2009-01-19  Martin Lambers  <marlam@marlam.de>
35438
35439         Provide POSIX semantics for socket timeout options on W32.
35440         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
35441         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
35442         * modules/setsockopt: Depend on sys_time module for struct timeval.
35443         * modules/getsockopt: Depend on sys_time module for struct timeval.
35444
35445 2009-03-01  Simon Josefsson  <simon@josefsson.org>
35446
35447         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
35448         __USE_GNU, for consistency with netdb.in.h.
35449         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35450
35451 2009-03-01  Bruno Haible  <bruno@clisp.org>
35452
35453         More support for FreeMiNT.
35454         * lib/fseeko.c (rpl_fseeko): Complete last commit.
35455         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35456
35457 2009-03-01  Bruno Haible  <bruno@clisp.org>
35458
35459         More support for FreeMiNT.
35460         * lib/fpurge.c (fpurge): Correct last commit.
35461         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35462
35463 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35464
35465         Fix unportable awk script in vc-list-files.
35466         * build-aux/vc-list-files: In the replacement awk script, use
35467         substr with a second argument of 1, not zero.
35468         Report by Simon Josefsson.
35469
35470 2009-02-28  Bruno Haible  <bruno@clisp.org>
35471
35472         More support for FreeMiNT.
35473         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
35474         to FreeMiNT today.
35475         * lib/fwriting.c (fwriting): Likewise.
35476         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
35477
35478 2009-02-28  Bruno Haible  <bruno@clisp.org>
35479
35480         * tests/test-freadseek.c (main): Disable test beyond end of file on
35481         FreeMiNT.
35482         * tests/test-ftello.c (main): Likewise.
35483         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
35484
35485 2009-02-28  Bruno Haible  <bruno@clisp.org>
35486
35487         Add tentative support for FreeMiNT.
35488         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
35489         * lib/fpurge.c (fpurge): Likewise.
35490         * lib/freadable.c (freadable): Likewise.
35491         * lib/freading.c (freading): Likewise.
35492         * lib/freadptr.c (freadptr): Likewise.
35493         * lib/freadseek.c (freadptrinc): Likewise.
35494         * lib/fseeko.c (rpl_fseeko): Likewise.
35495         * lib/fseterr.c (fseterr): Likewise.
35496         * lib/fwritable.c (fwritable): Likewise.
35497         * lib/fwriting.c (fwriting): Likewise.
35498         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
35499         Hourihane.
35500         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35501
35502 2009-02-28  Bruno Haible  <bruno@clisp.org>
35503
35504         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
35505         SIGCHLD.
35506         Reported by Jim Meyering.
35507
35508 2009-02-28  Bruno Haible  <bruno@clisp.org>
35509
35510         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
35511         Mention the results of these tests on various platforms.
35512         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
35513         order.
35514         * doc/posix-functions/printf.texi: Likewise.
35515         * doc/posix-functions/snprintf.texi: Likewise.
35516         * doc/posix-functions/sprintf.texi: Likewise.
35517         * doc/posix-functions/vfprintf.texi: Likewise.
35518         * doc/posix-functions/vprintf.texi: Likewise.
35519         * doc/posix-functions/vsnprintf.texi: Likewise.
35520         * doc/posix-functions/vsprintf.texi: Likewise.
35521         * doc/glibc-functions/obstack_printf.texi: Likewise.
35522         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
35523
35524 2009-02-28  Bruno Haible  <bruno@clisp.org>
35525
35526         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
35527         Reported by Loïc Minier <lool@dooz.org>.
35528
35529 2009-02-27  Bruno Haible  <bruno@clisp.org>
35530
35531         * gnulib-tool (func_import): Make the sed expression used to create the
35532         sed script for updating the .gitignore file POSIX compliant.
35533         Reported by Eric Blake.
35534
35535 2009-02-27  Bruno Haible  <bruno@clisp.org>
35536
35537         * gnulib-tool (sed): Don't alias as "sed --posix".
35538         Reported by Eric Blake.
35539
35540 2009-02-27  Bruno Haible  <bruno@clisp.org>
35541
35542         Avoid test link errors.
35543         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
35544         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
35545         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
35546         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
35547         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35548
35549 2009-02-27  Bruno Haible  <bruno@clisp.org>
35550
35551         Avoid spurious "(cached)" in configure output.
35552         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
35553         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
35554         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
35555         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
35556         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
35557         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
35558         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
35559         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
35560         Reported by Eric Blake.
35561
35562 2009-02-27  Eric Blake  <ebb9@byu.net>
35563
35564         printf: fix regression in previous patch
35565         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
35566
35567 2009-02-27  Bruno Haible  <bruno@clisp.org>
35568
35569         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
35570         value.
35571         * lib/stdint.in.h: Likewise.
35572         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
35573
35574 2009-02-27  Eric Blake  <ebb9@byu.net>
35575
35576         doc: mention more functions added in cygwin 1.7.0
35577         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
35578         addition.
35579         * doc/posix-functions/open_wmemstream.texi: Likewise.
35580         * doc/posix-functions/wcsnlen.texi: Likewise.
35581         * doc/posix-functions/wcsnrtombs.texi: Likewise.
35582         * doc/posix-functions/wcstod.texi: Likewise.
35583         * doc/posix-functions/wcstof.texi: Likewise.
35584         * doc/posix-functions/wcstoimax.texi: Likewise.
35585         * doc/posix-functions/wcstok.texi: Likewise.
35586         * doc/posix-functions/wcstoumax.texi: Likewise.
35587
35588         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
35589         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
35590         * doc/posix-functions/fprintf.texi: Update.
35591         * doc/posix-functions/printf.texi: Update.
35592         * doc/posix-functions/snprintf.texi: Update.
35593         * doc/posix-functions/sprintf.texi: Update.
35594         * doc/posix-functions/vfprintf.texi: Update.
35595         * doc/posix-functions/vprintf.texi: Update.
35596         * doc/posix-functions/vsnprintf.texi: Update.
35597         * doc/posix-functions/vsprintf.texi: Update.
35598         * doc/glibc-functions/obstack_printf.texi: Update.
35599         * doc/glibc-functions/obstack_vprintf.texi: Update.
35600
35601 2009-02-26  Eric Blake  <ebb9@byu.net>
35602
35603         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
35604         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
35605         compilation bug by using runtime conversion.
35606         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
35607         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
35608         * modules/ceill-tests (Files): Use nan.h.
35609         * modules/floorl-tests (Files): Likewise.
35610         * modules/frexpl-tests (Files): Likewise.
35611         * modules/isnanl-tests (Files): Likewise.
35612         * modules/ldexpl-tests (Files): Likewise.
35613         * modules/roundl-tests (Files): Likewise.
35614         * modules/truncl-tests (Files): Likewise.
35615         * tests/test-ceill.c (main): Use a working NaN.
35616         * tests/test-floorl.c (main): Likewise.
35617         * tests/test-frexpl.c (main): Likewise.
35618         * tests/test-isnan.c (test_long_double): Likewise.
35619         * tests/test-isnanl.h (main): Likewise.
35620         * tests/test-ldexpl.h (main): Likewise.
35621         * tests/test-roundl.h (main): Likewise.
35622         * tests/test-truncl.h (main): Likewise.
35623         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
35624
35625 2009-02-26  Eric Blake  <ebb9@byu.net>
35626             Bruno Haible  <bruno@clisp.org>
35627
35628         Work around a *printf bug with %ls on Solaris.
35629         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
35630         precision is specified, sprintf stops converting the wide string
35631         argument when the number of bytes that have been produced by this
35632         conversion equals or exceeds the precision.
35633         * doc/posix-functions/fprintf.texi: Update.
35634         * doc/posix-functions/printf.texi: Update.
35635         * doc/posix-functions/snprintf.texi: Update.
35636         * doc/posix-functions/sprintf.texi: Update.
35637         * doc/posix-functions/vfprintf.texi: Update.
35638         * doc/posix-functions/vprintf.texi: Update.
35639         * doc/posix-functions/vsnprintf.texi: Update.
35640         * doc/posix-functions/vsprintf.texi: Update.
35641         * doc/glibc-functions/obstack_printf.texi: Update.
35642         * doc/glibc-functions/obstack_vprintf.texi: Update.
35643
35644 2009-02-26  Eric Blake  <ebb9@byu.net>
35645
35646         stdlib: favor compiler check of random.h
35647         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
35648         to avoid an ObjC random.h installed by Swarm.
35649
35650 2009-02-26  Bruno Haible  <bruno@clisp.org>
35651
35652         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
35653         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
35654         Reported by Gary V. Vaughan <gary@gnu.org>.
35655
35656 2009-02-26  Bruno Haible  <bruno@clisp.org>
35657
35658         Fix *printf behaviour regarding the %ls directive.
35659         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
35660         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
35661         NEED_PRINTF_DIRECTIVE_LS.
35662         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
35663         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
35664         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35665         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
35666         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
35667         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
35668         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
35669         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35670         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35671         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35672         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35673         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
35674         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35675         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35676         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35677         * doc/posix-functions/fprintf.texi: Update.
35678         * doc/posix-functions/printf.texi: Update.
35679         * doc/posix-functions/snprintf.texi: Update.
35680         * doc/posix-functions/sprintf.texi: Update.
35681         * doc/posix-functions/vfprintf.texi: Update.
35682         * doc/posix-functions/vprintf.texi: Update.
35683         * doc/posix-functions/vsnprintf.texi: Update.
35684         * doc/posix-functions/vsprintf.texi: Update.
35685         * doc/glibc-functions/obstack_printf.texi: Update.
35686         * doc/glibc-functions/obstack_vprintf.texi: Update.
35687         Reported by Eric Blake.
35688
35689 2009-02-25  Bruno Haible  <bruno@clisp.org>
35690
35691         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
35692         with known value.
35693         Reported by Gary V. Vaughan <gary@gnu.org>.
35694
35695 2009-02-25  Bruno Haible  <bruno@clisp.org>
35696
35697         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
35698         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
35699         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
35700         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
35701         Reported by Gary V. Vaughan <gary@gnu.org>.
35702
35703 2009-02-25  Bruno Haible  <bruno@clisp.org>
35704
35705         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
35706         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
35707         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
35708         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
35709         Reported by Gary V. Vaughan <gary@gnu.org>.
35710
35711 2009-02-25  Eric Blake  <ebb9@byu.net>
35712
35713         tests: skip fseek/ftell tests if ungetc is broken
35714         * m4/ungetc.m4: New file.
35715         * modules/fseek-tests: Split test, so ungetc dependency is
35716         separate from rest of test.
35717         * modules/fseeko-tests: Likewise.
35718         * modules/ftell-tests: Likewise.
35719         * modules/ftello-tests: Likewise.
35720         * tests/test-fseek.c (main): Isolate ungetc dependency.
35721         * tests/test-fseeko.c (main): Likewise.
35722         * tests/test-ftell.c (main): Likewise.
35723         * tests/test-ftello.c (main): Likewise.
35724         * tests/test-fseek2.sh: New file.
35725         * tests/test-fseeko2.sh: Likewise.
35726         * tests/test-ftell2.sh: Likewise.
35727         * tests/test-ftello2.sh: Likewise.
35728
35729 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
35730
35731         test-getaddrinfo: fix usage of skip return code 77
35732         * tests/test-gettaddrinfo.c: Return skip code 77 only
35733         for first occurance of skip (4x77 is not 77)
35734
35735 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
35736
35737         strtod: avoid C99 decl-after-statement
35738         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
35739
35740 2009-02-24  Eric Blake  <ebb9@byu.net>
35741
35742         strtod: detect HP-UX 11.31 bug
35743         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
35744         Reported by Gary V. Vaughan.
35745
35746 2009-02-23  Bruno Haible  <bruno@clisp.org>
35747
35748         Fix invalid read past end of memory block.
35749         * lib/vasnprintf.c (DCHAR_SET): Define.
35750         (local_wcslen): Define only when needed.
35751         (local_strnlen, local_wcsnlen): New functions.
35752         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
35753         directives that involve a conversion ourselves.
35754         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
35755         wcsnlen, mbrtowc, wcrtomb.
35756         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
35757         * tests/test-vasprintf-posix.c (test_function): Likewise.
35758         * tests/test-snprintf-posix.h (test_function): Likewise.
35759         * tests/test-sprintf-posix.h (test_function): Likewise.
35760         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35761
35762 2009-02-22  Bruno Haible  <bruno@clisp.org>
35763
35764         Implement new clarified decomposition of Hangul syllables.
35765         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
35766         of type LTV, return only a pairwise decomposition.
35767         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
35768         Likewise.
35769         * tests/uninorm/test-decomposition.c (main): Updated expected result.
35770         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
35771         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
35772
35773 2009-02-22  Bruno Haible  <bruno@clisp.org>
35774
35775         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
35776         zero-length results and shrink excess allocated memory.
35777         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
35778         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
35779         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
35780         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
35781         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
35782         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
35783         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
35784         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
35785         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
35786         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
35787         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
35788         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
35789
35790 2009-02-21  Bruno Haible  <bruno@clisp.org>
35791
35792         * doc/gnulib.texi: Include safe-alloc.texi earlier.
35793         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
35794         spaces after a period. Put a space between a macro name and its
35795         argument list. Trivial rewordings.
35796         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
35797         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
35798         (main): Return 0 explicitly.
35799
35800 2009-02-21  Bruno Haible  <bruno@clisp.org>
35801
35802         Tests for module 'uninorm/filter'.
35803         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
35804         * modules/uninorm/filter-tests: New file.
35805
35806         New module 'uninorm/filter'.
35807         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
35808         uninorm_filter_flush, uninorm_filter_free): New declarations.
35809         * lib/uninorm/uninorm-filter.c: New file.
35810         * modules/uninorm/filter: New file.
35811
35812 2009-02-21  Bruno Haible  <bruno@clisp.org>
35813
35814         Tests for module 'uninorm/nfkc'.
35815         * tests/uninorm/test-nfkc.c: New file.
35816         * tests/uninorm/test-u8-nfkc.c: New file.
35817         * tests/uninorm/test-u16-nfkc.c: New file.
35818         * tests/uninorm/test-u32-nfkc.c: New file.
35819         * tests/uninorm/test-u32-nfkc-big.sh: New file.
35820         * tests/uninorm/test-u32-nfkc-big.c: New file.
35821         * modules/uninorm/nfkc-tests: New file.
35822
35823         New module 'uninorm/nfkc'.
35824         * lib/uninorm/nfkc.c: New file.
35825         * modules/uninorm/nfkc: New file.
35826
35827         Tests for module 'uninorm/nfkd'.
35828         * tests/uninorm/test-nfkd.c: New file.
35829         * tests/uninorm/test-u8-nfkd.c: New file.
35830         * tests/uninorm/test-u16-nfkd.c: New file.
35831         * tests/uninorm/test-u32-nfkd.c: New file.
35832         * tests/uninorm/test-u32-nfkd-big.sh: New file.
35833         * tests/uninorm/test-u32-nfkd-big.c: New file.
35834         * modules/uninorm/nfkd-tests: New file.
35835
35836         New module 'uninorm/nfkd'.
35837         * lib/uninorm/nfkd.c: New file.
35838         * modules/uninorm/nfkd: New file.
35839
35840         Tests for module 'uninorm/nfc'.
35841         * tests/uninorm/test-nfc.c: New file.
35842         * tests/uninorm/test-u8-nfc.c: New file.
35843         * tests/uninorm/test-u16-nfc.c: New file.
35844         * tests/uninorm/test-u32-nfc.c: New file.
35845         * tests/uninorm/test-u32-nfc-big.sh: New file.
35846         * tests/uninorm/test-u32-nfc-big.c: New file.
35847         * modules/uninorm/nfc-tests: New file.
35848
35849         New module 'uninorm/nfc'.
35850         * lib/uninorm/nfc.c: New file.
35851         * modules/uninorm/nfc: New file.
35852
35853         Tests for module 'uninorm/nfd'.
35854         * tests/uninorm/test-nfd.c: New file.
35855         * tests/uninorm/test-u8-nfd.c: New file.
35856         * tests/uninorm/test-u16-nfd.c: New file.
35857         * tests/uninorm/test-u32-nfd.c: New file.
35858         * tests/uninorm/test-u32-nfd-big.sh: New file.
35859         * tests/uninorm/test-u32-nfd-big.c: New file.
35860         * tests/uninorm/test-u32-normalize-big.h: New file.
35861         * tests/uninorm/test-u32-normalize-big.c: New file.
35862         * tests/uninorm/NormalizationTest.txt: New file, created from
35863         Unicode 5.1.0 NormalizationTest.txt.
35864         * modules/uninorm/nfd-tests: New file.
35865
35866         New module 'uninorm/nfd'.
35867         * lib/uninorm/nfd.c: New file.
35868         * modules/uninorm/nfd: New file.
35869
35870         New module 'uninorm/u32-normalize'.
35871         * lib/uninorm/u32-normalize.c: New file.
35872         * modules/uninorm/u32-normalize: New file.
35873
35874         New module 'uninorm/u16-normalize'.
35875         * lib/uninorm/u16-normalize.c: New file.
35876         * modules/uninorm/u16-normalize: New file.
35877
35878         New module 'uninorm/u8-normalize'.
35879         * lib/uninorm/u8-normalize.c: New file.
35880         * lib/uninorm/normalize-internal.h: New file.
35881         * lib/uninorm/u-normalize-internal.h: New file.
35882         * modules/uninorm/u8-normalize: New file.
35883
35884         New module 'uninorm/decompose-internal'.
35885         * lib/uninorm/decompose-internal.c: New file.
35886         * modules/uninorm/decompose-internal: New file.
35887
35888         Tests for module 'uninorm/composition'.
35889         * tests/uninorm/test-composition.c: New file.
35890         * modules/uninorm/composition-tests: New file.
35891
35892         New module 'uninorm/composition'.
35893         * lib/uninorm/composition.c: New file.
35894         * lib/uninorm/composition-table.gperf: New file, generated by
35895         gen-uni-tables.
35896         * modules/uninorm/composition: New file.
35897
35898         Tests for module 'uninorm/compat-decomposition'.
35899         * tests/uninorm/test-compat-decomposition.c: New file.
35900         * modules/uninorm/compat-decomposition-tests: New file.
35901
35902         New module 'uninorm/compat-decomposition'.
35903         * lib/uninorm/decompose-internal.h: New file.
35904         * lib/uninorm/compat-decomposition.c: New file.
35905         * modules/uninorm/compat-decomposition: New file.
35906
35907         Tests for module 'uninorm/canonical-decomposition'.
35908         * tests/uninorm/test-canonical-decomposition.c: New file.
35909         * modules/uninorm/canonical-decomposition-tests: New file.
35910
35911         New module 'uninorm/canonical-decomposition'.
35912         * lib/uninorm/canonical-decomposition.c: New file.
35913         * modules/uninorm/canonical-decomposition: New file.
35914
35915         Tests for module 'uninorm/decomposition'.
35916         * tests/uninorm/test-decomposition.c: New file.
35917         * modules/uninorm/decomposition-tests: New file.
35918
35919         New module 'uninorm/decomposition'.
35920         * lib/uninorm/decomposition.c: New file.
35921         * modules/uninorm/decomposition: New file.
35922
35923         New module 'uninorm/decomposition-table'.
35924         * lib/uninorm/decomposition-table.h: New file.
35925         * lib/uninorm/decomposition-table.c: New file.
35926         * lib/uninorm/decomposition-table1.h: New file, generated by
35927         gen-uni-tables.
35928         * lib/uninorm/decomposition-table2.h: New file, generated by
35929         gen-uni-tables.
35930         * modules/uninorm/decomposition-table: New file.
35931
35932         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
35933         (UC_DECOMP_*): New enumeration items.
35934         (get_decomposition): New function.
35935         (struct decomp_table): New type.
35936         (output_decomposition, output_decomposition_tables): New functions.
35937         (unicode_composition_exclusions): New variable.
35938         (fill_composition_exclusions, debug_output_composition_tables): New
35939         functions.
35940         (main): Accept one more argument. Invoke fill_composition_exclusions.
35941         Output decomposition and composition tables.
35942
35943         New module 'uninorm/base'.
35944         * lib/uninorm.h: New file.
35945         * lib/unictype.h: Update comment.
35946         * modules/uninorm/base: New file.
35947
35948 2009-02-21  David Lutterkort  <lutter@redhat.com>
35949
35950         Tests for module 'safe-alloc'.
35951         * tests/test-safe-alloc.c: New file.
35952         * modules/safe-alloc-tests: New file.
35953
35954         New module 'safe-alloc'.
35955         * lib/safe-alloc.h: New file.
35956         * lib/safe-alloc.c: New file.
35957         * m4/safe-alloc.m4: New file.
35958         * modules/safe-alloc: New file.
35959         * doc/safe-alloc.texi: New file.
35960         * doc/gnulib.texi: Include it.
35961         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
35962         safe-alloc.
35963
35964 2009-02-18  Bruno Haible  <bruno@clisp.org>
35965
35966         Fix link error on non-glibc systems.
35967         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
35968         variable.
35969         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35970
35971 2009-02-18  Jim Meyering  <meyering@redhat.com>
35972
35973         fts: avoid used-uninitialized error due to recent change
35974         * lib/fts.c (fts_read): Guard uses of the new member,
35975         parent->fts_n_dirs_remaining, since it's not relevant for
35976         the parent of a directory specified on the command-line.
35977
35978 2009-02-17  James Youngman  <jay@gnu.org>
35979             Bruno Haible  <bruno@clisp.org>
35980
35981         * m4/include_next.m4: Reformulate comment.
35982
35983 2009-02-16  Jim Meyering  <meyering@redhat.com>
35984
35985         fts: add #if guards so that the fts_lgpl module still builds
35986         * lib/fts.c: Guard just-added hash-table-using parts with
35987         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
35988         Reported by Simon Josefsson.
35989
35990 2009-02-15  Bruno Haible  <bruno@clisp.org>
35991
35992         * modules/array-mergesort-tests: New file.
35993         * tests/test-array-mergesort.c: New file.
35994
35995         New module 'array-mergesort'.
35996         * modules/array-mergesort: New file.
35997         * lib/array-mergesort.h: New file.
35998
35999 2009-02-15  Bruno Haible  <bruno@clisp.org>
36000
36001         Fix 2009-02-07 commit.
36002         * lib/gen-uni-tables.c (output_predicate, output_category,
36003         output_combclass, output_bidi_category, output_decimal_digit,
36004         output_digit, output_numeric, output_mirror, output_scripts,
36005         output_ident_category, output_simple_mapping): Fix format directives.
36006         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
36007
36008 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
36009
36010         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
36011         fixes are available from IBM.
36012
36013 2009-02-13  Jim Meyering  <meyering@redhat.com>
36014
36015         fts: arrange not to stat non-directories in more cases
36016         This makes GNU find (when it doesn't need to stat each file)
36017         *much* more efficient at traversing reiserfs file systems.
36018         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
36019         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
36020         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
36021         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
36022         (leaf_optimization_applies): New function.
36023         (LCO_hash, LCO_compare): New helper functions.
36024         (link_count_optimize_ok): New function.
36025         (fts_stat): Initialize new member (if dir).
36026         (fts_read): Decrement parent's fts_n_dirs_remaining count if
36027         we've just stat'ed a directory.  Skip the stat call when possible.
36028         ---
36029         Note this AFS-related exchange:
36030         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
36031         and note find's pioctl call in find/fstype.c.
36032         But that is necessary only if you want to enable the
36033         optimization for AFS, and for now, I don't.
36034
36035         fts: move a function definition "up" (no semantic change)
36036         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
36037         "up" to precede upcoming use of a related function.
36038
36039 2009-02-11  Jim Meyering  <meyering@redhat.com>
36040
36041         fts: correct internal computation of nlinks (optimization-related)
36042         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
36043         whether the current entry is a directory, so don't test it.
36044
36045 2009-02-10  Bruno Haible  <bruno@clisp.org>
36046
36047         Tests for module 'uniwbrk/ulc-wordbreaks'.
36048         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
36049         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
36050         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
36051
36052         Tests for module 'uniwbrk/u32-wordbreaks'.
36053         * modules/uniwbrk/u32-wordbreaks-tests: New file.
36054         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
36055
36056         Tests for module 'uniwbrk/u16-wordbreaks'.
36057         * modules/uniwbrk/u16-wordbreaks-tests: New file.
36058         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
36059
36060         Tests for module 'uniwbrk/u8-wordbreaks'.
36061         * modules/uniwbrk/u8-wordbreaks-tests: New file.
36062         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
36063
36064 2009-02-10  Bruno Haible  <bruno@clisp.org>
36065
36066         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
36067         property.
36068         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
36069         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
36070         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
36071
36072 2009-02-10  Simon Josefsson  <simon@josefsson.org>
36073
36074         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
36075         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
36076
36077 2009-02-10  Bruno Haible  <bruno@clisp.org>
36078
36079         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
36080         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
36081         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
36082         * lib/unilbrk/u8-possible-linebreaks.c: Update.
36083         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
36084         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
36085
36086 2009-02-09  Simon Josefsson  <simon@josefsson.org>
36087
36088         * lib/sockets.h (gl_fd_to_handle): New function.
36089
36090         * tests/test-sockets.c: Call gl_fd_to_handle.
36091
36092 2009-02-09  Bruno Haible  <bruno@clisp.org>
36093
36094         * doc/havelib.texi: Document the conventions on bi-arch systems.
36095
36096 2009-02-08  Bruno Haible  <bruno@clisp.org>
36097
36098         Document the AC_LIB_LINKFLAGS macro.
36099         * doc/havelib.texi: New file, mostly written on 2005-05-24.
36100         * doc/gnulib.texi: Include it.
36101
36102 2009-02-08  Bruno Haible  <bruno@clisp.org>
36103
36104         Fix wrong order of sections, compared to TOC.
36105         * doc/gnulib.texi: Include relocatable-maint.texi after the
36106         "Regular expressions" node, not before.
36107
36108 2009-02-08  Bruno Haible  <bruno@clisp.org>
36109
36110         Tests for module 'unicase/totitle'.
36111         * modules/unicase/totitle-tests: New file.
36112
36113         Tests for module 'unicase/tolower'.
36114         * modules/unicase/tolower-tests: New file.
36115
36116         Tests for module 'unicase/toupper'.
36117         * modules/unicase/toupper-tests: New file.
36118         * tests/unicase/test-mapping-part1.h: New file.
36119         * tests/unicase/test-mapping-part2.h: New file.
36120
36121         New module 'unicase/totitle'.
36122         * modules/unicase/totitle: New file.
36123         * lib/unicase/totitle.c: New file.
36124
36125         New module 'unicase/tolower'.
36126         * modules/unicase/tolower: New file.
36127         * lib/unicase/tolower.c: New file.
36128
36129         New module 'unicase/toupper'.
36130         * modules/unicase/toupper: New file.
36131         * lib/unicase/toupper.c: New file.
36132         * lib/unicase/simple-mapping.h: New file.
36133
36134         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
36135         (mapping_table): New structure.
36136         (output_simple_mapping): New function.
36137         (main): Invoke output_simple_mapping_test and output_simple_mapping.
36138         * modules/gen-uni-tables (Description): Update.
36139         * lib/unicase/toupper.h: New file, automatically generated by
36140         gen-uni-tables.
36141         * lib/unicase/tolower.h: New file, automatically generated by
36142         gen-uni-tables.
36143         * lib/unicase/totitle.h: New file, automatically generated by
36144         gen-uni-tables.
36145         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
36146         gen-uni-tables.
36147         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
36148         gen-uni-tables.
36149         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
36150         gen-uni-tables.
36151
36152         New module 'unicase/base'.
36153         * modules/unicase/base: New file.
36154         * lib/unicase.h: New file.
36155
36156 2009-02-08  Bruno Haible  <bruno@clisp.org>
36157
36158         New module 'uniwbrk/ulc-wordbreaks'.
36159         * modules/uniwbrk/ulc-wordbreaks: New file.
36160         * lib/uniwbrk/ulc-wordbreaks.c: New file.
36161
36162         New module 'uniwbrk/u32-wordbreaks'.
36163         * modules/uniwbrk/u32-wordbreaks: New file.
36164         * lib/uniwbrk/u32-wordbreaks.c: New file.
36165
36166         New module 'uniwbrk/u16-wordbreaks'.
36167         * modules/uniwbrk/u16-wordbreaks: New file.
36168         * lib/uniwbrk/u16-wordbreaks.c: New file.
36169
36170         New module 'uniwbrk/u8-wordbreaks'.
36171         * modules/uniwbrk/u8-wordbreaks: New file.
36172         * lib/uniwbrk/u8-wordbreaks.c: New file.
36173         * lib/uniwbrk/u-wordbreaks.h: New file.
36174
36175         New module 'uniwbrk/table'.
36176         * modules/uniwbrk/table: New file.
36177         * lib/uniwbrk/wbrktable.h: New file.
36178         * lib/uniwbrk/wbrktable.c: New file.
36179
36180         New module 'uniwbrk/wordbreak-property'.
36181         * modules/uniwbrk/wordbreak-property: New file.
36182         * lib/uniwbrk/wordbreak-property.c: New file.
36183
36184         * lib/gen-uni-tables.c (WBP_*): New enum items.
36185         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
36186         (unicode_org_wbp): New variable.
36187         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
36188         New functions.
36189         (wbp_table): New structure.
36190         (output_wbp, output_wbrk_tables): New functions.
36191         (main): Accept additional argument. Invoke fill_org_wbp,
36192         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
36193         output_wbrk_tables.
36194         * modules/gen-uni-tables (Description): Update.
36195         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
36196         gen-uni-tables.
36197
36198         New module 'uniwbrk/base'.
36199         * modules/uniwbrk/base: New file.
36200         * lib/uniwbrk.h: New file.
36201
36202 2009-02-08  Bruno Haible  <bruno@clisp.org>
36203
36204         Update to Unicode 5.1.0.
36205         * lib/gen-uni-tables.c (is_property_alphabetic): Include
36206         U+2185..U+2188.
36207         (is_property_default_ignorable_code_point): Don't include characters
36208         of category Cc or Cs and not-a-characters.
36209         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
36210         U+0D79, U+109E, U+109F, U+A60C.
36211         * lib/unictype/bidi_of.h: Regenerated.
36212         * lib/unictype/blocks.h: Regenerated.
36213         * lib/unictype/categ_C.h: Regenerated.
36214         * lib/unictype/categ_Cf.h: Regenerated.
36215         * lib/unictype/categ_Cn.h: Regenerated.
36216         * lib/unictype/categ_L.h: Regenerated.
36217         * lib/unictype/categ_Ll.h: Regenerated.
36218         * lib/unictype/categ_Lm.h: Regenerated.
36219         * lib/unictype/categ_Lo.h: Regenerated.
36220         * lib/unictype/categ_Lu.h: Regenerated.
36221         * lib/unictype/categ_M.h: Regenerated.
36222         * lib/unictype/categ_Mc.h: Regenerated.
36223         * lib/unictype/categ_Me.h: Regenerated.
36224         * lib/unictype/categ_Mn.h: Regenerated.
36225         * lib/unictype/categ_N.h: Regenerated.
36226         * lib/unictype/categ_Nd.h: Regenerated.
36227         * lib/unictype/categ_Nl.h: Regenerated.
36228         * lib/unictype/categ_No.h: Regenerated.
36229         * lib/unictype/categ_P.h: Regenerated.
36230         * lib/unictype/categ_Pd.h: Regenerated.
36231         * lib/unictype/categ_Pe.h: Regenerated.
36232         * lib/unictype/categ_Pf.h: Regenerated.
36233         * lib/unictype/categ_Pi.h: Regenerated.
36234         * lib/unictype/categ_Po.h: Regenerated.
36235         * lib/unictype/categ_Ps.h: Regenerated.
36236         * lib/unictype/categ_S.h: Regenerated.
36237         * lib/unictype/categ_Sk.h: Regenerated.
36238         * lib/unictype/categ_Sm.h: Regenerated.
36239         * lib/unictype/categ_So.h: Regenerated.
36240         * lib/unictype/categ_of.h: Regenerated.
36241         * lib/unictype/combining.h: Regenerated.
36242         * lib/unictype/ctype_alnum.h: Regenerated.
36243         * lib/unictype/ctype_alpha.h: Regenerated.
36244         * lib/unictype/ctype_graph.h: Regenerated.
36245         * lib/unictype/ctype_lower.h: Regenerated.
36246         * lib/unictype/ctype_print.h: Regenerated.
36247         * lib/unictype/ctype_punct.h: Regenerated.
36248         * lib/unictype/ctype_upper.h: Regenerated.
36249         * lib/unictype/decdigit.h: Regenerated.
36250         * lib/unictype/digit.h: Regenerated.
36251         * lib/unictype/mirror.h: Regenerated.
36252         * lib/unictype/numeric.h: Regenerated.
36253         * lib/unictype/pr_alphabetic.h: Regenerated.
36254         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
36255         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
36256         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
36257         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
36258         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
36259         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
36260         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
36261         * lib/unictype/pr_combining.h: Regenerated.
36262         * lib/unictype/pr_dash.h: Regenerated.
36263         * lib/unictype/pr_decimal_digit.h: Regenerated.
36264         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
36265         * lib/unictype/pr_deprecated.h: Regenerated.
36266         * lib/unictype/pr_diacritic.h: Regenerated.
36267         * lib/unictype/pr_extender.h: Regenerated.
36268         * lib/unictype/pr_format_control.h: Regenerated.
36269         * lib/unictype/pr_grapheme_base.h: Regenerated.
36270         * lib/unictype/pr_grapheme_extend.h: Regenerated.
36271         * lib/unictype/pr_grapheme_link.h: Regenerated.
36272         * lib/unictype/pr_id_continue.h: Regenerated.
36273         * lib/unictype/pr_id_start.h: Regenerated.
36274         * lib/unictype/pr_ideographic.h: Regenerated.
36275         * lib/unictype/pr_ignorable_control.h: Regenerated.
36276         * lib/unictype/pr_lowercase.h: Regenerated.
36277         * lib/unictype/pr_math.h: Regenerated.
36278         * lib/unictype/pr_numeric.h: Regenerated.
36279         * lib/unictype/pr_other_alphabetic.h: Regenerated.
36280         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
36281         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
36282         * lib/unictype/pr_other_id_continue.h: Regenerated.
36283         * lib/unictype/pr_other_lowercase.h: Regenerated.
36284         * lib/unictype/pr_other_math.h: Regenerated.
36285         * lib/unictype/pr_punctuation.h: Regenerated.
36286         * lib/unictype/pr_sentence_terminal.h: Regenerated.
36287         * lib/unictype/pr_soft_dotted.h: Regenerated.
36288         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
36289         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
36290         * lib/unictype/pr_unified_ideograph.h: Regenerated.
36291         * lib/unictype/pr_uppercase.h: Regenerated.
36292         * lib/unictype/pr_xid_continue.h: Regenerated.
36293         * lib/unictype/pr_xid_start.h: Regenerated.
36294         * lib/unictype/pr_zero_width.h: Regenerated.
36295         * lib/unictype/scripts.h: Regenerated.
36296         * lib/unictype/scripts_byname.gperf: Regenerated.
36297         * lib/unictype/sy_java_ident.h: Regenerated.
36298         * lib/unilbrk/lbrkprop1.h: Regenerated.
36299         * lib/unilbrk/lbrkprop2.h: Regenerated.
36300         * tests/unictype/test-categ_C.c: Regenerated.
36301         * tests/unictype/test-categ_Cf.c: Regenerated.
36302         * tests/unictype/test-categ_Cn.c: Regenerated.
36303         * tests/unictype/test-categ_L.c: Regenerated.
36304         * tests/unictype/test-categ_Ll.c: Regenerated.
36305         * tests/unictype/test-categ_Lm.c: Regenerated.
36306         * tests/unictype/test-categ_Lo.c: Regenerated.
36307         * tests/unictype/test-categ_Lu.c: Regenerated.
36308         * tests/unictype/test-categ_M.c: Regenerated.
36309         * tests/unictype/test-categ_Mc.c: Regenerated.
36310         * tests/unictype/test-categ_Me.c: Regenerated.
36311         * tests/unictype/test-categ_Mn.c: Regenerated.
36312         * tests/unictype/test-categ_N.c: Regenerated.
36313         * tests/unictype/test-categ_Nd.c: Regenerated.
36314         * tests/unictype/test-categ_Nl.c: Regenerated.
36315         * tests/unictype/test-categ_No.c: Regenerated.
36316         * tests/unictype/test-categ_P.c: Regenerated.
36317         * tests/unictype/test-categ_Pd.c: Regenerated.
36318         * tests/unictype/test-categ_Pe.c: Regenerated.
36319         * tests/unictype/test-categ_Pf.c: Regenerated.
36320         * tests/unictype/test-categ_Pi.c: Regenerated.
36321         * tests/unictype/test-categ_Po.c: Regenerated.
36322         * tests/unictype/test-categ_Ps.c: Regenerated.
36323         * tests/unictype/test-categ_S.c: Regenerated.
36324         * tests/unictype/test-categ_Sk.c: Regenerated.
36325         * tests/unictype/test-categ_Sm.c: Regenerated.
36326         * tests/unictype/test-categ_So.c: Regenerated.
36327         * tests/unictype/test-ctype_alnum.c: Regenerated.
36328         * tests/unictype/test-ctype_alpha.c: Regenerated.
36329         * tests/unictype/test-ctype_graph.c: Regenerated.
36330         * tests/unictype/test-ctype_lower.c: Regenerated.
36331         * tests/unictype/test-ctype_print.c: Regenerated.
36332         * tests/unictype/test-ctype_punct.c: Regenerated.
36333         * tests/unictype/test-ctype_upper.c: Regenerated.
36334         * tests/unictype/test-decdigit.h: Regenerated.
36335         * tests/unictype/test-digit.h: Regenerated.
36336         * tests/unictype/test-numeric.h: Regenerated.
36337         * tests/unictype/test-pr_alphabetic.c: Regenerated.
36338         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
36339         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
36340         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
36341         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
36342         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
36343         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
36344         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
36345         * tests/unictype/test-pr_combining.c: Regenerated.
36346         * tests/unictype/test-pr_dash.c: Regenerated.
36347         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
36348         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
36349         * tests/unictype/test-pr_deprecated.c: Regenerated.
36350         * tests/unictype/test-pr_diacritic.c: Regenerated.
36351         * tests/unictype/test-pr_extender.c: Regenerated.
36352         * tests/unictype/test-pr_format_control.c: Regenerated.
36353         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
36354         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
36355         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
36356         * tests/unictype/test-pr_id_continue.c: Regenerated.
36357         * tests/unictype/test-pr_id_start.c: Regenerated.
36358         * tests/unictype/test-pr_ideographic.c: Regenerated.
36359         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
36360         * tests/unictype/test-pr_lowercase.c: Regenerated.
36361         * tests/unictype/test-pr_math.c: Regenerated.
36362         * tests/unictype/test-pr_numeric.c: Regenerated.
36363         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
36364         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
36365         Regenerated.
36366         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
36367         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
36368         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
36369         * tests/unictype/test-pr_other_math.c: Regenerated.
36370         * tests/unictype/test-pr_punctuation.c: Regenerated.
36371         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
36372         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
36373         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
36374         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
36375         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
36376         * tests/unictype/test-pr_uppercase.c: Regenerated.
36377         * tests/unictype/test-pr_xid_continue.c: Regenerated.
36378         * tests/unictype/test-pr_xid_start.c: Regenerated.
36379         * tests/unictype/test-pr_zero_width.c: Regenerated.
36380
36381         Update to Unicode 5.1.0.
36382         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
36383         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
36384         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
36385         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
36386         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
36387         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
36388         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
36389         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
36390         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
36391         (nonspacing_table_ind): Update.
36392         * tests/uniwidth/test-uc_width2.sh: Update expected result.
36393
36394         Update to Unicode 5.1.0.
36395         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
36396         code transform.
36397         * lib/uniname/uniname.c (unicode_character_name,
36398         unicode_name_character): Add the range 0x1Fxxx to the code transform.
36399         * lib/uniname/uninames.h: Regenerated.
36400         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
36401
36402 2009-02-07  Bruno Haible  <bruno@clisp.org>
36403
36404         Merge gen-ctype and gen-lbrk into a single program.
36405         * lib/gen-uni-tables.c: New file, incorporating
36406         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
36407         Add directory prefixes to the names of the generated files.
36408         * lib/unictype/gen-ctype.c: Remove file.
36409         * lib/unilbrk/gen-lbrk.c: Remove file.
36410         * modules/gen-uni-tables: New file.
36411         * modules/unictype/gen-ctype: Remove file.
36412         * modules/unilbrk/gen-lbrk: Remove file.
36413
36414 2009-02-07  Bruno Haible  <bruno@clisp.org>
36415
36416         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
36417
36418         New module 'unistr/u32-strcoll'.
36419         * modules/unistr/u32-strcoll: New file.
36420         * lib/unistr/u32-strcoll.c: New file.
36421
36422         New module 'unistr/u16-strcoll'.
36423         * modules/unistr/u16-strcoll: New file.
36424         * lib/unistr/u16-strcoll.c: New file.
36425
36426         New module 'unistr/u8-strcoll'.
36427         * modules/unistr/u8-strcoll: New file.
36428         * lib/unistr/u8-strcoll.c: New file.
36429         * lib/unistr/u-strcoll.h: New file.
36430
36431 2009-02-07  Bruno Haible  <bruno@clisp.org>
36432
36433         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
36434         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
36435         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
36436         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
36437         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
36438         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
36439
36440 2009-02-07  Bruno Haible  <bruno@clisp.org>
36441
36442         Make 64-bit clean.
36443         * lib/unictype/gen-ctype.c (output_predicate, output_category,
36444         output_combclass, output_bidi_category, output_decimal_digit,
36445         output_digit, output_numeric, output_mirror, output_scripts,
36446         output_ident_category): Use proper width specifier in format strings.
36447
36448 2009-02-07  Bruno Haible  <bruno@clisp.org>
36449
36450         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
36451         failure behaviour.
36452
36453 2009-02-07  Jim Meyering  <meyering@redhat.com>
36454
36455         regex: avoid compilation failure with upcoming gcc-4.4
36456         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
36457         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
36458         "... error: integer overflow in preprocessor expression".
36459
36460 2009-02-05  Ben Pfaff  <blp@gnu.org>
36461
36462         Fix link errors on Windows when close module is used.
36463         * modules/close: Add $(LIB_CLOSE) to Link section.
36464         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
36465         $(LIB_CLOSE) on Windows.
36466
36467 2009-02-05  Jim Meyering  <meyering@redhat.com>
36468
36469         still avoid unused-parameter warnings, but do it cleanly
36470         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
36471         (get_fs_usage): Cast to void instead.
36472         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
36473         (dev_from_mount_options, read_file_system_list): Cast to void.
36474         Prompted by Bruno Haible.
36475
36476 2009-02-04  Jim Meyering  <meyering@redhat.com>
36477
36478         fsusage.c: correct copyright year
36479         * lib/fsusage.c: Reflect year in which the change is pushed into
36480
36481         avoid misc. warnings
36482         * lib/fsusage.c (UNUSED_PARAM): Define.
36483         (get_fs_usage): Mark parameter "disk" as unused.
36484         * lib/getugroups.c (getgrent): Use "void" in prototype.
36485         * lib/mountlist.c: Mark unused parameters.
36486         (read_file_system_list): Declare a local with "const".
36487         * lib/nanosleep.c (getnow): Declare static.
36488         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
36489
36490         dirfd: set errno upon failure
36491         * lib/dirfd.c: Include <errno.h>.
36492         Set errno to ENOTSUP when returning -1.
36493         * modules/dirfd (Depends-on): Add errno.
36494         Suggested by John Kodis <kodis@comcast.net>.
36495
36496 2009-02-01  Bruno Haible  <bruno@clisp.org>
36497
36498         Don't assume sizeof (long) >= sizeof (void *).
36499         * lib/memcmp.c: Include stdint.h.
36500         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
36501         srcp2 to 'const byte *'.
36502         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
36503         types to uintptr_t.
36504         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
36505         * modules/memcmp (Depends-on): Add stdint.
36506         Reported by Ozkan Sezer <sezeroz@gmail.com>.
36507
36508 2009-01-30  Eric Blake  <ebb9@byu.net>
36509
36510         fix more require-before-expand issues
36511         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
36512         expand, AC_PROG_AWK.
36513         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
36514
36515 2009-01-28  Eric Blake  <ebb9@byu.net>
36516
36517         version-etc: use consistent URL formatting
36518         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
36519         Improve formatting.  Use fputs for string without %.
36520
36521 2009-01-28  Jim Meyering  <meyering@redhat.com>
36522
36523         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
36524         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
36525         "underquoted definition of NAME" from autoconf-2.59.
36526
36527 2009-01-28  Bruno Haible  <bruno@clisp.org>
36528
36529         * doc/gnulib.texi: Add "Obsolete modules" to index.
36530
36531 2009-01-28  Jim Meyering  <meyering@redhat.com>
36532
36533         useless-if-before-free: recognize more variants
36534         * build-aux/useless-if-before-free: Also recognize e.g.,
36535         if (NULL != p) free (p);
36536
36537 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
36538
36539         test-getaddrinfo: skip (don't fail) this test when there's no network
36540         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
36541         on the presumption that it means you lack network access.
36542
36543 2009-01-26  Jim Meyering  <meyering@redhat.com>
36544
36545         fflush: avoid warnings on modern systems
36546         * lib/fflush.c (rpl_fflush): Move declarations of locals,
36547         pos and result, into scopes where they're used.
36548
36549 2009-01-26  Eric Blake  <ebb9@byu.net>
36550
36551         Silence warning reintroduced by recent extensions patch.
36552         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
36553         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
36554         autoconf.
36555
36556         Backport improved autoconf semantics of AC_DEFUN_ONCE.
36557         * m4/00gnulib.m4: New file.
36558         * gnulib-tool (func_get_filelist): Always use it.
36559         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
36560         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
36561
36562 2009-01-25  Bruno Haible  <bruno@clisp.org>
36563
36564         Make test-quotearg work on MacOS X and AIX.
36565         * tests/test-quotearg.sh: New file.
36566         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
36567         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
36568         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
36569         include <libintl.h>.
36570         (fake_locale): Remove variable.
36571         (gettext, dgettext, dcgettext): Remove functions.
36572         (main): Instead of setting a fake locale, set a real locale. Call
36573         textdomain and bindtextdomain.
36574         * modules/quotearg-tests (Files): Add the new files.
36575         (Depends-on): Add gettext, setenv, unsetenv.
36576         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
36577         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
36578         Augment TESTS_ENVIRONMENT.
36579
36580 2009-01-25  Bruno Haible  <bruno@clisp.org>
36581
36582         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
36583         fr_FR.ISO8859-1 locale on MacOS X.
36584         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
36585         ja_JP.eucJP locale on MacOS X.
36586         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
36587         zh_CN.GB18030 locale on MacOS X.
36588
36589 2009-01-25  Bruno Haible  <bruno@clisp.org>
36590
36591         Avoid link errors on MacOS X 10.3.
36592         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
36593         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
36594
36595 2009-01-25  Bruno Haible  <bruno@clisp.org>
36596
36597         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
36598         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
36599         * modules/pipe (Files): Remove m4/posix_spawn.m4.
36600         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
36601         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
36602         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
36603         posix_spawnattr_init, posix_spawnattr_setsigmask,
36604         posix_spawnattr_setflags, posix_spawnattr_destroy.
36605
36606         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
36607         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
36608         * modules/execute (Files): Remove m4/posix_spawn.m4.
36609         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
36610         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
36611         posix_spawnattr_init, posix_spawnattr_setsigmask,
36612         posix_spawnattr_setflags, posix_spawnattr_destroy.
36613
36614 2009-01-25  Bruno Haible  <bruno@clisp.org>
36615
36616         * lib/glthread/threadlib.c: Include <stdlib.h>.
36617
36618 2009-01-25  Bruno Haible  <bruno@clisp.org>
36619
36620         * lib/glthread/threadlib.c (dummy): New declaration.
36621
36622 2009-01-25  Bruno Haible  <bruno@clisp.org>
36623
36624         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
36625         multibyte characters also for the GB18030 encoding. Don't crash when
36626         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
36627
36628 2009-01-25  Bruno Haible  <bruno@clisp.org>
36629
36630         Avoid redefining 'struct random_data' on OSF/1 5.1.
36631         * lib/stdlib.in.h: Include <random.h> if it exists.
36632         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
36633         HAVE_RANDOM_H. Include <random.h> when testing whether
36634         'struct random_data' exists.
36635         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
36636
36637 2009-01-25  Bruno Haible  <bruno@clisp.org>
36638
36639         Don't install charset.alias on MacOS X >= 10.3.
36640         * lib/localcharset.c (DARWIN7): New macro.
36641         (get_charset_aliases): Hardcode the result for Darwin7.
36642         * modules/localcharset (install-exec-local): Don't install
36643         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
36644
36645 2009-01-25  Bruno Haible  <bruno@clisp.org>
36646
36647         Don't install charset.alias on mingw and Cygwin.
36648         * modules/localcharset (install-exec-local): Don't install
36649         charset.alias on mingw and Cygwin, if the file does not yet exist.
36650         The result for these platforms is hardcoded in localcharset.c.
36651
36652 2009-01-25  Bruno Haible  <bruno@clisp.org>
36653
36654         Make it possible again to use AC_GNU_SOURCE together with gnulib.
36655         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
36656         before requiring AC_USE_SYSTEM_EXTENSIONS.
36657
36658 2009-01-25  Jim Meyering  <meyering@redhat.com>
36659
36660         c-strtod: avoid warnings
36661         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
36662         "assignment discards qualifiers from pointer target type" warnings.
36663
36664 2009-01-24  Bruno Haible  <bruno@clisp.org>
36665
36666         Add support for non-UTF-8 locales on MacOS X.
36667         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
36668         canonical encodings. For Darwin 7 and newer, don't map traditional
36669         encodings to UTF-8.
36670         Reported by Vincent Lefevre <vincent@vinc17.org>
36671         at <http://savannah.gnu.org/bugs/?25235>.
36672
36673 2009-01-24  Bruno Haible  <bruno@clisp.org>
36674
36675         * doc/gnulib.texi (Obsolete modules): New section.
36676         Reported by Mike Frysinger <vapier@gentoo.org>.
36677
36678 2009-01-24  Bruno Haible  <bruno@clisp.org>
36679
36680         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
36681         (%.dvi): New rule.
36682
36683 2009-01-24  Bruno Haible  <bruno@clisp.org>
36684
36685         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
36686         Reported by Eric Blake.
36687
36688 2009-01-24  Bruno Haible  <bruno@clisp.org>
36689
36690         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
36691         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
36692         Reported by Gary V. Vaughan <gary@gnu.org>.
36693
36694 2009-01-24  Bruno Haible  <bruno@clisp.org>
36695
36696         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
36697
36698 2009-01-23  Bruno Haible  <bruno@clisp.org>
36699
36700         Make c-strtod, c-strtold usable in libraries.
36701         * lib/c-strtod.c: Include string.h instead of xalloc.h.
36702         (C_STRTOD): Call strdup instead of xstrdup.
36703         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
36704         * modules/c-strtold (Depends-on): Likewise.
36705         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
36706         * NEWS: Mention the change.
36707         Reported by Michael Gold <mgold@ncf.ca>.
36708
36709 2009-01-23  Jim Meyering  <meyering@redhat.com>
36710
36711         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
36712         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
36713         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
36714
36715 2009-01-23  Simon Josefsson  <simon@josefsson.org>
36716
36717         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
36718         GNU CoreUtils.
36719         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
36720         * modules/version-etc (Description): Update.
36721
36722 2009-01-22  Bruno Haible  <bruno@clisp.org>
36723
36724         Cache the C locale object.
36725         * lib/c-strtod.c (c_locale_cache): New variable.
36726         (c_locale): New function.
36727         (C_STRTOD): Use it, and don't call freelocale.
36728         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
36729         Suggested by Paolo Bonzini.
36730
36731 2009-01-21  Bruno Haible  <bruno@clisp.org>
36732
36733         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
36734         conditions other than overflow.
36735
36736 2009-01-21  Bruno Haible  <bruno@clisp.org>
36737
36738         * lib/c-strtod.c: Include errno.h.
36739         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
36740         value from STRTOD_L and STRTOD.
36741
36742 2009-01-21  Bruno Haible  <bruno@clisp.org>
36743         and Jim Meyering  <meyering@redhat.com>
36744
36745         nanosleep: skip configure test (fail it) for apple universal builds
36746         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
36747         universal builds, assume that nanosleep does not work.
36748         * modules/nanosleep (Depends-on): Add multiarch.
36749
36750         mktime: skip configure test (fail it) for apple universal builds
36751         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
36752         universal builds, assume that mktime does not work.
36753         * modules/mktime (Depends-on): Add multiarch.
36754
36755 2009-01-21  Eric Blake  <ebb9@byu.net>
36756
36757         multiarch: avoid expand-before-require warning
36758         * modules/multiarch (configure.ac): Require, rather than expand,
36759         gl_MULTIARCH.
36760         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
36761         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
36762         enforce that all clients require it.  Partial reversion of
36763         2008-12-29 patch.
36764
36765         error: avoid expand-before-require warning
36766         * modules/errno (configure.ac): Require, rather than expand,
36767         gl_HEADER_ERRNO_H.
36768         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
36769         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
36770         enforce that all clients require it.
36771
36772         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
36773         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
36774         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
36775         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
36776
36777 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
36778
36779         Revert:
36780         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
36781
36782         regex: do not depend on obsolete modules.
36783         * modules/regex: Remove memcmp and memmove.
36784
36785 2009-01-20  Bruno Haible  <bruno@clisp.org>
36786
36787         Make the 'link' module link on Windows NT 4.
36788         * lib/link.c (_WIN32_WINNT): Don't define.
36789         (CreateHardLinkFuncType): New type.
36790         (CreateHardLinkFunc, initialized): New variables.
36791         (initialize): New function.
36792         (link): Invoke CreateHardLink indirectly through the function pointer.
36793
36794 2009-01-20  Bruno Haible  <bruno@clisp.org>
36795
36796         Fix compilation failure on mingw.
36797         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
36798
36799 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
36800
36801         * doc/c-strtod.texi: Mention a couple of restrictions.
36802
36803 2009-01-20  Jim Meyering  <meyering@redhat.com>
36804
36805         gettimeofday: move more declarations out of functions
36806         * lib/gettimeofday.c: Move extern declarations of tzset and
36807         gmtime out of containing functions.  Prompted by Bruno Haible.
36808
36809 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
36810
36811         regex: do not depend on obsolete modules.
36812         * modules/regex: Remove memcmp and memmove.
36813
36814 2009-01-19  Bruno Haible  <bruno@clisp.org>
36815
36816         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
36817         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
36818         gl_BIGENDIAN, not AC_C_BIGENDIAN.
36819         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
36820         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
36821
36822 2009-01-19  Bruno Haible  <bruno@clisp.org>
36823
36824         * tests/test-link.c: Include <errno.h>.
36825         (main): Exit with code 77 when a hard link cannot be created due to
36826         the file system.
36827         * tests/test-link.sh: Skip test when a hard link cannot be created due
36828         to the file system.
36829         Suggested by Eric Blake.
36830
36831 2009-01-19  Martin Lambers  <marlam@marlam.de>
36832
36833         * modules/link-tests: New file.
36834         * tests/test-link.sh: New file.
36835         * tests/test-link.c: New file.
36836
36837 2009-01-19  Eric Blake  <ebb9@byu.net>
36838
36839         doc: mention another function added in cygwin 1.7.0
36840         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
36841         Another new function in cygwin 1.7.
36842
36843 2009-01-19  Bruno Haible  <bruno@clisp.org>
36844
36845         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
36846         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
36847         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
36848         gl_BIGENDIAN, not AC_C_BIGENDIAN.
36849         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
36850         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
36851         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
36852         * m4/md4.m4 (gl_MD4): Likewise.
36853         * m4/md5.m4 (gl_MD5): Likewise.
36854         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
36855         * m4/sha1.m4 (gl_SHA1): Likewise.
36856         * m4/sha256.m4 (gl_SHA256): Likewise.
36857         * m4/sha512.m4 (gl_SHA512): Likewise.
36858
36859 2009-01-19  Bruno Haible  <bruno@clisp.org>
36860
36861         * modules/uniname/uniname-tests (Depends-on): Add progname.
36862         * tests/uniname/test-uninames.c: Include progname.h.
36863         (main): Call set_program_name.
36864
36865         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
36866         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
36867         (main): Call set_program_name.
36868
36869         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
36870         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
36871         (main): Call set_program_name.
36872
36873         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
36874         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
36875         (main): Call set_program_name.
36876
36877         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
36878         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
36879         (main): Call set_program_name.
36880
36881         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
36882         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
36883         (main): Call set_program_name.
36884
36885         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
36886         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
36887         (main): Call set_program_name.
36888
36889         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
36890         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
36891         (main): Call set_program_name.
36892
36893         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
36894         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
36895         (main): Call set_program_name.
36896
36897 2009-01-19  Eric Blake  <ebb9@byu.net>
36898
36899         test-unistd: test previous patch
36900         * tests/test-unistd.c: Test *_FILENO macros.
36901
36902         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
36903         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36904         Guarantee a definition.
36905         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
36906         * modules/unistd-safer (Depends-on): Add dependency on unistd.
36907         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
36908         * lib/dup-safer.c (STDERR_FILENO): Likewise.
36909         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36910         Likewise.
36911         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
36912         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
36913         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36914         Likewise.
36915         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
36916         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
36917         (STDERR_FILENO): Likewise.
36918         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
36919         (STDERR_FILENO): Likewise.
36920         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
36921         (STDERR_FILENO): Likewise.
36922         Reported by Elbert Pol.
36923
36924 2009-01-19  Eric Blake  <ebb9@byu.net>
36925
36926         doc: mention more functions added in cygwin 1.7.0
36927         * doc/posix-functions/abort.texi (abort): Update wording related
36928         to cygwin.
36929         * doc/posix-functions/daylight.texi (daylight): Likewise.
36930         * doc/posix-functions/optarg.texi (optarg): Likewise.
36931         * doc/posix-functions/optarg.texi (opterr): Likewise.
36932         * doc/posix-functions/optarg.texi (optind): Likewise.
36933         * doc/posix-functions/optarg.texi (optopt): Likewise.
36934         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
36935         worked in 1.5.x, and was withdrawn in 1.7.
36936         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
36937         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
36938         cygwin versions.
36939         * doc/posix-functions/perror.texi (perror): Likewise.
36940         * doc/posix-functions/printf.texi (printf): Likewise.
36941         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
36942         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
36943         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
36944         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
36945         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
36946         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
36947         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
36948         Likewise.
36949         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
36950         Likewise.
36951         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
36952         this function.
36953         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
36954         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
36955         Likewise.
36956         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
36957         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
36958         * doc/posix-functions/confstr.texi (confstr): Likewise.
36959         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
36960         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
36961         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
36962         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
36963         * doc/posix-functions/fputws.texi (fputws): Likewise.
36964         * doc/posix-functions/fwide.texi (fwide): Likewise.
36965         * doc/posix-functions/getwc.texi (getwc): Likewise.
36966         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
36967         * doc/posix-functions/putwc.texi (putwc): Likewise.
36968         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
36969         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
36970         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
36971         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
36972         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
36973         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
36974         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
36975         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
36976         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
36977         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
36978         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
36979
36980 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
36981
36982         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
36983         * lib/ioctl.c: Include <sys/ioctl.h>.
36984
36985 2009-01-19  Simon Josefsson  <simon@josefsson.org>
36986
36987         * modules/getdate-tests (Depends-on): Add progname.
36988         * tests/test-getdate.c: Use progname module, to avoid link errors
36989         on non-glibc systems.
36990
36991 2009-01-18  Simon Josefsson  <simon@josefsson.org>
36992
36993         * modules/filenamecat-tests (Depends-on): Add progname.
36994         * modules/fstrcmp-tests (Depends-on): Likewise.
36995
36996         * tests/test-filenamecat.c: Use progname module, to avoid link
36997         errors on non-glibc systems.
36998         * tests/test-fstrcmp.c: Likewise.
36999
37000 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
37001
37002         gettimeofday: avoid warning: nested extern declaration of 'localtime'
37003         * lib/gettimeofday.c: Move extern declaration out of function.
37004
37005 2009-01-18  Bruno Haible  <bruno@clisp.org>
37006
37007         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
37008         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
37009         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
37010
37011 2009-01-18  Bruno Haible  <bruno@clisp.org>
37012
37013         * lib/strftime.c (MEMPCPY): Remove unused macro.
37014         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
37015
37016 2009-01-18  Martin Lambers  <marlam@marlam.de>
37017
37018         New module 'link'.
37019         * lib/unistd.in.h (link): New declaration.
37020         * lib/link.c: New file.
37021         * m4/link.m4: New file.
37022         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
37023         HAVE_LINK.
37024         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
37025         * modules/link: New file.
37026         * doc/posix-functions/link.texi: Mention the new module.
37027
37028 2009-01-18  Bruno Haible  <bruno@clisp.org>
37029
37030         * tests/test-avltree_list.c (main): Call set_program_name.
37031         * tests/test-avltree_oset.c (main): Likewise.
37032         * tests/test-obstack-printf.c: Include progname.h.
37033         (main): Call set_program_name.
37034         * tests/test-quotearg.c: Include progname.h.
37035         (main): Call set_program_name.
37036         * tests/test-xmemdup0.c: Include progname.h.
37037         (main): Call set_program_name.
37038
37039 2009-01-18  Bruno Haible  <bruno@clisp.org>
37040
37041         New module 'alphasort'.
37042         * lib/dirent.in.h (alphasort): New declaration.
37043         * lib/alphasort.c: New file, from glibc with modifications.
37044         * m4/alphasort.m4: New file.
37045         * modules/alphasort: New file.
37046         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
37047         HAVE_ALPHASORT.
37048         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
37049         HAVE_ALPHASORT.
37050         * doc/posix-functions/alphasort.texi: Mention the new module and the
37051         portability problems.
37052
37053 2009-01-18  Bruno Haible  <bruno@clisp.org>
37054
37055         New module 'scandir'.
37056         * lib/dirent.in.h (scandir): New declaration.
37057         * lib/scandir.c: New file, from glibc with modifications.
37058         * m4/scandir.m4: New file.
37059         * modules/scandir: New file.
37060         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
37061         HAVE_SCANDIR.
37062         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
37063         HAVE_SCANDIR.
37064         * doc/posix-functions/scandir.texi: Mention the new module and the
37065         portability problems.
37066
37067 2009-01-17  Bruno Haible  <bruno@clisp.org>
37068
37069         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
37070         Update documentation.
37071         (func_remove_suffix): Escape all dots in the suffix. Update
37072         documentation.
37073         (func_filter_filelist): Update documentation.
37074         Reported by Ralf Wildenhues.
37075
37076 2009-01-17  Bruno Haible  <bruno@clisp.org>
37077
37078         * modules/dprintf-posix-tests: New file.
37079         * tests/test-dprintf-posix.sh: New file.
37080         * tests/test-dprintf-posix.c: New file.
37081
37082         New modules 'dprintf', 'dprintf-posix'.
37083         * lib/stdio.in.h (dprintf): New declaration.
37084         * lib/dprintf.c: New file.
37085         * m4/dprintf.m4: New file.
37086         * m4/dprintf-posix.m4: New file.
37087         * modules/dprintf: New file.
37088         * modules/dprintf-posix: New file.
37089         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
37090         HAVE_DPRINTF, REPLACE_DPRINTF.
37091         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
37092         HAVE_DPRINTF, REPLACE_DPRINTF.
37093         * doc/posix-functions/dprintf.texi: Mention the new modules.
37094
37095 2009-01-17  Bruno Haible  <bruno@clisp.org>
37096
37097         * modules/vdprintf-posix-tests: New file.
37098         * tests/test-vdprintf-posix.sh: New file.
37099         * tests/test-vdprintf-posix.c: New file.
37100
37101         New modules 'vdprintf', 'vdprintf-posix'.
37102         * lib/stdio.in.h (vdprintf): New declaration.
37103         * lib/vdprintf.c: New file.
37104         * m4/vdprintf.m4: New file.
37105         * m4/vdprintf-posix.m4: New file.
37106         * modules/vdprintf: New file.
37107         * modules/vdprintf-posix: New file.
37108         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
37109         HAVE_VDPRINTF, REPLACE_VDPRINTF.
37110         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
37111         HAVE_VDPRINTF, REPLACE_VDPRINTF.
37112         * doc/posix-functions/vdprintf.texi: Mention the new modules.
37113
37114 2009-01-17  Bruno Haible  <bruno@clisp.org>
37115
37116         Fix replacement of fopen on mingw.
37117         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
37118         mingw.
37119
37120 2009-01-17  Bruno Haible  <bruno@clisp.org>
37121
37122         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
37123         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
37124
37125 2009-01-17  Bruno Haible  <bruno@clisp.org>
37126
37127         Avoid test-fflush2.sh failure on mingw.
37128         * tests/test-fflush2.c: Include binary-io.h.
37129         (main): Put standard input into binary mode.
37130         * modules/fflush-tests (Depends-on): Add binary-io.
37131
37132 2009-01-17  Bruno Haible  <bruno@clisp.org>
37133
37134         * lib/wchar.in.h: In another particular situation, include only the
37135         system's <wchar.h> file.
37136         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
37137         Reported by Albert Chin-A-Young <china@thewrittenword.com>
37138         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
37139
37140 2009-01-17  Bruno Haible  <bruno@clisp.org>
37141
37142         Support for stripping executables in --enable-relocatable.
37143         * build-aux/install-reloc: Expect one more argument, or an environment
37144         variable RELOC_STRIP_PROG. If set, strip the destination program and
37145         its wrapper.
37146         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
37147         RELOC_STRIP_PROG.
37148         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
37149         to set RELOCATABLE_STRIP.
37150         * NEWS: Mention the new Makefile requirement.
37151
37152 2009-01-17  Bruno Haible  <bruno@clisp.org>
37153
37154         * build-aux/install-reloc: Remove debugging information left over by
37155         C compiler on MacOS X.
37156
37157 2009-01-17  Bruno Haible  <bruno@clisp.org>
37158
37159         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
37160         * lib/progreloc.c (find_executable): Fix type of pointer passed to
37161         _NSGetExecutablePath.
37162
37163 2009-01-16  Jim Meyering  <meyering@redhat.com>
37164
37165         strerror: avoid warnings about discarding "const"
37166         * lib/strerror.c (rpl_strerror): Instead of returning a const
37167         string from each and every "case", use a variable, and add a single
37168         cast after the switch.
37169
37170 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
37171
37172         * lib/arpa_inet.in.h: Add extern "C" block for C++.
37173
37174 2009-01-16  Bruno Haible  <bruno@clisp.org>
37175
37176         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
37177         array initializer syntax that also works in C++ mode.
37178         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37179
37180 2009-01-16  Jim Meyering  <meyering@redhat.com>
37181
37182         poll: suppress a warning
37183         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
37184         to ignore "...unsigned expression < 0 is always false" warnings.
37185
37186 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
37187
37188         poll: remove declarations of unused variables
37189         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
37190         sockbuf and optlen.
37191
37192 2009-01-15  Bruno Haible  <bruno@clisp.org>
37193
37194         Make fflush-after-ungetc POSIX compliant on BSD systems.
37195         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
37196         (clear_ungetc_buffer): Implement also for other systems.
37197         (rpl_fflush): On glibc systems, invoke
37198         clear_ungetc_buffer_preserving_position. Otherwise, invoke
37199         clear_ungetc_buffer after fetching the stream's position, not before.
37200
37201 2009-01-15  Bruno Haible  <bruno@clisp.org>
37202
37203         Make fflush-after-ungetc POSIX compliant on glibc systems.
37204         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
37205         after ungetc.
37206         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
37207         (rpl_fflush): On glibc systems, simply call the system's fflush
37208         function after clearing the ungetc buffer.
37209         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
37210         Instead, lseek only to the end of file, then use the system's fseeko
37211         for the rest. On glibc systems, reset the EOF indicator bit.
37212
37213 2009-01-15  Jim Meyering  <meyering@redhat.com>
37214
37215         openmp.m4: revert quote-adding change, for portability to older autoconf
37216         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
37217         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
37218         Simon Josefsson noticed the problem when using autoconf-2.61.
37219
37220 2009-01-15  Bruno Haible  <bruno@clisp.org>
37221
37222         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
37223         * tests/test-fflush2.c (ASSERT): Always fail.
37224         (main): Add two tests for fflush() after ungetc(), taking into account
37225         the Austin Group's clarification.
37226         Suggested by Eric Blake.
37227
37228 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
37229
37230         mktime.m4: remove K&R-style function prototypes
37231         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
37232         for the Sun C++ compiler.
37233
37234 2009-01-14  Bruno Haible  <bruno@clisp.org>
37235
37236         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
37237         while including <wchar.h>.
37238         * lib/wchar.in.h: In two particular situations on HP-UX, include only
37239         the system's <wchar.h> file.
37240         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37241
37242 2009-01-14  Bruno Haible  <bruno@clisp.org>
37243
37244         * m4/csharp.m4: Don't mention gettext on the serial number line.
37245         * m4/csharpexec.m4: Likewise.
37246         * m4/eaccess.m4: Likewise.
37247         * m4/javaexec.m4: Likewise.
37248         * m4/sig_atomic_t.m4: Likewise.
37249         * m4/tmpdir.m4: Likewise.
37250         * m4/intldir.m4: Bump gettext version.
37251         * m4/lib-ld.m4: Likewise.
37252
37253 2009-01-14  Bruno Haible  <bruno@clisp.org>
37254
37255         * lib/progname.c (set_program_name): Add more comments.
37256         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
37257
37258 2009-01-14  Simon Josefsson  <simon@josefsson.org>
37259
37260         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
37261         were sys/stat.h does not define it.
37262
37263 2009-01-14  Jim Meyering  <meyering@redhat.com>
37264
37265         many *.m4 files: improve m4 quoting
37266         99% of this change was performed by running the following commands:
37267         git ls-files | grep '\.m4$' | xargs perl -pi \
37268           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
37269           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
37270           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
37271           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
37272         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
37273         The remainder were to add Copyright dates, increment serial numbers,
37274         undo some changes in comments, exclude m4/intl.m4, and add quotes
37275         around the "1" in ",1" where the unusual spacing prohibited the
37276         above regexps from doing the job.  For more details, see
37277         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
37278         * m4/acl.m4: Modified.
37279         * m4/afs.m4: Likewise.
37280         * m4/alloca.m4: Likewise.
37281         * m4/argp.m4: Likewise.
37282         * m4/argz.m4: Likewise.
37283         * m4/atexit.m4: Likewise.
37284         * m4/bison-i18n.m4: Likewise.
37285         * m4/bison.m4: Likewise.
37286         * m4/byteswap.m4: Likewise.
37287         * m4/c-stack.m4: Likewise.
37288         * m4/c-strtod.m4: Likewise.
37289         * m4/calloc.m4: Likewise.
37290         * m4/canonicalize-lgpl.m4: Likewise.
37291         * m4/chown.m4: Likewise.
37292         * m4/clock_time.m4: Likewise.
37293         * m4/codeset.m4: Likewise.
37294         * m4/copy-file.m4: Likewise.
37295         * m4/csharp.m4: Likewise.
37296         * m4/csharpcomp.m4: Likewise.
37297         * m4/csharpexec.m4: Likewise.
37298         * m4/d-ino.m4: Likewise.
37299         * m4/d-type.m4: Likewise.
37300         * m4/dirfd.m4: Likewise.
37301         * m4/double-slash-root.m4: Likewise.
37302         * m4/eaccess.m4: Likewise.
37303         * m4/eealloc.m4: Likewise.
37304         * m4/environ.m4: Likewise.
37305         * m4/errno_h.m4: Likewise.
37306         * m4/euidaccess.m4: Likewise.
37307         * m4/execute.m4: Likewise.
37308         * m4/fatal-signal.m4: Likewise.
37309         * m4/fchdir.m4: Likewise.
37310         * m4/fcntl_h.m4: Likewise.
37311         * m4/fileblocks.m4: Likewise.
37312         * m4/filenamecat.m4: Likewise.
37313         * m4/findprog.m4: Likewise.
37314         * m4/flexmember.m4: Likewise.
37315         * m4/fnmatch.m4: Likewise.
37316         * m4/fopen.m4: Likewise.
37317         * m4/fpending.m4: Likewise.
37318         * m4/fprintf-posix.m4: Likewise.
37319         * m4/free.m4: Likewise.
37320         * m4/frexp.m4: Likewise.
37321         * m4/frexpl.m4: Likewise.
37322         * m4/fsusage.m4: Likewise.
37323         * m4/ftruncate.m4: Likewise.
37324         * m4/gc-camellia.m4: Likewise.
37325         * m4/gc-random.m4: Likewise.
37326         * m4/gc.m4: Likewise.
37327         * m4/getaddrinfo.m4: Likewise.
37328         * m4/getcwd-abort-bug.m4: Likewise.
37329         * m4/getcwd-path-max.m4: Likewise.
37330         * m4/getdate.m4: Likewise.
37331         * m4/getdomainname.m4: Likewise.
37332         * m4/getgroups.m4: Likewise.
37333         * m4/gethostname.m4: Likewise.
37334         * m4/gethrxtime.m4: Likewise.
37335         * m4/getline.m4: Likewise.
37336         * m4/getloadavg.m4: Likewise.
37337         * m4/getndelim2.m4: Likewise.
37338         * m4/getpass.m4: Likewise.
37339         * m4/gettext.m4: Likewise.
37340         * m4/gettime.m4: Likewise.
37341         * m4/gettimeofday.m4: Likewise.
37342         * m4/gnulib-common.m4: Likewise.
37343         * m4/group-member.m4: Likewise.
37344         * m4/host-os.m4: Likewise.
37345         * m4/iconv.m4: Likewise.
37346         * m4/iconv_open.m4: Likewise.
37347         * m4/inet_ntop.m4: Likewise.
37348         * m4/inet_pton.m4: Likewise.
37349         * m4/inline.m4: Likewise.
37350         * m4/intldir.m4: Likewise.
37351         * m4/intlmacosx.m4: Likewise.
37352         * m4/intmax.m4: Likewise.
37353         * m4/intmax_t.m4: Likewise.
37354         * m4/inttypes.m4: Likewise.
37355         * m4/inttypes_h.m4: Likewise.
37356         * m4/inttypes-pri.m4: Likewise.
37357         * m4/isapipe.m4: Likewise.
37358         * m4/isnand.m4: Likewise.
37359         * m4/isnanf.m4: Likewise.
37360         * m4/isnanl.m4: Likewise.
37361         * m4/javacomp.m4: Likewise.
37362         * m4/javaexec.m4: Likewise.
37363         * m4/jm-winsz1.m4: Likewise.
37364         * m4/jm-winsz2.m4: Likewise.
37365         * m4/lchown.m4: Likewise.
37366         * m4/lcmessage.m4: Likewise.
37367         * m4/ldexpl.m4: Likewise.
37368         * m4/lib-ld.m4: Likewise.
37369         * m4/lib-link.m4: Likewise.
37370         * m4/libsigsegv.m4: Likewise.
37371         * m4/link-follow.m4: Likewise.
37372         * m4/localcharset.m4: Likewise.
37373         * m4/locale-fr.m4: Likewise.
37374         * m4/locale-ja.m4: Likewise.
37375         * m4/locale-tr.m4: Likewise.
37376         * m4/locale-zh.m4: Likewise.
37377         * m4/lock.m4: Likewise.
37378         * m4/longlong.m4: Likewise.
37379         * m4/ls-mntd-fs.m4: Likewise.
37380         * m4/lstat.m4: Likewise.
37381         * m4/malloc.m4: Likewise.
37382         * m4/mathl.m4: Likewise.
37383         * m4/mbrtowc.m4: Likewise.
37384         * m4/mbstate_t.m4: Likewise.
37385         * m4/mbswidth.m4: Likewise.
37386         * m4/memchr.m4: Likewise.
37387         * m4/memcmp.m4: Likewise.
37388         * m4/memcpy.m4: Likewise.
37389         * m4/memmem.m4: Likewise.
37390         * m4/memmove.m4: Likewise.
37391         * m4/mempcpy.m4: Likewise.
37392         * m4/memrchr.m4: Likewise.
37393         * m4/memset.m4: Likewise.
37394         * m4/minmax.m4: Likewise.
37395         * m4/mkdir-slash.m4: Likewise.
37396         * m4/mkdtemp.m4: Likewise.
37397         * m4/mktime.m4: Likewise.
37398         * m4/mmap-anon.m4: Likewise.
37399         * m4/mountlist.m4: Likewise.
37400         * m4/nanosleep.m4: Likewise.
37401         * m4/nls.m4: Likewise.
37402         * m4/nocrash.m4: Likewise.
37403         * m4/open.m4: Likewise.
37404         * m4/openat.m4: Likewise.
37405         * m4/openmp.m4: Likewise.
37406         * m4/pathmax.m4: Likewise.
37407         * m4/perl.m4: Likewise.
37408         * m4/physmem.m4: Likewise.
37409         * m4/pipe.m4: Likewise.
37410         * m4/po.m4: Likewise.
37411         * m4/poll.m4: Likewise.
37412         * m4/posixtm.m4: Likewise.
37413         * m4/posixver.m4: Likewise.
37414         * m4/printf-frexp.m4: Likewise.
37415         * m4/printf-frexpl.m4: Likewise.
37416         * m4/printf-posix.m4: Likewise.
37417         * m4/printf-posix-rpl.m4: Likewise.
37418         * m4/printf.m4: Likewise.
37419         * m4/progtest.m4: Likewise.
37420         * m4/putenv.m4: Likewise.
37421         * m4/readline.m4: Likewise.
37422         * m4/readlink.m4: Likewise.
37423         * m4/readutmp.m4: Likewise.
37424         * m4/realloc.m4: Likewise.
37425         * m4/regex.m4: Likewise.
37426         * m4/relocatable.m4: Likewise.
37427         * m4/relocatable-lib.m4: Likewise.
37428         * m4/rename-dest-slash.m4: Likewise.
37429         * m4/rename.m4: Likewise.
37430         * m4/rmdir-errno.m4: Likewise.
37431         * m4/rmdir.m4: Likewise.
37432         * m4/roundf.m4: Likewise.
37433         * m4/roundl.m4: Likewise.
37434         * m4/rpmatch.m4: Likewise.
37435         * m4/save-cwd.m4: Likewise.
37436         * m4/selinux-selinux-h.m4: Likewise.
37437         * m4/setenv.m4: Likewise.
37438         * m4/settime.m4: Likewise.
37439         * m4/sig2str.m4: Likewise.
37440         * m4/sig_atomic_t.m4: Likewise.
37441         * m4/signalblocking.m4: Likewise.
37442         * m4/signbit.m4: Likewise.
37443         * m4/sigpipe.m4: Likewise.
37444         * m4/sockets.m4: Likewise.
37445         * m4/sockpfaf.m4: Likewise.
37446         * m4/st_dm_mode.m4: Likewise.
37447         * m4/stat-time.m4: Likewise.
37448         * m4/stdbool.m4: Likewise.
37449         * m4/stdint.m4: Likewise.
37450         * m4/stdint_h.m4: Likewise.
37451         * m4/stpcpy.m4: Likewise.
37452         * m4/stpncpy.m4: Likewise.
37453         * m4/strcase.m4: Likewise.
37454         * m4/strchrnul.m4: Likewise.
37455         * m4/strcspn.m4: Likewise.
37456         * m4/strdup.m4: Likewise.
37457         * m4/strftime.m4: Likewise.
37458         * m4/strndup.m4: Likewise.
37459         * m4/strnlen.m4: Likewise.
37460         * m4/strpbrk.m4: Likewise.
37461         * m4/strptime.m4: Likewise.
37462         * m4/strsep.m4: Likewise.
37463         * m4/strtod.m4: Likewise.
37464         * m4/strtoimax.m4: Likewise.
37465         * m4/strtok_r.m4: Likewise.
37466         * m4/strtol.m4: Likewise.
37467         * m4/strtoll.m4: Likewise.
37468         * m4/strtoul.m4: Likewise.
37469         * m4/strtoull.m4: Likewise.
37470         * m4/strtoumax.m4: Likewise.
37471         * m4/strverscmp.m4: Likewise.
37472         * m4/threadlib.m4: Likewise.
37473         * m4/timegm.m4: Likewise.
37474         * m4/tm_gmtoff.m4: Likewise.
37475         * m4/tmpdir.m4: Likewise.
37476         * m4/tmpfile.m4: Likewise.
37477         * m4/tzset.m4: Likewise.
37478         * m4/uintmax_t.m4: Likewise.
37479         * m4/unlinkdir.m4: Likewise.
37480         * m4/unlocked-io.m4: Likewise.
37481         * m4/uptime.m4: Likewise.
37482         * m4/userspec.m4: Likewise.
37483         * m4/utimbuf.m4: Likewise.
37484         * m4/utime.m4: Likewise.
37485         * m4/utimes-null.m4: Likewise.
37486         * m4/utimes.m4: Likewise.
37487         * m4/vararrays.m4: Likewise.
37488         * m4/vasnprintf.m4: Likewise.
37489         * m4/vfprintf-posix.m4: Likewise.
37490         * m4/vprintf-posix.m4: Likewise.
37491         * m4/wait-process.m4: Likewise.
37492         * m4/wchar_t.m4: Likewise.
37493         * m4/wint_t.m4: Likewise.
37494         * m4/write-any-file.m4: Likewise.
37495         * m4/yield.m4: Likewise.
37496
37497 2009-01-13  Bruno Haible  <bruno@clisp.org>
37498
37499         Avoid test-copy-file.sh failures when ACL support insufficient.
37500         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
37501         TESTS_ENVIRONMENT.
37502         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
37503         Reported by Jim Meyering.
37504
37505 2009-01-13  Bruno Haible  <bruno@clisp.org>
37506
37507         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
37508         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
37509         * modules/unistdio/u8-printf-parse (Files): Likewise.
37510         * modules/unistdio/u32-printf-parse (Files): Likewise.
37511         * modules/unistdio/ulc-printf-parse (Files): Likewise.
37512
37513 2009-01-13  Simon Josefsson  <simon@josefsson.org>
37514
37515         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
37516         and m4/inttypes_h.m4 too.
37517
37518 2009-01-12  Eric Blake  <ebb9@byu.net>
37519
37520         tests: IRIX 6.2 cc can't compile -0.0 into .data
37521         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
37522         rather than at compile-time.
37523         * tests/test-floorl.c (minus_zero): Likewise.
37524         * tests/test-frexpl.c (minus_zero): Likewise.
37525         * tests/test-isnan.c (minus_zerol): Likewise.
37526         * tests/test-isnanl.h (minus_zero): Likewise.
37527         * tests/test-ldexpl.c (minus_zero): Likewise.
37528         * tests/test-roundl.c (minus_zero): Likewise.
37529         * tests/test-signbit.c (minus_zerol): Likewise.
37530         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
37531         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
37532         * tests/test-truncl.c (minus_zero): Likewise.
37533         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
37534         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
37535         Reported by Tom G. Christensen and Nelson H. F. Beebe.
37536
37537 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
37538
37539         regex: fix glibc bug 9697
37540         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
37541         handling.
37542
37543 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
37544
37545         regex: fix glibc bug 697
37546         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
37547         being NULL also if there are no backreferences.
37548
37549 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
37550
37551         regex: merge glibc changes
37552         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
37553         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
37554         re_string_skip_chars, re_string_reconstruct): Likewise.
37555         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
37556
37557 2009-01-07  Jim Meyering  <meyering@redhat.com>
37558
37559         poll: filter through cppi
37560         * lib/poll.c: Indent cpp directives to reflect nesting.
37561
37562 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
37563
37564         poll: don't return uninitialized
37565         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
37566
37567 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
37568
37569         avoid compile failure on AIX 6.1
37570         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
37571         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
37572
37573 2009-01-04  Jim Meyering  <meyering@redhat.com>
37574
37575         remove duplicate inclusion of <stdio.h>
37576         * tests/test-fprintf-posix.c: Likewise.
37577         * tests/test-printf-posix.c: Likewise.
37578         * tests/test-snprintf-posix.c: Likewise.
37579         * tests/test-sprintf-posix.c: Likewise.
37580         * tests/test-vasprintf-posix.c: Likewise.
37581         * tests/test-vfprintf-posix.c: Likewise.
37582         * tests/test-vprintf-posix.c: Likewise.
37583         * tests/test-vsnprintf-posix.c: Likewise.
37584         * tests/test-vsprintf-posix.c: Likewise.
37585
37586 2009-01-03  Jim Meyering  <meyering@redhat.com>
37587
37588         gnulib-tool: fix sed-based filtering
37589         * gnulib-tool (func_filter_filelist): Remove extra backslash
37590         in sed_fff_filter definition.
37591
37592 2009-01-02  Jim Meyering  <meyering@redhat.com>
37593
37594         strftime: avoid compilation failure on Solaris 2.6
37595         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
37596         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
37597         Don't #define mbrlen or mbsinit, since now they're guaranteed to
37598         be available.  Reported by Tom G. Christensen.  Details in
37599         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
37600
37601 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37602             Bruno Haible  <bruno@clisp.org>
37603
37604         Speed up gnulib-tool by doing more string processing through shell
37605         built-ins.
37606         * gnulib-tool (fast_func_append): New variable.
37607         (func_remove_prefix, func_remove_suffix): New functions.
37608         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
37609         (func_filter_filelist): New function.
37610         (func_get_dependencies): Use func_remove_suffix instead of sed.
37611         (func_get_automake_snippet): Use func_filter_filelist instead of a
37612         subshell and sed invocation.
37613
37614 2009-01-01  Bruno Haible  <bruno@clisp.org>
37615
37616         Fix a security bug.
37617         * gnulib-tool (func_import, import, update): Don't allow the characters
37618         '"', '$', '`', '\' in macro arguments that become part of commands that
37619         are evaluated.
37620
37621 2009-01-01  Bruno Haible  <bruno@clisp.org>
37622
37623         * gnulib-tool (func_reset_sigpipe): Add more comments.
37624
37625 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37626
37627         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
37628         func_emit_tests_Makefile_am, func_import): Abort loops early if we
37629         already know the answer.
37630
37631 2009-01-01  Jim Meyering  <meyering@redhat.com>
37632
37633         * lib/version-etc.c (version_etc_va): Update copyright year.
37634
37635 2008-12-30  Bruno Haible  <bruno@clisp.org>
37636
37637         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
37638         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
37639         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
37640
37641 2008-12-29  Eric Blake  <ebb9@byu.net>
37642
37643         multiarch: avoid autoconf AC_REQUIRE bug
37644         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
37645         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
37646         2.63 and older.
37647         Reported by Bruno Haible, and analyzed in
37648         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
37649
37650 2008-12-29  Bruno Haible  <bruno@clisp.org>
37651
37652         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
37653         files in subdirectories correctly.
37654         Reported by Ralf Wildenhues.
37655
37656 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37657
37658         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
37659         rather than 'join FILE -', for Solaris join.
37660
37661 2008-12-29  Bruno Haible  <bruno@clisp.org>
37662
37663         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
37664         quoting.
37665         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
37666         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
37667         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
37668         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
37669         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
37670         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
37671         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
37672         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
37673         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
37674         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
37675         * m4/nls.m4 (AM_NLS): Likewise.
37676         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
37677         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
37678         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
37679         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
37680         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
37681         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
37682         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
37683         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
37684         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
37685         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
37686         * m4/xsize.m4 (gl_XSIZE): Likewise.
37687         Suggested by Jim Meyering.
37688
37689 2008-11-17  Bruce Korb  <bkorb@gnu.org>
37690
37691         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
37692         * lib/parse-duration.c: use a switch instead of cascading if's.
37693
37694 2008-12-29  Eric Blake  <ebb9@byu.net>
37695
37696         wchar.h: supply WEOF on Irix 5.3
37697         * lib/wchar.in.h (wint_t): Also supply WEOF.
37698         * lib/wctype.in.h (wint_t): Likewise.
37699         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
37700         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
37701         Reported by Tom G. Christensen.
37702
37703 2008-12-26  Bruno Haible  <bruno@clisp.org>
37704
37705         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
37706         i486, i586, i686.
37707
37708 2008-12-26  Bruno Haible  <bruno@clisp.org>
37709
37710         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
37711
37712 2008-12-26  Bruno Haible  <bruno@clisp.org>
37713
37714         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
37715         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
37716         not __STDC_CONSTANT_MACROS.
37717         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
37718
37719 2008-12-25  Bruno Haible  <bruno@clisp.org>
37720
37721         Add support for universal builds to vasnprintf.
37722         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
37723         universal builds, guess no.
37724         * modules/vasnprintf-posix (Depends-on): Add multiarch.
37725         * modules/vasprintf-posix (Depends-on): Likewise.
37726         * modules/fprintf-posix (Depends-on): Likewise.
37727         * modules/vfprintf-posix (Depends-on): Likewise.
37728         * modules/snprintf-posix (Depends-on): Likewise.
37729         * modules/vsnprintf-posix (Depends-on): Likewise.
37730         * modules/sprintf-posix (Depends-on): Likewise.
37731         * modules/vsprintf-posix (Depends-on): Likewise.
37732         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
37733         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37734         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37735         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37736         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37737         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37738         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37739
37740         Add support for universal builds to <inttypes.h>.
37741         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
37742         _SCNu64_PREFIX): In Apple
37743         universal builds, define directly, using _LP64.
37744         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
37745         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
37746         * modules/inttypes (Depends-on): Add multiarch.
37747         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
37748
37749         Add support for universal builds to <stdint.h>.
37750         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
37751         universal builds, define directly, using _LP64.
37752         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
37753         Apple universal builds, don't test for the size and suffix of ptrdiff_t
37754         and size_t.
37755         * modules/stdint (Depends-on): Add multiarch.
37756         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
37757
37758         New module 'multiarch'.
37759         * modules/multiarch: New file.
37760         * m4/multiarch.m4: New file.
37761
37762 2008-12-25  Bruno Haible  <bruno@clisp.org>
37763
37764         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
37765
37766 2008-12-25  Bruno Haible  <bruno@clisp.org>
37767
37768         * modules/btowc (License): Relicense under LGPLv2+.
37769         * modules/mbsinit (License): Likewise.
37770         * modules/mbrtowc (License): Likewise.
37771         * modules/wcrtomb (License): Likewise.
37772         * modules/streq (License): Likewise.
37773         Reported by David Lutterkort <lutter@redhat.com>.
37774
37775 2008-12-23  Bruno Haible  <bruno@clisp.org>
37776
37777         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
37778
37779 2008-12-23  Bruno Haible  <bruno@clisp.org>
37780
37781         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
37782         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
37783         GETADDRINFO_LIB, not in LIBS.
37784         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
37785         * modules/canon-host (Link): Likewise.
37786         * NEWS: Mention the change.
37787         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
37788         GETADDRINFO_LIB.
37789
37790 2008-12-22  Bruno Haible  <bruno@clisp.org>
37791
37792         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
37793         * doc/posix-functions/iswalpha_l.texi: Likewise.
37794         * doc/posix-functions/iswblank_l.texi: Likewise.
37795         * doc/posix-functions/iswcntrl_l.texi: Likewise.
37796         * doc/posix-functions/iswctype_l.texi: Likewise.
37797         * doc/posix-functions/iswdigit_l.texi: Likewise.
37798         * doc/posix-functions/iswgraph_l.texi: Likewise.
37799         * doc/posix-functions/iswlower_l.texi: Likewise.
37800         * doc/posix-functions/iswprint_l.texi: Likewise.
37801         * doc/posix-functions/iswpunct_l.texi: Likewise.
37802         * doc/posix-functions/iswspace_l.texi: Likewise.
37803         * doc/posix-functions/iswupper_l.texi: Likewise.
37804         * doc/posix-functions/iswxdigit_l.texi: Likewise.
37805         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
37806         * doc/posix-functions/open_wmemstream.texi: Likewise.
37807         * doc/posix-functions/swscanf.texi: Likewise.
37808         * doc/posix-functions/towctrans_l.texi: Likewise.
37809         * doc/posix-functions/towlower.texi: Likewise.
37810         * doc/posix-functions/towlower_l.texi: Likewise.
37811         * doc/posix-functions/towupper.texi: Likewise.
37812         * doc/posix-functions/towupper_l.texi: Likewise.
37813         * doc/posix-functions/vfwprintf.texi: Likewise.
37814         * doc/posix-functions/vfwscanf.texi: Likewise.
37815         * doc/posix-functions/vswscanf.texi: Likewise.
37816         * doc/posix-functions/vwprintf.texi: Likewise.
37817         * doc/posix-functions/vwscanf.texi: Likewise.
37818         * doc/posix-functions/wcpcpy.texi: Likewise.
37819         * doc/posix-functions/wcpncpy.texi: Likewise.
37820         * doc/posix-functions/wcscasecmp.texi: Likewise.
37821         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
37822         * doc/posix-functions/wcscoll_l.texi: Likewise.
37823         * doc/posix-functions/wcsdup.texi: Likewise.
37824         * doc/posix-functions/wcsncasecmp.texi: Likewise.
37825         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
37826         * doc/posix-functions/wcsnlen.texi: Likewise.
37827         * doc/posix-functions/wcsnrtombs.texi: Likewise.
37828         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
37829         * doc/posix-functions/wctrans_l.texi: Likewise.
37830         * doc/posix-functions/wctype_l.texi: Likewise.
37831         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
37832         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
37833         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
37834         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
37835         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
37836         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
37837         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
37838         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
37839         * doc/glibc-functions/wcschrnul.texi: Likewise.
37840         * doc/glibc-functions/wcsftime_l.texi: Likewise.
37841         * doc/glibc-functions/wcstod_l.texi: Likewise.
37842         * doc/glibc-functions/wcstof_l.texi: Likewise.
37843         * doc/glibc-functions/wcstol_l.texi: Likewise.
37844         * doc/glibc-functions/wcstold_l.texi: Likewise.
37845         * doc/glibc-functions/wcstoll_l.texi: Likewise.
37846         * doc/glibc-functions/wcstoq.texi: Likewise.
37847         * doc/glibc-functions/wcstoul_l.texi: Likewise.
37848         * doc/glibc-functions/wcstoull_l.texi: Likewise.
37849         * doc/glibc-functions/wcstouq.texi: Likewise.
37850         * doc/glibc-functions/wmempcpy.texi: Likewise.
37851
37852 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
37853             Eric Blake  <ebb9@byu.net>
37854             Paolo Bonzini  <bonzini@gnu.org>
37855             Bruno Haible  <bruno@clisp.org>
37856
37857         Make c-stack work on Haiku.
37858         * lib/c-stack.c (SA_ONSTACK): Define fallback.
37859         (c_stack_action): Use SA_ONSTACK flag.
37860
37861 2008-12-22  Bruno Haible  <bruno@clisp.org>
37862
37863         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
37864
37865 2008-12-22  Bruno Haible  <bruno@clisp.org>
37866
37867         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
37868         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
37869         being overridden.
37870         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
37871         New macros.
37872         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
37873         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
37874         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
37875         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
37876
37877 2008-12-22  Bruno Haible  <bruno@clisp.org>
37878
37879         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
37880         from test code.
37881
37882 2008-12-22  Eric Blake  <ebb9@byu.net>
37883
37884         Avoid gcc warnings on cygwin.
37885         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
37886         Avoid unused variable.
37887         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
37888         Likewise.
37889
37890 2008-12-22  Bruno Haible  <bruno@clisp.org>
37891
37892         Remove HAVE_MBRTOWC conditionals.
37893         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
37894         (mbscasecmp): Assume mbrtowc function.
37895         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
37896         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
37897         * lib/mbschr.c: Include mbuiter.h unconditionally.
37898         (mbschr): Assume mbrtowc function.
37899         * lib/mbscspn.c: Include mbuiter.h unconditionally.
37900         (mbscspn): Assume mbrtowc function.
37901         * lib/mbslen.c: Include mbuiter.h unconditionally.
37902         (mbslen): Assume mbrtowc function.
37903         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
37904         (mbsncasecmp): Assume mbrtowc function.
37905         * lib/mbsnlen.c: Include mbiter.h unconditionally.
37906         (mbsnlen): Assume mbrtowc function.
37907         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
37908         (mbspbrk): Assume mbrtowc function.
37909         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
37910         (mbspcasecmp): Assume mbrtowc function.
37911         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
37912         (mbsrchr): Assume mbrtowc function.
37913         * lib/mbssep.c: Include mbuiter.h unconditionally.
37914         (mbssep): Assume mbrtowc function.
37915         * lib/mbsspn.c: Include mbuiter.h unconditionally.
37916         (mbsspn): Assume mbrtowc function.
37917         * lib/mbsstr.c: Include mbuiter.h unconditionally.
37918         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
37919         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
37920         (mbstok_r): Assume mbrtowc function.
37921         * lib/propername.c: Include mbuiter.h unconditionally.
37922         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
37923         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
37924         (trim2): Assume mbrtowc function.
37925         * lib/mbswidth.c (mbsinit): Remove fallback definition.
37926         (mbsnwidth): Assume mbrtowc function.
37927         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
37928         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
37929         fallback definitions.
37930         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
37931
37932 2008-12-22  Bruno Haible  <bruno@clisp.org>
37933
37934         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
37935
37936 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
37937
37938         * modules/regex: Request emulations for the mb*/wc* functions we need.
37939         * m4/regex.m4: Don't look for those functions here.
37940         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
37941
37942 2008-12-22  Bruno Haible  <bruno@clisp.org>
37943
37944         * modules/fnmatch (Depends-on): Remove duplicated dependency.
37945
37946 2008-12-21  Bruno Haible  <bruno@clisp.org>
37947
37948         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
37949         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
37950         (Include): Remove conditionalization.
37951         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
37952         (Include): Remove conditionalization.
37953         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
37954         (Include): Remove conditionalization.
37955         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
37956         * m4/mbfile.m4 (gl_MBFILE): Likewise.
37957         * NEWS: Mention the change.
37958         Reported by Alan Hourihane <alanh@fairlite.co.uk>
37959         via Sergey Poznyakoff <gray@gnu.org.ua>.
37960
37961 2008-12-21  Bruno Haible  <bruno@clisp.org>
37962
37963         * MODULES.html.sh (Extended multibyte and wide character utilities
37964         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
37965         wcrtomb, wcsrtombs.
37966         (Support for systems lacking POSIX:2008): Add accept, bind, close,
37967         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
37968         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
37969         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
37970
37971 2008-12-21  Bruno Haible  <bruno@clisp.org>
37972
37973         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
37974
37975 2008-12-21  Bruno Haible  <bruno@clisp.org>
37976
37977         * modules/wcsnrtombs-tests: New file.
37978         * tests/test-wcsnrtombs1.sh: New file.
37979         * tests/test-wcsnrtombs2.sh: New file.
37980         * tests/test-wcsnrtombs3.sh: New file.
37981         * tests/test-wcsnrtombs4.sh: New file.
37982         * tests/test-wcsnrtombs.c: New file.
37983
37984         New module 'wcsnrtombs'.
37985         * lib/wchar.in.h (wcsnrtombs): New declaration.
37986         * lib/wcsnrtombs.c: New file.
37987         * lib/wcsrtombs-state.c: New file.
37988         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
37989         (internal_state): Remove variable.
37990         * m4/wcsnrtombs.m4: New file.
37991         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
37992         compilation units.
37993         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
37994         HAVE_WCSNRTOMBS.
37995         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
37996         HAVE_WCSNRTOMBS.
37997         * modules/wcsnrtombs: New file.
37998         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
37999         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
38000
38001 2008-12-21  Bruno Haible  <bruno@clisp.org>
38002
38003         * modules/wcsrtombs-tests: New file.
38004         * tests/test-wcsrtombs1.sh: New file.
38005         * tests/test-wcsrtombs2.sh: New file.
38006         * tests/test-wcsrtombs3.sh: New file.
38007         * tests/test-wcsrtombs4.sh: New file.
38008         * tests/test-wcsrtombs.c: New file.
38009
38010         New module 'wcsrtombs'.
38011         * lib/wchar.in.h (wcsrtombs): New declaration.
38012         * lib/wcsrtombs.c: New file.
38013         * m4/wcsrtombs.m4: New file.
38014         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
38015         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
38016         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
38017         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
38018         * modules/wcsrtombs: New file.
38019         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
38020         bugs.
38021
38022 2008-12-21  Bruno Haible  <bruno@clisp.org>
38023
38024         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
38025         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
38026         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
38027         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
38028         if not correct.
38029         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
38030         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
38031         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
38032         m4/locale-zh.m4, m4/codeset.m4.
38033         * doc/posix-functions/wcrtomb.texi: Document the bug.
38034
38035 2008-12-21  Bruno Haible  <bruno@clisp.org>
38036
38037         Work around a btowc() bug on IRIX 6.5.
38038         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
38039         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
38040         REPLACE_WTOBC if not.
38041         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
38042         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
38043         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
38044
38045 2008-12-21  Bruno Haible  <bruno@clisp.org>
38046
38047         * modules/wcrtomb-tests: New file.
38048         * tests/test-wcrtomb.sh: New file.
38049         * tests/test-wcrtomb.c: New file.
38050
38051         New module 'wcrtomb'.
38052         * lib/wchar.in.h (wcrtomb): New declaration.
38053         * lib/wcrtomb.c: New file.
38054         * m4/wcrtomb.m4: New file.
38055         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
38056         HAVE_WCRTOMB.
38057         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
38058         HAVE_WCRTOMB.
38059         * modules/wcrtomb: New file.
38060         * doc/posix-functions/wcrtomb.texi: Mention the new module.
38061
38062 2008-12-21  Bruno Haible  <bruno@clisp.org>
38063
38064         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
38065         * modules/mbsrtowcs (Files): Likewise.
38066         * modules/wctob (Files): Likewise.
38067         * modules/c-strcase-tests (Files): Likewise.
38068         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
38069         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
38070         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
38071         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
38072         * modules/vasnprintf-posix-tests (Files): Likewise.
38073
38074 2008-12-21  William Pursell  <bill.pursell@gmail.com>
38075
38076         gitlog-to-changelog: pass all command-line arguments to git-log
38077         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
38078         it is sometimes convenient to filter the commits in various ways.
38079         gitlog-to-changelog only allows --since to specify a start date,
38080         but git-log itself supports many other filtering mechanisms.
38081         At the moment, I want to filter by branch name.  Rather than
38082         adding a --branch option to gitlog-to-changelog, it seems more
38083         flexible to simply pass all options directly to git-log and let
38084         git do the work.  Notice that this effectively makes --since a
38085         redundant option for gitlog-to-changelog, but removing it would
38086         require current usage to change since calls would then require
38087         an additional '--'.
38088
38089 2008-12-21  Bruno Haible  <bruno@clisp.org>
38090
38091         * modules/mbsnrtowcs-tests: New file.
38092         * tests/test-mbsnrtowcs1.sh: New file.
38093         * tests/test-mbsnrtowcs2.sh: New file.
38094         * tests/test-mbsnrtowcs3.sh: New file.
38095         * tests/test-mbsnrtowcs4.sh: New file.
38096         * tests/test-mbsnrtowcs.c: New file.
38097
38098         New module 'mbsnrtowcs'.
38099         * lib/wchar.in.h (mbsnrtowcs): New declaration.
38100         * lib/mbsnrtowcs.c: New file.
38101         * lib/mbsrtowcs-state.c: New file.
38102         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
38103         (internal_state): Remove variable.
38104         * m4/mbsnrtowcs.m4: New file.
38105         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
38106         compilation units.
38107         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
38108         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
38109         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
38110         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
38111         * modules/mbsnrtowcs: New file.
38112         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
38113         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
38114         portability problem.
38115
38116 2008-12-21  Bruno Haible  <bruno@clisp.org>
38117
38118         Work around mbsrtowcs bug.
38119         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
38120         (gl_FUNC_MBSRTOWCS): Invoke it.
38121         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
38122         m4/locale-zh.m4.
38123         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
38124
38125 2008-12-21  Bruno Haible  <bruno@clisp.org>
38126
38127         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
38128
38129 2008-12-21  Bruno Haible  <bruno@clisp.org>
38130
38131         Update doc for AIX.
38132         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
38133         16-bit wchar_t type.
38134         * doc/posix-functions/btowc.texi: Likewise.
38135         * doc/posix-functions/fgetwc.texi: Likewise.
38136         * doc/posix-functions/fgetws.texi: Likewise.
38137         * doc/posix-functions/fputwc.texi: Likewise.
38138         * doc/posix-functions/fputws.texi: Likewise.
38139         * doc/posix-functions/fwide.texi: Likewise.
38140         * doc/posix-functions/fwprintf.texi: Likewise.
38141         * doc/posix-functions/fwscanf.texi: Likewise.
38142         * doc/posix-functions/getwchar.texi: Likewise.
38143         * doc/posix-functions/getwc.texi: Likewise.
38144         * doc/posix-functions/iswalnum.texi: Likewise.
38145         * doc/posix-functions/iswalpha.texi: Likewise.
38146         * doc/posix-functions/iswblank.texi: Likewise.
38147         * doc/posix-functions/iswcntrl.texi: Likewise.
38148         * doc/posix-functions/iswctype.texi: Likewise.
38149         * doc/posix-functions/iswdigit.texi: Likewise.
38150         * doc/posix-functions/iswgraph.texi: Likewise.
38151         * doc/posix-functions/iswlower.texi: Likewise.
38152         * doc/posix-functions/iswprint.texi: Likewise.
38153         * doc/posix-functions/iswpunct.texi: Likewise.
38154         * doc/posix-functions/iswspace.texi: Likewise.
38155         * doc/posix-functions/iswupper.texi: Likewise.
38156         * doc/posix-functions/iswxdigit.texi: Likewise.
38157         * doc/posix-functions/mbrtowc.texi: Likewise.
38158         * doc/posix-functions/mbsrtowcs.texi: Likewise.
38159         * doc/posix-functions/mbstowcs.texi: Likewise.
38160         * doc/posix-functions/mbtowc.texi: Likewise.
38161         * doc/posix-functions/putwchar.texi: Likewise.
38162         * doc/posix-functions/putwc.texi: Likewise.
38163         * doc/posix-functions/swprintf.texi: Likewise.
38164         * doc/posix-functions/tolower.texi: Likewise.
38165         * doc/posix-functions/toupper.texi: Likewise.
38166         * doc/posix-functions/towctrans.texi: Likewise.
38167         * doc/posix-functions/ungetwc.texi: Likewise.
38168         * doc/posix-functions/vswprintf.texi: Likewise.
38169         * doc/posix-functions/wcrtomb.texi: Likewise.
38170         * doc/posix-functions/wcscat.texi: Likewise.
38171         * doc/posix-functions/wcschr.texi: Likewise.
38172         * doc/posix-functions/wcscmp.texi: Likewise.
38173         * doc/posix-functions/wcscoll.texi: Likewise.
38174         * doc/posix-functions/wcscpy.texi: Likewise.
38175         * doc/posix-functions/wcscspn.texi: Likewise.
38176         * doc/posix-functions/wcsftime.texi: Likewise.
38177         * doc/posix-functions/wcslen.texi: Likewise.
38178         * doc/posix-functions/wcsncat.texi: Likewise.
38179         * doc/posix-functions/wcsncmp.texi: Likewise.
38180         * doc/posix-functions/wcsncpy.texi: Likewise.
38181         * doc/posix-functions/wcspbrk.texi: Likewise.
38182         * doc/posix-functions/wcsrchr.texi: Likewise.
38183         * doc/posix-functions/wcsrtombs.texi: Likewise.
38184         * doc/posix-functions/wcsspn.texi: Likewise.
38185         * doc/posix-functions/wcsstr.texi: Likewise.
38186         * doc/posix-functions/wcstod.texi: Likewise.
38187         * doc/posix-functions/wcstof.texi: Likewise.
38188         * doc/posix-functions/wcstoimax.texi: Likewise.
38189         * doc/posix-functions/wcstok.texi: Likewise.
38190         * doc/posix-functions/wcstold.texi: Likewise.
38191         * doc/posix-functions/wcstoll.texi: Likewise.
38192         * doc/posix-functions/wcstol.texi: Likewise.
38193         * doc/posix-functions/wcstombs.texi: Likewise.
38194         * doc/posix-functions/wcstoull.texi: Likewise.
38195         * doc/posix-functions/wcstoul.texi: Likewise.
38196         * doc/posix-functions/wcstoumax.texi: Likewise.
38197         * doc/posix-functions/wcswidth.texi: Likewise.
38198         * doc/posix-functions/wcsxfrm.texi: Likewise.
38199         * doc/posix-functions/wctob.texi: Likewise.
38200         * doc/posix-functions/wctomb.texi: Likewise.
38201         * doc/posix-functions/wctrans.texi: Likewise.
38202         * doc/posix-functions/wctype.texi: Likewise.
38203         * doc/posix-functions/wcwidth.texi: Likewise.
38204         * doc/posix-functions/wmemchr.texi: Likewise.
38205         * doc/posix-functions/wmemcmp.texi: Likewise.
38206         * doc/posix-functions/wmemcpy.texi: Likewise.
38207         * doc/posix-functions/wmemmove.texi: Likewise.
38208         * doc/posix-functions/wmemset.texi: Likewise.
38209         * doc/posix-functions/wprintf.texi: Likewise.
38210         * doc/posix-functions/wscanf.texi: Likewise.
38211
38212 2008-12-21  Bruno Haible  <bruno@clisp.org>
38213
38214         Update doc for HP-UX 11.11.
38215         * doc/posix-functions/btowc.texi: Clarify that the function is missing
38216         in HP-UX version 11.00, not in all versions of HP-UX 11.
38217         * doc/posix-functions/fwide.texi: Likewise.
38218         * doc/posix-functions/fwprintf.texi: Likewise.
38219         * doc/posix-functions/fwscanf.texi: Likewise.
38220         * doc/posix-functions/inet_ntop.texi: Likewise.
38221         * doc/posix-functions/inet_pton.texi: Likewise.
38222         * doc/posix-functions/mbrlen.texi: Likewise.
38223         * doc/posix-functions/mbrtowc.texi: Likewise.
38224         * doc/posix-functions/mbsinit.texi: Likewise.
38225         * doc/posix-functions/mbsrtowcs.texi: Likewise.
38226         * doc/posix-functions/swprintf.texi: Likewise.
38227         * doc/posix-functions/swscanf.texi: Likewise.
38228         * doc/posix-functions/towctrans.texi: Likewise.
38229         * doc/posix-functions/vfwprintf.texi: Likewise.
38230         * doc/posix-functions/vswprintf.texi: Likewise.
38231         * doc/posix-functions/vwprintf.texi: Likewise.
38232         * doc/posix-functions/wcrtomb.texi: Likewise.
38233         * doc/posix-functions/wcsrtombs.texi: Likewise.
38234         * doc/posix-functions/wcsstr.texi: Likewise.
38235         * doc/posix-functions/wctob.texi: Likewise.
38236         * doc/posix-functions/wctrans.texi: Likewise.
38237         * doc/posix-functions/wmemchr.texi: Likewise.
38238         * doc/posix-functions/wmemcmp.texi: Likewise.
38239         * doc/posix-functions/wmemcpy.texi: Likewise.
38240         * doc/posix-functions/wmemmove.texi: Likewise.
38241         * doc/posix-functions/wmemset.texi: Likewise.
38242         * doc/posix-functions/wprintf.texi: Likewise.
38243         * doc/posix-functions/wscanf.texi: Likewise.
38244
38245 2008-12-21  Bruno Haible  <bruno@clisp.org>
38246
38247         Work around a portability problem.
38248         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
38249         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
38250
38251 2008-12-20  Bruno Haible  <bruno@clisp.org>
38252
38253         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
38254         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
38255         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
38256         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
38257         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
38258
38259         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
38260         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
38261         set.
38262         (GNULIB_defined_mbstate_t): New macro.
38263         (mbsinit): Redefine if REPLACE_MBSINIT is set.
38264         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
38265         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
38266         reuses the system's mbrtowc function but works around the bugs.
38267         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
38268         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
38269         macros.
38270         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
38271         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
38272         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
38273         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
38274         REPLACE_MBSINIT if mbsinit needs to be overridden.
38275         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
38276         REPLACE_MBSINIT, REPLACE_MBRTOWC.
38277         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
38278         REPLACE_MBSINIT, REPLACE_MBRTOWC.
38279         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
38280         m4/locale-zh.m4.
38281         (Depends): Add mbsinit.
38282         * modules/mbsinit (Depends): Add mbrtowc.
38283         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
38284
38285 2008-12-20  Bruno Haible  <bruno@clisp.org>
38286
38287         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
38288         so that there are no conversion errors on AIX.
38289         * tests/test-mbsrtowcs.c (main): LIkewise.
38290
38291 2008-12-20  Bruno Haible  <bruno@clisp.org>
38292
38293         Work around wctob bug on Solaris <= 9.
38294         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
38295         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
38296         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
38297         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
38298         * modules/wctob (Files): Add m4/locale-fr.m4.
38299         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
38300
38301 2008-12-20  Bruno Haible  <bruno@clisp.org>
38302
38303         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
38304         /dev/null.
38305         * tests/test-select-in.sh: Likewise.
38306         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38307
38308 2008-12-20  Bruno Haible  <bruno@clisp.org>
38309
38310         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
38311         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
38312         Cygwin 1.5.x.
38313
38314 2008-12-20  Bruno Haible  <bruno@clisp.org>
38315
38316         Ensure mbstate_t is defined on HP-UX 11.11.
38317         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
38318         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
38319         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
38320         AC_USE_SYSTEM_EXTENSIONS.
38321         * modules/fnmatch (Depends-on): Add extensions.
38322         * modules/mbrlen (Depends-on): Likewise.
38323         * modules/mbrtowc (Depends-on): Likewise.
38324         * modules/mbsinit (Depends-on): Likewise.
38325         * modules/mbsrtowcs (Depends-on): Likewise.
38326         * modules/mbswidth (Depends-on): Likewise.
38327         * modules/quotearg (Depends-on): Likewise.
38328         * modules/strftime (Depends-on): Likewise.
38329
38330 2008-12-20  Bruno Haible  <bruno@clisp.org>
38331
38332         Ensure wctob is declared on IRIX 6.5.
38333         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
38334         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
38335         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
38336         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
38337         of HAVE_WCTOB.
38338         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
38339         HAVE_WCTOB.
38340         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
38341
38342 2008-12-19  Bruno Haible  <bruno@clisp.org>
38343
38344         * modules/mbsrtowcs-tests: New file.
38345         * tests/test-mbsrtowcs1.sh: New file.
38346         * tests/test-mbsrtowcs2.sh: New file.
38347         * tests/test-mbsrtowcs3.sh: New file.
38348         * tests/test-mbsrtowcs4.sh: New file.
38349         * tests/test-mbsrtowcs.c: New file.
38350
38351         New module 'mbsrtowcs'.
38352         * lib/wchar.in.h (mbsrtowcs): New declaration.
38353         * lib/mbsrtowcs.c: New file.
38354         * m4/mbsrtowcs.m4: New file.
38355         * modules/mbsrtowcs: New file.
38356         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
38357         HAVE_MBSRTOWCS.
38358         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
38359         HAVE_MBSRTOWCS.
38360         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
38361
38362 2008-12-19  Bruno Haible  <bruno@clisp.org>
38363
38364         New module 'mbrlen'.
38365         * lib/wchar.in.h (mbrlen): New declaration.
38366         * lib/mbrlen.c: New file.
38367         * m4/mbrlen.m4: New file.
38368         * modules/mbrlen: New file.
38369         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
38370         HAVE_MBRLEN.
38371         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
38372         HAVE_MBRLEN.
38373         * doc/posix-functions/mbrlen.texi: Document the new module.
38374
38375 2008-12-19  Bruno Haible  <bruno@clisp.org>
38376
38377         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
38378         * modules/mbrtowc (Depends-on): Add verify.
38379         Suggested by Paul Eggert.
38380
38381 2008-12-18  Bruno Haible  <bruno@clisp.org>
38382
38383         * modules/mbsinit-tests: New file.
38384         * tests/test-mbsinit.sh: New file.
38385         * tests/test-mbsinit.c: New file.
38386
38387 2008-12-18  Bruno Haible  <bruno@clisp.org>
38388
38389         * modules/mbrtowc-tests: New file.
38390         * tests/test-mbrtowc1.sh: New file.
38391         * tests/test-mbrtowc2.sh: New file.
38392         * tests/test-mbrtowc3.sh: New file.
38393         * tests/test-mbrtowc4.sh: New file.
38394         * tests/test-mbrtowc.c: New file.
38395
38396         New module 'mbrtowc'.
38397         * lib/wchar.in.h (mbstate_t): Override when the system does not have
38398         mbsinit and mbrtowc.
38399         (mbrtowc): New declaration.
38400         * lib/mbrtowc.c: New file.
38401         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
38402         * modules/mbrtowc: New file.
38403         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
38404         HAVE_MBRTOWC.
38405         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
38406         HAVE_MBRTOWC.
38407         * doc/posix-functions/mbrtowc.texi: Document the new module.
38408
38409 2008-12-18  Bruno Haible  <bruno@clisp.org>
38410
38411         New module 'wctob'.
38412         * lib/wchar.in.h (wctob): New declaration.
38413         * lib/wctob.c: New file.
38414         * m4/wctob.m4: New file.
38415         * modules/wctob: New file.
38416         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
38417         HAVE_WCTOB.
38418         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
38419         * doc/posix-functions/wctob.texi: Document the new module.
38420
38421 2008-12-18  Bruno Haible  <bruno@clisp.org>
38422
38423         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
38424         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
38425
38426 2008-12-18  Simon Josefsson  <simon@josefsson.org>
38427
38428         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
38429         G. Christensen" <tgc@jupiterrise.com>.
38430
38431         * lib/flock.c: Need to include errno.h.  Reported by "Tom
38432         G. Christensen" <tgc@jupiterrise.com>.
38433
38434         * lib/flock.c: Need to include string.h.  Reported by "Tom
38435         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
38436         <ebb9@byu.net>.
38437
38438 2008-12-18  Bruno Haible  <bruno@clisp.org>
38439
38440         * m4/locale-ja.m4: New file, from GNU gettext.
38441
38442 2008-12-17  Bruno Haible  <bruno@clisp.org>
38443
38444         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
38445         Suggested by Eric Blake.
38446
38447 2008-12-17  Bruno Haible  <bruno@clisp.org>
38448
38449         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
38450
38451 2008-12-17  Bruno Haible  <bruno@clisp.org>
38452
38453         * lib/mbsinit.c: Include verify.h. Verify an assumption.
38454         * modules/mbsinit (Depends-on): Add verify.
38455         Suggested by Paul Eggert.
38456
38457 2008-12-17  Bruno Haible  <bruno@clisp.org>
38458
38459         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
38460         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
38461         gl_FUNC_MBRTOWC.
38462         * m4/mbiter.m4 (gl_MBITER): LIkewise.
38463         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
38464         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
38465         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
38466         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
38467         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
38468         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
38469         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
38470         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
38471         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
38472         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
38473         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
38474         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
38475         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
38476         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
38477         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
38478         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
38479         * modules/trim (configure.ac): Likewise.
38480
38481 2008-12-17  Bruno Haible  <bruno@clisp.org>
38482
38483         * modules/btowc-tests: New file.
38484         * tests/test-btowc1.sh: New file.
38485         * tests/test-btowc2.sh: New file.
38486         * tests/test-btowc.c: New file.
38487
38488         New module 'btowc'.
38489         * lib/wchar.in.h (btowc): New declaration.
38490         * lib/btowc.c: New file.
38491         * m4/btowc.m4: New file.
38492         * modules/btowc: New file.
38493         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
38494         HAVE_BTOWC.
38495         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
38496         * doc/posix-functions/btowc.texi: Document the new module.
38497
38498 2008-12-17  Bruno Haible  <bruno@clisp.org>
38499
38500         New module 'mbsinit'.
38501         * lib/wchar.in.h (mbsinit): New declaration.
38502         * lib/mbsinit.c: New file.
38503         * m4/mbsinit.m4: New file.
38504         * modules/mbsinit: New file.
38505         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
38506         HAVE_MBSINIT.
38507         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
38508         HAVE_MBSINIT.
38509         * doc/posix-functions/mbsinit.texi: Document the new module.
38510
38511 2008-12-16  Bruno Haible  <bruno@clisp.org>
38512
38513         * lib/unistd.in.h: Add comment.
38514         * tests/test-environ.c: Don't include <stdlib.h>.
38515
38516 2008-12-16  Bruno Haible  <bruno@clisp.org>
38517
38518         * lib/parse-duration.h (parse_duration): Document return value
38519         convention.
38520         * lib/parse-duration.c: Include specification header first. Add
38521         comments.
38522         (_): Remove macro.
38523         (parse_year_month_day, parse_hour_minute_second): Move side effects
38524         outside of strchr call.
38525         (parse_non_iso8601): Move side effects outside of isspace call.
38526         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
38527         call.
38528
38529 2008-12-16  Bruno Haible  <bruno@clisp.org>
38530
38531         * tests/test-parse-duration.sh: Produce no output when the test
38532         succeeds.
38533
38534 2008-12-16  Bruno Haible  <bruno@clisp.org>
38535
38536         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
38537         expressions.
38538
38539 2008-12-15  Bruno Haible  <bruno@clisp.org>
38540
38541         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
38542         * doc/glibc-functions/flistxattr.texi: Likewise.
38543         * doc/glibc-functions/fopencookie.texi: Likewise.
38544         * doc/glibc-functions/fremovexattr.texi: Likewise.
38545         * doc/glibc-functions/fsetxattr.texi: Likewise.
38546         * doc/glibc-functions/getxattr.texi: Likewise.
38547         * doc/glibc-functions/lgetxattr.texi: Likewise.
38548         * doc/glibc-functions/listxattr.texi: Likewise.
38549         * doc/glibc-functions/llistxattr.texi: Likewise.
38550         * doc/glibc-functions/lremovexattr.texi: Likewise.
38551         * doc/glibc-functions/lsetxattr.texi: Likewise.
38552         * doc/glibc-functions/removexattr.texi: Likewise.
38553         * doc/glibc-functions/setxattr.texi: Likewise.
38554         * doc/posix-functions/open_memstream.texi: Likewise.
38555
38556 2008-12-15  Eric Blake  <ebb9@byu.net>
38557
38558         Update doc for cygwin 1.7.
38559         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
38560         functions.
38561         * doc/posix-functions/fchmodat.texi: Likewise.
38562         * doc/posix-functions/fchownat.texi: Likewise.
38563         * doc/posix-functions/fdopendir.texi: Likewise.
38564         * doc/posix-functions/fmemopen.texi: Likewise.
38565         * doc/posix-functions/freeaddrinfo.texi: Likewise.
38566         * doc/posix-functions/fstatat.texi: Likewise.
38567         * doc/posix-functions/futimens.texi: Likewise.
38568         * doc/posix-functions/gai_strerror.texi: Likewise.
38569         * doc/posix-functions/getaddrinfo.texi: Likewise.
38570         * doc/posix-functions/getnameinfo.texi: Likewise.
38571         * doc/posix-functions/if_freenameindex.texi: Likewise.
38572         * doc/posix-functions/if_indextoname.texi: Likewise.
38573         * doc/posix-functions/if_nameindex.texi: Likewise.
38574         * doc/posix-functions/if_nametoindex.texi: Likewise.
38575         * doc/posix-functions/insque.texi: Likewise.
38576         * doc/posix-functions/linkat.texi: Likewise.
38577         * doc/posix-functions/llrint.texi: Likewise.
38578         * doc/posix-functions/llrintf.texi: Likewise.
38579         * doc/posix-functions/llrintl.texi: Likewise.
38580         * doc/posix-functions/lockf.texi: Likewise.
38581         * doc/posix-functions/lrintl.texi: Likewise.
38582         * doc/posix-functions/mkdirat.texi: Likewise.
38583         * doc/posix-functions/mkfifoat.texi: Likewise.
38584         * doc/posix-functions/mknodat.texi: Likewise.
38585         * doc/posix-functions/mq_close.texi: Likewise.
38586         * doc/posix-functions/mq_getattr.texi: Likewise.
38587         * doc/posix-functions/mq_notify.texi: Likewise.
38588         * doc/posix-functions/mq_open.texi: Likewise.
38589         * doc/posix-functions/mq_receive.texi: Likewise.
38590         * doc/posix-functions/mq_send.texi: Likewise.
38591         * doc/posix-functions/mq_setattr.texi: Likewise.
38592         * doc/posix-functions/mq_timedreceive.texi: Likewise.
38593         * doc/posix-functions/mq_timedsend.texi: Likewise.
38594         * doc/posix-functions/mq_unlink.texi: Likewise.
38595         * doc/posix-functions/open_memstream.texi: Likewise.
38596         * doc/posix-functions/openat.texi: Likewise.
38597         * doc/posix-functions/posix_fadvise.texi: Likewise.
38598         * doc/posix-functions/posix_fallocate.texi: Likewise.
38599         * doc/posix-functions/posix_madvise.texi: Likewise.
38600         * doc/posix-functions/posix_memalign.texi: Likewise.
38601         * doc/posix-functions/posix_openpt.texi: Likewise.
38602         * doc/posix-functions/readlinkat.texi: Likewise.
38603         * doc/posix-functions/remque.texi: Likewise.
38604         * doc/posix-functions/renameat.texi: Likewise.
38605         * doc/posix-functions/rintl.texi: Likewise.
38606         * doc/posix-functions/sem_unlink.texi: Likewise.
38607         * doc/posix-functions/shm_open.texi: Likewise.
38608         * doc/posix-functions/shm_unlink.texi: Likewise.
38609         * doc/posix-functions/signgam.texi: Likewise.
38610         * doc/posix-functions/sigset.texi: Likewise.
38611         * doc/posix-functions/stpcpy.texi: Likewise.
38612         * doc/posix-functions/stpncpy.texi: Likewise.
38613         * doc/posix-functions/strerror.texi: Likewise.
38614         * doc/posix-functions/strtod.texi: Likewise.
38615         * doc/posix-functions/symlinkat.texi: Likewise.
38616         * doc/posix-functions/unlinkat.texi: Likewise.
38617         * doc/posix-functions/utimensat.texi: Likewise.
38618         * doc/glibc-functions/bindresvport.texi: Likewise.
38619         * doc/glibc-functions/dn_expand.texi: Likewise.
38620         * doc/glibc-functions/exp10.texi: Likewise.
38621         * doc/glibc-functions/exp10f.texi: Likewise.
38622         * doc/glibc-functions/fgetxattr.texi: Likewise.
38623         * doc/glibc-functions/flistxattr.texi: Likewise.
38624         * doc/glibc-functions/fopencookie.texi: Likewise.
38625         * doc/glibc-functions/freeifaddrs.texi: Likewise.
38626         * doc/glibc-functions/fremovexattr.texi: Likewise.
38627         * doc/glibc-functions/fsetxattr.texi: Likewise.
38628         * doc/glibc-functions/getifaddrs.texi: Likewise.
38629         * doc/glibc-functions/getxattr.texi: Likewise.
38630         * doc/glibc-functions/lgetxattr.texi: Likewise.
38631         * doc/glibc-functions/listxattr.texi: Likewise.
38632         * doc/glibc-functions/llistxattr.texi: Likewise.
38633         * doc/glibc-functions/lremovexattr.texi: Likewise.
38634         * doc/glibc-functions/lsetxattr.texi: Likewise.
38635         * doc/glibc-functions/pow10.texi: Likewise.
38636         * doc/glibc-functions/pow10f.texi: Likewise.
38637         * doc/glibc-functions/rcmd_af.texi: Likewise.
38638         * doc/glibc-functions/removexattr.texi: Likewise.
38639         * doc/glibc-functions/res_init.texi: Likewise.
38640         * doc/glibc-functions/res_mkquery.texi: Likewise.
38641         * doc/glibc-functions/res_query.texi: Likewise.
38642         * doc/glibc-functions/res_querydomain.texi: Likewise.
38643         * doc/glibc-functions/res_send.texi: Likewise.
38644         * doc/glibc-functions/rresvport_af.texi: Likewise.
38645         * doc/glibc-functions/setxattr.texi: Likewise.
38646         * doc/glibc-functions/strcasestr.texi: Likewise.
38647
38648 2008-12-15  Bruno Haible  <bruno@clisp.org>
38649
38650         Fix compilation error on OSF/1 4.0.
38651         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
38652         <sys/time.h>, simply delegate to the system header.
38653         Reported by Daniel Richard G. <oss@teragram.com>.
38654
38655 2008-12-15  Bruno Haible  <bruno@clisp.org>
38656
38657         * doc/posix-functions/openat.texi: Mention the 'openat' module.
38658         * doc/posix-functions/fchmodat.texi: Likewise.
38659         * doc/posix-functions/fchownat.texi: Likewise.
38660         * doc/posix-functions/fdopendir.texi: Likewise.
38661         * doc/posix-functions/fstatat.texi: Likewise.
38662         * doc/posix-functions/mkdirat.texi: Likewise.
38663         * doc/posix-functions/unlinkat.texi: Likewise.
38664
38665 2008-12-14  Bruno Haible  <bruno@clisp.org>
38666
38667         Update doc for POSIX:2008.
38668         * doc/posix-functions/faccessat.texi: New file.
38669         * doc/posix-functions/fchmodat.texi: New file.
38670         * doc/posix-functions/fchownat.texi: New file.
38671         * doc/posix-functions/fdopendir.texi: New file.
38672         * doc/posix-functions/fstatat.texi: New file.
38673         * doc/posix-functions/futimens.texi: New file.
38674         * doc/posix-functions/linkat.texi: New file.
38675         * doc/posix-functions/mkdirat.texi: New file.
38676         * doc/posix-functions/mkfifoat.texi: New file.
38677         * doc/posix-functions/mknodat.texi: New file.
38678         * doc/posix-functions/open_wmemstream.texi: New file.
38679         * doc/posix-functions/openat.texi: New file.
38680         * doc/posix-functions/psiginfo.texi: New file.
38681         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
38682         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
38683         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
38684         * doc/posix-functions/readlinkat.texi: New file.
38685         * doc/posix-functions/renameat.texi: New file.
38686         * doc/posix-functions/strerror_l.texi: New file.
38687         * doc/posix-functions/symlinkat.texi: New file.
38688         * doc/posix-functions/unlinkat.texi: New file.
38689         * doc/posix-functions/utimensat.texi: New file.
38690         * doc/gnulib.texi (Function Substitutes): Add these subsections.
38691
38692 2008-12-14  Bruno Haible  <bruno@clisp.org>
38693
38694         Update doc for POSIX:2008.
38695         * doc/posix-functions/alphasort.texi: Renamed from
38696         doc/glibc-functions/alphasort.texi.
38697         * doc/posix-functions/dirfd.texi: Renamed from
38698         doc/glibc-functions/dirfd.texi.
38699         * doc/posix-functions/dprintf.texi: Renamed from
38700         doc/glibc-functions/dprintf.texi.
38701         * doc/posix-functions/duplocale.texi: Renamed from
38702         doc/glibc-functions/duplocale.texi.
38703         * doc/posix-functions/fexecve.texi: Renamed from
38704         doc/glibc-functions/fexecve.texi.
38705         * doc/posix-functions/fmemopen.texi: Renamed from
38706         doc/glibc-functions/fmemopen.texi.
38707         * doc/posix-functions/freelocale.texi: Renamed from
38708         doc/glibc-functions/freelocale.texi.
38709         * doc/posix-functions/getdate_err.texi: Renamed from
38710         doc/glibc-functions/getdate_err.texi.
38711         * doc/posix-functions/isalnum_l.texi: Renamed from
38712         doc/glibc-functions/isalnum_l.texi.
38713         * doc/posix-functions/isalpha_l.texi: Renamed from
38714         doc/glibc-functions/isalpha_l.texi.
38715         * doc/posix-functions/isblank_l.texi: Renamed from
38716         doc/glibc-functions/isblank_l.texi.
38717         * doc/posix-functions/iscntrl_l.texi: Renamed from
38718         doc/glibc-functions/iscntrl_l.texi.
38719         * doc/posix-functions/isdigit_l.texi: Renamed from
38720         doc/glibc-functions/isdigit_l.texi.
38721         * doc/posix-functions/isgraph_l.texi: Renamed from
38722         doc/glibc-functions/isgraph_l.texi.
38723         * doc/posix-functions/islower_l.texi: Renamed from
38724         doc/glibc-functions/islower_l.texi.
38725         * doc/posix-functions/isprint_l.texi: Renamed from
38726         doc/glibc-functions/isprint_l.texi.
38727         * doc/posix-functions/ispunct_l.texi: Renamed from
38728         doc/glibc-functions/ispunct_l.texi.
38729         * doc/posix-functions/isspace_l.texi: Renamed from
38730         doc/glibc-functions/isspace_l.texi.
38731         * doc/posix-functions/isupper_l.texi: Renamed from
38732         doc/glibc-functions/isupper_l.texi.
38733         * doc/posix-functions/iswalnum_l.texi: Renamed from
38734         doc/glibc-functions/iswalnum_l.texi.
38735         * doc/posix-functions/iswalpha_l.texi: Renamed from
38736         doc/glibc-functions/iswalpha_l.texi.
38737         * doc/posix-functions/iswblank_l.texi: Renamed from
38738         doc/glibc-functions/iswblank_l.texi.
38739         * doc/posix-functions/iswcntrl_l.texi: Renamed from
38740         doc/glibc-functions/iswcntrl_l.texi.
38741         * doc/posix-functions/iswctype_l.texi: Renamed from
38742         doc/glibc-functions/iswctype_l.texi.
38743         * doc/posix-functions/iswdigit_l.texi: Renamed from
38744         doc/glibc-functions/iswdigit_l.texi.
38745         * doc/posix-functions/iswgraph_l.texi: Renamed from
38746         doc/glibc-functions/iswgraph_l.texi.
38747         * doc/posix-functions/iswlower_l.texi: Renamed from
38748         doc/glibc-functions/iswlower_l.texi.
38749         * doc/posix-functions/iswprint_l.texi: Renamed from
38750         doc/glibc-functions/iswprint_l.texi.
38751         * doc/posix-functions/iswpunct_l.texi: Renamed from
38752         doc/glibc-functions/iswpunct_l.texi.
38753         * doc/posix-functions/iswspace_l.texi: Renamed from
38754         doc/glibc-functions/iswspace_l.texi.
38755         * doc/posix-functions/iswupper_l.texi: Renamed from
38756         doc/glibc-functions/iswupper_l.texi.
38757         * doc/posix-functions/iswxdigit_l.texi: Renamed from
38758         doc/glibc-functions/iswxdigit_l.texi.
38759         * doc/posix-functions/isxdigit_l.texi: Renamed from
38760         doc/glibc-functions/isxdigit_l.texi.
38761         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
38762         doc/glibc-functions/mbsnrtowcs.texi.
38763         * doc/posix-functions/mkdtemp.texi: Renamed from
38764         doc/glibc-functions/mkdtemp.texi.
38765         * doc/posix-functions/newlocale.texi: Renamed from
38766         doc/glibc-functions/newlocale.texi.
38767         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
38768         doc/glibc-functions/nl_langinfo_l.texi.
38769         * doc/posix-functions/open_memstream.texi: Renamed from
38770         doc/glibc-functions/open_memstream.texi.
38771         * doc/posix-functions/opterr.texi: Renamed from
38772         doc/glibc-functions/opterr.texi.
38773         * doc/posix-functions/optind.texi: Renamed from
38774         doc/glibc-functions/optind.texi.
38775         * doc/posix-functions/optopt.texi: Renamed from
38776         doc/glibc-functions/optopt.texi.
38777         * doc/posix-functions/psignal.texi: Renamed from
38778         doc/glibc-functions/psignal.texi.
38779         * doc/posix-functions/scandir.texi: Renamed from
38780         doc/glibc-functions/scandir.texi.
38781         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
38782         doc/glibc-functions/sched_get_priority_min.texi.
38783         * doc/posix-functions/signgam.texi: Renamed from
38784         doc/glibc-functions/signgam.texi.
38785         * doc/posix-functions/stpcpy.texi: Renamed from
38786         doc/glibc-functions/stpcpy.texi.
38787         * doc/posix-functions/stpncpy.texi: Renamed from
38788         doc/glibc-functions/stpncpy.texi.
38789         * doc/posix-functions/strcasecmp_l.texi: Renamed from
38790         doc/glibc-functions/strcasecmp_l.texi.
38791         * doc/posix-functions/strcoll_l.texi: Renamed from
38792         doc/glibc-functions/strcoll_l.texi.
38793         * doc/posix-functions/strfmon_l.texi: Renamed from
38794         doc/glibc-functions/strfmon_l.texi.
38795         * doc/posix-functions/strftime_l.texi: Renamed from
38796         doc/glibc-functions/strftime_l.texi.
38797         * doc/posix-functions/strncasecmp_l.texi: Renamed from
38798         doc/glibc-functions/strncasecmp_l.texi.
38799         * doc/posix-functions/strndup.texi: Renamed from
38800         doc/glibc-functions/strndup.texi.
38801         * doc/posix-functions/strnlen.texi: Renamed from
38802         doc/glibc-functions/strnlen.texi.
38803         * doc/posix-functions/strsignal.texi: Renamed from
38804         doc/glibc-functions/strsignal.texi.
38805         * doc/posix-functions/strxfrm_l.texi: Renamed from
38806         doc/glibc-functions/strxfrm_l.texi.
38807         * doc/posix-functions/timer_gettime.texi: Renamed from
38808         doc/glibc-functions/timer_gettime.texi.
38809         * doc/posix-functions/tolower_l.texi: Renamed from
38810         doc/glibc-functions/tolower_l.texi.
38811         * doc/posix-functions/toupper_l.texi: Renamed from
38812         doc/glibc-functions/toupper_l.texi.
38813         * doc/posix-functions/towctrans_l.texi: Renamed from
38814         doc/glibc-functions/towctrans_l.texi.
38815         * doc/posix-functions/towlower_l.texi: Renamed from
38816         doc/glibc-functions/towlower_l.texi.
38817         * doc/posix-functions/towupper_l.texi: Renamed from
38818         doc/glibc-functions/towupper_l.texi.
38819         * doc/posix-functions/uselocale.texi: Renamed from
38820         doc/glibc-functions/uselocale.texi.
38821         * doc/posix-functions/vdprintf.texi: Renamed from
38822         doc/glibc-functions/vdprintf.texi.
38823         * doc/posix-functions/wcpcpy.texi:
38824         Renamed from doc/glibc-functions/wcpcpy.texi.
38825         * doc/posix-functions/wcpncpy.texi: Renamed from
38826         doc/glibc-functions/wcpncpy.texi.
38827         * doc/posix-functions/wcscasecmp.texi: Renamed from
38828         doc/glibc-functions/wcscasecmp.texi.
38829         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
38830         doc/glibc-functions/wcscasecmp_l.texi.
38831         * doc/posix-functions/wcscoll_l.texi: Renamed from
38832         doc/glibc-functions/wcscoll_l.texi.
38833         * doc/posix-functions/wcsdup.texi: Renamed from
38834         doc/glibc-functions/wcsdup.texi.
38835         * doc/posix-functions/wcsncasecmp.texi: Renamed from
38836         doc/glibc-functions/wcsncasecmp.texi.
38837         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
38838         doc/glibc-functions/wcsncasecmp_l.texi.
38839         * doc/posix-functions/wcsnlen.texi: Renamed from
38840         doc/glibc-functions/wcsnlen.texi.
38841         * doc/posix-functions/wcsnrtombs.texi: Renamed from
38842         doc/glibc-functions/wcsnrtombs.texi.
38843         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
38844         doc/glibc-functions/wcsxfrm_l.texi.
38845         * doc/posix-functions/wctrans_l.texi: Renamed from
38846         doc/glibc-functions/wctrans_l.texi.
38847         * doc/posix-functions/wctype_l.texi: Renamed from
38848         doc/glibc-functions/wctype_l.texi.
38849         * doc/gnulib.texi (Function Substitutes): Add these subsections.
38850         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
38851         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
38852         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
38853         these subsections.
38854         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
38855         Remove sections.
38856
38857 2008-12-14  Bruno Haible  <bruno@clisp.org>
38858
38859         Update doc for POSIX:2008.
38860         * doc/posix-functions/*.texi: Update URL of POSIX specification.
38861
38862 2008-12-14  Bruno Haible  <bruno@clisp.org>
38863
38864         Update doc for POSIX:2008.
38865         * doc/pastposix-functions/bcmp.texi: Renamed from
38866         doc/posix-functions/bcmp.texi.
38867         * doc/pastposix-functions/bcopy.texi: Renamed from
38868         doc/posix-functions/bcopy.texi.
38869         * doc/pastposix-functions/bsd_signal.texi: Renamed from
38870         doc/posix-functions/bsd_signal.texi.
38871         * doc/pastposix-functions/bzero.texi: Renamed from
38872         doc/posix-functions/bzero.texi.
38873         * doc/pastposix-functions/ecvt.texi: Renamed from
38874         doc/posix-functions/ecvt.texi.
38875         * doc/pastposix-functions/fcvt.texi: Renamed from
38876         doc/posix-functions/fcvt.texi.
38877         * doc/pastposix-functions/ftime.texi: Renamed from
38878         doc/posix-functions/ftime.texi.
38879         * doc/pastposix-functions/gcvt.texi: Renamed from
38880         doc/posix-functions/gcvt.texi.
38881         * doc/pastposix-functions/getcontext.texi: Renamed from
38882         doc/posix-functions/getcontext.texi.
38883         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
38884         doc/posix-functions/gethostbyaddr.texi.
38885         * doc/pastposix-functions/gethostbyname.texi: Renamed from
38886         doc/posix-functions/gethostbyname.texi.
38887         * doc/pastposix-functions/getwd.texi: Renamed from
38888         doc/posix-functions/getwd.texi.
38889         * doc/pastposix-functions/h_errno.texi: Renamed from
38890         doc/posix-functions/h_errno.texi.
38891         * doc/pastposix-functions/index.texi: Renamed from
38892         doc/posix-functions/index.texi.
38893         * doc/pastposix-functions/makecontext.texi: Renamed from
38894         doc/posix-functions/makecontext.texi.
38895         * doc/pastposix-functions/mktemp.texi: Renamed from
38896         doc/posix-functions/mktemp.texi.
38897         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
38898         doc/posix-functions/pthread_attr_getstackaddr.texi.
38899         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
38900         doc/posix-functions/pthread_attr_setstackaddr.texi.
38901         * doc/pastposix-functions/rindex.texi: Renamed from
38902         doc/posix-functions/rindex.texi.
38903         * doc/pastposix-functions/scalb.texi: Renamed from
38904         doc/posix-functions/scalb.texi.
38905         * doc/pastposix-functions/setcontext.texi: Renamed from
38906         doc/posix-functions/setcontext.texi.
38907         * doc/pastposix-functions/swapcontext.texi: Renamed from
38908         doc/posix-functions/swapcontext.texi.
38909         * doc/pastposix-functions/ualarm.texi: Renamed from
38910         doc/posix-functions/ualarm.texi.
38911         * doc/pastposix-functions/usleep.texi: Renamed from
38912         doc/posix-functions/usleep.texi.
38913         * doc/pastposix-functions/vfork.texi: Renamed from
38914         doc/posix-functions/vfork.texi.
38915         * doc/pastposix-functions/wcswcs.texi: Renamed from
38916         doc/posix-functions/wcswcs.texi.
38917         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
38918         (Function Substitutes): Update.
38919
38920 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38921
38922         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
38923         m4/strerror.m4.
38924
38925 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38926             Bruno Haible  <bruno@clisp.org>
38927
38928         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
38929
38930 2008-12-13  Bruno Haible  <bruno@clisp.org>
38931
38932         * modules/strtoull (Depends-on): Remove unistd.
38933
38934 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38935
38936         * modules/strtoull (Depends-on): Add stdlib.
38937
38938 2008-12-11  Simon Josefsson  <simon@josefsson.org>
38939
38940         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
38941
38942 2008-12-10  Jim Meyering  <meyering@redhat.com>
38943
38944         gl_ASSERT: don't say assertions are disabled when they're not
38945         * m4/assert.m4 (gl_ASSERT): Do not make configure report
38946         "checking whether to enable assertions... no", when they are in
38947         fact enabled.  This is solely a bug in the output of configure.
38948         In spite of saying "no", NDEBUG was not defined in that case.
38949         Also, as noted by Eric Blake, leave assertions enabled upon
38950         --enable-assert=INVALID.
38951
38952 2008-12-10  Bruno Haible  <bruno@clisp.org>
38953
38954         Change MODULES.html to refer to POSIX:2008 where possible.
38955         * MODULES.html.sh (POSIX2008_URL): New variable.
38956         (posix_headers): Remove sys/timeb, ucontext.
38957         (posix2001_headers): New variable.
38958         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
38959         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
38960         index, makecontext, mktemp, pthread_attr_getstackaddr,
38961         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
38962         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
38963         (posix2001_functions): New variable.
38964         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
38965         otherwise.
38966
38967 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38968
38969         add missing include to parse-duration.c
38970         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
38971         * modules/parse-duration (Depends-on): Add xalloc.
38972
38973         fix sed script reading maint.mk
38974         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
38975         (syntax-check-rules): Use it.
38976
38977 2008-12-09  Bruno Haible  <bruno@clisp.org>
38978
38979         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
38980         MacOS X 10.4/PowerPC.
38981         Reported by Simon Josefsson.
38982
38983 2008-12-08  Jim Meyering  <meyering@redhat.com>
38984
38985         work around mingw's lack of some S_IF definitions
38986         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
38987         Reported by Simon Josefsson.
38988
38989 2008-12-08  Bruno Haible  <bruno@clisp.org>
38990
38991         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
38992         applied to variables. Needed on MacOS X 10.4/PowerPC.
38993         Reported by Simon Josefsson.
38994
38995 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
38996         and Eric Blake  <ebb9@byu.net>
38997
38998         assert: honor --enable-assert
38999         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
39000         order to honor --enable-assert, rather than treating it as a
39001         synonym for --disable-assert.
39002
39003 2008-12-08  Jim Meyering  <meyering@redhat.com>
39004
39005         * lib/posixtm.c: Remove now-useless declaration of mktime.
39006
39007         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
39008
39009 2008-12-07  Bruno Haible  <bruno@clisp.org>
39010
39011         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
39012         test_once): Mark functions as static.
39013         * tests/test-tls.c (test_tls): Likewise.
39014
39015 2008-12-07  Bruno Haible  <bruno@clisp.org>
39016
39017         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
39018         iconv_register_autodetect.
39019
39020 2008-12-07  Jim Meyering  <meyering@redhat.com>
39021
39022         posixtm.c: avoid a warning
39023         * lib/posixtm.c (posixtime): Don't initialize tm0.
39024         It's no longer needed to placate gcc4's -Wuninitialized,
39025         and the attempt to placate would elicit a new warning.
39026
39027         unicodeio.c: mark unused parameters
39028         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
39029         (fallback_failure_callback): Likewise.
39030
39031 2008-12-07  Bruno Haible  <bruno@clisp.org>
39032
39033         * gnulib-tool (func_create_testdir): When building the tests
39034         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
39035         Reported by Simon Josefsson.
39036
39037 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39038
39039         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
39040
39041 2008-12-06  Bruno Haible  <bruno@clisp.org>
39042
39043         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
39044         Suggested by Eric Blake.
39045
39046 2008-12-06  Bruno Haible  <bruno@clisp.org>
39047
39048         Fix a c-stack test failure on MacOS X.
39049         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
39050         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
39051         handler for SIGBUS as well.
39052         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
39053         install a signal handler for SIGBUS as well.
39054         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
39055
39056 2008-12-06  Bruno Haible  <bruno@clisp.org>
39057
39058         Advocacy documentation.
39059         * doc/gnulib-intro.texi (Benefits): New section.
39060         * doc/gnulib.texi: Update.
39061
39062 2008-12-06  Bruno Haible  <bruno@clisp.org>
39063
39064         Document the 'manywarnings' module.
39065         * doc/manywarnings.texi: New file.
39066         * doc/gnulib.texi: Include it.
39067
39068 2008-12-05  Eric Blake  <ebb9@byu.net>
39069
39070         tests: silence some gcc warnings
39071         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
39072         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
39073         type mismatches.
39074
39075 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39076             Bruno Haible  <bruno@clisp.org>
39077
39078         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
39079
39080 2008-11-29  Jim Meyering  <meyering@redhat.com>
39081
39082         unicodeio.c: mark unused parameters
39083         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
39084         (fallback_failure_callback): Likewise.
39085
39086         fts: fix a thinko
39087         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
39088         (set_stat_type): Return S_IF*-valued "type" directly.
39089         Prompted by James Youngman's spotting a related bug.
39090         Confirmed by further testing through find.
39091
39092         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
39093         * lib/fts.c (D_TYPE): Define.
39094         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
39095         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
39096         (s_ifmt_shift_bits): New function.
39097         (set_stat_type): New function.
39098         (fts_build): When not calling fts_stat, call set_stat_type
39099         to propagate dirent.d_type info to fts_read caller.
39100         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
39101         fts_statp->st_mode type information may be valid.
39102
39103 2008-11-28  Simon Josefsson  <simon@josefsson.org>
39104
39105         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
39106         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
39107         <sds@gnu.org>.
39108
39109 2008-11-20  Bruno Haible  <bruno@clisp.org>
39110
39111         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
39112         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
39113         INCLUDE_NEXT.
39114         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
39115         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
39116         * modules/math (Makefile.am): Substitute
39117         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
39118         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39119
39120 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
39121             Bruno Haible  <bruno@clisp.org>
39122
39123         * lib/stdint.in.h: Define all type macros so that their expansion is
39124         a single typedef'ed token. Fixes a compilation failure in Boost which
39125         does "using ::int8_t;".
39126
39127 2008-11-18  Simon Josefsson  <simon@josefsson.org>
39128
39129         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
39130         gl_MANYWARN_ALL_GCC.
39131         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
39132         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
39133         * modules/manywarnings: New file.
39134         * MODULES.html.sh: Mention manywarnings module.
39135
39136 2008-11-18  Bruno Haible  <bruno@clisp.org>
39137
39138         * doc/gnulib-tool.texi (Unit tests): New section.
39139
39140 2008-11-18  Simon Josefsson  <simon@josefsson.org>
39141
39142         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
39143         paths like 'lib/po/foo.po'.
39144
39145 2008-11-17  Simon Josefsson  <simon@josefsson.org>
39146
39147         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
39148         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
39149
39150 2008-11-17  Simon Josefsson  <simon@josefsson.org>
39151
39152         * m4/warnings.m4: Use CPPFLAGS to really check whether the
39153         parameter works.
39154
39155 2008-11-17  Simon Josefsson  <simon@josefsson.org>
39156
39157         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
39158
39159 2008-11-17  Bruce Korb  <bkorb@gnu.org>
39160
39161         * modules/parse-duration-tests: New file.
39162         * tests/test-parse-duration.sh: New file.
39163         * tests/test-parse-duration.c: New file.
39164
39165         New module 'parse-duration'.
39166         * lib/parse-duration.h: New file.
39167         * lib/parse-duration.c: New file.
39168         * modules/parse-duration: New file.
39169
39170 2008-11-17  Bruno Haible  <bruno@clisp.org>
39171
39172         * tests/test-select-out.sh: Comment out the first pipe test.
39173         Reported by Simon Josefsson.
39174
39175 2008-11-17  Bruno Haible  <bruno@clisp.org>
39176
39177         * modules/getaddrinfo (Depends-on): Add servent, hostent.
39178         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
39179         gl_HOSTENT.
39180
39181 2008-11-17  Bruno Haible  <bruno@clisp.org>
39182
39183         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
39184         -lnetwork and -lnet. Needed for Haiku and BeOS.
39185
39186 2008-11-16  Bruno Haible  <bruno@clisp.org>
39187
39188         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
39189
39190 2008-11-16  Bruno Haible  <bruno@clisp.org>
39191
39192         Avoid test failure on Haiku.
39193         * tests/test-fsync.c: Include <errno.h>.
39194         (main): Don't require that fsync (0) fails.
39195
39196 2008-11-15  Bruno Haible  <bruno@clisp.org>
39197
39198         New module 'hostent'.
39199         * modules/hostent: New file.
39200         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
39201
39202 2008-11-15  Bruno Haible  <bruno@clisp.org>
39203
39204         New module 'servent'.
39205         * modules/servent: New file.
39206         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
39207
39208 2008-11-15  Bruno Haible  <bruno@clisp.org>
39209
39210         Avoid generating same test program with two different rules.
39211         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
39212         test-frexp to test-frexp-nolibm.
39213         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
39214         test-frexpl to test-frexpl-nolibm.
39215
39216 2008-11-15  Bruno Haible  <bruno@clisp.org>
39217
39218         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
39219         $(FREXPL_LIBM).
39220
39221 2008-11-15  Bruno Haible  <bruno@clisp.org>
39222
39223         * lib/netdb.in.h: Activate the definitions also when the system's
39224         <netdb.h> has 'struct addrinfo'.
39225         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
39226         EAI_OVERFLOW or AI_NUMERICSERV.
39227         * doc/posix-headers/netdb.texi: Document the problem.
39228
39229 2008-11-15  Bruno Haible  <bruno@clisp.org>
39230
39231         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
39232
39233         Make the 'sched' module work on platforms where <sched.h> exists but
39234         is incomplete (such as Haiku).
39235         * lib/sched.in.h; Include the system's <sched.h> if it exists.
39236         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
39237         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
39238         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
39239         HAVE_STRUCT_SCHED_PARAM.
39240         * modules/sched (Depends-on): Add include_next.
39241         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
39242         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
39243         * doc/posix-headers/sched.texi: Document the issue.
39244
39245 2008-11-13  Jim Meyering  <meyering@redhat.com>
39246
39247         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
39248         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
39249         test would fail due to the difference in the Report bugs to ...
39250         line.  The expected address is empty, "<>", while the actual
39251         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
39252
39253 2008-11-12  Bruno Haible  <bruno@clisp.org>
39254
39255         lstat: don't compile lstat.c on systems lacking lstat
39256         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
39257         which don't have lstat; this is handled by lib/sys_stat.in.h already.
39258         Reported by Daniel P. Berrange via Jim Meyering.
39259
39260 2008-11-12  Jim Meyering  <meyering@redhat.com>
39261
39262         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
39263
39264 2008-11-12  Simon Josefsson  <simon@josefsson.org>
39265
39266         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
39267         instead.
39268
39269 2008-11-12  Bruno Haible  <bruno@clisp.org>
39270
39271         * lib/unicodeio.c: Include unistr.h.
39272         (utf8_wctomb): Remove function.
39273         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
39274
39275 2008-11-12  Simon Josefsson  <simon@josefsson.org>
39276
39277         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
39278         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
39279         <bruno@clisp.org>.
39280         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
39281
39282 2008-11-12  Simon Josefsson  <simon@josefsson.org>
39283
39284         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
39285         * doc/gnulib.texi: Add section for warnings.
39286
39287 2008-11-11  Bruno Haible  <bruno@clisp.org>
39288
39289         * lib/sockets.h: Add a comment.
39290
39291 2008-11-11  Karl Berry  <karl@gnu.org>
39292
39293         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
39294
39295 2008-11-11  Eric Blake  <ebb9@byu.net>
39296
39297         fdl.texi: avoid git symlinks
39298         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
39299
39300 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
39301
39302         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
39303
39304 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
39305
39306         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
39307         (gl_WARN_ADD): Substitute $2 if literal.
39308
39309 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
39310
39311         * m4/warning.m4: Remove.
39312
39313 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
39314
39315         * m4/warnings.m4: Almost complete rewrite. :-)
39316
39317 2008-11-10  Simon Josefsson  <simon@josefsson.org>
39318
39319         * modules/warnings: New module.
39320         * m4/warnings.m4: New file.
39321         * MODULES.html.sh: Mention warnings module.
39322         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
39323         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39324
39325 2008-11-10  Eric Blake  <ebb9@byu.net>
39326
39327         fdl.texi: make a symlink to the latest version
39328         * doc/standards.texi: Revert today's earlier change.
39329         * doc/fdl-1.2.texi: Rename from old fdl.texi...
39330         * doc/fdl.texi: ...and replace this with a symlink to the newer
39331         fdl-1.3.texi.
39332
39333 2008-11-10  Bruno Haible  <bruno@clisp.org>
39334
39335         * tests/test-select-fd.c (main): Accept the result file name as fourth
39336         argument.
39337         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
39338         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
39339
39340 2008-11-10  Bruno Haible  <bruno@clisp.org>
39341
39342         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
39343         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
39344         as autoconf-substituted macros.
39345         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
39346         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
39347         gl_NETDB_H_DEFAULTS. Set these variables.
39348         * modules/netdb (Makefile.am): Substitute these variables.
39349
39350 2008-11-10  Eric Blake  <ebb9@byu.net>
39351
39352         standards.texi: include correct file for FDL 1.3
39353         * doc/standards.texi (GNU Free Documentation License): Change
39354         include file to pull in FDL 1.3, not 1.2.
39355
39356         fdl.texi: revert accidental change to license
39357         * doc/fdl.texi: This is FDL 1.2, not 1.3.
39358
39359 2008-11-10  Bruno Haible  <bruno@clisp.org>
39360
39361         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
39362         cross-compiling guesses also when the native compile gives no result.
39363
39364 2008-11-10  Bruno Haible  <bruno@clisp.org>
39365
39366         * lib/spawni.c (__spawni): Force variable into the stack.
39367
39368 2008-11-10  Bruno Haible  <bruno@clisp.org>
39369
39370         Add support for Haiku.
39371         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
39372         glibc and BeOS, but also on Haiku.
39373         * lib/fpurge.c (fpurge): Likewise.
39374         * lib/freadable.c (freadable): Likewise.
39375         * lib/freadahead.c (freadahead): Likewise.
39376         * lib/freading.c (freading): Likewise.
39377         * lib/freadptr.c (freadptr): Likewise.
39378         * lib/freadseek.c (freadptrinc): Likewise.
39379         * lib/fseeko.c (rpl_fseeko): Likewise.
39380         * lib/fseterr.c (fseterr): Likewise.
39381         * lib/fwritable.c (fwritable): Likewise.
39382         * lib/fwriting.c (fwriting): Likewise.
39383         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
39384
39385 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
39386
39387         * lib/config.charset: Treat Haiku like BeOS.
39388
39389 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
39390
39391         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
39392         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
39393
39394 2008-11-08  Bruno Haible  <bruno@clisp.org>
39395
39396         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
39397         AC_CACHE_CHECK.
39398
39399 2008-11-08  Bruno Haible  <bruno@clisp.org>
39400
39401         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
39402
39403 2008-11-08  Bruno Haible  <bruno@clisp.org>
39404
39405         * tests/test-select-fd.c: New file.
39406         * tests/test-select-in.sh: New file.
39407         * tests/test-select-out.sh: New file.
39408         * tests/test-select-stdin.c: New file.
39409         * modules/select-tests (Files): Add the new files.
39410         (Depends-on): Add gettimeofday.
39411         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
39412         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
39413         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
39414
39415 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
39416             Bruno Haible  <bruno@clisp.org>
39417
39418         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
39419
39420 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
39421
39422         * build-aux/pmccabe2html: Added support for C++ source files.
39423
39424 2008-11-05  Ben Pfaff  <blp@gnu.org>
39425
39426         Fix lib/close.c build on Windows.
39427         * modules/close (Files): Add lib/w32sock.h.
39428
39429 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
39430
39431         Accept Bison's NEWS format.
39432         * build-aux/announce-gen (print_news_deltas): Tweak
39433         $re_prefix.
39434
39435 2008-11-04  Bruno Haible  <bruno@clisp.org>
39436
39437         * modules/random_r (Maintainer): Add glibc.
39438
39439 2008-11-04  Simon Josefsson  <simon@josefsson.org>
39440
39441         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
39442         by karl@freefriends.org (Karl Berry).
39443         * doc/alloca.texi: Likewise.
39444         * doc/c-ctype.texi: Likewise.
39445         * doc/c-strcase.texi: Likewise.
39446         * doc/c-strcaseeq.texi: Likewise.
39447         * doc/c-strcasestr.texi: Likewise.
39448         * doc/c-strstr.texi: Likewise.
39449         * doc/c-strtod.texi: Likewise.
39450         * doc/c-strtold.texi: Likewise.
39451         * doc/ctime.texi: Likewise.
39452         * doc/error.texi: Likewise.
39453         * doc/fdl.texi: Likewise.
39454         * doc/gcd.texi: Likewise.
39455         * doc/getdate.texi: Likewise.
39456         * doc/gnulib-intro.texi: Likewise.
39457         * doc/gnulib-tool.texi: Likewise.
39458         * doc/gnulib.texi: Likewise.
39459         * doc/inet_ntoa.texi: Likewise.
39460         * doc/maintain.texi: Likewise.
39461         * doc/make-stds.texi: Likewise.
39462         * doc/quote.texi: Likewise.
39463         * doc/regexprops-generic.texi: Likewise.
39464         * doc/standards.texi: Likewise.
39465         * doc/verify.texi: Likewise.
39466         * doc/visibility.texi: Likewise.
39467         * doc/gnulib.texi (GNU Free Documentation License): Include
39468         fdl-1.3.texi instead of fdl.texi.
39469
39470 2008-11-04  Simon Josefsson  <simon@josefsson.org>
39471
39472         * doc/fdl-1.3.texi: New file, from
39473         <http://www.gnu.org/licenses/fdl-1.3.texi>.
39474         * modules/fdl-1.3: Add.
39475         * MODULES.html.sh: Add fdl-1.3.
39476
39477 2008-11-03  Bruno Haible  <bruno@clisp.org>
39478
39479         Make determination of absolute name of header file work with AIX xlc.
39480         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
39481         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
39482         preprocessing.
39483         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39484         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
39485
39486 2008-11-03  Simon Josefsson  <simon@josefsson.org>
39487
39488         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
39489         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
39490         <ludo@gnu.org>.
39491
39492 2008-11-02  Bruno Haible  <bruno@clisp.org>
39493
39494         Mark 'strpbrk' obsolete.
39495         * modules/strpbrk (Status, Notice): New sections.
39496         * modules/strtok_r (Depends-on): Add strpbrk.
39497
39498 2008-11-02  Bruno Haible  <bruno@clisp.org>
39499
39500         Mark 'strdup' obsolete.
39501         * modules/strdup (Status, Notice): New sections.
39502         * modules/findprog (Depends-on): Add strdup.
39503         * modules/getaddrinfo (Depends-on): Likewise.
39504         * modules/localename (Depends-on): Likewise.
39505         * modules/relocatable-lib (Depends-on): Likewise.
39506         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
39507         * modules/relocatable-prog (Depends-on): Likewise.
39508         * modules/trim (Depends-on): Likewise.
39509         * modules/unictype/gen-ctype (Depends-on): Likewise.
39510         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
39511
39512 2008-11-02  Bruno Haible  <bruno@clisp.org>
39513
39514         Mark 'strcspn' obsolete.
39515         * modules/strcspn (Status, Notice): New sections.
39516
39517 2008-11-02  Bruno Haible  <bruno@clisp.org>
39518
39519         Mark 'rmdir' obsolete.
39520         * modules/rmdir (Status, Notice): New sections.
39521         * modules/clean-temp (Depends-on): Add rmdir.
39522         * modules/openat (Depends-on): Likewise.
39523
39524 2008-11-02  Bruno Haible  <bruno@clisp.org>
39525
39526         Mark 'raise' obsolete.
39527         * modules/raise (Status, Notice): New sections.
39528         (Include): Specify <signal.h>.
39529         * modules/stdio (Depends-on): Add raise.
39530         * modules/write (Depends-on): Likewise.
39531
39532 2008-11-02  Bruno Haible  <bruno@clisp.org>
39533
39534         Mark 'memset' obsolete.
39535         * modules/memset (Status, Notice): New sections.
39536
39537 2008-11-02  Bruno Haible  <bruno@clisp.org>
39538
39539         Mark 'memmove' obsolete.
39540         * modules/memmove (Status, Notice): New sections.
39541         * modules/argp (Depends-on): Add memmove.
39542         * modules/argz (Depends-on): Likewise.
39543         * modules/canonicalize (Depends-on): Likewise.
39544         * modules/canonicalize-lgpl (Depends-on): Likewise.
39545         * modules/fts (Depends-on): Likewise.
39546         * modules/getcwd (Depends-on): Likewise.
39547         * modules/human (Depends-on): Likewise.
39548         * modules/regex (Depends-on): Likewise.
39549         * modules/striconveh (Depends-on): Likewise.
39550         * modules/trim (Depends-on): Likewise.
39551         * modules/unistr/u8-move (Depends-on): Likewise.
39552         * modules/unistr/u16-move (Depends-on): Likewise.
39553         * modules/unistr/u32-move (Depends-on): Likewise.
39554
39555 2008-11-02  Bruno Haible  <bruno@clisp.org>
39556
39557         Mark 'memcpy' obsolete.
39558         * modules/memcpy (Status, Notice): New sections.
39559
39560 2008-11-02  Bruno Haible  <bruno@clisp.org>
39561
39562         Mark 'memcmp' obsolete.
39563         * modules/memcmp (Status, Notice): New sections.
39564         * modules/argmatch (Depends-on): Add memchr.
39565         * modules/backupfile (Depends-on): Likewise.
39566         * modules/c-strcasestr (Depends-on): Likewise.
39567         * modules/crypto/des (Depends-on): Likewise.
39568         * modules/csharpcomp (Depends-on): Likewise.
39569         * modules/fnmatch (Depends-on): Likewise.
39570         * modules/git-merge-changelog (Depends-on): Likewise.
39571         * modules/isnand (Depends-on): Likewise.
39572         * modules/isnand-nolibm (Depends-on): Likewise.
39573         * modules/isnanf (Depends-on): Likewise.
39574         * modules/isnanf-nolibm (Depends-on): Likewise.
39575         * modules/isnanl (Depends-on): Likewise.
39576         * modules/isnanl-nolibm (Depends-on): Likewise.
39577         * modules/mbchar (Depends-on): Likewise.
39578         * modules/memcoll (Depends-on): Likewise.
39579         * modules/quotearg (Depends-on): Likewise.
39580         * modules/regex (Depends-on): Likewise.
39581         * modules/relocatable-prog (Depends-on): Likewise.
39582         * modules/same (Depends-on): Likewise.
39583         * modules/signbit (Depends-on): Likewise.
39584         * modules/strcasestr-simple (Depends-on): Likewise.
39585         * modules/unictype/gen-ctype (Depends-on): Likewise.
39586         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
39587         * modules/uniname/uniname (Depends-on): Likewise.
39588         * modules/unistr/u8-cmp (Depends-on): Likewise.
39589
39590 2008-11-02  Bruno Haible  <bruno@clisp.org>
39591
39592         Mark 'memchr' obsolete.
39593         * modules/memchr (Status, Notice): New sections.
39594         * modules/argp (Depends-on): Add memchr.
39595         * modules/base64 (Depends-on): Likewise.
39596         * modules/c-strcasestr (Depends-on): Likewise.
39597         * modules/chdir-long (Depends-on): Likewise.
39598         * modules/fnmatch (Depends-on): Likewise.
39599         * modules/getsubopt (Depends-on): Likewise.
39600         * modules/git-merge-changelog (Depends-on): Likewise.
39601         * modules/glob (Depends-on): Likewise.
39602         * modules/strcasestr-simple (Depends-on): Likewise.
39603         * modules/strnlen (Depends-on): Likewise.
39604
39605 2008-11-02  Bruno Haible  <bruno@clisp.org>
39606
39607         Mark 'atexit' obsolete.
39608         * modules/atexit (Status, Notice): New sections.
39609         * modules/chdir-long (Depends-on): Add atexit.
39610         * modules/wait-process (Depends-on): Likewise.
39611
39612 2008-11-02  Bruno Haible  <bruno@clisp.org>
39613
39614         * gnulib-tool: New option --with-obsolete.
39615         (func_usage): Document it.
39616         (func_modules_transitive_closure): Drop obsolete dependencies if
39617         incobsolete is not true.
39618         (func_import): Read and save the incobsolete variable to the cache.
39619
39620 2008-11-02  Bruno Haible  <bruno@clisp.org>
39621
39622         * modules/TEMPLATE-EXTENDED: New field 'Status'.
39623         * gnulib-tool: New option --extract-status.
39624         (func_usage): Document it.
39625         (sed_extract_prog): Recognize it.
39626         (func_get_status): New function.
39627
39628 2008-10-30  Simon Josefsson  <simon@josefsson.org>
39629
39630         * modules/sockets (License): Change from LGPL to LGPLv2+.
39631
39632 2008-10-28  Simon Josefsson  <simon@josefsson.org>
39633
39634         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
39635
39636 2008-10-28  Simon Josefsson  <simon@josefsson.org>
39637
39638         * MODULES.html.sh (Support for systems lacking POSIX:2001):
39639         Mention times and sys_times.
39640         * modules/sys_times, modules/sys_times-tests: New modules.
39641         * modules/times, modules/times-tests: Likewise
39642         * m4/sys_times_h.m4: New file.
39643         * lib/sys_times.in.h: Likewise
39644         * lib/times.c: Likewise.
39645         * tests/test-sys_times.c: Likewise.
39646         * tests/test-times.c: Likewise.
39647         * doc/posix-headers/sys_times.texi: Update.
39648         * doc/posix-functions/times.texi: Update.
39649
39650 2008-10-28  Jim Meyering  <meyering@redhat.com>
39651
39652         * modules/tempname (Depends-on): Add lstat.
39653
39654         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
39655
39656 2008-10-28  Simon Josefsson  <simon@josefsson.org>
39657
39658         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
39659         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
39660         using idiom used elsewhere in gnulib.
39661
39662 2008-10-27  Jim Meyering  <meyering@redhat.com>
39663
39664         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
39665
39666 2008-10-27  Simon Josefsson  <simon@josefsson.org>
39667
39668         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
39669         TESTS_ENVIRONMENT, for shell scripts that needs to call built
39670         programs.
39671         * tests/test-argp-2.sh: Use $EXEEXT when needed.
39672
39673 2008-10-27  Simon Josefsson  <simon@josefsson.org>
39674
39675         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
39676
39677 2008-10-27  Bruno Haible  <bruno@clisp.org>
39678
39679         * tests/test-lstat.c: Include <stdio.h>.
39680
39681 2008-10-27  Simon Josefsson  <simon@josefsson.org>
39682
39683         * modules/lstat-tests: New module.
39684         * tests/test-lstat.c: New file.
39685
39686 2008-10-26  Jim Meyering  <meyering@redhat.com>
39687
39688         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
39689
39690 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39691             Bruno Haible  <bruno@clisp.org>
39692
39693         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
39694         * modules/configmake (Include): Add a note that the include must come
39695         after all system headers.
39696         * lib/javaversion.c: Include configmake.h after all other includes.
39697
39698 2008-10-26  Bruno Haible  <bruno@clisp.org>
39699
39700         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
39701         HAVE_STRUCT_RANDOM_DATA to 1.
39702         (gl_STDLIB_H): Simplify.
39703
39704 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39705
39706         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
39707         substitute HAVE_STRUCT_RANDOM_DATA.
39708         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
39709         random_data.
39710         * modules/stdlib (Makefile.am): Substitute
39711         HAVE_STRUCT_RANDOM_DATA.
39712
39713 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39714
39715         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
39716         * doc/gnulib-intro.texi (Copyright): Likewise.
39717
39718 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39719
39720         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
39721         findings.
39722
39723 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
39724             Bruno Haible  <bruno@clisp.org>
39725
39726         * lib/unistd.in.h: Include <winsock2.h>.
39727         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
39728         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
39729         Provide dummy declarations.
39730         (gethostname): Override.
39731         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
39732         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
39733         gl_PREREQ_SYS_H_WINSOCK2.
39734         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
39735         * doc/posix-functions/gethostname.texi: More details.
39736
39737 2008-10-25  Bruno Haible  <bruno@clisp.org>
39738
39739         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
39740         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
39741         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
39742
39743         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
39744         here ...
39745         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
39746         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
39747         gl_UNISTD_H_DEFAULTS.
39748
39749 2008-10-25  Eric Blake  <ebb9@byu.net>
39750
39751         signbit: avoid spurious compiler failure
39752         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
39753         declarations inside function.
39754
39755 2008-10-24  Simon Josefsson  <simon@josefsson.org>
39756             Bruno Haible  <bruno@clisp.org>
39757
39758         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
39759         * modules/random_r (Depends-on): Add stdint.
39760
39761 2008-10-24  Bruno Haible  <bruno@clisp.org>
39762
39763         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
39764         Eggert.
39765         * modules/strerror (License): Likewise.
39766
39767 2008-10-24  Jim Meyering  <meyering@redhat.com>
39768
39769         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
39770         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
39771
39772 2008-10-24  Eric Blake  <ebb9@byu.net>
39773
39774         getgroups: fix compilation when getgroups is available
39775         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
39776         but with <config.h> override of getgroups disabled.
39777
39778 2008-10-24  Simon Josefsson  <simon@josefsson.org>
39779
39780         * doc/gnulib.texi (Header files): Add note about C++ problems.
39781         Explained by Bruno Haible <bruno@clisp.org>.
39782
39783 2008-10-23  Bruno Haible  <bruno@clisp.org>
39784
39785         Define a dummy SA_NODEFER macro on Interix.
39786         * lib/signal.in.h (SA_NODEFER): Define fallback.
39787         Reported by Aleksey Cheusov <cheusov@tut.by> via
39788         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
39789
39790 2008-10-23  Bruno Haible  <bruno@clisp.org>
39791
39792         * modules/freadahead (License): Change to LGPLv2+.
39793         Suggested by Simon Josefsson.
39794
39795 2008-10-23  Jim Meyering  <meyering@redhat.com>
39796
39797         random_r: new module
39798         * modules/random_r: New file.
39799         * m4/random_r.m4: New file.
39800         * lib/random_r.c: New file, from glibc.
39801         * modules/random_r-tests: New file.
39802         * tests/test-random_r.c: New file.
39803         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
39804          Declare.
39805         (RAND_MAX): Define.
39806         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
39807         * modules/stdlib: Substitute them, too.
39808         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
39809         * doc/glibc-functions/initstate_r.texi: Mention the new module.
39810         * doc/glibc-functions/random_r.texi: Likewise.
39811         * doc/glibc-functions/setstate_r.texi: Likewise.
39812         * doc/glibc-functions/srandom_r.texi: Likewise.
39813         * config/srclist.txt: Mention it.
39814
39815 2008-10-23  David Lutterkort  <lutter@redhat.com>
39816
39817         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
39818         link requirement
39819
39820 2008-10-23  Jim Meyering  <meyering@redhat.com>
39821
39822         selinux-h: mark parameters of stub functions as intentionally unused
39823         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
39824         * lib/se-context.in.h: Likewise.
39825
39826 2008-10-22  Simon Josefsson  <simon@josefsson.org>
39827
39828         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
39829
39830 2008-10-22  Simon Josefsson  <simon@josefsson.org>
39831
39832         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
39833
39834 2008-10-22  Eric Blake  <ebb9@byu.net>
39835
39836         glthread/thread: avoid compiler warning
39837         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
39838         Add unreachable abort to silence compiler.
39839
39840 2008-10-22  Eric Blake  <ebb9@byu.net>
39841
39842         netdb: also supply struct addrinfo for cygwin 1.5.x
39843         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
39844         older cygwin.
39845         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
39846         cygwin.
39847         * doc/posix-headers/netdb.texi (netdb.h): Document this.
39848
39849 2008-10-22  Bruno Haible  <bruno@clisp.org>
39850
39851         * users.txt: Update entry about pspp.
39852
39853 2008-10-21  Bruno Haible  <bruno@clisp.org>
39854
39855         Simplification.
39856         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
39857         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
39858
39859         Simplification.
39860         * lib/ioctl.c (ioctl): Don't undefine.
39861         * lib/socket.c (socket): Don't undefine.
39862
39863         Remove unused module indicator macros.
39864         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
39865         GNULIB_$1 as a C macro.
39866
39867         * doc/posix-functions/close.texi: Undo last change.
39868         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
39869         Windows platforms.
39870
39871 2008-10-21  Bruno Haible  <bruno@clisp.org>
39872
39873         Add gethostname() declaration to <unistd.h>.
39874         * lib/unistd.in.h (gethostname): New declaration.
39875         * lib/gethostname.c: Include <unistd.h>.
39876         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
39877         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
39878         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
39879         and HAVE_GETHOSTNAME.
39880         * modules/gethostname (Depends-on): Add unistd.
39881         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39882         (Include): Specify <unistd.h>.
39883         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
39884         HAVE_GETHOSTNAME.
39885         * tests/test-gethostname.c: Include <unistd.h> first.
39886
39887 2008-10-21  Bruno Haible  <bruno@clisp.org>
39888
39889         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
39890         * modules/select-tests (Depends-on): Likewise.
39891         Reported by Simon Josefsson.
39892
39893 2008-10-21  Simon Josefsson  <simon@josefsson.org>
39894
39895         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
39896         * lib/accept.c: New file, based on winsock.c.
39897         * lib/bind.c: New file, based on winsock.c.
39898         * lib/connect.c: New file, based on winsock.c.
39899         * lib/getpeername.c: New file, based on winsock.c.
39900         * lib/getsockname.c: New file, based on winsock.c.
39901         * lib/getsockopt.c: New file, based on winsock.c.
39902         * lib/ioctl.c: New file, based on winsock.c.
39903         * lib/listen.c: New file, based on winsock.c.
39904         * lib/recv.c: New file, based on winsock.c.
39905         * lib/recvfrom.c: New file, based on winsock.c.
39906         * lib/send.c: New file, based on winsock.c.
39907         * lib/sendto.c: New file, based on winsock.c.
39908         * lib/setsockopt.c: New file, based on winsock.c.
39909         * lib/shutdown.c: New file, based on winsock.c.
39910         * lib/socket.c: New file, based on winsock.c.
39911         * lib/w32sock.h: New file, based on winsock.c.
39912         * lib/winsock.c: Remove file.
39913         * modules/accept: Likewise.
39914         * modules/bind: Likewise.
39915         * modules/connect: Likewise.
39916         * modules/getpeername: Likewise.
39917         * modules/getsockname: Likewise.
39918         * modules/getsockopt: Likewise.
39919         * modules/ioctl: Likewise.
39920         * modules/listen: Likewise.
39921         * modules/recv: Likewise.
39922         * modules/recvfrom: Likewise.
39923         * modules/send: Likewise.
39924         * modules/sendto: Likewise.
39925         * modules/setsockopt: Likewise.
39926         * modules/shutdown: Likewise.
39927         * modules/socket: Use socket.c instead of winsock.c.
39928         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
39929         * doc/posix-functions/accept.texi: Doc fix.
39930         * doc/posix-functions/bind.texi: Doc fix.
39931         * doc/posix-functions/close.texi: Doc fix.
39932         * doc/posix-functions/connect.texi: Doc fix.
39933         * doc/posix-functions/getpeername.texi: Doc fix.
39934         * doc/posix-functions/getsockname.texi: Doc fix.
39935         * doc/posix-functions/getsockopt.texi: Doc fix.
39936         * doc/posix-functions/ioctl.texi: Doc fix.
39937         * doc/posix-functions/listen.texi: Doc fix.
39938         * doc/posix-functions/recv.texi: Doc fix.
39939         * doc/posix-functions/recvfrom.texi: Doc fix.
39940         * doc/posix-functions/send.texi: Doc fix.
39941         * doc/posix-functions/sendto.texi: Doc fix.
39942         * doc/posix-functions/setsockopt.texi: Doc fix.
39943         * doc/posix-functions/shutdown.texi: Doc fix.
39944         * doc/posix-functions/socket.texi: Doc fix.
39945
39946 2008-10-20  Bruno Haible  <bruno@clisp.org>
39947
39948         Take into account the role of SIGABRT_COMPAT on Windows 2008.
39949         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
39950         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
39951         as an alias for SIGABRT.
39952         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
39953         (sigaction): Map it to SIGABRT.
39954         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
39955
39956 2008-10-20  Bruno Haible  <bruno@clisp.org>
39957
39958         * lib/fts.c: Don't include lstat.h.
39959         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
39960
39961         Move the lstat() declaration to <sys/stat.h>.
39962         * lib/lstat.h: Remove file.
39963         * lib/sys_stat.in.h: Add special invocation convention.
39964         (lstat): New declaration.
39965         * lib/lstat.c (orig_lstat): New function.
39966         (rpl_lstat): Use orig_lstat instead of lstat.
39967         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
39968         AC_C_INLINE. Set REPLACE_LSTAT.
39969         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
39970         and REPLACE_LSTAT.
39971         * modules/lstat (Files): Remove lib/lstat.h.
39972         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
39973         (Include): Specify <sys/stat.h> instead of lstat.h.
39974         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
39975         REPLACE_LSTAT.
39976         * NEWS: Mention the change.
39977
39978 2008-10-20  Bruno Haible  <bruno@clisp.org>
39979
39980         * modules/posix_spawn-tests: New file.
39981         * tests/test-posix_spawn3.c: New file.
39982
39983 2008-10-20  Bruno Haible  <bruno@clisp.org>
39984
39985         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
39986         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
39987         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
39988         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
39989         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
39990
39991 2008-10-20  Bruno Haible  <bruno@clisp.org>
39992
39993         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
39994         of posix_spawn on AIX 5.3.
39995
39996 2008-10-20  Bruno Haible  <bruno@clisp.org>
39997
39998         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
39999
40000 2008-10-20  Bruno Haible  <bruno@clisp.org>
40001
40002         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
40003         of AC_LANG_PROGRAM.
40004
40005 2008-10-20  Simon Josefsson  <simon@josefsson.org>
40006
40007         * lib/netdb.in.h: Don't define GNU specific constants until they
40008         are supported or needed.  Reported by Bruno Haible
40009         <bruno@clisp.org>.
40010
40011 2008-10-20  Simon Josefsson  <simon@josefsson.org>
40012
40013         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
40014
40015 2008-10-20  Simon Josefsson  <simon@josefsson.org>
40016
40017         * lib/getaddrinfo.h: Remove file.
40018         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
40019         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
40020         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
40021         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
40022         * modules/netdb: Substitute GNULIB_GETADDRINFO.
40023         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
40024         * tests/test-getaddrinfo.c: Likewise.
40025         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
40026         * NEWS: Mention change.
40027
40028 2008-10-19  Bruno Haible  <bruno@clisp.org>
40029
40030         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
40031
40032 2008-10-19  Bruno Haible  <bruno@clisp.org>
40033
40034         * lib/wait-process.c: Include simply <sys/wait.h>.
40035         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
40036         WIFSTOPPED): Remove fallback definitions.
40037         * modules/wait-process (Depends-on): Add sys_wait.
40038
40039         New module 'sys_wait'.
40040         * modules/sys_wait: New file.
40041         * lib/sys_wait.in.h: New file, partially copied from
40042         lib/wait-process.c.
40043         * m4/sys_wait_h.m4: New file.
40044         * doc/posix-headers/sys_wait.texi: Mention the new module.
40045
40046 2008-10-19  Bruno Haible  <bruno@clisp.org>
40047
40048         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
40049
40050 2008-10-19  Bruno Haible  <bruno@clisp.org>
40051
40052         Assume that waitpid() fills an 'int' status, not a 'union wait'.
40053         * lib/wait-process.c (WAIT_T): Remove type.
40054         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
40055         (wait_subprocess): Update.
40056
40057 2008-10-19  Bruno Haible  <bruno@clisp.org>
40058
40059         New module 'atoll'.
40060         * modules/atoll: New file.
40061         * lib/stdlib.in.h (atoll): New declaration.
40062         * lib/atoll.c: New file, from glibc with modifications.
40063         * m4/atoll.m4: New file.
40064         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
40065         HAVE_ATOLL.
40066         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
40067         * doc/posix-functions/atoll.texi: Mention the new module.
40068
40069 2008-10-19  Bruno Haible  <bruno@clisp.org>
40070
40071         Add strtoull() declaration to <stdlib.h>.
40072         * lib/stdlib.in.h (strtoull): New declaration.
40073         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
40074         Set HAVE_STRTOULL.
40075         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
40076         HAVE_STRTOULL.
40077         * modules/strtoull (Depends-on): Add stdlib.
40078         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40079         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
40080         HAVE_STRTOULL.
40081
40082 2008-10-19  Bruno Haible  <bruno@clisp.org>
40083
40084         Add strtoll() declaration to <stdlib.h>.
40085         * lib/stdlib.in.h (strtoll): New declaration.
40086         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
40087         Set HAVE_STRTOLL.
40088         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
40089         HAVE_STRTOLL.
40090         * modules/strtoll (Depends-on): Add stdlib.
40091         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40092         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
40093
40094 2008-10-19  Bruno Haible  <bruno@clisp.org>
40095
40096         * modules/bcopy (Depends-on): Add strings.
40097         (Include): Specify <strings.h>.
40098
40099 2008-10-19  Bruno Haible  <bruno@clisp.org>
40100
40101         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
40102
40103 2008-10-19  Bruno Haible  <bruno@clisp.org>
40104
40105         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
40106         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
40107         mingw.
40108
40109 2008-10-19  Bruno Haible  <bruno@clisp.org>
40110
40111         * lib/atanl.c: Don't include isnanl.h.
40112         * lib/cosl.c: Likewise.
40113         * lib/ldexpl.c: Likewise.
40114         * lib/logl.c: Likewise.
40115         * lib/sinl.c: Likewise.
40116         * lib/sqrtl.c: Likewise.
40117         * lib/tanl.c: Likewise.
40118
40119         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
40120         * lib/isnanf.h: Remove file.
40121         * lib/isnand.h: Remove file.
40122         * lib/isnanl.h: Remove file.
40123         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
40124         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
40125         macros.
40126         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
40127         HAVE_ISNANF, don't define it as a C macro.
40128         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
40129         HAVE_ISNAND, don't define it as a C macro.
40130         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
40131         HAVE_ISNANL, don't define it as a C macro.
40132         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
40133         HAVE_ISNAN[FDL].
40134         * modules/isnanf (Files): Remove lib/isnanf.h.
40135         (Depends-on): Add math.
40136         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
40137         (Include): Specify <math.h> instead of isnanf.h.
40138         * modules/isnand (Files): Remove lib/isnand.h.
40139         (Depends-on): Add math.
40140         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
40141         (Include): Specify <math.h> instead of isnand.h.
40142         * modules/isnanl (Files): Remove lib/isnanl.h.
40143         (Depends-on): Add math.
40144         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
40145         (Include): Specify <math.h> instead of isnanl.h.
40146         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
40147         HAVE_ISNAN[FDL].
40148         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
40149         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
40150         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
40151         * NEWS: Mention the change.
40152
40153 2008-10-18  Bruno Haible  <bruno@clisp.org>
40154
40155         Add getusershell(), setusershell(), endusershell() declarations to
40156         <unistd.h>.
40157         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
40158         declarations.
40159         * lib/getusershell.c: Include unistd.h.
40160         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
40161         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
40162         HAVE_GETUSERSHELL.
40163         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
40164         and HAVE_GETUSERSHELL.
40165         * modules/getusershell (Depends-on): Add unistd, extensions.
40166         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40167         (Include): Specify <unistd.h>.
40168         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
40169         HAVE_GETUSERSHELL.
40170
40171 2008-10-18  Bruno Haible  <bruno@clisp.org>
40172
40173         Add a getloadavg() declaration to <stdlib.h>.
40174         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
40175         getloadavg declaration.
40176         (getloadavg): New declaration.
40177         * lib/getloadavg.c: Include <stdlib.h> first.
40178         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
40179         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
40180         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
40181         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
40182         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
40183         * modules/getloadavg (Depends-on): Add stdlib, extensions.
40184         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40185         (Include): Specify <stdlib.h>.
40186         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
40187         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
40188
40189 2008-10-18  Bruno Haible  <bruno@clisp.org>
40190
40191         * lib/dirchownmod.c: Don't include lchmod.h.
40192
40193         Move the lchmod() declaration to <sys/stat.h>.
40194         * lib/lchmod.h: Remove file.
40195         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
40196         (lchmod): New declaration, moved here from lib/lchown.h.
40197         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
40198         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
40199         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
40200         and HAVE_LCHMOD.
40201         * modules/lchmod (Files): Remove lib/lchmod.h.
40202         (Depends-on): Add sys_stat, extensions.
40203         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
40204         (Include): Specify <sys/stat.h> instead of lchmod.h.
40205         * modules/sys_stat (Depends-on): Add link-warning.
40206         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
40207         definition of GL_LINK_WARNING.
40208         * NEWS: Mention the change.
40209
40210 2008-10-18  Bruno Haible  <bruno@clisp.org>
40211
40212         * lib/fchdir.c: Don't include dirfd.h.
40213         * lib/fts.c: Likewise.
40214         * lib/getcwd.c: Likewise.
40215         * lib/glob.c: Likewise.
40216
40217         Move the dirfd() declaration to <dirent.h>.
40218         * lib/dirfd.h: Remove file.
40219         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
40220         (dirfd): New declaration.
40221         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
40222         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
40223         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
40224         HAVE_DECL_DIRFD.
40225         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
40226         HAVE_DECL_DIRFD.
40227         * modules/dirfd (Files): Remove lib/dirfd.h.
40228         (Depends-on): Add dirent, extensions.
40229         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
40230         (Include): Specify <dirent.h> instead of dirfd.h.
40231         * modules/dirent (Depends-on): Add link-warning.
40232         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
40233         definition of GL_LINK_WARNING.
40234         * NEWS: Mention the change.
40235
40236 2008-10-18  Bruno Haible  <bruno@clisp.org>
40237
40238         Move the euidaccess() declaration to <unistd.h>.
40239         * lib/euidaccess.h: Remove file.
40240         * lib/unistd.in.h (euidaccess): New declaration.
40241         * lib/euidaccess.c: Don't include euidaccess.h.
40242         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
40243         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
40244         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
40245         and HAVE_EUIDACCESS.
40246         * modules/euidaccess (Files): Remove lib/euidaccess.h.
40247         (Depends-on): Add unistd.
40248         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40249         (Include): Specify <unistd.h> instead of euidaccess.h.
40250         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
40251         HAVE_EUIDACCESS.
40252         * NEWS: Mention the change.
40253
40254 2008-10-18  Bruno Haible  <bruno@clisp.org>
40255
40256         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
40257
40258         Move the getdomainname() declaration to <unistd.h>.
40259         * lib/getdomainname.h: Remove file.
40260         * lib/unistd.in.h (getdomainname): New declaration.
40261         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
40262         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
40263         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
40264         HAVE_GETDOMAINNAME.
40265         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40266         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
40267         * modules/getdomainname (Files): Remove lib/getdomainname.h.
40268         (Depends-on): Add unistd, extensions.
40269         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40270         (Includes): Specify <unistd.h> instead of getdomainname.h.
40271         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
40272         HAVE_GETDOMAINNAME.
40273         * NEWS: Mention the change.
40274
40275 2008-10-18  Bruno Haible  <bruno@clisp.org>
40276
40277         * modules/dirent: New file.
40278         * m4/dirent_h.m4: New file.
40279         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
40280         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
40281         * modules/fchdir (Files): Remove lib/dirent.in.h.
40282         (Depends-on): Add dirent.
40283         (Makefile.am): Move rules to modules/dirent.
40284         * doc/posix-headers/dirent.texi: Mention the new module.
40285
40286 2008-10-18  Bruno Haible  <bruno@clisp.org>
40287
40288         Avoid -Wunused-parameter warnings in public gnulib header files.
40289         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
40290         macro.
40291         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
40292
40293 2008-10-18  Bruno Haible  <bruno@clisp.org>
40294
40295         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
40296         * doc/glibc-functions/error.texi: Mention the module 'error'.
40297         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
40298         * doc/glibc-functions/getdomainname.texi: Mention the module
40299         'getdomainname'.
40300         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
40301         * doc/glibc-functions/getpagesize.texi: Mention the module
40302         'getpagesize'.
40303         * doc/glibc-functions/getusershell.texi: Mention the module
40304         'getusershell'.
40305         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
40306         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
40307         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
40308         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
40309         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
40310         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
40311         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
40312         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
40313         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
40314         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
40315         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
40316         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
40317         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
40318         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
40319
40320 2008-10-17  Bruno Haible  <bruno@clisp.org>
40321
40322         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
40323         HP-UX and IRIX, use -0.0L.
40324         * tests/test-ceill.c (minus_zero): Likewise.
40325         * tests/test-floorl.c (minus_zero): Likewise.
40326         * tests/test-frexpl.c (minus_zero): Likewise.
40327         * tests/test-isnan.c (minus_zerol): Likewise.
40328         * tests/test-isnanl.h (minus_zero): Likewise.
40329         * tests/test-ldexpl.c (minus_zero): Likewise.
40330         * tests/test-roundl.c (minus_zero): Likewise.
40331         * tests/test-signbit.c (minus_zerol): Likewise.
40332         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
40333         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
40334         * tests/test-truncl.c (minus_zero): Likewise.
40335         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
40336         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
40337         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
40338         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
40339
40340 2008-10-17  Bruno Haible  <bruno@clisp.org>
40341
40342         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
40343         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
40344         that it gets activated only for gcc >= 3.0.
40345         * lib/dirent.in.h: Likewise.
40346         * lib/errno.in.h: Likewise.
40347         * lib/fcntl.in.h: Likewise.
40348         * lib/float.in.h: Likewise.
40349         * lib/iconv.in.h: Likewise.
40350         * lib/inttypes.in.h: Likewise.
40351         * lib/locale.in.h: Likewise.
40352         * lib/math.in.h: Likewise.
40353         * lib/netdb.in.h: Likewise.
40354         * lib/netinet_in.in.h: Likewise.
40355         * lib/search.in.h: Likewise.
40356         * lib/signal.in.h: Likewise.
40357         * lib/spawn.in.h: Likewise.
40358         * lib/stdarg.in.h: Likewise.
40359         * lib/stdint.in.h: Likewise.
40360         * lib/stdio.in.h: Likewise.
40361         * lib/stdlib.in.h: Likewise.
40362         * lib/string.in.h: Likewise.
40363         * lib/strings.in.h: Likewise.
40364         * lib/sys_file.in.h: Likewise.
40365         * lib/sys_ioctl.in.h: Likewise.
40366         * lib/sys_select.in.h: Likewise.
40367         * lib/sys_socket.in.h: Likewise.
40368         * lib/sys_stat.in.h: Likewise.
40369         * lib/sys_time.in.h: Likewise.
40370         * lib/sysexits.in.h: Likewise.
40371         * lib/time.in.h: Likewise.
40372         * lib/unistd.in.h: Likewise.
40373         * lib/wchar.in.h: Likewise.
40374         * lib/wctype.in.h: Likewise.
40375         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
40376
40377 2008-10-17  Jim Meyering  <meyering@redhat.com>
40378
40379         ignore-value: don't depend on inline module
40380         * modules/ignore-value (Depends-on): Remove 'inline'.
40381         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
40382         Suggestion from Bruno Haible.
40383
40384 2008-10-17  Bruno Haible  <bruno@clisp.org>
40385
40386         New implementation of condition variables for Win32.
40387         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
40388         (gl_linked_waitqueue_t): New type.
40389         (gl_cond_t): Use it.
40390         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
40391         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
40392         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
40393         (glthread_cond_init_func, glthread_cond_wait_func,
40394         glthread_cond_timedwait_func, glthread_cond_signal_func,
40395         glthread_cond_broadcast_func, glthread_cond_destroy_func):
40396         Reimplemented on the basis of gl_linked_waitqueue_t.
40397         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
40398         gl_waitqueue_t.
40399         (gl_rwlock_t): Update.
40400         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
40401
40402 2008-10-17  Simon Josefsson  <simon@josefsson.org>
40403
40404         * modules/recvfrom (Depends-on): Add dependency on getpeername.
40405         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
40406
40407 2008-10-17  Jim Meyering  <meyering@redhat.com>
40408
40409         ignore-value: new module
40410         * modules/ignore-value: New file.
40411         * lib/ignore-value.h: New file.
40412         * MODULES.html.sh (Compiler warning management): New section,
40413         just for this module.  More to come.
40414
40415 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
40416
40417         open-safer.c: avoid 'signed and unsigned in conditional...' warning
40418         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
40419         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
40420
40421 2008-10-16  Jim Meyering  <meyering@redhat.com>
40422
40423         openat-die.c: avoid 'no previous prototype' warning
40424         * lib/openat-die.c: Include "openat.h".
40425         Reported by Reuben Thomas <rrt@sc3d.org>.
40426
40427 2008-10-16  Simon Josefsson  <simon@josefsson.org>
40428
40429         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
40430         * lib/netdb.in.h: Fix typo.
40431         Reported by Bruno Haible  <bruno@clisp.org>
40432
40433         * lib/netdb.in.h: Include sys/socket.h for platforms without
40434         netdb.h, to get structures like hostent on MinGW.
40435         * modules/netdb (Depends-on): Add sys_socket.
40436
40437 2008-10-15  Simon Josefsson  <simon@josefsson.org>
40438
40439         * modules/netdb, modules/netdb-tests: New file.
40440         * m4/netdb_h.m4: New file.
40441         * lib/netdb.in.h: Add, currently just an empty file pending
40442         definitions.
40443         * tests/test-netdb.c: New file.
40444         * doc/posix-headers/netdb.texi: Mention that we replace it if
40445         needed.
40446         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40447         netdb.
40448
40449 2008-10-15  Simon Josefsson  <simon@josefsson.org>
40450
40451         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
40452         with code.
40453
40454 2008-10-13  Bruno Haible  <bruno@clisp.org>
40455
40456         * lib/glthread/cond.c (glthread_cond_wait_func,
40457         glthread_cond_timedwait_func): Add a comment.
40458
40459 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40460
40461         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
40462         * tests/test-select.c: Likewise,
40463
40464 2008-10-13  Bruno Haible  <bruno@clisp.org>
40465
40466         * lib/glthread/cond.c (glthread_cond_wait_func,
40467         glthread_cond_timedwait_func): Fix variable name.
40468         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
40469
40470 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
40471
40472         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
40473         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
40474         struct sockaddr.sa_len.
40475         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
40476
40477 2008-10-13  Simon Josefsson  <simon@josefsson.org>
40478
40479         * build-aux/pmccabe2html: Add css and css_url parameters.
40480
40481 2008-10-12  Bruno Haible  <bruno@clisp.org>
40482
40483         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
40484         calling aclx_get.
40485         Reported by Rainer Tammer <tammer@tammer.net>.
40486
40487 2008-10-12  Bruno Haible  <bruno@clisp.org>
40488
40489         Use msvcrt aware primitives for creation/termination of Win32 threads.
40490         * lib/glthread/thread.c: Include <process.h>.
40491         (glthread_create_func): Use _beginthreadex instead of CreateThread.
40492         (wrapper_func): Update signature.
40493         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
40494
40495 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40496             Bruno Haible  <bruno@clisp.org>
40497
40498         Provide a Win32 implementation of the 'cond' module.
40499         * lib/glthread/cond.h [USE_WIN32]: New implementation.
40500         * lib/glthread/cond.c (glthread_cond_init_func,
40501         glthread_cond_wait_func, glthread_cond_timedwait_func,
40502         glthread_cond_signal_func, glthread_cond_broadcast_func,
40503         glthread_cond_destroy_func) [USE_WIN32]: New functions.
40504         * modules/cond (Dependencies): Add gettimeofday.
40505
40506 2008-10-11  Bruno Haible  <bruno@clisp.org>
40507
40508         Make sleep work on older versions of mingw.
40509         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
40510         only whether it exists.
40511         * doc/posix-functions/sleep.texi: Mention the problem with older
40512         versions of mingw.
40513
40514 2008-10-11  Bruno Haible  <bruno@clisp.org>
40515
40516         New module 'shutdown'.
40517         * modules/shutdown: New file.
40518         * lib/sys_socket.in.h (shutdown): New declaration.
40519         * lib/winsock.c (shutdown): New function.
40520         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
40521         GNULIB_SHUTDOWN.
40522         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
40523         * doc/posix-functions/shutdown.texi: Document the new module.
40524
40525 2008-10-11  Jim Meyering  <meyering@redhat.com>
40526
40527         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
40528
40529 2008-10-11  Bruno Haible  <bruno@clisp.org>
40530
40531         New module 'fclose'.
40532         * modules/fclose: New file.
40533         * lib/stdio.in.h (fclose): New declaration.
40534         * lib/fclose.c: New file.
40535         * m4/fclose.m4: New file.
40536         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
40537         REPLACE_FCLOSE.
40538         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
40539         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
40540         REPLACE_FCLOSE.
40541         * modules/close (Depends-on): fclose.
40542         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
40543
40544 2008-10-11  Bruno Haible  <bruno@clisp.org>
40545
40546         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
40547         set errno and don't call _close.
40548
40549 2008-10-10  Bruno Haible  <bruno@clisp.org>
40550
40551         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
40552         ACL, not afterwards. Fixes test failure on Cygwin.
40553
40554 2008-10-09  Ben Pfaff  <blp@gnu.org>
40555
40556         * build-aux/announce-gen: Fix gnulib version related part of usage
40557         message.  Die with a useful error message if no tarballs are
40558         found.
40559
40560 2008-10-10  Jim Meyering  <meyering@redhat.com>
40561
40562         bootstrap: use git's --depth=N option only if it's supported
40563         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
40564         recognize the --depth option.  Reported by Pádraig Brady.
40565
40566 2008-10-09  Bruno Haible  <bruno@clisp.org>
40567
40568         New module 'ioctl'.
40569         * modules/ioctl: New file.
40570         * lib/sys_socket.in.h (ioctl): Remove declaration.
40571         * lib/winsock.c: Include <sys/ioctl.h>.
40572         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
40573         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
40574         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
40575         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
40576         * doc/posix-functions/ioctl.texi: Mention the new module.
40577
40578 2008-10-09  Bruno Haible  <bruno@clisp.org>
40579
40580         New module 'sys_ioctl'.
40581         * lib/sys_ioctl.in.h: New file.
40582         * m4/sys_ioctl_h.m4: New file.
40583         * modules/sys_ioctl: New file.
40584         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
40585
40586 2008-10-09  Bruno Haible  <bruno@clisp.org>
40587
40588         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
40589         * lib/winsock.c: Include <stdarg.h>.
40590         (rpl_ioctl): Change to second argument 'int' and then varargs.
40591
40592 2008-10-09  Bruno Haible  <bruno@clisp.org>
40593
40594         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
40595         when the sys_socket module is present and the system has <winsock2.h>.
40596
40597 2008-10-09  Bruno Haible  <bruno@clisp.org>
40598
40599         * doc/posix-functions/close.texi: Mention module 'close' instead of
40600         module 'sys_socket'.
40601
40602 2008-10-09  Bruno Haible  <bruno@clisp.org>
40603
40604         * doc/glibc-headers/sys_ioctl.texi: New file.
40605         * doc/gnulib.texi: Include it.
40606
40607 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40608             Bruno Haible  <bruno@clisp.org>
40609
40610         Combine the two replacements of 'close'.
40611         * lib/sys_socket.in.h (close): Define to a reminder to include
40612         <unistd.h>.
40613         (_gl_close_fd_maybe_socket): New declaration.
40614         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
40615         * lib/winsock.c (close): Remove undefinition.
40616         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
40617         needed for the gnulib module 'close'.
40618         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
40619         define to an error symbol or to a warning, if suitable.
40620         * lib/close.c: Include <sys/socket.h>.
40621         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
40622         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
40623         UNISTD_H_HAVE_WINSOCK2_H.
40624         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
40625         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40626         UNISTD_H_HAVE_WINSOCK2_H.
40627         * modules/sys_socket (Files): Add m4/unistd_h.m4.
40628         (configure.ac): Set a module indicator.
40629         (Makefile.am): Substitute GNULIB_CLOSE.
40630         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
40631         * modules/poll-tests (Depends-on): Add close.
40632         * modules/select-tests (Depends-on): Likewise.
40633
40634 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40635             Bruno Haible  <bruno@clisp.org>
40636
40637         New module 'close'.
40638         * modules/close: New file.
40639         * lib/unistd.in.h (close): Move declaration out of the
40640         FCHDIR_REPLACEMENT scope.
40641         (_gl_unregister_fd): New declaration.
40642         * lib/close.c: New file.
40643         * lib/fchdir.c (rpl_close): Remove function.
40644         * m4/close.m4: New file.
40645         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
40646         close.
40647         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
40648         REPLACE_CLOSE.
40649         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
40650         REPLACE_CLOSE.
40651         * modules/fchdir (Depends-on): Add close.
40652
40653 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40654             Bruno Haible  <bruno@clisp.org>
40655
40656         * lib/fcntl.in.h (open): Simplify conditionals.
40657         (_gl_register_fd): New declaration.
40658         * lib/fchdir.c (rpl_open): Remove function.
40659         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
40660         also.
40661         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
40662         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
40663         open.
40664
40665 2008-10-09  Jim Meyering  <meyering@redhat.com>
40666
40667         GNUmakefile: use the more name-space-friendly "_version"
40668         * top/GNUmakefile (_dummy): Update.
40669         (_version): Rename from "version".
40670
40671 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40672             Bruno Haible  <bruno@clisp.org>
40673
40674         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
40675         rpl_close.
40676         (_gl_register_fd): New function, extracted from rpl_open.
40677         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
40678         (rpl_open, rpl_opendir): Use _gl_register_fd.
40679
40680 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40681
40682         Fix organization of 'open' replacement.
40683         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
40684         (gl_FUNC_OPEN): Use it.
40685         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
40686
40687 2008-10-08  Bruno Haible  <bruno@clisp.org>
40688
40689         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
40690
40691 2008-10-08  Simon Josefsson  <simon@josefsson.org>
40692
40693         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
40694         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
40695         listen).
40696
40697 2008-10-08  Eric Blake  <ebb9@byu.net>
40698
40699         GNUmakefile: add 'make version' target
40700         * top/GNUmakefile (_curr-ver): Split version update rules...
40701         (version): ...into a target.
40702
40703 2008-10-07  Bruno Haible  <bruno@clisp.org>
40704
40705         Use a more portable replacement expression for -0.0L.
40706         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
40707         instead of -0.0L. Fix m4 quotation.
40708
40709         * tests/test-signbit.c: Include <float.h>.
40710         (minus_zero): New variable.
40711         (test_signbitl): Use minus_zero instead of -zero.
40712         * modules/signbit-tests (Depends-on): Add float.
40713
40714         * tests/test-ceill.c: Include <float.h>.
40715         (zero): Remove variable.
40716         (minus_zero): New variable.
40717         (main): Use minus_zero instead of -zero.
40718         * modules/ceill-tests (Depends-on): Add float.
40719
40720         * tests/test-floorl.c: Include <float.h>.
40721         (zero): Remove variable.
40722         (minus_zero): New variable.
40723         (main): Use minus_zero instead of -zero.
40724         * modules/floorl-tests (Depends-on): Add float.
40725
40726         * tests/test-roundl.c: Include <float.h>.
40727         (zero): Remove variable.
40728         (minus_zero): New variable.
40729         (main): Use minus_zero instead of -zero.
40730         * modules/roundl-tests (Depends-on): Add float.
40731
40732         * tests/test-truncl.c: Include <float.h>.
40733         (zero): Remove variable.
40734         (minus_zero): New variable.
40735         (main): Use minus_zero instead of -zero.
40736         * modules/truncl-tests (Depends-on): Add float.
40737
40738         * tests/test-frexpl.c (zero): Remove variable.
40739         (minus_zero): New variable.
40740         (main): Use minus_zero instead of -zero.
40741         * modules/frexpl-tests (Depends-on): Add float.
40742
40743         * tests/test-isnan.c (zerol): Remove variable.
40744         (minus_zerol): New variable.
40745         (test_long_double): Use minus_zerol instead of -zerol.
40746         * modules/isnan-tests (Depends-on): Add float.
40747
40748         * tests/test-isnanl.h (zero): Remove variable.
40749         (minus_zero): New variable.
40750         (main): Use minus_zero instead of -zero.
40751         * modules/isnanl-nolibm-tests (Depends-on): Add float.
40752         * modules/isnanl-tests (Depends-on): Add float.
40753
40754         * tests/test-ldexpl.c (zero): Remove variable.
40755         (minus_zero): New variable.
40756         (main): Use minus_zero instead of -zero.
40757         * modules/ldexpl-tests (Depends-on): Add float.
40758
40759         * tests/test-snprintf-posix.h (zerol): Remove variable.
40760         (minus_zerol): New variable.
40761         (test_function): Use minus_zerol instead of -zerol.
40762         * modules/snprintf-posix-tests (Depends-on): Add float.
40763         * modules/vsnprintf-posix-tests (Depends-on): Add float.
40764
40765         * tests/test-sprintf-posix.h (zerol): Remove variable.
40766         (minus_zerol): New variable.
40767         (test_function): Use minus_zerol instead of -zerol.
40768         * modules/sprintf-posix-tests (Depends-on): Add float.
40769         * modules/vsprintf-posix-tests (Depends-on): Add float.
40770
40771         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
40772         (minus_zerol): New variable.
40773         (test_function): Use minus_zerol instead of -zerol.
40774         * modules/vasnprintf-posix-tests (Depends-on): Add float.
40775
40776         * tests/test-vasprintf-posix.c (zerol): Remove variable.
40777         (minus_zerol): New variable.
40778         (test_function): Use minus_zerol instead of -zerol.
40779         * modules/vasprintf-posix-tests (Depends-on): Add float.
40780
40781 2008-10-07  Simon Josefsson  <simon@josefsson.org>
40782
40783         * MODULES.html.sh (Support for building documentation): Mention
40784         pmccabe2html.  Sort entries.
40785
40786         Add pmccabe2html module, from gnupdf.
40787         * build-aux/pmccabe.css: New file.
40788         * build-aux/pmccabe2html: New file.
40789         * m4/pmccabe2html.m4: New file.
40790         * modules/pmccabe2html: New file.
40791
40792 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
40793
40794         flock: new module
40795         * MODULES.html.sh: Add to list of modules.
40796         * lib/flock.c: flock implementation for Windows and Unix systems
40797         which have fcntl.
40798         * doc/glibc-functions/flock.texi: Update documentation.
40799         * lib/sys_file.in.h: <sys/file.h> header file.
40800         * m4/flock.m4: M4 macros.
40801         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
40802         * modules/flock: flock module.
40803         * modules/flock-tests: flock tests module.
40804         * modules/sys_file: sys/file.h module.
40805         * tests/test-flock.c: test suite for flock.
40806
40807 2008-10-06  Jim Meyering  <meyering@redhat.com>
40808
40809         bootstrap: check for LT_INIT more portably still ;-)
40810         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
40811         Spotted by Bruno Haible.
40812
40813 2008-10-06  Eric Blake  <ebb9@byu.net>
40814
40815         test-signbit: avoid tripping Irix cc bug on -0.0L
40816         * tests/test-signbit.c (minus_zerol): Delete, and replace with
40817         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
40818         entire testsuite consistent and avoids an Irix 6.2 bug.
40819
40820 2008-10-05  Bruno Haible  <bruno@clisp.org>
40821             Jim Meyering  <jim@meyering.net>
40822
40823         Add an option for ignoring EPIPE during close_stdout.
40824         * lib/closeout.h: Include <stdbool.h>.
40825         (close_stdout_set_ignore_EPIPE): New declaration.
40826         * lib/closeout.c: Include <stdbool.h>.
40827         (ignore_EPIPE): New variable.
40828         (close_stdout_set_ignore_EPIPE): New function.
40829         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
40830         * lib/close-stream.c (close_stream): Mention the possible EPIPE
40831         failure.
40832         * modules/closeout (Depends-on): Add stdbool.
40833
40834 2008-10-05  Bruno Haible  <bruno@clisp.org>
40835
40836         * modules/accept: New file.
40837         * modules/bind: New file.
40838         * modules/connect: New file.
40839         * modules/getpeername: New file.
40840         * modules/getsockname: New file.
40841         * modules/getsockopt: New file.
40842         * modules/listen: New file.
40843         * modules/recv: New file.
40844         * modules/recvfrom: New file.
40845         * modules/send: New file.
40846         * modules/sendto: New file.
40847         * modules/setsockopt: New file.
40848         * modules/socket: New file.
40849         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
40850         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
40851         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
40852         the particular module is requested. Add a link warning when the
40853         particular module is not requested.
40854         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
40855         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
40856         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
40857         the particular module is requested.
40858         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
40859         gl_SYS_SOCKET_H_DEFAULTS): New macros.
40860         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
40861         * modules/sys_socket (Depends-on): Add link-warning.
40862         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
40863         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
40864         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
40865         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
40866         GL_LINK_WARNING.
40867         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
40868         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
40869         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
40870         * doc/posix-functions/getpeername.texi: Mention the new module
40871         'getpeername'.
40872         * doc/posix-functions/getsockname.texi: Mention the new module
40873         'getsockname'.
40874         * doc/posix-functions/getsockopt.texi: Mention the new module
40875         'getsockopt'.
40876         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
40877         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
40878         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
40879         * doc/posix-functions/send.texi: Mention the new module 'send'.
40880         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
40881         * doc/posix-functions/setsockopt.texi: Mention the new module
40882         'setsockopt'.
40883         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
40884         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
40885         listen, connect, accept.
40886         * modules/select-tests (Depends-on): Likewise.
40887
40888 2008-10-05  Bruno Haible  <bruno@clisp.org>
40889
40890         * lib/winsock.c (strerror): Remove unused #undef.
40891         (rpl_close): Remove unused local variable.
40892
40893         * modules/sys_socket (Depends-on); Add errno.
40894
40895 2008-10-05  Bruno Haible  <bruno@clisp.org>
40896
40897         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
40898         (select): Add a link warning when the 'select' module is not used.
40899         * modules/sys_select (Depends-on): Add link-warning.
40900         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
40901         Suggested by Paolo Bonzini.
40902
40903 2008-10-05  Jim Meyering  <meyering@redhat.com>
40904
40905         bootstrap: check for LT_INIT more portably
40906         * build-aux/bootstrap: Avoid using grep -E, since it's not
40907         portable enough.  Suggestion from Bruno Haible.
40908
40909 2008-10-05  Bruno Haible  <bruno@clisp.org>
40910
40911         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
40912         as being fixed by gnulib.
40913
40914 2008-10-05  Bruno Haible  <bruno@clisp.org>
40915
40916         * modules/select-tests: New file, mostly copied from
40917         modules/sys_select-tests.
40918         * tests/test-select.c: New file, mostly copied from
40919         tests/test-sys_select.c.
40920         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
40921         * modules/sys_select-tests (Depends-on): Remove all dependencies.
40922         (Makefile.am): Remove test_sys_select_LDADD.
40923
40924         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
40925         to an undefined symbol, for an error message.
40926         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
40927         (gl_SYS_SELECT_H_DEFAULTS): New macro.
40928         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
40929         winsock-select.c here.
40930         * modules/sys_select (Files): Remove lib/winsock-select.c.
40931         (Depends-on): Remove alloca.
40932         (Makefile.am): Substitute GNULIB_SELECT.
40933         * modules/select: New file.
40934         * doc/posix-functions/select.texi: Update.
40935
40936 2008-10-05  Bruno Haible  <bruno@clisp.org>
40937
40938         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
40939         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
40940         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
40941         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
40942         getdtablesize.
40943         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
40944         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
40945
40946 2008-10-05  Bruno Haible  <bruno@clisp.org>
40947
40948         * modules/getdtablesize-tests: New file.
40949         * tests/test-getdtablesize.c: New file.
40950
40951         New module 'getdtablesize'.
40952         * lib/unistd.in.h (getdtablesize): New declaration.
40953         * lib/getdtablesize.c: New file.
40954         * m4/getdtablesize.m4: New file.
40955         * modules/getdtablesize: New file.
40956         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40957         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
40958         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
40959         HAVE_GETDTABLESIZE.
40960         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
40961
40962 2008-10-05  Bruno Haible  <bruno@clisp.org>
40963
40964         * modules/sched (Makefile.am): Fix typo.
40965         Reported by Simon Josefsson.
40966
40967 2008-10-05  Jim Meyering  <meyering@redhat.com>
40968
40969         bootstrap: check for LT_INIT, too
40970         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
40971         are deprecated.  Suggestion from Ralf Wildenhues.
40972
40973 2008-10-05  Bruno Haible  <bruno@clisp.org>
40974
40975         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
40976         overriding them by ours.
40977         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
40978
40979 2008-10-05  Jim Meyering  <meyering@redhat.com>
40980
40981         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
40982         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
40983         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
40984
40985 2008-10-04  Bruno Haible  <bruno@clisp.org>
40986
40987         * modules/dup2 (License): Change to LGPLv2+.
40988         * modules/sleep (License): Likewise.
40989         * modules/perror (License): Likewise.
40990         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
40991         Blake.
40992         * modules/signal (License): Likewise.
40993         * modules/sigprocmask (License): Likewise.
40994         * modules/raise (License): Change to LGPLv2+, with approval by Jim
40995         Meyering.
40996
40997 2008-10-04  Bruno Haible  <bruno@clisp.org>
40998
40999         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
41000         Reported by Rainer Tammer <tammer@tammer.net>.
41001
41002 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
41003             Bruno Haible  <bruno@clisp.org>
41004
41005         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
41006         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
41007         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
41008
41009 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
41010
41011         filevercmp: new module
41012         * lib/filevercmp.h: New function filevercmp comparing version strings.
41013         * lib/filevercmp.c: Implementation of filevercmp function.
41014         * modules/filevercmp: Module metadata.
41015         * tests/test-filevercmp.c: Unit test for new module.
41016         * modules/filevercmp-tests: Unit test metadata.
41017         * MODULES.html.sh: Add filevercmp module.
41018
41019 2008-10-03  Bruno Haible  <bruno@clisp.org>
41020
41021         * lib/c-ctype.h: Add comment.
41022         Reported by Jim Meyering.
41023
41024 2008-10-02  Bruno Haible  <bruno@clisp.org>
41025
41026         * modules/posix_spawn-internal (Depends-on): Add 'open'.
41027
41028 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
41029
41030         * build-aux/bootstrap: Allow renaming bootstrap, and change the
41031         name of bootstrap.conf accordingly.
41032
41033 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
41034
41035         * build-aux/bootstrap: Install git-merge-changelog configuration
41036         items into .gitconfig if needed.
41037
41038 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
41039
41040         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
41041         git repository, and initialize/update it accordingly.
41042
41043 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
41044
41045         * modules/fsync-tests: New file.
41046         * tests/test-fsync.c: New file.
41047
41048         New module 'fsync'.
41049         * lib/fsync.c: New file.
41050         * m4/fsync.m4: New file.
41051         * modules/fsync: New file.
41052         * lib/unistd.in.h (fsync): New declaration.
41053         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
41054         GNULIB_FSYNC and HAVE_FSYNC.
41055         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
41056         * MODULES.html.sh (posix_functions): Add fsync.
41057         * doc/posix-functions/fsync.texi: Mention the new module.
41058
41059 2008-10-02  Jim Meyering  <meyering@redhat.com>
41060
41061         fts.c: sync with similar code from coreutils' remove.c
41062         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
41063         Guard also with "#if defined __linux__", since for now at least,
41064         this code is Linux-kernel-specific.
41065
41066 2008-10-02  Jim Meyering  <meyering@redhat.com>
41067
41068         fts: bug fixes
41069         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
41070         Include <sys/vfs.h>, not <sys/statfs.h>.
41071
41072         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
41073         Include <sys/vfs.h>, not <sys/statfs.h>.
41074
41075 2008-10-01  Bruno Haible  <bruno@clisp.org>
41076
41077         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
41078         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
41079         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
41080         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
41081         * doc/posix-functions/posix_spawnp.texi: Likewise.
41082         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
41083         whether posix_spawn actually works.
41084         * m4/pipe.m4 (gl_PIPE): Likewise.
41085         * modules/execute (Files): Add m4/posix_spawn.m4.
41086         * modules/pipe (Files): Add m4/posix_spawn.m4.
41087         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
41088
41089 2008-10-01  Jim Meyering  <meyering@redhat.com>
41090
41091         remove trailing spaces
41092         * NEWS: Likewise.
41093         * lib/poll.c (poll): Likewise.
41094         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
41095         * lib/winsock.c (rpl_close): Likewise.
41096         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
41097         * modules/yield: Likewise.
41098         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
41099         * tests/test-sys_select.c (connect_to_socket): Likewise.
41100
41101         fts.c: adjust a new interface to be more generally useful
41102         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
41103         (fts_build): Adjust caller.
41104
41105 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41106
41107         * modules/cond-tests: New file.
41108         * tests/test-cond.c: New file.
41109
41110 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41111             Bruno Haible  <bruno@clisp.org>
41112
41113         * modules/cond (Dependencies): Add errno, time.
41114         * lib/glthread/cond.h: Include <time.h>.
41115         (gl_cond_define, gl_cond_define_initialized): Use the same definition
41116         across platforms.
41117
41118 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41119             Bruno Haible  <bruno@clisp.org>
41120
41121         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
41122
41123 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41124             Bruno Haible  <bruno@clisp.org>
41125
41126         * modules/tls-tests (Depends-on): Add thread, yield.
41127         (configure.ac): Remove all checks.
41128         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
41129         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
41130         gl_thread_self): Remove definitions. Include glthread/thread.h and
41131         glthread/yield.h instead.
41132         (test_tls): Pass an additional NULL argument to gl_thread_join.
41133
41134 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41135             Bruno Haible  <bruno@clisp.org>
41136
41137         * modules/lock-tests (Depends-on): Add thread, yield.
41138         (configure.ac): Remove all checks.
41139         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
41140         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
41141         gl_thread_self): Remove definitions. Include glthread/thread.h and
41142         glthread/yield.h instead.
41143         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
41144         additional NULL argument to gl_thread_join.
41145
41146 2008-09-30  Bruno Haible  <bruno@clisp.org>
41147
41148         Fix the Win32 implementation of the 'thread' module.
41149         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
41150         pointer type.
41151         (gl_thread_self): Invoke gl_thread_self_func.
41152         (gl_thread_self_func): New declaration.
41153         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
41154         (do_init_self_key, init_self_key): New functions.
41155         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
41156         Remove some fields.
41157         (running_threads, running_lock): Remove variables.
41158         (get_current_thread_handle): New function.
41159         (gl_thread_self_func, wrapper_func, glthread_create_func,
41160         glthread_join_func, gl_thread_exit_func): Largely rewritten and
41161         simplified.
41162
41163 2008-09-30  Bruno Haible  <bruno@clisp.org>
41164
41165         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
41166         files.
41167
41168 2008-09-30  Jim Meyering  <meyering@redhat.com>
41169
41170         fts.m4: correct the test for statfs.f_type
41171         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
41172         when checking for statfs.f_type.
41173
41174 2008-09-15  Simon Josefsson  <simon@josefsson.org>
41175
41176         tests: avoid some compiler warnings
41177         * tests/test-memchr.c (main): Pass NULL indirectly.
41178         * tests/test-getdate.c (main): Remove unused variable 'ret'.
41179
41180 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
41181
41182         getdate.y: disallow countable dayshifts like "4 yesterday ago"
41183         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
41184         exactly specified dayshifts.
41185         (dayshift): New rule.
41186         (rel): Add dayshift.
41187         (relative_time_table) [tomorrow, yesterday, today, now]:
41188         Use tDAY_SHIFT in place of tDAY_UNIT.
41189         * tests/test-getdate.c: Add tests for now-disallowed countable
41190         dayshifts, e.g., "4 yesterday ago".
41191
41192 2008-09-29  Bruno Haible  <bruno@clisp.org>
41193
41194         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
41195         * tests/test-posix_spawn1.in.sh: Renamed from
41196         tests/test-posix_spawn.in.sh.
41197         * tests/test-posix_spawn2.c: New file.
41198         * tests/test-posix_spawn2.in.sh: New file.
41199         * modules/posix_spawnp-tests (Files): Update.
41200         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
41201
41202 2008-09-29  Bruno Haible  <bruno@clisp.org>
41203
41204         Propagate effects of putenv/setenv/unsetenv to child processes.
41205         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
41206         * lib/pipe.c (create_pipe): Likewise.
41207
41208 2008-09-29  Bruno Haible  <bruno@clisp.org>
41209
41210         Enable use of shell scripts as executables in mingw.
41211         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
41212         run the program as a shell script.
41213         * lib/pipe.c (create_pipe): Likewise.
41214         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
41215         resulting array.
41216
41217 2008-09-29  Eric Blake  <ebb9@byu.net>
41218
41219         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
41220
41221 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
41222
41223         * doc/posix-functions/accept.texi: Update mingw problems.
41224         * doc/posix-functions/bind.texi: Update mingw problems.
41225         * doc/posix-functions/close.texi: Update mingw problems.
41226         * doc/posix-functions/connect.texi: Update mingw problems.
41227         * doc/posix-functions/getpeername.texi: Update mingw problems.
41228         * doc/posix-functions/getsockname.texi: Update mingw problems.
41229         * doc/posix-functions/getsockopt.texi: Update mingw problems.
41230         * doc/posix-functions/ioctl.texi: Update mingw problems.
41231         * doc/posix-functions/listen.texi: Update mingw problems.
41232         * doc/posix-functions/recv.texi: Update mingw problems.
41233         * doc/posix-functions/recvfrom.texi: Update mingw problems.
41234         * doc/posix-functions/select.texi: Update mingw problems.
41235         * doc/posix-functions/send.texi: Update mingw problems.
41236         * doc/posix-functions/sendto.texi: Update mingw problems.
41237         * doc/posix-functions/setsockopt.texi: Update mingw problems.
41238         * doc/posix-functions/socket.texi: Update mingw problems.
41239
41240 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
41241             Bruno Haible  <bruno@clisp.org>
41242
41243         * lib/sys_select.in.h: Include sys/time.h.
41244         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
41245         * modules/sys_select: Depend on sys_time.
41246         * tests/test-sys_select.c: Test that sys/select.h defines struct
41247         timeval fully.
41248
41249 2008-09-29  Bruno Haible  <bruno@clisp.org>
41250
41251         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
41252         * lib/sys_select.in.h: Likewise.
41253
41254 2008-09-29  Bruno Haible  <bruno@clisp.org>
41255
41256         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
41257
41258 2008-09-29  Bruno Haible  <bruno@clisp.org>
41259
41260         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
41261         Set LIBSOCKET instead of augmenting LIBS.
41262         * modules/sockets (Link): New section.
41263         * modules/sockets-tests (test_sockets_LDADD): New variable.
41264         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
41265         * modules/poll-tests (test_poll_LDADD): New variable.
41266         * NEWS: Document the change.
41267
41268 2008-09-29  Bruno Haible  <bruno@clisp.org>
41269
41270         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
41271         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
41272         ARPA_INET_H directly.
41273         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41274
41275 2008-09-28  Bruno Haible  <bruno@clisp.org>
41276
41277         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
41278         from gl_HEADER_SYS_SOCKET.
41279         (gl_HEADER_SYS_SOCKET): Invoke it.
41280         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
41281
41282 2008-09-28  Bruno Haible  <bruno@clisp.org>
41283
41284         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
41285         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
41286         Needed on OSF/1 4.0.
41287
41288 2008-09-28  Bruno Haible  <bruno@clisp.org>
41289
41290         Override open more carefully.
41291         * lib/open.c (orig_open): New function.
41292         (rpl_open): Use orig_open instead of open.
41293         * lib/fcntl.in.h: Add special invocation convention.
41294         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
41295         (gl_FUNC_OPEN): Invoke it.
41296
41297         Override freopen more carefully.
41298         * lib/freopen.c (orig_freopen): New function.
41299         (rpl_freopen): Use orig_freopen instead of freopen.
41300         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
41301         (gl_FUNC_FREOPEN): Invoke it.
41302
41303         Override fopen more carefully.
41304         * lib/fopen.c (orig_fopen): New function.
41305         (rpl_fopen): Use orig_fopen instead of fopen.
41306         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
41307         (gl_FUNC_FOPEN): Invoke it.
41308         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
41309
41310 2008-09-28  Bruno Haible  <bruno@clisp.org>
41311
41312         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
41313         SIGPIPE.
41314
41315 2008-09-28  Bruno Haible  <bruno@clisp.org>
41316
41317         * tests/test-sigaction.c (handler, main): Disable the check whether
41318         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
41319         glibc systems with LinuxThreads.
41320
41321 2008-09-28  Bruno Haible  <bruno@clisp.org>
41322
41323         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
41324
41325         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
41326         with AIX xlc.
41327         * lib/fcntl.in.h (open): Likewise.
41328         Reported by Rainer Tammer <tammer@tammer.net>.
41329
41330 2008-09-28  Bruno Haible  <bruno@clisp.org>
41331
41332         * modules/posix_spawnp-tests: New file.
41333         * tests/test-posix_spawn.c: New file.
41334         * tests/test-posix_spawn.in.sh: New file.
41335
41336         New module 'posix_spawnp'.
41337         * modules/posix_spawnp: New file.
41338         * lib/spawnp.c: New file, from GNU libc with modifications.
41339         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
41340
41341         New module 'posix_spawn'.
41342         * modules/posix_spawn: New file.
41343         * lib/spawn.c: New file, from GNU libc with modifications.
41344         * doc/posix-functions/posix_spawn.texi: Mention the new module.
41345
41346         New module 'posix_spawnattr_destroy'.
41347         * modules/posix_spawnattr_destroy: New file.
41348         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
41349         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
41350         module.
41351
41352         New module 'posix_spawnattr_setsigmask'.
41353         * modules/posix_spawnattr_setsigmask: New file.
41354         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
41355         modifications.
41356         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
41357         new module.
41358
41359         New module 'posix_spawnattr_getsigmask'.
41360         * modules/posix_spawnattr_getsigmask: New file.
41361         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
41362         modifications.
41363         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
41364         new module.
41365
41366         New module 'posix_spawnattr_setsigdefault'.
41367         * modules/posix_spawnattr_setsigdefault: New file.
41368         * lib/spawnattr_setdefault.c: New file, from GNU libc with
41369         modifications.
41370         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
41371         new module.
41372
41373         New module 'posix_spawnattr_getsigdefault'.
41374         * modules/posix_spawnattr_getsigdefault: New file.
41375         * lib/spawnattr_getdefault.c: New file, from GNU libc with
41376         modifications.
41377         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
41378         new module.
41379
41380         New module 'posix_spawnattr_setschedpolicy'.
41381         * modules/posix_spawnattr_setschedpolicy: New file.
41382         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
41383         modifications.
41384         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
41385         new module.
41386
41387         New module 'posix_spawnattr_getschedpolicy'.
41388         * modules/posix_spawnattr_getschedpolicy: New file.
41389         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
41390         modifications.
41391         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
41392         new module.
41393
41394         New module 'posix_spawnattr_setschedparam'.
41395         * modules/posix_spawnattr_setschedparam: New file.
41396         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
41397         modifications.
41398         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
41399         new module.
41400
41401         New module 'posix_spawnattr_getschedparam'.
41402         * modules/posix_spawnattr_getschedparam: New file.
41403         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
41404         modifications.
41405         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
41406         new module.
41407
41408         New module 'posix_spawnattr_setpgroup'.
41409         * modules/posix_spawnattr_setpgroup: New file.
41410         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
41411         modifications.
41412         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
41413         module.
41414
41415         New module 'posix_spawnattr_getpgroup'.
41416         * modules/posix_spawnattr_getpgroup: New file.
41417         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
41418         modifications.
41419         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
41420         module.
41421
41422         New module 'posix_spawnattr_setflags'.
41423         * modules/posix_spawnattr_setflags: New file.
41424         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
41425         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
41426         module.
41427
41428         New module 'posix_spawnattr_getflags'.
41429         * modules/posix_spawnattr_getflags: New file.
41430         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
41431         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
41432         module.
41433
41434         New module 'posix_spawnattr_init'.
41435         * modules/posix_spawnattr_init: New file.
41436         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
41437         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
41438         module.
41439
41440         New module 'posix_spawn_file_actions_destroy'.
41441         * modules/posix_spawn_file_actions_destroy: New file.
41442         * lib/spawn_faction_destroy.c: New file, from GNU libc with
41443         modifications.
41444         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
41445         the new module.
41446
41447         New module 'posix_spawn_file_actions_addopen'.
41448         * modules/posix_spawn_file_actions_addopen: New file.
41449         * lib/spawn_faction_addopen.c: New file, from GNU libc with
41450         modifications.
41451         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
41452         the new module.
41453
41454         New module 'posix_spawn_file_actions_adddup2'.
41455         * modules/posix_spawn_file_actions_adddup2: New file.
41456         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
41457         modifications.
41458         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
41459         the new module.
41460
41461         New module 'posix_spawn_file_actions_addclose'.
41462         * modules/posix_spawn_file_actions_addclose: New file.
41463         * lib/spawn_faction_addclose.c: New file, from GNU libc with
41464         modifications.
41465         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
41466         the new module.
41467
41468         New module 'posix_spawn_file_actions_init'.
41469         * modules/posix_spawn_file_actions_init: New file.
41470         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
41471         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
41472         new module.
41473
41474         New module 'posix_spawn-internal'.
41475         * modules/posix_spawn-internal: New file.
41476         * lib/spawn_int.h: New file, from GNU libc with modifications.
41477         * lib/spawni.c: New file, from GNU libc with modifications.
41478         * m4/posix_spawn.m4: New file.
41479
41480         New module 'spawn'.
41481         * modules/spawn: New file.
41482         * lib/spawn.in.h: New file, from GNU libc with modifications.
41483         * m4/spawn_h.m4: New file.
41484         * doc/posix-headers/spawn.texi: Mention the new module.
41485
41486 2008-09-28  Bruno Haible  <bruno@clisp.org>
41487
41488         * modules/sched-tests: New file.
41489         * tests/test-sched.c: New file.
41490
41491         New module 'sched'.
41492         * modules/sched: New file.
41493         * lib/sched.in.h: New file.
41494         * m4/sched_h.m4: New file.
41495         * doc/posix-headers/sched.texi: Mention the new module.
41496
41497 2008-09-27  Eric Blake  <ebb9@byu.net>
41498
41499         Fix previous patch, and tweak references to $0.
41500         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
41501         (func_version, func_gnulib_dir): Don't call this program
41502         gnulib-tool.
41503         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
41504         with using $0 in function.
41505         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
41506         (func_fatal_error): Reuse the name the user invoked us with.
41507
41508 2008-09-27  Bruno Haible  <bruno@clisp.org>
41509
41510         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
41511         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
41512         (gl_ICONV_H): Not here.
41513         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
41514         instead of assigning ICONV_H directly.
41515
41516         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
41517         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
41518         WCHAR_H directly.
41519
41520 2008-09-27  Bruno Haible  <bruno@clisp.org>
41521
41522         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
41523         * modules/arpa_inet (Depends-on): Add link-warning.
41524         (Makefile.am): Insert the definition of GL_LINK-WARNING.
41525         * modules/unistd (Makefile.am): Likewise.
41526
41527 2008-09-26  Bruno Haible  <bruno@clisp.org>
41528
41529         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
41530         variables.
41531         (func_version): Essentially copied from gnulib-tool.
41532         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
41533         func_readlink): Copied from gnulib-tool.
41534
41535 2008-09-26  Bruno Haible  <bruno@clisp.org>
41536
41537         * gnulib-tool (func_version): Change directory to $gnulib_dir before
41538         invoking git-version-gen.
41539
41540 2008-09-26  Bruno Haible  <bruno@clisp.org>
41541
41542         * posix-modules: Update to directory names changed on 2008-01-19.
41543         Remove commas in output before splitting into words. No more need to
41544         avoid 'ftruncate' since 2007-02-19.
41545
41546 2008-09-26  Bruno Haible  <bruno@clisp.org>
41547
41548         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
41549
41550 2008-09-26  Bruno Haible  <bruno@clisp.org>
41551
41552         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
41553         * modules/fwriteerror (Depends-on): Add errno.
41554
41555 2008-09-26  Bruno Haible  <bruno@clisp.org>
41556
41557         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
41558         * tests/test-vc-list-files-cvs.sh: Likewise.
41559
41560 2008-09-26  Bruno Haible  <bruno@clisp.org>
41561
41562         * doc/posix-headers/sys_resource.texi: Reorder items.
41563
41564 2008-09-26  Jim Meyering  <meyering@redhat.com>
41565
41566         fts: tweak inode comparison function
41567         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
41568         inode numbers, as documented.
41569
41570         fts: sort dirent entries on inode number before traversing
41571         This avoids a quadratic, seek-related performance penalty when
41572         operating on a directory containing many entries (measurable at 10k;
41573         3.5 hours at 2 million entries with a cold cache) on certain types
41574         of file systems, including ext3 and ext4, but not tmpfs.
41575         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
41576         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
41577         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
41578         (fs_handles_readdir_ordered_dirents_efficiently): New function.
41579         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
41580         (fts_build): Set the stat.st_ino member from D_INO.
41581         If it is likely to be useful, sort dirent entries on inode number.
41582
41583         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
41584         and the struct statfs.f_type member.
41585         * modules/fts (Depends-on): Add d-ino.
41586
41587 2008-09-26  Bruno Haible  <bruno@clisp.org>
41588
41589         * modules/sigpipe-die (Depends-on): Add sigpipe.
41590
41591         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
41592         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
41593         and GNULIB_STDIO_H_SIGPIPE are set.
41594         * lib/stdio-write.c: New file.
41595         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
41596         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
41597         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
41598         REPLACE_STDIO_WRITE_FUNCS.
41599         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
41600         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
41601         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
41602         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
41603         * modules/stdio (Files): Add lib/stdio-write.c.
41604         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
41605         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
41606         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
41607         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
41608         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
41609         REPLACE_FPRINTF_POSIX.
41610         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
41611         REPLACE_PRINTF_POSIX.
41612         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
41613         REPLACE_VFPRINTF_POSIX.
41614         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
41615         REPLACE_VPRINTF_POSIX.
41616         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
41617         SIGPIPE issue.
41618         * doc/posix-functions/fputc.texi: Likewise.
41619         * doc/posix-functions/fputs.texi: Likewise.
41620         * doc/posix-functions/fwrite.texi: Likewise.
41621         * doc/posix-functions/printf.texi: Likewise.
41622         * doc/posix-functions/putc.texi: Likewise.
41623         * doc/posix-functions/putchar.texi: Likewise.
41624         * doc/posix-functions/puts.texi: Likewise.
41625         * doc/posix-functions/vfprintf.texi: Likewise.
41626         * doc/posix-functions/vprintf.texi: Likewise.
41627
41628         * modules/safe-write (Depends-on): Add write.
41629
41630         * modules/sigpipe-tests: New file.
41631         * tests/test-sigpipe.c: New file.
41632         * tests/test-sigpipe.sh: New file.
41633
41634         * modules/write: New file.
41635         * lib/unistd.in.h: Include <sys/types.h>.
41636         (write): New declaration.
41637         * lib/write.c: New file.
41638         * m4/write.m4: New file.
41639         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41640         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
41641         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
41642         GNULIB_WRITE, REPLACE_WRITE.
41643         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
41644         and the SIGPIPE issue.
41645
41646         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
41647         (raise): New declaration.
41648         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
41649         (ext_signal): New function.
41650         (rpl_raise): New function.
41651         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
41652         GNULIB_SIGNAL_H_SIGPIPE.
41653         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
41654         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
41655
41656         * modules/sigpipe: New file.
41657         * m4/sigpipe.m4: New file.
41658
41659 2008-09-25  Derek Price  <derek@ximbiot.com>
41660             Bruno Haible  <bruno@clisp.org>
41661
41662         * gnulib-tool (func_import): Report all license incompatibilities, not
41663         just the first one.
41664
41665 2008-09-25  Bruno Haible  <bruno@clisp.org>
41666
41667         * gnulib-tool (func_import): When computing the edits, consider not
41668         only the Makefile.ams that exist but also those that will be generated.
41669
41670 2008-09-25  Simon Josefsson  <simon@josefsson.org>
41671
41672         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
41673         fixes gnulib-tool --test warning about duplicate dependency.
41674
41675 2008-09-25  Bruno Haible  <bruno@clisp.org>
41676
41677         * gnulib-tool: Don't ask the user to perform edits in the generated
41678         Makefile.ams.
41679         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
41680         apply to the Makefile.am being generated.
41681         (func_emit_tests_Makefile_am): Execute edits that apply to the
41682         Makefile.am being generated.
41683         (func_import): Setup list of Makefile.am edits before emitting the
41684         Makefile.ams, not at the end.
41685         (func_create_testdir): Update.
41686         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41687
41688 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41689
41690         * gnulib-tool (func_import): Store the --tests-base option in the
41691         comment in gnulib-cache.m4.
41692
41693 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
41694
41695         * NEWS: Document increased portability that sys_select now provides.
41696
41697         * lib/sys_select.in.h: Install select wrapper.
41698         * lib/sys_socket.in.h: Use more descriptive name when there is no
41699         select wrapper.
41700         * lib/winsock-select.c: New.
41701         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
41702         Require gl_HEADER_SYS_SOCKET.
41703         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
41704         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
41705         * tests/test-sys_select.c: Add functional tests.
41706
41707 2008-09-24  Eric Blake  <ebb9@byu.net>
41708
41709         open, fopen: close fd leak in last patch
41710         * lib/open.c (rpl_open): Close fd before returning error.
41711         * lib/fopen.c (rpl_fopen): Close fd before returning error.
41712         * doc/posix-functions/open.texi (open): Document that Irix also
41713         has the bug.
41714         * doc/posix-functions/fopen.texi (fopen): Likewise.
41715         Reported by Paolo Bonzini.
41716
41717 2008-09-24  Bruno Haible  <bruno@clisp.org>
41718
41719         Ensure that a filename ending in a slash cannot be used to access a
41720         non-directory.
41721         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
41722         to check whether it's really a directory.
41723         * lib/fopen.c: Include fcntl.h, unistd.h.
41724         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
41725         and fdopen().
41726         * modules/fopen (Depends-on): Add unistd.
41727         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
41728         * tests/test-fopen.c (main): Likewise.
41729         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
41730         * doc/posix-functions/fopen.texi: Likewise.
41731         Reported by Eric Blake.
41732
41733 2008-09-23  Eric Blake  <ebb9@byu.net>
41734
41735         c-stack: avoid compiler optimizations when provoking overflow
41736         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
41737         recursion harder to optimize, to ensure a stack overflow occurs.
41738         * tests/test-c-stack.c (recurse): Likewise.
41739         Borrowed from libsigsegv.
41740
41741         c-stack: work around Irix sigaltstack bug
41742         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
41743         whether sigaltstack uses wrong end of stack_t (copied in part from
41744         libsigsegv).
41745         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
41746         Irix bug, without requiring an over-allocation.
41747         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
41748         bug.
41749
41750         fopen: document mingw bug on directories
41751         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
41752         not allowing a stream visiting a directory, even though reading
41753         from such a stream is not portable.
41754
41755 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41756
41757         * lib/poll.c: Rewrite.
41758         * modules/poll: Depend on alloca.
41759
41760 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41761
41762         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
41763         instead define prototypes for a full set of wrappers.  Ensure
41764         that Cygwin does not use the compatibility code, which is only
41765         for MinGW.
41766         * lib/winsock.c: New.
41767         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
41768         * modules/sys_socket: Add lib/winsock.c.
41769
41770         * modules/poll-tests: Add errno and perror.
41771         * tests/test-poll.c: Use ioctl, not ioctlsocket.
41772
41773 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41774
41775         * tests/test-poll.c: Downgrade minimum needed Winsock version.
41776
41777 2008-09-23  Bruno Haible  <bruno@clisp.org>
41778
41779         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
41780         * doc/glibc-functions/*: Likewise.
41781
41782 2008-09-23  Simon Josefsson  <simon@josefsson.org>
41783
41784         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
41785         success.
41786
41787 2008-09-22  Eric Blake  <ebb9@byu.net>
41788             Bruno Haible  <bruno@clisp.org>
41789
41790         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
41791         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
41792         supply %A but mishandle pseudo-NaN.
41793         Reported by Simon Josefsson.
41794
41795 2008-09-21  Bruno Haible  <bruno@clisp.org>
41796
41797         * tests/test-lock.c (main): Tweak skip message.
41798         * tests/test-tls.c (main): Likewise.
41799
41800 2008-09-21  Bruno Haible  <bruno@clisp.org>
41801
41802         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
41803         whether 'struct sigaction' has sa_sigaction here...
41804         (gl_PREREQ_SIG_HANDLER_H): ... not here.
41805         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
41806
41807 2008-09-21  Bruno Haible  <bruno@clisp.org>
41808
41809         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
41810         section.
41811         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
41812         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
41813         the new section.
41814         (Support for obsolete systems lacking POSIX:2001): New section.
41815         (String handling <string.h>): Move strdup to the new section.
41816         Suggested by Simon Josefsson and Paolo Bonzini.
41817
41818 2008-09-21  Bruno Haible  <bruno@clisp.org>
41819
41820         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
41821         exponents in %e and %g results on 'long double'. Needed for mingw's
41822         improved *printf functions.
41823         * tests/test-vasprintf-posix.c (test_function): Likewise.
41824         * tests/test-snprintf-posix.h (test_function): Likewise.
41825         * tests/test-sprintf-posix.h (test_function): Likewise.
41826         Reported by Eric Blake.
41827
41828 2008-09-21  Bruno Haible  <bruno@clisp.org>
41829
41830         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
41831         * tests/test-sprintf-posix.h (test_function): Likewise.
41832
41833 2008-09-21  Bruno Haible  <bruno@clisp.org>
41834
41835         * modules/getpass (Depends-on): Add strdup-posix.
41836
41837         New module 'strdup-posix'.
41838         * modules/strdup-posix: New file.
41839         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
41840         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
41841         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41842         REPLACE_STRDUP.
41843         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
41844         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
41845         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41846         strdup-posix.
41847
41848         * modules/strdup (Depends-on): Remove malloc-posix.
41849
41850 2008-09-20  Bruno Haible  <bruno@clisp.org>
41851
41852         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
41853         Wildenhues.
41854
41855 2008-09-20  Bruno Haible  <bruno@clisp.org>
41856
41857         Ensure that wint_t gets defined on IRIX 5.3.
41858         * lib/wchar.in.h (wint_t): Define if not defined by the system.
41859         * lib/wctype.in.h (wint_t): Likewise.
41860         (__wctype_wint_t): Remove type.
41861         (isw*): Use wint_t instead of __wctype_wint_t.
41862         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
41863         * modules/wchar (Files): Add m4/wint_t.m4.
41864         (Makefile.am): Substitute HAVE_WINT_T.
41865         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
41866         * tests/test-wctype.c: Check that wint_t is defined.
41867         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
41868         * doc/posix-headers/wctype.texi: Likewise.
41869         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41870
41871 2008-09-18  Bruno Haible  <bruno@clisp.org>
41872
41873         * gnulib-tool (func_exit): Update comment.
41874
41875 2008-09-18  Simon Josefsson  <simon@josefsson.org>
41876
41877         * modules/getaddrinfo (Depends-on): Remove strdup, this module
41878         assumes strdup exists and does not depend on strdup to return
41879         ENOMEM on out of memory conditions.
41880
41881 2008-09-18  Bruno Haible  <bruno@clisp.org>
41882
41883         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
41884         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
41885         digits for the exponent.
41886
41887 2008-09-18  Jim Meyering  <meyering@redhat.com>
41888             Bruno Haible  <bruno@clisp.org>
41889
41890         * lib/vasnprintf.c (decimal_point_char): Define also if
41891         NEED_PRINTF_INFINITE_LONG_DOUBLE.
41892
41893 2008-09-16  Bruno Haible  <bruno@clisp.org>
41894         and Eric Blake  <ebb9@byu.net>
41895
41896         vasnprintf: support Irix 5.3
41897         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
41898         that mishandle long double infinity.
41899         Reported by Tom G. Christensen.
41900
41901 2008-09-16  Bruno Haible  <bruno@clisp.org>
41902
41903         * doc/glibc-functions/scandir.texi: Mention the function is missing on
41904         Solaris 9.
41905         * doc/glibc-functions/alphasort.texi: Likewise.
41906         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
41907
41908 2008-09-16  Jim Meyering  <meyering@redhat.com>
41909
41910         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
41911         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
41912         a umask modification leak out of a subshell.  Otherwise, the
41913         opensolaris /bin/sh would be accepted and thus cause unwarranted
41914         failures in the coreutils test suite.
41915
41916 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
41917
41918         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
41919         to succeed.
41920
41921 2008-09-16  Jim Meyering  <meyering@redhat.com>
41922
41923         avoid spurious test failure when library is built without ACL support
41924         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
41925         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
41926         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
41927         * tests/test-copy-acl.sh: Likewise.
41928
41929 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41930
41931         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
41932         based on character occurrence counts.
41933
41934 2008-09-15  Eric Blake  <ebb9@byu.net>
41935
41936         tests: avoid some compiler warnings
41937         * tests/test-memchr.c (main): Pass NULL indirectly.
41938         * tests/test-closein.c (main): Avoid unused variable.
41939
41940 2008-09-15  Bruno Haible  <bruno@clisp.org>
41941
41942         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
41943         are missing on OpenBSD 4.0 individually.
41944         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41945
41946 2008-09-15  Bruno Haible  <bruno@clisp.org>
41947
41948         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
41949         * doc/posix-functions/strerror.texi: Mention also Cygwin.
41950         * doc/posix-functions/perror.texi: Likewise.
41951         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
41952         is missing.
41953         Reported by Eric Blake.
41954
41955         * lib/errno.in.h: Use replacement values >= 2000.
41956         Reported by Eric Blake.
41957
41958 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41959
41960         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
41961         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
41962         limit.
41963         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
41964         compareseq was aborted.
41965
41966 2008-09-14  Bruno Haible  <bruno@clisp.org>
41967
41968         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
41969         yvec_edit_count.
41970         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
41971         (fstrcmp_bounded): Simplify result computation accordingly.
41972
41973 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41974
41975         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
41976         (fstrcmp): Define in terms of fstrcmp_bounded.
41977         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
41978         lower_bound argument.
41979         Return quickly if the result is certainly < lower_bound.
41980         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
41981
41982 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41983
41984         * lib/diffseq.h (EARLY_ABORT): New macro.
41985         (compareseq): Change return type to bool. Return true when EARLY_ABORT
41986         evaluates to true.
41987
41988 2008-09-14  Bruno Haible  <bruno@clisp.org>
41989
41990         * modules/perror-tests: New file.
41991         * tests/test-perror.sh: New file.
41992         * tests/test-perror.c: New file.
41993
41994         New module 'perror'.
41995         * lib/stdio.in.h (perror): New declaration.
41996         * lib/perror.c: New file.
41997         * m4/perror.m4: New file.
41998         * modules/perror: New file.
41999         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
42000         * doc/posix-functions/perror.texi: Mention the perror module.
42001         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
42002         REPLACE_PERROR.
42003         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
42004         REPLACE_PERROR.
42005
42006 2008-09-14  Bruno Haible  <bruno@clisp.org>
42007
42008         * modules/stdio (Makefile.am): Reorder to match the order in
42009         lib/stdio.in.h.
42010         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42011
42012 2008-09-13  Bruno Haible  <bruno@clisp.org>
42013
42014         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
42015
42016 2008-09-13  Bruno Haible  <bruno@clisp.org>
42017
42018         Extend strerror to cover the added errno values.
42019         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
42020         (rpl_strerror): Provide error messages for the added errno values and
42021         for the WSA* values.
42022         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
42023         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
42024         strerror.
42025         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
42026         * modules/strerror (Depends-on): Add errno.
42027         * doc/posix-functions/strerror.texi: Document the change.
42028         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
42029         and EOVERFLOW.
42030
42031 2008-09-13  Bruno Haible  <bruno@clisp.org>
42032
42033         * modules/EOVERFLOW: Remove file.
42034         * m4/eoverflow.m4: Remove file.
42035         * modules/EOVERFLOW-tests: Remove file.
42036         * tests/test-EOVERFLOW.c: Remove file.
42037         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
42038         * modules/ftell (Depends-on): Likewise.
42039         * modules/getdelim (Depends-on): Likewise.
42040         * modules/getugroups (Depends-on): Likewise.
42041         * modules/poll (Depends-on): Likewise.
42042         * modules/snprintf (Depends-on): Likewise.
42043         * modules/sprintf-posix (Depends-on): Likewise.
42044         * modules/vasnprintf (Depends-on): Likewise.
42045         * modules/vasprintf (Depends-on): Likewise.
42046         * modules/vfprintf-posix (Depends-on): Likewise.
42047         * modules/vsnprintf (Depends-on): Likewise.
42048         * modules/vsprintf-posix (Depends-on): Likewise.
42049         * modules/xvasprintf (Depends-on): Likewise.
42050         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42051         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
42052         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
42053         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
42054         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42055         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
42056         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
42057         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
42058         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42059         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
42060         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
42061         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
42062         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42063         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
42064         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
42065         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
42066         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42067         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
42068         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
42069         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
42070         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42071         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
42072         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
42073         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
42074         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
42075         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42076         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
42077         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
42078         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
42079         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
42080         * MODULES.html.sh: Remove EOVERFLOW.
42081         * NEWS: Mention the change.
42082
42083 2008-09-13  Bruno Haible  <bruno@clisp.org>
42084
42085         * modules/errno-tests: New file.
42086         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
42087
42088         * lib/errno.in.h: New file.
42089         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
42090         * modules/errno: New file.
42091         * doc/posix-headers/errno.texi: Update documentation.
42092         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
42093
42094 2008-09-13  Bruno Haible  <bruno@clisp.org>
42095
42096         * tests/test-poll.c: Use #if for native Windows, rather than testing
42097         __MSVCRT__.
42098
42099 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42100             Bruno Haible  <bruno@clisp.org>
42101
42102         * lib/glob.c: Don't include <pwd.h> on native Windows.
42103         (WINDOWS32): New macro.
42104         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
42105
42106 2008-09-13  Bruno Haible  <bruno@clisp.org>
42107
42108         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
42109         (ETIMEDOUT): Remove macro.
42110         (glthread_cond_timedwait_multithreaded): New declaration.
42111         (glthread_cond_timedwait): Use it.
42112         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
42113         (glthread_cond_timedwait_multithreaded): New function.
42114
42115 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
42116
42117         * modules/poll-tests: Do not check for io.h.
42118         * tests/test-poll.c: Check for __MSVCRT__ instead.
42119
42120 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
42121
42122         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
42123         * modules/poll-tests: Add inet_pton, stdbool, sockets.
42124         * tests/test-poll.c: Use them.  Use _pipe on Windows.
42125
42126 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
42127
42128         * modules/poll-tests: New.
42129         * tests/test-poll.c: New.
42130
42131 2008-09-12  Eric Blake  <ebb9@byu.net>
42132
42133         frexp: test for NetBSD failure on -0.0
42134         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
42135         not all, bugs from NetBSD 3.0 have been fixed.
42136         * doc/posix-functions/frexp.texi (frexp): Document bug.
42137         Reported by Thomas Klausner.
42138
42139         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
42140         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
42141         literal -0.0.
42142         Reported by Jonathan C. Patschke <jp@centtech.com>.
42143
42144 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42145
42146         * lib/glthread/cond.h: Use dummy implementation also if
42147         USE_WIN32_THREADS.
42148
42149 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42150
42151         * modules/fnmatch-posix (License): Change to LGPLv2+.
42152         * modules/fnmatch-gnu (License): Likewise.
42153
42154 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42155
42156         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
42157
42158 2008-09-11  Jim Meyering  <meyering@redhat.com>
42159
42160         * users.txt: Add gtk-vnc.
42161
42162 2008-09-08  Simon Josefsson  <simon@josefsson.org>
42163
42164         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
42165         rotate amounts.
42166
42167         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
42168         required for 16-bit and 8-bit rotates.
42169         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
42170         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
42171         UINT8_MAX instead of hard-coded constants.
42172         Suggested by Paul Eggert.
42173
42174 2008-09-07  Bruno Haible  <bruno@clisp.org>
42175
42176         * tests/test-striconveh.c (main): Check behaviour when converting from
42177         UTF-7.
42178
42179         Make striconveh work better with stateful encodings.
42180         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
42181         that iconv does not increment the inptr when returning -1/EINVAL.
42182
42183 2008-09-07  Bruno Haible  <bruno@clisp.org>
42184
42185         * build-aux/config.rpath: Update according to libtool-2.2.6.
42186         * build-aux/config.libpath: Likewise.
42187
42188 2008-09-06  Bruno Haible  <bruno@clisp.org>
42189
42190         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
42191         * lib/freadptr.c (freadptr): Likewise.
42192         * lib/freadseek.c (freadptrinc): Likewise.
42193         Reported by Simon Josefsson.
42194
42195 2008-09-06  Bruno Haible  <bruno@clisp.org>
42196
42197         * modules/freadptr (License): Change to LGPLv2+.
42198         * modules/freadseek (License): Likewise.
42199         Suggested by Eric Blake.
42200
42201         * modules/memchr2 (License): Change to LGPLv2+.
42202         Approved by Eric Blake.
42203
42204 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42205             Bruno Haible  <bruno@clisp.org>
42206
42207         Make gnulib-tool work with native 'sed' on AIX.
42208         * gnulib-tool (sed_noop): New variable.
42209         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
42210         func_add_or_update, func_create_testdir): Use it to initialize sed
42211         script variables.
42212         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42213
42214 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
42215             Bruno Haible  <bruno@clisp.org>
42216
42217         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
42218         also works after #include directives.
42219
42220 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
42221
42222         getdate.y: reject an out-of-range timezone value
42223         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
42224         the range [-24...+24].  When specified with only one or two digits,
42225         * tests/test-getdate.c: Tests for the fix.
42226         * doc/getdate.texi: Document this change.
42227
42228 2008-09-03  Bruno Haible  <bruno@clisp.org>
42229
42230         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
42231
42232 2008-09-02  Simon Josefsson  <simon@josefsson.org>
42233
42234         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
42235         <bruce.korb@gmail.com> with ideas from Ben Pfaff
42236         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
42237         Blake <ebb9@byu.net>.
42238
42239         * tests/test-bitrotate.c: Add more test vectors.
42240
42241 2008-09-02  Eric Blake  <ebb9@byu.net>
42242
42243         vasnprintf-posix: handle large precision via %.*d
42244         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
42245         when handling it ourselves.
42246         * tests/test-vasnprintf-posix.c (test_function): Add test.
42247         * tests/test-snprintf-posix.h (test_function): Likewise.
42248         * tests/test-sprintf-posix.h (test_function): Likewise.
42249         * tests/test-vasprintf-posix.c (test_function): Likewise.
42250         Reported by Alain Guibert.
42251
42252 2008-09-01  Eric Blake  <ebb9@byu.net>
42253
42254         c-stack: make configure-time check more robust
42255         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
42256         successful sigaction call.
42257         Reported by Tom G. Christensen.
42258
42259 2008-09-01  Bruno Haible  <bruno@clisp.org>
42260
42261         New module 'findprog-lgpl'.
42262         * modules/findprog-lgpl: New file.
42263         * lib/findprog-lgpl.c: New file.
42264         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
42265         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
42266         to decide whether to use strdup or xstrdup, concatenated_filename or
42267         xconcatenated_filename.
42268
42269 2008-09-01  Bruno Haible  <bruno@clisp.org>
42270
42271         Split module 'concat-filename' into 'concat-filename' (LGPL) and
42272         'xconcat-filename' (GPL).
42273         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
42274         (License): Change to LGPLv2+.
42275         * modules/xconcat-filename: New file.
42276         * lib/concat-filename.h (concatenated_filename): Change specification.
42277         (xconcatenated_filename): New declaration.
42278         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
42279         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
42280         memory situations.
42281         * lib/xconcat-filename.c: New file.
42282         * NEWS: Mention the change.
42283         * lib/findprog.c: Include concat-filename.h, not filename.h.
42284         (find_in_path): Use xconcatenated_filename instead of
42285         concatenated_filename.
42286         * lib/javacomp.c: Include concat-filename.h, not filename.h.
42287         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
42288         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
42289         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
42290         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
42291         instead of concatenated_filename.
42292         * lib/javaexec.c: Include concat-filename.h, not filename.h.
42293         (execute_java_class): Use xconcatenated_filename instead of
42294         concatenated_filename.
42295         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
42296         * modules/javacomp (Depends-on): Likewise.
42297         * modules/javaexec (Depends-on): Likewise.
42298
42299 2008-09-01  Bruno Haible  <bruno@clisp.org>
42300
42301         Split module 'filename' into 'filename' and 'concat-filename'.
42302         * modules/filename: Keep only lib/filename.h.
42303         (License): Change to LGPLv2+.
42304         * modules/concat-filename: New file, extracted from modules/filename.
42305         * lib/filename.h (concatenated_filename): Remove declaration.
42306         * lib/concat-filename.h: New file, extracted from lib/filename.h.
42307         * lib/concat-filename.c: Include concat-filename.h.
42308         * NEWS: Mention the change.
42309
42310 2008-09-01  Simon Josefsson  <simon@josefsson.org>
42311
42312         * lib/bitrotate.h (rotl8, rotr8): Add.
42313
42314         * modules/bitrotate (configure.ac): Need
42315         AC_REQUIRE([AC_C_INLINE]).
42316         (Description): Mention stdint.h.  Reported by Bruno Haible
42317         <bruno@clisp.org>.
42318
42319         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
42320         Paolo Bonzini <bonzini@gnu.org>.
42321
42322 2008-08-31  Bruno Haible  <bruno@clisp.org>
42323
42324         Assume Solaris specific bi-arch conventions on Solaris systems.
42325         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
42326         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
42327         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
42328         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
42329         like acl_libdirstem.
42330         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
42331         acl_libdirstem.
42332         * NEWS: Mention the change.
42333         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
42334
42335 2008-08-31  Jim Meyering  <meyering@redhat.com>
42336
42337         * lib/strftime.h: Add comments describing the two added arguments.
42338
42339         remove duplicate #include directives
42340         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
42341         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
42342
42343 2008-08-31  Bruno Haible  <bruno@clisp.org>
42344
42345         New module 'sigpipe-die'.
42346         * modules/sigpipe-die: New file.
42347         * lib/sigpipe-die.h: New file.
42348         * lib/sigpipe-die.c: New file.
42349         * MODULES.html.sh (Signal handling): Add sigpipe-die.
42350
42351 2008-08-31  Bruno Haible  <bruno@clisp.org>
42352
42353         Don't override previously installed signal handlers.
42354         * lib/fatal-signal.c (saved_sigactions): New variable.
42355         (uninstall_handlers): Reset the signal to the saved handler, not
42356         to SIG_DFL (except when ignored).
42357         (install_handlers): Save the previous handlers.
42358
42359 2008-08-30  Bruno Haible  <bruno@clisp.org>
42360
42361         * gnulib-tool (func_reset_sigpipe): New function.
42362         (func_get_automake_snippet, func_modules_transitive_closure,
42363         func_import): Invoke it before a join command that reads from stdin,
42364         to avoid "echo: write error: Broken pipe" error messages on stderr.
42365         Reported by Sam Steingold <sds@gnu.org>.
42366
42367 2008-08-30  Bruno Haible  <bruno@clisp.org>
42368
42369         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
42370         Code copied from m4/open.m4.
42371         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
42372         access and the filename ends in a slash. Code copied from lib/open.c.
42373         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
42374         * tests/test-fopen.c (main): Check against bug with trailing slash.
42375
42376 2008-08-29  Bruno Haible  <bruno@clisp.org>
42377
42378         Avoid some "gcc -pedantic" warnings.
42379         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
42380         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
42381         * lib/dirent.in.h: Likewise.
42382         * lib/fcntl.in.h: Likewise.
42383         * lib/float.in.h: Likewise.
42384         * lib/iconv.in.h: Likewise.
42385         * lib/inttypes.in.h: Likewise.
42386         * lib/locale.in.h: Likewise.
42387         * lib/math.in.h: Likewise.
42388         * lib/netinet_in.in.h: Likewise.
42389         * lib/search.in.h: Likewise.
42390         * lib/signal.in.h: Likewise.
42391         * lib/stdarg.in.h: Likewise.
42392         * lib/stdint.in.h: Likewise.
42393         * lib/stdio.in.h: Likewise.
42394         * lib/stdlib.in.h: Likewise.
42395         * lib/string.in.h: Likewise.
42396         * lib/strings.in.h: Likewise.
42397         * lib/sys_select.in.h: Likewise.
42398         * lib/sys_socket.in.h: Likewise.
42399         * lib/sys_stat.in.h: Likewise.
42400         * lib/sys_time.in.h: Likewise.
42401         * lib/sysexits.in.h: Likewise.
42402         * lib/time.in.h: Likewise.
42403         * lib/unistd.in.h: Likewise.
42404         * lib/wchar.in.h: Likewise.
42405         * lib/wctype.in.h: Likewise.
42406         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
42407         * modules/fchdir (Makefile.am): Likewise.
42408         * modules/fcntl (Makefile.am): Likewise.
42409         * modules/float (Makefile.am): Likewise.
42410         * modules/iconv_open (Makefile.am): Likewise.
42411         * modules/inttypes (Makefile.am): Likewise.
42412         * modules/locale (Makefile.am): Likewise.
42413         * modules/math (Makefile.am): Likewise.
42414         * modules/netinet_in (Makefile.am): Likewise.
42415         * modules/search (Makefile.am): Likewise.
42416         * modules/signal (Makefile.am): Likewise.
42417         * modules/stdarg (Makefile.am): Likewise.
42418         * modules/stdint (Makefile.am): Likewise.
42419         * modules/stdio (Makefile.am): Likewise.
42420         * modules/stdlib (Makefile.am): Likewise.
42421         * modules/string (Makefile.am): Likewise.
42422         * modules/strings (Makefile.am): Likewise.
42423         * modules/sys_select (Makefile.am): Likewise.
42424         * modules/sys_socket (Makefile.am): Likewise.
42425         * modules/sys_stat (Makefile.am): Likewise.
42426         * modules/sys_time (Makefile.am): Likewise.
42427         * modules/sysexits (Makefile.am): Likewise.
42428         * modules/time (Makefile.am): Likewise.
42429         * modules/unistd (Makefile.am): Likewise.
42430         * modules/wchar (Makefile.am): Likewise.
42431         * modules/wctype (Makefile.am): Likewise.
42432         Reported by Reuben Thomas <rrt@sc3d.org>.
42433
42434 2008-08-29  Bruno Haible  <bruno@clisp.org>
42435
42436         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
42437         any more.
42438
42439 2008-08-29  Simon Josefsson  <simon@josefsson.org>
42440
42441         * MODULES.html.sh (Misc): Add bitrotate.
42442
42443         * modules/bitrotate: New file.
42444
42445         * lib/bitrotate.h: New file.
42446
42447         * modules/bitrotate-tests: New file.
42448
42449         * tests/test-bitrotate.c: New file.
42450
42451         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
42452         on the bitrotate module.
42453
42454         * lib/arctwo.c: Use new bitrotate module.
42455
42456 2008-08-29  Jim Meyering  <meyering@redhat.com>
42457
42458         bootstrap: merge changes from coreutils
42459         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
42460         of copied files.  Remove a kludge, now that this is fixed.
42461         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
42462         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
42463         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
42464
42465 2008-08-29  Bruno Haible  <bruno@clisp.org>
42466
42467         * MODULES.html.sh: Remove --cvs-urls option.
42468
42469 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
42470
42471         maint.mk: adjust to file name change
42472         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
42473
42474 2008-08-28  Jim Meyering  <meyering@redhat.com>
42475
42476         * modules/getndelim2 (License): Relicense to LGPLv2+.
42477         Approved by Richard Stallman for the version of 1995, and by
42478         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
42479
42480 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
42481
42482         * lib/getdelim.c (flockfile, funlockfile): Make all of them
42483         dummy if one is not available.  Do not touch them if
42484         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
42485         (getc_maybe_unlocked): New.
42486         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
42487
42488 2008-08-26  Eric Blake  <ebb9@byu.net>
42489
42490         doc/INSTALL: resync from autoconf
42491         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
42492         (INSTALL_PRELUDE): Delete; this is done more efficiently by
42493         moving...
42494         * install.texi [!autoconf]: ...here.  Resync from autoconf.
42495         * INSTALL: Regenerate.
42496         * INSTALL.ISO: New file.
42497         * INSTALL.UTF-8: Likewise.
42498
42499 2008-08-26  Jim Meyering  <meyering@redhat.com>
42500
42501         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
42502         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
42503         these definitions conditional, so that they may be overridden, too.
42504
42505 2008-08-26  Bruno Haible  <bruno@clisp.org>
42506
42507         Generate INSTALL file variants with prettier quotes.
42508         * doc/Makefile (INSTALL_PRELUDE): New macro.
42509         (INSTALL): Use it.
42510         (INSTALL.ISO, INSTALL.UTF-8): New rules.
42511
42512 2008-08-26  Bruno Haible  <bruno@clisp.org>
42513
42514         Run makeinfo in an English locale.
42515         * doc/Makefile (MAKEINFO): New variable.
42516
42517 2008-08-26  Bruno Haible  <bruno@clisp.org>
42518
42519         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
42520         Suggested by Eric Blake.
42521
42522 2008-08-25  Bruno Haible  <bruno@clisp.org>
42523
42524         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
42525
42526 2008-08-25  Eric Blake  <ebb9@byu.net>
42527
42528         c-stack: test that stack overflow can be caught
42529         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
42530         that platform allows handling stack overflow; at least OS/2 EMX
42531         has sigaltstack, but crashes before transferring control to
42532         handler on stack overflow.
42533         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
42534         check for HAVE_STACK_OVERFLOW_HANDLING.
42535         Reported by Elbert Pol.
42536
42537 2008-08-25  Bruno Haible  <bruno@clisp.org>
42538
42539         * doc/posix-functions/strftime.texi: Fix description of strftime
42540         module.
42541
42542 2008-08-24  Bruno Haible  <bruno@clisp.org>
42543
42544         * tests/uniwidth/test-uc_width2.c: New file.
42545         * tests/uniwidth/test-uc_width2.sh: New file.
42546         * modules/uniwidth/width-tests (Files): Add the new files.
42547         (TESTS): Add uniwidth/test-uc_width2.sh.
42548         (TESTS_ENVIRONMENT): New variable.
42549         (check_PROGRAMS): Add test-uc_width2.
42550         (test_uc_width2_SOURCES): New variable.
42551
42552         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
42553         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
42554         not 0x00AB.
42555         Reported by Alexander V. Lukyanov <lav@netis.ru>.
42556
42557 2008-08-22  Eric Blake  <ebb9@byu.net>
42558
42559         test-lock, test-tls: mention why a test is skipped
42560         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
42561         skipped.
42562         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
42563
42564         count-one-bits: relax license
42565         * modules/count-one-bits (License): Relicense to LGPLv2+.
42566         Suggested by Ludovic Courtès, approved by Ben Pfaff.
42567
42568 2008-08-22  Andreas Schwab  <schwab@suse.de>
42569
42570         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
42571         Remove spurious space in assignment.
42572
42573 2008-08-21  Simon Josefsson  <simon@josefsson.org>
42574
42575         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
42576         Paul Eggert <eggert@CS.UCLA.EDU>.
42577
42578 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
42579
42580         * modules/gettext: Add m4/threadlib.m4.
42581
42582 2008-08-19  Eric Blake  <ebb9@byu.net>
42583
42584         test-c-stack: fix compilation failure on FreeBSD 5.0
42585         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
42586         headers before <sys/resource.h>.
42587         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
42588         the bug.
42589         Reported by Nelson H. F. Beebe.
42590
42591         strverscmp: migrate from "strverscmp.h" to <string.h>
42592         * modules/string (Makefile.am): Add new hooks.
42593         * modules/strverscmp (Files): Remove strverscmp.h.
42594         (Depends-on): Add string.
42595         (configure.ac): Add indicator.
42596         (Include): Mention new header.
42597         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
42598         defaults.
42599         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
42600         results.
42601         * lib/strverscmp.h: Delete.
42602         * lib/string.in.h (strverscmp): Provide declaration, when needed.
42603         * tests/test-strverscmp.c (includes): Adjust client.
42604         * lib/check-version.c (includes): Likewise.
42605         * NEWS: Document the change.
42606
42607         strverscmp: add unit test
42608         * modules/strverscmp-tests: New file.
42609         * tests/test-strverscmp.c: Likewise.
42610
42611 2008-08-19  Simon Josefsson  <simon@josefsson.org>
42612
42613         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
42614         regarding Windows crypto stuff, from Mono.
42615
42616 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
42617
42618         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
42619         if present, for intel RND.  Return error on failures.
42620
42621 2008-08-18  Ben Pfaff  <blp@gnu.org>
42622
42623         gitlog-to-changelog: give better diagnostic for failed pipe-open
42624         * build-aux/gitlog-to-changelog: Improve error message: suggest
42625         that the version of Git may be too old.
42626
42627 2008-08-18  Simon Josefsson  <simon@josefsson.org>
42628
42629         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
42630         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
42631
42632 2008-08-18  Bruno Haible  <bruno@clisp.org>
42633
42634         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
42635         pthread_in_use().
42636
42637 2008-08-18  Bruno Haible  <bruno@clisp.org>
42638
42639         * lib/glthread/threadlib.c: Include <pthread.h>.
42640
42641 2008-08-18  Bruno Haible  <bruno@clisp.org>
42642
42643         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
42644         glthread_recursive_lock_* macros.
42645         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
42646         Fix syntax error.
42647
42648 2008-08-18  Bruno Haible  <bruno@clisp.org>
42649
42650         * lib/glthread/thread.c: Avoid forcing a context switch right after
42651         thread creation.
42652
42653 2008-08-17  Bruno Haible  <bruno@clisp.org>
42654
42655         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
42656         * lib/glthread/thread.h: Provide Win32 specific implementation.
42657         * modules/thread (Files): Add lib/glthread/thread.c.
42658         (Depends-on): Add lock.
42659         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
42660
42661 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42662
42663         New module 'yield'.
42664         * modules/yield: New file.
42665         * lib/glthread/yield.h: New file.
42666         * m4/yield.m4: New file.
42667         * MODULES.html.sh (Multithreading): Add yield.
42668
42669 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42670
42671         New module 'thread'.
42672         * modules/thread: New file.
42673         * lib/glthread/thread.h: New file.
42674         * m4/thread.m4: New file.
42675         * MODULES.html.sh (Multithreading): Add thread.
42676
42677 2008-08-17  Bruno Haible  <bruno@clisp.org>
42678
42679         * lib/glthread/lock.h: Include <stdlib.h> always.
42680         * lib/glthread/tls.h: Likewise.
42681         * lib/glthread/cond.h: Likewise.
42682
42683 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42684
42685         New module 'cond'.
42686         * modules/cond: New file.
42687         * lib/glthread/cond.h: New file.
42688         * lib/glthread/cond.c: New file.
42689         * m4/cond.m4: New file.
42690         * MODULES.html.sh (Multithreading): Add cond.
42691
42692 2008-08-16  Eric Blake  <ebb9@byu.net>
42693
42694         c-stack: fix regression on Irix 5.3 from 2008-06-21
42695         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
42696         sa_sigaction...
42697         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
42698         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
42699         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
42700         * modules/signal (Makefile.am): Use the value.
42701         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
42702         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
42703         * doc/posix-headers/signal.texi (signal.h): Document this
42704         portability issue.
42705         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
42706         Reported by Tom G. Christensen.
42707
42708 2008-08-17  Bruno Haible  <bruno@clisp.org>
42709
42710         New module 'threadlib'.
42711         * modules/threadlib: New file.
42712         * lib/glthread/threadlib.c: New file, extracted from
42713         lib/glthread/lock.c.
42714         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
42715         functions.
42716         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
42717         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
42718         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
42719         macros.
42720         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
42721         (gl_DISABLE_THREADS): Remove macro.
42722         * modules/lock (Files): Remove build-aux/config.rpath.
42723         (Depends-on): Remove havelib. Add threadlib.
42724         (configure.ac-early): Remove section.
42725         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
42726         * modules/tls (Depends-on): Remove lock. Add threadlib.
42727         (Link): New section, copied from threadlib.
42728         * MODULES.html.sh (Multithreading): Add threadlib.
42729
42730 2008-08-14  Bruno Haible  <bruno@clisp.org>
42731
42732         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
42733         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
42734         glthread_rwlock_unlock, glthread_rwlock_destroy,
42735         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
42736         glthread_recursive_lock_destroy): Define as macros always.
42737         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
42738         glthread_lock_lock.
42739         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
42740         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
42741         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
42742         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
42743         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
42744         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
42745         (glthread_recursive_lock_lock_func): Renamed from
42746         glthread_recursive_lock_lock.
42747         (glthread_recursive_lock_unlock_func): Renamed from
42748         glthread_recursive_lock_unlock.
42749         (glthread_recursive_lock_destroy_func): Renamed from
42750         glthread_recursive_lock_destroy.
42751
42752 2008-08-14  Bruno Haible  <bruno@clisp.org>
42753
42754         * lib/glthread/lock.h: Renamed from lib/lock.h.
42755         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
42756         * lib/glthread/tls.h: Renamed from lib/tls.h.
42757         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
42758         * lib/fstrcmp.c: Update includes.
42759         * lib/strsignal.c: Update includes.
42760         * modules/lock (Files, Makefile.am): Update.
42761         (Include): Change to "glthread/lock.h".
42762         * modules/tls (Files, Makefile.am): Update.
42763         (Include): Change to "glthread/tls.h".
42764         * tests/test-lock.c: Update includes.
42765         * tests/test-tls.c: Update includes.
42766         * NEWS: Mention the renamed header files.
42767
42768 2008-08-11  Jim Meyering  <meyering@redhat.com>
42769
42770         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
42771
42772 2008-08-11  Eric Blake  <ebb9@byu.net>
42773
42774         test-c-stack: avoid C99-ism
42775         * tests/test-c-stack.c (main): Fix whitespace, move declaration
42776         before statement.
42777         Reported by Alain Guibert.
42778
42779 2008-08-10  Jim Meyering  <meyering@redhat.com>
42780
42781         ensure that return value of uinttostr et al are not ignored
42782         * lib/inttostr.h (__GNUC_PREREQ): Define.
42783         (__attribute_warn_unused_result__): Define.
42784         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
42785
42786 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
42787
42788         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
42789         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
42790
42791 2008-08-07  Jim Meyering  <meyering@redhat.com>
42792
42793         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
42794
42795         * modules/mkstemp (License): Relicense under LGPLv2+.
42796         * modules/tempname (License): Likewise.
42797
42798 2008-08-06  Bruno Haible  <bruno@clisp.org>
42799
42800         * lib/poll.c (poll): Further micro-optimization.
42801
42802 2008-08-06  Jim Meyering  <meyering@redhat.com>
42803
42804         inet_pton.c: use locale-independent tolower
42805         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
42806         (inet_pton6): Use c_tolower rather than tolower.
42807         * modules/inet_pton (Depends-on): Add c-ctype.
42808
42809 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
42810
42811         * lib/poll.c (poll): Avoid division when timeout is 0, cache
42812         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
42813
42814 2008-08-06  Jim Meyering  <meyering@redhat.com>
42815
42816         * modules/inet_pton (License): Relicense under LGPLv2+.
42817
42818 2008-08-03  Bruno Haible  <bruno@clisp.org>
42819
42820         Additional non-aborting API for lock and tls.
42821         * lib/lock.h: Include <errno.h>.
42822         (glthread_lock_init): New macro/function.
42823         (gl_lock_init): Define as wrapper around glthread_lock_init.
42824         (glthread_lock_lock): New macro/function.
42825         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
42826         (glthread_lock_unlock): New macro/function.
42827         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
42828         (glthread_lock_destroy): New macro/function.
42829         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
42830         (glthread_rwlock_init): New macro/function.
42831         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
42832         (glthread_rwlock_rdlock): New macro/function.
42833         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
42834         (glthread_rwlock_wrlock): New macro/function.
42835         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
42836         (glthread_rwlock_unlock): New macro/function.
42837         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
42838         (glthread_rwlock_destroy): New macro/function.
42839         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
42840         (glthread_recursive_lock_init): New macro/function.
42841         (gl_recursive_lock_init): Define as wrapper around
42842         glthread_recursive_lock_init.
42843         (glthread_recursive_lock_lock): New macro/function.
42844         (gl_recursive_lock_lock): Define as wrapper around
42845         glthread_recursive_lock_lock.
42846         (glthread_recursive_lock_unlock): New macro/function.
42847         (gl_recursive_lock_unlock): Define as wrapper around
42848         glthread_recursive_lock_unlock.
42849         (glthread_recursive_lock_destroy): New macro/function.
42850         (gl_recursive_lock_destroy): Define as wrapper around
42851         glthread_recursive_lock_destroy.
42852         (glthread_once): New macro/function.
42853         (gl_once): Define as wrapper around glthread_once.
42854         Update function declarations.
42855         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
42856         glthread_rwlock_init. Return error code.
42857         (glthread_rwlock_rdlock_multithreaded): Renamed from
42858         glthread_rwlock_rdlock. Return error code.
42859         (glthread_rwlock_wrlock_multithreaded): Renamed from
42860         glthread_rwlock_wrlock. Return error code.
42861         (glthread_rwlock_unlock_multithreaded): Renamed from
42862         glthread_rwlock_unlock. Return error code.
42863         (glthread_rwlock_destroy_multithreaded): Renamed from
42864         glthread_rwlock_destroy. Return error code.
42865         (glthread_recursive_lock_init_multithreaded): Renamed from
42866         glthread_recursive_lock_init. Return error code.
42867         (glthread_recursive_lock_lock_multithreaded): Renamed from
42868         glthread_recursive_lock_lock. Return error code.
42869         (glthread_recursive_lock_unlock_multithreaded): Renamed from
42870         glthread_recursive_lock_unlock. Return error code.
42871         (glthread_recursive_lock_destroy_multithreaded): Renamed from
42872         glthread_recursive_lock_destroy. Return error code.
42873         (glthread_once_call): Make static.
42874         (glthread_once_multithreaded): Renamed from glthread_once.
42875         * lib/tls.h: Include <errno.h>.
42876         (glthread_tls_key_init): New macro/function.
42877         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
42878         (glthread_tls_set): New macro/function.
42879         (gl_tls_set): Define as wrapper around glthread_tls_set.
42880         (glthread_tls_key_destroy): New macro/function.
42881         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
42882         Update function declarations.
42883         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
42884         glthread_tls_get.
42885         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42886
42887 2008-08-04  Eric Blake  <ebb9@byu.net>
42888
42889         gnumakefile: use space, not TAB, outside of targets
42890         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
42891
42892 2008-08-02  Jim Meyering  <meyering@redhat.com>
42893
42894         getdate.y: avoid locale-dependent date parsing failure
42895         In Turkish locales, getdate would fail to recognize keywords
42896         containing a lowercase "i".  The solution is not to rely on
42897         locale-sensitive case-conversion.
42898         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
42899         (lookup_word): Use c_toupper in place of toupper.
42900         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
42901         Reported by Vefa Bicakci <bicave@superonline.com> in
42902         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
42903         * modules/getdate (Depends-on): Add c-ctype.
42904
42905 2008-08-02  Bruno Haible  <bruno@clisp.org>
42906
42907         * gnulib-tool (func_import): When updating or creating a .gitignore
42908         file, prepend each added line with a slash, and ignore leading slashes
42909         from the existing lines.
42910         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
42911
42912 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42913
42914         Portability fix for GNU make 3.79.1.
42915         * top/GNUmakefile: Avoid 'else COND', which older GNU make
42916         versions do not understand.
42917
42918 2008-08-01  Bruno Haible  <bruno@clisp.org>
42919
42920         Work around bug of HP-UX 10.20 cc with -0.0 literal.
42921         * tests/test-isnanf.h (zero): New variable.
42922         (main): Avoid literal -0.0f.
42923         * tests/test-isnand.h (zero): New variable.
42924         (main): Avoid literal -0.0.
42925         * tests/test-isnanl.h (zero): New variable.
42926         (main): Avoid literal -0.0L.
42927         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
42928         (test_float, test_double, test_long_double): Avoid literals -0.0f,
42929         -0.0, -0.0L.
42930         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
42931         (test_signbitd): Avoid literal -0.0.
42932         (test_signbitl): Avoid literal -0.0L.
42933         * tests/test-ceilf1.c (zero): New variable.
42934         (main): Avoid literal -0.0f.
42935         * tests/test-ceill.c (zero): New variable.
42936         (main): Avoid literal -0.0L.
42937         * tests/test-floorf1.c (zero): New variable.
42938         (main): Avoid literal -0.0f.
42939         * tests/test-floorl.c (zero): New variable.
42940         (main): Avoid literal -0.0L.
42941         * tests/test-roundf1.c (zero): New variable.
42942         (main): Avoid literal -0.0f.
42943         * tests/test-round1.c (zero): New variable.
42944         (main): Avoid literal -0.0.
42945         * tests/test-roundl.c (zero): New variable.
42946         (main): Avoid literal -0.0L.
42947         * tests/test-truncf1.c (zero): New variable.
42948         (main): Avoid literal -0.0f.
42949         * tests/test-trunc1.c (zero): New variable.
42950         (main): Avoid literal -0.0.
42951         * tests/test-truncl.c (zero): New variable.
42952         (main): Avoid literal -0.0L.
42953         * tests/test-frexp.c (zero): New variable.
42954         (main): Avoid literal -0.0.
42955         * tests/test-frexpl.c (zero): New variable.
42956         (main): Avoid literal -0.0L.
42957         * tests/test-ldexpl.c (zero): New variable.
42958         (main): Avoid literal -0.0L.
42959         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
42960         (zerod, zerol): New variables.
42961         (test_function): Avoid literals -0.0, -0.0L.
42962         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
42963         (zerod, zerol): New variables.
42964         (test_function): Avoid literals -0.0, -0.0L.
42965         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
42966         (zerod, zerol): New variables.
42967         (test_function): Avoid literals -0.0, -0.0L.
42968         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
42969         (zerod, zerol): New variables.
42970         (test_function): Avoid literals -0.0, -0.0L.
42971         * tests/test-strtod.c (zero): New variable.
42972         (main): Avoid literal -0.0.
42973         Reported by Jonathan C. Patschke <jp@centtech.com>.
42974
42975 2008-07-31  Jim Meyering  <meyering@redhat.com>
42976
42977         sha256.h: correct definition of SHA224_DIGEST_SIZE
42978         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
42979         Reported by Paulie Pena IV <paulie4@gmail.com>.
42980         Define as 224 / 8, rather than as a literal.
42981         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
42982         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
42983         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
42984
42985 2008-07-31  Bruno Haible  <bruno@clisp.org>
42986
42987         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
42988         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
42989         Reported by Jonathan Patschke <jp@centtech.com>.
42990
42991 2008-07-31  Bruno Haible  <bruno@clisp.org>
42992
42993         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
42994         Reported by Paolo Bonzini <bonzini@gnu.org>.
42995
42996 2008-07-30  Eric Blake  <ebb9@byu.net>
42997
42998         test-strtod: allow compilation without -lm
42999         * tests/test-strtod.c (main): Avoid link dependence on fabs.
43000         Reported by Dennis Clarke <blastwave@gmail.com>.
43001
43002 2008-07-28  Jim Meyering  <meyering@redhat.com>
43003
43004         bootstrap: work also when there are no .po files in po/
43005         * build-aux/bootstrap (update_po_files): Complete the change
43006         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
43007
43008 2008-07-27  Jim Meyering  <meyering@redhat.com>
43009
43010         * users.txt: Add zile.
43011
43012 2008-07-26  Ben Pfaff  <blp@gnu.org>
43013
43014         Add missing dependencies on new m4/exponent[fdl].m4 files.
43015         * modules/isnanf-nolibm: Add m4/exponentf.m4.
43016         * modules/isnand-nolibm: Add m4/exponentd.m4.
43017         * modules/isnanl-nolibm: Add m4/exponentl.m4.
43018         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
43019         m4/isnan[fdl].m4, because the macros actually used moved.
43020         Reported by Jim Meyering.
43021
43022 2008-07-14  Ben Pfaff  <blp@gnu.org>
43023
43024         Add isinf module.
43025         * lib/isinf.c: New file.
43026         * lib/math.in.h: Define isinf macro if we have decided to replace
43027         it.
43028         * m4/isinf.m4: New file.
43029         * m4/math_h.m4: Initialize and substitute variables for isinf
43030         module.
43031         * modules/isinf: New file.
43032         * modules/isinf-tests: New file.
43033         * modules/math: Add substitutions for new module.
43034         * tests/test-isinf.c: New file.
43035         * doc/posix-functions/isinf.texi: Mention new module.
43036         * MODULES.html.sh: Mention new module.
43037
43038 2008-07-14  Ben Pfaff  <blp@gnu.org>
43039
43040         Factor out some macros for use by additional modules.
43041         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
43042         exponentf.m4.
43043         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
43044         exponentd.m4.
43045         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
43046         file exponentl.m4.
43047         * m4/exponentf.m4: New file.
43048         * m4/exponentd.m4: New file.
43049         * m4/exponentl.m4: New file.
43050         * modules/isnanf: Use new file m4/exponentf.m4.
43051         * modules/isnand: Use new file m4/exponentd.m4.
43052         * modules/isnanl: Use new file m4/exponentl.m4.
43053
43054 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
43055
43056         mktime.c: normalize tp->tm_isdst value to -1/0/1.
43057         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
43058         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
43059         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
43060
43061         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
43062         readlink on platforms without PATH_MAX.
43063
43064 2008-07-21  Eric Blake  <ebb9@byu.net>
43065
43066         Warn, not fail, on stale version.
43067         * top/GNUmakefile (_curr-ver): Tone down previous patch.
43068
43069         Don't allow installation with stale devel version number.
43070         * top/GNUmakefile (_is-install-target): New macro.
43071         (_curr-ver): Forbid installation with stale version number.
43072
43073 2008-07-20  Bruno Haible  <bruno@clisp.org>
43074
43075         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
43076         TESTS_ENVIRONMENT.
43077         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
43078
43079 2008-07-20  Bruno Haible  <bruno@clisp.org>
43080
43081         * lib/c-stack.h (c_stack_action): Add documentation.
43082         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
43083
43084 2008-07-20  Bruno Haible  <bruno@clisp.org>
43085
43086         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
43087         * modules/readlink (License): Likewise.
43088
43089 2008-07-17  Eric Blake  <ebb9@byu.net>
43090
43091         * modules/c-stack (Link): Fix typo.
43092
43093         Make c-stack use libsigsegv, when available.
43094         * modules/c-stack (Depends-on): Add libsigsegv.
43095         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
43096         needed.
43097         * lib/c-stack.c (SIGSTKSZ): Define fallback.
43098         (segv_handler, overflow_handler, c_stack_action)
43099         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
43100         implementation when libsigsegv is available, but only when using
43101         the library is necessary.
43102         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
43103         comment, explaining why XSI check fails on Linux.
43104         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
43105         * tests/test-c-stack2.sh: Tweak skip message.
43106         * NEWS: Document new link-time requirements.
43107
43108 2008-07-16  Eric Blake  <ebb9@byu.net>
43109
43110         c-stack: Expose false positives when not using libsigsegv.
43111         * modules/c-stack-tests (Files): Expand test.
43112         * tests/test-c-stack.c (main): Add means to conditionally trigger
43113         non-overflow SIGSEGV.
43114         * tests/test-c-stack2.sh: New file.
43115
43116 2008-07-14  Bruno Haible  <bruno@clisp.org>
43117
43118         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
43119         Reported by Eric Blake.
43120
43121 2008-07-14  Sam Steingold  <sds@gnu.org>
43122             Bruno Haible  <bruno@clisp.org>
43123
43124         New module libsigsegv.
43125         * modules/libsigsegv: New file.
43126         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
43127         modifications.
43128         * MODULES.html.sh (Signal handling): New section.
43129
43130 2008-07-14  Bruno Haible  <bruno@clisp.org>
43131
43132         * modules/unictype/ctype-* (Description): Add the word "function".
43133         Improves the resulting doc in MODULES.html.
43134
43135 2008-07-12  Ben Pfaff  <blp@gnu.org>
43136
43137         Add longlong module.
43138         * modules/longlong: New file.
43139
43140 2008-07-12  Bruno Haible  <bruno@clisp.org>
43141
43142         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
43143         to empty.
43144
43145 2008-07-10  Ben Pfaff  <blp@gnu.org>
43146
43147         Add isnan module.
43148         * doc/posix-functions/isnan.texi: Mention new module.
43149         * lib/math.in.h: Define isnan macro if we have decided to replace
43150         it.
43151         * m4/isnan.m4: New file.
43152         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
43153         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
43154         also.
43155         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
43156         redundancy.
43157         * m4/math_h.m4: Initialize and substitute variables for isnan
43158         module.
43159         * modules/isnan: New file.
43160         * modules/isnan-tests: New file.
43161         * modules/math: Add substitutions for new module.
43162         * tests/test-isnan.c: New file.
43163         * MODULES.html.sh: Mention new module.
43164
43165 2008-07-10  Ben Pfaff  <blp@gnu.org>
43166
43167         Add isnanf module.
43168         * lib/isnanf.m4: New file.
43169         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
43170         (gl_HAVE_ISNANF_IN_LIBM): New macro.
43171         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
43172         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
43173         * modules/isnanf: New file.
43174         * modules/isnanf-tests: New file.
43175         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
43176         files.
43177         * tests/test-isnanf-nolibm.c: factored most of its contents into
43178         new file tests/test-isnanf.h.
43179         * tests/test-isnanf.h: New file.
43180         * tests/test-isnanf.c: New file.
43181         * MODULES.html.sh: Mention new module.
43182         * doc/glibc-functions/isnanf.texi: Mention new module.
43183
43184 2008-07-10  Ben Pfaff  <blp@gnu.org>
43185
43186         Add isnand module.
43187         * lib/isnand.h: New file.
43188         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
43189         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
43190         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
43191         functionality also.
43192         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
43193         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
43194         (gl_HAVE_ISNAND_IN_LIBM): New macro.
43195         * modules/isnand: New file.
43196         * modules/isnand-tests: New file.
43197         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
43198         files.
43199         * tests/test-isnand-nolibm.c: factored most of its contents into
43200         new file tests/test-isnand.h.
43201         * tests/test-isnand.h: New file.
43202         * tests/test-isnand.c: New file.
43203         * MODULES.html.sh: Mention new module.
43204
43205 2008-07-10  Ben Pfaff  <blp@gnu.org>
43206
43207         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
43208         * lib/isnand.h: Rename lib/isnand-nolibm.h.
43209         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
43210         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
43211         * modules/isnanf-nolibm: Update references to renamed files.
43212         * modules/isnand-nolibm: Likewise.
43213         * modules/isnanf-nolibm-tests: Likewise.
43214         * modules/isnand-nolibm-tests: Likewise.
43215         * lib/frexp.c: Likewise.
43216         * lib/isfinite.c: Likewise.
43217         * lib/signbitd.c: Likewise.
43218         * lib/signbitf.c: Likewise.
43219         * lib/vasnprintf.c: Likewise.
43220         * tests/test-ceilf1.c: Likewise.
43221         * tests/test-ceilf2.c: Likewise.
43222         * tests/test-floorf1.c: Likewise.
43223         * tests/test-floorf2.c: Likewise.
43224         * tests/test-frexp.c: Likewise.
43225         * tests/test-round1.c: Likewise.
43226         * tests/test-round2.c: Likewise.
43227         * tests/test-roundf1.c: Likewise.
43228         * tests/test-strtod.c: Likewise.
43229         * tests/test-trunc1.c: Likewise.
43230         * tests/test-trunc2.c: Likewise.
43231         * tests/test-truncf1.c: Likewise.
43232         * tests/test-truncf2.c: Likewise.
43233         * NEWS: Mention the renamed header files.
43234
43235 2008-07-11  Jim Meyering  <meyering@redhat.com>
43236
43237         vc-list-files: make the last-resort awk code more portable
43238         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
43239         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
43240         does not support it.
43241
43242 2008-07-10  Eric Blake  <ebb9@byu.net>
43243
43244         Work with tar's bootstrap.
43245         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
43246         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
43247         an m4 comment.
43248
43249 2008-07-09  Jim Meyering  <meyering@redhat.com>
43250
43251         posix-shell.m4: fix typo that made this test malfunction
43252         * m4/posix-shell.m4: Remove capitalization in variable name.
43253
43254 2008-07-08  Bruno Haible  <bruno@clisp.org>
43255
43256         * m4/onceonly.m4: Update comments.
43257         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43258
43259 2008-07-04  Jim Meyering  <meyering@redhat.com>
43260
43261         * users.txt: Add vc-dwim.
43262         (bison, coreutils): Use the gitweb URL.
43263
43264 2008-07-03  Jim Meyering  <meyering@redhat.com>
43265
43266         * users.txt: Add libffcall.  From Sam Steingold.
43267
43268 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
43269
43270         getdate.y: do not ignore TZ with relative day, month or year offset
43271         * lib/getdate.y (get_date): Move the tz-handling block to follow the
43272         relative-date-handling, since otherwise, the latter would clobber the
43273         sole output (an updated Start value) of the tz-handling block.
43274         * tests/test-getdate.c: Tests for the fix
43275
43276 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43277
43278         Recognize 'foo_LIBRARIES += libgnu.a'.
43279         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
43280         makefile snippet has already specified an installation location,
43281         also using '+='.
43282
43283 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
43284
43285         getdate.y: factor out common actions
43286         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
43287         Use them in place of open-coded actions.
43288
43289 2008-07-01  Simon Josefsson  <simon@josefsson.org>
43290
43291         Add self-test for getdate module.
43292         * modules/getdate-tests: New file.
43293         * tests/test-getdate.c: New file.
43294
43295 2008-06-29  Bruno Haible  <bruno@clisp.org>
43296
43297         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
43298         .gitignore.
43299         Reported by Sylvain Beucler <beuc@beuc.net>.
43300
43301 2008-06-29  Bruno Haible  <bruno@clisp.org>
43302
43303         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
43304         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
43305
43306 2008-06-29  Bruno Haible  <bruno@clisp.org>
43307
43308         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
43309         EXTRA_DIST.
43310         Reported by Sylvain Beucler <beuc@beuc.net>.
43311
43312 2008-06-26  Jim Meyering  <meyering@redhat.com>
43313
43314         make several modules depend on the "open" module
43315         This provides slightly increased consistency when opening-for-write
43316         the name of a non-directory spelled with a trailing slash.
43317         * modules/chdir-safer: Likewise.
43318         * modules/chown: Likewise.
43319         * modules/clean-temp: Likewise.
43320         * modules/copy-file: Likewise.
43321         * modules/fchdir: Likewise.
43322         * modules/fcntl-safer: Likewise.
43323         * modules/pipe: Likewise.
43324         * modules/utime: Likewise.
43325         Prompted by Eric Blake and Bruno Haible.
43326
43327 2008-06-24  Andreas Schwab  <schwab@suse.de>
43328
43329         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
43330         literals can be used as initializers for global variables.
43331
43332 2008-06-23  Eric Blake  <ebb9@byu.net>
43333
43334         Make gnulib-cache.m4 easier to diff.
43335         * gnulib-tool (func_import): Allow newlines when reading cached
43336         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
43337
43338 2008-06-23  Bruno Haible  <bruno@clisp.org>
43339
43340         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
43341         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
43342         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
43343         m4/signalblocking.m4.
43344         (gl_PREREQ_SIGACTION): Don't invoke it.
43345         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
43346         gl_PREREQ_SIG_HANDLER_H.
43347         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
43348         Don't check for sigaction here.
43349
43350 2008-06-23  Bruno Haible  <bruno@clisp.org>
43351
43352         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
43353         (install_handlers): Don't set the SA_RESETHAND flag.
43354
43355 2008-06-23  Bruno Haible  <bruno@clisp.org>
43356
43357         * m4/sigaction.m4: Comment fixes.
43358         * lib/signal.in.h: Likewise.
43359
43360 2008-06-23  Eric Blake  <ebb9@byu.net>
43361
43362         Fix typo.
43363         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
43364
43365         Avoid SA_ namespace.
43366         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
43367         Reported by Ralf Wildenhues.
43368
43369         Avoid test failure due to SA_RESTORER.
43370         * tests/test-sigaction.c (SA_MASK): New macro.
43371         (main): Avoid failing due to extension flags being set.
43372         Reported by Jim Meyering.
43373
43374         Revert use of sig-handler.h in sigprocmask.c.
43375         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
43376         it requires the existence of struct sigaction.
43377         * lib/sigprocmask.c (handler_t): Restore typedef.
43378         (rpl_signal, old_handlers): Use local type.
43379
43380 2008-06-22  Bruno Haible  <bruno@clisp.org>
43381
43382         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
43383         conditionally.
43384         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43385
43386 2008-06-22  Bruno Haible  <bruno@clisp.org>
43387
43388         * doc/posix-functions/siginterrupt.texi: Move note.
43389
43390         * lib/signal.in.h (SA_RESTART): New macro.
43391         * lib/sigaction.c: Update comment.
43392
43393         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
43394
43395         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
43396         (gl_PREREQ_SIGPROCMASK): Invoke it.
43397         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
43398
43399         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
43400
43401         * lib/sigprocmask.c: Update a comment.
43402
43403 2008-06-21  Eric Blake  <ebb9@byu.net>
43404
43405         Use sigaction module rather than signal().
43406         * modules/c-stack (Depends-on): Add sigaction.
43407         * modules/fatal-signal (Depends-on): Likewise.
43408         * modules/nanosleep (Depends-on): Likewise.
43409         * modules/sigprocmask (Files): Add sig-handler.h.
43410         * modules/sigaction (Files): Likewise.
43411         * lib/sig-handler.h (get_handler): New file, suggested by Paul
43412         Eggert.
43413         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
43414         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
43415         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
43416         (init_fatal_signals): Likewise.
43417         * lib/nanosleep.c (rpl_nanosleep): Likewise.
43418         (siginterrupt): Delete fallback.
43419         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
43420         instead.
43421         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
43422         siginterrupt.
43423
43424         New module sigaction, for mingw.
43425         * modules/sigaction: New module...
43426         * modules/sigaction-tests: ...and its test.
43427         * m4/sigaction.m4: New file.
43428         * lib/sigaction.c: Likewise.
43429         * tests/test-sigaction.c: Likewise.
43430         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
43431         * modules/signal (Makefile.am): Likewise.
43432         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
43433         needed.
43434         * doc/posix-headers/signal.texi (signal.h): Mention provided
43435         types.
43436         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
43437         that sigaction is preferable.
43438         * doc/posix-functions/sigaction.texi (sigaction): Mention new
43439         module.
43440         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43441         sigaction.
43442
43443         Improve robustness of sigprocmask by overriding signal.
43444         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
43445         is in use.
43446         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
43447         (SIGKILL, SIGSTOP): Provide fallbacks.
43448         (rpl_signal): Implement.
43449         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
43450         signal can be called inside handlers.
43451
43452         Fix nanosleep module on mingw.
43453         * modules/nanosleep (Depends-on): Add sys_select.
43454         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
43455
43456         Fix licensing of sigprocmask.
43457         * modules/raise (License): Relicense as LGPL.
43458
43459 2008-06-21  Bruno Haible  <bruno@clisp.org>
43460
43461         * lib/propername.c (proper_name_utf8): Don't use the transliterated
43462         result if it contains question marks.
43463         Reported by Michael Geng <linux@michaelgeng.de>.
43464
43465 2008-06-19  Bruno Haible  <bruno@clisp.org>
43466
43467         Fix CVS-ism.
43468         * doc/gnulib.texi: Include updated-stamp.texi.
43469         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
43470         (updated-stamp.texi): New rule.
43471         (gnulib.info): Depend on it.
43472         * doc/.gitignore: Add updated-stamp.texi.
43473         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
43474
43475 2008-06-19  Bruno Haible  <bruno@clisp.org>
43476
43477         * doc/Makefile (gnulib.info): Update and simplify dependencies.
43478         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
43479
43480 2008-06-19  Eric Blake  <ebb9@byu.net>
43481
43482         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
43483         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
43484         Reported by Stepan Kasal.
43485
43486 2008-06-18  Bruno Haible  <bruno@clisp.org>
43487
43488         * lib/fatal-signal.c (init_fatal_signals): Add comment.
43489         Reported by Eric Blake.
43490
43491 2008-06-18  Eric Blake  <ebb9@byu.net>
43492
43493         Work around cygwin 1.5.25 strsignal bug.
43494         * tests/test-strsignal.c: Allow for const char *.
43495         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
43496
43497 2008-06-18  Simon Josefsson  <simon@josefsson.org>
43498
43499         * users.txt: Update URL to article and add author/date
43500         information.
43501
43502 2008-06-17  Bruno Haible  <bruno@clisp.org>
43503
43504         New macro gl_DISABLE_THREADS.
43505         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
43506         if the user did not pass --enable-threads or --disable-threads option.
43507         (gl_DISABLE_THREADS): New macro.
43508         Reported by Eric Blake <ebb9@byu.net>.
43509
43510 2008-06-17  Bruno Haible  <bruno@clisp.org>
43511
43512         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
43513         when the macro ignores it.
43514         Based on a patch by Eric Blake <ebb9@byu.net>.
43515
43516 2008-06-17  Bruno Haible  <bruno@clisp.org>
43517
43518         * modules/tls (License): Change to LGPLv2+.
43519         Reported by Eric Blake.
43520
43521 2008-06-17  Eric Blake  <ebb9@byu.net>
43522
43523         Simplify c-stack prerequisites.
43524         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
43525         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
43526         no longer requires <ucontext.h> to exist.  Optimize setrlimit
43527         check.
43528         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
43529         <sys/resource.h>.
43530
43531         Move c-stack test into testsuite.
43532         * modules/c-stack-tests: New file.
43533         * lib/c-stack.c [DEBUG]: Move test program...
43534         * tests/test-c-stack.c: ...into this new file.  Skip rather than
43535         fail test if sigaltstack is lacking.
43536         * tests/test-c-stack.sh: New driver file.
43537
43538 2008-06-16  Eric Blake  <ebb9@byu.net>
43539
43540         Use raise module consistently.
43541         * modules/fatal-signal (Depends-on): Add raise.
43542         * modules/sigprocmask (Depends-on): Likewise.
43543         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
43544         * lib/sigprocmask.c (sigprocmask): Likewise.
43545         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
43546         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
43547
43548         Fix compliance bug in sigpending.
43549         * lib/sigprocmask.c (sigpending): Return pending array via
43550         parameter, not return value.
43551
43552 2008-06-14  Eric Blake  <ebb9@byu.net>
43553
43554         Improve obstack-printf test code.
43555         * tests/test-obstack-printf.c (test_function): Fix comment, and
43556         simplify usage of obstack_* in macros.  Add a test for coverage.
43557         Reported by Bruno Haible.
43558
43559 2008-06-14  Bruno Haible  <bruno@clisp.org>
43560
43561         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
43562         array size as a constant, not as a const variable.
43563         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
43564         AC_USE_SYSTEM_EXTENSIONS.
43565         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
43566         Test whether the obstack_printf function actually exists.
43567         * modules/obstack-printf (Depends-on): Add extensions.
43568         (Include): Remove obstack.h.
43569         * modules/obstack-printf-posix (Depends-on): Add extensions.
43570         (Include): Remove obstack.h.
43571
43572 2008-06-13  Eric Blake  <ebb9@byu.net>
43573
43574         Add obstack-printf and obstack-printf-posix modules.
43575         * modules/obstack-printf: New file.
43576         * modules/obstack-printf-posix: Likewise.
43577         * MODULES.html.sh (Misc): Mention them.
43578         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
43579         Likewise.
43580         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
43581         Likewise.
43582         * modules/stdio (Makefile.am): Accomodate new modules.
43583         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43584         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
43585         Declare.
43586         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
43587         functions.
43588         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
43589         (gl_REPLACE_OBSTACK_PRINTF): New macros
43590         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
43591         * tests/test-obstack-printf.c: New file.
43592         * modules/obstack-printf-tests: Likewise.
43593         * modules/obstack-printf-posix-tests: Likewise.
43594
43595 2008-06-11  Bruno Haible  <bruno@clisp.org>
43596
43597         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
43598         * lib/open.c: Include errno.h.
43599         (open): Fail when attempting to write to a file that has a trailing
43600         slash.
43601         * tests/test-open.c (main): Test against trailing slash bug.
43602         * doc/posix-functions/open.texi: Mention the trailing slash bug.
43603
43604 2008-06-10  Bruno Haible  <bruno@clisp.org>
43605
43606         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
43607         for $? to work inside the trap command, with various /bin/sh-s.
43608         * tests/test-vc-list-files-cvs.sh: Likewise.
43609
43610 2008-06-10  Bruno Haible  <bruno@clisp.org>
43611
43612         * lib/acl-internal.h: Don't include gettext.h here.
43613         * lib/set-mode-acl.c: Include gettext.h here.
43614         * lib/copy-acl.c: Likewise.
43615
43616 2008-06-10  Bruno Haible  <bruno@clisp.org>
43617
43618         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
43619         * lib/wait-process.c (wait_subprocess): Likewise.
43620         * lib/execute.h (execute): Add termsigp argument.
43621         * lib/execute.c (execute): Likewise.
43622         * lib/csharpcomp.c (compile_csharp_using_pnet,
43623         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
43624         * lib/csharpexec.c (execute_csharp_using_pnet,
43625         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
43626         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
43627         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
43628         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
43629         is_jikes_present): Update.
43630         * lib/javaexec.c (execute_java_class): Update.
43631         * lib/javaversion.c (execute_and_read_line): Update.
43632         * NEWS: Document the changes.
43633         Reported by Eric Blake.
43634
43635 2008-06-10  Eric Blake  <ebb9@byu.net>
43636
43637         Add missing include.
43638         * tests/test-strstr.c (includes): Add <signal.h>.
43639         * tests/test-strcasestr.c (includes): Likewise.
43640         * tests/test-memmem.c (includes): Likewise.
43641
43642 2008-06-10  Bruno Haible  <bruno@clisp.org>
43643
43644         * lib/wait-process.c (wait_subprocess): Add an assertion.
43645
43646 2008-06-10  Bruno Haible  <bruno@clisp.org>
43647
43648         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
43649
43650 2008-06-10  Bruno Haible  <bruno@clisp.org>
43651
43652         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
43653         using alarm().
43654         * tests/test-strcasestr.c (main): Likewise.
43655         * tests/test-strstr.c (main): Likewise.
43656
43657 2008-06-09  Bruno Haible  <bruno@clisp.org>
43658
43659         Work around the Solaris 10 ACE ACLs ABI change.
43660         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
43661         declare if ACL_NO_TRIVIAL is present.
43662         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
43663         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
43664         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
43665         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
43666         define if ACL_NO_TRIVIAL is present.
43667         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
43668         and use the current ABI.
43669         (file_has_acl): Use same #if condition as elsewhere.
43670         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
43671         in use, and use the current ABI.
43672         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
43673         Reported by Jim Meyering.
43674
43675 2008-06-09  Eric Blake  <ebb9@byu.net>
43676
43677         Work around environments that (stupidly) ignore SIGALRM.
43678         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
43679         before using alarm().
43680         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43681         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
43682         Reported by Ian Beckwith <ianb@erislabs.net>.
43683
43684         Produce autobuild blurb earlier in log.
43685         * modules/autobuild (configure.ac-early): Move AB_INIT here.
43686
43687 2008-06-09  Jim Meyering  <meyering@redhat.com>
43688         and OndÅ™ej Vašík  <ovasik@redhat.com>
43689
43690         utimens.c: correct kernel bug work-around
43691         OndÅ™ej Vašík found that the invalid return value of 280 indicates
43692         failure, not success, and the kernel bug we're trying to work
43693         around affects not just the utimensat call, but also the fallback
43694         futimens call.
43695         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
43696         not success.
43697         [HAVE_FUTIMENS]: Use the same work-around, here.
43698
43699 2008-06-09  Jim Meyering  <meyering@redhat.com>
43700
43701         add more guards around definition of ACE_-related code
43702         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
43703         ALLOW and ACE_OWNER are also defined.
43704
43705 2008-06-08  Bruno Haible  <bruno@clisp.org>
43706
43707         * lib/acl-internal.h: Add me as co-author.
43708         * lib/file-has-acl.c: Likewise.
43709         * lib/set-mode-acl.c: Likewise.
43710         * lib/copy-acl.c: Likewise.
43711
43712 2008-06-08  Bruno Haible  <bruno@clisp.org>
43713
43714         Add support for AIX ACLs.
43715         * lib/acl-internal.h (acl_nontrivial): New declaration.
43716         * lib/file-has-acl.c (acl_nontrivial): New function.
43717         (file_has_acl): Add implementation using AIX 4 ACL API.
43718         * lib/set-mode-acl.c (qset_acl): Likewise.
43719         * lib/copy-acl.c (qcopy_acl): Likewise.
43720
43721 2008-06-08  Bruno Haible  <bruno@clisp.org>
43722
43723         Add support for HP-UX ACLs.
43724         * lib/acl-internal.h (acl_nontrivial): New declaration.
43725         * lib/file-has-acl.c (acl_nontrivial): New function.
43726         (file_has_acl): Add implementation using HP-UX 11 ACL API.
43727         * lib/set-mode-acl.c (qset_acl): Likewise.
43728         * lib/copy-acl.c (qcopy_acl): Likewise.
43729
43730 2008-06-08  Bruno Haible  <bruno@clisp.org>
43731
43732         Add support for Cygwin ACLs.
43733         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
43734         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
43735         the chmod_or_fchmod call.
43736         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
43737
43738 2008-06-08  Bruno Haible  <bruno@clisp.org>
43739
43740         Fix bug with setuid modes in Solaris 10+ code.
43741         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
43742         succeeded, when the mode contains some special bits.
43743
43744 2008-06-08  Bruno Haible  <bruno@clisp.org>
43745
43746         Add support for Solaris 7..10 ACLs.
43747         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
43748         declarations.
43749         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
43750         functions.
43751         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
43752         * lib/set-mode-acl.c (qset_acl): Likewise.
43753         * lib/copy-acl.c (qcopy_acl): Likewise.
43754
43755 2008-06-08  Bruno Haible  <bruno@clisp.org>
43756
43757         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
43758         declaration.
43759         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
43760         (acl_access_nontrivial): Remove MacOS X case.
43761         (file_has_acl): Use acl_extended_nontrivial.
43762         * lib/copy-acl.c (qcopy_acl): Likewise.
43763
43764 2008-06-08  Bruno Haible  <bruno@clisp.org>
43765
43766         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
43767
43768 2008-06-08  Jim Meyering  <meyering@redhat.com>
43769
43770         * modules/acl (Maintainer): Add Bruno Haible.
43771
43772 2008-06-07  Bruno Haible  <bruno@clisp.org>
43773
43774         Improve support for Tru64 ACLs.
43775         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
43776         ACL on OSF/1.
43777
43778 2008-06-07  Bruno Haible  <bruno@clisp.org>
43779
43780         Add support for MacOS X ACLs.
43781         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
43782         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
43783         * lib/set-mode-acl.c (qset_acl): Likewise.
43784         * lib/copy-acl.c (qcopy_acl): Likewise.
43785
43786 2008-06-07  Bruno Haible  <bruno@clisp.org>
43787
43788         Fix memory leak introduced on 2008-05-22.
43789         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
43790         use.
43791
43792 2008-06-07  Bruno Haible  <bruno@clisp.org>
43793
43794         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
43795         to construct an empty ACL.
43796
43797 2008-06-07  Bruno Haible  <bruno@clisp.org>
43798
43799         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
43800         precisely.
43801         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
43802
43803 2008-06-07  Bruno Haible  <bruno@clisp.org>
43804
43805         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
43806         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
43807
43808 2008-06-07  Bruno Haible  <bruno@clisp.org>
43809
43810         * doc/posix-functions/_setjmp.texi: Explain the use of this function
43811         regardless of POSIX.
43812         * doc/posix-functions/_longjmp.texi: Likewise.
43813         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
43814         SystemV platform in this case.
43815
43816 2008-06-06  Eric Blake  <ebb9@byu.net>
43817
43818         Document abort() bugs.
43819         * doc/posix-functions/abort.texi (abort): Mention anomalies.
43820
43821         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
43822         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
43823         sigsetjmp.
43824         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
43825         siglongjmp, but only as a macro.
43826         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
43827         is obsolete.
43828         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
43829
43830         Tweak documentation to cover cygwin argz bugs.
43831         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
43832         argz bug fix; no code change needed since no cygwin releases
43833         occurred between the last fix and the bug being tested.
43834         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
43835         module and recently fixed cygwin bugs.
43836         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
43837         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
43838         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
43839         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
43840         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
43841         Likewise.
43842         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
43843         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
43844         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
43845         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
43846         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
43847         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
43848         Likewise.
43849
43850         Avoid gcc warning on cygwin.
43851         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
43852         !ACL_NO_TRIVIAL]: Avoid unused variable.
43853
43854 2008-06-05  Eric Blake  <ebb9@byu.net>
43855
43856         Be tolerant of UNKNOWN version in gnulib-tool test dir.
43857         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
43858         git-version-gen fails to come up with a version.
43859         Reported by Simon Josefsson.
43860
43861 2008-06-05  Jim Meyering  <meyering@redhat.com>
43862             Paul Eggert  <eggert@cs.ucla.edu>
43863
43864         utimens.c: work around a probable Linux kernel bug
43865         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
43866         appears to be a kernel bug that causes utimensat to return 280
43867         instead of 0, indicating success.
43868
43869 2008-06-04  Bruno Haible  <bruno@clisp.org>
43870
43871         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
43872         2008-06-01 commit.
43873
43874 2008-06-04  Bruno Haible  <bruno@clisp.org>
43875
43876         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
43877         * lib/file-has-acl.c (acl_access_nontrivial): New function.
43878         (file_has_acl): Use it. Save errno afterwards.
43879         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
43880
43881 2008-06-03  Bruno Haible  <bruno@clisp.org>
43882
43883         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
43884         draft code. Simplify #ifs.
43885         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
43886         Put Solaris code after POSIX-draft code. Fix comments regarding
43887         Solaris 10, HP-UX. Mention Cygwin.
43888         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
43889
43890 2008-06-03  Eric Blake  <ebb9@byu.net>
43891
43892         Provide fallback for older kernels.
43893         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
43894         Provide runtime fallback if kernel lacks support.
43895         Reported by Mike Frysinger.
43896
43897 2008-06-02  Bruno Haible  <bruno@clisp.org>
43898
43899         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
43900         it exists.
43901
43902 2008-06-02  Bruno Haible  <bruno@clisp.org>
43903
43904         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
43905         * lib/copy-acl.c (qcopy_acl): Update comment.
43906
43907 2008-06-02  Bruno Haible  <bruno@clisp.org>
43908
43909         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
43910         like ACL APIs.
43911
43912 2008-06-02  Bruno Haible  <bruno@clisp.org>
43913
43914         * tests/test-file-has-acl.sh: Use different code for Cygwin.
43915         * tests/test-set-mode-acl.sh: Likewise.
43916         * tests/test-copy-acl.sh: Likewise.
43917         * tests/test-copy-file.sh: Likewise.
43918
43919 2008-06-02  Bruno Haible  <bruno@clisp.org>
43920
43921         * tests/test-file-has-acl.sh: Remove unused code.
43922
43923 2008-06-01  Bruno Haible  <bruno@clisp.org>
43924
43925         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
43926         (copy_acl): Just a wrapper around qcopy_acl that emits the error
43927         messages.
43928         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
43929
43930 2008-06-01  Bruno Haible  <bruno@clisp.org>
43931
43932         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
43933         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
43934         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
43935         APIs.
43936         * modules/acl-tests (configure.ac): Remove tests now contained in
43937         m4/acl.m4.
43938
43939 2008-06-02  Jim Meyering  <meyering@redhat.com>
43940
43941         announce-gen: use a better key-server host name
43942         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
43943         it may be more consistently reliable.  Suggested by Werner Koch
43944         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
43945
43946 2008-06-01  Bruno Haible  <bruno@clisp.org>
43947
43948         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
43949         Reported by Voroskoi Andras <voroskoi@gmail.com>.
43950
43951 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
43952
43953         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
43954
43955 2008-06-01  Bruno Haible  <bruno@clisp.org>
43956
43957         New ACL tests.
43958         * tests/test-file-has-acl.sh: New file.
43959         * tests/test-file-has-acl.c: New file.
43960         * tests/test-set-mode-acl.sh: New file.
43961         * tests/test-set-mode-acl.c: New file.
43962         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
43963         * tests/test-copy-acl.c: New file.
43964         * modules/acl-tests: New file, based on modules/copy-file-tests.
43965         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
43966         (Depends-on): Add acl-tests.
43967         (configure.ac): Remove checks.
43968         (Makefile.am): Don't create test-sameacls program here any more.
43969
43970 2008-06-01  Bruno Haible  <bruno@clisp.org>
43971
43972         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
43973         * tests/test-sameacls.c: Include progname.h.
43974         (main): Invoke set_program_name. Portability fixes for MacOS X,
43975         Solaris, HP-UX.
43976
43977 2008-06-01  Bruno Haible  <bruno@clisp.org>
43978
43979         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
43980         function.
43981         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
43982
43983 2008-06-01  Bruno Haible  <bruno@clisp.org>
43984
43985         * modules/rpmatch (Depends-on): Add strdup.
43986
43987 2008-06-01  Bruno Haible  <bruno@clisp.org>
43988
43989         * lib/pipe.c: Include unistd-safer.h.
43990         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
43991         * modules/pipe (Depends-on): Add unistd-safer.
43992
43993 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43994
43995         * modules/autobuild (configure.ac): Call AB_INIT.
43996
43997 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43998
43999         * tests/test-getaddrinfo.c: Don't print debug messages by default.
44000         Suggested by Bruno Haible <bruno@clisp.org>.
44001
44002 2008-05-30  Simon Josefsson  <simon@josefsson.org>
44003
44004         * tests/test-base64.c: Cast size_t to unsigned long when invoking
44005         printf.  Use %lu instead of %d.  Reported by Bruno Haible
44006         <bruno@clisp.org>.
44007
44008 2008-05-29  Eric Blake  <ebb9@byu.net>
44009
44010         Prefer new POSIX 200x interfaces over futimesat.
44011         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
44012         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
44013         when available.
44014         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
44015
44016 2008-05-28  Bruno Haible  <bruno@clisp.org>
44017
44018         * modules/stpcpy (License): Change to LGPLv2+.
44019         Requested by David Lutterkort <dlutter@redhat.com>.
44020
44021 2008-05-27  Bruno Haible  <bruno@clisp.org>
44022
44023         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
44024         current mingw.
44025         Reported by Jose E. Marchesi <jemarch@gnu.org>.
44026
44027 2008-05-27  Bruno Haible  <bruno@clisp.org>
44028
44029         * modules/iconv_open (Link): New section, from module 'iconv'.
44030         * modules/striconv (Link): Likewise.
44031         * modules/striconveh (Link): Likewise.
44032         * modules/xstriconv (Link): Likewise.
44033         * modules/unicodeio (Link): Likewise.
44034         * modules/propername (Link): Likewise.
44035         Reported by Jim Meyering.
44036
44037 2008-05-26  Jim Meyering  <meyering@redhat.com>
44038
44039         sha256: do not artificially restrict buffer length to be < 2^32
44040         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
44041         uint32_t to size_t.
44042         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
44043         to match.
44044
44045         avoid unaligned access errors, e.g., on sparc
44046         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
44047         direct access through a possibly-unaligned uint64* pointer.
44048         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
44049         direct access through a possibly-unaligned uint32* pointer.
44050         Prompted by this patch from Tom "spot" Callaway:
44051         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
44052
44053         sha512.c: fix typo in comment
44054         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
44055
44056 2008-05-25  Bruno Haible  <bruno@clisp.org>
44057
44058         * lib/set-mode-acl.c: Renamed from lib/acl.c.
44059         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
44060         (Makefile.am): Update lib_SOURCES.
44061
44062 2008-05-25  Bruno Haible  <bruno@clisp.org>
44063
44064         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
44065
44066 2008-05-25  Jim Meyering  <meyering@redhat.com>
44067
44068         useless-if-before-free: freed expr may have white-space differences
44069         * build-aux/useless-if-before-free: Recognize cases in which the
44070         freed expression differs from the tested one in embedded white
44071         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
44072         $1 was used, so we can't make any regexp shy.  Improved tests now
44073         detect this.
44074
44075         useless-if-before-free: accept white space in the expression.
44076         * build-aux/useless-if-before-free: For now, any white space
44077         in the expression must be identical in the free argument.
44078
44079         useless-if-before-free: efficiency tweak
44080         * build-aux/useless-if-before-free: Make the expression-matching
44081         regexp "shy".
44082         Make the *outer* regexp shy, not the expr-matching one.
44083
44084         update code-in-comment to accept cast of free arg
44085         * build-aux/useless-if-before-free: Update regexp.
44086
44087 2008-05-25  Bruno Haible  <bruno@clisp.org>
44088
44089         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
44090         * modules/copy-file-tests (Files, Makefile.am): Update.
44091         * tests/test-copy-file.c (func_test_copy): Update.
44092
44093 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
44094
44095         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
44096
44097 2008-05-23  Bruno Haible  <bruno@clisp.org>
44098
44099         Improve support for ACLs on OSF/1.
44100         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
44101         Remove fallback for unknown flavors of ACLs.
44102
44103 2008-05-22  Bruno Haible  <bruno@clisp.org>
44104
44105         Add support for ACLs on OSF/1.
44106         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
44107         replacements.
44108         (acl_free_text): New macro fallback.
44109         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
44110         acl_free.
44111         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
44112         acl_free_text function. Require AC_C_INLINE.
44113
44114 2008-05-22  Bruno Haible  <bruno@clisp.org>
44115
44116         Make copy_acl work on MacOS X 10.5.
44117         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
44118         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
44119         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
44120         If MODE_INSIDE_ACL, don't assume that every system has the same text
44121         representation for ACLs as FreeBSD.
44122         * lib/copy-acl.c (copy_acl): Add support for platforms with
44123         !MODE_INSIDE_ACL.
44124         * lib/file-has-acl.c (file_has_acl): Likewise.
44125         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
44126         FreeBSD, MacOS X, or IRIX, respectively.
44127
44128 2008-05-22  Bruno Haible  <bruno@clisp.org>
44129
44130         * lib/acl.h: Don't include <sys/acl.h>.
44131         (GETACLCNT): Move fallback to lib/acl-internal.h.
44132         * lib/acl-internal.h: Include <sys/acl.h> here.
44133         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
44134
44135 2008-05-22  Bruno Haible  <bruno@clisp.org>
44136
44137         Split off copy_acl function to separate file.
44138         * lib/copy-acl.c: New file, extracted from lib/acl.c.
44139         * lib/acl.c (copy_acl): Moved function to separate file.
44140         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
44141         * modules/acl (Files): Add lib/copy-acl.c.
44142         (Makefiles.am): Augment lib_SOURCES.
44143
44144 2008-05-22  Bruno Haible  <bruno@clisp.org>
44145
44146         * modules/copy-file-tests: New file.
44147         * tests/test-copy-file.sh: New file.
44148         * tests/test-copy-file.c: New file.
44149         * tests/test-copy-file-sameacls.c: New file.
44150
44151 2008-05-22  Eric Blake  <ebb9@byu.net>
44152
44153         Avoid gcc warning.
44154         * tests/test-memcmp.c (main): Pass NULL indirectly.
44155
44156 2008-05-21  Bruno Haible  <bruno@clisp.org>
44157
44158         Add reference doc about ACLs.
44159         * doc/acl-resources.txt: New file.
44160         * doc/acl-cygwin.txt: New file.
44161
44162 2008-05-21  Bruno Haible  <bruno@clisp.org>
44163
44164         Avoid one more warning from gcc.
44165         * lib/vasnprintf.c (IF_LINT): Update comments.
44166         (VASNPRINTF): Use it also for the 'prefix' array initializer.
44167
44168 2008-05-21  Jim Meyering  <meyering@redhat.com>
44169
44170         avoid a warning from gcc
44171         * lib/vasnprintf.c (IF_LINT): Define.
44172         (scale10_round_decimal_long_double):
44173         Use it to avoid a "may be used uninitialized" warning.
44174         (scale10_round_decimal_double): Likewise.
44175
44176 2008-05-21  Simon Josefsson  <simon@josefsson.org>
44177
44178         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
44179         declared.
44180
44181 2008-05-20  Bruno Haible  <bruno@clisp.org>
44182
44183         * tests/test-memcmp.c (main): Test also the sign of the result. Test
44184         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
44185
44186 2008-05-20  Simon Josefsson  <simon@josefsson.org>
44187
44188         * modules/memcmp-tests: New file.
44189         * tests/test-memcmp.c: New file.
44190
44191 2008-05-19  Bruno Haible  <bruno@clisp.org>
44192
44193         * modules/propername (Notice, configure.ac): Put quoted "..." into
44194         --keyword option.
44195         * lib/propername.h: Update comments accordingly.
44196         Reported by Eric Blake.
44197
44198 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
44199
44200         * modules/getpass-gnu (Depends-on): Add fseeko.
44201
44202 2008-05-19  Simon Josefsson  <simon@josefsson.org>
44203
44204         * modules/base64-tests: New file.
44205
44206 2008-05-19  Bo Borgerson <gigabo@gmail.com>
44207
44208         * lib/base64.c (base64_decode_ctx): If a decode context structure
44209         was passed in use it to ignore newlines.  If a context structure
44210         was _not_ passed in, continue to treat newlines as garbage (this
44211         is the historical behavior).  Formerly base64_decode.
44212         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
44213         takes a decode context structure.
44214         * lib/base64.h (base64_decode): Macro for four-argument calls.
44215         (base64_decode_alloc): Likewise.
44216         * lib/base64.c (base64_decode_ctx): If a decode context structure
44217         was passed in use it to ignore newlines.  If a context structure
44218         was _not_ passed in, continue to treat newlines as garbage (this
44219         is the historical behavior).  Formerly base64_decode.
44220         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
44221         takes a decode context structure.
44222         * lib/base64.h (base64_decode): Macro for four-argument calls.
44223         (base64_decode_alloc): Likewise.
44224
44225 2008-05-19  Jim Meyering  <meyering@redhat.com>
44226
44227         avoid a warning from gcc
44228         * lib/trim.c (IF_LINT): Define.
44229         (trim2): Use it to avoid a "may be used uninitialized" warning.
44230
44231         Fix doc typo.
44232         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
44233
44234 2008-05-19  Bruno Haible  <bruno@clisp.org>
44235
44236         * doc/glibc-functions/getpass.texi: Document limits of other
44237         implementations.
44238
44239 2008-05-19  Simon Josefsson  <simon@josefsson.org>
44240             Bruno Haible <bruno@clisp.org>
44241
44242         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
44243
44244 2008-05-18  Bruno Haible  <bruno@clisp.org>
44245
44246         * modules/propername: New file, from GNU gettext.
44247         * lib/propername.h: New file, from GNU gettext.
44248         * lib/propername.c: New file, from GNU gettext.
44249         * MODULES.html.sh (Internationalization functions): Add propername.
44250
44251 2008-05-16  Jim Meyering  <meyering@redhat.com>
44252             Bruno Haible  <bruno@clisp.org>
44253
44254         Avoid some warnings from "gcc -Wshadow".
44255         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
44256
44257 2008-05-15  Eric Blake  <ebb9@byu.net>
44258
44259         Extend previous patch to cygwin 1.7.0.
44260         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
44261         fast implementation in cygwin >= 1.7.0.
44262         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44263         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44264
44265 2008-05-15  Bruno Haible  <bruno@clisp.org>
44266
44267         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
44268         implementation in glibc >= 2.9.
44269         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44270         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44271
44272 2008-05-15  Bruno Haible  <bruno@clisp.org>
44273
44274         * MODULES.html.sh (Internationalization functions): Remove linebreak.
44275         (Unicode string functions): Add unilbrk/*.
44276         Reported by Karl Berry.
44277
44278 2008-05-15  Eric Blake  <ebb9@byu.net>
44279
44280         Fix violation of <stdbool.h> replacement in regex.
44281         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
44282         * lib/regexec.c (re_search_internal): Likewise.
44283         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
44284
44285 2008-05-15  Jim Meyering  <meyering@redhat.com>
44286
44287         avoid distracting test output when git or cvs is not found
44288         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
44289         * tests/test-vc-list-files-git.sh: Likewise.
44290
44291 2008-05-15  Eric Blake  <ebb9@byu.net>
44292
44293         Glibc finally accepted the memmem speedup code, bugzilla #5514.
44294         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
44295         glibc version.
44296         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
44297         * doc/posix-functions/strstr.texi (strstr): Likewise.
44298         * lib/str-two-way.h (MAX): Sychronize with glibc.
44299
44300 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
44301
44302         * lib/regcomp.c (optimize_utf8): Add a note on why we test
44303         opr.ctx_type.
44304         (calc_first): Initialize constraint field.
44305         (duplicate_node_closure): Use it instead of special casing ANCHORS.
44306         Fix grammar.
44307         (duplicate_node): Merge constraint field for all node types.
44308         (calc_eclosure_iter): Look at constraint field for all node types.
44309         * lib/regex_internal.c (create_cd_newstate): Don't look at
44310         opr.ctx_type.
44311
44312 2008-05-14  Bruno Haible  <bruno@clisp.org>
44313
44314         Help GCC to do better code generation.
44315         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
44316         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
44317         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
44318         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
44319         Declare with attribute 'malloc' if supported.
44320
44321 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
44322
44323         use "echo STR|wc -c" rather than unportable "expr length STR"
44324         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
44325         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
44326
44327 2008-05-14  Jim Meyering  <meyering@redhat.com>
44328
44329         use dd ibs=$n count=1 ... rather than less-portable head -c$n
44330         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
44331         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
44332         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
44333         via Collin Lasse.
44334
44335 2008-05-14  Eric Blake  <ebb9@byu.net>
44336
44337         Avoid quadratic growth in gl_LIBSOURCES.
44338         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
44339         Suggested by Bruno Haible.
44340
44341         Test xmemdup0.
44342         * modules/xmemdup0-tests: New file.
44343         * tests/test-xmemdup0.c: Likewise.
44344
44345 2008-05-13  Eric Blake  <ebb9@byu.net>
44346
44347         Split xmemdup0 into its own module.
44348         * modules/xmemdup0: New file.
44349         * lib/xmemdup0.h: Likewise.
44350         * lib/xmemdup0.c: Likewise.
44351         * MODULES.html.sh (Memory management functions): Add xmemdup0.
44352         * lib/xalloc.h (xmemdup0): Remove.
44353         * lib/xmalloc.c (xmemdup0): Likewise.
44354
44355 2008-05-13  Eric Blake  <ebb9@byu.net>
44356             Bruno Haible  <bruno@clisp.org>
44357
44358         Reduce number of forks required during autoconf.
44359         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
44360         and gl_LIBSOURCES_DIR.
44361         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
44362         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
44363         m4_syscmd per file.
44364         <m4_foreach_w>: Move...
44365         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
44366
44367 2008-05-13  Eric Blake  <ebb9@byu.net>
44368
44369         * gnulib-tool: Fix various comment typos.
44370
44371 2008-05-12  Bruno Haible  <bruno@clisp.org>
44372
44373         Tailor the linebreaking algorithm.
44374         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
44375
44376 2008-05-12  Bruno Haible  <bruno@clisp.org>
44377
44378         Update to Unicode 5.0.0.
44379         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
44380         LBP_JV, LBP_JT. Redistribute values.
44381         (unilbrk_table): Change size.
44382         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
44383         Unicode TR#14 rev. 22.
44384         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
44385         LBP_JV, LBP_JT. Redistribute values.
44386         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
44387         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
44388         Update.
44389         * lib/unilbrk/lbrkprop1.h: Regenerated.
44390         * lib/unilbrk/lbrkprop2.h: Regenerated.
44391         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
44392         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
44393         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
44394         Likewise.
44395         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
44396         Likewise.
44397         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
44398         result.
44399         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
44400         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
44401         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
44402         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
44403         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
44404         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
44405
44406 2008-05-11  Bruno Haible  <bruno@clisp.org>
44407
44408         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
44409
44410 2008-05-11  Bruno Haible  <bruno@clisp.org>
44411
44412         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
44413         * modules/unilbrk/gen-lbrk: New file.
44414
44415 2008-05-11  Bruno Haible  <bruno@clisp.org>
44416
44417         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
44418         * m4/sha512.m4 (gl_SHA512): Likewise.
44419
44420 2008-05-11  Jim Meyering  <meyering@redhat.com>
44421
44422         New modules: crypto/sha256, crypto/sha512 (from coreutils)
44423         * modules/crypto/sha256: New file.
44424         * modules/crypto/sha512: Likewise.
44425         * lib/sha256.c: Likewise.
44426         * lib/sha256.h: Likewise.
44427         * lib/sha512.c: Likewise.
44428         * lib/sha512.h: Likewise.
44429         * lib/u64.h: Likewise.
44430         * m4/sha256.m4: Likewise.
44431         * m4/sha512.m4: Likewise.
44432         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
44433
44434 2008-05-10  Bruno Haible  <bruno@clisp.org>
44435
44436         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
44437         (Input/Output <stdio.h>): Add xprintf.
44438         (Signal handling <signal.h>): Add strsignal.
44439         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
44440         (Core language properties): Add func.
44441         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
44442         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
44443         strings.
44444         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
44445         (Input/output): New section.
44446         (File system functions): Add openat-die, stat-macros.
44447         (Networking functions): Add sockets.
44448         (Unicode string functions): Add unictype/*.
44449         (Support for building libraries and executables): Add gperf.
44450         (Support for building documentation): Add agpl-3.0.
44451         (Misc): Add nocrash.
44452
44453 2008-05-10  Bruno Haible  <bruno@clisp.org>
44454
44455         * modules/unictype/gen-ctype: New file.
44456
44457 2008-05-10  Jim Meyering  <meyering@redhat.com>
44458
44459         Make chdir-safer.c more efficient on a system with no symlinks.
44460         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
44461         also if ELOOP is zero.  Suggested by Bruno Haible.
44462
44463         Make chdir-safer.c slightly safer.
44464         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
44465         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
44466
44467         Avoid compile failure on systems without ELOOP (like mingw).
44468         * lib/chdir-safer.c (ELOOP): Define if not already defined.
44469         Reported by Bruno Haible.
44470
44471 2008-05-10  Bruno Haible  <bruno@clisp.org>
44472
44473         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
44474         (is_utf8_encoding): Use a case-insensitive comparison.
44475         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
44476         streq.
44477
44478 2008-05-10  Bruno Haible  <bruno@clisp.org>
44479
44480         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
44481         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
44482         * lib/unilbrk/ulc-common.h (iconv_string_length,
44483         iconv_string_keeping_offsets): Remove declarations.
44484         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
44485         Don't include <iconv.h>, streq.h, xsize.h.
44486         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
44487         conversion.
44488         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
44489         <iconv.h>, streq.h, xsize.h.
44490         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
44491         conversion.
44492         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
44493         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
44494         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
44495         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
44496
44497 2008-05-10  Bruno Haible  <bruno@clisp.org>
44498
44499         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
44500         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
44501
44502         * modules/unilbrk/u32-width-linebreaks-tests: New file.
44503         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
44504
44505         * modules/unilbrk/u16-width-linebreaks-tests: New file.
44506         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
44507
44508         * modules/unilbrk/u8-width-linebreaks-tests: New file.
44509         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
44510
44511         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
44512         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
44513
44514         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
44515         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
44516
44517         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
44518         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
44519
44520         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
44521         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
44522
44523 2008-05-10  Bruno Haible  <bruno@clisp.org>
44524
44525         Split up 'linebreak' module.
44526         * lib/unilbrk.h: New file, based on lib/linebreak.h.
44527         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
44528         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
44529         modifications.
44530         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
44531         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
44532         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
44533         lib/linebreak.c.
44534         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
44535         lib/linebreak.c.
44536         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
44537         lib/linebreak.c.
44538         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
44539         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
44540         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
44541         lib/linebreak.c.
44542         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
44543         lib/linebreak.c.
44544         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
44545         lib/linebreak.c.
44546         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
44547         lib/linebreak.c.
44548         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
44549         lib/linebreak.c.
44550         * modules/unilbrk/base: New file.
44551         * modules/unilbrk/tables: New file.
44552         * modules/unilbrk/u8-possible-linebreaks: New file.
44553         * modules/unilbrk/u16-possible-linebreaks: New file.
44554         * modules/unilbrk/u32-possible-linebreaks: New file.
44555         * modules/unilbrk/ulc-common: New file.
44556         * modules/unilbrk/ulc-possible-linebreaks: New file.
44557         * modules/unilbrk/u8-width-linebreaks: New file.
44558         * modules/unilbrk/u16-width-linebreaks: New file.
44559         * modules/unilbrk/u32-width-linebreaks: New file.
44560         * modules/unilbrk/ulc-width-linebreaks: New file.
44561         * lib/linebreak.h: Remove file.
44562         * lib/linebreak.c: Remove file.
44563         * m4/linebreak.m4: Remove file.
44564         * modules/linebreak: Remove file.
44565         * NEWS: Mention the changes.
44566
44567 2008-05-09  Eric Blake  <ebb9@byu.net>
44568
44569         Add xmemdup0.
44570         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
44571         implementation.
44572         * lib/xmalloc.c (xmemdup0): New C implementation.
44573
44574 2008-05-08  Bruno Haible  <bruno@clisp.org>
44575
44576         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
44577
44578 2008-05-07  Eric Blake  <ebb9@byu.net>
44579
44580         Support cross-compilation of <wctype.h>.
44581         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
44582         AC_CACHE_CHECK.
44583
44584 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
44585
44586         * build-aux/vc-list-files: Add support for bzr.
44587
44588 2008-05-03  Jim Meyering  <meyering@redhat.com>
44589
44590         avoid failed assertion with tight malloc
44591         * tests/test-getndelim2.c: Correct an off-by-one assertion.
44592
44593 2008-05-03  Simon Josefsson  <simon@josefsson.org>
44594
44595         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
44596         are needed from arpa/inet.h.
44597         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
44598         Reported by Bruno Haible.
44599
44600 2008-05-02  Jim Meyering  <meyering@redhat.com>
44601
44602         avoid compilation error on FreeBSD 6
44603         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
44604
44605 2008-05-01  Jim Meyering  <meyering@redhat.com>
44606
44607         useless-if-before-free: correct --help's exit status description
44608         * build-aux/useless-if-before-free (usage): Like grep, exit 0
44609         for one or more matches, etc.  Reported by Bruno Haible.
44610
44611         vc-list-files: make the stand-alone gnulib test work
44612         * modules/vc-list-files-tests (configure.ac):
44613         Define and AC_SUBST abs_aux_dir.
44614         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
44615         $(abs_top_srcdir) to each script and having each of them
44616         duplicate the work of setting PATH, set PATH here, using
44617         the new variable, abs_aux_dir instead.
44618         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
44619         * tests/test-vc-list-files-git.sh: Likewise.
44620         Reported by Bruno Haible.
44621
44622 2008-05-01  Bruno Haible  <bruno@clisp.org>
44623
44624         * lib/getndelim2.c (getndelim2): Fix newsize computation during
44625         reallocation. Rename 'done' to 'found_delimiter'.
44626
44627 2008-05-01  Jim Meyering  <meyering@redhat.com>
44628
44629         vc-list-files: accommodate /bin/sh like the one from Solaris 10
44630         * build-aux/vc-list-files: Use `...`, not $(...).
44631
44632 2008-04-30  Jim Meyering  <meyering@redhat.com>
44633
44634         add tests for vc-list-files
44635         * modules/vc-list-files-tests: New module.
44636         * tests/test-vc-list-files-cvs.sh: New file.
44637         * tests/test-vc-list-files-git.sh: New file.
44638
44639         avoid a warning from gcc
44640         * lib/getndelim2.c (IF_LINT): Define.
44641         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
44642
44643         vc-list-files: work properly with build-aux/cvsu, too
44644         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
44645         to all cvs-based clauses.
44646
44647         vc-list-files: work properly in the CVS+awk case, too
44648         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
44649
44650         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
44651         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
44652         take more than one file argument, so .  Add quotes, just in case $dir
44653         ever contains a shell meta-character.  Prompted by Soren Hansen in
44654         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
44655
44656 2008-04-29  Eric Blake  <ebb9@byu.net>
44657
44658         Optimize getndelim2 to use block operations when possible.
44659         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
44660         freadseek, and memchr2.
44661         * lib/getndelim2.c (getndelim2): Use them for block reads.
44662
44663 2008-04-29  Bruno Haible  <bruno@clisp.org>
44664
44665         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
44666         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44667         * modules/inet_ntop (Depends-on): Add extensions.
44668         * modules/inet_pton (Depends-on): Likewise.
44669         Reported by Simon Josefsson.
44670
44671 2008-04-29  Jim Meyering  <meyering@redhat.com>
44672
44673         When the is more than one match in a block, match all of them.
44674         * build-aux/useless-if-before-free: Iterate through each block
44675         until there are no more matches.
44676
44677         Fix broken useless-if-before-free script.
44678         * build-aux/useless-if-before-free: Fix typo: missing "?" after
44679         the expression to match cast of argument to free-like function.
44680
44681 2008-04-29  Eric Blake  <ebb9@byu.net>
44682
44683         Use new header.
44684         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
44685
44686 2008-04-29  Jim Meyering  <meyering@redhat.com>
44687
44688         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
44689         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
44690         by gnulib to exist and to declare e.g., inet_ntop.
44691         Don't include "inet_ntop.h", now removed.
44692
44693         * m4/arpa_inet_h.m4: Remove trailing blanks.
44694
44695 2008-04-29  Eric Blake  <ebb9@byu.net>
44696
44697         Silence valgrind on safe reads beyond potential array bounds.
44698         * lib/rawmemchr.valgrind: New file.
44699         * lib/strchrnul.valgrind: Likewise.
44700         * modules/rawmemchr (Files): Distribute new file.
44701         * modules/strchrnul (Files): Likewise.
44702         Suggested by Bruno Haible.
44703
44704 2008-04-29  Bruno Haible  <bruno@clisp.org>
44705
44706         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
44707         (inet_ntop, inet_pton): Change portability warning's wording.
44708         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
44709         Invoke gl_CHECK_NEXT_HEADERS.
44710         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
44711         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
44712         set ARPA_INET_H.
44713         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44714         * modules/arpa_inet (Description): No longer only for systems that
44715         lack it.
44716         (Depends-on): Add include_next.
44717         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
44718         HAVE_ARPA_INET_H.
44719
44720 2008-04-29  Jim Meyering  <meyering@redhat.com>
44721
44722         * modules/mkdir (License): Re-license as LGPLv2+.
44723
44724 2008-04-29  Bruno Haible  <bruno@clisp.org>
44725
44726         * modules/rawmemchr (Maintainer): Set to Eric.
44727         * modules/strchrnul (Maintainer): Likewise.
44728
44729 2008-04-29  Simon Josefsson  <simon@josefsson.org>
44730
44731         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
44732         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
44733
44734         * modules/arpa_inet (arpa/inet.h): Use them.
44735
44736 2008-04-28  Eric Blake  <ebb9@byu.net>
44737
44738         Test getndelim2.
44739         * modules/getndelim2-tests: New file.
44740         * tests/test-getndelim2.c: Likewise.
44741         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
44742         stream.
44743         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
44744
44745         * MODULES.html.sh: Document new module.
44746
44747 2008-04-20  Bruno Haible  <bruno@clisp.org>
44748
44749         * lib/c-stack.c (die): Use raise.
44750         * modules/c-stack (Depends-on): Add raise.
44751
44752 2008-04-28  Bruno Haible  <bruno@clisp.org>
44753
44754         Expect rpmatch to be declared.
44755         * lib/yesno.c (rpmatch): Remove declaration.
44756
44757         Declare rpmatch.
44758         * lib/stdlib.in.h (rpmatch): New declaration.
44759         * lib/rpmatch.c: Include <stdlib.h> first.
44760         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
44761         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
44762         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
44763         HAVE_RPMATCH.
44764         * modules/rpmatch (Depends-on): Add stdlib, extensions.
44765         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44766         (Include): Set to <stdlib.h>.
44767         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
44768         HAVE_RPMATCH.
44769         * NEWS: Document the change.
44770
44771 2008-04-28  Bruno Haible  <bruno@clisp.org>
44772
44773         Change rpmatch to use nl_langinfo when appropriate.
44774         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
44775         (N_): New macro.
44776         (localized_pattern): New function/macro.
44777         (try): Remove match, nomatch arguments. Copy the pattern into safe
44778         memory before caching it.
44779         (rpmatch): Use localized_pattern. Add translator comments.
44780         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
44781         Suggested by Eric Blake.
44782         * modules/rpmatch (Depends-on): Add stdbool.
44783
44784 2008-04-28  Eric Blake  <ebb9@byu.net>
44785
44786         Add rawmemchr module, matching glibc.
44787         * modules/string (Makefile.am): New indicator.
44788         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
44789         * lib/string.in.h (rawmemchr): Declare when appropriate.
44790         * modules/rawmemchr: New file.
44791         * m4/rawmemchr.m4: Likewise.
44792         * lib/rawmemchr.c: Likewise.
44793         * modules/rawmemchr-tests: Likewise.
44794         * tests/test-rawmemchr.c: Likewise.
44795         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
44796         module.
44797         * modules/strchrnul (Depends-on): Add rawmemchr.
44798         * lib/strchrnul.c (strchrnul): Optimize a corner case.
44799
44800         Whitespace cleanup.
44801         * tests/test-strchrnul.c: Reindent.
44802         * lib/strchrnul.c: Likewise.
44803
44804         Optimize and test strchrnul.
44805         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
44806         * modules/strchrnul-tests: New file.
44807         * tests/test-strchrnul.c: Likewise.
44808
44809         Remove intprops dependency.
44810         * modules/memchr (Depends-on): Remove intprops.
44811         * modules/memrchr (Depends-on): Likewise.
44812         * modules/memchr2 (Depends-on): Likewise.
44813         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
44814         * lib/memrchr.c (__memrchr): Likewise.
44815         * lib/memrchr2.c (memchr2): Likewise.
44816         Reported by Simon Josefsson.
44817
44818 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44819
44820         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
44821         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44822
44823 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44824
44825         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
44826
44827         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
44828
44829         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
44830
44831         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
44832         declarations.
44833         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
44834
44835         * m4/inet_pton.m4: Don't check for header files.
44836
44837         * m4/inet_ntop.m4: Don't check for header files.
44838
44839 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44840
44841         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
44842         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
44843         trigger for cygwin).
44844         Reported by Bruno Haible  <bruno@clisp.org>.
44845
44846 2008-04-28  Bruno Haible  <bruno@clisp.org>
44847
44848         * doc/posix-functions/strdup.texi: Mention mingw problem.
44849
44850 2008-04-27  Bruno Haible  <bruno@clisp.org>
44851
44852         * modules/stat-time-tests (Depends-on): Add sleep.
44853         * tests/test-stat-time.c (force_unlink): New function.
44854         (cleanup): Use it.
44855         (test_mtime): Remove the ctime related tests.
44856         (test_ctime): New function, containing the ctime related tests.
44857         (main): Call test_ctime, except on native Windows platforms.
44858
44859 2008-04-27  Bruno Haible  <bruno@clisp.org>
44860
44861         * lib/rpmatch.c (rpmatch): Add some comments.
44862         Reported by James Youngman <jay@gnu.org>.
44863
44864 2008-04-27  Bruno Haible  <bruno@clisp.org>
44865
44866         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
44867         quiet NaNs.
44868
44869 2008-04-27  Bruno Haible  <bruno@clisp.org>
44870
44871         Make test-yesno.sh work on mingw.
44872         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
44873         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
44874         (main): Set stdin to binary mode.
44875         * modules/yesno-tests (Depends-on): Add binary-io.
44876
44877 2008-04-27  Bruno Haible  <bruno@clisp.org>
44878
44879         Fix 'isfinite' on x86, x86_64, ia64 platforms.
44880         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
44881         argument that lie outside the IEEE 854 domain.
44882         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
44883         (gl_ISFINITE): Use it.
44884         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
44885
44886 2008-04-27  Bruno Haible  <bruno@clisp.org>
44887
44888         Allow local renaming in config.h.
44889         * lib/memrchr.c (memrchr): Don't undefine outside libc.
44890
44891 2008-04-27  Bruno Haible  <bruno@clisp.org>
44892
44893         * lib/memchr.c (__memchr): Change type of 'i'.
44894         * lib/memchr2.c (memchr2): Likewise.
44895
44896 2008-04-26  Eric Blake  <ebb9@byu.net>
44897         and Bruno Haible  <bruno@clisp.org>
44898
44899         Optimize and test memrchr.
44900         * modules/memrchr (Depends-on): Add intprops.
44901         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
44902         * modules/memrchr-tests: New file.
44903         * tests/test-memrchr.c: New file.
44904
44905 2008-04-26  Bruno Haible  <bruno@clisp.org>
44906
44907         Add tentative support for DragonFly BSD.
44908         * lib/stdio-impl.h: Add macros for DragonFly BSD.
44909         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
44910         fp.
44911         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
44912         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
44913         * lib/fpurge.c (fpurge): Likewise.
44914         * lib/freadable.c (freaadable): Likewise.
44915         * lib/freadahead.c (freadahead): Likewise.
44916         * lib/freading.c (freading): Likewise.
44917         * lib/freadptr.c (freadptr): Likewise.
44918         * lib/freadseek.c (freadptrinc): Likewise.
44919         * lib/fseeko.c (fseeko): Likewise.
44920         * lib/fseterr.c (fseterr): Likewise.
44921         * lib/fwritable.c (fwritable): Likewise.
44922         * lib/fwriting.c (fwriting): Likewise.
44923
44924 2008-04-26  Bruno Haible  <bruno@clisp.org>
44925
44926         * lib/stdio-impl.h: New file.
44927         * lib/fbufmode.c: Include stdio-impl.h.
44928         (fbufmode): Use fp_, remove redundant #defines.
44929         * lib/fflush.c: Include stdio-impl.h.
44930         (clear_ungetc_buffer): Remove redundant #defines.
44931         * lib/fpurge.c: Include stdio-impl.h.
44932         (fpurge): Remove redundant #defines.
44933         * lib/freadable.c: Include stdio-impl.h.
44934         (freadable): Remove redundant #defines.
44935         * lib/freadahead.c: Include stdio-impl.h.
44936         (freadahead): Remove redundant #defines.
44937         * lib/freading.c: Include stdio-impl.h.
44938         (freading): Remove redundant #defines.
44939         * lib/freadptr.c: Include stdio-impl.h.
44940         (freadptr): Remove redundant #defines.
44941         * lib/freadseek.c: Include stdio-impl.h.
44942         (freadptrinc): Remove redundant #defines.
44943         * lib/fseeko.c: Include stdio-impl.h.
44944         (rpl_fseeko): Remove redundant #defines.
44945         * lib/fseterr.c: Include stdio-impl.h.
44946         (fseterr): Remove redundant #defines.
44947         * lib/fwritable.c: Include stdio-impl.h.
44948         (fwritable: Remove redundant #defines.
44949         * lib/fwriting.c: Include stdio-impl.h.
44950         (fwriting): Remove redundant #defines.
44951         * modules/fbufmode (Files): Add lib/stdio-impl.h.
44952         * modules/fflush (Files): Likewise.
44953         * modules/fpurge (Files): Likewise.
44954         * modules/freadable (Files): Likewise.
44955         * modules/freadahead (Files): Likewise.
44956         * modules/freading (Files): Likewise.
44957         * modules/freadptr (Files): Likewise.
44958         * modules/freadseek (Files): Likewise.
44959         * modules/fseeko (Files): Likewise.
44960         * modules/fseterr (Files): Likewise.
44961         * modules/fwritable (Files): Likewise.
44962         * modules/fwriting (Files): Likewise.
44963
44964 2008-04-26  Bruno Haible  <bruno@clisp.org>
44965
44966         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
44967         restore_seek_optimization, update_fpos_cache): New functions, extracted
44968         from rpl_fflush.
44969         (rpl_fflush): Use them.
44970         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
44971         (gl_REPLACE_FFLUSH): Use it.
44972
44973 2008-04-26  Bruno Haible  <bruno@clisp.org>
44974
44975         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
44976         on Solaris.
44977         * tests/test-xstrtoimax.sh: Likewise.
44978         * tests/test-xstrtoumax.sh: Likewise.
44979         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44980
44981 2008-04-26  Bruno Haible  <bruno@clisp.org>
44982
44983         * modules/memchr-tests: New file.
44984         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
44985
44986 2008-04-26  Eric Blake  <ebb9@byu.net>
44987             Bruno Haible  <bruno@clisp.org>
44988
44989         * lib/memchr.c: Include intprops.h.
44990         (__memchr): Optimize parallel detection of matching bytes. Rename local
44991         variables. Add explanatory comments.
44992
44993 2008-04-26  Bruno Haible  <bruno@clisp.org>
44994
44995         Fix module 'memchr', broken since 2000-10-28.
44996         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
44997
44998 2008-04-26  Bruno Haible  <bruno@clisp.org>
44999
45000         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
45001         comments.
45002
45003 2008-04-25  Eric Blake  <ebb9@byu.net>
45004
45005         Use native fstatat on cygwin 1.7.0.
45006         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
45007         first.
45008
45009 2008-04-23  Eric Blake  <ebb9@byu.net>
45010
45011         Improve memchr2 performance.
45012         * lib/memchr2.c (memchr2): Further optimize parallel detection of
45013         NUL bytes.
45014         * modules/memchr2 (Depends-on): Use intprops.h.
45015
45016 2008-04-23  Simon Josefsson  <simon@josefsson.org>
45017
45018         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
45019         an inline function instead of a CPP macro.  Patch by Ben Pfaff
45020         <blp@cs.stanford.edu>.
45021
45022 2008-04-23  Simon Josefsson  <simon@josefsson.org>
45023
45024         * lib/arpa_inet.in.h: New file.
45025
45026         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
45027         (Makefile.am): Sed in substitute header file.
45028
45029         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
45030         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
45031
45032         * modules/inet_ntop (configure.ac): Use
45033         gl_ARPA_INET_MODULE_INDICATOR.
45034
45035         * modules/inet_pton (configure.ac): Use
45036         gl_ARPA_INET_MODULE_INDICATOR.
45037
45038 2008-04-22  Jim Meyering  <meyering@redhat.com>
45039
45040         * modules/verify (License): Re-license as LGPLv2+.
45041
45042 2008-04-22  Simon Josefsson  <simon@josefsson.org>
45043
45044         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
45045         parameter to void* as per POSIX standard (MinGW uses char*).
45046
45047 2008-04-21  Bruno Haible  <bruno@clisp.org>
45048
45049         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
45050         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
45051         Define to replacements if REPLACE_ISWCNTRL is 1.
45052         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
45053         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
45054         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
45055         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
45056         what it fixes.
45057         * doc/posix-functions/iswalpha.texi: Likewise.
45058         * doc/posix-functions/iswblank.texi: Likewise.
45059         * doc/posix-functions/iswcntrl.texi: Likewise.
45060         * doc/posix-functions/iswdigit.texi: Likewise.
45061         * doc/posix-functions/iswgraph.texi: Likewise.
45062         * doc/posix-functions/iswlower.texi: Likewise.
45063         * doc/posix-functions/iswprint.texi: Likewise.
45064         * doc/posix-functions/iswpunct.texi: Likewise.
45065         * doc/posix-functions/iswspace.texi: Likewise.
45066         * doc/posix-functions/iswupper.texi: Likewise.
45067         * doc/posix-functions/iswxdigit.texi: Likewise.
45068         Reported by Alain Guibert.
45069
45070 2008-04-21  Bruno Haible  <bruno@clisp.org>
45071
45072         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
45073         Patch by Alain Guibert.
45074
45075 2008-04-21  Bruno Haible  <bruno@clisp.org>
45076
45077         Fix test failures on mingw.
45078         * tests/test-xstrtol.c (print_no_progname): New function.
45079         (main): Install it in error_print_progname hook.
45080         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
45081         * tests/test-xstrtoimax.sh: Likewise.
45082         * tests/test-xstrtoumax.sh: Likewise.
45083
45084 2008-04-21  Bruno Haible  <bruno@clisp.org>
45085
45086         Fix test failure on mingw.
45087         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
45088
45089 2008-04-21  Bruno Haible  <bruno@clisp.org>
45090
45091         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
45092         Actually assign a value.
45093
45094 2008-04-20  Bruno Haible  <bruno@clisp.org>
45095
45096         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
45097         take 2.
45098         * lib/canonicalize.c (canonicalize_file_name): Elide if the
45099         'canonicalize-lgpl' module is also used.
45100         * lib/canonicalize-lgpl.c: Undo last change.
45101         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
45102
45103 2008-04-20  Bruno Haible  <bruno@clisp.org>
45104
45105         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
45106         config.h. Provide _mkdir based fallback for mingw.
45107         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
45108         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
45109         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
45110         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
45111         rather than defining mkdir in config.h.
45112         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
45113         (gl_SYS_STAT_H_DEFAULTS): New macro.
45114         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
45115         HAVE_IO_H any more.
45116         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
45117         HAVE_DECL_MKDIR and HAVE_IO_H.
45118
45119 2008-04-20  Bruno Haible  <bruno@clisp.org>
45120
45121         * lib/isapipe.c: Port to native Windows platforms.
45122
45123 2008-04-20  Bruno Haible  <bruno@clisp.org>
45124
45125         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
45126
45127 2008-04-21  Eric Blake  <ebb9@byu.net>
45128
45129         Work around preprocessors that don't handle UINTMAX_MAX.
45130         * lib/memchr2.c (memchr2): Avoid embedded #if.
45131         Reported by Alain Guibert, fix suggested by Bruno Haible.
45132
45133 2008-04-21  Simon Josefsson  <simon@josefsson.org>
45134
45135         * doc/posix-functions/strftime.texi (strftime): Explain better
45136         Windows incompatibility.  Suggested by Micah Cowan
45137         <micah@cowan.name>.
45138
45139 2008-04-20  Bruno Haible  <bruno@clisp.org>
45140
45141         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
45142         unistr/u8-mblen.
45143
45144 2008-04-20  Bruno Haible  <bruno@clisp.org>
45145
45146         Fix test failure on platforms with non-GNU iconv.
45147         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
45148         (U_TO_U8): Use it, rather than u16_to_u8.
45149         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
45150         units at the end of the input string.
45151         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
45152
45153 2008-04-20  Bruno Haible  <bruno@clisp.org>
45154
45155         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
45156         when the resulting length is 0.
45157         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
45158
45159 2008-04-20  Bruno Haible  <bruno@clisp.org>
45160
45161         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
45162         works.
45163         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
45164
45165 2008-04-20  Bruno Haible  <bruno@clisp.org>
45166
45167         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
45168         * modules/tsearch-tests (configure.ac): Test for initstate function.
45169
45170 2008-04-20  Bruno Haible  <bruno@clisp.org>
45171
45172         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
45173         for nlink_t if missing.
45174         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
45175
45176 2008-04-19  Bruno Haible  <bruno@clisp.org>
45177
45178         Work around snprintf bug on Linux libc5.
45179         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
45180         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
45181         gl_SNPRINTF_SIZE1.
45182         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45183         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
45184         that test failed.
45185         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
45186         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
45187         * modules/snprintf (Files): Add m4/printf.m4.
45188         * modules/vsnprintf (Files): Likewise.
45189         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
45190         * doc/posix-functions/vsnprintf.texi: Likewise.
45191
45192 2008-04-19  Bruno Haible  <bruno@clisp.org>
45193
45194         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
45195         from 0.0058 to less than 10^-7.
45196
45197 2008-04-19  Bruno Haible  <bruno@clisp.org>
45198
45199         Fix rounding when a precision is given.
45200         * lib/vasnprintf.c (is_borderline): New function.
45201         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
45202         9...9x.
45203         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
45204         %e, %g.
45205         * tests/test-vasprintf-posix.c (test_function): Likewise.
45206         * tests/test-snprintf-posix.h (test_function): Likewise.
45207         * tests/test-sprintf-posix.h (test_function): Likewise.
45208         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
45209         * tests/test-printf-posix.h (test_function): Likewise.
45210         * tests/test-printf-posix.output: Update.
45211         Reported by John Darrington <john@darrington.wattle.id.au> via
45212         Ben Pfaff <blp@cs.stanford.edu>.
45213
45214 2008-04-18  Simon Josefsson  <simon@josefsson.org>
45215
45216         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
45217         Suggested by Bruno Haible <bruno@clisp.org>.
45218
45219 2008-04-17  Bruno Haible  <bruno@clisp.org>
45220
45221         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
45222         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
45223         implementation.
45224         Patch by Bruce Merry <bmerry@gmail.com>.
45225
45226 2008-04-17  Simon Josefsson  <simon@josefsson.org>
45227
45228         * doc/posix-functions/strftime.texi (strftime): Mention that %e
45229         doesn't work under Windows.
45230
45231 2008-04-16  Bruno Haible  <bruno@clisp.org>
45232
45233         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
45234         New macros.
45235         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
45236         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
45237         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
45238         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
45239         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
45240         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
45241         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
45242         macros.
45243         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
45244         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
45245         Northern Sotho, Uighur.
45246
45247 2008-04-16  Bruno Haible  <bruno@clisp.org>
45248
45249         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
45250         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
45251         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
45252         Reported by Daniel Bergström <daniel@octocode.com>.
45253
45254 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
45255             Bruno Haible  <bruno@clisp.org>
45256
45257         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
45258         function.
45259         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
45260         New functions, mostly extracted from gl_locale_name_default.
45261         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
45262
45263 2008-04-16  Eric Blake  <ebb9@byu.net>
45264
45265         Adjust strtod detection to catch glibc 2.7 bug.
45266         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
45267         Reported by John Gatewood Ham.
45268
45269 2008-04-16  Bruno Haible  <bruno@clisp.org>
45270
45271         Add tentative support for Linux libc5.
45272         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
45273         * lib/fpurge.c (fpurge): Likewise.
45274         * lib/freadable.c (freadable): Likewise.
45275         * lib/freadahead.c (freadahead): Likewise.
45276         * lib/freading.c (freading): Likewise.
45277         * lib/freadptr.c (freadptr): Likewise.
45278         * lib/freadseek.c (freadptrinc): Likewise.
45279         * lib/fseeko.c (rpl_fseeko): Likewise.
45280         * lib/fseterr.c (fseterr): Likewise.
45281         * lib/fwritable.c (fwritable): Likewise.
45282         * lib/fwriting.c (fwriting): Likewise.
45283         Reported by Alain Guibert <alguibert+bts@free.fr>.
45284
45285 2008-04-15  Bruno Haible  <bruno@clisp.org>
45286
45287         * modules/mathl (configure.ac): Define module indicator.
45288
45289 2008-04-15  Bruno Haible  <bruno@clisp.org>
45290
45291         * lib/logl.c (logl): Remove unused variables.
45292
45293 2008-04-15  Bruno Haible  <bruno@clisp.org>
45294
45295         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
45296         fails.
45297
45298 2008-04-15  Bruno Haible  <bruno@clisp.org>
45299
45300         * lib/trim.c (trim2): Fix argument of isspace() macro.
45301
45302 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
45303
45304         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
45305         to 0.
45306         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
45307
45308 2008-04-14  Bruno Haible  <bruno@clisp.org>
45309
45310         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
45311         AC_LANG_PROGRAM argument.
45312         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
45313         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
45314         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
45315         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
45316         * m4/math_h.m4 (gl_MATH_H): Likewise.
45317         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
45318         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
45319         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
45320         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
45321         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
45322         * m4/regex.m4 (gl_REGEX): Likewise.
45323         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
45324         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
45325         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45326         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
45327         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
45328         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45329         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
45330         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
45331
45332 2008-04-14  Jim Meyering  <meyering@redhat.com>
45333
45334         test-strtod: fix typos: s/abs/fabs/
45335         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
45336
45337 2008-04-13  Bruno Haible  <bruno@clisp.org>
45338
45339         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
45340         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
45341         module is also used and while not building the reloc-wrapper.
45342
45343 2008-04-13  Bruno Haible  <bruno@clisp.org>
45344
45345         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
45346
45347 2008-04-13  Bruno Haible  <bruno@clisp.org>
45348
45349         Fix AIX compilation failure introduced on 2008-04-02.
45350         * tests/test-frexp.c (exp): Undefine before redefining.
45351         * tests/test-frexpl.c (exp): Likewise.
45352
45353 2008-04-13  Bruno Haible  <bruno@clisp.org>
45354
45355         Work around a HP-UX stdio bug.
45356         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
45357         * tests/test-ftello.c (main): Likewise.
45358         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
45359         * doc/posix-functions/ftello.texi: Likewise.
45360
45361 2008-04-13  Bruno Haible  <bruno@clisp.org>
45362
45363         Make test-signbit pass on HP-UX/hppa.
45364         * tests/test-signbit.c (minus_zerol): New variable.
45365         (test_signbitl): Use it.
45366
45367 2008-04-13  Bruno Haible  <bruno@clisp.org>
45368
45369         Make truncl work on OSF/1 4.0.
45370         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
45371         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
45372         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
45373         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
45374         HAVE_DECL_TRUNCL.
45375         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
45376         HAVE_DECL_TRUNCL.
45377         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
45378
45379 2008-04-13  Bruno Haible  <bruno@clisp.org>
45380
45381         * lib/unictype.h: Remove trailing comma from enumeration definitions.
45382
45383 2008-04-13  Bruno Haible  <bruno@clisp.org>
45384
45385         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
45386         expression, so as to avoid HP-UX 11 cc compiler bug.
45387
45388 2008-04-13  Bruno Haible  <bruno@clisp.org>
45389
45390         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
45391
45392 2008-04-13  Bruno Haible  <bruno@clisp.org>
45393
45394         * lib/git-merge-changelog.c: Remove empty declaration outside of
45395         functions.
45396
45397 2008-04-13  Bruno Haible  <bruno@clisp.org>
45398
45399         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
45400
45401 2008-04-13  Bruno Haible  <bruno@clisp.org>
45402
45403         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
45404         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
45405         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
45406         also if it exists but lacks definitions of the SHUT_* macros.
45407         * modules/sys_socket (Description): Update.
45408         Reported by Elbert Pol <e.pol@chello.nl>.
45409
45410 2008-04-13  Bruno Haible  <bruno@clisp.org>
45411
45412         * lib/localcharset.c (OS2): Don't redefine if already defined.
45413         Reported by Elbert Pol <e.pol@chello.nl>.
45414
45415 2008-04-13  Bruno Haible  <bruno@clisp.org>
45416
45417         * lib/binary-io.h [__EMX__]: Include <io.h>.
45418         Reported by Elbert Pol <e.pol@chello.nl>.
45419
45420 2008-04-12  Bruno Haible  <bruno@clisp.org>
45421
45422         * lib/fpucw.h: Enable the definitions also for x86_64.
45423         Needed for NetBSD/x86_64.
45424         Reported by Thomas Klausner <tk@giga.or.at>.
45425
45426 2008-04-12  Bruno Haible  <bruno@clisp.org>
45427
45428         * tests/test-strtod.c: Include isnand.h.
45429         (main): Use isnand instead of isnan.
45430         Reported by Jim Meyering.
45431
45432 2008-04-12  Bruno Haible  <bruno@clisp.org>
45433
45434         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
45435         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
45436
45437 2008-04-12  Jim Meyering  <meyering@redhat.com>
45438
45439         * m4/math_h.m4 (gl_MATH_H): Fix typos.
45440
45441 2008-04-12  Bruno Haible  <bruno@clisp.org>
45442
45443         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
45444         Reported by Elbert Pol <e.pol@chello.nl>.
45445
45446 2008-04-12  Eric Blake  <ebb9@byu.net>
45447
45448         Work around Solaris 10 math.h bug.
45449         * m4/math_h.m4 (gl_MATH_H): Check for bug.
45450         (gl_MATH_H_DEFAULTS): Set up default.
45451         * modules/math (Makefile.am): Replace new indicators.
45452         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
45453         * tests/test-math.c (main): Test this.
45454         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
45455         * doc/posix-headers/math.texi (math.h): Mention bug.
45456         Reported by Nelson H. F. Beebe and Jim Meyering.
45457
45458 2008-04-11  Bruno Haible  <bruno@clisp.org>
45459
45460         Adapt to future versions of Apple GCC.
45461         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
45462         Reported by Peter O'Gorman <peter@pogma.com>.
45463
45464 2008-04-11  Bruno Haible  <bruno@clisp.org>
45465
45466         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
45467
45468 2008-04-11  Bruno Haible  <bruno@clisp.org>
45469
45470         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
45471
45472         * modules/getaddrinfo-tests (Makefile.am): Define
45473         test_getaddrinfo_LDADD.
45474
45475 2008-04-11  Bruno Haible  <bruno@clisp.org>
45476
45477         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
45478         (init): Fix syntax error.
45479         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
45480         is declared.
45481
45482 2008-04-11  Bruno Haible  <bruno@clisp.org>
45483
45484         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
45485         * modules/glob (Depends-on): Add stdbool.
45486
45487 2008-04-11  Bruno Haible  <bruno@clisp.org>
45488
45489         * lib/trim.c: Include <string.h>.
45490
45491 2008-04-11  Eric Blake  <ebb9@byu.net>
45492
45493         Avoid compile failure on OS/2.
45494         * lib/regex_internal.h (internal_function): Disable optimization
45495         on OS/2 (__EMX__), where it caused compiler error.
45496         Reported by Elbert Pol.
45497
45498 2008-04-11  Bruno Haible  <bruno@clisp.org>
45499
45500         Flush the standard error stream before aborting. Needed on mingw.
45501         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
45502         * tests/test-array_list.c (ASSERT): Likewise.
45503         * tests/test-array_oset.c (ASSERT): Likewise.
45504         * tests/test-avltree_list.c (ASSERT): Likewise.
45505         * tests/test-avltree_oset.c (ASSERT): Likewise.
45506         * tests/test-avltreehash_list.c (ASSERT): Likewise.
45507         * tests/test-binary-io.c (ASSERT): Likewise.
45508         * tests/test-byteswap.c (ASSERT): Likewise.
45509         * tests/test-c-ctype.c (ASSERT): Likewise.
45510         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
45511         * tests/test-c-strcasestr.c (ASSERT): Likewise.
45512         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
45513         * tests/test-c-strstr.c (ASSERT): Likewise.
45514         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
45515         * tests/test-canonicalize.c (ASSERT): Likewise.
45516         * tests/test-carray_list.c (ASSERT): Likewise.
45517         * tests/test-ceilf1.c (ASSERT): Likewise.
45518         * tests/test-ceilf2.c (ASSERT): Likewise.
45519         * tests/test-ceill.c (ASSERT): Likewise.
45520         * tests/test-count-one-bits.c (ASSERT): Likewise.
45521         * tests/test-fbufmode.c (ASSERT): Likewise.
45522         * tests/test-fflush2.c (ASSERT): Likewise.
45523         * tests/test-floorf1.c (ASSERT): Likewise.
45524         * tests/test-floorf2.c (ASSERT): Likewise.
45525         * tests/test-floorl.c (ASSERT): Likewise.
45526         * tests/test-fopen.c (ASSERT): Likewise.
45527         * tests/test-fpending.c (ASSERT): Likewise.
45528         * tests/test-fprintf-posix.c (ASSERT): Likewise.
45529         * tests/test-fpurge.c (ASSERT): Likewise.
45530         * tests/test-freadable.c (ASSERT): Likewise.
45531         * tests/test-freadahead.c (ASSERT): Likewise.
45532         * tests/test-freading.c (ASSERT): Likewise.
45533         * tests/test-freadptr.c (ASSERT): Likewise.
45534         * tests/test-freadptr2.c (ASSERT): Likewise.
45535         * tests/test-freadseek.c (ASSERT): Likewise.
45536         * tests/test-freopen.c (ASSERT): Likewise.
45537         * tests/test-frexp.c (ASSERT): Likewise.
45538         * tests/test-frexpl.c (ASSERT): Likewise.
45539         * tests/test-fseek.c (ASSERT): Likewise.
45540         * tests/test-fseeko.c (ASSERT): Likewise.
45541         * tests/test-fstrcmp.c (ASSERT): Likewise.
45542         * tests/test-ftell.c (ASSERT): Likewise.
45543         * tests/test-ftello.c (ASSERT): Likewise.
45544         * tests/test-func.c (ASSERT): Likewise.
45545         * tests/test-fwritable.c (ASSERT): Likewise.
45546         * tests/test-fwriting.c (ASSERT): Likewise.
45547         * tests/test-getdelim.c (ASSERT): Likewise.
45548         * tests/test-getline.c (ASSERT): Likewise.
45549         * tests/test-i-ring.c (ASSERT): Likewise.
45550         * tests/test-iconv-utf.c (ASSERT): Likewise.
45551         * tests/test-iconv.c (ASSERT): Likewise.
45552         * tests/test-isfinite.c (ASSERT): Likewise.
45553         * tests/test-isnand.c (ASSERT): Likewise.
45554         * tests/test-isnanf.c (ASSERT): Likewise.
45555         * tests/test-isnanl.h (ASSERT): Likewise.
45556         * tests/test-ldexpl.c (ASSERT): Likewise.
45557         * tests/test-linked_list.c (ASSERT): Likewise.
45558         * tests/test-linkedhash_list.c (ASSERT): Likewise.
45559         * tests/test-localename.c (ASSERT): Likewise.
45560         * tests/test-lseek.c (ASSERT): Likewise.
45561         * tests/test-mbscasecmp.c (ASSERT): Likewise.
45562         * tests/test-mbscasestr1.c (ASSERT): Likewise.
45563         * tests/test-mbscasestr2.c (ASSERT): Likewise.
45564         * tests/test-mbscasestr3.c (ASSERT): Likewise.
45565         * tests/test-mbscasestr4.c (ASSERT): Likewise.
45566         * tests/test-mbschr.c (ASSERT): Likewise.
45567         * tests/test-mbscspn.c (ASSERT): Likewise.
45568         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
45569         * tests/test-mbspbrk.c (ASSERT): Likewise.
45570         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
45571         * tests/test-mbsrchr.c (ASSERT): Likewise.
45572         * tests/test-mbsspn.c (ASSERT): Likewise.
45573         * tests/test-mbsstr1.c (ASSERT): Likewise.
45574         * tests/test-mbsstr2.c (ASSERT): Likewise.
45575         * tests/test-mbsstr3.c (ASSERT): Likewise.
45576         * tests/test-memchr2.c (ASSERT): Likewise.
45577         * tests/test-memmem.c (ASSERT): Likewise.
45578         * tests/test-open.c (ASSERT): Likewise.
45579         * tests/test-printf-frexp.c (ASSERT): Likewise.
45580         * tests/test-printf-frexpl.c (ASSERT): Likewise.
45581         * tests/test-printf-posix.c (ASSERT): Likewise.
45582         * tests/test-quotearg.c (ASSERT): Likewise.
45583         * tests/test-rbtree_list.c (ASSERT): Likewise.
45584         * tests/test-rbtree_oset.c (ASSERT): Likewise.
45585         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
45586         * tests/test-round1.c (ASSERT): Likewise.
45587         * tests/test-roundf1.c (ASSERT): Likewise.
45588         * tests/test-roundl.c (ASSERT): Likewise.
45589         * tests/test-signbit.c (ASSERT): Likewise.
45590         * tests/test-sleep.c (ASSERT): Likewise.
45591         * tests/test-snprintf-posix.c (ASSERT): Likewise.
45592         * tests/test-snprintf.c (ASSERT): Likewise.
45593         * tests/test-sprintf-posix.c (ASSERT): Likewise.
45594         * tests/test-stat-time.c (ASSERT): Likewise.
45595         * tests/test-strcasestr.c (ASSERT): Likewise.
45596         * tests/test-strerror.c (ASSERT): Likewise.
45597         * tests/test-striconv.c (ASSERT): Likewise.
45598         * tests/test-striconveh.c (ASSERT): Likewise.
45599         * tests/test-striconveha.c (ASSERT): Likewise.
45600         * tests/test-strsignal.c (ASSERT): Likewise.
45601         * tests/test-strstr.c (ASSERT): Likewise.
45602         * tests/test-strtod.c (ASSERT): Likewise.
45603         * tests/test-trunc1.c (ASSERT): Likewise.
45604         * tests/test-trunc2.c (ASSERT): Likewise.
45605         * tests/test-truncf1.c (ASSERT): Likewise.
45606         * tests/test-truncf2.c (ASSERT): Likewise.
45607         * tests/test-truncl.c (ASSERT): Likewise.
45608         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
45609         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
45610         * tests/test-vasnprintf.c (ASSERT): Likewise.
45611         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
45612         * tests/test-vasprintf.c (ASSERT): Likewise.
45613         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
45614         * tests/test-vprintf-posix.c (ASSERT): Likewise.
45615         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
45616         * tests/test-vsnprintf.c (ASSERT): Likewise.
45617         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
45618         * tests/test-wcwidth.c (ASSERT): Likewise.
45619         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
45620         * tests/test-xprintf-posix.c (ASSERT): Likewise.
45621         * tests/test-xvasprintf.c (ASSERT): Likewise.
45622         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
45623         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
45624         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
45625         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
45626         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
45627         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
45628         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
45629         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
45630         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
45631         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
45632         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
45633         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
45634         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
45635         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
45636         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
45637         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
45638         * tests/unictype/test-block_list.c (ASSERT): Likewise.
45639         * tests/unictype/test-block_of.c (ASSERT): Likewise.
45640         * tests/unictype/test-block_test.c (ASSERT): Likewise.
45641         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
45642         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
45643         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
45644         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
45645         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
45646         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
45647         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
45648         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
45649         * tests/unictype/test-combining.c (ASSERT): Likewise.
45650         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
45651         * tests/unictype/test-digit.c (ASSERT): Likewise.
45652         * tests/unictype/test-mirror.c (ASSERT): Likewise.
45653         * tests/unictype/test-numeric.c (ASSERT): Likewise.
45654         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
45655         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
45656         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
45657         * tests/unictype/test-scripts.c (ASSERT): Likewise.
45658         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
45659         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
45660         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
45661         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
45662         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
45663         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
45664         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
45665         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
45666         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
45667         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
45668         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
45669         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
45670         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
45671         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
45672         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
45673         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
45674         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
45675         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
45676         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
45677         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
45678         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
45679         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
45680         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
45681         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
45682         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
45683         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
45684         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
45685         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
45686         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
45687         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
45688         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
45689         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
45690         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
45691         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
45692         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
45693         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
45694         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
45695         Reported by Eric Blake.
45696
45697 2008-04-11  Bruno Haible  <bruno@clisp.org>
45698
45699         * lib/wchar.in.h: Tweak comment.
45700
45701 2008-04-11  Bruno Haible  <bruno@clisp.org>
45702
45703         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
45704         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
45705         gl_COMMON.
45706         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
45707
45708 2008-04-11  Bruno Haible  <bruno@clisp.org>
45709
45710         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
45711
45712 2008-04-11  Simon Josefsson  <simon@josefsson.org>
45713
45714         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
45715         of attempting to use non-existing /dev/*random.  Based on patch
45716         from Adam Strzelecki <ono@java.pl> in
45717         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
45718
45719 2008-04-08  Bruno Haible  <bruno@clisp.org>
45720
45721         Add tentative support for emx+gcc.
45722         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
45723         * lib/fpurge.c (fpurge): Likewise.
45724         * lib/freadable.c (freadable): Likewise.
45725         * lib/freadahead.c (freadahead): Likewise.
45726         * lib/freading.c (freading): Likewise.
45727         * lib/freadptr.c (freadptr): Likewise.
45728         * lib/freadseek.c (freadptrinc): Likewise.
45729         * lib/fseeko.c (rpl_fseeko): Likewise.
45730         * lib/fseterr.c (fseterr): Likewise.
45731         * lib/fwritable.c (fwritable): Likewise.
45732         * lib/fwriting.c (fwriting): Likewise.
45733         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
45734
45735 2008-04-09  Eric Blake  <ebb9@byu.net>
45736
45737         Avoid some autoconf warnings.
45738         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
45739         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
45740         * m4/afs.m4 (gl_AFS): Likewise.
45741         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
45742         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
45743         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45744         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
45745         (gl_INTEGER_TYPE_SUFFIX): Likewise.
45746         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
45747         (AC_CHECK_DECLS_ONCE): Likewise.
45748         Rename file...
45749         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
45750         gnulib-tool requires autoconf 2.59 or better.
45751         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
45752
45753 2008-04-08  Eric Blake  <ebb9@byu.net>
45754
45755         Use 'git describe --match' if present (added in git 1.5.5).
45756         * build-aux/git-version-gen: Limit result to tags that match 'v*'
45757         if possible.
45758
45759 2008-04-08  Bruno Haible  <bruno@clisp.org>
45760
45761         Add tentative support for OpenServer.
45762         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
45763         _ptr, _cnt.
45764         * lib/fpurge.c (fpurge): Likewise.
45765         * lib/freadable.c (freadable): Likewise.
45766         * lib/freadahead.c (freadahead): Likewise.
45767         * lib/freading.c (freading): Likewise.
45768         * lib/freadptr.c (freadptr): Likewise.
45769         * lib/freadseek.c (freadptrinc): Likewise.
45770         * lib/fseeko.c (rpl_fseeko): Likewise.
45771         * lib/fseterr.c (fseterr): Likewise.
45772         * lib/fwritable.c (fwritable): Likewise.
45773         * lib/fwriting.c (fwriting): Likewise.
45774         Reported by Roger Cornelius <rac@tenzing.org> and
45775         Brian K. White <brian@aljex.com>.
45776
45777 2008-04-06  Jim Meyering  <meyering@redhat.com>
45778
45779         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
45780
45781 2008-04-06  Bruno Haible  <bruno@clisp.org>
45782
45783         Avoid possible error with non-ASCII bytes in UTF-8 locales.
45784         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
45785         * tests/test-printf-posix.sh: Likewise.
45786         * tests/test-vfprintf-posix.sh: Likewise.
45787         * tests/test-vprintf-posix.sh: Likewise.
45788         * tests/test-xprintf-posix.sh: Likewise.
45789
45790 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45791
45792         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
45793         hide error from 'ls', needed on OS/2.
45794         Report by Elbert Pol <elbert.pol@gmail.com>.
45795
45796 2008-04-04  Eric Blake  <ebb9@byu.net>
45797
45798         Make test-fseeko.c failures meaningful.
45799         * tests/test-fseeko.c: Print line number on failure.
45800         * tests/test-fseek.c: Likewise.
45801         Reported by Nelson H. F. Beebe.
45802
45803         Improve strtod bug detection check.
45804         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
45805         required for Solaris 10.
45806         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
45807
45808 2008-04-04  Bruno Haible  <bruno@clisp.org>
45809
45810         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
45811         by m4/setenv.m4.
45812
45813 2008-04-03  Eric Blake  <ebb9@byu.net>
45814
45815         Ensure sane .version contents.
45816         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
45817         version string.
45818         * build-aux/git-version-gen: Improve documentation.
45819
45820         Make GNU make output nicer.
45821         * top/GNUmakefile [!_have-Makefile]: Add dependency on
45822         MAKECMDGOALS to enforce message for all command line targets.  Set
45823         srcdir for use in maint.mk.
45824
45825         Another maintainer tweak.
45826         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
45827         a target that regenerates version.
45828
45829 2008-04-03  Jim Meyering  <meyering@redhat.com>
45830
45831         vc-list-files: don't cause coreutils "make po-check" failure
45832         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
45833
45834 2008-04-03  Eric Blake  <ebb9@byu.net>
45835
45836         Allow VPATH usage of vc-list-files.
45837         * build-aux/vc-list-files (scriptversion): Add timestamp.
45838         (options): Add --help, --version, -C.
45839         (CVS): Support installed cvsu.
45840
45841 2008-04-02  Bruno Haible  <bruno@clisp.org>
45842
45843         Avoid some "statement with no effect" warnings from gcc.
45844         * tests/test-wctype.c (main): Explicitly ignore unused values.
45845         Reported by Jim Meyering.
45846
45847 2008-04-02  Jim Meyering  <meyering@redhat.com>
45848
45849         Avoid some warnings from "gcc -Wshadow".
45850         * tests/test-frexp.c (exp): Define to a different identifier.
45851         * tests/test-frexpl.c (exp): Likewise.
45852
45853 2008-04-03  Jim Meyering  <meyering@redhat.com>
45854
45855         bootstrap: remove dangling *.[ch] symlinks from lib
45856         * build-aux/bootstrap [dangling symlink removal]: Move find's
45857         -depth option to precede all others, to avoid a warning.
45858         Remove *.[ch] files too, and from "$source_base" (usually lib/).
45859
45860 2008-04-02  Bruno Haible  <bruno@clisp.org>
45861
45862         Avoid some warnings from "gcc -Wshadow".
45863         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
45864         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
45865         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
45866         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
45867         Reported by Jim Meyering.
45868
45869 2008-04-01  Bruno Haible  <bruno@clisp.org>
45870
45871         Fix test to work on IRIX 6.5 with cc.
45872         * tests/test-math.c (numeric_equal): New function.
45873         (main): Use it.
45874
45875 2008-04-01  Bruno Haible  <bruno@clisp.org>
45876
45877         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
45878
45879 2008-04-01  Bruno Haible  <bruno@clisp.org>
45880
45881         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
45882         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45883         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
45884         (Depends-on): Remove math.
45885
45886         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
45887         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45888         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
45889         (Depends-on): Remove math.
45890
45891         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
45892         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45893         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
45894         (Depends-on): Remove math.
45895         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
45896         (Depends-on): Remove math.
45897
45898         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
45899         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45900         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
45901         (Depends-on): Remove math.
45902         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
45903         (Depends-on): Remove math.
45904
45905         * tests/test-round1.c: Include nan.h.
45906         (main): Use NaNd instead of NAN.
45907         * modules/round-tests (Files): Add tests/nan.h.
45908
45909         * tests/test-trunc1.c: Include nan.h.
45910         (main): Use NaNd instead of NAN.
45911         * modules/trunc-tests (Files): Add tests/nan.h.
45912
45913         * tests/test-roundf1.c: Include nan.h.
45914         (main): Use NaNf instead of NAN.
45915         * modules/roundf-tests (Files): Add tests/nan.h.
45916
45917         * tests/test-truncf1.c: Include nan.h.
45918         (main): Use NaNf instead of NAN.
45919         * modules/truncf-tests (Files): Add tests/nan.h.
45920
45921         * tests/test-ceilf1.c: Include nan.h.
45922         (main): Use NaNf instead of NAN.
45923         * modules/ceilf-tests (Files): Add tests/nan.h.
45924
45925         * tests/test-floorf1.c: Include nan.h.
45926         (main): Use NaNf instead of NAN.
45927         * modules/floorf-tests (Files): Add tests/nan.h.
45928
45929         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
45930         (main): Use NaNf instead of NAN.
45931         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
45932
45933         * tests/test-isnand.c: Include nan.h instead of <math.h>.
45934         (main): Use NaNd instead of NAN.
45935         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
45936
45937         * tests/test-frexp.c: Include nan.h.
45938         (main): Use NaNd instead of NAN.
45939         * modules/frexp-tests (Files): Add tests/nan.h.
45940
45941         * lib/isnan.c: Don't include <math.h>.
45942         (FUNC): Don't use NAN macro.
45943         * modules/isnand-nolibm (Depends-on): Remove math.
45944         * modules/isnanf-nolibm (Depends-on): Remove math.
45945         * modules/isnanl (Depends-on): Remove math.
45946         * modules/isnanl-nolibm (Depends-on): Remove math.
45947
45948         * tests/nan.h: New file.
45949
45950 2008-04-01  Eric Blake  <ebb9@byu.net>
45951
45952         Fix typos.
45953         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
45954         values to be the right type.
45955
45956         For now, cater to gnulib strtod inaccuracies.
45957         * tests/test-strtod.c (main): Allow 1-ulp error on expected
45958         fractional results.  While not as nice from a QoI perspective, it
45959         is a quicker patch than correctly implementing decimal to binary
45960         rounding.
45961
45962 2008-03-31  Eric Blake  <ebb9@byu.net>
45963
45964         Guarantee a definition of NAN.
45965         * lib/math.in.h (NAN): Define if missing.
45966         * tests/test-math.c (main): Test it.
45967         * doc/posix-headers/math.texi (math.h): Document this.
45968         * lib/isnan.c (rpl_isnand): Use it.
45969         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
45970         * tests/test-floorf1.c (NaN): Likewise.
45971         * tests/test-frexp.c (NaN): Likewise.
45972         * tests/test-isnand.c (NaN): Likewise.
45973         * tests/test-isnanf.c (NaN): Likewise.
45974         * tests/test-round1.c (NaN): Likewise.
45975         * tests/test-roundf1.c (NaN): Likewise.
45976         * tests/test-snprintf-posix.h (NaN): Likewise.
45977         * tests/test-sprintf-posix.h (NaN): Likewise.
45978         * tests/test-trunc1.c (NaN): Likewise.
45979         * tests/test-truncf1.c (NaN): Likewise.
45980         * tests/test-vasnprintf-posix.c (NaN): Likewise.
45981         * tests/test-vasprintf-posix.c (NaN): Likewise.
45982         * modules/isnand-nolibm (Depends-on): Add math.
45983         * modules/isnanf-nolibm (Depends-on): Likewise.
45984         * modules/isnanl (Depends-on): Likewise.
45985         * modules/isnanl-nolibm (Depends-on): Likewise.
45986         * modules/snprintf-posix-tests (Depends-on): Likewise.
45987         * modules/sprintf-posix-tests (Depends-on): Likewise.
45988         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
45989         * modules/vsprintf-posix-tests (Depends-on): Likewise.
45990         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
45991         * modules/vasprintf-posix-tests (Depends-on): Likewise.
45992
45993 2008-03-31  Bruno Haible  <bruno@clisp.org>
45994
45995         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
45996         * doc/posix-functions/strtod.texi: Likewise.
45997
45998 2008-03-31  Bruno Haible  <bruno@clisp.org>
45999
46000         * tests/test-strtod.c (main): Don't use C99 syntax.
46001
46002 2008-03-31  Bruno Haible  <bruno@clisp.org>
46003
46004         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
46005         Reported by Eric Blake.
46006
46007 2008-03-31  Jim Meyering  <meyering@redhat.com>
46008
46009         Don't compare actual signbit return values.
46010         * tests/test-strtod.c (main): Rather, compare only their
46011         zero/non-zero nature.
46012
46013 2008-03-31  Eric Blake  <ebb9@byu.net>
46014
46015         More strtod documentation.
46016         * doc/posix-functions/strtod.texi (strtod): Interpret more test
46017         failures as distinct bugs.
46018
46019 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
46020
46021         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
46022         Problem reported by Erik Benada in
46023         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
46024
46025 2008-03-30  Bruno Haible  <bruno@clisp.org>
46026
46027         * tests/test-strtod.c: Add comments about which assertion fails on which
46028         platform.
46029         * doc/posix-functions/strtod.texi: Add info about many more platforms.
46030
46031 2008-03-30  Eric Blake  <ebb9@byu.net>
46032
46033         Test signbit behavior on zeros.
46034         * tests/test-signbit.c (test_signbitf): Add tests for zero.
46035         (test_signbitd, test_signbitl): Likewise.
46036
46037         More strtod touchups.
46038         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
46039         sign of negative underflow, for now.  Use .5, not .1.
46040         * doc/posix-functions/strtod.texi (strtod): Mention these
46041         limitations.
46042         Reported by Jim Meyering.
46043
46044 2008-03-30  Bruno Haible  <bruno@clisp.org>
46045
46046         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
46047         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
46048
46049 2008-03-30  Bruno Haible  <bruno@clisp.org>
46050
46051         Avoid failure when attempting to return empty iconv results on some
46052         platforms.
46053         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
46054         allocation, don't report ENOMEM when the resulting string is empty.
46055
46056 2008-03-30  Bruno Haible  <bruno@clisp.org>
46057
46058         Fix buffer overrun.
46059         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
46060         Don't consider the width for tmp_length. Check count against tmp_length
46061         before doing the padding. Ensure enough allocation during padding.
46062
46063 2008-03-30  Eric Blake  <ebb9@byu.net>
46064
46065         strtod touchups.
46066         * lib/strtod.c (strtod): Avoid compiler warnings.
46067         Reported by Jim Meyering.
46068
46069 2008-03-30  Bruno Haible  <bruno@clisp.org>
46070
46071         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
46072         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
46073         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
46074         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
46075         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
46076         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
46077         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
46078         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
46079
46080         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
46081         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
46082         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
46083         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
46084         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
46085         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
46086         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
46087         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
46088
46089         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
46090         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
46091         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
46092         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
46093         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
46094         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
46095         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
46096         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
46097
46098         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
46099         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
46100
46101         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
46102         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
46103
46104         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
46105         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
46106
46107         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
46108         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
46109         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
46110
46111         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
46112         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
46113         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
46114
46115         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
46116         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
46117         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
46118
46119         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
46120         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
46121         * modules/vasprintf (Depends-on): Add EOVERFLOW.
46122
46123         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
46124         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
46125         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
46126         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
46127         (Depends-on): Add EOVERFLOW.
46128         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
46129         (Depends-on): Add EOVERFLOW.
46130         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
46131         (Depends-on): Add EOVERFLOW.
46132         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
46133         (Depends-on): Add EOVERFLOW.
46134         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
46135         (Depends-on): Add EOVERFLOW.
46136         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
46137         (Depends-on): Add EOVERFLOW.
46138         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
46139         (Depends-on): Add EOVERFLOW.
46140         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
46141         (Depends-on): Add EOVERFLOW.
46142
46143         * lib/sprintf.c (EOVERFLOW): Remove fallback.
46144         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
46145         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
46146
46147         * lib/snprintf.c (EOVERFLOW): Remove fallback.
46148         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
46149         * modules/snprintf (Depends-on): Add EOVERFLOW.
46150
46151         * lib/poll.c (EOVERFLOW): Remove fallback.
46152         * modules/poll (Depends-on): Add EOVERFLOW.
46153
46154         * lib/getugroups.c (EOVERFLOW): Remove fallback.
46155         * modules/getugroups (Depends-on): Add EOVERFLOW.
46156
46157         * lib/getdelim.c (EOVERFLOW): Remove fallback.
46158         * modules/getdelim (Depends-on): Add EOVERFLOW.
46159
46160         * lib/ftell.c (EOVERFLOW): Remove fallback.
46161         * modules/ftell (Depends-on): Add EOVERFLOW.
46162
46163         * lib/fprintf.c (EOVERFLOW): Remove fallback.
46164         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
46165         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
46166
46167         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
46168
46169         * modules/EOVERFLOW-tests: New file.
46170         * tests/test-EOVERFLOW.c: New file.
46171
46172         * modules/EOVERFLOW: New file.
46173         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
46174
46175 2008-03-30  Bruno Haible  <bruno@clisp.org>
46176
46177         Fix bug introduced on 2007-06-10.
46178         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
46179         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
46180
46181 2008-03-30  Bruno Haible  <bruno@clisp.org>
46182
46183         Improve freadseek's efficiency after ungetc.
46184         * lib/freadseek.c: Include freadahead.h.
46185         (freadptrinc): New function, extracted from freadseek.
46186         (freadseek): Use it in a loop. Use freadahead to determine the number
46187         of loop iterations.
46188         * modules/freadseek (Depends-on): Add freadahead.
46189         (configure.ac): Require AC_C_INLINE.
46190
46191 2008-03-30  Bruno Haible  <bruno@clisp.org>
46192
46193         * lib/freadseek.c (freadseek): Don't ignore the return value of
46194         freadptr.
46195
46196 2008-03-29  Eric Blake  <ebb9@byu.net>
46197
46198         Add hex float support.
46199         * modules/strtod (Depends-on): Add c-ctype.
46200         (Link): Mention POW_LIB.
46201         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
46202         whitespace between 'e' and exponent.
46203         * tests/test-strtod.c (main): Enable hex float tests.
46204         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
46205         now provides.
46206
46207         Document various strtod bugs, with some fixes.
46208         * doc/posix-functions/strtod.texi (strtod): Document bugs with
46209         "-0x", "inf", "nan", and hex constants.
46210         * doc/posix-functions/atof.texi (atof): Likewise.
46211         * modules/stdlib (Makefile.am): Support strtod.
46212         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
46213         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
46214         detect additional strtod bugs.
46215         * lib/stdlib.in.h (rpl_strtod): Add declarations.
46216         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
46217         bool where appropriate.  Parse 'inf' and 'nan'.
46218         * tests/test-strtod.c: New file.
46219         * modules/strtod (Depends-on): Add stdbool, stdlib.
46220         (configure.ac): Turn on module indicator.
46221         * modules/strtod-tests: New module.
46222
46223 2008-03-29  Eric Blake  <ebb9@byu.net>
46224
46225         Fix ftell on mingw.
46226         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
46227         * modules/ftell-tests (Depends-on): Add binary-io.
46228         * modules/ftello-tests (Depends-on): Likewise.
46229         * tests/test-ftell.c (main): Enhance test to cover behavior after
46230         ungetc.  Enforce binary mode.
46231         * tests/test-ftello.c (main): Likewise.
46232
46233         Pass test-freadseek on cygwin.
46234         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
46235         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
46236         ungetc buffer.
46237
46238         * tests/test-fflush2.c (main): Fix typo.
46239
46240 2008-03-29  Bruno Haible  <bruno@clisp.org>
46241
46242         * tests/test-fflush2.c (main): Temporarily disable the contents of
46243         this test.
46244         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
46245         Reported by Eric Blake.
46246
46247 2008-03-28  Simon Josefsson  <simon@josefsson.org>
46248
46249         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
46250         (GC_SHA224_DIGEST_SIZE): Add.
46251
46252         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
46253         (gc_hash_digest_length): Likewise.
46254         (gc_hash_buffer): Likewise.
46255
46256 2008-03-25  Bruno Haible  <bruno@clisp.org>
46257
46258         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
46259         detail which gettext release to use.
46260         Reported by Simon Josefsson.
46261
46262 2008-03-26  Jim Meyering  <meyering@redhat.com>
46263
46264         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
46265         * modules/gnumakefile (clean-GNUmakefile): Also, use
46266         test ... && ... || : syntax rather than if-then ... fi.
46267
46268         gnumakefile: Don't double-quote-expand $(VPATH) value.
46269         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
46270
46271 2008-03-24  Eric Blake  <ebb9@byu.net>
46272
46273         Alter GNUmakefile to install into top directory.
46274         * modules/maintainer-makefile: Split, and add dependency...
46275         * modules/gnumakefile: to this new module.
46276         * build-aux/GNUmakefile: Move...
46277         * top/GNUmakefile: ...here.
46278         * build-aux/maint.mk: Move...
46279         * top/maint.mk: ...here.
46280         * MODULES.html.sh (Support for maintaining...): Document new
46281         module.
46282
46283 2008-03-23  Bruno Haible  <bruno@clisp.org>
46284
46285         * gnulib-tool: New options --vc-files, --no-vc-files.
46286         (func_usage): Document them.
46287         (vc_files): New variable.
46288         (func_import): Consider vc_files.
46289         (func_create_testdir): Set vc_files to empty.
46290         Suggested by Jim Meyering and Karl Berry.
46291
46292 2008-03-23  Bruno Haible  <bruno@clisp.org>
46293
46294         Fix regex compilation error on HP-UX 11.
46295         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
46296         * modules/regex (Files): Add m4/mbstate_t.m4.
46297         Reported by Ton Voon <ton.voon@altinity.com>.
46298
46299 2008-03-23  Bruno Haible  <bruno@clisp.org>
46300
46301         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
46302
46303 2008-03-23  Eric Blake  <ebb9@byu.net>
46304             Bruno Haible  <bruno@clisp.org>
46305
46306         Install files from top/ in the destination directory.
46307         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
46308         augmentation also for the files from top/.
46309         (func_import, func_create_testdir): Rewrite file names:
46310         top/filename -> filename.
46311
46312 2008-03-23  Bruno Haible  <bruno@clisp.org>
46313
46314         Tweak "gnulib --version" output.
46315         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
46316
46317 2008-03-23  Bruno Haible  <bruno@clisp.org>
46318
46319         Tweak "gnulib --version" output.
46320         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
46321         rather than contents of ChangeLog, when possible.
46322
46323 2008-03-21  Eric Blake  <ebb9@byu.net>
46324
46325         More --version tweaks.
46326         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
46327         date of last ChangeLog entry.
46328
46329 2008-03-21  Jim Meyering  <meyering@redhat.com>
46330
46331         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
46332
46333 2008-03-20  Eric Blake  <ebb9@byu.net>
46334
46335         VPATH fix.
46336         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
46337
46338 2008-03-20  Simon Josefsson  <simon@josefsson.org>
46339
46340         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
46341         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
46342
46343 2008-03-20  Eric Blake  <ebb9@byu.net>
46344
46345         Sync GNUmakefile with coreutils.
46346         * build-aux/GNUmakefile (have-Makefile): Rename...
46347         (_have-Makefile): ...to this, for namespace consideration.
46348         (GNUmakefile.cfg): Include, if present.
46349         (_autoreconf): Define a default.
46350         (_is-dist-target): New rule for rebuilds to pick up intra-release
46351         version.
46352         (maint-cfg.mk): Rename...
46353         (cfg.mk): ...to this.
46354
46355 2008-03-18  Jim Meyering  <meyering@redhat.com>
46356
46357         New script and module: mktempd
46358         * MODULES.html.sh (maint+release support): Add mktempd.
46359         * build-aux/mktempd: New file.
46360         * modules/mktempd: New file.
46361
46362 2008-03-15  Jim Meyering  <meyering@redhat.com>
46363
46364         Undo last change.
46365         * lib/sha1.c, lib/md5.c: 63 != ~63.
46366         Reported by Andreas Schwab.
46367
46368         sha1.c, md5.c: Hoist a redundant expression.
46369         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
46370         "ctx->buflen" only once, before calling *_process_block.
46371         * lib/md5.c (md5_process_bytes): Likewise.
46372
46373 2008-03-14  Eric Blake  <ebb9@byu.net>
46374
46375         Bump copyright year in files generated by gnulib-tool.
46376         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
46377         gnulib-tool, rather than hard-coding it.
46378
46379         Fix 'gnulib-tool --version' output to work with git.
46380         * gnulib-tool (func_gnulib_dir): New function, extracted from...
46381         (startup): ...here.
46382         (func_version): Use it to invoke git-version-gen, rather than
46383         relying on CVS keyword expansion.  Modernize wording.
46384         (cvsdatestamp, last_checkin_date, version): Kill unused
46385         variables.
46386
46387 2008-03-12  Jim Meyering  <meyering@redhat.com>
46388
46389         Recognize optional cast of the argument to free.
46390         * build-aux/useless-if-before-free: Update regexps.
46391
46392         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
46393
46394 2008-03-11  Bruno Haible  <bruno@clisp.org>
46395
46396         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
46397         by a single package.
46398         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
46399         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
46400         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
46401         Reported by Sam Steingold <sds@gnu.org>.
46402
46403 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46404
46405         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
46406         repositories.
46407
46408 2008-03-11  Bruno Haible  <bruno@clisp.org>
46409
46410         Avoid conflicts between local macro definitions.
46411         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
46412         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
46413
46414 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
46415             Bruno Haible  <bruno@clisp.org>
46416
46417         Make va_copy work with some version of xlc on AIX 5.1.
46418         * lib/stdarg.in.h: New file.
46419         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
46420         On AIX, use a <stdarg.h> file substitute.
46421         * modules/stdarg (Files): Add lib/stdarg.in.h.
46422         (Depends-on): Add include_next.
46423         (Makefile.am): Build a stdarg.h substitute if requested.
46424         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
46425
46426 2008-03-10  Bruno Haible  <bruno@clisp.org>
46427
46428         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
46429         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
46430         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
46431
46432 2008-03-10  Bruno Haible  <bruno@clisp.org>
46433
46434         * modules/stdlib (Depends-on): Add include_next, remove
46435         absolute-header.
46436
46437 2008-03-09  Bruno Haible  <bruno@clisp.org>
46438
46439         * lib/freadahead.h (freadahead): Document more precisely.
46440         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
46441         the sum of both buffer sizes.
46442         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
46443         * NEWS: Document the change.
46444
46445 2008-03-09  Bruno Haible  <bruno@clisp.org>
46446
46447         Extend freadptr to return also the buffer size.
46448         * lib/freadptr.h (freadptr): Add sizep argument.
46449         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
46450         (freadptr): Add sizep argument. Determine buffer size like freadahead
46451         does.
46452         * tests/test-freadptr.c: Don't include freadahead.h.
46453         (main): Adapt for new calling convention of freadptr.
46454         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
46455         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
46456         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
46457         tests/test-freadptr2.sh.
46458         (Depends): Remove freadahead.
46459         (TESTS): Add test-freadptr2.sh.
46460         (check_PROGRAMS): Add test-freadptr2.
46461
46462 2008-03-09  Bruno Haible  <bruno@clisp.org>
46463
46464         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
46465         Report and solution by Simon Josefsson.
46466
46467 2008-03-06  Bruno Haible  <bruno@clisp.org>
46468
46469         Make fflush after ungetc work on BSD platforms.
46470         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
46471         * tests/test-fflush2.c: New file.
46472         * tests/test-fflush2.sh: New file.
46473         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
46474         tests/test-fflush2.c.
46475         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
46476         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
46477
46478 2008-03-06  Eric Blake  <ebb9@byu.net>
46479
46480         Likewise for ftello.
46481         * modules/ftello (Dependencies): Add extensions.
46482         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
46483
46484 2008-03-06  Bruno Haible  <bruno@clisp.org>
46485
46486         * modules/fseeko (Dependencies): Add extensions.
46487         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
46488         Needed on glibc systems.
46489
46490 2008-03-06  Bruno Haible  <bruno@clisp.org>
46491
46492         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
46493         email address.
46494         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
46495
46496 2008-03-06  Bruno Haible  <bruno@clisp.org>
46497
46498         * users.txt: Add libgnupdf.
46499
46500 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
46501
46502         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
46503         (Header File Substitutes, Function Substitutes,
46504         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
46505         (Build robot for gnulib): Fix typo.
46506
46507 2008-03-06  Bruno Haible  <bruno@clisp.org>
46508
46509         * doc/gnulib-tool.texi (VCS Issues): Small updates.
46510         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
46511
46512 2008-03-06  Bruno Haible  <bruno@clisp.org>
46513
46514         * doc/func.texi: New file, extracted from doc/gnulib.texi.
46515         * doc/gnulib.texi: Include it.
46516
46517 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46518
46519         * modules/func (License): Change license to unlimited; there was
46520         no LGPL parts in the module anyway.
46521
46522 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46523
46524         * modules/__func__: Renamed to modules/func.
46525         * modules/__func__-tests: Renamed to modules/func-tests.
46526         * tests/test-__func__.c: Renamed to tests/test-func.c.
46527         * m4/__func__.m4: Renamed to m4/func.m4.
46528         * doc/gnulib.texi (__func__): Section renamed to func.
46529         Suggested by Eric Blake <ebb9@byu.net>.
46530
46531 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46532
46533         * doc/gnulib.texi (__func__): Use C99 terminology when talking
46534         about __func__.  Make example self-contained.  Suggested by Eric
46535         Blake <ebb9@byu.net>.
46536
46537         * tests/test-__func__.c (main): Avoid extraneous () around __func.
46538         Suggested by Eric Blake <ebb9@byu.net>.
46539
46540 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46541
46542         * modules/__func__: New file.
46543         * modules/__func__-tests: New file.
46544         * tests/test-__func__.c: New file.
46545         * m4/__func__.m4: New file.
46546         * doc/gnulib.texi (__func__): Document __func__ module.
46547
46548 2008-03-05  Simon Josefsson  <simon@josefsson.org>
46549
46550         * modules/byteswap (License): Re-license as LGPLv2+.
46551
46552 2008-03-05  Simon Josefsson  <simon@josefsson.org>
46553
46554         * doc/Makefile: Add pdf target.
46555
46556 2008-03-05  Simon Josefsson  <simon@josefsson.org>
46557
46558         * modules/inline (License): Use 'unlimited', since there are only
46559         *.m4 files in this module.
46560
46561 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
46562             Bruno Haible  <bruno@clisp.org>
46563
46564         Add support for HP C 7.1 on OpenVMS 8.3.
46565         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
46566
46567 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
46568
46569         Update VMS specifics.
46570         * lib/getopt.c [VMS]: Remove include of unixlib.h.
46571
46572 2008-03-02  Jim Meyering  <meyering@redhat.com>
46573
46574         Remove the last dependency on the "free" module.
46575         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
46576         Reported by Bob Proulx.
46577
46578         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
46579
46580         Remove useless "if" tests before free.  Deprecate "free" module.
46581         * doc/posix-functions/free.texi: Mention that this
46582         module is no longer useful.
46583         * modules/free (Notice): Say this module is obsolete.
46584         * modules/readutmp (Depends-on): Remove free.
46585         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
46586         * lib/putenv.c (putenv): Likewise.
46587         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
46588         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
46589         * tests/test-c-strcasestr.c (main): Likewise.
46590         * tests/test-c-strstr.c (main): Likewise.
46591         * tests/test-mbscasestr1.c (main): Likewise.
46592         * tests/test-mbscasestr2.c (main): Likewise.
46593         * tests/test-mbsstr1.c (main): Likewise.
46594         * tests/test-mbsstr2.c (main): Likewise.
46595         * tests/test-memmem.c (main): Likewise.
46596         * tests/test-strcasestr.c (main): Likewise.
46597         * tests/test-striconv.c (main): Likewise.
46598         * tests/test-striconveh.c (main): Likewise.
46599         * tests/test-striconveha.c (main): Likewise.
46600         * tests/test-strstr.c (main): Likewise.
46601
46602         * build-aux/git-version-gen: Adjust a comment and the Usage string.
46603
46604         bootstrap: sync from coreutils again
46605         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
46606
46607 2008-03-01  Jim Meyering  <meyering@redhat.com>
46608
46609         bootstrap: sync from coreutils
46610         * build-aux/bootstrap (update_po_files): Copy a .po file into place
46611         also when the target doesn't exist.
46612
46613 2008-03-01  Eric Blake  <ebb9@byu.net>
46614
46615         Fix bugs in last patch.
46616         * lib/memchr2.c (memchr2): Fix typo.
46617         * tests/test-memchr2.c: Test previous bug, and don't use GNU
46618         extension.
46619         Reported by Bruce Korb.
46620
46621         New module 'memchr2'.
46622         * modules/memchr2: New file.
46623         * modules/memchr2-tests: Likewise.
46624         * lib/memchr2.h: Likewise.
46625         * lib/memchr2.c: Likewise, based on memchr.c.
46626         * tests/test-memchr2.c: New test.
46627         * MODULES.html.sh (String handling): Add memchr2.
46628
46629 2008-02-29  Bruno Haible  <bruno@clisp.org>
46630
46631         * modules/freadseek-tests: New file.
46632         * tests/test-freadseek.sh: New file.
46633         * tests/test-freadseek.c: New file.
46634
46635         New module 'freadseek'.
46636         * modules/freadseek: New file.
46637         * lib/freadseek.h: New file.
46638         * lib/freadseek.c: New file.
46639         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
46640
46641 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
46642
46643         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
46644         wydawca.
46645
46646         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
46647         program_invocation_name and program_invocation_short_name are
46648         present.
46649
46650 2008-02-28  Bruno Haible  <bruno@clisp.org>
46651
46652         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
46653         * tests/test-freadptr.sh: Also test non-seekable stdin.
46654
46655 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
46656
46657         * build-aux/bootstrap (source_base, m4_base)
46658         (doc_base, tests_base): New variables.
46659         (gnulib_tool_options): Do not hardcode base directories, use
46660         the above variables instead.
46661
46662 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
46663
46664         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
46665
46666 2008-02-28  Bruno Haible  <bruno@clisp.org>
46667
46668         * modules/freadptr-tests: New file.
46669         * tests/test-freadptr.sh: New file.
46670         * tests/test-freadptr.c: New file.
46671
46672         New module 'freadptr'.
46673         * modules/freadptr: New file.
46674         * lib/freadptr.h: New file.
46675         * lib/freadptr.c: New file.
46676         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
46677
46678 2008-02-26  Karl Berry  <karl@freefriends.org>
46679
46680         Sync from Libtool:
46681         * libltdl/argz.c (argz_add, argz_count): New functions.
46682         * libltdl/argz.in.h: Declare them.
46683         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
46684
46685 2008-02-22  Bruno Haible  <bruno@clisp.org>
46686
46687         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
46688         is a pointer type.  Needed for HP-UX 10.
46689         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
46690         * doc/posix-functions/gmtime_r.texi: Likewise.
46691         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
46692
46693 2008-02-24  Bruno Haible  <bruno@clisp.org>
46694
46695         * modules/environ-tests: New file.
46696         * tests/test-environ.c: New file.
46697
46698         New module 'environ'.
46699         * modules/environ: New file.
46700         * lib/unistd.in.h (environ): New declaration.
46701         * m4/environ.m4: New file.
46702         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
46703         after use.
46704         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
46705         HAVE_DECL_ENVIRON.
46706         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
46707         HAVE_DECL_ENVIRON.
46708         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
46709         wrong claim that 'environ' is missing on some systems.
46710         * modules/execute (Depends-on): Add environ.
46711         * lib/execute.c (environ): Remove fallback declaration.
46712         * modules/pipe (Depends-on): Add environ.
46713         * lib/pipe.c (environ): Remove fallback declaration.
46714         * modules/setenv (Depends-on): Add environ.
46715         * lib/setenv.c (environ): Remove fallback declaration.
46716         * modules/unsetenv (Depends-on): Add environ.
46717         * lib/unsetenv.c (environ): Remove fallback declaration.
46718         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
46719         m4/environ.m4.
46720         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
46721         (gl_PREREQ_UNSETENV): Likewise.
46722
46723 2008-02-24  Bruno Haible  <bruno@clisp.org>
46724
46725         * doc/posix-functions/environ.texi: Document the MacOS X problem.
46726
46727 2008-02-20  Bob Proulx  <bob@proulx.com>
46728
46729         Enable use of older two part flavor 'git describe'.
46730         * build-aux/git-version-gen: If using the older two part flavor of
46731         git version then recreate the third part now present in the
46732         newer three part flavor of git describe.
46733
46734 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
46735
46736         * lib/fts.c (fts_build): Typo correction to comment.
46737
46738 2008-02-17  Bruno Haible  <bruno@clisp.org>
46739
46740         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
46741         generating no-op conflicts.
46742
46743 2008-02-17  Bruno Haible  <bruno@clisp.org>
46744
46745         Speed up by 10%.
46746         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
46747         result_entries, rather than an index-based loop.
46748
46749 2008-02-17  Bruno Haible  <bruno@clisp.org>
46750
46751         Speed up by 25%.
46752         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
46753         'hashcode_cached'.
46754         (entry_create): New function.
46755         (entry_hashcode): Use the cached hashcode if possible.
46756         (read_changelog_file, try_split_merged_entry): Use entry_create.
46757
46758 2008-02-17  Bruno Haible  <bruno@clisp.org>
46759
46760         Speed up from O(n^2) to O(n) for long ChangeLog files.
46761         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
46762         (read_changelog_file): Change implementation of entries_reversed list
46763         to rbtreehash.
46764         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
46765
46766 2008-02-17  Bruno Haible  <bruno@clisp.org>
46767
46768         New option --split-merged-entry.
46769         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
46770         (find_paragraph_end, try_split_merged_entry): New functions.
46771         (long_options): Add option --split-merged-entry.
46772         (usage): Document option --split-merged-entry.
46773         (main): Implement option --split-merged-entry.
46774         Reported by Eric Blake.
46775
46776 2008-02-17  Bruno Haible  <bruno@clisp.org>
46777
46778         * lib/git-merge-changelog.c: Include c-strstr.h.
46779         (main): Support the "git pull --rebase" situation.
46780         * modules/git-merge-changelog (Depends-on): Add c-strstr.
46781         Reported by Eric Blake.
46782
46783 2008-02-16  Eric Blake  <ebb9@byu.net>
46784
46785         Avoid doubling \ in common case of "c-maybe" quoting style.
46786         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
46787         eliding outer quotes.
46788         * lib/quotearg.h: Document this.
46789         * tests/test-quotearg.c (result_strings, inputs, results_g)
46790         (flag_results, locale_results): Test it by adding a new string to
46791         each test group.
46792         (compare_strings): Test new string.
46793
46794 2008-02-13  Eric Blake  <ebb9@byu.net>
46795
46796         Avoid trigraph quoting in default output.
46797         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
46798         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
46799         unless explicitly requested.
46800         * tests/test-quotearg.c (flag_results, main): Add additional tests.
46801
46802 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
46803
46804         Don't rely on signed integer overflowing to negative value.
46805         * lib/getugroups.c (getugroups): Include <limits.h>.
46806         Instead, compare against INT_MAX, and increment only if the test passes.
46807
46808 2008-02-13  Jim Meyering  <meyering@redhat.com>
46809         and Eric Blake  <ebb9@byu.net>
46810
46811         Avoid shadowing warning and compile errors on Linux.
46812         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
46813         forwarding macros on Linux.
46814         (dcgettext): Define a stub, for Linux.
46815         (results_g, main): Avoid warnings.
46816
46817 2008-02-12  Eric Blake  <ebb9@byu.net>
46818
46819         Silence warning in last patch.
46820         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
46821
46822         Quotearg part 4: add tests, fix c-maybe colon quoting.
46823         * lib/quotearg.h: Improve documentation.
46824         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
46825         escapes when adding outer quotes.  When quoting trigraphs, use
46826         valid C notation.  When quoting NUL, omit extra characters if next
46827         character is not digit.  Alter prototype.
46828         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
46829         callers.
46830         * modules/quotearg-tests: New module.
46831         * tests/test-quotearg.c: New test.
46832
46833 2008-02-07  Eric Blake  <ebb9@byu.net>
46834
46835         Quotearg part 3: add flag to control outer quote elision.
46836         * lib/quotearg.h (c_maybe_quoting_style): New style.
46837         (enum quoting_flags): Better documentation of flags.
46838         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
46839         c-maybe style.
46840         (quotearg_buffer_restyled): Handle new flag to elide outer
46841         quotes.
46842
46843         Quotearg part 2: add flag that can control NUL elision.
46844         * lib/quotearg.h (set_quoting_flags): New prototype.
46845         * lib/quotearg.c (struct quoting_options): Add flag field.
46846         (set_quoting_flags): New function.
46847         (quotearg_buffer_restyled): Add flags parameter.
46848         (quotearg_alloc_mem): Set the flag if length cannot be returned.
46849         (quotearg_n_options): Set the flag, since length cannot be
46850         returned.
46851         (quoting_options_from_style): Default flags correctly.
46852
46853         Quotearg part 1: more wrappers, restore quotearg_char state.
46854         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
46855         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
46856         (quotearg_colon_mem): New wrappers.
46857         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
46858         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
46859         functions.
46860         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
46861         (quotearg_colon_mem): New functions.
46862
46863 2008-02-11  Bruno Haible  <bruno@clisp.org>
46864
46865         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
46866         library in the current directory: it does not work with parallel make.
46867         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46868
46869 2008-02-11  Bruno Haible  <bruno@clisp.org>
46870
46871         * .gitattributes: New file.
46872
46873 2008-02-11  Jim Meyering  <meyering@redhat.com>
46874
46875         useless-if-before-free: Fix reversed exit values.
46876         * build-aux/useless-if-before-free: Use correct values
46877         for EXIT_MATCH and EXIT_NO_MATCH.
46878
46879         * build-aux/useless-if-before-free: Close stdout carefully.
46880
46881 2008-02-10  Bruno Haible  <bruno@clisp.org>
46882
46883         New module 'git-merge-changelog'.
46884         * modules/git-merge-changelog: New file.
46885         * lib/git-merge-changelog.c: New file.
46886
46887 2008-02-10  Jim Meyering  <meyering@redhat.com>
46888
46889         useless-if-before-free: New option: --list (-l).
46890
46891         useless-if-before-free: Don't exit immediately upon open failure.
46892         * build-aux/useless-if-before-free: Exit 2 for errors.
46893         Upon failure to open a file, don't exit immediately.
46894         Rather, just warn and continue with any remaining files.
46895
46896 2008-02-10  Bruno Haible  <bruno@clisp.org>
46897
46898         New abstract list operation 'node_set_value'.
46899         * lib/gl_list.h (gl_list_node_set_value): New function.
46900         (struct gl_list_implementation): New field node_set_value.
46901         * lib/gl_list.c (gl_list_node_set_value): New function.
46902         * lib/gl_array_list.c (gl_array_node_set_value): New function.
46903         (gl_array_list_implementation): Update.
46904         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
46905         (gl_carray_list_implementation): Update.
46906         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
46907         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
46908         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
46909         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
46910         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
46911         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
46912         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
46913         Update.
46914         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
46915         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
46916         (gl_sublist_list_implementation): Update.
46917
46918 2008-02-10  Bruno Haible  <bruno@clisp.org>
46919
46920         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
46921         Needed when ELEMENT is #defined to 'some_type *'.
46922
46923 2008-02-10  Jim Meyering  <meyering@redhat.com>
46924
46925         New script and module: useless-if-before-free
46926         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
46927         * build-aux/useless-if-before-free: New file.
46928         * modules/useless-if-before-free: New file.
46929
46930         * build-aux/gitlog-to-changelog: Use committer date, not author date.
46931
46932         xstrtol_error: Fix typo.
46933         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
46934         s/exit_failure/exit_status/.
46935
46936 2008-02-09  Jim Meyering  <meyering@redhat.com>
46937
46938         New script and module: gitlog-to-changelog
46939         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
46940         * modules/gitlog-to-changelog: New file.
46941         * build-aux/gitlog-to-changelog: New file.
46942
46943 2008-02-08  Jim Meyering  <meyering@redhat.com>
46944
46945         Avoid two "parameter unused" warnings.
46946         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
46947         Mark "st" as used.
46948
46949         Use "git COMMAND", not "git-COMMAND".
46950         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
46951         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
46952         * build-aux/git-version-gen: Use "git status", not "git-status".
46953
46954 2008-02-07  Bruno Haible  <bruno@clisp.org>
46955
46956         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
46957         Avoids a crash on Windows Vista.
46958         Reported by Adam Strzelecki <ono@java.pl> via
46959         Simon Josefsson <simon@josefsson.org>.
46960
46961 2008-02-06  Bruno Haible  <bruno@clisp.org>
46962
46963         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
46964         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
46965         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
46966         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
46967         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46968         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46969         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
46970         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
46971         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46972         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46973         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46974         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46975         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46976         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46977         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46978         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
46979         left-adjust flag.
46980         * tests/test-snprintf-posix.h (test_function): Likewise.
46981         * tests/test-sprintf-posix.h (test_function): Likewise.
46982         * tests/test-vasprintf-posix.c (test_function): Likewise.
46983         * doc/posix-functions/fprintf.texi: Update.
46984         * doc/posix-functions/printf.texi: Update.
46985         * doc/posix-functions/snprintf.texi: Update.
46986         * doc/posix-functions/sprintf.texi: Update.
46987         * doc/posix-functions/vfprintf.texi: Update.
46988         * doc/posix-functions/vprintf.texi: Update.
46989         * doc/posix-functions/vsnprintf.texi: Update.
46990         * doc/posix-functions/vsprintf.texi: Update.
46991         Reported by Peter Fales <psfales@alcatel-lucent.com>.
46992
46993 2008-02-06  Bruno Haible  <bruno@clisp.org>
46994
46995         Fix bug introduced on 2008-01-26.
46996         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
46997
46998 2008-02-06  Bruno Haible  <bruno@clisp.org>
46999
47000         Fix bug introduced on 2007-06-10.
47001         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
47002         !NEED_PRINTF_FLAG_ZERO.
47003
47004 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
47005
47006         getloadavg: use libperfstat on AIX5
47007         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
47008
47009 2008-02-03  Bruno Haible  <bruno@clisp.org>
47010
47011         * lib/diffseq.h: Add comments about required #includes.
47012         Reported by Michael Biggs <gnulib@doubleplum.net>.
47013
47014 2008-02-01  Bruno Haible  <bruno@clisp.org>
47015
47016         * users.txt: Add gnuit.
47017
47018 2008-01-31  Bruno Haible  <bruno@clisp.org>
47019
47020         * lib/md4.c (set_uint32): Mark as inline.
47021         * lib/md5.c (set_uint32): Likewise.
47022         * lib/sha1.c (set_uint32): Likewise.
47023         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
47024         * m4/md5.m4 (gl_MD5): Likewise.
47025         * m4/sha1.m4 (gl_SHA1): Likewise.
47026
47027 2008-01-31  Jim Meyering  <meyering@redhat.com>
47028
47029         Use "sizeof VAR", rather than a literal "4".
47030         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
47031         * lib/md4.c (md4_read_ctx): Likewise.
47032         * lib/sha1.c (sha1_read_ctx): Likewise.
47033
47034 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47035
47036         * tests/test-sha1.c: New file, based on test-md5.c.
47037
47038         * modules/crypto/sha1-tests: New file.
47039
47040 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47041
47042         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
47043
47044 2008-01-31  Jim Meyering  <meyering@redhat.com>
47045
47046         Prefer "sizeof v" over the equivalent "4".
47047         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
47048         * lib/md5.c (set_uint32): Likewise.
47049         * lib/sha1.c (set_uint32): Likewise.
47050
47051 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47052
47053         * lib/sha1.c (set_uint32): Mark function as static.
47054
47055 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47056
47057         md2: clarify comments to say that alignment is not required.
47058         * lib/md2.h: Remove warning about alignment in comment.
47059         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
47060         never been required.
47061
47062 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47063
47064         md4: adapt alignment constraint fix from sha1.
47065         * lib/md4.c (set_uint32): New function, from sha1.c
47066         (md4_read_ctx): Use it.
47067         (md4_finish_ctx): Doc fix.
47068         * lib/md4.h: Doc fix.
47069
47070 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47071
47072         md5: adapt alignment constraint fix from sha1.
47073         * lib/md5.c (set_uint32): New function, from sha1.c
47074         (md5_read_ctx): Use it.
47075         (md5_finish_ctx): Doc fix.
47076         * lib/md5.h: Doc fix.
47077
47078 2008-01-30  Peter Palfrader  <weasel@debian.org>
47079
47080         sha1: remove the result buffer alignment constraint
47081         * lib/sha1.c (set_uint32): New function.
47082         (sha1_read_ctx): Rewrite to remove the result buffer alignment
47083         constraint.
47084         (sha1_finish_ctx): Remove comment warning about alignment constraint.
47085         * lib/sha1.h: Likewise.
47086
47087 2008-01-30  Andreas Schwab  <schwab@suse.de>
47088             Bruno Haible  <bruno@clisp.org>
47089
47090         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
47091         correct definition of LDBL_MIN_EXP.
47092
47093 2008-01-30  Karl Berry  <karl@gnu.org>
47094
47095         * config/srclist-update: try to preserve x bit on updates.
47096         * config/srclistvars.sh: update for karl.
47097
47098 2008-01-29  Jim Meyering  <meyering@redhat.com>
47099
47100         vasnprintf.c: Avoid warning about unused label
47101         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
47102         "overflow" label definition and associated code with the
47103         same cpp condition that guards the sole use of that label.
47104
47105 2008-01-26  Bruno Haible  <bruno@clisp.org>
47106
47107         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
47108         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
47109         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
47110         * lib/isnanl-nolibm.h (isnanl): Likewise.
47111         Reported by Paul Eggert <eggert@cs.ucla.edu>.
47112
47113 2008-01-26  Bruno Haible  <bruno@clisp.org>
47114
47115         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
47116         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
47117
47118 2008-01-26  Bruno Haible  <bruno@clisp.org>
47119
47120         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
47121         GCC >= 4.0 built-in.
47122         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
47123
47124 2008-01-26  Bruno Haible  <bruno@clisp.org>
47125
47126         Rename isnan, applicable to 'double' only, to isnand.
47127         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
47128         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
47129         (configure.ac): Update.
47130         (Include): Replace "isnan.h" with "isnand.h".
47131         * m4/isnand.m4: Renamed from m4/isnan.m4.
47132         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
47133         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
47134         instead of isnan.c.
47135         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
47136         instead of HAVE_ISNAN_IN_LIBC.
47137         (isnand): Renamed from isnan.
47138         * lib/isnand.c: New file.
47139         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
47140         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
47141         (Makefile.am): Update.
47142         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
47143         Include isnand.h instead of isnan.h.
47144         (main): Test isnand instead of isnan.
47145         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
47146         isnan-nolibm.
47147         * modules/frexp (Depends-on): Likewise.
47148         * modules/frexp-tests (Depends-on): Likewise.
47149         * modules/frexp-nolibm (Depends-on): Likewise.
47150         * modules/frexp-nolibm-tests (Depends-on): Likewise.
47151         * modules/isfinite (Depends-on): Likewise.
47152         * modules/round-tests (Depends-on): Likewise.
47153         * modules/signbit (Depends-on): Likewise.
47154         * modules/signbit-tests (Depends-on): Likewise.
47155         * modules/snprintf-posix (Depends-on): Likewise.
47156         * modules/sprintf-posix (Depends-on): Likewise.
47157         * modules/trunc-tests (Depends-on): Likewise.
47158         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47159         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47160         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47161         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47162         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47163         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47164         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47165         * modules/vasnprintf-posix (Depends-on): Likewise.
47166         * modules/vasprintf-posix (Depends-on): Likewise.
47167         * modules/vfprintf-posix (Depends-on): Likewise.
47168         * modules/vsnprintf-posix (Depends-on): Likewise.
47169         * modules/vsprintf-posix (Depends-on): Likewise.
47170         * lib/frexp.c: Include isnand.h instead of isnan.h.
47171         (ISNAN): Set to isnand instead of isnan.
47172         * lib/isfinite.c: Include isnand.h instead of isnan.h.
47173         (gl_isfinited): Use isnand instead of isnan.
47174         * lib/signbitd.c: Include isnand.h instead of isnan.h.
47175         (gl_signbitd): Use isnand instead of isnan.
47176         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
47177         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
47178         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
47179         (main): Use isnand instead of isnan.
47180         * tests/test-round1.c: Include isnand.h.
47181         (main): Use isnand instead of isnan.
47182         * tests/test-round2.c: Include isnand.h instead of isnan.h.
47183         (ISNAN): Set to isnand instead of isnan.
47184         * tests/test-trunc1.c: Include isnand.h.
47185         (main): Use isnand instead of isnan.
47186         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
47187         (equal): Use isnand instead of isnan.
47188         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
47189         isnand-nolibm.
47190         * NEWS: Mention the change.
47191
47192 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
47193             Bruno Haible  <bruno@clisp.org>
47194
47195         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
47196         the GCC builtins for signbits are present and set
47197         REPLACE_SIGNBIT_USING_GCC if so.
47198         * lib/math.in.h (signbit): Define using GCC builtins if
47199         REPLACE_SIGNBIT_USING_GCC is set.
47200         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
47201         REPLACE_SIGNBIT_USING_GCC.
47202         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
47203
47204 2008-01-25  Jim Meyering  <meyering@redhat.com>
47205
47206         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
47207         * lib/poll.c: Include <config.h>, not "config.h".
47208         * tests/test-getaddrinfo.c: Likewise.
47209
47210 2008-01-25  Simon Josefsson  <simon@josefsson.org>
47211
47212         * modules/sockets-tests: New file.
47213
47214 2008-01-24  Simon Josefsson  <simon@josefsson.org>
47215
47216         * modules/sockets: New module, can be used to call WSA_Startup and
47217         WSA_Cleanup when needed.
47218
47219         * lib/sockets.h, lib/sockets.c: New files.
47220
47221         * m4/sockets.m4: New file.
47222
47223         * tests/test-sockets.c: New file.
47224
47225 2008-01-19  Bruno Haible  <bruno@clisp.org>
47226
47227         * doc/posix-headers: Renamed from doc/headers.
47228         * doc/posix-functions: Renamed from doc/functions.
47229         * doc/gnulib.texi: Update.
47230
47231 2008-01-19  Bruno Haible  <bruno@clisp.org>
47232
47233         * doc/glibc-functions/strcasestr.texi: Include contents of
47234         doc/functions/strcasestr.texi, fixing the list of platforms.
47235         * doc/functions/strcasestr.texi: Remove file.
47236
47237 2008-01-19  Bruno Haible  <bruno@clisp.org>
47238
47239         * doc/glibc-functions/memmem.texi: Include contents of
47240         doc/functions/memmem.texi.
47241         * doc/functions/memmem.texi: Remove file.
47242
47243 2008-01-18  Bruno Haible  <bruno@clisp.org>
47244
47245         * doc/glibc-functions/*.texi: New files.
47246         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
47247         to use the new files.
47248
47249 2008-01-17  Bruno Haible  <bruno@clisp.org>
47250
47251         * tests/test-gethostname.c (main): Fix printf statement.
47252
47253 2008-01-17  Simon Josefsson  <simon@josefsson.org>
47254
47255         * modules/gethostname-tests: New file.
47256
47257         * tests/test-gethostname.c: New file.
47258
47259 2008-01-17  Simon Josefsson  <simon@josefsson.org>
47260
47261         * lib/gethostname.c: Include string.h unconditionally, strncpy is
47262         used by the UNAME case.  Reported by Bruno Haible
47263         <bruno@clisp.org>.
47264
47265 2008-01-17  Eric Blake  <ebb9@byu.net>
47266
47267         Convert c-strcasestr to be more efficient.
47268         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
47269         (Depends-on): Add c-strcase, remove malloca, strnlen.
47270         * tests/test-c-strcasestr.c (main): Enhance test.
47271         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
47272
47273 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
47274
47275         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
47276         Use it in creating po/Makevars.
47277
47278 2008-01-15  Simon Josefsson  <simon@josefsson.org>
47279
47280         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
47281         Applications that requires it should initialize libgcrypt
47282         manually.
47283
47284 2008-01-16  Simon Josefsson  <simon@josefsson.org>
47285
47286         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
47287
47288 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
47289
47290         Fix problem with getdate on mingw32 reported by Simon Josefsson
47291         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
47292         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
47293         tzname", when deciding whether to declare tzname.
47294         * lib/strftime.c (tzname): Likewise.
47295
47296 2008-01-15  Bruno Haible  <bruno@clisp.org>
47297
47298         Work around a MacOS X 10.5 bug in frexpl().
47299         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
47300         * doc/functions/frexpl.texi: Document the bug.
47301         Reported by Elias Pipping <pipping@gentoo.org>.
47302
47303 2008-01-14  Eric Blake  <ebb9@byu.net>
47304
47305         Touch up previous patch.
47306         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
47307         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
47308
47309         Convert strcasestr module to use Two-Way algorithm.
47310         * modules/strcasestr-simple: New module, based on the old
47311         strcasestr, but with Two-Way rather than KMP.
47312         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
47313         * lib/string.in.h (rpl_strcasestr): Declare.
47314         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
47315         performance.
47316         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
47317         * modules/string (Makefile.am): Support strcasestr.
47318         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
47319         * modules/strcasestr-tests (Depends-on): Check for alarm.
47320         * tests/test-strcasestr.c: Augment test.
47321         * lib/str-two-way.h: Clean up stray macro.
47322         * NEWS: Document new module.
47323         * MODULES.html.sh (string handling): Likewise.
47324         * doc/functions/strcasestr.texi: New file.
47325         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
47326         here, since it is not a POSIX function.
47327
47328 2008-01-14  Colin Watson  <cjwatson@debian.org>
47329             Bruno Haible  <bruno@clisp.org>
47330
47331         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
47332         works fine; if not, set REPLACE_STRSIGNAL.
47333         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
47334         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47335         REPLACE_STRSIGNAL.
47336         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
47337         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
47338         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
47339
47340 2008-01-14  Bruno Haible  <bruno@clisp.org>
47341
47342         * modules/strsignal (Include): Change to <string.h>.
47343
47344 2008-01-14  Colin Watson  <cjwatson@debian.org>
47345
47346         * modules/argp (Notice): Add a notice recommending to change
47347         XGETTEXT_OPTIONS.
47348         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
47349
47350 2008-01-13  Colin Watson  <cjwatson@debian.org>
47351
47352         * modules/strsignal-tests: New file.
47353         * tests/test-strsignal.c: New file.
47354
47355         * lib/strsignal.c: New file, from glibc with modifications.
47356         * lib/siglist.h: New file, from glibc with modifications.
47357         * lib/string.in.h (strsignal): New declaration.
47358         * m4/strsignal.m4: New file.
47359         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47360         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
47361         * modules/strsignal: New file.
47362         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
47363         HAVE_DECL_STRSIGNAL.
47364
47365 2008-01-13  Bruno Haible  <bruno@clisp.org>
47366
47367         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
47368         locale encoding is not ASCII. Needed for OpenBSD 4.0.
47369         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
47370         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
47371
47372 2008-01-13  Bruno Haible  <bruno@clisp.org>
47373
47374         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
47375         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
47376         * lib/argp.h (__attribute__): Likewise.
47377         * lib/c-stack.c (__attribute__): Likewise.
47378         * lib/error.h (__attribute__): Likewise.
47379         * lib/fts.c (__attribute__): Likewise.
47380         * lib/openat.h (__attribute__): Likewise.
47381         * lib/stdio.in.h (__attribute__): Likewise.
47382         * lib/string.in.h (__attribute__): Likewise.
47383         * lib/utimens.c (__attribute__): Likewise.
47384         * lib/vasnprintf.h (__attribute__): Likewise.
47385         * lib/xalloc.h (__attribute__): Likewise.
47386         * lib/xprintf.h (__attribute__): Likewise.
47387         * lib/xstrtol.h (__attribute__): Likewise.
47388         * lib/xvasprintf.h (__attribute__): Likewise.
47389
47390 2008-01-12  Bruno Haible  <bruno@clisp.org>
47391
47392         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
47393         * doc/glibc-headers/a.out.texi: New file.
47394         * doc/glibc-headers/aliases.texi: New file.
47395         * doc/glibc-headers/alloca.texi: New file.
47396         * doc/glibc-headers/ar.texi: New file.
47397         * doc/glibc-headers/argp.texi: New file.
47398         * doc/glibc-headers/argz.texi: New file.
47399         * doc/glibc-headers/byteswap.texi: New file.
47400         * doc/glibc-headers/crypt.texi: New file.
47401         * doc/glibc-headers/endian.texi: New file.
47402         * doc/glibc-headers/envz.texi: New file.
47403         * doc/glibc-headers/err.texi: New file.
47404         * doc/glibc-headers/error.texi: New file.
47405         * doc/glibc-headers/execinfo.texi: New file.
47406         * doc/glibc-headers/fpu_control.texi: New file.
47407         * doc/glibc-headers/fstab.texi: New file.
47408         * doc/glibc-headers/fts.texi: New file.
47409         * doc/glibc-headers/getopt.texi: New file.
47410         * doc/glibc-headers/ieee754.texi: New file.
47411         * doc/glibc-headers/ifaddrs.texi: New file.
47412         * doc/glibc-headers/libintl.texi: New file.
47413         * doc/glibc-headers/mcheck.texi: New file.
47414         * doc/glibc-headers/mntent.texi: New file.
47415         * doc/glibc-headers/obstack.texi: New file.
47416         * doc/glibc-headers/paths.texi: New file.
47417         * doc/glibc-headers/printf.texi: New file.
47418         * doc/glibc-headers/pty.texi: New file.
47419         * doc/glibc-headers/resolv.texi: New file.
47420         * doc/glibc-headers/shadow.texi: New file.
47421         * doc/glibc-headers/sysexits.texi: New file.
47422         * doc/glibc-headers/ttyent.texi: New file.
47423
47424 2008-01-12  Jim Meyering  <meyering@redhat.com>
47425
47426         announce-gen: emit Gnulib's git-based version string.
47427         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
47428         New option --gnulib-version=V, where V is expected to be
47429         the output of running git describe in the gnulib directory.
47430         (get_tool_versions): Request feedback on xdelta.  I suspect it's
47431         not useful, and plan to stop publishing an xdelta file with each
47432         coreutils release.
47433
47434         * build-aux/announce-gen: Also check for lzma-compressed files.
47435
47436 2008-01-11  Bruno Haible  <bruno@clisp.org>
47437
47438         * tests/test-memmem.c (main): Increase maximum allowed time.
47439         * tests/test-strstr.c (main): Likewise.
47440
47441 2008-01-11  Bruno Haible  <bruno@clisp.org>
47442
47443         * doc/functions/memmem.texi: Add more precisions about platforms.
47444         * doc/functions/strstr.texi: Likewise.
47445
47446 2008-01-10  Eric Blake  <ebb9@byu.net>
47447
47448         * m4/strstr.m4: Delete cruft from copy-n-paste.
47449         Reported by Bruno Haible.
47450
47451 2008-01-10  Bruno Haible  <bruno@clisp.org>
47452
47453         Make c-strstr rely on strstr.
47454         * lib/c-strstr.c: Don't include str-kmp.h.
47455         (c_strstr): Define in terms of strstr.
47456         * modules/c-strstr (Files): Remove lib/str-kmp.h.
47457         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
47458
47459 2008-01-10  Bruno Haible  <bruno@clisp.org>
47460
47461         * doc/gnulib.texi (String Functions in C Locale): New section.
47462         * doc/c-ctype.texi: New file.
47463         * doc/c-strcase.texi: New file.
47464         * doc/c-strcaseeq.texi: New file.
47465         * doc/c-strcasestr.texi: New file.
47466         * doc/c-strstr.texi: New file.
47467         * doc/c-strtod.texi: New file.
47468         * doc/c-strtold.texi: New file.
47469
47470 2008-01-10  Eric Blake  <ebb9@byu.net>
47471
47472         * lib/relocatable.h: Fix a comment.
47473
47474 2008-01-10  Eric Blake  <ebb9@byu.net>
47475
47476         Share two-way algorithm.
47477         * lib/str-two-way.h: New file, merged from...
47478         * lib/memmem.c: ...here...
47479         * lib/strstr.c: ...and here.
47480         * modules/memmem (Files): Use it.
47481         * modules/strstr (Files): Likewise.
47482
47483         Avoid quadratic strstr implementations.
47484         * lib/strstr.c: New file.
47485         * m4/strstr.m4: Likewise.
47486         * modules/strstr: Likewise.
47487         * modules/strstr-tests: Likewise.
47488         * tests/test-strstr.c: Likewise.
47489         * lib/string.in.h (rpl_strstr): Declare.
47490         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
47491         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
47492         * modules/string (Makefile.am): Likewise.
47493         * MODULES.html.sh (string handling): Mention new module.
47494         * doc/functions/strstr.texi (strstr): Document the bug.
47495
47496 2008-01-10  Bruno Haible  <bruno@clisp.org>
47497
47498         * lib/relocatable.h (relocate): State whether result is freshly
47499         allocated or not.
47500         * lib/relocatable.c (relocate): Return a freshly allocated string
47501         instead of a pointer to a privately held string.
47502         Reported by Sylvain Beucler <beuc@gnu.org>.
47503
47504 2008-01-10  Colin Watson  <cjwatson@debian.org>
47505
47506         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
47507         s/S_ISNLK/S_ISLNK/.
47508
47509 2008-01-09  Bruno Haible  <bruno@clisp.org>
47510
47511         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
47512         and other files.
47513         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
47514         if it's only a guess.
47515         * modules/memmem: Simplify by depending on memmem-simple.
47516
47517 2008-01-09  Bruno Haible  <bruno@clisp.org>
47518
47519         Work around OpenBSD 4.0 tdelete() bug.
47520         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
47521         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
47522         macros and don't redefine the enum values.
47523         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
47524         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
47525         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
47526
47527 2008-01-09  Bruno Haible  <bruno@clisp.org>
47528
47529         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
47530         (main): Don't perform the tests if setlocale did not install a UTF-8
47531         locale. Needed on OpenBSD 4.0.
47532         * modules/wcwidth-tests (Depends-on): Add localcharset.
47533
47534 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47535
47536         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
47537         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
47538         * NEWS: announce this.
47539         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
47540
47541 2008-01-09  Simon Josefsson  <simon@josefsson.org>
47542         and Eric Blake  <ebb9@byu.net>
47543
47544         Add memmem-simple module.
47545         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
47546         (gl_FUNC_MEMMEM): Separate performance from presence checks.
47547         * modules/memmem-simple: New file.
47548         * modules/memmem (Description): Tweak.
47549         * MODULES.html.sh (string handling): Mention new module.
47550         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
47551         addressed by memmem-simple.
47552         * NEWS: Document the difference.
47553
47554 2008-01-09  Eric Blake  <ebb9@byu.net>
47555
47556         Give gcc some memmem optimization hints.
47557         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
47558         (strcasestr): Declare as pure.
47559         * modules/memmem (Maintainer): Claim my implementation.
47560
47561 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47562
47563         Support AIX 6.1 and higher.
47564         * build-aux/config.libpath: Likewise.
47565         * build-aux/config.rpath: Likewise.
47566
47567 2008-01-08  Jim Meyering  <meyering@redhat.com>
47568             Bruno Haible  <bruno@clisp.org>
47569
47570         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
47571         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
47572         Reported by Peter Fales in
47573         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
47574
47575 2008-01-08  Bruno Haible  <bruno@clisp.org>
47576
47577         * modules/unictype/category-of (Depends-on): Add
47578         unictype/category-none.
47579         * modules/unictype/category-and-tests (Depends-on): Add
47580         unictype/category-{L,N,Lu,Nd}.
47581         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
47582         * modules/unictype/category-or-tests (Depends-on): Add
47583         unictype/category-{L,N}.
47584         * modules/unictype/category-name-tests (Depends-on): Add
47585         unictype/category-{Z,Nl}.
47586         Reported by Simon Josefsson.
47587
47588 2008-01-08  Bruno Haible  <bruno@clisp.org>
47589
47590         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
47591         convention better.
47592         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
47593         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
47594         Reported by Peter Miller <millerp@canb.auug.org.au>.
47595
47596 2008-01-08  Eric Blake  <ebb9@byu.net>
47597
47598         Rewrite memmem to guarantee linear complexity without malloc.
47599         * lib/memmem.c (memmem): Use Two-Way rather than
47600         Knuth-Morris-Pratt, to allow O(1) space usage.
47601         (critical_factorization, two_way_short_needle)
47602         (two_way_long_needle): New functions.
47603         (knuth_morris_pratt): Delete.
47604         * modules/memmem (Depends-on): No longer need malloca or stdbool.
47605         Add stdint.
47606         * tests/test-memmem.c (main): Add tests for periodic needle and
47607         sublinear performance.
47608         * doc/functions/memmem.texi (memmem): Document other deficiencies
47609         in cygwin and older glibc.
47610
47611 2008-01-08  Bruno Haible  <bruno@clisp.org>
47612
47613         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
47614         augmentation.
47615
47616 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
47617
47618         Add a configure time option: --disable-acl.
47619         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
47620         AC_ARG_ENABLE(acl).
47621
47622 2008-01-06  Simon Josefsson  <simon@josefsson.org>
47623
47624         * tests/test-localename.c: Don't include obsolete "setenv.h".
47625
47626         * modules/localename-tests (Depends-on): Need unsetenv.
47627
47628 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47629
47630         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
47631
47632 2008-01-06  Colin Watson  <cjwatson@debian.org>
47633
47634         * users.txt: Add man-db.
47635
47636 2008-01-07  Bruno Haible  <bruno@clisp.org>
47637
47638         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
47639         previous section name.
47640
47641 2008-01-07  Bruno Haible  <bruno@clisp.org>
47642
47643         * lib/progname.c (set_program_name): Don't strip off a leading
47644         "lt-" prefix outside a .libs directory.
47645         Suggested by Paul Eggert.
47646
47647 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
47648             Bruno Haible  <bruno@clisp.org>
47649
47650         Improve memory cleanup in 'relocatable' module.
47651         * lib/relocatable.h (compute_curr_prefix): Change return type to
47652         'char *'.
47653         * lib/relocatable.c (compute_curr_prefix): Change return type to
47654         'char *'. Free curr_installdir after use.
47655         (relocate): Free curr_prefix_better after use.
47656         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
47657
47658 2008-01-01  Bruno Haible  <bruno@clisp.org>
47659
47660         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
47661         failure on older glibc systems.
47662         Reported by Peter Fales <psfales@alcatel-lucent.com>.
47663
47664 2008-01-05  Eric Blake  <ebb9@byu.net>
47665
47666         Avoid quadratic system memmem.
47667         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
47668         Reported by Ralf Wildenhues.
47669
47670         Fix memmem test for mingw.
47671         * modules/memmem-tests (configure.ac): Check for alarm.
47672         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
47673         it.
47674         * doc/functions/memmem.texi: New file.
47675         * doc/gnulib.texi (Function Substitutes): Add memmem.
47676         Reported by Bruno Haible.
47677
47678 2008-01-04  Bruno Haible  <bruno@clisp.org>
47679
47680         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
47681         Require gl_HEADER_STRINGS_H_DEFAULTS, not
47682         gl_HEADER_STRING_H_DEFAULTS.
47683
47684 2008-01-04  Eric Blake  <ebb9@byu.net>
47685
47686         Shorten duration of memmem test.
47687         * tests/test-memmem.c (main): Use alarm to declare failure if test
47688         is taking too long.
47689         Reported by Ralf Wildenhues.
47690
47691 2007-12-21  Simon Josefsson  <simon@josefsson.org>
47692
47693         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
47694         string, needed by strerror.
47695
47696 2008-01-03  Colin Watson  <cjwatson@debian.org>
47697             Bruno Haible  <bruno@clisp.org>
47698
47699         * doc/gnulib-tool.texi (Localization): New section.
47700
47701 2008-01-02  Bruno Haible  <bruno@clisp.org>
47702
47703         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
47704         variables to 'unsigned char *' type.
47705         Reported by Paul Eggert.
47706
47707 2008-01-02  Jim Meyering  <jim@meyering.net>
47708
47709         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
47710
47711 2007-12-31  Jim Meyering  <jim@meyering.net>
47712
47713         Avoid use of private FTS type name.
47714         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
47715
47716 2007-12-30  Karl Berry  <karl@gnu.org>
47717
47718         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
47719         work around defect in Texinfo and/or the standalone Info browser.
47720
47721 2007-12-30  Bruno Haible  <bruno@clisp.org>
47722
47723         Unify 5 copies of the KMP code.
47724         * lib/str-kmp.h: New file.
47725         * lib/c-strcasestr.c: Include str-kmp.h.
47726         (knuth_morris_pratt): Remove function.
47727         (c_strcasestr): Update.
47728         * lib/c-strstr.c: Include str-kmp.h.
47729         (knuth_morris_pratt): Remove function.
47730         (c_strcasestr): Update.
47731         * lib/mbscasestr.c: Include str-kmp.h.
47732         (knuth_morris_pratt_unibyte): Remove function.
47733         * lib/mbsstr.c: Include str-kmp.h.
47734         (knuth_morris_pratt_unibyte): Remove function.
47735         * lib/strcasestr.c: Include str-kmp.h.
47736         (knuth_morris_pratt): Remove function.
47737         (strcasestr): Update.
47738         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
47739         * modules/c-strstr (Files): Likewise.
47740         * modules/mbscasestr (Files): Likewise.
47741         * modules/mbsstr (Files): Likewise.
47742         * modules/strcasestr (Files): Likewise.
47743         Suggested by Paul Eggert.
47744
47745 2007-12-30  Bruno Haible  <bruno@clisp.org>
47746
47747         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
47748         defined.
47749
47750 2007-12-30  Bruno Haible  <bruno@clisp.org>
47751
47752         * lib/xmalloca.h: Include xalloc.h.
47753         (xnmalloca): New macro.
47754
47755 2007-12-30  Bruno Haible  <bruno@clisp.org>
47756
47757         * lib/malloca.h (nmalloca): New macro.
47758         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
47759         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
47760         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
47761         knuth_morris_pratt_multibyte): Likewise.
47762         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
47763         knuth_morris_pratt_multibyte): Likewise.
47764         * lib/memmem.c (knuth_morris_pratt): Likewise.
47765         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
47766
47767 2007-12-25  Bruno Haible  <bruno@clisp.org>
47768
47769         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
47770         * lib/glob.c: Don't include openat.h.
47771         (link_exists2_p): Add back the code that deals with the
47772         !GLOB_ALTDIRFUNC case.
47773         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
47774         let it do the filename concatenation.
47775         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
47776         * modules/glob (Depends-on): Remove openat.
47777
47778 2007-12-31  Bruno Haible  <bruno@clisp.org>
47779
47780         * modules/dirfd (License): Change to LGPLv2+.
47781         Approved by Jim Meyering.
47782
47783 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
47784
47785         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
47786         when multiplying M by sizeof (size_t).
47787
47788 2007-12-10  Martin Lambers  <marlam@marlam.de>
47789
47790         Override getpagesize on mingw.
47791         * lib/getpagesize.c: New file.
47792         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
47793         * modules/getpagesize (Files): Add lib/getpagesize.c.
47794         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
47795         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47796         REPLACE_GETPAGESIZE.
47797         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
47798
47799 2007-12-25  Bruno Haible  <bruno@clisp.org>
47800
47801         * modules/localcharset (Notice): New field.
47802         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
47803         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
47804
47805 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
47806             Bruno Haible  <bruno@clisp.org>
47807
47808         Avoid using the syntax symbol() in formatted documentation.
47809         * MODULES.html.sh (func_module): When replacing symbol() with a
47810         hyperlink, remove the parentheses. Show an error if some remain.
47811         Recognize and render the '...' syntax.
47812         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
47813         Rework. Add paragraph about GCC's inlining.
47814         * doc/alloca.texi: Likewise.
47815         * doc/error.texi: Remove parentheses from symbol reference.
47816         * doc/gnulib-intro.texi: Likewise.
47817         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
47818         * modules/fnmatch (Description): Reword to say "the ... function".
47819         * modules/full-read (Description): Likewise.
47820         * modules/full-write (Description): Likewise.
47821         * modules/safe-read (Description): Likewise.
47822         * modules/safe-write (Description): Likewise.
47823         * modules/strchrnul (Description): Likewise.
47824         * modules/trim (Description): Likewise.
47825         * modules/error (Description): Remove parentheses from symbol
47826         references.
47827         * modules/verror (Description): Likewise.
47828         Reported by Karl Berry.
47829
47830 2007-12-25  Bruno Haible  <bruno@clisp.org>
47831
47832         Fixup after 2007-10-16 commit.
47833         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
47834
47835 2007-12-24  Bruno Haible  <bruno@clisp.org>
47836
47837         Make --enable-relocatable work with DESTDIR.
47838         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
47839         to compute installdir from destprog.
47840         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
47841         also set the RELOC_DESTDIR variable.
47842         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
47843
47844 2007-12-24  Bruno Haible  <bruno@clisp.org>
47845
47846         Fix link error due to xalloc_die().
47847         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
47848         of xreadlink.
47849         * lib/relocwrapper.c: Update comments.
47850         * build-aux/install-reloc: Remove xreadlink.c from file list.
47851         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
47852         xreadlink.c.
47853         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
47854
47855 2007-12-24  Bruno Haible  <bruno@clisp.org>
47856
47857         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
47858         * lib/setenv.h: Remove file.
47859         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
47860         lib/setenv.h.
47861         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
47862         (Depends-on): Add stdlib.
47863         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
47864         gl_FUNC_UNSETENV.
47865         (Include): Replace setenv.h with <stdlib.h>.
47866         * modules/unsetenv: New file.
47867         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
47868         * lib/unsetenv.c: Include <stdlib.h> first.
47869         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
47870         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
47871         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
47872         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
47873         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
47874         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
47875         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
47876         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
47877         * doc/functions/unsetenv.texi: Update.
47878         * modules/xsetenv (Depends-on): Add unsetenv.
47879         * modules/getdate (Depends-on): Likewise.
47880         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
47881         * lib/xsetenv.c: Don't include setenv.h.
47882         * lib/getdate.y: Likewise.
47883         * lib/relocwrapper.c: Likewise.
47884         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
47885         (Depends-on): Add stdlib.
47886         * NEWS: Mention the changes.
47887         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
47888
47889 2007-12-23  Bruno Haible  <bruno@clisp.org>
47890
47891         * lib/memmem.c (memmem): Use lowercase variable names. Tab
47892         indentation.
47893
47894 2007-12-23  Bruno Haible  <bruno@clisp.org>
47895
47896         * lib/c-strcasestr.c: Add more comments.
47897         * lib/c-strstr.c: Likewise.
47898         * lib/mbscasestr.c: Likewise.
47899         * lib/mbsstr.c: Likewise.
47900         * lib/strcasestr.c: Likewise.
47901         * lib/memmem.c: Likewise.
47902
47903 2007-12-23  Bruno Haible  <bruno@clisp.org>
47904
47905         * tests/test-memmem.c: Include <string.h> first.
47906
47907 2007-12-22  Bruno Haible  <bruno@clisp.org>
47908
47909         * gnulib-tool (func_create_testdir): Change $auxdir while generating
47910         the contents of $testsbase.
47911         Reported by Ralf Wildenhues.
47912
47913 2007-12-22  Bruno Haible  <bruno@clisp.org>
47914
47915         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
47916         two variables local_ldadd_before, local_ldadd_last.
47917
47918 2007-12-20  Eric Blake  <ebb9@byu.net>
47919
47920         Work around circular library issue when cross-compiling.
47921         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
47922         that progname.o does not need to pull in rpl_memcmp.
47923
47924 2007-12-19  Eric Blake  <ebb9@byu.net>
47925
47926         Fix memmem to avoid O(n^2) worst-case complexity.
47927         * lib/memmem.c (knuth_morris_pratt): New function.
47928         (memmem): Use it if first few naive iterations fail.
47929         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
47930         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
47931         * modules/memchr (License): Likewise.
47932         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
47933         malloca.
47934         * tests/test-memmem.c: Rewrite, borrowing ideas from
47935         test-mbsstr1.c; the old version wouldn't even compile!
47936         * modules/memmem-tests: New file.
47937         * lib/string.in.h (rpl_memmem): Add declaration.
47938         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
47939         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
47940         REPLACE_MEMMEM.
47941
47942 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47943
47944         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
47945         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
47946         before any system include files, and undef after them all.  This
47947         should fix a problem on VMS reported by John E. Malmberg in
47948         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
47949
47950 2007-12-17  Eric Blake  <ebb9@byu.net>
47951
47952         Revert addition of verify, for BSD/OS.
47953         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
47954         can't handle large files, for the sake of obsolete platforms.
47955         * modules/fseeko (Depends-on): Remove verify.
47956         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
47957         * doc/functions/ftello.texi (ftello): Likewise.
47958         * doc/functions/fgetpos.texi (fgetpos): Likewise.
47959         Reported by Larry Jones.
47960
47961 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
47962
47963         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
47964         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
47965
47966 2007-12-17  Jim Meyering  <meyering@redhat.com>
47967
47968         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
47969         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
47970         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
47971         * modules/getcwd (Depends-on): Add openat.
47972         Reported by Petr Salinger.
47973
47974 2007-12-17  Bruno Haible  <bruno@clisp.org>
47975
47976         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
47977         avoid a segmentation fault of the configure test on x86_64 systems.
47978
47979 2007-12-15  Jim Meyering  <meyering@redhat.com>
47980
47981         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
47982
47983 2007-12-13  Eric Blake  <ebb9@byu.net>
47984
47985         Another fseek test.
47986         * tests/test-fseek.c (main): Also test ungetc handling.
47987         * tests/test-fseeko.c (main): Likewise.
47988         * modules/fseeko (Depends-on): Add verify.
47989         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
47990         large.
47991         Reported by Larry Jones.
47992
47993         Fix fseeko on mingw.
47994         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
47995         seek.
47996
47997         Beef up fseek tests.
47998         * tests/test-fseek.c (main): Also test eof handling.
47999         * tests/test-fseeko.c (main): Likewise.
48000         Reported by Larry Jones.
48001
48002 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
48003
48004         Fix fseeko on BSD-based platforms.
48005         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
48006         successful seek.
48007
48008 2007-12-12  Eric Blake  <ebb9@byu.net>
48009
48010         Allow circular dependency of separate libtests.a
48011         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
48012         when use_libtests.
48013
48014 2007-12-11  Eric Blake  <ebb9@byu.net>
48015
48016         Fix bug with -0.0L in previous patch.
48017         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
48018         * tests/test-isnan.c (main): Also test on zeroes.
48019         * tests/test-isnanf.c (main): Likewise.
48020         * tests/test-isnanl.h (main): Likewise.
48021
48022         Detect pseudo-denormals on x86 even when cross-compiling.
48023         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
48024         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
48025         invalid bit patterns that happen to satisfy ==.
48026
48027         Avoid link failures with separate libtests.a.
48028         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
48029         last, to satisfy circular dependencies.
48030
48031 2007-12-11  Eric Blake  <ebb9@byu.net>
48032         and Bruno Haible  <bruno@clisp.org>
48033
48034         Fix OpenBSD 4.0 <float.h> handling of long double.
48035         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
48036         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
48037         * doc/headers/float.texi (float.h): Document OpenBSD bug.
48038
48039 2007-12-11  Jim Meyering  <meyering@redhat.com>
48040
48041         * users.txt: Add libvirt.
48042
48043         Support versions of autoconf prior to 2.59c.
48044         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
48045         if it is not already defined.
48046
48047 2007-12-09  Bruno Haible  <bruno@clisp.org>
48048
48049         Let 'gnulib-tool --import' collect sources needed for the tests in
48050         tests/ rather than in lib/.
48051         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
48052         argument. If true, add rules to generate libtests.a, and put libtests.a
48053         into $(LDADD). Consider source files in subdirectories and set
48054         uses_subdirs.
48055         (func_emit_initmacro_start, func_emit_initmacro_end,
48056         func_emit_initmacro_done): Pass all arguments explicitly.
48057         (func_import): Determine two module lists main_modules,
48058         testsrelated_modules. Determine use_libtests. Determine two variables
48059         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
48060         instead of just sed_transform_lib_file. Determine two variables
48061         main_files and testsrelated_files. Compute 'files' as the union of
48062         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
48063         func_add_or_update. In the generated gnulib-comp.m4, collect the
48064         object files for tests/ in different variables than those for lib/.
48065         Substitute LIBTESTS_LIBDEPS.
48066         (func_create_testdir): Combine the uses_subdirs results from
48067         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
48068
48069 2007-12-09  Bruno Haible  <bruno@clisp.org>
48070
48071         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
48072         the build-aux directory.
48073
48074 2007-12-09  Bruno Haible  <bruno@clisp.org>
48075
48076         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
48077         introduced on 2006-09-09.
48078
48079 2007-12-07  Jim Meyering  <meyering@redhat.com>
48080
48081         Let these macros work also with autoconf-2.59.
48082         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
48083         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
48084         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
48085
48086 2007-12-06  Jim Meyering  <meyering@redhat.com>
48087
48088         Avoid a configure-time syntax error in gl_FUNC_ACL.
48089         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
48090         function in each branch, before testing the cache variable.
48091
48092 2007-12-04  Eric Blake  <ebb9@byu.net>
48093
48094         Make scripts executable.
48095         * build-aux/config.guess: Add execute permissions.
48096         * build-aux/config.sub: Likewise.
48097         * build-aux/gendocs.sh: Likewise.
48098
48099         Fix frexp on mingw.
48100         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
48101         cross-compiling.
48102         * doc/functions/frexp.texi (frexp): Document the bug.
48103
48104         Make cygwin fseeko check more reliable.
48105         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
48106         version numbers, rather than unrelated feature check.
48107         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
48108         * doc/functions/ftello.texi (ftello): Likewise.
48109         Reported by Bruno Haible.
48110
48111         * m4/strerror.m4: Bump version number.
48112
48113 2007-12-03  Bruno Haible  <bruno@clisp.org>
48114
48115         * doc/functions/mprotect.texi: Mention the mingw problem.
48116
48117 2007-12-03  Eric Blake  <ebb9@byu.net>
48118
48119         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
48120         REPLACE_STRERROR is initialized before this macro.
48121
48122 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
48123
48124         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
48125         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
48126         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
48127         put -lsec in even for programs other than 'ls'.  This fixes a problem
48128         for gettext reported by Bruno Haible in
48129         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
48130         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
48131         Add support for Solaris 10.  This isn't efficient, but should get the
48132         job done for now.
48133
48134 2007-12-03  James Youngman  <jay@gnu.org>
48135
48136         * doc/regexprops-generic.texi: change "an close-group" to "a
48137         close-group" and "illegal" to "not allowed".
48138
48139 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48140
48141         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
48142         pr_byname.h. Needed for the rare case when the maintainer has done
48143         "make maintainer-clean" in the source directory and then attempts a
48144         build outside the source directory.
48145         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
48146         scripts_byname.h.
48147
48148 2007-12-02  Martin Lambers <marlam@marlam.de>
48149             Bruno Haible  <bruno@clisp.org>
48150
48151         * lib/getpagesize.h: Remove file.
48152         * lib/unistd.in.h: Include declaration of getpagesize here.
48153         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
48154         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
48155         HAVE_SYS_PARAM_H.
48156         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
48157         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
48158         * modules/getpagesize (Files): Remove lib/getpagesize.h.
48159         (Depends-on): Add unistd.
48160         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48161         (Include): Use <unistd.h> instead of getpagesize.h.
48162         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
48163         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
48164         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
48165         gl_GETPAGESIZE invocation, already handled by module dependency.
48166         * lib/pagealign_alloc.c: Don't include getpagesize.h.
48167
48168 2007-12-02  Bruno Haible  <bruno@clisp.org>
48169
48170         * modules/strings-tests: New file.
48171         * tests/test-strings.c: New file.
48172
48173         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
48174         * lib/strings.in.h: New file.
48175         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
48176         * m4/strings_h.m4: New file.
48177         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
48178         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
48179         * modules/strings: New file.
48180         * modules/string (Makefile.am): Update.
48181         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
48182         Reported by Karl Berry.
48183
48184 2007-12-01  Eric Blake  <ebb9@byu.net>
48185
48186         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
48187         accomodate fix in cygwin 1.5.25.
48188
48189 2007-12-01  Jim Meyering  <meyering@redhat.com>
48190
48191         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
48192         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
48193         that would inhibit utf8-optimization of a regexp containing line-
48194         or buffer-anchors, e.g., `^', `$'.
48195
48196 2007-11-30  Bruno Haible  <bruno@clisp.org>
48197
48198         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
48199         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
48200         glthread_recursive_lock_init.
48201         * lib/lock.c (glthread_recursive_lock_init)
48202         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
48203         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48204
48205 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
48206
48207         New function qset_acl, like set_acl but with syscall semantics.
48208         * lib/acl.h (qset_acl): New decl.
48209         * lib/acl.c (qset_acl): New function.
48210         (set_acl): Use new function.  Use more-consistent diagnostics.
48211
48212 2007-11-28  Jim Meyering  <meyering@redhat.com>
48213
48214         * modules/physmem (License): Change from GPL to LGPLv2+.
48215
48216 2007-11-26  Bruno Haible  <bruno@clisp.org>
48217
48218         * lib/vasnprintf.c (decode_long_double): Don't abort if the
48219         'long double' type has excess precision.
48220         Reported by Jim Meyering in
48221         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
48222
48223 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48224
48225         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
48226         Sync from <http://gnu.org/licenses>.
48227         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
48228         with license text from same location.
48229         * doc/maintain.texi, doc/standards.texi:  Sync from
48230         <http://savannah.gnu.org/projects/gnustandards>.
48231
48232 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
48233         and Jim Meyering  <meyering@redhat.com>
48234
48235         Adjust getdate' grammar to accept a slightly more regular language.
48236         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
48237         Before, the former was rejected.
48238         * lib/getdate.y (digits_to_date_time): New function, factored
48239         out of ...
48240         (number): ...here.  Just call digits_to_date_time.
48241         (hybrid): New non-terminal to handle an <unsigned number,
48242         signed relative offset> sequence consistently.
48243
48244 2007-11-18  Jim Meyering  <meyering@redhat.com>
48245
48246         Pull my changes from coreutils:
48247         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
48248         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
48249         use of $gnulib_tool_option_extras, so that it's separated from the
48250         preceding argument.
48251
48252         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
48253         * build-aux/bootstrap (cp_mark_as_generated): Create any required
48254         parent destination directories before copying a file into place.
48255
48256 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
48257
48258         bootstrap: work also with 4-argument variant of AC_INIT
48259         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
48260
48261 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
48262
48263         Port test-getaddrinfo to Solaris.
48264         Problem reported by Bruno Haible in
48265         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
48266         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
48267         explanation of setting 'hints'.
48268         Don't reject an implementation merely because it returns EAI_SERVICE.
48269         (EAI_SERVICE): Define to 0 if not defined.
48270
48271 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
48272
48273         The license of gnu-make and posix-shell is now "GPLed build tool".
48274         * modules/gnu-make (License): Likewise.
48275         * modules/posix-shell (License): Likewise.
48276
48277         New module posix-shell, for determining a POSIX shell
48278         or perhaps something that is close enough to a POSIX shell.
48279         * m4/posix-shell.m4: New file.
48280         * modules/posix-shell: New file.
48281
48282         * MODULES.html.sh: Mention new module.
48283
48284         New module gnu-make, for determining whether we're using GNU Make.
48285         * m4/gnu-make.m4: New file.
48286         * modules/gnu-make: New file.
48287         * MODULES.html.sh: Mention new module.
48288
48289 2007-11-14  Jim Meyering  <meyering@redhat.com>
48290
48291         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
48292         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
48293         use this macro to create a function _definition_.
48294         Remove useless "#undef ARGMATCH_DIE".
48295
48296 2007-11-14  Bruno Haible  <bruno@clisp.org>
48297
48298         * lib/config.charset: Update for OpenBSD 4.1.
48299         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
48300
48301 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
48302
48303         Document 64-bit #if problems in stdint.texi.
48304         * doc/headers/stdint.texi (stdint.h): Mention problems with
48305         64-bit-#if, and how to work around them.
48306
48307         Don't insist on 'long long int' support in the preprocessor.  It
48308         breaks too many things.  For example, PRIdMAX still uses a 'long
48309         long int' format with the latest Sun compiler, even though
48310         HAVE_LONG_LONG_INT isn't defined due to that compiler's
48311         preprocessor problem.  This causes the latest coreutils to dump
48312         core on Solaris 10 sparc with the Sun C compiler.
48313         Instead, fix the 2007-10-16 problem in a different way, by evaluating
48314         the troublesome expressions at configure-time, not at #if-time.
48315         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
48316         preprocessor.
48317         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
48318         compile-time C checks, done at 'configure'-time.
48319         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
48320         * modules/inttypes (Makefile): Substitute the new symbols that
48321         gl_INTTYPES_H now generates.
48322         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
48323
48324 2007-11-12  Bruno Haible  <bruno@clisp.org>
48325
48326         Tests for Unicode character classification functions.
48327
48328         * modules/unictype/bidicategory-byname-tests: New file.
48329         * modules/unictype/bidicategory-name-tests: New file.
48330         * modules/unictype/bidicategory-of-tests: New file.
48331         * modules/unictype/bidicategory-test-tests: New file.
48332         * modules/unictype/block-list-tests: New file.
48333         * modules/unictype/block-of-tests: New file.
48334         * modules/unictype/block-test-tests: New file.
48335         * modules/unictype/category-C-tests: New file.
48336         * modules/unictype/category-Cc-tests: New file.
48337         * modules/unictype/category-Cf-tests: New file.
48338         * modules/unictype/category-Cn-tests: New file.
48339         * modules/unictype/category-Co-tests: New file.
48340         * modules/unictype/category-Cs-tests: New file.
48341         * modules/unictype/category-L-tests: New file.
48342         * modules/unictype/category-Ll-tests: New file.
48343         * modules/unictype/category-Lm-tests: New file.
48344         * modules/unictype/category-Lo-tests: New file.
48345         * modules/unictype/category-Lt-tests: New file.
48346         * modules/unictype/category-Lu-tests: New file.
48347         * modules/unictype/category-M-tests: New file.
48348         * modules/unictype/category-Mc-tests: New file.
48349         * modules/unictype/category-Me-tests: New file.
48350         * modules/unictype/category-Mn-tests: New file.
48351         * modules/unictype/category-N-tests: New file.
48352         * modules/unictype/category-Nd-tests: New file.
48353         * modules/unictype/category-Nl-tests: New file.
48354         * modules/unictype/category-No-tests: New file.
48355         * modules/unictype/category-P-tests: New file.
48356         * modules/unictype/category-Pc-tests: New file.
48357         * modules/unictype/category-Pd-tests: New file.
48358         * modules/unictype/category-Pe-tests: New file.
48359         * modules/unictype/category-Pf-tests: New file.
48360         * modules/unictype/category-Pi-tests: New file.
48361         * modules/unictype/category-Po-tests: New file.
48362         * modules/unictype/category-Ps-tests: New file.
48363         * modules/unictype/category-S-tests: New file.
48364         * modules/unictype/category-Sc-tests: New file.
48365         * modules/unictype/category-Sk-tests: New file.
48366         * modules/unictype/category-Sm-tests: New file.
48367         * modules/unictype/category-So-tests: New file.
48368         * modules/unictype/category-Z-tests: New file.
48369         * modules/unictype/category-Zl-tests: New file.
48370         * modules/unictype/category-Zp-tests: New file.
48371         * modules/unictype/category-Zs-tests: New file.
48372         * modules/unictype/category-and-not-tests: New file.
48373         * modules/unictype/category-and-tests: New file.
48374         * modules/unictype/category-byname-tests: New file.
48375         * modules/unictype/category-name-tests: New file.
48376         * modules/unictype/category-none-tests: New file.
48377         * modules/unictype/category-of-tests: New file.
48378         * modules/unictype/category-or-tests: New file.
48379         * modules/unictype/category-test-withtable-tests: New file.
48380         * modules/unictype/combining-class-tests: New file.
48381         * modules/unictype/ctype-alnum-tests: New file.
48382         * modules/unictype/ctype-alpha-tests: New file.
48383         * modules/unictype/ctype-blank-tests: New file.
48384         * modules/unictype/ctype-cntrl-tests: New file.
48385         * modules/unictype/ctype-digit-tests: New file.
48386         * modules/unictype/ctype-graph-tests: New file.
48387         * modules/unictype/ctype-lower-tests: New file.
48388         * modules/unictype/ctype-print-tests: New file.
48389         * modules/unictype/ctype-punct-tests: New file.
48390         * modules/unictype/ctype-space-tests: New file.
48391         * modules/unictype/ctype-upper-tests: New file.
48392         * modules/unictype/ctype-xdigit-tests: New file.
48393         * modules/unictype/decimal-digit-tests: New file.
48394         * modules/unictype/digit-tests: New file.
48395         * modules/unictype/mirror-tests: New file.
48396         * modules/unictype/numeric-tests: New file.
48397         * modules/unictype/property-alphabetic-tests: New file.
48398         * modules/unictype/property-ascii-hex-digit-tests: New file.
48399         * modules/unictype/property-bidi-arabic-digit-tests: New file.
48400         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
48401         * modules/unictype/property-bidi-block-separator-tests: New file.
48402         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
48403         * modules/unictype/property-bidi-common-separator-tests: New file.
48404         * modules/unictype/property-bidi-control-tests: New file.
48405         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
48406         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
48407         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
48408         * modules/unictype/property-bidi-european-digit-tests: New file.
48409         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
48410         * modules/unictype/property-bidi-left-to-right-tests: New file.
48411         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
48412         * modules/unictype/property-bidi-other-neutral-tests: New file.
48413         * modules/unictype/property-bidi-pdf-tests: New file.
48414         * modules/unictype/property-bidi-segment-separator-tests: New file.
48415         * modules/unictype/property-bidi-whitespace-tests: New file.
48416         * modules/unictype/property-byname-tests: New file.
48417         * modules/unictype/property-combining-tests: New file.
48418         * modules/unictype/property-composite-tests: New file.
48419         * modules/unictype/property-currency-symbol-tests: New file.
48420         * modules/unictype/property-dash-tests: New file.
48421         * modules/unictype/property-decimal-digit-tests: New file.
48422         * modules/unictype/property-default-ignorable-code-point-tests: New file.
48423         * modules/unictype/property-deprecated-tests: New file.
48424         * modules/unictype/property-diacritic-tests: New file.
48425         * modules/unictype/property-extender-tests: New file.
48426         * modules/unictype/property-format-control-tests: New file.
48427         * modules/unictype/property-grapheme-base-tests: New file.
48428         * modules/unictype/property-grapheme-extend-tests: New file.
48429         * modules/unictype/property-grapheme-link-tests: New file.
48430         * modules/unictype/property-hex-digit-tests: New file.
48431         * modules/unictype/property-hyphen-tests: New file.
48432         * modules/unictype/property-id-continue-tests: New file.
48433         * modules/unictype/property-id-start-tests: New file.
48434         * modules/unictype/property-ideographic-tests: New file.
48435         * modules/unictype/property-ids-binary-operator-tests: New file.
48436         * modules/unictype/property-ids-trinary-operator-tests: New file.
48437         * modules/unictype/property-ignorable-control-tests: New file.
48438         * modules/unictype/property-iso-control-tests: New file.
48439         * modules/unictype/property-join-control-tests: New file.
48440         * modules/unictype/property-left-of-pair-tests: New file.
48441         * modules/unictype/property-line-separator-tests: New file.
48442         * modules/unictype/property-logical-order-exception-tests: New file.
48443         * modules/unictype/property-lowercase-tests: New file.
48444         * modules/unictype/property-math-tests: New file.
48445         * modules/unictype/property-non-break-tests: New file.
48446         * modules/unictype/property-not-a-character-tests: New file.
48447         * modules/unictype/property-numeric-tests: New file.
48448         * modules/unictype/property-other-alphabetic-tests: New file.
48449         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
48450         * modules/unictype/property-other-grapheme-extend-tests: New file.
48451         * modules/unictype/property-other-id-continue-tests: New file.
48452         * modules/unictype/property-other-id-start-tests: New file.
48453         * modules/unictype/property-other-lowercase-tests: New file.
48454         * modules/unictype/property-other-math-tests: New file.
48455         * modules/unictype/property-other-uppercase-tests: New file.
48456         * modules/unictype/property-paired-punctuation-tests: New file.
48457         * modules/unictype/property-paragraph-separator-tests: New file.
48458         * modules/unictype/property-pattern-syntax-tests: New file.
48459         * modules/unictype/property-pattern-white-space-tests: New file.
48460         * modules/unictype/property-private-use-tests: New file.
48461         * modules/unictype/property-punctuation-tests: New file.
48462         * modules/unictype/property-quotation-mark-tests: New file.
48463         * modules/unictype/property-radical-tests: New file.
48464         * modules/unictype/property-sentence-terminal-tests: New file.
48465         * modules/unictype/property-soft-dotted-tests: New file.
48466         * modules/unictype/property-space-tests: New file.
48467         * modules/unictype/property-terminal-punctuation-tests: New file.
48468         * modules/unictype/property-test-tests: New file.
48469         * modules/unictype/property-titlecase-tests: New file.
48470         * modules/unictype/property-unassigned-code-value-tests: New file.
48471         * modules/unictype/property-unified-ideograph-tests: New file.
48472         * modules/unictype/property-uppercase-tests: New file.
48473         * modules/unictype/property-variation-selector-tests: New file.
48474         * modules/unictype/property-white-space-tests: New file.
48475         * modules/unictype/property-xid-continue-tests: New file.
48476         * modules/unictype/property-xid-start-tests: New file.
48477         * modules/unictype/property-zero-width-tests: New file.
48478         * modules/unictype/scripts-tests: New file.
48479         * modules/unictype/syntax-c-ident-tests: New file.
48480         * modules/unictype/syntax-c-whitespace-tests: New file.
48481         * modules/unictype/syntax-java-ident-tests: New file.
48482         * modules/unictype/syntax-java-whitespace-tests: New file.
48483         * tests/unictype/test-bidi_byname.c: New file.
48484         * tests/unictype/test-bidi_name.c: New file.
48485         * tests/unictype/test-bidi_of.c: New file.
48486         * tests/unictype/test-bidi_test.c: New file.
48487         * tests/unictype/test-block_list.c: New file.
48488         * tests/unictype/test-block_of.c: New file.
48489         * tests/unictype/test-block_test.c: New file.
48490         * tests/unictype/test-categ_and.c: New file.
48491         * tests/unictype/test-categ_and_not.c: New file.
48492         * tests/unictype/test-categ_byname.c: New file.
48493         * tests/unictype/test-categ_name.c: New file.
48494         * tests/unictype/test-categ_none.c: New file.
48495         * tests/unictype/test-categ_of.c: New file.
48496         * tests/unictype/test-categ_or.c: New file.
48497         * tests/unictype/test-categ_test_withtable.c: New file.
48498         * tests/unictype/test-combining.c: New file.
48499         * tests/unictype/test-decdigit.c: New file.
48500         * tests/unictype/test-digit.c: New file.
48501         * tests/unictype/test-mirror.c: New file.
48502         * tests/unictype/test-numeric.c: New file.
48503         * tests/unictype/test-pr_byname.c: New file.
48504         * tests/unictype/test-pr_test.c: New file.
48505         * tests/unictype/test-predicate-part1.h: New file.
48506         * tests/unictype/test-predicate-part2.h: New file.
48507         * tests/unictype/test-scripts.c: New file.
48508         * tests/unictype/test-sy_c_ident.c: New file.
48509         * tests/unictype/test-sy_java_ident.c: New file.
48510
48511         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
48512         for Unicode 5.0.0.
48513         * tests/unictype/test-categ_Cc.c: Likewise.
48514         * tests/unictype/test-categ_Cf.c: Likewise.
48515         * tests/unictype/test-categ_Cn.c: Likewise.
48516         * tests/unictype/test-categ_Co.c: Likewise.
48517         * tests/unictype/test-categ_Cs.c: Likewise.
48518         * tests/unictype/test-categ_L.c: Likewise.
48519         * tests/unictype/test-categ_Ll.c: Likewise.
48520         * tests/unictype/test-categ_Lm.c: Likewise.
48521         * tests/unictype/test-categ_Lo.c: Likewise.
48522         * tests/unictype/test-categ_Lt.c: Likewise.
48523         * tests/unictype/test-categ_Lu.c: Likewise.
48524         * tests/unictype/test-categ_M.c: Likewise.
48525         * tests/unictype/test-categ_Mc.c: Likewise.
48526         * tests/unictype/test-categ_Me.c: Likewise.
48527         * tests/unictype/test-categ_Mn.c: Likewise.
48528         * tests/unictype/test-categ_N.c: Likewise.
48529         * tests/unictype/test-categ_Nd.c: Likewise.
48530         * tests/unictype/test-categ_Nl.c: Likewise.
48531         * tests/unictype/test-categ_No.c: Likewise.
48532         * tests/unictype/test-categ_P.c: Likewise.
48533         * tests/unictype/test-categ_Pc.c: Likewise.
48534         * tests/unictype/test-categ_Pd.c: Likewise.
48535         * tests/unictype/test-categ_Pe.c: Likewise.
48536         * tests/unictype/test-categ_Pf.c: Likewise.
48537         * tests/unictype/test-categ_Pi.c: Likewise.
48538         * tests/unictype/test-categ_Po.c: Likewise.
48539         * tests/unictype/test-categ_Ps.c: Likewise.
48540         * tests/unictype/test-categ_S.c: Likewise.
48541         * tests/unictype/test-categ_Sc.c: Likewise.
48542         * tests/unictype/test-categ_Sk.c: Likewise.
48543         * tests/unictype/test-categ_Sm.c: Likewise.
48544         * tests/unictype/test-categ_So.c: Likewise.
48545         * tests/unictype/test-categ_Z.c: Likewise.
48546         * tests/unictype/test-categ_Zl.c: Likewise.
48547         * tests/unictype/test-categ_Zp.c: Likewise.
48548         * tests/unictype/test-categ_Zs.c: Likewise.
48549         * tests/unictype/test-ctype_alnum.c: Likewise.
48550         * tests/unictype/test-ctype_alpha.c: Likewise.
48551         * tests/unictype/test-ctype_blank.c: Likewise.
48552         * tests/unictype/test-ctype_cntrl.c: Likewise.
48553         * tests/unictype/test-ctype_digit.c: Likewise.
48554         * tests/unictype/test-ctype_graph.c: Likewise.
48555         * tests/unictype/test-ctype_lower.c: Likewise.
48556         * tests/unictype/test-ctype_print.c: Likewise.
48557         * tests/unictype/test-ctype_punct.c: Likewise.
48558         * tests/unictype/test-ctype_space.c: Likewise.
48559         * tests/unictype/test-ctype_upper.c: Likewise.
48560         * tests/unictype/test-ctype_xdigit.c: Likewise.
48561         * tests/unictype/test-decdigit.h: Likewise.
48562         * tests/unictype/test-digit.h: Likewise.
48563         * tests/unictype/test-numeric.h: Likewise.
48564         * tests/unictype/test-pr_alphabetic.c: Likewise.
48565         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
48566         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
48567         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
48568         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
48569         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
48570         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
48571         * tests/unictype/test-pr_bidi_control.c: Likewise.
48572         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
48573         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
48574         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
48575         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
48576         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
48577         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
48578         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
48579         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
48580         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
48581         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
48582         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
48583         * tests/unictype/test-pr_combining.c: Likewise.
48584         * tests/unictype/test-pr_composite.c: Likewise.
48585         * tests/unictype/test-pr_currency_symbol.c: Likewise.
48586         * tests/unictype/test-pr_dash.c: Likewise.
48587         * tests/unictype/test-pr_decimal_digit.c: Likewise.
48588         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
48589         * tests/unictype/test-pr_deprecated.c: Likewise.
48590         * tests/unictype/test-pr_diacritic.c: Likewise.
48591         * tests/unictype/test-pr_extender.c: Likewise.
48592         * tests/unictype/test-pr_format_control.c: Likewise.
48593         * tests/unictype/test-pr_grapheme_base.c: Likewise.
48594         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
48595         * tests/unictype/test-pr_grapheme_link.c: Likewise.
48596         * tests/unictype/test-pr_hex_digit.c: Likewise.
48597         * tests/unictype/test-pr_hyphen.c: Likewise.
48598         * tests/unictype/test-pr_id_continue.c: Likewise.
48599         * tests/unictype/test-pr_id_start.c: Likewise.
48600         * tests/unictype/test-pr_ideographic.c: Likewise.
48601         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
48602         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
48603         * tests/unictype/test-pr_ignorable_control.c: Likewise.
48604         * tests/unictype/test-pr_iso_control.c: Likewise.
48605         * tests/unictype/test-pr_join_control.c: Likewise.
48606         * tests/unictype/test-pr_left_of_pair.c: Likewise.
48607         * tests/unictype/test-pr_line_separator.c: Likewise.
48608         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
48609         * tests/unictype/test-pr_lowercase.c: Likewise.
48610         * tests/unictype/test-pr_math.c: Likewise.
48611         * tests/unictype/test-pr_non_break.c: Likewise.
48612         * tests/unictype/test-pr_not_a_character.c: Likewise.
48613         * tests/unictype/test-pr_numeric.c: Likewise.
48614         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
48615         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
48616         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
48617         * tests/unictype/test-pr_other_id_continue.c: Likewise.
48618         * tests/unictype/test-pr_other_id_start.c: Likewise.
48619         * tests/unictype/test-pr_other_lowercase.c: Likewise.
48620         * tests/unictype/test-pr_other_math.c: Likewise.
48621         * tests/unictype/test-pr_other_uppercase.c: Likewise.
48622         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
48623         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
48624         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
48625         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
48626         * tests/unictype/test-pr_private_use.c: Likewise.
48627         * tests/unictype/test-pr_punctuation.c: Likewise.
48628         * tests/unictype/test-pr_quotation_mark.c: Likewise.
48629         * tests/unictype/test-pr_radical.c: Likewise.
48630         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
48631         * tests/unictype/test-pr_soft_dotted.c: Likewise.
48632         * tests/unictype/test-pr_space.c: Likewise.
48633         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
48634         * tests/unictype/test-pr_titlecase.c: Likewise.
48635         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
48636         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
48637         * tests/unictype/test-pr_uppercase.c: Likewise.
48638         * tests/unictype/test-pr_variation_selector.c: Likewise.
48639         * tests/unictype/test-pr_white_space.c: Likewise.
48640         * tests/unictype/test-pr_xid_continue.c: Likewise.
48641         * tests/unictype/test-pr_xid_start.c: Likewise.
48642         * tests/unictype/test-pr_zero_width.c: Likewise.
48643         * tests/unictype/test-sy_c_whitespace.c: Likewise.
48644         * tests/unictype/test-sy_java_whitespace.c: Likewise.
48645
48646 2007-11-12  Bruno Haible  <bruno@clisp.org>
48647
48648         Unicode character classification functions.
48649         * lib/unictype.h: New file.
48650         * modules/unictype/base: New file.
48651         * modules/unictype/category-L: New file.
48652         * modules/unictype/category-Lu: New file.
48653         * modules/unictype/category-Ll: New file.
48654         * modules/unictype/category-Lt: New file.
48655         * modules/unictype/category-Lm: New file.
48656         * modules/unictype/category-Lo: New file.
48657         * modules/unictype/category-M: New file.
48658         * modules/unictype/category-Mn: New file.
48659         * modules/unictype/category-Mc: New file.
48660         * modules/unictype/category-Me: New file.
48661         * modules/unictype/category-N: New file.
48662         * modules/unictype/category-Nd: New file.
48663         * modules/unictype/category-Nl: New file.
48664         * modules/unictype/category-No: New file.
48665         * modules/unictype/category-P: New file.
48666         * modules/unictype/category-Pc: New file.
48667         * modules/unictype/category-Pd: New file.
48668         * modules/unictype/category-Ps: New file.
48669         * modules/unictype/category-Pe: New file.
48670         * modules/unictype/category-Pi: New file.
48671         * modules/unictype/category-Pf: New file.
48672         * modules/unictype/category-Po: New file.
48673         * modules/unictype/category-S: New file.
48674         * modules/unictype/category-Sm: New file.
48675         * modules/unictype/category-Sc: New file.
48676         * modules/unictype/category-Sk: New file.
48677         * modules/unictype/category-So: New file.
48678         * modules/unictype/category-Z: New file.
48679         * modules/unictype/category-Zs: New file.
48680         * modules/unictype/category-Zl: New file.
48681         * modules/unictype/category-Zp: New file.
48682         * modules/unictype/category-C: New file.
48683         * modules/unictype/category-Cc: New file.
48684         * modules/unictype/category-Cf: New file.
48685         * modules/unictype/category-Cs: New file.
48686         * modules/unictype/category-Co: New file.
48687         * modules/unictype/category-Cn: New file.
48688         * modules/unictype/category-or: New file.
48689         * modules/unictype/category-of: New file.
48690         * modules/unictype/category-test: New file.
48691         * modules/unictype/category-test-withtable: New file.
48692         * modules/unictype/category-byname: New file.
48693         * modules/unictype/category-none: New file.
48694         * modules/unictype/category-and: New file.
48695         * modules/unictype/category-and-not: New file.
48696         * modules/unictype/category-name: New file.
48697         * modules/unictype/combining-class: New file.
48698         * modules/unictype/category-all: New file.
48699         * modules/unictype/bidicategory-all: New file.
48700         * modules/unictype/bidicategory-byname: New file.
48701         * modules/unictype/bidicategory-name: New file.
48702         * modules/unictype/bidicategory-of: New file.
48703         * modules/unictype/bidicategory-test: New file.
48704         * modules/unictype/decimal-digit: New file.
48705         * modules/unictype/digit: New file.
48706         * modules/unictype/numeric: New file.
48707         * modules/unictype/mirror: New file.
48708         * modules/unictype/property-white-space: New file.
48709         * modules/unictype/property-alphabetic: New file.
48710         * modules/unictype/property-other-alphabetic: New file.
48711         * modules/unictype/property-not-a-character: New file.
48712         * modules/unictype/property-default-ignorable-code-point: New file.
48713         * modules/unictype/property-other-default-ignorable-code-point: New
48714         file.
48715         * modules/unictype/property-deprecated: New file.
48716         * modules/unictype/property-logical-order-exception: New file.
48717         * modules/unictype/property-variation-selector: New file.
48718         * modules/unictype/property-private-use: New file.
48719         * modules/unictype/property-unassigned-code-value: New file.
48720         * modules/unictype/property-uppercase: New file.
48721         * modules/unictype/property-other-uppercase: New file.
48722         * modules/unictype/property-lowercase: New file.
48723         * modules/unictype/property-other-lowercase: New file.
48724         * modules/unictype/property-titlecase: New file.
48725         * modules/unictype/property-soft-dotted: New file.
48726         * modules/unictype/property-id-start: New file.
48727         * modules/unictype/property-other-id-start: New file.
48728         * modules/unictype/property-id-continue: New file.
48729         * modules/unictype/property-other-id-continue: New file.
48730         * modules/unictype/property-xid-start: New file.
48731         * modules/unictype/property-xid-continue: New file.
48732         * modules/unictype/property-pattern-white-space: New file.
48733         * modules/unictype/property-pattern-syntax: New file.
48734         * modules/unictype/property-join-control: New file.
48735         * modules/unictype/property-grapheme-base: New file.
48736         * modules/unictype/property-grapheme-extend: New file.
48737         * modules/unictype/property-other-grapheme-extend: New file.
48738         * modules/unictype/property-grapheme-link: New file.
48739         * modules/unictype/property-bidi-control: New file.
48740         * modules/unictype/property-bidi-left-to-right: New file.
48741         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
48742         * modules/unictype/property-bidi-arabic-right-to-left: New file.
48743         * modules/unictype/property-bidi-european-digit: New file.
48744         * modules/unictype/property-bidi-eur-num-separator: New file.
48745         * modules/unictype/property-bidi-eur-num-terminator: New file.
48746         * modules/unictype/property-bidi-arabic-digit: New file.
48747         * modules/unictype/property-bidi-common-separator: New file.
48748         * modules/unictype/property-bidi-block-separator: New file.
48749         * modules/unictype/property-bidi-segment-separator: New file.
48750         * modules/unictype/property-bidi-whitespace: New file.
48751         * modules/unictype/property-bidi-non-spacing-mark: New file.
48752         * modules/unictype/property-bidi-boundary-neutral: New file.
48753         * modules/unictype/property-bidi-pdf: New file.
48754         * modules/unictype/property-bidi-embedding-or-override: New file.
48755         * modules/unictype/property-bidi-other-neutral: New file.
48756         * modules/unictype/property-hex-digit: New file.
48757         * modules/unictype/property-ascii-hex-digit: New file.
48758         * modules/unictype/property-ideographic: New file.
48759         * modules/unictype/property-unified-ideograph: New file.
48760         * modules/unictype/property-radical: New file.
48761         * modules/unictype/property-ids-binary-operator: New file.
48762         * modules/unictype/property-ids-trinary-operator: New file.
48763         * modules/unictype/property-zero-width: New file.
48764         * modules/unictype/property-space: New file.
48765         * modules/unictype/property-non-break: New file.
48766         * modules/unictype/property-iso-control: New file.
48767         * modules/unictype/property-format-control: New file.
48768         * modules/unictype/property-dash: New file.
48769         * modules/unictype/property-hyphen: New file.
48770         * modules/unictype/property-punctuation: New file.
48771         * modules/unictype/property-line-separator: New file.
48772         * modules/unictype/property-paragraph-separator: New file.
48773         * modules/unictype/property-quotation-mark: New file.
48774         * modules/unictype/property-sentence-terminal: New file.
48775         * modules/unictype/property-terminal-punctuation: New file.
48776         * modules/unictype/property-currency-symbol: New file.
48777         * modules/unictype/property-math: New file.
48778         * modules/unictype/property-other-math: New file.
48779         * modules/unictype/property-paired-punctuation: New file.
48780         * modules/unictype/property-left-of-pair: New file.
48781         * modules/unictype/property-combining: New file.
48782         * modules/unictype/property-composite: New file.
48783         * modules/unictype/property-decimal-digit: New file.
48784         * modules/unictype/property-numeric: New file.
48785         * modules/unictype/property-diacritic: New file.
48786         * modules/unictype/property-extender: New file.
48787         * modules/unictype/property-ignorable-control: New file.
48788         * modules/unictype/property-test: New file.
48789         * modules/unictype/property-byname: New file.
48790         * modules/unictype/property-all: New file.
48791         * modules/unictype/scripts: New file.
48792         * modules/unictype/scripts-all: New file.
48793         * modules/unictype/block-of: New file.
48794         * modules/unictype/block-test: New file.
48795         * modules/unictype/block-list: New file.
48796         * modules/unictype/block-all: New file.
48797         * modules/unictype/syntax-c-whitespace: New file.
48798         * modules/unictype/syntax-java-whitespace: New file.
48799         * modules/unictype/syntax-c-ident: New file.
48800         * modules/unictype/syntax-java-ident: New file.
48801         * modules/unictype/ctype-alnum: New file.
48802         * modules/unictype/ctype-alpha: New file.
48803         * modules/unictype/ctype-cntrl: New file.
48804         * modules/unictype/ctype-digit: New file.
48805         * modules/unictype/ctype-graph: New file.
48806         * modules/unictype/ctype-lower: New file.
48807         * modules/unictype/ctype-print: New file.
48808         * modules/unictype/ctype-punct: New file.
48809         * modules/unictype/ctype-space: New file.
48810         * modules/unictype/ctype-upper: New file.
48811         * modules/unictype/ctype-xdigit: New file.
48812         * modules/unictype/ctype-blank: New file.
48813         * lib/unictype/bidi_byname.c: New file.
48814         * lib/unictype/bidi_name.c: New file.
48815         * lib/unictype/bidi_of.c: New file.
48816         * lib/unictype/bidi_test.c: New file.
48817         * lib/unictype/bitmap.h: New file.
48818         * lib/unictype/block_test.c: New file.
48819         * lib/unictype/blocks.c: New file.
48820         * lib/unictype/categ_C.c: New file.
48821         * lib/unictype/categ_Cc.c: New file.
48822         * lib/unictype/categ_Cf.c: New file.
48823         * lib/unictype/categ_Cn.c: New file.
48824         * lib/unictype/categ_Co.c: New file.
48825         * lib/unictype/categ_Cs.c: New file.
48826         * lib/unictype/categ_L.c: New file.
48827         * lib/unictype/categ_Ll.c: New file.
48828         * lib/unictype/categ_Lm.c: New file.
48829         * lib/unictype/categ_Lo.c: New file.
48830         * lib/unictype/categ_Lt.c: New file.
48831         * lib/unictype/categ_Lu.c: New file.
48832         * lib/unictype/categ_M.c: New file.
48833         * lib/unictype/categ_Mc.c: New file.
48834         * lib/unictype/categ_Me.c: New file.
48835         * lib/unictype/categ_Mn.c: New file.
48836         * lib/unictype/categ_N.c: New file.
48837         * lib/unictype/categ_Nd.c: New file.
48838         * lib/unictype/categ_Nl.c: New file.
48839         * lib/unictype/categ_No.c: New file.
48840         * lib/unictype/categ_P.c: New file.
48841         * lib/unictype/categ_Pc.c: New file.
48842         * lib/unictype/categ_Pd.c: New file.
48843         * lib/unictype/categ_Pe.c: New file.
48844         * lib/unictype/categ_Pf.c: New file.
48845         * lib/unictype/categ_Pi.c: New file.
48846         * lib/unictype/categ_Po.c: New file.
48847         * lib/unictype/categ_Ps.c: New file.
48848         * lib/unictype/categ_S.c: New file.
48849         * lib/unictype/categ_Sc.c: New file.
48850         * lib/unictype/categ_Sk.c: New file.
48851         * lib/unictype/categ_Sm.c: New file.
48852         * lib/unictype/categ_So.c: New file.
48853         * lib/unictype/categ_Z.c: New file.
48854         * lib/unictype/categ_Zl.c: New file.
48855         * lib/unictype/categ_Zp.c: New file.
48856         * lib/unictype/categ_Zs.c: New file.
48857         * lib/unictype/categ_and.c: New file.
48858         * lib/unictype/categ_and_not.c: New file.
48859         * lib/unictype/categ_byname.c: New file.
48860         * lib/unictype/categ_name.c: New file.
48861         * lib/unictype/categ_none.c: New file.
48862         * lib/unictype/categ_of.c: New file.
48863         * lib/unictype/categ_or.c: New file.
48864         * lib/unictype/categ_test.c: New file.
48865         * lib/unictype/combining.c: New file.
48866         * lib/unictype/ctype_alnum.c: New file.
48867         * lib/unictype/ctype_alpha.c: New file.
48868         * lib/unictype/ctype_blank.c: New file.
48869         * lib/unictype/ctype_cntrl.c: New file.
48870         * lib/unictype/ctype_digit.c: New file.
48871         * lib/unictype/ctype_graph.c: New file.
48872         * lib/unictype/ctype_lower.c: New file.
48873         * lib/unictype/ctype_print.c: New file.
48874         * lib/unictype/ctype_punct.c: New file.
48875         * lib/unictype/ctype_space.c: New file.
48876         * lib/unictype/ctype_upper.c: New file.
48877         * lib/unictype/ctype_xdigit.c: New file.
48878         * lib/unictype/decdigit.c: New file.
48879         * lib/unictype/digit.c: New file.
48880         * lib/unictype/identsyntaxmap.h: New file.
48881         * lib/unictype/mirror.c: New file.
48882         * lib/unictype/numeric.c: New file.
48883         * lib/unictype/pr_alphabetic.c: New file.
48884         * lib/unictype/pr_ascii_hex_digit.c: New file.
48885         * lib/unictype/pr_bidi_arabic_digit.c: New file.
48886         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
48887         * lib/unictype/pr_bidi_block_separator.c: New file.
48888         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
48889         * lib/unictype/pr_bidi_common_separator.c: New file.
48890         * lib/unictype/pr_bidi_control.c: New file.
48891         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
48892         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
48893         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
48894         * lib/unictype/pr_bidi_european_digit.c: New file.
48895         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
48896         * lib/unictype/pr_bidi_left_to_right.c: New file.
48897         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
48898         * lib/unictype/pr_bidi_other_neutral.c: New file.
48899         * lib/unictype/pr_bidi_pdf.c: New file.
48900         * lib/unictype/pr_bidi_segment_separator.c: New file.
48901         * lib/unictype/pr_bidi_whitespace.c: New file.
48902         * lib/unictype/pr_byname.c: New file.
48903         * lib/unictype/pr_byname.gperf: New file.
48904         * lib/unictype/pr_combining.c: New file.
48905         * lib/unictype/pr_composite.c: New file.
48906         * lib/unictype/pr_currency_symbol.c: New file.
48907         * lib/unictype/pr_dash.c: New file.
48908         * lib/unictype/pr_decimal_digit.c: New file.
48909         * lib/unictype/pr_default_ignorable_code_point.c: New file.
48910         * lib/unictype/pr_deprecated.c: New file.
48911         * lib/unictype/pr_diacritic.c: New file.
48912         * lib/unictype/pr_extender.c: New file.
48913         * lib/unictype/pr_format_control.c: New file.
48914         * lib/unictype/pr_grapheme_base.c: New file.
48915         * lib/unictype/pr_grapheme_extend.c: New file.
48916         * lib/unictype/pr_grapheme_link.c: New file.
48917         * lib/unictype/pr_hex_digit.c: New file.
48918         * lib/unictype/pr_hyphen.c: New file.
48919         * lib/unictype/pr_id_continue.c: New file.
48920         * lib/unictype/pr_id_start.c: New file.
48921         * lib/unictype/pr_ideographic.c: New file.
48922         * lib/unictype/pr_ids_binary_operator.c: New file.
48923         * lib/unictype/pr_ids_trinary_operator.c: New file.
48924         * lib/unictype/pr_ignorable_control.c: New file.
48925         * lib/unictype/pr_iso_control.c: New file.
48926         * lib/unictype/pr_join_control.c: New file.
48927         * lib/unictype/pr_left_of_pair.c: New file.
48928         * lib/unictype/pr_line_separator.c: New file.
48929         * lib/unictype/pr_logical_order_exception.c: New file.
48930         * lib/unictype/pr_lowercase.c: New file.
48931         * lib/unictype/pr_math.c: New file.
48932         * lib/unictype/pr_non_break.c: New file.
48933         * lib/unictype/pr_not_a_character.c: New file.
48934         * lib/unictype/pr_numeric.c: New file.
48935         * lib/unictype/pr_other_alphabetic.c: New file.
48936         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
48937         * lib/unictype/pr_other_grapheme_extend.c: New file.
48938         * lib/unictype/pr_other_id_continue.c: New file.
48939         * lib/unictype/pr_other_id_start.c: New file.
48940         * lib/unictype/pr_other_lowercase.c: New file.
48941         * lib/unictype/pr_other_math.c: New file.
48942         * lib/unictype/pr_other_uppercase.c: New file.
48943         * lib/unictype/pr_paired_punctuation.c: New file.
48944         * lib/unictype/pr_paragraph_separator.c: New file.
48945         * lib/unictype/pr_pattern_syntax.c: New file.
48946         * lib/unictype/pr_pattern_white_space.c: New file.
48947         * lib/unictype/pr_private_use.c: New file.
48948         * lib/unictype/pr_punctuation.c: New file.
48949         * lib/unictype/pr_quotation_mark.c: New file.
48950         * lib/unictype/pr_radical.c: New file.
48951         * lib/unictype/pr_sentence_terminal.c: New file.
48952         * lib/unictype/pr_soft_dotted.c: New file.
48953         * lib/unictype/pr_space.c: New file.
48954         * lib/unictype/pr_terminal_punctuation.c: New file.
48955         * lib/unictype/pr_test.c: New file.
48956         * lib/unictype/pr_titlecase.c: New file.
48957         * lib/unictype/pr_unassigned_code_value.c: New file.
48958         * lib/unictype/pr_unified_ideograph.c: New file.
48959         * lib/unictype/pr_uppercase.c: New file.
48960         * lib/unictype/pr_variation_selector.c: New file.
48961         * lib/unictype/pr_white_space.c: New file.
48962         * lib/unictype/pr_xid_continue.c: New file.
48963         * lib/unictype/pr_xid_start.c: New file.
48964         * lib/unictype/pr_zero_width.c: New file.
48965         * lib/unictype/scripts.c: New file.
48966         * lib/unictype/sy_c_ident.c: New file.
48967         * lib/unictype/sy_c_whitespace.c: New file.
48968         * lib/unictype/sy_java_ident.c: New file.
48969         * lib/unictype/sy_java_whitespace.c: New file.
48970
48971         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
48972         Unicode 5.0.0.
48973         * lib/unictype/blocks.h: Likewise.
48974         * lib/unictype/categ_C.h: Likewise.
48975         * lib/unictype/categ_Cc.h: Likewise.
48976         * lib/unictype/categ_Cf.h: Likewise.
48977         * lib/unictype/categ_Cn.h: Likewise.
48978         * lib/unictype/categ_Co.h: Likewise.
48979         * lib/unictype/categ_Cs.h: Likewise.
48980         * lib/unictype/categ_L.h: Likewise.
48981         * lib/unictype/categ_Ll.h: Likewise.
48982         * lib/unictype/categ_Lm.h: Likewise.
48983         * lib/unictype/categ_Lo.h: Likewise.
48984         * lib/unictype/categ_Lt.h: Likewise.
48985         * lib/unictype/categ_Lu.h: Likewise.
48986         * lib/unictype/categ_M.h: Likewise.
48987         * lib/unictype/categ_Mc.h: Likewise.
48988         * lib/unictype/categ_Me.h: Likewise.
48989         * lib/unictype/categ_Mn.h: Likewise.
48990         * lib/unictype/categ_N.h: Likewise.
48991         * lib/unictype/categ_Nd.h: Likewise.
48992         * lib/unictype/categ_Nl.h: Likewise.
48993         * lib/unictype/categ_No.h: Likewise.
48994         * lib/unictype/categ_P.h: Likewise.
48995         * lib/unictype/categ_Pc.h: Likewise.
48996         * lib/unictype/categ_Pd.h: Likewise.
48997         * lib/unictype/categ_Pe.h: Likewise.
48998         * lib/unictype/categ_Pf.h: Likewise.
48999         * lib/unictype/categ_Pi.h: Likewise.
49000         * lib/unictype/categ_Po.h: Likewise.
49001         * lib/unictype/categ_Ps.h: Likewise.
49002         * lib/unictype/categ_S.h: Likewise.
49003         * lib/unictype/categ_Sc.h: Likewise.
49004         * lib/unictype/categ_Sk.h: Likewise.
49005         * lib/unictype/categ_Sm.h: Likewise.
49006         * lib/unictype/categ_So.h: Likewise.
49007         * lib/unictype/categ_Z.h: Likewise.
49008         * lib/unictype/categ_Zl.h: Likewise.
49009         * lib/unictype/categ_Zp.h: Likewise.
49010         * lib/unictype/categ_Zs.h: Likewise.
49011         * lib/unictype/categ_of.h: Likewise.
49012         * lib/unictype/combining.h: Likewise.
49013         * lib/unictype/ctype_alnum.h: Likewise.
49014         * lib/unictype/ctype_alpha.h: Likewise.
49015         * lib/unictype/ctype_blank.h: Likewise.
49016         * lib/unictype/ctype_cntrl.h: Likewise.
49017         * lib/unictype/ctype_digit.h: Likewise.
49018         * lib/unictype/ctype_graph.h: Likewise.
49019         * lib/unictype/ctype_lower.h: Likewise.
49020         * lib/unictype/ctype_print.h: Likewise.
49021         * lib/unictype/ctype_punct.h: Likewise.
49022         * lib/unictype/ctype_space.h: Likewise.
49023         * lib/unictype/ctype_upper.h: Likewise.
49024         * lib/unictype/ctype_xdigit.h: Likewise.
49025         * lib/unictype/decdigit.h: Likewise.
49026         * lib/unictype/digit.h: Likewise.
49027         * lib/unictype/mirror.h: Likewise.
49028         * lib/unictype/numeric.h: Likewise.
49029         * lib/unictype/pr_alphabetic.h: Likewise.
49030         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
49031         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
49032         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
49033         * lib/unictype/pr_bidi_block_separator.h: Likewise.
49034         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
49035         * lib/unictype/pr_bidi_common_separator.h: Likewise.
49036         * lib/unictype/pr_bidi_control.h: Likewise.
49037         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
49038         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
49039         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
49040         * lib/unictype/pr_bidi_european_digit.h: Likewise.
49041         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
49042         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
49043         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
49044         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
49045         * lib/unictype/pr_bidi_pdf.h: Likewise.
49046         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
49047         * lib/unictype/pr_bidi_whitespace.h: Likewise.
49048         * lib/unictype/pr_combining.h: Likewise.
49049         * lib/unictype/pr_composite.h: Likewise.
49050         * lib/unictype/pr_currency_symbol.h: Likewise.
49051         * lib/unictype/pr_dash.h: Likewise.
49052         * lib/unictype/pr_decimal_digit.h: Likewise.
49053         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
49054         * lib/unictype/pr_deprecated.h: Likewise.
49055         * lib/unictype/pr_diacritic.h: Likewise.
49056         * lib/unictype/pr_extender.h: Likewise.
49057         * lib/unictype/pr_format_control.h: Likewise.
49058         * lib/unictype/pr_grapheme_base.h: Likewise.
49059         * lib/unictype/pr_grapheme_extend.h: Likewise.
49060         * lib/unictype/pr_grapheme_link.h: Likewise.
49061         * lib/unictype/pr_hex_digit.h: Likewise.
49062         * lib/unictype/pr_hyphen.h: Likewise.
49063         * lib/unictype/pr_id_continue.h: Likewise.
49064         * lib/unictype/pr_id_start.h: Likewise.
49065         * lib/unictype/pr_ideographic.h: Likewise.
49066         * lib/unictype/pr_ids_binary_operator.h: Likewise.
49067         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
49068         * lib/unictype/pr_ignorable_control.h: Likewise.
49069         * lib/unictype/pr_iso_control.h: Likewise.
49070         * lib/unictype/pr_join_control.h: Likewise.
49071         * lib/unictype/pr_left_of_pair.h: Likewise.
49072         * lib/unictype/pr_line_separator.h: Likewise.
49073         * lib/unictype/pr_logical_order_exception.h: Likewise.
49074         * lib/unictype/pr_lowercase.h: Likewise.
49075         * lib/unictype/pr_math.h: Likewise.
49076         * lib/unictype/pr_non_break.h: Likewise.
49077         * lib/unictype/pr_not_a_character.h: Likewise.
49078         * lib/unictype/pr_numeric.h: Likewise.
49079         * lib/unictype/pr_other_alphabetic.h: Likewise.
49080         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
49081         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
49082         * lib/unictype/pr_other_id_continue.h: Likewise.
49083         * lib/unictype/pr_other_id_start.h: Likewise.
49084         * lib/unictype/pr_other_lowercase.h: Likewise.
49085         * lib/unictype/pr_other_math.h: Likewise.
49086         * lib/unictype/pr_other_uppercase.h: Likewise.
49087         * lib/unictype/pr_paired_punctuation.h: Likewise.
49088         * lib/unictype/pr_paragraph_separator.h: Likewise.
49089         * lib/unictype/pr_pattern_syntax.h: Likewise.
49090         * lib/unictype/pr_pattern_white_space.h: Likewise.
49091         * lib/unictype/pr_private_use.h: Likewise.
49092         * lib/unictype/pr_punctuation.h: Likewise.
49093         * lib/unictype/pr_quotation_mark.h: Likewise.
49094         * lib/unictype/pr_radical.h: Likewise.
49095         * lib/unictype/pr_sentence_terminal.h: Likewise.
49096         * lib/unictype/pr_soft_dotted.h: Likewise.
49097         * lib/unictype/pr_space.h: Likewise.
49098         * lib/unictype/pr_terminal_punctuation.h: Likewise.
49099         * lib/unictype/pr_titlecase.h: Likewise.
49100         * lib/unictype/pr_unassigned_code_value.h: Likewise.
49101         * lib/unictype/pr_unified_ideograph.h: Likewise.
49102         * lib/unictype/pr_uppercase.h: Likewise.
49103         * lib/unictype/pr_variation_selector.h: Likewise.
49104         * lib/unictype/pr_white_space.h: Likewise.
49105         * lib/unictype/pr_xid_continue.h: Likewise.
49106         * lib/unictype/pr_xid_start.h: Likewise.
49107         * lib/unictype/pr_zero_width.h: Likewise.
49108         * lib/unictype/scripts.h: Likewise.
49109         * lib/unictype/scripts_byname.gperf: Likewise.
49110         * lib/unictype/sy_c_ident.h: Likewise.
49111         * lib/unictype/sy_c_whitespace.h: Likewise.
49112         * lib/unictype/sy_java_ident.h: Likewise.
49113         * lib/unictype/sy_java_whitespace.h: Likewise.
49114
49115         * lib/unictype/Makefile: New file.
49116         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
49117         glibc.
49118         * lib/unictype/3level.h: New file, copied from glibc.
49119         * lib/unictype/3levelbit.h: New file.
49120
49121 2007-11-11  Bruno Haible  <bruno@clisp.org>
49122
49123         * modules/gperf: New file.
49124         * modules/iconv_open (Depends-on): Add it.
49125         (Makefile.am): Remove the GPERF definition.
49126
49127 2007-11-11  Bruno Haible  <bruno@clisp.org>
49128
49129         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
49130         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
49131
49132 2007-11-11  Bruno Haible  <bruno@clisp.org>
49133
49134         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
49135         (usage): Remove function.
49136
49137 2007-11-11  Bruno Haible  <bruno@clisp.org>
49138
49139         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
49140         gl_FUNC_CEILF_LIBS.
49141         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
49142         gl_FUNC_CEIL_LIBS.
49143         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
49144         gl_FUNC_CEILL_LIBS.
49145         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
49146         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
49147         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
49148
49149 2007-11-11  Bruno Haible  <bruno@clisp.org>
49150
49151         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
49152         roundf were declared but do not exist on functions.
49153         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
49154         roundl were declared but do not exist on functions.
49155         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
49156         HAVE_FLOORL_AND_CEILL, respectively.
49157         Needed for Sun C on Solaris 10.
49158
49159 2007-11-11  Bruno Haible  <bruno@clisp.org>
49160
49161         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
49162         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
49163         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
49164         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
49165         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
49166         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
49167         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
49168         HAVE_DECL_ROUNDF.
49169         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
49170         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
49171         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
49172         of HAVE_DECL_ROUND*.
49173         * modules/math (Makefile.am): Update.
49174
49175 2007-11-10  Bruno Haible  <bruno@clisp.org>
49176
49177         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
49178         ptrdiff_t as m4/intl.m4.
49179
49180 2007-11-10  Jim Meyering  <meyering@redhat.com>
49181
49182         Avoid link failure for the argmatch test.
49183         * tests/test-argmatch.c (usage): Define function to avoid a link
49184         failure: argmatch_die requires a usage function.
49185
49186 2007-11-09  Bruno Haible  <bruno@clisp.org>
49187
49188         * doc/functions/snprintf.texi: Mention BeOS deficiency.
49189         * doc/functions/vsnprintf.texi: Likewise.
49190         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
49191         with a size argument < 2.
49192
49193 2007-11-09  Bruno Haible  <bruno@clisp.org>
49194
49195         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
49196         buffer. Fixes an inefficiency introduced on 2007-11-03.
49197
49198 2007-11-09  Bruno Haible  <bruno@clisp.org>
49199
49200         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
49201         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
49202
49203 2007-11-08  Jim Meyering  <meyering@redhat.com>
49204
49205         Change cache variable name prefix "jm_" to "gl_" everywhere.
49206         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
49207         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
49208         * m4/uptime.m4: s/gl_/jm_/
49209
49210 2007-11-07  Bruno Haible  <bruno@clisp.org>
49211
49212         Update to GNU gettext 0.17.
49213         * m4/intl.m4: Update to GNU gettext 0.17.
49214         * m4/po.m4: Likewise.
49215         * modules/gettext (Files): Remove m4/ulonglong.m4.
49216         (configure.ac): Require gettext infrastructure from version 0.17.
49217
49218 2007-11-06  Bruno Haible  <bruno@clisp.org>
49219
49220         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
49221         symbolic values are not defined in a public header.
49222         * lib/freadable.c (freadable) [QNX]: Likewise.
49223         * lib/freadahead.c (freadahead) [QNX]: Likewise.
49224         * lib/freading.c (freading) [QNX]: Likewise.
49225         * lib/fseterr.c (fseterr) [QNX]: Likewise.
49226         * lib/fwritable.c (fwritable) [QNX]: Likewise.
49227         * lib/fwriting.c (fwriting) [QNX]: Likewise.
49228         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
49229         Reported by Alain Magloire.
49230
49231         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
49232
49233 2007-11-05  Bruno Haible  <bruno@clisp.org>
49234
49235         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
49236         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
49237         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
49238         Reported by Eric Blake.
49239
49240 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49241             Bruno Haible  <bruno@clisp.org>
49242
49243         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
49244         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
49245         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
49246         (malloc): Undefine also before including <stdlib.h>.
49247         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
49248         Needed on OSF/1 4.0.
49249
49250 2007-11-05  Jim Meyering  <meyering@redhat.com>
49251
49252         git-version-gen: sync from coreutils.
49253         * build-aux/git-version-gen: Add comments.
49254         Change the first '-' to '.' in the snapshot version string,
49255         e.g., 6.9-377-08144 -> 6.9.377-08144
49256         Remove first parameter.
49257         Don't declare a version "-dirty" merely because a time
49258         stamp has changed.
49259
49260 2007-11-04  Bruno Haible  <bruno@clisp.org>
49261
49262         * lib/lock.h: Protect all macro definitions containing an 'if'
49263         statement through a "do { ... } while (0)".
49264         * lib/tls.h: Likewise.
49265
49266 2007-11-04  Bruno Haible  <bruno@clisp.org>
49267
49268         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
49269
49270 2007-11-04  Bruno Haible  <bruno@clisp.org>
49271
49272         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
49273         * modules/fprintf-posix (Depends-on): Add nocrash.
49274         * modules/snprintf-posix (Depends-on): Likewise.
49275         * modules/sprintf-posix (Depends-on): Likewise.
49276         * modules/vasnprintf-posix (Depends-on): Likewise.
49277         * modules/vasprintf-posix (Depends-on): Likewise.
49278         * modules/vfprintf-posix (Depends-on): Likewise.
49279         * modules/vsnprintf-posix (Depends-on): Likewise.
49280         * modules/vsprintf-posix (Depends-on): Likewise.
49281         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49282         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49283         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49284         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49285         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49286         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49287         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49288
49289 2007-11-04  Bruno Haible  <bruno@clisp.org>
49290
49291         * modules/nocrash: New file.
49292         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
49293         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
49294
49295 2007-11-04  Bruno Haible  <bruno@clisp.org>
49296
49297         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
49298         precision handling.
49299         * tests/test-vasprintf-posix.c (test_function): Likewise.
49300         * tests/test-snprintf-posix.h (test_function): Likewise.
49301         * tests/test-sprintf-posix.h (test_function): Likewise.
49302
49303         Fix *printf behaviour for large precisions on mingw and BeOS.
49304         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
49305         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
49306         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
49307         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
49308         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49309         gl_PRINTF_PRECISION and test its result. Invoke
49310         gl_PREREQ_VASNPRINTF_PRECISION.
49311         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49312         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49313         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49314         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49315         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49316         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49317         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49318         * doc/functions/fprintf.texi: Update.
49319         * doc/functions/printf.texi: Update.
49320         * doc/functions/snprintf.texi: Update.
49321         * doc/functions/sprintf.texi: Update.
49322         * doc/functions/vfprintf.texi: Update.
49323         * doc/functions/vprintf.texi: Update.
49324         * doc/functions/vsnprintf.texi: Update.
49325         * doc/functions/vsprintf.texi: Update.
49326
49327 2007-11-04  Bruno Haible  <bruno@clisp.org>
49328
49329         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
49330
49331 2007-11-04  Bruno Haible  <bruno@clisp.org>
49332
49333         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
49334         Reported by Sylvain Beucler <beuc@gnu.org>.
49335
49336 2007-11-03  Bruno Haible  <bruno@clisp.org>
49337
49338         * tests/test-fprintf-posix2.sh: New file.
49339         * tests/test-fprintf-posix2.c: New file.
49340         * modules/fprintf-posix-tests (Files): Add them.
49341         (TESTS): Add test-fprintf-posix2.sh.
49342         (configure.ac): Check for getrlimit and setrlimit.
49343         (check_PROGRAMS): Add test-fprintf-posix2.
49344
49345         * tests/test-printf-posix2.sh: New file.
49346         * tests/test-printf-posix2.c: New file.
49347         * modules/printf-posix-tests (Files): Add them.
49348         (TESTS): Add test-printf-posix2.sh.
49349         (configure.ac): Check for getrlimit and setrlimit.
49350         (check_PROGRAMS): Add test-printf-posix2.
49351
49352         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
49353         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
49354         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
49355         (decode_double): New function, copied from decode_long_double.
49356         (scale10_round_decimal_decoded): New function, extracted from
49357         scale10_round_decimal_long_double.
49358         (scale10_round_decimal_long_double): Use it.
49359         (scale10_round_decimal_double): New function.
49360         (floorlog10): New function.
49361         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
49362         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
49363         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
49364         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49365         gl_PRINTF_ENOMEM and test its result. Invoke
49366         gl_PREREQ_VASNPRINTF_ENOMEM.
49367         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49368         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49369         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49370         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49371         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49372         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49373         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49374         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
49375         * modules/snprintf-posix (Depends-on): Likewise.
49376         * modules/sprintf-posix (Depends-on): Likewise.
49377         * modules/vasnprintf-posix (Depends-on): Likewise.
49378         * modules/vasprintf-posix (Depends-on): Likewise.
49379         * modules/vfprintf-posix (Depends-on): Likewise.
49380         * modules/vsnprintf-posix (Depends-on): Likewise.
49381         * modules/vsprintf-posix (Depends-on): Likewise.
49382         * doc/functions/fprintf.texi: Update.
49383         * doc/functions/printf.texi: Update.
49384         * doc/functions/snprintf.texi: Update.
49385         * doc/functions/sprintf.texi: Update.
49386         * doc/functions/vfprintf.texi: Update.
49387         * doc/functions/vprintf.texi: Update.
49388         * doc/functions/vsnprintf.texi: Update.
49389         * doc/functions/vsprintf.texi: Update.
49390
49391 2007-11-03  Bruno Haible  <bruno@clisp.org>
49392
49393         * modules/frexp-nolibm-tests: New file.
49394
49395         * modules/frexp-nolibm: New file.
49396         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
49397
49398 2007-11-03  Bruno Haible  <bruno@clisp.org>
49399
49400         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
49401         value is C99 compliant.
49402         Needed for OSF/1 5.1.
49403
49404 2007-11-03  Bruno Haible  <bruno@clisp.org>
49405
49406         Fix out-of-memory handling of vasnprintf.
49407         * lib/printf-parse.c: Include <errno.h>.
49408         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
49409         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
49410         is already set.
49411
49412 2007-11-02  Eric Blake  <ebb9@byu.net>
49413
49414         Fix tests on cygwin.
49415         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
49416
49417 2007-11-01  Bruno Haible  <bruno@clisp.org>
49418
49419         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
49420         warning.
49421         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
49422         needed for POSIX compatibility.
49423
49424 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
49425
49426         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
49427         for compatibility with GNU.
49428
49429 2007-11-01  Bruno Haible  <bruno@clisp.org>
49430
49431         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
49432         (putenv): Renamed from rpl_putenv. Change argument type from
49433         'const char *' to 'char *'.
49434         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
49435         of defining putenv in config.h, just set REPLACE_PUTENV.
49436         * modules/putenv (Depends-on): Add stdlib.
49437         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49438         (Include): Use <stdlib.h>.
49439         * lib/stdlib.in.h (putenv): New declaration.
49440         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
49441         REPLACE_PUTENV.
49442         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
49443         REPLACE_PUTENV.
49444         Needed for MacOS X 10.5.0.
49445         Reported by Peter O'Gorman <peter@pogma.com>.
49446
49447 2007-11-01  Jim Meyering  <meyering@redhat.com>
49448
49449         Treat an empty date string exactly like "0".
49450         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
49451         if the remaining date string (to be parsed) is empty, use "0".
49452         Reported by Mischa Molhoek and discussed in this thread:
49453         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
49454
49455 2007-10-31  Bruno Haible  <bruno@clisp.org>
49456
49457         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
49458         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
49459         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
49460         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
49461         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
49462         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
49463
49464 2007-10-31  Bruno Haible  <bruno@clisp.org>
49465
49466         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
49467         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
49468         (AC_TYPE_LONG_LONG_INT): Use it.
49469         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
49470         it as well.
49471         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
49472         to m4/longlong.m4.
49473         * modules/stdint (Files): Remove m4/ulonglong.m4.
49474         * modules/strtoull (Files): Use m4/longlong.m4 instead of
49475         m4/ulonglong.m4.
49476         * modules/strtoumax (Files): Likewise.
49477
49478 2007-10-30  Bruno Haible  <bruno@clisp.org>
49479
49480         * modules/xvasprintf-posix: New file.
49481         Suggested by Eric Blake.
49482
49483 2007-10-30  Bruno Haible  <bruno@clisp.org>
49484
49485         * modules/xprintf-posix-tests: New file.
49486         * tests/test-xprintf-posix.sh: New file.
49487         * tests/test-xprintf-posix.c: New file.
49488         * tests/test-xfprintf-posix.c: New file.
49489
49490         * modules/xprintf-posix: New file.
49491
49492 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49493
49494         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
49495         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
49496         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
49497
49498 2007-10-29  Bruno Haible  <bruno@clisp.org>
49499
49500         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
49501         contain the special marker '_cv_'.
49502         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
49503         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
49504         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
49505         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
49506         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
49507         Reported by Ralf Wildenhues.
49508
49509 2007-10-29  Bruno Haible  <bruno@clisp.org>
49510
49511         * gnulib-tool (func_import): When --lgpl is not specified, set
49512         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
49513         GPLv3.
49514         Reported by Simon Josefsson.
49515
49516 2007-10-28  Bruno Haible  <bruno@clisp.org>
49517
49518         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
49519         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
49520         HAVE_DECL_ISFINITE.
49521         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
49522         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
49523         HAVE_DECL_ISFINITE.
49524
49525 2007-10-28  Bruno Haible  <bruno@clisp.org>
49526
49527         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
49528         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
49529
49530 2007-10-28  Bruno Haible  <bruno@clisp.org>
49531
49532         Fix link errors with Sun C 5.0 on Solaris 10.
49533         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
49534         function is declared but not present in the compiler's libm.
49535         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
49536         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
49537         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
49538         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
49539         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
49540         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
49541         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
49542         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
49543         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
49544         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
49545         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
49546         HAVE_DECL_FLOORL.
49547
49548 2007-10-28  Bruno Haible  <bruno@clisp.org>
49549
49550         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
49551         gl_FUNC_FLOORL. Cache the result.
49552         (gl_FUNC_FLOORL): Use it.
49553         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
49554         gl_FUNC_CEILL. Cache the result.
49555         (gl_FUNC_CEILL): Use it.
49556
49557         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
49558         gl_FUNC_FLOOR. Cache the result.
49559         (gl_FUNC_FLOOR): Use it.
49560         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
49561         gl_FUNC_CEIL. Cache the result.
49562         (gl_FUNC_CEIL): Use it.
49563
49564         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
49565         gl_FUNC_FLOORF. Cache the result.
49566         (gl_FUNC_FLOORF): Use it.
49567         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
49568         gl_FUNC_CEILF. Cache the result.
49569         (gl_FUNC_CEILF): Use it.
49570
49571 2007-10-28  Bruno Haible  <bruno@clisp.org>
49572
49573         * gnulib-tool: Allow specifying the LGPL version number through
49574         --lgpl=2 or --lgpl=3.
49575         (func_usage): Document --lgpl with argument.
49576         Handle --lgpl=... arguments.
49577         (func_import): Recognize also gl_LGPL calls with an argument. When
49578         --lgpl=2 is used and the module's license is just LGPL, report an
49579         error. Set sed_transform_lib_file according to the lgpl variable. In
49580         the generated files, use --lgpl or gl_LGPL invocations with argument,
49581         if necessary.
49582         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
49583         an LGPv2+ license.
49584         * doc/gnulib-tool.texi (Modified imports): Update explanation of
49585         gl_LGPL macro.
49586
49587 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49588             Bruno Haible  <bruno@clisp.org>
49589
49590         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
49591         (u16_uctomb_aux): Likewise.
49592         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
49593         !HAVE_INLINE.
49594         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
49595
49596 2007-10-28  Bruno Haible  <bruno@clisp.org>
49597
49598         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
49599         Invoke AM_GETTEXT_OPTION if it exists.
49600         * modules/vasprintf: Likewise.
49601         * modules/verror: Likewise.
49602         * modules/xprintf: Likewise.
49603         * modules/xvasprintf: Likewise.
49604
49605 2007-10-27  Ben Pfaff  <blp@gnu.org>
49606
49607         * lib/math.in.h: Define isfinite macro and prototypes for
49608         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
49609         implementations.
49610         * m4/math_h.m4: New substitutions for isfinite module.
49611         * lib/isfinite.c: New file.
49612         * m4/isfinite.m4: New file.
49613         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
49614         * modules/isfinite: New file.
49615         * modules/isfinite-tests: New file.
49616         * tests/tests-isfinite.c: New file.
49617         * doc/functions/isfinite.texi: Mention isfinite module.
49618         * MODULES.html.sh: Mention new module.
49619
49620 2007-10-27  Ben Pfaff  <blp@gnu.org>
49621
49622         Ralf Wildenhues reported that Tru64 4.0D declares the round
49623         functions but does not have definitions.
49624         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
49625         cannot be found in any library, set the output variable to
49626         "missing" instead of "".
49627         * m4/round.m4: Also use our substitute if we cannot find round in
49628         any library, even if it is declared.
49629         * m4/roundf.m4: Likewise for roundf.
49630         * m4/roundl.m4: Likewise for roundl.
49631         * lib/math.in.h: Undefine roundf, round, roundl before defining
49632         their replacements, to allow for hypothetical systems where these
49633         may be defined as macros but not available in libraries.
49634
49635 2007-10-27  Bruno Haible  <bruno@clisp.org>
49636
49637         * doc/gnulib.texi: Invoke @firstparagraphindent.
49638         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
49639         changes in gnulib.
49640         (Source changes): New section.
49641
49642 2007-10-26  Bruno Haible  <bruno@clisp.org>
49643
49644         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
49645         borrowed from autoconf.
49646
49647 2007-10-26  Bruno Haible  <bruno@clisp.org>
49648
49649         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
49650         strerror returned the empty string. Needed on HP-UX 11.00.
49651
49652 2007-10-24  Micah Cowan  <micah@cowan.name>
49653
49654         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
49655         * build-aux/bootstrap: Remove support for now-unnecessary option,
49656         --cvs-user, and envvars CVS_USER, CVS_RSH.
49657
49658 2007-10-24  Jim Meyering  <meyering@redhat.com>
49659
49660         Avoid diagnostics from sha1sum when there is no cached checksum.
49661         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
49662         if the po.s1 file hasn't been created yet.
49663
49664         * build-aux/bootstrap: Sync from coreutils:
49665         2007-10-24  Jim Meyering  <meyering@redhat.com>
49666         Get gnulib from the git repository, not from an obsolete cvs one.
49667         * build-aux/bootstrap: Suggestion from Micah Cowan.
49668         2007-10-04  Jim Meyering  <jim@meyering.net>
49669         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
49670         (update_po_files): Work also when there are no .po files in po/.
49671
49672 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
49673
49674         * README: Append ".git" to git and cg examples.
49675         Problem reported by Benoit Sigoure.
49676
49677 2007-10-23  Micah Cowan  <micah@cowan.name>
49678
49679         * users.txt: Add wget.
49680
49681 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49682
49683         Fix linking of some unistdio tests on FreeBSD.
49684         * modules/unistdio/u16-vsnprintf-tests
49685         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
49686         * modules/unistdio/u16-vsprintf-tests
49687         (test_u16_vsnprintf1_LDADD): Likewise.
49688         * modules/unistdio/u32-vsnprintf-tests
49689         (test_u32_vsnprintf1_LDADD): Likewise.
49690         * modules/unistdio/u32-vsprintf-tests
49691         (test_u32_vsprintf1_LDADD): Likewise.
49692         * modules/unistdio/u8-vsnprintf-tests
49693         (test_u8_vsnprintf1_LDADD): Likewise.
49694         * modules/unistdio/u8-vsprintf-tests
49695         (test_u8_vsprintf1_LDADD): Likewise.
49696         * modules/unistdio/ulc-vsnprintf-tests
49697         (test_ulc_vsnprintf1_LDADD): Likewise.
49698         * modules/unistdio/ulc-vsprintf-tests
49699         (test_ulc_vsprintf1_LDADD): Likewise.
49700
49701         Fix linking of some uniconv tests on FreeBSD.
49702         * modules/uniconv/u16-conv-from-enc-tests
49703         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
49704         * modules/uniconv/u16-conv-to-enc-tests
49705         (test_u16_conv_to_enc_LDADD): Likewise.
49706         * modules/uniconv/u16-strconv-from-enc-tests
49707         (test_u16_strconv_from_enc_LDADD): Likewise.
49708         * modules/uniconv/u16-strconv-to-enc-tests
49709         (test_u16_strconv_to_enc_LDADD): Likewise.
49710         * modules/uniconv/u32-conv-from-enc-tests
49711         (test_u32_conv_from_enc_LDADD): Likewise.
49712         * modules/uniconv/u32-conv-to-enc-tests
49713         (test_u32_conv_to_enc_LDADD): Likewise.
49714         * modules/uniconv/u32-strconv-from-enc-tests
49715         (test_u32_strconv_from_enc_LDADD): Likewise.
49716         * modules/uniconv/u32-strconv-to-enc-tests
49717         (test_u32_strconv_to_enc_LDADD): Likewise.
49718         * modules/uniconv/u8-conv-from-enc-tests
49719         (test_u8_conv_from_enc_LDADD): Likewise.
49720         * modules/uniconv/u8-conv-to-enc-tests
49721         (test_u8_conv_to_enc_LDADD): Likewise.
49722         * modules/uniconv/u8-strconv-from-enc-tests
49723         (test_u8_strconv_from_enc_LDADD): Likewise.
49724         * modules/uniconv/u8-strconv-to-enc-tests
49725         (test_u8_strconv_to_enc_LDADD): Likewise.
49726
49727 2007-10-22  Bruno Haible  <bruno@clisp.org>
49728
49729         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
49730         size.
49731
49732 2007-10-22  Eric Blake  <ebb9@byu.net>
49733
49734         Tweak x*printf documentation.
49735         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
49736         variable name and comments.
49737         Suggested by Bruno Haible.
49738
49739 2007-10-22  Bruno Haible  <bruno@clisp.org>
49740
49741         * lib/acl.c (copy_acl): Fix file name in comment.
49742
49743 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
49744
49745         Fix Tru64 problem with stdbool.h.
49746         * lib/stdbool.in.h (false, true):
49747         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
49748         Don't declare as an enum in this situation; it runs afoul of Tru64.
49749         Problem reported by Steven M. Schweda in
49750         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
49751
49752 2007-10-22  Eric Blake  <ebb9@byu.net>
49753
49754         Also wrap vf?printf.
49755         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
49756         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
49757         (xvprintf, xvfprintf): New functions.
49758
49759 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49760
49761         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
49762         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
49763
49764         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
49765         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
49766
49767 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
49768
49769         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
49770         by Bruno Haible.
49771
49772 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49773
49774         * lib/getloadavg.c
49775         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
49776         Undef `sys' after including sys/table.h, for Tru64 4.0D.
49777
49778         * tests/test-i-ring.c: Work for C89.
49779
49780 2007-10-22  Bruno Haible  <bruno@clisp.org>
49781
49782         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
49783         -1u, in preprocessor expression, so that we don't test for the bug
49784         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
49785         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
49786
49787 2007-10-22  Eric Blake  <ebb9@byu.net>
49788
49789         * tests/test-yesno.sh: Silence stderr during test.
49790
49791 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49792
49793         * modules/crypto/gc-camellia: New file.
49794
49795         * m4/gc-camellia.m4: New file.
49796
49797         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
49798
49799         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
49800
49801 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49802
49803         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
49804         --help to stdout.  Reported by sms@antinode.org (Steven
49805         M. Schweda).
49806
49807 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49808
49809         * users.txt: Fix link to libksba.
49810
49811 2007-10-21  Ben Pfaff  <blp@gnu.org>
49812
49813         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
49814         round.c roundf implementation that depends on floorf and ceilf to
49815         be tested unconditionally.
49816
49817 2007-10-21  Ben Pfaff  <blp@gnu.org>
49818
49819         * m4/check-libm-func.m4: Removed.
49820         * m4/check-math-lib.m4: New file.
49821         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
49822         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
49823         definition and lack of AC_LIBOBJ([roundf]).
49824         * m4/roundl.m4: Ditto, and similarly for roundl.
49825         * modules/round: Reference new m4 file.
49826         * modules/roundf: Ditto.
49827         * modules/roundl: Ditto.
49828         * tests/test-round2.c (main): Use ROUND instead of round.
49829         Bug report from Bruno Haible.
49830
49831 2007-10-21  Bruno Haible  <bruno@clisp.org>
49832
49833         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
49834         context.
49835
49836 2007-10-21  Bruno Haible  <bruno@clisp.org>
49837
49838         * tests/test-wcwidth.c (main): Allow negative result for some control
49839         characters.
49840
49841         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
49842         Needed on OSF/1 5.1.
49843
49844 2007-10-21  Bruno Haible  <bruno@clisp.org>
49845
49846         * tests/test-floorf1.c: Include isnanf.h.
49847         (main): Use isnanf() instead of isnan().
49848         * tests/test-ceilf1.c: Include isnanf.h.
49849         (main): Use isnanf() instead of isnan().
49850         * tests/test-truncf1.c: Include isnanf.h.
49851         (main): Use isnanf() instead of isnan().
49852         * tests/test-roundf1.c: Include isnanf.h.
49853         (main): Use isnanf() instead of isnan().
49854
49855 2007-10-21  Eric Blake  <ebb9@byu.net>
49856
49857         * users.txt: Update URL for m4.
49858
49859 2007-10-21  Bruno Haible  <bruno@clisp.org>
49860
49861         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
49862
49863 2007-10-21  Bruno Haible  <bruno@clisp.org>
49864
49865         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
49866         Git's management files if the CVS files are not present.
49867
49868 2007-10-20  Bruno Haible  <bruno@clisp.org>
49869
49870         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
49871         gcc-3.4.x.
49872
49873 2007-10-20  Ben Pfaff  <blp@gnu.org>
49874
49875         * lib/math.in.h: Declare round, roundf, roundl if we are providing
49876         implementations.
49877         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
49878         * lib/round.c: New file.
49879         * lib/roundf.c: New file.
49880         * lib/roundl.c: New file.
49881         * m4/round.m4: New file.
49882         * m4/roundf.m4: New file.
49883         * m4/roundl.m4: New file.
49884         * m4/check-libm-func-m4: New file.
49885         * modules/math: Replace round, roundf, roundl related @VARS@ in
49886         math.in.h.
49887         * modules/round: New file.
49888         * modules/round-tests: New file.
49889         * modules/roundf: New file.
49890         * modules/roundf-tests: New file.
49891         * modules/roundl: New file.
49892         * modules/roundl-tests: New file.
49893         * tests/test-round1.c: New file.
49894         * tests/test-round2.c: New file.
49895         * tests/test-roundf1.c: New file.
49896         * tests/test-roundf2.c: New file.
49897         * tests/test-roundl.c: New file.
49898         * doc/functions/round.texi: Mention round module.
49899         * doc/functions/roundf.texi: Mention roundf module.
49900         * doc/functions/roundl.texi: Mention roundl module.
49901         * MODULES.html.sh: Mention new modules.
49902         Thanks to Bruno Haible for suggestions.
49903
49904 2007-10-20  Jim Meyering  <meyering@redhat.com>
49905
49906         * lib/xprintf.c: Include <config.h> unconditionally.
49907
49908         Change xprintf's license to GPL.
49909         * modules/xprintf (License): s/LGPL/GPL/, since this module
49910         depends on modules (exit and exitfail) which are GPL.
49911         Suggestion from Bruno Haible.
49912
49913         xprintf fixes.
49914         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
49915         Use a clearer diagnostic.
49916         Patch from Bruno Haible.
49917
49918 2007-10-20  Bruno Haible  <bruno@clisp.org>
49919
49920         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
49921         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
49922         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49923
49924 2007-10-20  Bruno Haible  <bruno@clisp.org>
49925
49926         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
49927         precision in the comparison result > x - 1 or similar.
49928         * tests/test-ceilf2.c (correct_result_p): Likewise.
49929         * tests/test-truncf2.c (correct_result_p): Likewise.
49930         * tests/test-trunc2.c (correct_result_p): Likewise.
49931         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49932
49933 2007-10-20  Bruno Haible  <bruno@clisp.org>
49934
49935         * modules/ceil: New file.
49936         * m4/ceil.m4: New file.
49937         * doc/functions/ceil.texi: Mention the 'ceil' module.
49938
49939 2007-10-20  Bruno Haible  <bruno@clisp.org>
49940
49941         * modules/floor: New file.
49942         * m4/floor.m4: New file.
49943         * doc/functions/floor.texi: Mention the 'floor' module.
49944
49945 2007-10-20  Bruno Haible  <bruno@clisp.org>
49946
49947         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
49948         of %a.
49949         * modules/floorf-tests (Depends-on): Likewise.
49950         * modules/truncf-tests (Depends-on): Likewise.
49951         * modules/trunc-tests (Depends-on): Likewise.
49952         Reported by Ben Pfaff.
49953
49954 2007-10-19  Jim Meyering  <meyering@redhat.com>
49955
49956         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
49957         Don't bother testing specific errno values.  Just test ferror.
49958
49959         New module: xprintf
49960         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
49961
49962 2007-10-19  Bruno Haible  <bruno@clisp.org>
49963
49964         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
49965         syntax.
49966         * modules/javaexec (Makefile.am): Likewise.
49967         * modules/relocatable-prog (Makefile.am): Likewise.
49968         Suggested by Jim Meyering.
49969
49970 2007-10-18  Bruno Haible  <bruno@clisp.org>
49971
49972         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
49973         Reported by Jim Meyering.
49974
49975 2007-10-18  Eric Blake  <ebb9@byu.net>
49976
49977         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
49978
49979 2007-10-18  Bruno Haible  <bruno@clisp.org>
49980
49981         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
49982         the format string into writable memory. Needed in Fortify conditions.
49983
49984 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
49985             Bruno Haible  <bruno@clisp.org>
49986
49987         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
49988         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
49989         * modules/trim (Depends-on): Add mbchar.
49990         (configure.ac): Add gl_FUNC_MBRTOWC.
49991         (Makefile.am): Augment lib_SOURCES.
49992
49993 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
49994
49995         Modify glob.c to use fstatat and dirfd, to simplify it.
49996         Suggested by Eric Blake.
49997         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
49998         Don't include <stdbool.h>; not used.
49999         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
50000         (link_exists_p): Simplify implementation, since we can now assume
50001         dirfd and fstatat.
50002         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
50003
50004 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50005
50006         * gnulib-tool (func_get_dependencies): Fix sed script to
50007         match only tests.
50008
50009 2007-10-17  Bruno Haible  <bruno@clisp.org>
50010
50011         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
50012         allow locale names without encoding suffix.
50013         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
50014         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
50015
50016 2007-10-16  Bruno Haible  <bruno@clisp.org>
50017
50018         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
50019         * lib/getgroups.c (getgroups): Likewise.
50020         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
50021
50022 2007-10-16  Bruno Haible  <bruno@clisp.org>
50023
50024         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
50025         * modules/malloc-posix (License): Likewise.
50026         * modules/realloc-posix (License): Likewise.
50027         * modules/calloc-posix (License): Likewise.
50028         * modules/intprops (License): Change from GPL to LGPL, with
50029         Paul Eggert's approval.
50030
50031 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50032
50033         Merge glibc changes into lib/glob.c.
50034
50035         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
50036         2007-10-15 04:59:03 UTC.  Here are the changes:
50037
50038         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
50039
50040         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
50041
50042         * lib/glob.c: Add some branch prediction throughout.
50043
50044         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
50045
50046         [BZ #5103]
50047         * lib/glob.c (glob): Recognize patterns starting \/.
50048
50049         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
50050
50051         [BZ #3996]
50052         * lib/glob.c (attribute_hidden): Define if not defined.
50053         (glob): Unescape dirname, filename or username when needed and not
50054         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
50055         is NULL.  Handle unescaped [ in pattern without closing ].
50056         Don't pass GLOB_CHECK down to recursive glob for directories.
50057         (__glob_pattern_type): New function.
50058         (__glob_pattern_p): Implement using __glob_pattern_type.
50059         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
50060         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
50061         Remove unreachable code.
50062
50063         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
50064
50065         * lib/glob.c (glob_in_dir): Add some comments and asserts to
50066         explain why there are no leaks.
50067
50068         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
50069
50070         [BZ #3253]
50071         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
50072         time, rather allocate increasingly bigger arrays of pointers, if
50073         possible with alloca, if too large with malloc.
50074
50075 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50076
50077         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
50078         Problem reported by H.Merijn Brand in
50079         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
50080         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
50081         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
50082
50083 2007-10-15  Bruno Haible  <bruno@clisp.org>
50084
50085         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
50086         with explicit rpl_ prefix.
50087         * lib/fopen.c (fopen): Likewise.
50088         * lib/freopen.c (freopen): Likewise.
50089         * lib/iconv.c (iconv): Likewise.
50090         * lib/iconv_close.c (iconv_close): Likewise.
50091
50092 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50093
50094         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
50095
50096 2007-10-15  Bruno Haible  <bruno@clisp.org>
50097
50098         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
50099         <stddef.h> instead of <stdlib.h> since we only need NULL.
50100         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50101
50102 2007-10-15  Bruno Haible  <bruno@clisp.org>
50103
50104         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
50105         Replace paragraph talking about LIBOBJS.
50106         Reported by Colin Watson <cjwatson@debian.org>.
50107
50108 2007-10-15  Bruno Haible  <bruno@clisp.org>
50109
50110         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
50111         <stdlib.h> before using NULL.
50112
50113 2007-10-15  Simon Josefsson  <simon@josefsson.org>
50114
50115         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
50116         Reported by Albert Chin <china@thewrittenword.com>.
50117
50118 2007-10-14  Bruno Haible  <bruno@clisp.org>
50119
50120         * modules/iconv_open-utf-tests: New file.
50121         * tests/test-iconv-utf.c: New file.
50122
50123         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
50124         * modules/iconv_open-utf: New file.
50125         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
50126         (iconv, iconv_close): New declarations.
50127         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
50128         be defined.
50129         (iconv_open): Add special handling of conversion between UTF-8 and
50130         UTF-{16,32}{BE,LE}.
50131         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
50132         * lib/iconv_close.c: New file.
50133         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
50134         gl_FUNC_ICONV_OPEN.
50135         (gl_FUNC_ICONV_OPEN): Use it.
50136         (gl_FUNC_ICONV_OPEN_UTF): New macro.
50137         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
50138         and REPLACE_ICONV_UTF.
50139         * modules/iconv_open (Depends-on): Add c-strcase.
50140         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
50141         ICONV_CONST.
50142         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
50143
50144 2007-10-13  Albert Chin  <china@thewrittenword.com>
50145             Bruno Haible  <bruno@clisp.org>
50146
50147         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
50148         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
50149
50150 2007-10-13  Bruno Haible  <bruno@clisp.org>
50151
50152         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
50153         defined, use the ISO C99 inline semantics.
50154         * lib/argp.h (ARGP_EI): Likewise.
50155
50156 2007-10-13  Bruno Haible  <bruno@clisp.org>
50157
50158         Handle 'inline' change in gcc 4.3.0.
50159         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
50160         argp_fmtstream_write, argp_fmtstream_set_lmargin,
50161         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
50162         argp_fmtstream_point): Disable 'extern' declaration if the function
50163         definition is going to be provided inline.
50164         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
50165         semantics, not the ISO C99 inline semantics.
50166         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
50167         'extern' declaration if the function definition is going to be provided
50168         inline.
50169         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
50170         the GNU C inline semantics, not the ISO C99 inline semantics. With
50171         GCC 4.2, avoid a warning.
50172
50173 2007-10-13  Bruno Haible  <bruno@clisp.org>
50174
50175         * lib/freading.h (freading): Enable the use of __freading for
50176         glibc >= 2.7.
50177         * lib/freading.c (freading): Likewise.
50178
50179 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
50180
50181         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
50182         "warning: C99 inline functions are not supported; using GNU89".
50183
50184 2007-10-12  Bruno Haible  <bruno@clisp.org>
50185
50186         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
50187         of 2.
50188         * tests/test-ceilf2.c: New file.
50189         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
50190
50191         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
50192         * modules/ceilf-tests: Update.
50193
50194 2007-10-12  Bruno Haible  <bruno@clisp.org>
50195
50196         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
50197         of 2.
50198         * tests/test-floorf2.c: New file.
50199         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
50200
50201         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
50202         * modules/floorf-tests: Update.
50203
50204 2007-10-12  Bruno Haible  <bruno@clisp.org>
50205
50206         * tests/test-trunc2.c: New file.
50207         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
50208
50209         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
50210         * modules/trunc-tests: Update.
50211
50212 2007-10-12  Bruno Haible  <bruno@clisp.org>
50213
50214         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
50215         of 2.
50216         * tests/test-truncf2.c: New file.
50217         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
50218
50219         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
50220         * modules/truncf-tests: Update.
50221
50222 2007-10-11  Eric Blake  <ebb9@byu.net>
50223
50224         Don't claim strerror is broken on Interix.
50225         * doc/functions/strerror.texi (strerror): Known broken systems are
50226         now Solaris 8, and not Interix.
50227         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
50228         Interix on cross-compile.
50229         Reported by Martin Koeppe in
50230         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
50231
50232 2007-10-11  Bruno Haible  <bruno@clisp.org>
50233
50234         * modules/i-ring-tests: New file.
50235         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
50236         instead of assert.
50237
50238 2007-10-11  Bruno Haible  <bruno@clisp.org>
50239
50240         * modules/filenamecat-tests: New file.
50241         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
50242         * lib/filenamecat.c: Remove test code.
50243
50244 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
50245
50246         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
50247
50248         * lib/strerror.c: Include <string.h> always, to test interface,
50249         and to remove the need for the dummy.
50250         Include intprops.h to compute width instead of doing it ourselves
50251         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
50252         (strerror): Define it to return NULL if there's no system strerror.
50253         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
50254         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
50255         ancient pre-strerror Unix systems well any more.  Saying "unknown
50256         system error" is enough.
50257         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
50258         simpler strerror.c implementation.
50259         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
50260         Simplify the tests to reflect the simpler strerror implementation.
50261         * modules/strerror (Depends-on): Add intprops.
50262
50263 2007-10-09  Eric Blake  <ebb9@byu.net>
50264
50265         Silence test-fpending.
50266         * modules/fpending-tests (Files): Add wrapper script.
50267         * tests/test-fpending.sh: New file.
50268
50269 2007-10-09  Bruno Haible  <bruno@clisp.org>
50270
50271         * MODULES.html.sh (func_module): Don't create a hyperlink for
50272         function names like 'printf_frexp'.
50273         (Misc): Add crc, memxor.
50274         (Characteristics of floating types): New section.
50275         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
50276         isnanf-nolibm, signbit, trunc, truncf, truncl.
50277         (Enhancements for ISO C 99 functions): New subsection Input/output.
50278         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
50279         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
50280         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
50281         (Compatibility checks for POSIX:2001 functions): Add clock-time.
50282         (Enhancements for POSIX:2001 functions): Add chdir-long.
50283         (File system functions): Add areadlink, chdir-safer, read-file.
50284         Remove cycle-check.
50285         (File system as inode set): New section.
50286         (Date and time): Add gethrxtime.
50287         (Multithreading): Add openmp.
50288         (Internationalization functions): Add localename.
50289         (Unicode string functions): Add unistr/u*-mbsnlen.
50290         (Support for maintaining and releasing projects): Add git-version-gen.
50291         (Lone files): Remove directories.
50292
50293 2007-10-08  Ben Pfaff  <blp@gnu.org>
50294
50295         * lib/xmalloca.h: Fix typo in comment.
50296
50297 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
50298
50299         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
50300         when avoiding problems with integer overflow.  Use a portable test
50301         instead.
50302
50303 2007-10-08  Simon Josefsson  <simon@josefsson.org>
50304
50305         * modules/dummy (License): Change to LGPLv2+.
50306         * modules/float (License): Likewise
50307         * modules/realloc (License): Likewise
50308         * modules/stdlib (License): Likewise
50309
50310 2007-10-07  Bruno Haible  <bruno@clisp.org>
50311
50312         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
50313         * floor.c (TWO_MANT_DIG): Likewise.
50314         * ceil.c (TWO_MANT_DIG): Likewise.
50315         Reported by Ben Pfaff.
50316
50317 2007-10-07  Bruno Haible  <bruno@clisp.org>
50318
50319         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
50320         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
50321         * lib/frexp.c (FUNC): Likewise.
50322         * lib/printf-frexp.h (printf_frexp): Likewise.
50323         * lib/printf-frexpl.h (printf_frexpl): Likewise.
50324         * lib/printf-frexp.c (FUNC): Likewise.
50325         Suggested by Jim Meyering.
50326
50327 2007-10-07  Jim Meyering  <meyering@redhat.com>
50328
50329         Make xnanosleep's integer overflow test more robust.
50330         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
50331         so that gcc-4.3.0 doesn't optimize away this test for overflow.
50332
50333 2007-10-07  Bruno Haible  <bruno@clisp.org>
50334
50335         * NEWS: Mention the license change.
50336
50337         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
50338         abbreviations in the modules files.
50339
50340         Change copyright notice from GPLv2+ to GPLv3+.
50341         * README: Change copyright notice.
50342         * MODULES.html.sh: Likewise.
50343         * build-aux/bootstrap.conf: Likewise.
50344         * build-aux/config.libpath: Likewise.
50345         * build-aux/csharpcomp.sh.in: Likewise.
50346         * build-aux/csharpexec.sh.in: Likewise.
50347         * build-aux/install-reloc: Likewise.
50348         * build-aux/javacomp.sh.in: Likewise.
50349         * build-aux/javaexec.sh.in: Likewise.
50350         * build-aux/ldd.sh.in: Likewise.
50351         * build-aux/reloc-ldflags: Likewise.
50352         * build-aux/relocatable.sh.in: Likewise.
50353         * build-aux/x-to-1.in: Likewise.
50354         * check-module: Likewise.
50355         * config/srclistvars.sh: Likewise.
50356         * gnulib-tool: Likewise.
50357         * lib/acl-internal.h: Likewise.
50358         * lib/acl.c: Likewise.
50359         * lib/acl.h: Likewise.
50360         * lib/acl_entries.c: Likewise.
50361         * lib/areadlink-with-size.c: Likewise.
50362         * lib/areadlink.c: Likewise.
50363         * lib/areadlink.h: Likewise.
50364         * lib/argmatch.c: Likewise.
50365         * lib/argmatch.h: Likewise.
50366         * lib/argp-ba.c: Likewise.
50367         * lib/argp-eexst.c: Likewise.
50368         * lib/argp-fmtstream.c: Likewise.
50369         * lib/argp-fmtstream.h: Likewise.
50370         * lib/argp-fs-xinl.c: Likewise.
50371         * lib/argp-help.c: Likewise.
50372         * lib/argp-namefrob.h: Likewise.
50373         * lib/argp-parse.c: Likewise.
50374         * lib/argp-pin.c: Likewise.
50375         * lib/argp-pv.c: Likewise.
50376         * lib/argp-pvh.c: Likewise.
50377         * lib/argp-xinl.c: Likewise.
50378         * lib/argp.h: Likewise.
50379         * lib/at-func.c: Likewise.
50380         * lib/atanl.c: Likewise.
50381         * lib/backupfile.c: Likewise.
50382         * lib/backupfile.h: Likewise.
50383         * lib/basename.c: Likewise.
50384         * lib/binary-io.h: Likewise.
50385         * lib/byteswap.in.h: Likewise.
50386         * lib/c-stack.c: Likewise.
50387         * lib/c-stack.h: Likewise.
50388         * lib/c-strcasestr.c: Likewise.
50389         * lib/c-strcasestr.h: Likewise.
50390         * lib/c-strstr.c: Likewise.
50391         * lib/c-strstr.h: Likewise.
50392         * lib/c-strtod.c: Likewise.
50393         * lib/calloc.c: Likewise.
50394         * lib/canon-host.c: Likewise.
50395         * lib/canon-host.h: Likewise.
50396         * lib/canonicalize-lgpl.c: Likewise.
50397         * lib/canonicalize.c: Likewise.
50398         * lib/canonicalize.h: Likewise.
50399         * lib/ceil.c: Likewise.
50400         * lib/ceilf.c: Likewise.
50401         * lib/ceill.c: Likewise.
50402         * lib/chdir-long.c: Likewise.
50403         * lib/chdir-long.h: Likewise.
50404         * lib/chdir-safer.c: Likewise.
50405         * lib/chdir-safer.h: Likewise.
50406         * lib/chown.c: Likewise.
50407         * lib/classpath.c: Likewise.
50408         * lib/classpath.h: Likewise.
50409         * lib/clean-temp.c: Likewise.
50410         * lib/clean-temp.h: Likewise.
50411         * lib/cloexec.c: Likewise.
50412         * lib/close-stream.c: Likewise.
50413         * lib/closein.c: Likewise.
50414         * lib/closein.h: Likewise.
50415         * lib/closeout.c: Likewise.
50416         * lib/closeout.h: Likewise.
50417         * lib/concat-filename.c: Likewise.
50418         * lib/copy-file.c: Likewise.
50419         * lib/copy-file.h: Likewise.
50420         * lib/count-one-bits.h: Likewise.
50421         * lib/crc.c: Likewise.
50422         * lib/crc.h: Likewise.
50423         * lib/creat-safer.c: Likewise.
50424         * lib/csharpcomp.c: Likewise.
50425         * lib/csharpcomp.h: Likewise.
50426         * lib/csharpexec.c: Likewise.
50427         * lib/csharpexec.h: Likewise.
50428         * lib/cycle-check.c: Likewise.
50429         * lib/cycle-check.h: Likewise.
50430         * lib/diacrit.c: Likewise.
50431         * lib/diacrit.h: Likewise.
50432         * lib/diffseq.h: Likewise.
50433         * lib/dirchownmod.c: Likewise.
50434         * lib/dirent.in.h: Likewise.
50435         * lib/dirfd.c: Likewise.
50436         * lib/dirfd.h: Likewise.
50437         * lib/dirname.c: Likewise.
50438         * lib/dirname.h: Likewise.
50439         * lib/dummy.c: Likewise.
50440         * lib/dup-safer.c: Likewise.
50441         * lib/dup2.c: Likewise.
50442         * lib/eealloc.h: Likewise.
50443         * lib/error.c: Likewise.
50444         * lib/error.h: Likewise.
50445         * lib/euidaccess.c: Likewise.
50446         * lib/exclude.c: Likewise.
50447         * lib/exclude.h: Likewise.
50448         * lib/execute.c: Likewise.
50449         * lib/execute.h: Likewise.
50450         * lib/exitfail.c: Likewise.
50451         * lib/exitfail.h: Likewise.
50452         * lib/expl.c: Likewise.
50453         * lib/fatal-signal.c: Likewise.
50454         * lib/fatal-signal.h: Likewise.
50455         * lib/fbufmode.c: Likewise.
50456         * lib/fbufmode.h: Likewise.
50457         * lib/fchdir.c: Likewise.
50458         * lib/fchmodat.c: Likewise.
50459         * lib/fchownat.c: Likewise.
50460         * lib/fcntl--.h: Likewise.
50461         * lib/fcntl-safer.h: Likewise.
50462         * lib/fcntl.in.h: Likewise.
50463         * lib/fd-safer.c: Likewise.
50464         * lib/fflush.c: Likewise.
50465         * lib/file-has-acl.c: Likewise.
50466         * lib/file-set.c: Likewise.
50467         * lib/file-type.c: Likewise.
50468         * lib/file-type.h: Likewise.
50469         * lib/fileblocks.c: Likewise.
50470         * lib/filemode.c: Likewise.
50471         * lib/filemode.h: Likewise.
50472         * lib/filename.h: Likewise.
50473         * lib/filenamecat.c: Likewise.
50474         * lib/filenamecat.h: Likewise.
50475         * lib/findprog.c: Likewise.
50476         * lib/findprog.h: Likewise.
50477         * lib/float.in.h: Likewise.
50478         * lib/floor.c: Likewise.
50479         * lib/floorf.c: Likewise.
50480         * lib/floorl.c: Likewise.
50481         * lib/fopen-safer.c: Likewise.
50482         * lib/fopen.c: Likewise.
50483         * lib/fpending.c: Likewise.
50484         * lib/fpending.h: Likewise.
50485         * lib/fprintf.c: Likewise.
50486         * lib/fprintftime.h: Likewise.
50487         * lib/fpucw.h: Likewise.
50488         * lib/fpurge.c: Likewise.
50489         * lib/fpurge.h: Likewise.
50490         * lib/freadable.c: Likewise.
50491         * lib/freadable.h: Likewise.
50492         * lib/freadahead.c: Likewise.
50493         * lib/freadahead.h: Likewise.
50494         * lib/freading.c: Likewise.
50495         * lib/freading.h: Likewise.
50496         * lib/free.c: Likewise.
50497         * lib/freopen.c: Likewise.
50498         * lib/frexp.c: Likewise.
50499         * lib/frexpl.c: Likewise.
50500         * lib/fseek.c: Likewise.
50501         * lib/fseterr.c: Likewise.
50502         * lib/fseterr.h: Likewise.
50503         * lib/fstatat.c: Likewise.
50504         * lib/fstrcmp.c: Likewise.
50505         * lib/fstrcmp.h: Likewise.
50506         * lib/fsusage.c: Likewise.
50507         * lib/fsusage.h: Likewise.
50508         * lib/ftell.c: Likewise.
50509         * lib/ftello.c: Likewise.
50510         * lib/fts-cycle.c: Likewise.
50511         * lib/fts.c: Likewise.
50512         * lib/fts_.h: Likewise.
50513         * lib/full-read.c: Likewise.
50514         * lib/full-read.h: Likewise.
50515         * lib/full-write.c: Likewise.
50516         * lib/full-write.h: Likewise.
50517         * lib/fwritable.c: Likewise.
50518         * lib/fwritable.h: Likewise.
50519         * lib/fwriteerror.c: Likewise.
50520         * lib/fwriteerror.h: Likewise.
50521         * lib/fwriting.c: Likewise.
50522         * lib/fwriting.h: Likewise.
50523         * lib/gcd.c: Likewise.
50524         * lib/gcd.h: Likewise.
50525         * lib/getcwd.c: Likewise.
50526         * lib/getdate.h: Likewise.
50527         * lib/getdate.y: Likewise.
50528         * lib/getdomainname.c: Likewise.
50529         * lib/getdomainname.h: Likewise.
50530         * lib/getgroups.c: Likewise.
50531         * lib/gethostname.c: Likewise.
50532         * lib/gethrxtime.c: Likewise.
50533         * lib/gethrxtime.h: Likewise.
50534         * lib/getloadavg.c: Likewise.
50535         * lib/getndelim2.c: Likewise.
50536         * lib/getndelim2.h: Likewise.
50537         * lib/getnline.c: Likewise.
50538         * lib/getnline.h: Likewise.
50539         * lib/getopt.c: Likewise.
50540         * lib/getopt.in.h: Likewise.
50541         * lib/getopt1.c: Likewise.
50542         * lib/getopt_int.h: Likewise.
50543         * lib/getpagesize.h: Likewise.
50544         * lib/getsubopt.c: Likewise.
50545         * lib/gettime.c: Likewise.
50546         * lib/getugroups.c: Likewise.
50547         * lib/getugroups.h: Likewise.
50548         * lib/getusershell.c: Likewise.
50549         * lib/gl_anyavltree_list1.h: Likewise.
50550         * lib/gl_anyavltree_list2.h: Likewise.
50551         * lib/gl_anyhash_list1.h: Likewise.
50552         * lib/gl_anyhash_list2.h: Likewise.
50553         * lib/gl_anylinked_list1.h: Likewise.
50554         * lib/gl_anylinked_list2.h: Likewise.
50555         * lib/gl_anyrbtree_list1.h: Likewise.
50556         * lib/gl_anyrbtree_list2.h: Likewise.
50557         * lib/gl_anytree_list1.h: Likewise.
50558         * lib/gl_anytree_list2.h: Likewise.
50559         * lib/gl_anytree_oset.h: Likewise.
50560         * lib/gl_anytreehash_list1.h: Likewise.
50561         * lib/gl_anytreehash_list2.h: Likewise.
50562         * lib/gl_array_list.c: Likewise.
50563         * lib/gl_array_list.h: Likewise.
50564         * lib/gl_array_oset.c: Likewise.
50565         * lib/gl_array_oset.h: Likewise.
50566         * lib/gl_avltree_list.c: Likewise.
50567         * lib/gl_avltree_list.h: Likewise.
50568         * lib/gl_avltree_oset.c: Likewise.
50569         * lib/gl_avltree_oset.h: Likewise.
50570         * lib/gl_avltreehash_list.c: Likewise.
50571         * lib/gl_avltreehash_list.h: Likewise.
50572         * lib/gl_carray_list.c: Likewise.
50573         * lib/gl_carray_list.h: Likewise.
50574         * lib/gl_linked_list.c: Likewise.
50575         * lib/gl_linked_list.h: Likewise.
50576         * lib/gl_linkedhash_list.c: Likewise.
50577         * lib/gl_linkedhash_list.h: Likewise.
50578         * lib/gl_list.c: Likewise.
50579         * lib/gl_list.h: Likewise.
50580         * lib/gl_oset.c: Likewise.
50581         * lib/gl_oset.h: Likewise.
50582         * lib/gl_rbtree_list.c: Likewise.
50583         * lib/gl_rbtree_list.h: Likewise.
50584         * lib/gl_rbtree_oset.c: Likewise.
50585         * lib/gl_rbtree_oset.h: Likewise.
50586         * lib/gl_rbtreehash_list.c: Likewise.
50587         * lib/gl_rbtreehash_list.h: Likewise.
50588         * lib/gl_sublist.c: Likewise.
50589         * lib/gl_sublist.h: Likewise.
50590         * lib/group-member.c: Likewise.
50591         * lib/group-member.h: Likewise.
50592         * lib/hard-locale.c: Likewise.
50593         * lib/hard-locale.h: Likewise.
50594         * lib/hash-pjw.c: Likewise.
50595         * lib/hash-pjw.h: Likewise.
50596         * lib/hash-triple.c: Likewise.
50597         * lib/hash.c: Likewise.
50598         * lib/hash.h: Likewise.
50599         * lib/human.c: Likewise.
50600         * lib/human.h: Likewise.
50601         * lib/i-ring.c: Likewise.
50602         * lib/i-ring.h: Likewise.
50603         * lib/idcache.c: Likewise.
50604         * lib/imaxabs.c: Likewise.
50605         * lib/imaxdiv.c: Likewise.
50606         * lib/inet_pton.c: Likewise.
50607         * lib/inet_pton.h: Likewise.
50608         * lib/intprops.h: Likewise.
50609         * lib/inttostr.c: Likewise.
50610         * lib/inttostr.h: Likewise.
50611         * lib/inttypes.in.h: Likewise.
50612         * lib/isapipe.c: Likewise.
50613         * lib/isdir.c: Likewise.
50614         * lib/isnan.c: Likewise.
50615         * lib/isnan.h: Likewise.
50616         * lib/isnanf.c: Likewise.
50617         * lib/isnanf.h: Likewise.
50618         * lib/isnanl-nolibm.h: Likewise.
50619         * lib/isnanl.c: Likewise.
50620         * lib/isnanl.h: Likewise.
50621         * lib/javacomp.c: Likewise.
50622         * lib/javacomp.h: Likewise.
50623         * lib/javaexec.c: Likewise.
50624         * lib/javaexec.h: Likewise.
50625         * lib/javaversion.c: Likewise.
50626         * lib/javaversion.h: Likewise.
50627         * lib/javaversion.java: Likewise.
50628         * lib/lbrkprop.h: Likewise.
50629         * lib/lchmod.h: Likewise.
50630         * lib/lchown.c: Likewise.
50631         * lib/ldexpl.c: Likewise.
50632         * lib/linebreak.c: Likewise.
50633         * lib/linebreak.h: Likewise.
50634         * lib/linebuffer.c: Likewise.
50635         * lib/linebuffer.h: Likewise.
50636         * lib/locale.in.h: Likewise.
50637         * lib/logl.c: Likewise.
50638         * lib/long-options.c: Likewise.
50639         * lib/long-options.h: Likewise.
50640         * lib/lstat.c: Likewise.
50641         * lib/lstat.h: Likewise.
50642         * lib/math.in.h: Likewise.
50643         * lib/mbchar.c: Likewise.
50644         * lib/mbchar.h: Likewise.
50645         * lib/mbfile.h: Likewise.
50646         * lib/mbiter.h: Likewise.
50647         * lib/mbscasecmp.c: Likewise.
50648         * lib/mbscasestr.c: Likewise.
50649         * lib/mbschr.c: Likewise.
50650         * lib/mbscspn.c: Likewise.
50651         * lib/mbslen.c: Likewise.
50652         * lib/mbsncasecmp.c: Likewise.
50653         * lib/mbsnlen.c: Likewise.
50654         * lib/mbspbrk.c: Likewise.
50655         * lib/mbspcasecmp.c: Likewise.
50656         * lib/mbsrchr.c: Likewise.
50657         * lib/mbssep.c: Likewise.
50658         * lib/mbsspn.c: Likewise.
50659         * lib/mbsstr.c: Likewise.
50660         * lib/mbstok_r.c: Likewise.
50661         * lib/mbswidth.c: Likewise.
50662         * lib/mbswidth.h: Likewise.
50663         * lib/mbuiter.h: Likewise.
50664         * lib/memcasecmp.c: Likewise.
50665         * lib/memcasecmp.h: Likewise.
50666         * lib/memchr.c: Likewise.
50667         * lib/memcmp.c: Likewise.
50668         * lib/memcoll.c: Likewise.
50669         * lib/memcoll.h: Likewise.
50670         * lib/memcpy.c: Likewise.
50671         * lib/memrchr.c: Likewise.
50672         * lib/mkancesdirs.c: Likewise.
50673         * lib/mkdir-p.c: Likewise.
50674         * lib/mkdir-p.h: Likewise.
50675         * lib/mkdir.c: Likewise.
50676         * lib/mkdirat.c: Likewise.
50677         * lib/mkdtemp.c: Likewise.
50678         * lib/mkstemp-safer.c: Likewise.
50679         * lib/mkstemp.c: Likewise.
50680         * lib/modechange.c: Likewise.
50681         * lib/modechange.h: Likewise.
50682         * lib/mountlist.c: Likewise.
50683         * lib/mountlist.h: Likewise.
50684         * lib/mpsort.c: Likewise.
50685         * lib/nanosleep.c: Likewise.
50686         * lib/obstack.c: Likewise.
50687         * lib/obstack.h: Likewise.
50688         * lib/open-safer.c: Likewise.
50689         * lib/open.c: Likewise.
50690         * lib/openat-die.c: Likewise.
50691         * lib/openat-priv.h: Likewise.
50692         * lib/openat-proc.c: Likewise.
50693         * lib/openat.c: Likewise.
50694         * lib/openat.h: Likewise.
50695         * lib/pagealign_alloc.c: Likewise.
50696         * lib/pagealign_alloc.h: Likewise.
50697         * lib/physmem.c: Likewise.
50698         * lib/physmem.h: Likewise.
50699         * lib/pipe-safer.c: Likewise.
50700         * lib/pipe.c: Likewise.
50701         * lib/pipe.h: Likewise.
50702         * lib/posixtm.c: Likewise.
50703         * lib/posixtm.h: Likewise.
50704         * lib/posixver.c: Likewise.
50705         * lib/printf-frexp.c: Likewise.
50706         * lib/printf-frexp.h: Likewise.
50707         * lib/printf-frexpl.c: Likewise.
50708         * lib/printf-frexpl.h: Likewise.
50709         * lib/printf.c: Likewise.
50710         * lib/progname.c: Likewise.
50711         * lib/progname.h: Likewise.
50712         * lib/progreloc.c: Likewise.
50713         * lib/putenv.c: Likewise.
50714         * lib/quote.c: Likewise.
50715         * lib/quote.h: Likewise.
50716         * lib/quotearg.c: Likewise.
50717         * lib/quotearg.h: Likewise.
50718         * lib/raise.c: Likewise.
50719         * lib/readline.c: Likewise.
50720         * lib/readline.h: Likewise.
50721         * lib/readlink.c: Likewise.
50722         * lib/readtokens.c: Likewise.
50723         * lib/readtokens.h: Likewise.
50724         * lib/readtokens0.c: Likewise.
50725         * lib/readtokens0.h: Likewise.
50726         * lib/readutmp.c: Likewise.
50727         * lib/readutmp.h: Likewise.
50728         * lib/realloc.c: Likewise.
50729         * lib/relocwrapper.c: Likewise.
50730         * lib/rename-dest-slash.c: Likewise.
50731         * lib/rename.c: Likewise.
50732         * lib/rmdir.c: Likewise.
50733         * lib/rpmatch.c: Likewise.
50734         * lib/safe-read.c: Likewise.
50735         * lib/safe-read.h: Likewise.
50736         * lib/safe-write.c: Likewise.
50737         * lib/safe-write.h: Likewise.
50738         * lib/same-inode.h: Likewise.
50739         * lib/same.c: Likewise.
50740         * lib/same.h: Likewise.
50741         * lib/save-cwd.c: Likewise.
50742         * lib/save-cwd.h: Likewise.
50743         * lib/savedir.c: Likewise.
50744         * lib/savedir.h: Likewise.
50745         * lib/savewd.c: Likewise.
50746         * lib/savewd.h: Likewise.
50747         * lib/search.in.h: Likewise.
50748         * lib/setenv.c: Likewise.
50749         * lib/setenv.h: Likewise.
50750         * lib/settime.c: Likewise.
50751         * lib/sh-quote.c: Likewise.
50752         * lib/sh-quote.h: Likewise.
50753         * lib/sig2str.c: Likewise.
50754         * lib/sig2str.h: Likewise.
50755         * lib/signal.in.h: Likewise.
50756         * lib/signbitd.c: Likewise.
50757         * lib/signbitf.c: Likewise.
50758         * lib/signbitl.c: Likewise.
50759         * lib/sigprocmask.c: Likewise.
50760         * lib/sincosl.c: Likewise.
50761         * lib/sleep.c: Likewise.
50762         * lib/sprintf.c: Likewise.
50763         * lib/sqrtl.c: Likewise.
50764         * lib/stat-time.h: Likewise.
50765         * lib/stdio--.h: Likewise.
50766         * lib/stdio-safer.h: Likewise.
50767         * lib/stdlib--.h: Likewise.
50768         * lib/stdlib-safer.h: Likewise.
50769         * lib/stdlib.in.h: Likewise.
50770         * lib/stpcpy.c: Likewise.
50771         * lib/stpncpy.c: Likewise.
50772         * lib/strchrnul.c: Likewise.
50773         * lib/strcspn.c: Likewise.
50774         * lib/strerror.c: Likewise.
50775         * lib/strftime.c: Likewise.
50776         * lib/strftime.h: Likewise.
50777         * lib/striconveh.c: Likewise.
50778         * lib/striconveh.h: Likewise.
50779         * lib/striconveha.c: Likewise.
50780         * lib/striconveha.h: Likewise.
50781         * lib/stripslash.c: Likewise.
50782         * lib/strnlen1.c: Likewise.
50783         * lib/strnlen1.h: Likewise.
50784         * lib/strtod.c: Likewise.
50785         * lib/strtoimax.c: Likewise.
50786         * lib/strtok_r.c: Likewise.
50787         * lib/strtol.c: Likewise.
50788         * lib/strtoll.c: Likewise.
50789         * lib/strtoul.c: Likewise.
50790         * lib/strtoull.c: Likewise.
50791         * lib/sysexits.in.h: Likewise.
50792         * lib/tempname.c: Likewise.
50793         * lib/tempname.h: Likewise.
50794         * lib/timespec.h: Likewise.
50795         * lib/tls.c: Likewise.
50796         * lib/tls.h: Likewise.
50797         * lib/tmpdir.c: Likewise.
50798         * lib/tmpdir.h: Likewise.
50799         * lib/tmpfile-safer.c: Likewise.
50800         * lib/tmpfile.c: Likewise.
50801         * lib/trigl.c: Likewise.
50802         * lib/trigl.h: Likewise.
50803         * lib/trim.c: Likewise.
50804         * lib/trim.h: Likewise.
50805         * lib/trunc.c: Likewise.
50806         * lib/truncf.c: Likewise.
50807         * lib/truncl.c: Likewise.
50808         * lib/tsearch.c: Likewise.
50809         * lib/unicodeio.c: Likewise.
50810         * lib/unicodeio.h: Likewise.
50811         * lib/unistd--.h: Likewise.
50812         * lib/unistd-safer.h: Likewise.
50813         * lib/unistdio/ulc-fprintf.c: Likewise.
50814         * lib/unistdio/ulc-vfprintf.c: Likewise.
50815         * lib/unlinkdir.c: Likewise.
50816         * lib/unlinkdir.h: Likewise.
50817         * lib/unlocked-io.h: Likewise.
50818         * lib/unsetenv.c: Likewise.
50819         * lib/userspec.c: Likewise.
50820         * lib/utime.c: Likewise.
50821         * lib/utimecmp.c: Likewise.
50822         * lib/utimecmp.h: Likewise.
50823         * lib/utimens.c: Likewise.
50824         * lib/verify.h: Likewise.
50825         * lib/verror.c: Likewise.
50826         * lib/verror.h: Likewise.
50827         * lib/version-etc-fsf.c: Likewise.
50828         * lib/version-etc.c: Likewise.
50829         * lib/version-etc.h: Likewise.
50830         * lib/vfprintf.c: Likewise.
50831         * lib/vprintf.c: Likewise.
50832         * lib/vsprintf.c: Likewise.
50833         * lib/w32spawn.h: Likewise.
50834         * lib/wait-process.c: Likewise.
50835         * lib/wait-process.h: Likewise.
50836         * lib/wcwidth.c: Likewise.
50837         * lib/write-any-file.c: Likewise.
50838         * lib/xalloc-die.c: Likewise.
50839         * lib/xalloc.h: Likewise.
50840         * lib/xasprintf.c: Likewise.
50841         * lib/xgetcwd.c: Likewise.
50842         * lib/xgetcwd.h: Likewise.
50843         * lib/xgetdomainname.c: Likewise.
50844         * lib/xgetdomainname.h: Likewise.
50845         * lib/xgethostname.c: Likewise.
50846         * lib/xmalloc.c: Likewise.
50847         * lib/xmalloca.c: Likewise.
50848         * lib/xmalloca.h: Likewise.
50849         * lib/xmemcoll.c: Likewise.
50850         * lib/xnanosleep.c: Likewise.
50851         * lib/xreadlink.c: Likewise.
50852         * lib/xreadlink.h: Likewise.
50853         * lib/xsetenv.c: Likewise.
50854         * lib/xsetenv.h: Likewise.
50855         * lib/xstriconv.c: Likewise.
50856         * lib/xstriconv.h: Likewise.
50857         * lib/xstrndup.c: Likewise.
50858         * lib/xstrndup.h: Likewise.
50859         * lib/xstrtod.c: Likewise.
50860         * lib/xstrtod.h: Likewise.
50861         * lib/xstrtol-error.c: Likewise.
50862         * lib/xstrtol.c: Likewise.
50863         * lib/xstrtol.h: Likewise.
50864         * lib/xtime.h: Likewise.
50865         * lib/xvasprintf.c: Likewise.
50866         * lib/xvasprintf.h: Likewise.
50867         * lib/yesno.c: Likewise.
50868         * lib/yesno.h: Likewise.
50869         * posix-modules: Likewise.
50870         * tests/test-alloca-opt.c: Likewise.
50871         * tests/test-arcfour.c: Likewise.
50872         * tests/test-arctwo.c: Likewise.
50873         * tests/test-argmatch.c: Likewise.
50874         * tests/test-argp-2.sh: Likewise.
50875         * tests/test-argp.c: Likewise.
50876         * tests/test-arpa_inet.c: Likewise.
50877         * tests/test-array_list.c: Likewise.
50878         * tests/test-array_oset.c: Likewise.
50879         * tests/test-atexit.c: Likewise.
50880         * tests/test-avltree_list.c: Likewise.
50881         * tests/test-avltree_oset.c: Likewise.
50882         * tests/test-avltreehash_list.c: Likewise.
50883         * tests/test-base64.c: Likewise.
50884         * tests/test-binary-io.c: Likewise.
50885         * tests/test-byteswap.c: Likewise.
50886         * tests/test-c-ctype.c: Likewise.
50887         * tests/test-c-strcasecmp.c: Likewise.
50888         * tests/test-c-strcasestr.c: Likewise.
50889         * tests/test-c-strncasecmp.c: Likewise.
50890         * tests/test-c-strstr.c: Likewise.
50891         * tests/test-canonicalize-lgpl.c: Likewise.
50892         * tests/test-canonicalize.c: Likewise.
50893         * tests/test-carray_list.c: Likewise.
50894         * tests/test-ceilf.c: Likewise.
50895         * tests/test-ceill.c: Likewise.
50896         * tests/test-count-one-bits.c: Likewise.
50897         * tests/test-crc.c: Likewise.
50898         * tests/test-dirname.c: Likewise.
50899         * tests/test-fbufmode.c: Likewise.
50900         * tests/test-fcntl.c: Likewise.
50901         * tests/test-fflush.c: Likewise.
50902         * tests/test-floorf.c: Likewise.
50903         * tests/test-floorl.c: Likewise.
50904         * tests/test-fopen.c: Likewise.
50905         * tests/test-fprintf-posix.c: Likewise.
50906         * tests/test-fprintf-posix.h: Likewise.
50907         * tests/test-fpurge.c: Likewise.
50908         * tests/test-freadable.c: Likewise.
50909         * tests/test-freadahead.c: Likewise.
50910         * tests/test-freading.c: Likewise.
50911         * tests/test-freopen.c: Likewise.
50912         * tests/test-frexp.c: Likewise.
50913         * tests/test-frexpl.c: Likewise.
50914         * tests/test-fseek.c: Likewise.
50915         * tests/test-fseeko.c: Likewise.
50916         * tests/test-fseterr.c: Likewise.
50917         * tests/test-fstrcmp.c: Likewise.
50918         * tests/test-ftell.c: Likewise.
50919         * tests/test-ftello.c: Likewise.
50920         * tests/test-fwritable.c: Likewise.
50921         * tests/test-fwriting.c: Likewise.
50922         * tests/test-getaddrinfo.c: Likewise.
50923         * tests/test-getpass.c: Likewise.
50924         * tests/test-gettimeofday.c: Likewise.
50925         * tests/test-hmac-md5.c: Likewise.
50926         * tests/test-hmac-sha1.c: Likewise.
50927         * tests/test-iconv.c: Likewise.
50928         * tests/test-iconvme.c: Likewise.
50929         * tests/test-inttypes.c: Likewise.
50930         * tests/test-isnan.c: Likewise.
50931         * tests/test-isnanf.c: Likewise.
50932         * tests/test-isnanl-nolibm.c: Likewise.
50933         * tests/test-isnanl.c: Likewise.
50934         * tests/test-isnanl.h: Likewise.
50935         * tests/test-ldexpl.c: Likewise.
50936         * tests/test-linked_list.c: Likewise.
50937         * tests/test-linkedhash_list.c: Likewise.
50938         * tests/test-locale.c: Likewise.
50939         * tests/test-localename.c: Likewise.
50940         * tests/test-lock.c: Likewise.
50941         * tests/test-lseek.c: Likewise.
50942         * tests/test-malloca.c: Likewise.
50943         * tests/test-math.c: Likewise.
50944         * tests/test-mbscasecmp.c: Likewise.
50945         * tests/test-mbscasestr1.c: Likewise.
50946         * tests/test-mbscasestr2.c: Likewise.
50947         * tests/test-mbscasestr3.c: Likewise.
50948         * tests/test-mbscasestr4.c: Likewise.
50949         * tests/test-mbschr.c: Likewise.
50950         * tests/test-mbscspn.c: Likewise.
50951         * tests/test-mbsncasecmp.c: Likewise.
50952         * tests/test-mbspbrk.c: Likewise.
50953         * tests/test-mbspcasecmp.c: Likewise.
50954         * tests/test-mbsrchr.c: Likewise.
50955         * tests/test-mbsspn.c: Likewise.
50956         * tests/test-mbsstr1.c: Likewise.
50957         * tests/test-mbsstr2.c: Likewise.
50958         * tests/test-mbsstr3.c: Likewise.
50959         * tests/test-md5.c: Likewise.
50960         * tests/test-memmem.c: Likewise.
50961         * tests/test-netinet_in.c: Likewise.
50962         * tests/test-open.c: Likewise.
50963         * tests/test-printf-frexp.c: Likewise.
50964         * tests/test-printf-frexpl.c: Likewise.
50965         * tests/test-printf-posix.c: Likewise.
50966         * tests/test-printf-posix.h: Likewise.
50967         * tests/test-rbtree_list.c: Likewise.
50968         * tests/test-rbtree_oset.c: Likewise.
50969         * tests/test-rbtreehash_list.c: Likewise.
50970         * tests/test-read-file.c: Likewise.
50971         * tests/test-rijndael.c: Likewise.
50972         * tests/test-search.c: Likewise.
50973         * tests/test-signbit.c: Likewise.
50974         * tests/test-sleep.c: Likewise.
50975         * tests/test-snprintf-posix.c: Likewise.
50976         * tests/test-snprintf-posix.h: Likewise.
50977         * tests/test-snprintf.c: Likewise.
50978         * tests/test-sprintf-posix.c: Likewise.
50979         * tests/test-sprintf-posix.h: Likewise.
50980         * tests/test-stat-time.c: Likewise.
50981         * tests/test-stdbool.c: Likewise.
50982         * tests/test-stdint.c: Likewise.
50983         * tests/test-stdio.c: Likewise.
50984         * tests/test-stdlib.c: Likewise.
50985         * tests/test-stpncpy.c: Likewise.
50986         * tests/test-strcasestr.c: Likewise.
50987         * tests/test-striconv.c: Likewise.
50988         * tests/test-striconveh.c: Likewise.
50989         * tests/test-striconveha.c: Likewise.
50990         * tests/test-string.c: Likewise.
50991         * tests/test-sys_select.c: Likewise.
50992         * tests/test-sys_socket.c: Likewise.
50993         * tests/test-sys_stat.c: Likewise.
50994         * tests/test-sys_time.c: Likewise.
50995         * tests/test-sysexits.c: Likewise.
50996         * tests/test-time.c: Likewise.
50997         * tests/test-tls.c: Likewise.
50998         * tests/test-trunc.c: Likewise.
50999         * tests/test-truncf.c: Likewise.
51000         * tests/test-truncl.c: Likewise.
51001         * tests/test-unistd.c: Likewise.
51002         * tests/test-vasnprintf-posix.c: Likewise.
51003         * tests/test-vasnprintf-posix2.c: Likewise.
51004         * tests/test-vasnprintf.c: Likewise.
51005         * tests/test-vasprintf-posix.c: Likewise.
51006         * tests/test-vasprintf.c: Likewise.
51007         * tests/test-verify.c: Likewise.
51008         * tests/test-vfprintf-posix.c: Likewise.
51009         * tests/test-vprintf-posix.c: Likewise.
51010         * tests/test-vsnprintf-posix.c: Likewise.
51011         * tests/test-vsnprintf.c: Likewise.
51012         * tests/test-vsprintf-posix.c: Likewise.
51013         * tests/test-wchar.c: Likewise.
51014         * tests/test-wctype.c: Likewise.
51015         * tests/test-wcwidth.c: Likewise.
51016         * tests/test-xstrtol.c: Likewise.
51017         * tests/test-xvasprintf.c: Likewise.
51018         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
51019         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
51020         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
51021         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
51022         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
51023         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
51024         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
51025         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
51026         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
51027         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
51028         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
51029         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
51030         * tests/uniname/test-uninames.c: Likewise.
51031         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
51032         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
51033         * tests/unistdio/test-u16-printf1.h: Likewise.
51034         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
51035         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
51036         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
51037         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
51038         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
51039         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
51040         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
51041         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
51042         * tests/unistdio/test-u32-printf1.h: Likewise.
51043         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
51044         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
51045         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
51046         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
51047         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
51048         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
51049         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
51050         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
51051         * tests/unistdio/test-u8-printf1.h: Likewise.
51052         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
51053         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
51054         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
51055         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
51056         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
51057         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
51058         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
51059         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
51060         * tests/unistdio/test-ulc-printf1.h: Likewise.
51061         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
51062         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
51063         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
51064         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
51065         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
51066         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
51067         * tests/uniwidth/test-u16-strwidth.c: Likewise.
51068         * tests/uniwidth/test-u16-width.c: Likewise.
51069         * tests/uniwidth/test-u32-strwidth.c: Likewise.
51070         * tests/uniwidth/test-u32-width.c: Likewise.
51071         * tests/uniwidth/test-u8-strwidth.c: Likewise.
51072         * tests/uniwidth/test-u8-width.c: Likewise.
51073         * tests/uniwidth/test-uc_width.c: Likewise.
51074         * config/srclist-update: Likewise.
51075         (fixlicense): Update to GPLv3+.
51076
51077         Change copyright notice from LGPLv2.1+ to LGPLv3+.
51078         * tests/test-tsearch.c: Change copyright notice.
51079
51080         Change copyright notice from LGPLv2.0+ to LGPLv3+.
51081         * lib/c-strcaseeq.h: Change copyright notice.
51082         * lib/streq.h: Likewise.
51083         * lib/uniconv.h: Likewise.
51084         * lib/uniconv/u-conv-from-enc.h: Likewise.
51085         * lib/uniconv/u-conv-to-enc.h: Likewise.
51086         * lib/uniconv/u-strconv-from-enc.h: Likewise.
51087         * lib/uniconv/u-strconv-to-enc.h: Likewise.
51088         * lib/uniconv/u16-conv-from-enc.c: Likewise.
51089         * lib/uniconv/u16-conv-to-enc.c: Likewise.
51090         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
51091         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
51092         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
51093         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
51094         * lib/uniconv/u32-conv-from-enc.c: Likewise.
51095         * lib/uniconv/u32-conv-to-enc.c: Likewise.
51096         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
51097         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
51098         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
51099         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
51100         * lib/uniconv/u8-conv-from-enc.c: Likewise.
51101         * lib/uniconv/u8-conv-to-enc.c: Likewise.
51102         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
51103         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
51104         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
51105         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
51106         * lib/uniname.h: Likewise.
51107         * lib/uniname/uniname.c: Likewise.
51108         * lib/unistdio.h: Likewise.
51109         * lib/unistdio/u-asnprintf.h: Likewise.
51110         * lib/unistdio/u-asprintf.h: Likewise.
51111         * lib/unistdio/u-printf-args.c: Likewise.
51112         * lib/unistdio/u-printf-args.h: Likewise.
51113         * lib/unistdio/u-printf-parse.h: Likewise.
51114         * lib/unistdio/u-snprintf.h: Likewise.
51115         * lib/unistdio/u-sprintf.h: Likewise.
51116         * lib/unistdio/u-vasprintf.h: Likewise.
51117         * lib/unistdio/u-vsnprintf.h: Likewise.
51118         * lib/unistdio/u-vsprintf.h: Likewise.
51119         * lib/unistdio/u16-asnprintf.c: Likewise.
51120         * lib/unistdio/u16-asprintf.c: Likewise.
51121         * lib/unistdio/u16-printf-parse.c: Likewise.
51122         * lib/unistdio/u16-snprintf.c: Likewise.
51123         * lib/unistdio/u16-sprintf.c: Likewise.
51124         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
51125         * lib/unistdio/u16-u16-asprintf.c: Likewise.
51126         * lib/unistdio/u16-u16-snprintf.c: Likewise.
51127         * lib/unistdio/u16-u16-sprintf.c: Likewise.
51128         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
51129         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
51130         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
51131         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
51132         * lib/unistdio/u16-vasnprintf.c: Likewise.
51133         * lib/unistdio/u16-vasprintf.c: Likewise.
51134         * lib/unistdio/u16-vsnprintf.c: Likewise.
51135         * lib/unistdio/u16-vsprintf.c: Likewise.
51136         * lib/unistdio/u32-asnprintf.c: Likewise.
51137         * lib/unistdio/u32-asprintf.c: Likewise.
51138         * lib/unistdio/u32-printf-parse.c: Likewise.
51139         * lib/unistdio/u32-snprintf.c: Likewise.
51140         * lib/unistdio/u32-sprintf.c: Likewise.
51141         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
51142         * lib/unistdio/u32-u32-asprintf.c: Likewise.
51143         * lib/unistdio/u32-u32-snprintf.c: Likewise.
51144         * lib/unistdio/u32-u32-sprintf.c: Likewise.
51145         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
51146         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
51147         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
51148         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
51149         * lib/unistdio/u32-vasnprintf.c: Likewise.
51150         * lib/unistdio/u32-vasprintf.c: Likewise.
51151         * lib/unistdio/u32-vsnprintf.c: Likewise.
51152         * lib/unistdio/u32-vsprintf.c: Likewise.
51153         * lib/unistdio/u8-asnprintf.c: Likewise.
51154         * lib/unistdio/u8-asprintf.c: Likewise.
51155         * lib/unistdio/u8-printf-parse.c: Likewise.
51156         * lib/unistdio/u8-snprintf.c: Likewise.
51157         * lib/unistdio/u8-sprintf.c: Likewise.
51158         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
51159         * lib/unistdio/u8-u8-asprintf.c: Likewise.
51160         * lib/unistdio/u8-u8-snprintf.c: Likewise.
51161         * lib/unistdio/u8-u8-sprintf.c: Likewise.
51162         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
51163         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
51164         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
51165         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
51166         * lib/unistdio/u8-vasnprintf.c: Likewise.
51167         * lib/unistdio/u8-vasprintf.c: Likewise.
51168         * lib/unistdio/u8-vsnprintf.c: Likewise.
51169         * lib/unistdio/u8-vsprintf.c: Likewise.
51170         * lib/unistdio/ulc-asnprintf.c: Likewise.
51171         * lib/unistdio/ulc-asprintf.c: Likewise.
51172         * lib/unistdio/ulc-printf-parse.c: Likewise.
51173         * lib/unistdio/ulc-snprintf.c: Likewise.
51174         * lib/unistdio/ulc-sprintf.c: Likewise.
51175         * lib/unistdio/ulc-vasnprintf.c: Likewise.
51176         * lib/unistdio/ulc-vasprintf.c: Likewise.
51177         * lib/unistdio/ulc-vsnprintf.c: Likewise.
51178         * lib/unistdio/ulc-vsprintf.c: Likewise.
51179         * lib/unistr.h: Likewise.
51180         * lib/unistr/u-cpy-alloc.h: Likewise.
51181         * lib/unistr/u-cpy.h: Likewise.
51182         * lib/unistr/u-endswith.h: Likewise.
51183         * lib/unistr/u-move.h: Likewise.
51184         * lib/unistr/u-set.h: Likewise.
51185         * lib/unistr/u-startswith.h: Likewise.
51186         * lib/unistr/u-stpcpy.h: Likewise.
51187         * lib/unistr/u-stpncpy.h: Likewise.
51188         * lib/unistr/u-strcat.h: Likewise.
51189         * lib/unistr/u-strcpy.h: Likewise.
51190         * lib/unistr/u-strcspn.h: Likewise.
51191         * lib/unistr/u-strdup.h: Likewise.
51192         * lib/unistr/u-strlen.h: Likewise.
51193         * lib/unistr/u-strncat.h: Likewise.
51194         * lib/unistr/u-strncpy.h: Likewise.
51195         * lib/unistr/u-strnlen.h: Likewise.
51196         * lib/unistr/u-strpbrk.h: Likewise.
51197         * lib/unistr/u-strspn.h: Likewise.
51198         * lib/unistr/u-strstr.h: Likewise.
51199         * lib/unistr/u-strtok.h: Likewise.
51200         * lib/unistr/u16-check.c: Likewise.
51201         * lib/unistr/u16-chr.c: Likewise.
51202         * lib/unistr/u16-cmp.c: Likewise.
51203         * lib/unistr/u16-cpy-alloc.c: Likewise.
51204         * lib/unistr/u16-cpy.c: Likewise.
51205         * lib/unistr/u16-endswith.c: Likewise.
51206         * lib/unistr/u16-mblen.c: Likewise.
51207         * lib/unistr/u16-mbsnlen.c: Likewise.
51208         * lib/unistr/u16-mbtouc-aux.c: Likewise.
51209         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
51210         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
51211         * lib/unistr/u16-mbtouc.c: Likewise.
51212         * lib/unistr/u16-mbtoucr.c: Likewise.
51213         * lib/unistr/u16-move.c: Likewise.
51214         * lib/unistr/u16-next.c: Likewise.
51215         * lib/unistr/u16-prev.c: Likewise.
51216         * lib/unistr/u16-set.c: Likewise.
51217         * lib/unistr/u16-startswith.c: Likewise.
51218         * lib/unistr/u16-stpcpy.c: Likewise.
51219         * lib/unistr/u16-stpncpy.c: Likewise.
51220         * lib/unistr/u16-strcat.c: Likewise.
51221         * lib/unistr/u16-strchr.c: Likewise.
51222         * lib/unistr/u16-strcmp.c: Likewise.
51223         * lib/unistr/u16-strcpy.c: Likewise.
51224         * lib/unistr/u16-strcspn.c: Likewise.
51225         * lib/unistr/u16-strdup.c: Likewise.
51226         * lib/unistr/u16-strlen.c: Likewise.
51227         * lib/unistr/u16-strmblen.c: Likewise.
51228         * lib/unistr/u16-strmbtouc.c: Likewise.
51229         * lib/unistr/u16-strncat.c: Likewise.
51230         * lib/unistr/u16-strncmp.c: Likewise.
51231         * lib/unistr/u16-strncpy.c: Likewise.
51232         * lib/unistr/u16-strnlen.c: Likewise.
51233         * lib/unistr/u16-strpbrk.c: Likewise.
51234         * lib/unistr/u16-strrchr.c: Likewise.
51235         * lib/unistr/u16-strspn.c: Likewise.
51236         * lib/unistr/u16-strstr.c: Likewise.
51237         * lib/unistr/u16-strtok.c: Likewise.
51238         * lib/unistr/u16-to-u32.c: Likewise.
51239         * lib/unistr/u16-to-u8.c: Likewise.
51240         * lib/unistr/u16-uctomb-aux.c: Likewise.
51241         * lib/unistr/u16-uctomb.c: Likewise.
51242         * lib/unistr/u32-check.c: Likewise.
51243         * lib/unistr/u32-chr.c: Likewise.
51244         * lib/unistr/u32-cmp.c: Likewise.
51245         * lib/unistr/u32-cpy-alloc.c: Likewise.
51246         * lib/unistr/u32-cpy.c: Likewise.
51247         * lib/unistr/u32-endswith.c: Likewise.
51248         * lib/unistr/u32-mblen.c: Likewise.
51249         * lib/unistr/u32-mbsnlen.c: Likewise.
51250         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
51251         * lib/unistr/u32-mbtouc.c: Likewise.
51252         * lib/unistr/u32-mbtoucr.c: Likewise.
51253         * lib/unistr/u32-move.c: Likewise.
51254         * lib/unistr/u32-next.c: Likewise.
51255         * lib/unistr/u32-prev.c: Likewise.
51256         * lib/unistr/u32-set.c: Likewise.
51257         * lib/unistr/u32-startswith.c: Likewise.
51258         * lib/unistr/u32-stpcpy.c: Likewise.
51259         * lib/unistr/u32-stpncpy.c: Likewise.
51260         * lib/unistr/u32-strcat.c: Likewise.
51261         * lib/unistr/u32-strchr.c: Likewise.
51262         * lib/unistr/u32-strcmp.c: Likewise.
51263         * lib/unistr/u32-strcpy.c: Likewise.
51264         * lib/unistr/u32-strcspn.c: Likewise.
51265         * lib/unistr/u32-strdup.c: Likewise.
51266         * lib/unistr/u32-strlen.c: Likewise.
51267         * lib/unistr/u32-strmblen.c: Likewise.
51268         * lib/unistr/u32-strmbtouc.c: Likewise.
51269         * lib/unistr/u32-strncat.c: Likewise.
51270         * lib/unistr/u32-strncmp.c: Likewise.
51271         * lib/unistr/u32-strncpy.c: Likewise.
51272         * lib/unistr/u32-strnlen.c: Likewise.
51273         * lib/unistr/u32-strpbrk.c: Likewise.
51274         * lib/unistr/u32-strrchr.c: Likewise.
51275         * lib/unistr/u32-strspn.c: Likewise.
51276         * lib/unistr/u32-strstr.c: Likewise.
51277         * lib/unistr/u32-strtok.c: Likewise.
51278         * lib/unistr/u32-to-u16.c: Likewise.
51279         * lib/unistr/u32-to-u8.c: Likewise.
51280         * lib/unistr/u32-uctomb.c: Likewise.
51281         * lib/unistr/u8-check.c: Likewise.
51282         * lib/unistr/u8-chr.c: Likewise.
51283         * lib/unistr/u8-cmp.c: Likewise.
51284         * lib/unistr/u8-cpy-alloc.c: Likewise.
51285         * lib/unistr/u8-cpy.c: Likewise.
51286         * lib/unistr/u8-endswith.c: Likewise.
51287         * lib/unistr/u8-mblen.c: Likewise.
51288         * lib/unistr/u8-mbsnlen.c: Likewise.
51289         * lib/unistr/u8-mbtouc-aux.c: Likewise.
51290         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
51291         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
51292         * lib/unistr/u8-mbtouc.c: Likewise.
51293         * lib/unistr/u8-mbtoucr.c: Likewise.
51294         * lib/unistr/u8-move.c: Likewise.
51295         * lib/unistr/u8-next.c: Likewise.
51296         * lib/unistr/u8-prev.c: Likewise.
51297         * lib/unistr/u8-set.c: Likewise.
51298         * lib/unistr/u8-startswith.c: Likewise.
51299         * lib/unistr/u8-stpcpy.c: Likewise.
51300         * lib/unistr/u8-stpncpy.c: Likewise.
51301         * lib/unistr/u8-strcat.c: Likewise.
51302         * lib/unistr/u8-strchr.c: Likewise.
51303         * lib/unistr/u8-strcmp.c: Likewise.
51304         * lib/unistr/u8-strcpy.c: Likewise.
51305         * lib/unistr/u8-strcspn.c: Likewise.
51306         * lib/unistr/u8-strdup.c: Likewise.
51307         * lib/unistr/u8-strlen.c: Likewise.
51308         * lib/unistr/u8-strmblen.c: Likewise.
51309         * lib/unistr/u8-strmbtouc.c: Likewise.
51310         * lib/unistr/u8-strncat.c: Likewise.
51311         * lib/unistr/u8-strncmp.c: Likewise.
51312         * lib/unistr/u8-strncpy.c: Likewise.
51313         * lib/unistr/u8-strnlen.c: Likewise.
51314         * lib/unistr/u8-strpbrk.c: Likewise.
51315         * lib/unistr/u8-strrchr.c: Likewise.
51316         * lib/unistr/u8-strspn.c: Likewise.
51317         * lib/unistr/u8-strstr.c: Likewise.
51318         * lib/unistr/u8-strtok.c: Likewise.
51319         * lib/unistr/u8-to-u16.c: Likewise.
51320         * lib/unistr/u8-to-u32.c: Likewise.
51321         * lib/unistr/u8-uctomb-aux.c: Likewise.
51322         * lib/unistr/u8-uctomb.c: Likewise.
51323         * lib/unitypes.h: Likewise.
51324         * lib/uniwidth.h: Likewise.
51325         * lib/uniwidth/cjk.h: Likewise.
51326         * lib/uniwidth/u16-strwidth.c: Likewise.
51327         * lib/uniwidth/u16-width.c: Likewise.
51328         * lib/uniwidth/u32-strwidth.c: Likewise.
51329         * lib/uniwidth/u32-width.c: Likewise.
51330         * lib/uniwidth/u8-strwidth.c: Likewise.
51331         * lib/uniwidth/u8-width.c: Likewise.
51332         * lib/uniwidth/width.c: Likewise.
51333
51334 2007-10-07  Bruno Haible  <bruno@clisp.org>
51335
51336         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
51337         The file is still under LGPL (see modules/inttypes).
51338
51339 2007-10-06  Bruno Haible  <bruno@clisp.org>
51340
51341         * modules/trunc (Dependencies): Add 'extensions'.
51342         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
51343         Reported by Ben Pfaff <blp@gnu.org>.
51344
51345 2007-10-06  Bruno Haible  <bruno@clisp.org>
51346
51347         * modules/freopen-tests: New file.
51348         * tests/test-freopen.c: New file.
51349
51350         * modules/fopen-tests: New file.
51351         * tests/test-fopen.c: New file.
51352
51353         * modules/fopen: New file.
51354         * lib/fopen.c: New file.
51355         * m4/fopen.m4: New file.
51356         * modules/freopen: New file.
51357         * lib/freopen.c: New file.
51358         * m4/freopen.m4: New file.
51359         * lib/stdio.in.h (fopen, freopen): New declarations.
51360         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
51361         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
51362         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
51363         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
51364         * doc/functions/fopen.texi: Mention the 'fopen' module.
51365         * doc/functions/freopen.texi: Mention the 'freopen' module.
51366
51367 2007-10-06  Bruno Haible  <bruno@clisp.org>
51368
51369         * modules/open-tests: New file.
51370         * tests/test-open.c: New file.
51371
51372         * modules/open: New file.
51373         * lib/open.c: New file.
51374         * m4/open.m4: New file.
51375         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
51376         lib/open.c does.
51377         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
51378         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
51379         macros.
51380         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
51381         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
51382         REPLACE_OPEN.
51383         * doc/functions/open.texi: Mention the 'open' module.
51384
51385 2007-10-04  Bruno Haible  <bruno@clisp.org>
51386
51387         * modules/ceill-tests: New file.
51388         * tests/test-ceill.c: New file.
51389
51390         * modules/ceill: New file.
51391         * lib/ceill.c: Replace entire file.
51392         * m4/ceill.m4: New file.
51393         * lib/math.in.h (ceill): Replace declaration.
51394         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
51395         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
51396         * doc/functions/ceill.texi: Mention the 'ceill' module.
51397         * modules/mathl (Files): Remove lib/ceill.c.
51398         (Depends-on): Add ceill.
51399
51400 2007-10-04  Bruno Haible  <bruno@clisp.org>
51401
51402         * modules/ceilf-tests: New file.
51403         * tests/test-ceilf.c: New file.
51404
51405         * modules/ceilf: New file.
51406         * lib/ceil.c: New file.
51407         * lib/ceilf.c: New file.
51408         * m4/ceilf.m4: New file.
51409         * lib/math.in.h (ceilf): New declaration.
51410         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
51411         HAVE_DECL_CEILF.
51412         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
51413         HAVE_DECL_CEILF.
51414         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
51415
51416 2007-10-04  Bruno Haible  <bruno@clisp.org>
51417
51418         * modules/floorl-tests: New file.
51419         * tests/test-floorl.c: New file.
51420
51421         * modules/floorl: New file.
51422         * lib/floorl.c: Replace entire file.
51423         * m4/floorl.m4: New file.
51424         * lib/math.in.h (floorl): Replace declaration.
51425         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
51426         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
51427         * doc/functions/floorl.texi: Mention the 'floorl' module.
51428         * modules/mathl (Files): Remove lib/floorl.c.
51429         (Depends-on): Add floorl.
51430
51431 2007-10-04  Bruno Haible  <bruno@clisp.org>
51432
51433         * modules/floorf-tests: New file.
51434         * tests/test-floorf.c: New file.
51435
51436         * modules/floorf: New file.
51437         * lib/floor.c: New file.
51438         * lib/floorf.c: New file.
51439         * m4/floorf.m4: New file.
51440         * lib/math.in.h (floorf): New declaration.
51441         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
51442         HAVE_DECL_FLOORF.
51443         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
51444         HAVE_DECL_FLOORF.
51445         * doc/functions/floorf.texi: Mention the 'floorf' module.
51446
51447 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
51448             Bruno Haible  <bruno@clisp.org>
51449
51450         Advertise for the Git server instead of the CVS server.
51451         * doc/gnulib-intro.texi (Steady Development): Mention the Git
51452         repository instead of the CVS one.
51453         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
51454         about all VCS systems generically.
51455         * doc/gnulib.texi (Introduction): Capitalize `Git'.
51456
51457 2007-10-04  Bruno Haible  <bruno@clisp.org>
51458
51459         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
51460         means.
51461         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
51462
51463 2007-10-04  Bruno Haible  <bruno@clisp.org>
51464
51465         * modules/truncl-tests: New file.
51466         * tests/test-truncl.c: New file.
51467
51468         * modules/truncl: New file.
51469         * lib/truncl.c: New file.
51470         * m4/truncl.m4: New file.
51471         * lib/math.in.h (truncl): New declaration.
51472         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
51473         HAVE_DECL_TRUNCL.
51474         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
51475         HAVE_DECL_TRUNCL.
51476         * doc/functions/truncl.texi: Mention the 'truncl' module.
51477
51478 2007-10-04  Bruno Haible  <bruno@clisp.org>
51479
51480         * modules/truncf-tests: New file.
51481         * tests/test-truncf.c: New file.
51482
51483         * modules/truncf: New file.
51484         * lib/trunc.c: Make paramerizable through USE_* macros.
51485         * lib/truncf.c: New file.
51486         * m4/truncf.m4: New file.
51487         * lib/math.in.h (truncf): New declaration.
51488         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
51489         HAVE_DECL_TRUNCF.
51490         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
51491         HAVE_DECL_TRUNCF.
51492         * doc/functions/truncf.texi: Mention the 'truncf' module.
51493
51494 2007-10-03  Bruno Haible  <bruno@clisp.org>
51495
51496         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51497         augmentation also for tests modules.
51498         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
51499         * modules/atexit-tests (Makefile.am): Likewise.
51500         * modules/binary-io-tests (Makefile.am): Likewise.
51501         * modules/c-strcase-tests (Makefile.am): Likewise.
51502         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
51503         * modules/canonicalize-tests (Makefile.am): Likewise.
51504         * modules/closein-tests (Makefile.am): Likewise.
51505         * modules/fprintf-posix-tests (Makefile.am): Likewise.
51506         * modules/freadahead-tests (Makefile.am): Likewise.
51507         * modules/fseek-tests (Makefile.am): Likewise.
51508         * modules/fseeko-tests (Makefile.am): Likewise.
51509         * modules/ftell-tests (Makefile.am): Likewise.
51510         * modules/ftello-tests (Makefile.am): Likewise.
51511         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
51512         * modules/isnanl-tests (Makefile.am): Likewise.
51513         * modules/lseek-tests (Makefile.am): Likewise.
51514         * modules/mbscasecmp-tests (Makefile.am): Likewise.
51515         * modules/mbscasestr-tests (Makefile.am): Likewise.
51516         * modules/mbschr-tests (Makefile.am): Likewise.
51517         * modules/mbscspn-tests (Makefile.am): Likewise.
51518         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
51519         * modules/mbspbrk-tests (Makefile.am): Likewise.
51520         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
51521         * modules/mbsrchr-tests (Makefile.am): Likewise.
51522         * modules/mbsspn-tests (Makefile.am): Likewise.
51523         * modules/mbsstr-tests (Makefile.am): Likewise.
51524         * modules/printf-posix-tests (Makefile.am): Likewise.
51525         * modules/snprintf-posix-tests (Makefile.am): Likewise.
51526         * modules/sprintf-posix-tests (Makefile.am): Likewise.
51527         * modules/tsearch-tests (Makefile.am): Likewise.
51528         * modules/uniname/uniname-tests (Makefile.am): Likewise.
51529         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
51530         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
51531         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
51532         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
51533         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
51534         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
51535         * modules/vprintf-posix-tests (Makefile.am): Likewise.
51536         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
51537         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
51538         * modules/xstrtoimax-tests (Makefile.am): Likewise.
51539         * modules/xstrtol-tests (Makefile.am): Likewise.
51540         * modules/xstrtoumax-tests (Makefile.am): Likewise.
51541         * modules/yesno-tests (Makefile.am): Likewise.
51542
51543 2007-10-03  Bruno Haible  <bruno@clisp.org>
51544
51545         * modules/trunc-tests: New file.
51546         * tests/test-trunc.c: New file.
51547
51548         * modules/trunc: New file.
51549         * lib/trunc.c: New file.
51550         * m4/trunc.m4: New file.
51551         * lib/math.in.h (trunc): New declaration.
51552         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
51553         HAVE_DECL_TRUNC.
51554         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
51555         HAVE_DECL_TRUNC.
51556         * doc/functions/trunc.texi: Mention the 'trunc' module.
51557
51558 2007-10-03  Bruno Haible  <bruno@clisp.org>
51559
51560         * tests/test-fpending.c: New file, mostly copied
51561         from coreutils/lib/t-fpending.c.
51562         * modules/fpending-tests: New file.
51563
51564 2007-10-03  Bruno Haible  <bruno@clisp.org>
51565
51566         Port the stdio extensions to QNX (untested).
51567         * lib/fseterr.c (fseterr): Add support for QNX.
51568         * lib/fbufmode.c (fbufmode): Likewise.
51569         * lib/freadable.c (freadable): Likewise.
51570         * lib/fwritable.c (fwritable): Likewise.
51571         * lib/freading.c (freading): Likewise.
51572         * lib/fwriting.c (fwriting): Likewise.
51573         * lib/freadahead.c (freadahed): Likewise.
51574         * lib/fpurge.c (fpurge): Likewise.
51575         * lib/fseeko.c (rpl_fseeko): Likewise.
51576
51577 2007-10-03  Bruno Haible  <bruno@clisp.org>
51578             Jim Meyering  <jim@meyering.net>
51579             Eric Blake  <ebb9@byu.net>
51580
51581         * doc/relocatable.texi: Use @command instead of @program.
51582
51583 2007-10-02  Jim Meyering  <jim@meyering.net>
51584
51585         Perform one more "_.h" -> ".in.h" substitution.
51586         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
51587         instead of unistd_.h here, too.
51588
51589 2007-10-01  Bruno Haible  <bruno@clisp.org>
51590
51591         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
51592         Needed for the alloca-opt module.
51593
51594 2007-09-30  Bruno Haible  <bruno@clisp.org>
51595
51596         * lib/alloca.in.h: Renamed from lib/alloca_.h.
51597         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
51598         alloca_.h.
51599         * lib/argz.in.h: Renamed from lib/argz_.h.
51600         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
51601         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
51602         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
51603         byteswap_.h.
51604         * lib/dirent.in.h: Renamed from lib/dirent_.h.
51605         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
51606         dirent_.h.
51607         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
51608         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
51609         fcntl_.h.
51610         * lib/float.in.h: Renamed from lib/float_.h.
51611         * modules/float (Files, Makefile.am): Use float.in.h instead of
51612         float_.h.
51613         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
51614         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
51615         fnmatch_.h.
51616         * lib/getopt.in.h: Renamed from lib/getopt_.h.
51617         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
51618         getopt_.h.
51619         * lib/glob.in.h: Renamed from lib/glob_.h.
51620         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
51621         * lib/iconv.in.h: Renamed from lib/iconv_.h.
51622         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
51623         iconv_.h.
51624         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
51625         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
51626         inttypes_.h.
51627         * lib/locale.in.h: Renamed from lib/locale_.h.
51628         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
51629         locale_.h.
51630         * lib/math.in.h: Renamed from lib/math_.h.
51631         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
51632         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
51633         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
51634         of netinet_in_.h. Add dependency.
51635         * lib/poll.in.h: Renamed from lib/poll_.h.
51636         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
51637         * lib/search.in.h: Renamed from lib/search_.h.
51638         * modules/search (Files, Makefile.am): Use search.in.h instead of
51639         search_.h.
51640         * lib/signal.in.h: Renamed from lib/signal_.h.
51641         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
51642         _signal.h.
51643         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
51644         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
51645         stdbool_.h.
51646         * lib/stdint.in.h: Renamed from lib/stdint_.h.
51647         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
51648         stdint_.h.
51649         * lib/stdio.in.h: Renamed from lib/stdio_.h.
51650         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
51651         stdio_.h.
51652         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
51653         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
51654         stdlib_.h.
51655         * lib/string.in.h: Renamed from lib/string_.h.
51656         * modules/string (Files, Makefile.am): Use string.in.h instead of
51657         string_.h.
51658         * doc/gnulib-tool.texi (Initial import): Update.
51659         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
51660         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
51661         of sys_select_.h. Add dependency.
51662         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
51663         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
51664         of sys_socket_.h.
51665         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
51666         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
51667         sys_stat_.h.
51668         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
51669         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
51670         sys_time_.h.
51671         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
51672         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
51673         sysexits_.h.
51674         * lib/time.in.h: Renamed from lib/time_.h.
51675         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
51676         * lib/unistd.in.h: Renamed from lib/unistd_.h.
51677         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
51678         unistd_.h.
51679         * lib/wchar.in.h: Renamed from lib/wchar_.h.
51680         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
51681         wchar_.h.
51682         * lib/wctype.in.h: Renamed from lib/wctype_.h.
51683         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
51684         wctype_.h.
51685         * build-aux/bootstrap (slurp): Update.
51686         * lib/.cppi-disable: Update.
51687
51688 2007-09-30  Bruno Haible  <bruno@clisp.org>
51689
51690         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
51691         Needed on BeOS.
51692
51693 2007-09-30  Bruno Haible  <bruno@clisp.org>
51694
51695         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
51696
51697 2007-09-29  Bruno Haible  <bruno@clisp.org>
51698
51699         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
51700
51701 2007-09-29  Bruno Haible  <bruno@clisp.org>
51702
51703         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
51704         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
51705         * build-aux/install-reloc: Compile also areadlink.c.
51706         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
51707
51708 2007-09-29  Bruno Haible  <bruno@clisp.org>
51709
51710         * gnulib-tool (func_emit_initmacro_done): Indentation.
51711
51712 2007-09-29  Bruno Haible  <bruno@clisp.org>
51713
51714         * README: Add CVS checkout update instructions.
51715         Info from Bob Proulx <bob@proulx.com>.
51716
51717 2007-09-28  Eric Blake  <ebb9@byu.net>
51718
51719         Provide move-if-change.
51720         * build-aux/move-if-change: New file, based on best practice
51721         rather than any canonical upstream location.
51722
51723 2007-09-28  Jim Meyering  <jim@meyering.net>
51724
51725         Fix canonicalize loop-detection corner case.
51726         Do not attempt to stat the symlink values stored via seen_triple.
51727         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
51728         on linux-2.6.18, (but not 2.6.22).
51729         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
51730         triple_compare.  The former compares dev,ino,filename, while the latter
51731         would actually stat dirname(filename) when dev and ino were equal.
51732         * lib/hash-triple.c: Install <string.h>.
51733         (STREQ): Define.
51734         (triple_compare_ino_str): New function.
51735         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
51736
51737 2007-09-28  Eric Blake  <ebb9@byu.net>
51738
51739         Enforce that AC_REPLACE_FUNCS files exist.
51740         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
51741         override check for typos.
51742
51743         Fix test-closein on Solaris 10.
51744         * tests/test-closein.c (main): Don't assume stdin can be inherited
51745         closed on all systems.
51746         * tests/test-closein.sh: Likewise.
51747         Reported by Piotr Tarnowski.
51748
51749 2007-09-28  Jim Meyering  <jim@meyering.net>
51750
51751         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
51752
51753 2007-09-27  Jim Meyering  <jim@meyering.net>
51754
51755         canonicalize: Avoid a false-positive cycle failure.
51756         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
51757         Sort.  Remove cycle-check.
51758         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
51759         not cycle-check.h.
51760         (seen_triple): New function.
51761         (canonicalize_filename_mode): Use it instead of cycle-check.
51762         * tests/test-canonicalize.c: Add a test for this bug.
51763         * tests/test-canonicalize.sh: Set up and run the test.
51764
51765         New module, file-set, from coreutils.
51766         * modules/file-set: Define it.
51767         * lib/file-set.c, lib/file-set.h: Implement.
51768
51769         New module, hash-triple, from coreutils.
51770         * modules/hash-triple: Define it.
51771         * lib/hash-triple.c, lib/hash-triple.h: Implement.
51772
51773 2007-09-25  Eric Blake  <ebb9@byu.net>
51774
51775         Fix strerror on Interix.
51776         * lib/string_.h (strerror): Declare replacement.
51777         * doc/functions/strerror.texi (strerror): Document the Interix
51778         shortcoming.
51779         * modules/string (Makefile.am): Support new hooks.
51780         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
51781         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
51782         gl_FUNC_STRERROR_SEPARATE.
51783         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
51784         * lib/strerror.c (rpl_strerror): Provide replacement.
51785         * modules/strerror (Depends-on): Add string.
51786         (configure.ac): Detect use of module.
51787         * tests/test-strerror.c: New file.
51788         * modules/strerror-tests: New test module.
51789         * modules/argp (Depends-on): Add strerror.
51790         * modules/error (Depends-on): Likewise.
51791         Reported by Martin Koeppe.
51792
51793 2007-09-24  Bruno Haible  <bruno@clisp.org>
51794
51795         * README: Update git instructions.
51796
51797 2007-09-24  Eric Blake  <ebb9@byu.net>
51798
51799         Revert fpending breakage from 2007-09-08.
51800         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
51801         __fpending.c.
51802
51803 2007-09-24  Jim Meyering  <jim@meyering.net>
51804
51805         filenamecat.c: Add a test.
51806         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
51807         showing how the function works when DIR is the empty string.
51808
51809 2007-09-21  Simon Josefsson  <simon@josefsson.org>
51810
51811         * tests/test-canonicalize.sh: Turn on executable bit.
51812
51813 2007-09-19  Eric Blake  <ebb9@byu.net>
51814
51815         * README: Update CVS instructions.
51816
51817 2007-09-18  Bruno Haible  <bruno@clisp.org>
51818
51819         * modules/areadlink: New file.
51820         * lib/areadlink.h (areadlink): New declaration.
51821         * lib/areadlink.c: New file, based on lib/xreadlink.c.
51822
51823 2007-09-17  Jim Meyering  <jim@meyering.net>
51824
51825         * lib/savewd.c (ESTALE) [!defined]: Define.
51826         Reported to be required on Interix by Martin Koeppe.
51827
51828 2007-09-17  Bruno Haible  <bruno@clisp.org>
51829
51830         * gnulib-tool (func_version): Use $version.
51831
51832 2007-09-16  Bruno Haible  <bruno@clisp.org>
51833
51834         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
51835         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
51836         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
51837         Reported by Greg Schafer <gschafer@zip.com.au>.
51838
51839 2007-09-15  Bruno Haible  <bruno@clisp.org>
51840
51841         * gnulib-tool (sed): Try a little harder to make bash understand the
51842         alias.
51843         Reported by Bruce Korb <bruce.korb@gmail.com>.
51844
51845 2007-09-13  Eric Blake  <ebb9@byu.net>
51846
51847         * ChangeLog: Remove conflict markers.
51848
51849 2007-09-13  Simon Josefsson  <simon@josefsson.org>
51850
51851         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
51852         Reported by Bruno Haible <bruno@clisp.org>.
51853
51854 2007-09-12  Bruno Haible  <bruno@clisp.org>
51855
51856         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
51857         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
51858         is not defined.
51859
51860 2007-09-12  Eric Blake  <ebb9@byu.net>
51861
51862         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
51863         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
51864         Autoconf definition.
51865         * modules/euidaccess (Depends-on): Add extensions, for
51866         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
51867         * modules/fnmatch (Depends-on): Likewise.
51868         * modules/getaddrinfo (Depends-on): Likewise.
51869         * modules/getdelim (Depends-on): Likewise.
51870         * modules/getline (Depends-on): Likewise.
51871         * modules/getsubopt (Depends-on): Likewise.
51872         * modules/gettext (Depends-on): Likewise.
51873         * modules/group-member (Depends-on): Likewise.
51874         * modules/mbchar (Depends-on): Likewise.
51875         * modules/memmem (Depends-on): Likewise.
51876         * modules/mempcpy (Depends-on): Likewise.
51877         * modules/memrchr (Depends-on): Likewise.
51878         * modules/pagealign_alloc (Depends-on): Likewise.
51879         * modules/readutmp (Depends-on): Likewise.
51880         * modules/stpcpy (Depends-on): Likewise.
51881         * modules/stpncpy (Depends-on): Likewise.
51882         * modules/strchrnul (Depends-on): Likewise.
51883         * modules/strndup (Depends-on): Likewise.
51884         * modules/strsep (Depends-on): Likewise.
51885         * modules/strverscmp (Depends-on): Likewise.
51886         * modules/vasprintf (Depends-on): Likewise.
51887         * modules/wcwidth (Depends-on): Likewise.
51888         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
51889         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
51890         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
51891         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
51892         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
51893         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
51894         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
51895         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
51896         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
51897         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
51898         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51899         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
51900         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
51901         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
51902         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
51903         * m4/readutmp.m4 (gl_READUTMP): Likewise.
51904         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
51905         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
51906         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
51907         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
51908         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51909         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
51910         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
51911         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
51912         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
51913         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
51914         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
51915         so that lock.m4 can be used in gettext without extensions module.
51916
51917 2007-09-11  Bruno Haible  <bruno@clisp.org>
51918
51919         * m4/isc-posix.m4: Remove file.
51920         Suggested by Eric Blake.
51921
51922 2007-09-11  Eric Blake  <ebb9@byu.net>
51923
51924         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
51925
51926 2007-09-10  Bruno Haible  <bruno@clisp.org>
51927
51928         * posix-modules: Fix typo in error message.
51929         Reported by Matt <mkraai@beckman.com>.
51930
51931 2007-09-09  Bruno Haible  <bruno@clisp.org>
51932
51933         * doc/functions/getdelim.texi: Update list of platforms lacking the
51934         function.
51935         * doc/functions/getline.texi: Likewise.
51936
51937 2007-09-09  Jim Meyering  <jim@meyering.net>
51938
51939         * lib/hash.c (hash_initialize): Detect calloc failure.
51940         Reported by Bruno Haible.
51941
51942 2007-09-09  Bruno Haible  <bruno@clisp.org>
51943
51944         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
51945         malloc or realloc fails.
51946
51947 2007-09-09  Bruno Haible  <bruno@clisp.org>
51948
51949         * modules/getcwd (Depends-on): Add malloc-posix.
51950         * modules/glob (Depends-on): Likewise.
51951         * modules/putenv (Depends-on): Likewise.
51952         * modules/strdup (Depends-on): Likewise.
51953         * modules/getdelim (Depends-on): Add realloc-posix.
51954         * modules/read-file (Depends-on): Likewise.
51955
51956 2007-09-09  Bruno Haible  <bruno@clisp.org>
51957
51958         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
51959         (gl_FUNC_MALLOC_POSIX): Require it.
51960         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
51961         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
51962         * modules/realloc (Files): Add m4/malloc.m4.
51963         * modules/calloc (Files): Likewise.
51964
51965 2007-09-09  Bruno Haible  <bruno@clisp.org>
51966
51967         * modules/malloc-posix: New file.
51968         * modules/malloc (Depends-on): Add malloc-posix.
51969         * lib/malloc.c: Include errno.h.
51970         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
51971         and a POSIX-compatible malloc into a single function. Set ENOMEM
51972         when returning NULL.
51973         * m4/malloc.m4: New file.
51974         * doc/functions/malloc.texi: Mention the malloc-posix module.
51975         * lib/stdlib_.h (malloc): New declaration.
51976         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51977         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
51978         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
51979         and HAVE_MALLOC_POSIX.
51980
51981 2007-09-09  Bruno Haible  <bruno@clisp.org>
51982
51983         * modules/realloc-posix: New file.
51984         * modules/realloc (Depends-on): Add realloc-posix.
51985         * lib/realloc.c: Include errno.h.
51986         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
51987         and a POSIX-compatible realloc into a single function. Set ENOMEM
51988         when returning NULL.
51989         * m4/realloc.m4: New file.
51990         * doc/functions/realloc.texi: Mention the realloc-posix module.
51991         * lib/stdlib_.h (realloc): New declaration.
51992         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51993         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
51994         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
51995         and HAVE_REALLOC_POSIX.
51996
51997 2007-09-09  Bruno Haible  <bruno@clisp.org>
51998
51999         * modules/calloc-posix: New file.
52000         * modules/calloc (Depends-on): Add calloc-posix.
52001         * lib/calloc.c: Include errno.h.
52002         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
52003         and a POSIX-compatible calloc into a single function. Set ENOMEM
52004         when returning NULL.
52005         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
52006         * doc/functions/calloc.texi: Mention the calloc-posix module.
52007         * lib/stdlib_.h (calloc): New declaration.
52008         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
52009         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
52010         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
52011         and HAVE_CALLOC_POSIX.
52012
52013 2007-09-09  Bruno Haible  <bruno@clisp.org>
52014
52015         Allow for modules to show an arbitrary notice.
52016         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
52017         * gnulib-tool: New option --extract-notice.
52018         (func_usage): Document it.
52019         (sed_extract_prog): Update.
52020         (func_get_notice): New function.
52021         (func_modules_notice): New function.
52022         (func_import, func_create_testdir): Invoke it.
52023         Suggested by Jim Meyering.
52024
52025 2007-09-09  Bruno Haible  <bruno@clisp.org>
52026
52027         * gnulib-tool: New options --verbose, --quiet.
52028         (func_usage): Document them.
52029         (verbose): New variable.
52030         (func_execute_command): New function.
52031         (func_import): Don't show the module list and the file list if
52032         $verbose < 0.
52033         (func_create_testdir): Likewise. Use func_execute_command.
52034         (func_create_megatestdir): Use func_execute_command.
52035
52036 2007-09-08  Bruno Haible  <bruno@clisp.org>
52037
52038         * gnulib-tool (func_import): Prefer rsync over wget when available,
52039         for fetching the PO files.
52040
52041 2007-09-08  Bruno Haible  <bruno@clisp.org>
52042
52043         * posix-modules: New file. Portions copied from gnulib-tool.
52044         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
52045
52046 2007-09-08  Jim Meyering  <jim@meyering.net>
52047
52048         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
52049         * lib/fpending.h: Rename from __fpending.h.
52050         * lib/fpending.c: Rename from __fpending.c.
52051         Include "fpending.h", not "__fpending.h".
52052         * lib/__fpending.h, lib/__fpending.c: Remove files.
52053         * modules/fpending (Files): Reflect new file names.
52054         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
52055
52056 2007-09-08  Bruno Haible  <bruno@clisp.org>
52057
52058         * m4/inttypes-h.m4: Remove stub file.
52059
52060 2007-09-07  Simon Josefsson  <simon@josefsson.org>
52061
52062         * doc/headers/stdint.texi: Discuss #include_next issue.
52063
52064 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
52065
52066         * build-aux/bootstrap: Remove obsolete comment about wget --help.
52067
52068 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52069
52070         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
52071         in variable name.
52072
52073 2007-09-03  Jim Meyering  <jim@meyering.net>
52074
52075         New module: git-version-gen.
52076         * modules/git-version-gen: New file.
52077
52078         Import changes from coreutils for bootstrap script.
52079
52080         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
52081
52082         bootstrap: uses rsync to download the .po files
52083         * build-aux/bootstrap (po_download_command_format): New global.
52084         (download_po_files): Use rsync.
52085         (update_po_files): Don't remove .po files after download,
52086         so future rsync runs can take advantage of the copies.
52087
52088         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
52089
52090         Solve the unnecessary-.po-file-regeneration problem once and for all.
52091         * build-aux/bootstrap (download_po_files): New function, renamed from
52092         get_translations.  Now, downloads, but doesn't update LINGUAS.
52093         (update_po_files): New function.
52094
52095         bootstrap: Ignore more.
52096         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
52097         uniwidth to e.g., lib/.gitignore.
52098         (slurp): Handle the sys_stat_.h -> sys mapping, too.
52099
52100         * build-aux/bootstrap: New setting: vc_ignore.
52101         (insert_sorted_if_absent): Create $file if absent.
52102         Adapt to new, possibly empty, list: $vc_ignore.
52103
52104         bootstrap: generate more ignorable names
52105         * build-aux/bootstrap (slurp): When generating ignorable names,
52106         also map .sin to .sed, .gperf to .c, and .y to .c.
52107
52108 2007-09-03  Jim Meyering  <jim@meyering.net>
52109
52110         * build-aux/git-version-gen: New file, from coreutils.  For details, see
52111         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
52112
52113 2007-09-02  Bruno Haible  <bruno@clisp.org>
52114
52115         Fix mis-recognition of 'mcs' on QNX 6.
52116         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
52117         output contains the string "Mono".
52118         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
52119         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
52120
52121 2007-09-01  Bruno Haible  <bruno@clisp.org>
52122
52123         Fix collision between uniwidth/* and linebreak modules.
52124         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
52125         u32_width): Remove declarations.
52126         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
52127         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
52128         streq3, streq2, streq1, streq0): Remove functions.
52129         (STREQ): Remove macro.
52130         (is_cjk_encoding): Remove function.
52131         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
52132         (uc_width, u8_width, u16_width, u32_width): Remove functions.
52133         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
52134         * NEWS: Document the change.
52135
52136 2007-09-01  Bruno Haible  <bruno@clisp.org>
52137
52138         * lib/streq.h: Add double-inclusion guard.
52139
52140 2007-09-01  Karl Berry  <karl@gnu.org>
52141
52142         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
52143
52144 2007-08-28  Jim Meyering  <jim@meyering.net>
52145
52146         Rename mreadlink_with_size to areadlink_with_size.
52147         * NEWS: Document the change.
52148         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
52149         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
52150         * lib/mreadlink.h: Rename this to...
52151         * lib/areadlink.h: ...this.
52152         * modules/mreadlink-with-size: Rename this to...
52153         * modules/areadlink-with-size: ...this.
52154         * lib/canonicalize.c: Reflect the renaming.
52155         * modules/canonicalize: Likewise.
52156
52157 2007-08-26  Bruno Haible  <bruno@clisp.org>
52158
52159         * gnulib-tool (func_import): When deciding which files to remove,
52160         consider also dangling symbolic links.
52161         Reported by Eric Blake.
52162
52163 2007-08-26  Bruno Haible  <bruno@clisp.org>
52164
52165         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
52166
52167 2007-08-23  Simon Josefsson  <simon@josefsson.org>
52168
52169         * lib/readline.c: Don't include getline.h, the prototype is now
52170         found in stdio.h.
52171
52172 2007-08-23  Jim Meyering  <jim@meyering.net>
52173
52174         Getdelim touchup.
52175         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
52176         around the funlockfile call, since funlockfile never sets errno.
52177         Don't set errno upon failed realloc.
52178
52179 2007-08-22  Eric Blake  <ebb9@byu.net>
52180
52181         Getline touchups.
52182         * lib/getdelim.c (getdelim): Revert regression that required *n to
52183         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
52184         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
52185         getdelim, rather than whether implementation is missing.
52186         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
52187         * lib/stdio_.h (getline): Also declare if replacement is
52188         required.
52189         * doc/functions/getdelim.texi: New file.
52190         * doc/functions/getline.texi: Likewise.
52191         * doc/gnulib.texi (Function Substitutes): Add new files.
52192         Reported by Bruno Haible.
52193
52194 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
52195
52196         * users.txt: Add Guile.
52197
52198 2007-08-22  Eric Blake  <ebb9@byu.net>
52199
52200         * tests/test-getdelim.c (main): Use remove, not unlink.
52201         * tests/test-getline.c (main): Likewise.
52202
52203         Move getline and getdelim into stdio.h, per POSIX 200x.
52204         * modules/getline (Files): Remove getline.h.
52205         (Depends-on): Add stdio.
52206         (configure.ac): Add module indicator.
52207         * modules/getdelim (Files): Remove getdelim.h.
52208         (Depends-on): Add stdio.
52209         (configure.ac): Add module indicator.
52210         * modules/stdio (Makefile.am): Work with new indicators.
52211         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
52212         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
52213         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
52214         * lib/getdelim.h: Delete.
52215         * lib/getline.h: Delete.
52216         * lib/stdio_.h (getdelim, getline): Declare.
52217         * modules/getdelim-tests: New module.
52218         * modules/getline-tests: Likewise.
52219         * tests/test-getdelim.c: New file.
52220         * tests/test-getline.c: Likewise.
52221         * NEWS: Document the change.
52222         * lib/getline.c: Update choice of header.
52223         * lib/csharpcomp.c: Likewise.
52224         * lib/getpass.c: Likewise.
52225         * lib/javacomp.c: Likewise.
52226         * lib/javaversion.c: Likewise.
52227         * lib/yesno.c: Likewise.
52228         * lib/getdelim.c: Likewise.
52229         (getdelim): Set errno on failure, and avoid memory leak.
52230
52231 2007-08-19  Bruno Haible  <bruno@clisp.org>
52232
52233         * modules/closein (Depends-on): Add freadahead.
52234         * lib/closein.c: Include freadahead.h.
52235         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
52236         is zero.
52237
52238 2007-08-19  Bruno Haible  <bruno@clisp.org>
52239
52240         * modules/freadahead-tests: New file.
52241         * tests/test-freadahead.sh: New file.
52242         * tests/test-freadahead.c: New file.
52243
52244         * modules/freadahead: New file.
52245         * lib/freadahead.h: New file.
52246         * lib/freadahead.c: New file.
52247         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
52248         fbufmode, fpurge, freadable, fwritable.
52249
52250 2007-08-19  Eric Blake  <ebb9@byu.net>
52251
52252         Test yesno in combination with closein.
52253         * lib/yesno.c (yesno): Document use of stdin.
52254         * modules/yesno-tests (Files): New module.
52255         * tests/test-yesno.c (main): New file.
52256         * tests/test-yesno.sh: Likewise.
52257
52258 2007-08-19  Bruno Haible  <bruno@clisp.org>
52259
52260         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
52261         * lib/fseeko.c (rpl_fseeko): Likewise.
52262         * lib/fseterr.c (fseterr): Likewise.
52263
52264 2007-08-19  Bruno Haible  <bruno@clisp.org>
52265
52266         * tests/test-lseek.c (main): Disable a test for BeOS.
52267         * doc/functions/lseek.texi: Document the BeOS bug.
52268
52269 2007-08-19  Bruno Haible  <bruno@clisp.org>
52270             Eric Blake  <ebb9@byu.net>
52271
52272         * lib/lseek.c: Include <sys/stat.h>.
52273         (rpl_lseek): Add workaround code also for Unix platforms.
52274         Needed for BeOS.
52275         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
52276         * doc/functions/lseek.texi: Document BeOS definiency.
52277
52278 2007-08-18  Bruno Haible  <bruno@clisp.org>
52279
52280         * modules/fstrcmp-tests: New file.
52281         * tests/test-fstrcmp.c: New file.
52282
52283 2007-08-18  Bruno Haible  <bruno@clisp.org>
52284
52285         * modules/fstrcmp: New file, from GNU gettext with modifications.
52286         * lib/fstrcmp.h: New file, from GNU gettext.
52287         * lib/fstrcmp.c: New file, from GNU gettext.
52288         * MODULES.html.sh (String handling): Add fstrcmp.
52289
52290 2007-08-18  Bruno Haible  <bruno@clisp.org>
52291
52292         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
52293         'bool'.
52294         (diag, compareseq): Remove const from the ctxt argument.
52295         (USE_HEURISTIC): Undefine at the end.
52296
52297 2007-08-18  Jim Meyering  <jim@meyering.net>
52298
52299         New file: lib/idcache.h
52300         * NEWS: Mention the addition.
52301         * modules/idcache (Files): Add lib/idcache.h
52302         * lib/idcache.c: Include "idcache.h".
52303         Don't include <sys/types.h>.
52304         Add a FIXME comment.
52305         Move file-scoped "static" declarations to the top.
52306         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
52307
52308 2007-08-17  Bruno Haible  <bruno@clisp.org>
52309         and Paul Eggert  <eggert@cs.ucla.edu>
52310
52311         * MODULES.html.sh: Add diffseq.
52312         * modules/diffseq: New file.
52313         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
52314         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
52315
52316 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
52317
52318         Import changes from coreutils for bootstrap script.
52319
52320         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
52321
52322         * build-aux/bootstrap (slurp): Work even in environments where
52323         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
52324         current code does not slurp files whose names start with ".", and
52325         this looks like it might be a troublesome area.
52326
52327         2007-07-11  Jim Meyering  <jim@meyering.net>
52328
52329         If there's a GPL vN copyright comment, require that N == 3.
52330
52331         2007-07-08  Jim Meyering  <jim@meyering.net>
52332
52333         Run the coreutils-specific code only if tests/Makefile.am.in exists.
52334         * build-aux/bootstrap (mam_template): Move definition out of loop.
52335
52336         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
52337
52338         * build-aux/bootstrap (symlink_to_dir): Rename function from
52339         symlink_to_gnulib.  Add a directory parameter.  Update all
52340         callers.
52341         (cp_mark_as_generated): Also check for -- and link to -- files in
52342         gl/.
52343
52344         2007-07-08  Jim Meyering  <jim@meyering.net>
52345
52346         Adapt to deeper hierarchy in gnulib.
52347         * build-aux/bootstrap (symlink_to_dir): If the destination
52348         directory doesn't exist, create it. This is required at least for
52349         "lib/uniwidth/cjk.h".
52350
52351         2007-05-15  Jim Meyering  <jim@meyering.net>
52352
52353         * build-aux/bootstrap: Now that generated Makefile.am files
52354         are no longer under version control, they must be created at
52355         bootstrap time.
52356
52357 2007-08-14  Ben Pfaff  <blp@gnu.org>
52358
52359         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
52360
52361 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
52362
52363         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
52364         given the changes below.
52365         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
52366         even on hosts that have padding bits beyond the supported 64.
52367
52368 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
52369
52370         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
52371         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
52372         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
52373         depends on it.
52374         (xstrtol_error): Remove.
52375         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
52376         but with a different signature.
52377         (ATTRIBUTE_NORETURN, __attribute__): New macros.
52378         * lib/xstrtol-error.c: Include exitfail.h.
52379         (xstrtol_fatal): New function, with a different signature from the
52380         old xstrtol_error, so that the caller need not worry about passing
52381         in an exit status, or about storage management of the option argument.
52382         (xstrtol_error): Now a static function.  Redo signature to
52383         implement xstrtol_fatal.  Output the correct number of hyphens in
52384         front of the option so that the caller need not worry about
52385         storage management.
52386         (N_): New macro.
52387         (_): Remove; not used now.
52388         * modules/xstrtol: Depend on getopt.
52389         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
52390         of old STRTOL_FATAL_ERROR macro.
52391         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
52392         of test program.
52393         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
52394         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
52395
52396 2007-08-08  Eric Blake  <ebb9@byu.net>
52397
52398         * lib/xstrtol-error.c: Add missing include.
52399
52400         Move xstrtol messages into gnulib domain, when --pobase is used.
52401         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
52402         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
52403         * modules/xstrtol (Files): Distribute new file.
52404         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
52405         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
52406         * tests/test-xstrtol.c: ...into new file.
52407         * tests/test-xstrtoul.c: Also test xstrtoul.
52408         * tests/test-xstrtoimax.c: Also test xstrtoimax.
52409         * tests/test-xstrtoumax.c: Also test xstrtoumax.
52410         * tests/test-xstrtol.sh: Drive the tests.
52411         * tests/test-xstrtoimax.sh: Likewise.
52412         * tests/test-xstrtoumax.sh: Likewise.
52413         * modules/xstrtol-tests: New module.
52414         * modules/xstrtoimax-tests: Likewise.
52415         * modules/xstrtoumax-tests: Likewise.
52416
52417 2007-08-08  Jim Meyering  <jim@meyering.net>
52418
52419         New function: mfile_name_concat.
52420         * lib/filenamecat.c (mfile_name_concat): New function, just like
52421         file_name_concat, but return NULL upon failure rather than exiting
52422         with a diagnostic.
52423         * lib/filenamecat.h: Declare it.
52424
52425 2007-08-07  Bruno Haible  <bruno@clisp.org>
52426
52427         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
52428         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
52429         warning from gcc.
52430         Reported by Eric Blake.
52431
52432 2007-08-07  Simon Josefsson  <simon@josefsson.org>
52433
52434         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
52435         * modules/crypto/arcfour (License): Likewise.
52436         * modules/crypto/des-tests (License): Likewise.
52437         * modules/crypto/gc-arctwo-tests (License): Likewise.
52438         * modules/crypto/gc-des-tests (License): Likewise.
52439         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
52440         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
52441         * modules/crypto/gc-md2-tests (License): Likewise.
52442         * modules/crypto/gc-md4-tests (License): Likewise.
52443         * modules/crypto/gc-md5-tests (License): Likewise.
52444         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
52445         * modules/crypto/gc-rijndael-tests (License): Likewise.
52446         * modules/crypto/gc-sha1-tests (License): Likewise.
52447         * modules/crypto/gc-tests (License): Likewise.
52448         * modules/crypto/hmac-md5 (License): Likewise.
52449         * modules/crypto/hmac-sha1 (License): Likewise.
52450         * modules/crypto/md2-tests (License): Likewise.
52451         * modules/crypto/md4-tests (License): Likewise.
52452         * modules/crypto/md5 (License): Likewise.
52453         * modules/crypto/rijndael (License): Likewise.
52454         * modules/crypto/sha1 (License): Likewise.
52455         * modules/memxor (License): Likewise.
52456
52457 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
52458         and Bruno Haible  <bruno@clisp.org>
52459
52460         * NEWS: Describe interface changes to human, xstrtol.
52461         * lib/human.h: Include <xstrtol.h>.
52462         (human_options): Return enum strtol_error, not int.  Remove
52463         bool arg; take int * instead.
52464         * lib/human.c: Don't include "gettext.h".
52465         (_): Remove; no longer used.
52466         Don't include <xstrtol.h>, since human.h does it.
52467         (human_options): Adjust to abovementioned interface changes.
52468         Do not report error to stderr; that's now the caller's
52469         responsibility.
52470         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
52471         interface change.
52472         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
52473         Str, Argument_type_string.  All uses changed.  Put " argument"
52474         in diagnostics to make them clearer.  Change wording of suffix
52475         message for clarity.
52476         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
52477         Argument_type_string.
52478         (STRTOL_FATAL_WARN): Remove; no longer used.
52479         * modules/human (Depends-on): Remove gettext-h.
52480
52481 2007-08-06  Simon Josefsson  <simon@josefsson.org>
52482
52483         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
52484
52485 2007-07-31  Bruno Haible  <bruno@clisp.org>
52486
52487         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
52488         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
52489         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
52490
52491 2007-07-31  Bruno Haible  <bruno@clisp.org>
52492
52493         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
52494         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
52495
52496 2007-07-30  Bruno Haible  <bruno@clisp.org>
52497
52498         * modules/base64 (License): Use the synonymous term "LGPLv2+".
52499         * modules/c-ctype (License): Likewise.
52500         * modules/c-strcase (License): Likewise.
52501         * modules/check-version (License): Likewise.
52502         * modules/iconv (License): Likewise.
52503         * modules/iconv_open (License): Likewise.
52504         * modules/read-file (License): Likewise.
52505         * modules/striconv (License): Likewise.
52506         * modules/strverscmp (License): Likewise.
52507         * modules/vasprintf (License): Likewise.
52508         * modules/crypto/des (License): Likewise.
52509         * modules/crypto/gc (License): Likewise.
52510         * modules/crypto/gc-arcfour (License): Likewise.
52511         * modules/crypto/gc-arctwo (License): Likewise.
52512         * modules/crypto/gc-des (License): Likewise.
52513         * modules/crypto/gc-hmac-md5 (License): Likewise.
52514         * modules/crypto/gc-hmac-sha1 (License): Likewise.
52515         * modules/crypto/gc-md2 (License): Likewise.
52516         * modules/crypto/gc-md4 (License): Likewise.
52517         * modules/crypto/gc-md5 (License): Likewise.
52518         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
52519         * modules/crypto/gc-random (License): Likewise.
52520         * modules/crypto/gc-rijndael (License): Likewise.
52521         * modules/crypto/gc-sha1 (License): Likewise.
52522         * modules/crypto/md2 (License): Likewise.
52523         * modules/crypto/md4 (License): Likewise.
52524
52525 2007-07-30  Jim Meyering  <jim@meyering.net>
52526
52527         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
52528         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
52529         it has valid stat data.  This bug would cause du not to count the
52530         sizes of inaccessible directories.
52531         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
52532         in <http://bugzilla.redhat.com/250077>.
52533
52534 2007-07-25  Peter O'Gorman  <peter@pogma.com>
52535             Bruno Haible  <bruno@clisp.org>
52536
52537         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
52538         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
52539         #include_next, gives a diagnostic about it, but reports no error in
52540         the exit code.
52541         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
52542
52543 2007-07-24  Ben Pfaff  <blp@gnu.org>
52544
52545         Improve name: "count-one-bits" is better than "popcount".
52546         * MODULES.html.sh: Update name.
52547         * lib/popcount.h: Renamed lib/count-one-bits.h.
52548         (popcount): Renamed count_one_bits.
52549         (popcountl): Renamed count_one_bits_l.
52550         (popcountll): Renamed count_one_bits_ll.
52551         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
52552         * modules/popcount: Renamed module/count-one-bits.
52553         * modules/popcount-tests: Renamed module/count-one-bits-tests.
52554         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
52555
52556 2007-07-23  Ben Pfaff  <blp@gnu.org>
52557
52558         * lib/popcount.h (popcount32): Reduce size of constants, to allow
52559         better code generation, and add U to large constants to avoid
52560         warnings, in non-GCC case.
52561         Suggested by Bruno Haible.
52562
52563 2007-07-23  Ben Pfaff  <blp@gnu.org>
52564
52565         * lib/popcount.h: Use verify_true instead of if...abort.
52566         * modules/popcount: Depend on verify module.
52567         Suggested by Jim Meyering.
52568
52569 2007-07-23  Bruno Haible  <bruno@clisp.org>
52570
52571         * gnulib-tool (func_import): Create a .cvsignore file also when the
52572         directory is not yet in CVS but the toplevel directory is. When
52573         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
52574         Reported by Karl Berry.
52575
52576 2007-07-22  Ben Pfaff  <blp@gnu.org>
52577
52578         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
52579         case.
52580         Suggested by Eric Blake.
52581
52582 2007-07-22  Ben Pfaff  <blp@gnu.org>
52583
52584         New module: popcount.
52585         * MODULES.html.sh: Add popcount.
52586         * modules/popcount: New file.
52587         * modules/popcount-tests: New file.
52588         * tests/test-popcount.c: New file.
52589         * lib/popcount.h: New file.
52590         * m4/popcount.m4: New file.
52591
52592 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
52593
52594         * build-aux/announce-gen: Update to GPLv3.
52595
52596         * build-aux/config.guess: Update from config.
52597
52598 2007-07-21  Bruno Haible  <bruno@clisp.org>
52599
52600         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
52601         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
52602
52603 2007-07-20  Jim Meyering  <jim@meyering.net>
52604
52605         * check-module: Diagnose a self-dependency.
52606
52607 2007-07-19  Bruno Haible  <bruno@clisp.org>
52608
52609         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
52610         empty.
52611         Reported by Eric Blake.
52612
52613 2007-07-18  Bruno Haible  <bruno@clisp.org>
52614
52615         * gnulib-tool: New options --po-base, --po-domain.
52616         (func_usage): Document them.
52617         (pobase, po_domain): New variables.
52618         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
52619         DEFAULT_TEXT_DOMAIN.
52620         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
52621         (func_import): Consider pobase and po_domain. Create a po/ directory.
52622         (func_create_testdir): Set pobase and po_domain to empty.
52623         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
52624         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
52625
52626 2007-07-18  Bruno Haible  <bruno@clisp.org>
52627
52628         * gnulib-tool (func_get_automake_snippet): Synthesize also an
52629         EXTRA_DIST augmentation for files in build-aux/.
52630
52631 2007-07-16  Bruno Haible  <bruno@clisp.org>
52632
52633         * modules/lseek (License): Use the synonymous term "LGPLv2+".
52634         * modules/getdelim (License): Likewise.
52635
52636 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52637
52638         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
52639         * modules/d-type (License): Likewise.
52640         * modules/extensions (License): Likewise.
52641         * modules/fnmatch (License): Likewise.
52642         * modules/fseeko (License): Likewise.
52643         * modules/getaddrinfo (License): Likewise.
52644         * modules/getline (License): Likewise.
52645         * modules/getlogin_r (License): Likewise.
52646         * modules/getpass (License): Likewise.
52647         * modules/gettimeofday (License): Likewise.
52648         * modules/glob (License): Likewise.
52649         * modules/inet_ntop (License): Likewise.
52650         * modules/malloc (License): Likewise.
52651         * modules/malloca (License): Likewise.
52652         * modules/memmem (License): Likewise.
52653         * modules/mempcpy (License): Likewise.
52654         * modules/memset (License): Likewise.
52655         * modules/minmax (License): Likewise.
52656         * modules/mktime (License): Likewise.
52657         * modules/netinet_in (License): Likewise.
52658         * modules/pathmax (License): Likewise.
52659         * modules/poll (License): Likewise.
52660         * modules/regex (License): Likewise.
52661         * modules/snprintf (License): Likewise.
52662         * modules/stdbool (License): Likewise.
52663         * modules/stdint (License): Likewise.
52664         * modules/stdio (License): Likewise.
52665         * modules/strcase (License): Likewise.
52666         * modules/strcasestr (License): Likewise.
52667         * modules/strdup (License): Likewise.
52668         * modules/string (License): Likewise.
52669         * modules/strndup (License): Likewise.
52670         * modules/strnlen (License): Likewise.
52671         * modules/strpbrk (License): Likewise.
52672         * modules/strptime (License): Likewise.
52673         * modules/strsep (License): Likewise.
52674         * modules/sys_select (License): Likewise.
52675         * modules/sys_socket (License): Likewise.
52676         * modules/sys_stat (License): Likewise.
52677         * modules/sys_time (License): Likewise.
52678         * modules/time (License): Likewise.
52679         * modules/time_r (License): Likewise.
52680         * modules/timegm (License): Likewise.
52681         * modules/unistd (License): Likewise.
52682         * modules/vsnprintf (License): Likewise.
52683         * modules/wctype (License): Likewise.
52684
52685 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52686
52687         * modules/argz (License): LGPLv2+.
52688
52689 2007-07-15  Karl Berry  <karl@gnu.org>
52690
52691         * doc/gnulib.texi: revise node structure per new fdl.texi.
52692
52693 2007-07-14  Bruno Haible  <bruno@clisp.org>
52694
52695         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
52696         the output file.
52697         * lib/uniname/uninames.h: Regenerated.
52698
52699 2007-07-14  Karl Berry  <karl@gnu.org>
52700
52701         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
52702         omitting sectioning and index commands.
52703
52704 2007-07-13  Bruno Haible  <bruno@clisp.org>
52705
52706         New gnulib-tool option --more-symlinks.
52707         * gnulib-tool (func_usage): Document --more-symlinks.
52708         (do_copyrights): New variable.
52709         Recognize option --more-symlinks.
52710         (func_import): Don't add a copyright notice transform to
52711         sed_transform_lib_file if do_copyrights is empty.
52712
52713 2007-07-13  Bruno Haible  <bruno@clisp.org>
52714
52715         * lib/vasnprintf.c (decimal_point_char): Define also if
52716         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
52717         && !NEED_PRINTF_DIRECTIVE_A.
52718         Reported by Clemens Koller <clemens.koller@anagramm.de> via
52719         Gary V. Vaughan <gary@gnu.org>.
52720
52721 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
52722
52723         * lib/inttypes_.h: Undo previous change, since it was fixed
52724         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
52725
52726 2007-07-13  Bruno Haible  <bruno@clisp.org>
52727
52728         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
52729         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
52730
52731 2007-07-13  Jim Meyering  <jim@meyering.net>
52732
52733         df: Don't fail for Tru64's "file-on-file mount".
52734         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
52735         so we fall through and use statfs instead.  Details here:
52736         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
52737         Reported by Albert Chin.
52738
52739 2007-07-13  Bruno Haible  <bruno@clisp.org>
52740
52741         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
52742         * modules/configmake (License): Likewise.
52743         * modules/gettext (License): Likewise.
52744         * modules/gettext-h (License): Likewise.
52745         * modules/include_next (License): Likewise.
52746         * modules/link-warning (License): Likewise.
52747         * modules/localcharset (License): Likewise.
52748         * modules/localename (License): Likewise.
52749         * modules/lock (License): Likewise.
52750         * modules/relocatable-lib-lgpl (License): Likewise.
52751         * modules/size_max (License): Likewise.
52752         * modules/vasnprintf (License): Likewise.
52753         * modules/wchar (License): Likewise.
52754         * modules/xsize (License): Likewise.
52755
52756 2007-07-13  Bruno Haible  <bruno@clisp.org>
52757
52758         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
52759         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
52760
52761 2007-07-12  Bruno Haible  <bruno@clisp.org>
52762
52763         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
52764         in the modules files.
52765
52766 2007-07-11  Karl Berry  <karl@gnu.org>
52767
52768         * MODULES.html.sh (func_module): use
52769          sed -e '\|^'"${includefile}"'$|d'
52770          instead of /.../d, to avoid errors on $includefile's containing /.
52771
52772 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
52773
52774         * gnulib-tool (func_import): Avoid duplication of --avoid
52775         statements
52776         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
52777         names to `_' in variable names.
52778
52779 2007-07-10  Eric Blake  <ebb9@byu.net>
52780
52781         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
52782         * NEWS: Document this change.
52783
52784 2007-07-08  Bruno Haible  <bruno@clisp.org>
52785
52786         Update to Unicode 5.0.
52787         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
52788         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
52789         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
52790         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
52791         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
52792         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
52793         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
52794         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
52795         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
52796         U+10A3F, U+1D242..U+1D244.
52797         (nonspacing_table_ind): Update.
52798         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
52799         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
52800
52801 2007-07-08  Bruno Haible  <bruno@clisp.org>
52802
52803         Update to Unicode 5.0.
52804         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
52805         code transform. Extend the name index field of unicode_name_to_code and
52806         unicode_code_to_name from 16 to 24 bits.
52807         * lib/uniname/uniname.c (unicode_character_name,
52808         unicode_name_character): Add the range 0x12xxx to the code transform.
52809         * lib/uniname/uninames.h: Regenerated.
52810         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
52811
52812 2007-07-07  Bruno Haible  <bruno@clisp.org>
52813
52814         * modules/wcwidth-tests: New file.
52815         * tests/test-wcwidth.c: New file.
52816
52817         Work around MacOS X wcwidth() bug.
52818         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
52819         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
52820         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
52821         original wcwidth in non-UTF-8 locales.
52822         * modules/wcwidth (Depends-on): Add localcharset, streq,
52823         uniwidth/width.
52824         * doc/functions/wcwidth.texi: Update.
52825
52826 2007-07-07  Bruno Haible  <bruno@clisp.org>
52827
52828         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
52829         (wcwidth): New declaration.
52830         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
52831         macros.
52832         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
52833         here. Prepare for creating <wchar.h> unconditionally.
52834         * modules/wchar (Depends-on): Add link-warning.
52835         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
52836         REPLACE_WCWIDTH, and GL_LINK_WARNING.
52837         * lib/wcwidth.h: Remove file.
52838         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
52839         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
52840         * modules/wcwidth (Files): Remove lib/wcwidth.h.
52841         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
52842         (Include): Replace wcwidth.h with <wchar.h>.
52843         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
52844         * lib/mbchar.h: Don't include wcwidth.h.
52845         * lib/mbswidth.c: Likewise.
52846         * NEWS: Mention the change.
52847
52848 2007-07-07  Bruno Haible  <bruno@clisp.org>
52849
52850         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
52851         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
52852         definition with an external declaration.
52853         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
52854         defined as a function. Remove AC_C_INLINE requirement.
52855         * modules/wcwidth (Files): Add lib/wcwidth.c.
52856         (Makefile.am): Remove redundant statement.
52857
52858 2007-07-07  Bruno Haible  <bruno@clisp.org>
52859
52860         * MODULES.html.sh (Unicode string functions): Add the new modules.
52861
52862         * tests/uniwidth/test-u32-strwidth.c: New file.
52863         * modules/uniwidth/u32-strwidth-tests: New file.
52864
52865         * lib/uniwidth/u32-strwidth.c: New file.
52866         * modules/uniwidth/u32-strwidth: New file.
52867
52868         * tests/uniwidth/test-u16-strwidth.c: New file.
52869         * modules/uniwidth/u16-strwidth-tests: New file.
52870
52871         * lib/uniwidth/u16-strwidth.c: New file.
52872         * modules/uniwidth/u16-strwidth: New file.
52873
52874         * tests/uniwidth/test-u8-strwidth.c: New file.
52875         * modules/uniwidth/u8-strwidth-tests: New file.
52876
52877         * lib/uniwidth/u8-strwidth.c: New file.
52878         * modules/uniwidth/u8-strwidth: New file.
52879
52880         * tests/uniwidth/test-u32-width.c: New file.
52881         * modules/uniwidth/u32-width-tests: New file.
52882
52883         * lib/uniwidth/u32-width.c: New file.
52884         * modules/uniwidth/u32-width: New file.
52885
52886         * tests/uniwidth/test-u16-width.c: New file.
52887         * modules/uniwidth/u16-width-tests: New file.
52888
52889         * lib/uniwidth/u16-width.c: New file.
52890         * modules/uniwidth/u16-width: New file.
52891
52892         * tests/uniwidth/test-u8-width.c: New file.
52893         * modules/uniwidth/u8-width-tests: New file.
52894
52895         * lib/uniwidth/u8-width.c: New file.
52896         * modules/uniwidth/u8-width: New file.
52897
52898         * tests/uniwidth/test-uc_width.c: New file.
52899         * modules/uniwidth/width-tests: New file.
52900
52901         * lib/uniwidth/width.c: New file, from GNU libiconv.
52902         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
52903         * modules/uniwidth/width: New file.
52904
52905         * lib/uniwidth.h: New file, from GNU libiconv.
52906         * modules/uniwidth/base: New file.
52907
52908 2007-07-07  Bruno Haible  <bruno@clisp.org>
52909
52910         * lib/uniname.h: New file, from GNU gettext.
52911         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
52912         * lib/uniname/uninames.h: New file, from GNU gettext.
52913         * lib/uniname/uniname.c: New file, from GNU gettext.
52914         * tests/uniname/test-uninames.sh: New file.
52915         * tests/uniname/test-uninames.c: New file, from GNU gettext.
52916         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
52917         * modules/uniname/base: New file.
52918         * modules/uniname/uniname: New file.
52919         * modules/uniname/uniname-tests: New file.
52920         * MODULES.html.sh (Unicode string functions): Add the new modules.
52921
52922 2007-07-06  Bruno Haible  <bruno@clisp.org>
52923
52924         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
52925
52926 2007-07-06  Bruno Haible  <bruno@clisp.org>
52927
52928         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
52929         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
52930         includes <cygwin/sys_time.h> which includes <sys/select.h> which
52931         include <sys/time.h>.
52932         Reported by Eric Blake.
52933
52934 2007-07-06  Eric Blake  <ebb9@byu.net>
52935
52936         Fix testing canonicalize on cygwin.
52937         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
52938         Revert patch from 2007-06-19.
52939         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
52940         canonicalize module is also in use.
52941         * tests/test-canonicalize.c: New file.
52942         * tests/test-canonicalize.sh: Likewise.
52943         * modules/canonicalize-tests: Likewise.
52944
52945 2007-07-06  Jim Meyering  <jim@meyering.net>
52946
52947         * lib/getugroups.c (getugroups): Detect getgrent failure.
52948         Adjust comment to reflect reality: this function may return -1.
52949
52950 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
52951
52952         * build-aux/bootstrap (TP_URL,get_translations): Update to use
52953         the new TP address.
52954         (usage): Fix typo
52955         (gnulib_mk): New variable.
52956
52957 2007-07-05  Jim Meyering  <jim@meyering.net>
52958
52959         Don't let endgrent clobber errno, no matter how improbable.
52960         * lib/getugroups.c (getugroups): Save and restore errno around
52961         endgrent call.
52962
52963         Close the group DB even when failing with 2^31 or more members.
52964         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
52965
52966 2007-07-04  Jim Meyering  <jim@meyering.net>
52967
52968         * lib/getugroups.h: New file.
52969         * lib/getugroups.c: Include "getugroups.h".
52970         Remove uses of "register" keyword.
52971         Move local variable, "cp", down into scope where used.
52972         Give "username" parameter the "const" attribute.
52973         * modules/getugroups (Files): Add lib/getugroups.h
52974
52975 2007-07-04  Karl Berry  <karl@gnu.org>
52976
52977         * MODULES.html.sh (func_all_modules): Complete rename of
52978         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
52979
52980 2007-07-02  Bruno Haible  <bruno@clisp.org>
52981
52982         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
52983         mode, when inttypes.h comes from gnulib.
52984         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
52985
52986 2007-07-02  Simon Josefsson  <simon@josefsson.org>
52987
52988         * NEWS: Mention lgpl module name change.
52989
52990         * modules/lgpl-2.1: Renamed from lgpl.
52991
52992         * NEWS: Mention gpl module name change.
52993
52994         * modules/gpl-3.0: New file, based on gpl-2.0.
52995
52996         * modules/gpl-2.0: Renamed from gpl.
52997
52998         * modules/gpl: Fix filename, doc/gpl.texi is now found at
52999         doc/gpl-2.0.texi.
53000
53001 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
53002
53003         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
53004         #define __STDC_LIMIT_MACROS temporarily while including
53005         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
53006         Problem reported by Joel E. Denny in
53007         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
53008
53009 2007-07-01  Bruno Haible  <bruno@clisp.org>
53010
53011         * lib/unistdio.h: New file.
53012         * lib/unistdio/u-asnprintf.h: New file.
53013         * lib/unistdio/u-asprintf.h: New file.
53014         * lib/unistdio/u-printf-args.c: New file.
53015         * lib/unistdio/u-printf-args.h: New file.
53016         * lib/unistdio/u-printf-parse.h: New file.
53017         * lib/unistdio/u-snprintf.h: New file.
53018         * lib/unistdio/u-sprintf.h: New file.
53019         * lib/unistdio/u-vasprintf.h: New file.
53020         * lib/unistdio/u-vsnprintf.h: New file.
53021         * lib/unistdio/u-vsprintf.h: New file.
53022         * lib/unistdio/ulc-asnprintf.c: New file.
53023         * lib/unistdio/ulc-asprintf.c: New file.
53024         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
53025         * lib/unistdio/ulc-printf-parse.c: New file.
53026         * lib/unistdio/ulc-snprintf.c: New file.
53027         * lib/unistdio/ulc-sprintf.c: New file.
53028         * lib/unistdio/ulc-vasnprintf.c: New file.
53029         * lib/unistdio/ulc-vasprintf.c: New file.
53030         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
53031         * lib/unistdio/ulc-vsnprintf.c: New file.
53032         * lib/unistdio/ulc-vsprintf.c: New file.
53033         * lib/unistdio/u8-asnprintf.c: New file.
53034         * lib/unistdio/u8-asprintf.c: New file.
53035         * lib/unistdio/u8-printf-parse.c: New file.
53036         * lib/unistdio/u8-snprintf.c: New file.
53037         * lib/unistdio/u8-sprintf.c: New file.
53038         * lib/unistdio/u8-vasnprintf.c: New file.
53039         * lib/unistdio/u8-vasprintf.c: New file.
53040         * lib/unistdio/u8-vsnprintf.c: New file.
53041         * lib/unistdio/u8-vsprintf.c: New file.
53042         * lib/unistdio/u8-u8-asnprintf.c: New file.
53043         * lib/unistdio/u8-u8-asprintf.c: New file.
53044         * lib/unistdio/u8-u8-snprintf.c: New file.
53045         * lib/unistdio/u8-u8-sprintf.c: New file.
53046         * lib/unistdio/u8-u8-vasnprintf.c: New file.
53047         * lib/unistdio/u8-u8-vasprintf.c: New file.
53048         * lib/unistdio/u8-u8-vsnprintf.c: New file.
53049         * lib/unistdio/u8-u8-vsprintf.c: New file.
53050         * lib/unistdio/u16-asnprintf.c: New file.
53051         * lib/unistdio/u16-asprintf.c: New file.
53052         * lib/unistdio/u16-printf-parse.c: New file.
53053         * lib/unistdio/u16-snprintf.c: New file.
53054         * lib/unistdio/u16-sprintf.c: New file.
53055         * lib/unistdio/u16-vasnprintf.c: New file.
53056         * lib/unistdio/u16-vasprintf.c: New file.
53057         * lib/unistdio/u16-vsnprintf.c: New file.
53058         * lib/unistdio/u16-vsprintf.c: New file.
53059         * lib/unistdio/u16-u16-asnprintf.c: New file.
53060         * lib/unistdio/u16-u16-asprintf.c: New file.
53061         * lib/unistdio/u16-u16-snprintf.c: New file.
53062         * lib/unistdio/u16-u16-sprintf.c: New file.
53063         * lib/unistdio/u16-u16-vasnprintf.c: New file.
53064         * lib/unistdio/u16-u16-vasprintf.c: New file.
53065         * lib/unistdio/u16-u16-vsnprintf.c: New file.
53066         * lib/unistdio/u16-u16-vsprintf.c: New file.
53067         * lib/unistdio/u32-asnprintf.c: New file.
53068         * lib/unistdio/u32-asprintf.c: New file.
53069         * lib/unistdio/u32-printf-parse.c: New file.
53070         * lib/unistdio/u32-snprintf.c: New file.
53071         * lib/unistdio/u32-sprintf.c: New file.
53072         * lib/unistdio/u32-vasnprintf.c: New file.
53073         * lib/unistdio/u32-vasprintf.c: New file.
53074         * lib/unistdio/u32-vsnprintf.c: New file.
53075         * lib/unistdio/u32-vsprintf.c: New file.
53076         * lib/unistdio/u32-u32-asnprintf.c: New file.
53077         * lib/unistdio/u32-u32-asprintf.c: New file.
53078         * lib/unistdio/u32-u32-snprintf.c: New file.
53079         * lib/unistdio/u32-u32-sprintf.c: New file.
53080         * lib/unistdio/u32-u32-vasnprintf.c: New file.
53081         * lib/unistdio/u32-u32-vasprintf.c: New file.
53082         * lib/unistdio/u32-u32-vsnprintf.c: New file.
53083         * lib/unistdio/u32-u32-vsprintf.c: New file.
53084         * tests/unistdio/test-ulc-asnprintf1.c: New file.
53085         * tests/unistdio/test-ulc-asnprintf1.h: New file.
53086         * tests/unistdio/test-ulc-printf1.h: New file.
53087         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
53088         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
53089         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
53090         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
53091         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
53092         * tests/unistdio/test-ulc-vasprintf1.c: New file.
53093         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
53094         * tests/unistdio/test-ulc-vsprintf1.c: New file.
53095         * tests/unistdio/test-u8-asnprintf1.c: New file.
53096         * tests/unistdio/test-u8-asnprintf1.h: New file.
53097         * tests/unistdio/test-u8-printf1.h: New file.
53098         * tests/unistdio/test-u8-vasnprintf1.c: New file.
53099         * tests/unistdio/test-u8-vasnprintf2.c: New file.
53100         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
53101         * tests/unistdio/test-u8-vasnprintf3.c: New file.
53102         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
53103         * tests/unistdio/test-u8-vasprintf1.c: New file.
53104         * tests/unistdio/test-u8-vsnprintf1.c: New file.
53105         * tests/unistdio/test-u8-vsprintf1.c: New file.
53106         * tests/unistdio/test-u16-asnprintf1.c: New file.
53107         * tests/unistdio/test-u16-asnprintf1.h: New file.
53108         * tests/unistdio/test-u16-printf1.h: New file.
53109         * tests/unistdio/test-u16-vasnprintf1.c: New file.
53110         * tests/unistdio/test-u16-vasnprintf2.c: New file.
53111         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
53112         * tests/unistdio/test-u16-vasnprintf3.c: New file.
53113         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
53114         * tests/unistdio/test-u16-vasprintf1.c: New file.
53115         * tests/unistdio/test-u16-vsnprintf1.c: New file.
53116         * tests/unistdio/test-u16-vsprintf1.c: New file.
53117         * tests/unistdio/test-u32-asnprintf1.c: New file.
53118         * tests/unistdio/test-u32-asnprintf1.h: New file.
53119         * tests/unistdio/test-u32-printf1.h: New file.
53120         * tests/unistdio/test-u32-vasnprintf1.c: New file.
53121         * tests/unistdio/test-u32-vasnprintf2.c: New file.
53122         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
53123         * tests/unistdio/test-u32-vasnprintf3.c: New file.
53124         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
53125         * tests/unistdio/test-u32-vasprintf1.c: New file.
53126         * tests/unistdio/test-u32-vsnprintf1.c: New file.
53127         * tests/unistdio/test-u32-vsprintf1.c: New file.
53128         * modules/unistdio/base: New file.
53129         * modules/unistdio/u-printf-args: New file.
53130         * modules/unistdio/ulc-asnprintf: New file.
53131         * modules/unistdio/ulc-asprintf: New file.
53132         * modules/unistdio/ulc-fprintf: New file.
53133         * modules/unistdio/ulc-printf-parse: New file.
53134         * modules/unistdio/ulc-snprintf: New file.
53135         * modules/unistdio/ulc-sprintf: New file.
53136         * modules/unistdio/ulc-vasnprintf: New file.
53137         * modules/unistdio/ulc-vasprintf: New file.
53138         * modules/unistdio/ulc-vfprintf: New file.
53139         * modules/unistdio/ulc-vsnprintf: New file.
53140         * modules/unistdio/ulc-vsprintf: New file.
53141         * modules/unistdio/u8-asnprintf: New file.
53142         * modules/unistdio/u8-asprintf: New file.
53143         * modules/unistdio/u8-printf-parse: New file.
53144         * modules/unistdio/u8-snprintf: New file.
53145         * modules/unistdio/u8-sprintf: New file.
53146         * modules/unistdio/u8-vasnprintf: New file.
53147         * modules/unistdio/u8-vasprintf: New file.
53148         * modules/unistdio/u8-vsnprintf: New file.
53149         * modules/unistdio/u8-vsprintf: New file.
53150         * modules/unistdio/u8-u8-asnprintf: New file.
53151         * modules/unistdio/u8-u8-asprintf: New file.
53152         * modules/unistdio/u8-u8-snprintf: New file.
53153         * modules/unistdio/u8-u8-sprintf: New file.
53154         * modules/unistdio/u8-u8-vasnprintf: New file.
53155         * modules/unistdio/u8-u8-vasprintf: New file.
53156         * modules/unistdio/u8-u8-vsnprintf: New file.
53157         * modules/unistdio/u8-u8-vsprintf: New file.
53158         * modules/unistdio/u16-asnprintf: New file.
53159         * modules/unistdio/u16-asprintf: New file.
53160         * modules/unistdio/u16-printf-parse: New file.
53161         * modules/unistdio/u16-snprintf: New file.
53162         * modules/unistdio/u16-sprintf: New file.
53163         * modules/unistdio/u16-vasnprintf: New file.
53164         * modules/unistdio/u16-vasprintf: New file.
53165         * modules/unistdio/u16-vsnprintf: New file.
53166         * modules/unistdio/u16-vsprintf: New file.
53167         * modules/unistdio/u16-u16-asnprintf: New file.
53168         * modules/unistdio/u16-u16-asprintf: New file.
53169         * modules/unistdio/u16-u16-snprintf: New file.
53170         * modules/unistdio/u16-u16-sprintf: New file.
53171         * modules/unistdio/u16-u16-vasnprintf: New file.
53172         * modules/unistdio/u16-u16-vasprintf: New file.
53173         * modules/unistdio/u16-u16-vsnprintf: New file.
53174         * modules/unistdio/u16-u16-vsprintf: New file.
53175         * modules/unistdio/u32-asnprintf: New file.
53176         * modules/unistdio/u32-asprintf: New file.
53177         * modules/unistdio/u32-printf-parse: New file.
53178         * modules/unistdio/u32-snprintf: New file.
53179         * modules/unistdio/u32-sprintf: New file.
53180         * modules/unistdio/u32-vasnprintf: New file.
53181         * modules/unistdio/u32-vasprintf: New file.
53182         * modules/unistdio/u32-vsnprintf: New file.
53183         * modules/unistdio/u32-vsprintf: New file.
53184         * modules/unistdio/u32-u32-asnprintf: New file.
53185         * modules/unistdio/u32-u32-asprintf: New file.
53186         * modules/unistdio/u32-u32-snprintf: New file.
53187         * modules/unistdio/u32-u32-sprintf: New file.
53188         * modules/unistdio/u32-u32-vasnprintf: New file.
53189         * modules/unistdio/u32-u32-vasprintf: New file.
53190         * modules/unistdio/u32-u32-vsnprintf: New file.
53191         * modules/unistdio/u32-u32-vsprintf: New file.
53192         * modules/unistdio/ulc-asnprintf-tests: New file.
53193         * modules/unistdio/ulc-vasnprintf-tests: New file.
53194         * modules/unistdio/ulc-vasprintf-tests: New file.
53195         * modules/unistdio/ulc-vsnprintf-tests: New file.
53196         * modules/unistdio/ulc-vsprintf-tests: New file.
53197         * modules/unistdio/u8-asnprintf-tests: New file.
53198         * modules/unistdio/u8-vasnprintf-tests: New file.
53199         * modules/unistdio/u8-vasprintf-tests: New file.
53200         * modules/unistdio/u8-vsnprintf-tests: New file.
53201         * modules/unistdio/u8-vsprintf-tests: New file.
53202         * modules/unistdio/u16-asnprintf-tests: New file.
53203         * modules/unistdio/u16-vasnprintf-tests: New file.
53204         * modules/unistdio/u16-vasprintf-tests: New file.
53205         * modules/unistdio/u16-vsnprintf-tests: New file.
53206         * modules/unistdio/u16-vsprintf-tests: New file.
53207         * modules/unistdio/u32-asnprintf-tests: New file.
53208         * modules/unistdio/u32-vasnprintf-tests: New file.
53209         * modules/unistdio/u32-vasprintf-tests: New file.
53210         * modules/unistdio/u32-vsnprintf-tests: New file.
53211         * modules/unistdio/u32-vsprintf-tests: New file.
53212         * MODULES.html.sh (Unicode string functions): Add the new modules.
53213
53214 2007-07-01  Bruno Haible  <bruno@clisp.org>
53215
53216         * lib/sprintf.c (sprintf): Limit the available length estimation,
53217         to avoid address wraparound.
53218         * lib/vsprintf.c (vsprintf): Likewise.
53219         * modules/sprintf-posix (Dependencies): Add stdint.
53220         * modules/vsprintf-posix (Dependencies): Likewise.
53221
53222 2007-07-01  Bruno Haible  <bruno@clisp.org>
53223
53224         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
53225         Windows PATH as well. Conservative double-quoting. Comments.
53226
53227 2007-07-01  Bruno Haible  <bruno@clisp.org>
53228             Eric Blake  <ebb9@byu.net>
53229             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53230
53231         * gnulib-tool (self_abspathname): Fix algorithm to cope with
53232         empty components in $PATH, denoting '.'.
53233
53234 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53235
53236         * gnulib-tool: Fix indentation.
53237         (func_create_megatestdir): Likewise.
53238         Report by Bruno Haible.
53239
53240 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53241
53242         Sync from Automake.
53243         * build-aux/gnupload: Fix shell portability issues with for loops.
53244         Report by Karl Berry.
53245
53246 2007-06-29  Simon Josefsson  <simon@josefsson.org>
53247
53248         * build-aux/maint.mk (POURL): Use translationproject.org.
53249
53250 2007-06-27  Simon Josefsson  <simon@josefsson.org>
53251             Bruno Haible  <bruno@clisp.org>
53252
53253         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
53254         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
53255         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
53256         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
53257         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
53258
53259 2007-06-27  Bruno Haible  <bruno@clisp.org>
53260
53261         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
53262         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
53263
53264 2007-06-26  Karl Berry  <karl@gnu.org>
53265
53266         * MODULES.html.sh: remove xreadlink-with-size.
53267
53268 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
53269
53270         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
53271         method that I hope also handles the double-include problem noted
53272         by Bruno Haible in
53273         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
53274
53275 2007-06-23  Bruno Haible  <bruno@clisp.org>
53276
53277         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53278         Don't let the 'mostlyclean' target fail if the last subdirectory could
53279         not be removed.
53280         Reported by Karl Berry.
53281
53282 2007-06-23  Bruno Haible  <bruno@clisp.org>
53283
53284         * gnulib-tool (echo): Add a speedier workaround for ksh.
53285         * tests/test-echo.sh: Likewise.
53286
53287 2007-06-23  Bruno Haible  <bruno@clisp.org>
53288
53289         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
53290         * tests/test-echo.sh: Likewise.
53291
53292 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53293
53294         * gnulib-tool (IFS): Initialize early, so we don't set it to
53295         empty later.
53296         (self_abspathname): Rewrite algorithm to set it, reindent.
53297         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
53298         (func_create_megatestdir): Merge some sed scripts.
53299
53300 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
53301
53302         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
53303         exposed by Sun Studio 11 cc on Solaris 8.
53304
53305 2007-06-22  Bruno Haible  <bruno@clisp.org>
53306
53307         * gnulib-tool (echo): Ensure the echo primitive does not interpret
53308         backslashes.
53309         * tests/test-echo.sh: New file.
53310
53311 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53312
53313         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
53314         simplify `sed_replace_build_aux' scripts, they are portable but
53315         echoing them with `echo' is not.
53316         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
53317
53318 2007-06-21  Karl Berry  <karl@gnu.org>
53319
53320         * config/srclist.txt: guess we can't handle the licenses via
53321         srclist at the moment.
53322
53323 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
53324
53325         * MODULES.html.sh: Add include_next.
53326         * modules/include_next: New file.
53327
53328 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
53329
53330         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
53331         INCLUDE_NEXT.
53332         (gl_CHECK_NEXT_HEADERS): New macro.
53333         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
53334         the obsolescent gl_ABSOLUTE_HEADER.
53335         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
53336         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
53337         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
53338         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
53339         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
53340         * m4/math_h.m4 (gl_MATH_H): Likewise.
53341         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
53342         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
53343         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
53344         * m4/stdint.m4 (gl_STDINT_H): Likewise.
53345         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
53346         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
53347         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
53348         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
53349         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
53350         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
53351         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
53352         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
53353         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
53354         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
53355         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
53356         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
53357         * m4/inttypes.m4 (gl_INTTYPES_H): Define
53358         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
53359         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
53360         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
53361         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
53362         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
53363         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
53364         * lib/float_.h: Likewise.
53365         * lib/inttypes_.h: Likewise.
53366         * lib/math_.h: Likewise.
53367         * lib/search_.h: Likewise.
53368         * lib/signal_.h: Likewise.
53369         * lib/stdint_.h: Likewise.
53370         * lib/stdio_.h: Likewise.
53371         * lib/stdlib_.h: Likewise.
53372         * lib/string_.h: Likewise.
53373         * lib/sys_stat_.h: Likewise.
53374         * lib/sys_time_.h: Likewise.
53375         * lib/time_.h: Likewise.
53376         * lib/unistd_.h: Likewise.
53377         * lib/wchar_.h: Likewise.
53378         * lib/wctype_.h: Likewise.
53379         * lib/dirent_.h: Likewise.
53380         * lib/iconv_.h: Likewise.
53381         * lib/locale_.h: Likewise.
53382         * lib/netinet_in_.h: Likewise.
53383         * lib/sys_select_.h: Likewise.
53384         * lib/sys_socket_.h: Likewise.
53385         * lib/sysexits_.h: Likewise.
53386         * modules/fcntl (Depends-on): Depend on include_next, not
53387         absolute_header.
53388         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
53389         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
53390         * modules/fchdir: Likewise.
53391         * modules/float: Likewise.
53392         * modules/iconv_open: Likewise.
53393         * modules/inttypes: Likewise.
53394         * modules/locale: Likewise.
53395         * modules/math: Likewise.
53396         * modules/netinet_in: Likewise.
53397         * modules/search: Likewise.
53398         * modules/signal: Likewise.
53399         * modules/stdint: Likewise.
53400         * modules/stdio: Likewise.
53401         * modules/stdlib: Likewise.
53402         * modules/string: Likewise.
53403         * modules/sys_select: Likewise.
53404         * modules/sys_socket: Likewise.
53405         * modules/sys_stat: Likewise.
53406         * modules/sys_time: Likewise.
53407         * modules/sysexits: Likewise.
53408         * modules/time: Likewise.
53409         * modules/unistd: Likewise.
53410         * modules/wchar: Likewise.
53411         * modules/wctype: Likewise.
53412         * modules/sys_stat: Change maintainer to "all".
53413         * modules/unistd: Likewise.
53414
53415 2007-06-20  Karl Berry  <karl@gnu.org>
53416
53417         * config/srclist.txt: track www changes in license files.
53418
53419 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
53420
53421         * build-aux/bootstrap: Remove stray dot.
53422         Make sure build_aux settings are honored when linking
53423         gnulib_extra_files.
53424
53425 2007-06-19  Eric Blake  <ebb9@byu.net>
53426
53427         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
53428         Allow compilation on cygwin.
53429
53430 2007-06-19  Jim Meyering  <jim@meyering.net>
53431
53432         xreadlink-with-size: Remove module.  No longer used.
53433         Ex-callers now use xreadlink or mreadlink-with-size.
53434         * modules/xreadlink-with-size: Remove module.
53435         * lib/xreadlink-with-size.c: Remove file.
53436         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
53437         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
53438         just before the function definition *is* accurate.
53439
53440         Eliminate one way canonicalize_filename_mode could exit.
53441         * lib/canonicalize.c (canonicalize_filename_mode):
53442         Use mreadlink_with_size, not xreadlink_with_size.
53443
53444 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
53445
53446         Detect porting problems to FreeBSD/arm, which has time_t wider than
53447         long int.  Original problem reported for GNU diff by Xin Li in
53448         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
53449         * modules/getdate (Depends-on): Add intprops, verify.
53450         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
53451         is an integer type no wider than long int.
53452
53453 2007-06-18  Jim Meyering  <jim@meyering.net>
53454
53455         New module: mreadlink-with-size.
53456         * MODULES.html.sh: Add mreadlink-with-size.
53457         * modules/mreadlink-with-size: New module
53458         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
53459         not xreadlink-with-size.
53460         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
53461
53462 2007-06-16  Bruno Haible  <bruno@clisp.org>
53463
53464         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
53465         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
53466         Reported by Gary V. Vaughan <gary@gnu.org>.
53467
53468 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
53469
53470         Revamp lchown so that it lives in unistd.h where it belongs.
53471         * lib/lchown.h: Remove.
53472         * lib/dirchownmod.c: Don't include lib/lchown.h.
53473         * lib/fchownat.c: Likewise.
53474         * lib/openat.c: Likewise.
53475         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
53476         does not follow symlinks.
53477         (EOPNOTSUPP): Define if not defined.
53478         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
53479         is defined to 0.
53480         (lchown): New decl.
53481         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
53482         Do not check for lchown decl.
53483         Set REPLACE_LCHOWN.
53484         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
53485         REPLACE_LCHOWN.
53486         * modules/chown: Make it clear it follows symlinks.
53487         * modules/lchown: Make it clear it doesn't follow symlinks.
53488         (Files): Remove lib/lchown.h
53489         (Depends-on): Add unistd.
53490         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
53491         (Include): Include <unistd.h>, not "lchown.h".
53492         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
53493         REPLACE_LCHOWN.
53494
53495 2007-06-15  Jim Meyering  <jim@meyering.net>
53496
53497         Change license (GPL to LGPL) of fsusage and dependents.
53498         * modules/fsusage (License): Change to LGPL.
53499         * modules/full-read (License): Likewise.
53500         * modules/full-write (License): Likewise.
53501         * modules/safe-read (License): Likewise.
53502         * modules/safe-write (License): Likewise.
53503
53504 2007-06-14  Ben Pfaff  <blp@gnu.org>
53505
53506         Missing part of allocsa -> malloca transition.
53507         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
53508         gl_MALLOCA.
53509
53510 2007-06-12  Bruno Haible  <bruno@clisp.org>
53511
53512         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
53513         to ia64, x86_64, i386.
53514         Reported by Eric Blake.
53515
53516 2007-06-12  Bruno Haible  <bruno@clisp.org>
53517
53518         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
53519         cross-compiling to x86_64.
53520
53521 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
53522
53523         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
53524         glitch reported by Ralf Wildenhues in
53525         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
53526
53527         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
53528         Vin Shelton.
53529
53530 2007-06-11  Bruno Haible  <bruno@clisp.org>
53531
53532         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
53533         replacement string.
53534         Reported by Eric Blake.
53535
53536 2007-06-10  Bruno Haible  <bruno@clisp.org>
53537
53538         Prepare vasnprintf code for use with Unicode strings.
53539         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
53540         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
53541         TYPE_U32_STRING.
53542         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
53543         a_u32_string variants.
53544         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
53545         * lib/printf-args.c: Don't include config.h and the specification
53546         header if PRINTF_FETCHARGS is already defined.
53547         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
53548         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
53549         TYPE_U16_STRING, TYPE_U32_STRING.
53550         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
53551         u16_directive, u16_directives, u32_directive, u32_directives): New
53552         types.
53553         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
53554         New declarations.
53555         * lib/printf-parse.c: Don't include config.h and the specification
53556         header if PRINTF_PARSE is already defined. Eliminate the set of
53557         parameters for WIDE_CHAR_VERSION; the user of this file must provide
53558         them now. Include c-ctype.h.
53559         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
53560         directive and CHAR_T_ONLY_ASCII.
53561         * lib/vasnprintf.c: Don't include config.h and the specification header
53562         if VASNPRINTF is already defined.
53563         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
53564         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
53565         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
53566         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
53567         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
53568         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
53569         code accordingly.
53570         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
53571         pad_ourselves also in this case, with the 'c' and 's' directives, and
53572         with a different notion of "width".
53573         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
53574
53575 2007-06-10  Bruno Haible  <bruno@clisp.org>
53576
53577         * modules/unistr/u32-mbsnlen: New file.
53578         * lib/unistr/u32-mbsnlen.c: New file.
53579
53580         * modules/unistr/u16-mbsnlen: New file.
53581         * lib/unistr/u16-mbsnlen.c: New file.
53582
53583         * modules/unistr/u8-mbsnlen: New file.
53584         * lib/unistr/u8-mbsnlen.c: New file.
53585
53586         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
53587         declarations.
53588
53589 2007-06-10  Bruno Haible  <bruno@clisp.org>
53590
53591         * lib/string_.h (mbsnlen): New declaration.
53592         * lib/mbsnlen.c: New file.
53593         * m4/mbsnlen.m4: New file.
53594         * modules/mbsnlen: New file.
53595         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
53596         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
53597         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
53598
53599 2007-06-10  Bruno Haible  <bruno@clisp.org>
53600
53601         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
53602
53603 2007-06-10  Bruno Haible  <bruno@clisp.org>
53604
53605         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
53606         * lib/mbuiter.h: Likewise.
53607
53608 2007-06-10  Bruno Haible  <bruno@clisp.org>
53609
53610         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
53611         declaration.
53612
53613 2007-06-10  Karl Berry  <karl@gnu.org>
53614
53615         * config/srclist.txt: remove gettext entries, Bruno prefers
53616         to update individually.
53617
53618 2007-06-10  Bruno Haible  <bruno@clisp.org>
53619
53620         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
53621         'maxlen'. Ensure only length + width bytes are allocated, not
53622         length + 1 + width.
53623
53624 2007-06-09  Bruno Haible  <bruno@clisp.org>
53625
53626         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
53627         (CHAR_T): Remove macro.
53628         (VASNPRINTF): Update.
53629
53630 2007-06-09  Bruno Haible  <bruno@clisp.org>
53631
53632         * MODULES.html.sh (Unicode string functions): Add the new modules.
53633
53634         * modules/uniconv/u32-conv-to-enc: New file.
53635         * lib/uniconv/u32-conv-to-enc.c: New file.
53636         * modules/uniconv/u32-conv-to-enc-tests: New file.
53637         * tests/uniconv/test-u32-conv-to-enc.c: New file.
53638
53639         * modules/uniconv/u16-conv-to-enc: New file.
53640         * lib/uniconv/u16-conv-to-enc.c: New file.
53641         * lib/uniconv/u-conv-to-enc.h: New file.
53642         * modules/uniconv/u16-conv-to-enc-tests: New file.
53643         * tests/uniconv/test-u16-conv-to-enc.c: New file.
53644
53645         * modules/uniconv/u8-conv-to-enc: New file.
53646         * lib/uniconv/u8-conv-to-enc.c: New file.
53647         * modules/uniconv/u8-conv-to-enc-tests: New file.
53648         * tests/uniconv/test-u8-conv-to-enc.c: New file.
53649
53650         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
53651         u32_conv_to_encoding): New declarations.
53652
53653 2007-06-09  Bruno Haible  <bruno@clisp.org>
53654
53655         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
53656
53657 2007-06-09  Bruno Haible  <bruno@clisp.org>
53658
53659         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
53660         * modules/malloca: Renamed from modules/allocsa, updated.
53661         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
53662         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
53663         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
53664         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
53665         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
53666         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
53667         * modules/xmalloca: Renamed from modules/xallocsa, updated.
53668         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
53669         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
53670         * modules/c-strcasestr (Depends-on): Update.
53671         * lib/c-strcasestr.c: Update.
53672         * modules/c-strstr (Depends-on): Update.
53673         * lib/c-strstr.c: Update.
53674         * modules/canonicalize-lgpl (Depends-on): Update.
53675         * lib/canonicalize-lgpl.c: Update.
53676         * modules/clean-temp (Depends-on): Update.
53677         * lib/clean-temp.c: Update.
53678         * modules/csharpcomp (Depends-on): Update.
53679         * lib/csharpcomp.c: Update.
53680         * modules/csharpexec (Depends-on): Update.
53681         * lib/csharpexec.c: Update.
53682         * modules/javacomp (Depends-on): Update.
53683         * lib/javacomp.c: Update.
53684         * modules/javaexec (Depends-on): Update.
53685         * lib/javaexec.c: Update.
53686         * modules/mbscasestr (Depends-on): Update.
53687         * lib/mbscasestr.c: Update.
53688         * modules/mbsstr (Depends-on): Update.
53689         * lib/mbsstr.c: Update.
53690         * modules/setenv (Depends-on): Update.
53691         * lib/setenv.c: Update.
53692         * modules/strcasestr (Depends-on): Update.
53693         * lib/strcasestr.c: Update.
53694         * modules/striconveha (Depends-on): Update.
53695         * lib/striconveha.c: Update.
53696         * modules/relocatable-prog-wrapper (Files): Update.
53697         * lib/relocwrapper.c: Update.
53698         * build-aux/install-reloc: Update.
53699         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
53700
53701 2007-06-08  Bruno Haible  <bruno@clisp.org>
53702
53703         Port to uClibc.
53704         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
53705         * lib/fpurge.c (fpurge): Likewise.
53706         * lib/freading.c (freading): Likewise.
53707         * lib/fseeko.c (rpl_fseeko): Likewise.
53708         * lib/fseterr.c (fseterr): Likewise.
53709         * lib/fwriting.c (fwriting): Likewise.
53710         * tests/test-fflush.c (main): Avoid a failure on uClibc.
53711
53712 2007-06-08  Bruno Haible  <bruno@clisp.org>
53713
53714         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
53715         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
53716         * modules/gettext (Files): Add m4/intlmacosx.m4.
53717
53718 2007-06-07  Bruno Haible  <bruno@clisp.org>
53719
53720         * modules/localename-tests: New file.
53721         * tests/test-localename.c: New file.
53722
53723         New module 'localename'.
53724         * lib/localename.h: New file.
53725         * lib/localename.c: New file, from GNU gettext.
53726         * m4/localename.m4: New file.
53727         * modules/localename: New file.
53728
53729 2007-06-07  Bruno Haible  <bruno@clisp.org>
53730
53731         Work around the lack of <wchar.h> on some builds of uClibc.
53732         * doc/headers/wchar.texi: Update.
53733         * lib/wchar_.h: Include <wchar.h> only if it exists.
53734         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
53735         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
53736         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
53737         doesn't exist.
53738         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
53739         * modules/mbfile (Depends-on): Add wchar.
53740         * modules/mbiter (Depends-on): Likewise.
53741         * modules/mbuiter (Depends-on): Likewise.
53742         Reported by Simon Josefsson.
53743
53744 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
53745
53746         Work around problem reported by Steven M. Schweda in
53747         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
53748         Tru64 5.1B with the Compaq compiler environment installed declares
53749         an 'isblank' function but does not define it in the C library.
53750         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
53751         * lib/regex_internal.h (isblank): Likewise.
53752         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
53753         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
53754
53755 2007-06-05  Bruno Haible  <bruno@clisp.org>
53756
53757         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
53758         ia64.
53759         * modules/printf-safe: New file.
53760         * modules/fprintf-posix (Depends-on): Add printf-safe.
53761         * modules/printf-posix (Depends-on): Likewise.
53762         * modules/snprintf-posix (Depends-on): Likewise.
53763         * modules/sprintf-posix (Depends-on): Likewise.
53764         * modules/vasnprintf-posix (Depends-on): Likewise.
53765         * modules/vasprintf-posix (Depends-on): Likewise.
53766         * modules/vfprintf-posix (Depends-on): Likewise.
53767         * modules/vprintf-posix (Depends-on): Likewise.
53768         * modules/vsnprintf-posix (Depends-on): Likewise.
53769         * modules/vsprintf-posix (Depends-on): Likewise.
53770         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
53771         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
53772         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
53773         "no" on i386, x86_64, ia64.
53774         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
53775         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53776         on i386, x86_64, ia64.
53777         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
53778         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53779         on i386, x86_64, ia64.
53780         * tests/test-vasnprintf-posix.c: Include float.h.
53781         (LDBL80_WORDS): New macro.
53782         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53783         on i386, x86_64, ia64.
53784         * tests/test-vasprintf-posix.c: Include float.h.
53785         (LDBL80_WORDS): New macro.
53786         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53787         on i386, x86_64, ia64.
53788         * tests/test-snprintf-posix.c: Include float.h.
53789         * tests/test-sprintf-posix.c: Likewise.
53790         * tests/test-vsnprintf-posix.c: Likewise.
53791         * tests/test-vsprintf-posix.c: Likewise.
53792
53793 2007-06-05  Bruno Haible  <bruno@clisp.org>
53794
53795         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
53796         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
53797         non-IEEE numbers on i386, x86_64, ia64.
53798         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
53799         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
53800         * tests/test-isnanl.h: Include float.h.
53801         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
53802
53803 2007-06-05  Bruno Haible  <bruno@clisp.org>
53804
53805         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
53806         also the %a / %A. Handle the %a / %A code before this extra handling.
53807
53808 2007-06-05  Bruno Haible  <bruno@clisp.org>
53809
53810         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
53811         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
53812
53813 2007-06-05  Bruno Haible  <bruno@clisp.org>
53814
53815         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
53816         typo in variable name.
53817
53818 2007-06-05  Eric Blake  <ebb9@byu.net>
53819
53820         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
53821         Reported by Simon Josefsson.
53822
53823 2007-06-04  Bruno Haible  <bruno@clisp.org>
53824
53825         Avoid test failures on some PowerPC platforms.
53826         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
53827         Define differently for PowerPC.
53828         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
53829         Reported by Gary V. Vaughan <gary@gnu.org>.
53830
53831 2007-06-02  Bruno Haible  <bruno@clisp.org>
53832
53833         Fix test-stdint failure on FreeBSD/ia64.
53834         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
53835         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
53836         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
53837         * doc/headers/stdint.texi: Update.
53838
53839 2007-06-01  Bruno Haible  <bruno@clisp.org>
53840
53841         * tests/test-binary-io.c (main): Pass a third argument to open().
53842         Reported by Gary V. Vaughan <gary@gnu.org>.
53843
53844 2007-06-01  Bruno Haible  <bruno@clisp.org>
53845
53846         * doc/functions/frexpl.texi: Update for mingw.
53847
53848 2007-06-01  Bruno Haible  <bruno@clisp.org>
53849
53850         * tests/test-lseek.c (main): Disable test of errno for invalid third
53851         argument.
53852         * doc/functions/lseek.texi: Update.
53853         Reported by Gary V. Vaughan <gary@gnu.org>.
53854
53855 2007-05-28  Bruno Haible  <bruno@clisp.org>
53856
53857         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
53858
53859 2007-05-31  Eric Blake  <ebb9@byu.net>
53860
53861         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
53862         cross compiling.
53863
53864 2007-05-30  Eric Blake  <ebb9@byu.net>
53865         and Bruno Haible  <bruno@clisp.org>
53866
53867         Work around mingw test failures exposed by m4-1.4.9b.
53868         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
53869         * tests/test-unistd.c: Disable uid_t and git_t tests for the
53870         moment.
53871
53872 2007-05-30  Bruno Haible  <bruno@clisp.org>
53873
53874         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
53875         assuming that they are closed. Needed on HP-UX 11.
53876
53877 2007-05-29  Bruno Haible  <bruno@clisp.org>
53878
53879         Fix a problem with #include_next.
53880         * lib/dirent_.h: Split the double-inclusion guard.
53881         * lib/fcntl_.h: Likewise.
53882         * lib/float_.h: Likewise.
53883         * lib/iconv_.h: Likewise.
53884         * lib/inttypes_.h: Likewise.
53885         * lib/locale_.h: Likewise.
53886         * lib/math_.h: Likewise.
53887         * lib/netinet_in_.h: Likewise.
53888         * lib/search_.h: Likewise.
53889         * lib/signal_.h: Likewise.
53890         * lib/stdint_.h: Likewise.
53891         * lib/stdio_.h: Likewise.
53892         * lib/stdlib_.h: Likewise.
53893         * lib/string_.h: Likewise.
53894         * lib/sys_select_.h: Likewise.
53895         * lib/sys_socket_.h: Likewise.
53896         * lib/sys_stat_.h: Likewise.
53897         * lib/sys_time_.h: Likewise.
53898         * lib/sysexits_.h: Likewise.
53899         * lib/time_.h: Likewise.
53900         * lib/unistd_.h: Likewise.
53901         * lib/wchar_.h: Likewise.
53902         * lib/wctype_.h: Likewise.
53903
53904 2007-05-29  Bruno Haible  <bruno@clisp.org>
53905
53906         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
53907         for the moment.
53908
53909 2007-05-29  Bruno Haible  <bruno@clisp.org>
53910
53911         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
53912         invocation.
53913         Reported by Eric Blake.
53914
53915 2007-05-29  Bruno Haible  <bruno@clisp.org>
53916
53917         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
53918         compiling case.
53919
53920 2007-05-29  Eric Blake  <ebb9@byu.net>
53921             Bruno Haible  <bruno@clisp.org>
53922
53923         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
53924         cross compiles.
53925
53926 2007-05-28  Eric Blake  <ebb9@byu.net>
53927
53928         * modules/closein-tests (test_closein_LDADD): Support test on
53929         cygwin with libtool.
53930
53931 2007-05-28  Bruno Haible  <bruno@clisp.org>
53932
53933         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
53934         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
53935         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
53936         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
53937         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
53938         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
53939         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
53940         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
53941         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
53942
53943 2007-05-28  Eric Blake  <ebb9@byu.net>
53944
53945         Unconditionally include <config.h> in unit tests.
53946         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
53947         * tests/test-allocsa.c, tests/test-arcfour.c,
53948         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
53949         tests/test-array_list.c, tests/test-array_oset.c,
53950         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
53951         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
53952         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
53953         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
53954         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
53955         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
53956         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
53957         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
53958         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
53959         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
53960         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
53961         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
53962         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
53963         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
53964         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
53965         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
53966         test-md5.c, test-memmem.c, test-printf-posix.c,
53967         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
53968         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
53969         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
53970         test-strcasestr.c, test-striconv.c, test-striconveh.c,
53971         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
53972         test-vasnprintf-posix2.c, test-vasnprintf.c,
53973         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
53974         test-vfprintf-posix.c, test-vprintf-posix.c,
53975         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
53976         test-xvasprintf.c: Likewise.
53977
53978 2007-05-28  Bruno Haible  <bruno@clisp.org>
53979
53980         * gnulib-tool (func_import): Remember the --with-tests command-line
53981         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
53982         Reported by Eric Blake.
53983
53984 2007-05-28  Bruno Haible  <bruno@clisp.org>
53985
53986         * modules/ftell-tests: New file.
53987         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
53988         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
53989
53990         * lib/ftell.c: New file.
53991         * modules/ftell: New file.
53992         * m4/ftell.m4: New file.
53993         * doc/functions/ftell.texi: Update.
53994         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
53995         REPLACE_FTELL.
53996         * lib/stdio_.h (rpl_ftell): New declaration.
53997         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
53998         REPLACE_FTELL.
53999
54000 2007-05-28  Eric Blake  <ebb9@byu.net>
54001
54002         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
54003
54004 2007-05-28  Bruno Haible  <bruno@clisp.org>
54005
54006         * modules/fseek-tests: New file.
54007         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
54008         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
54009
54010         * lib/fseek.c: New file.
54011         * modules/fseek: New file.
54012         * m4/fseek.m4: New file.
54013         * doc/functions/fseek.texi: Update.
54014         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
54015         REPLACE_FSEEK.
54016         * lib/stdio_.h (rpl_fseek): New declaration.
54017         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
54018         REPLACE_FSEEK.
54019
54020 2007-05-28  Bruno Haible  <bruno@clisp.org>
54021
54022         * lib/stdio_.h (fflush): More comments.
54023
54024 2007-05-28  Bruno Haible  <bruno@clisp.org>
54025
54026         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
54027         runtime test.
54028
54029 2007-05-28  Eric Blake  <ebb9@byu.net>
54030
54031         Improve lseek module.
54032         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
54033         * lib/unistd_.h (lseek): Scale back link warning message.
54034         * tests/test-lseek.c: Beef up test.
54035         * tests/test-lseek.sh: Exercise more facets of lseek.
54036         Reported by Bruno Haible.
54037
54038 2007-05-28  Bruno Haible  <bruno@clisp.org>
54039
54040         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
54041         to define.
54042
54043 2007-05-27  Bruno Haible  <bruno@clisp.org>
54044
54045         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
54046
54047 2007-05-27  Bruno Haible  <bruno@clisp.org>
54048
54049         * modules/openmp: New file.
54050         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
54051         Noah Misch.
54052
54053 2007-05-26  Bruno Haible  <bruno@clisp.org>
54054
54055         * modules/chdir-long (Depends-on): Add fchdir.
54056         * modules/chdir-safer (Depends-on): Likewise.
54057         * modules/fts (Depends-on): Likewise.
54058         * modules/fts-lgpl (Depends-on): Likewise.
54059         * modules/openat (Depends-on): Likewise.
54060         * modules/savewd (Depends-on): Likewise.
54061
54062 2007-05-24  Eric Blake  <ebb9@byu.net>
54063
54064         Fix lseek on mingw.
54065         * modules/lseek: New module.
54066         * m4/lseek.m4: New file.
54067         * lib/lseek.c: New file.
54068         * modules/lseek-tests: New file.
54069         * tests/test-lseek.c: New file.
54070         * tests/test-lseek.sh: New file.
54071         * MODULES.html.sh: Document lseek module.
54072         * modules/fflush (Depends-on): Add lseek, fseeko.
54073         * modules/fseeko (Depends-on): Likewise.
54074         * modules/ftello (Depends-on): Likewise.
54075         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
54076         broken.
54077         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
54078         broken.
54079         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
54080         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
54081         * lib/ftello.c (rpl_ftello): Likewise.
54082         * tests/test-fseeko.c (main): Test this.
54083         * tests/test-fseeko.sh: Likewise.
54084         * tests/test-ftello.c (main): Likewise.
54085         * tests/test-ftello.sh: Likewise.
54086         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
54087         implies replacing fseek.
54088         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
54089         HAVE_FTELLO.
54090         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
54091         * modules/unistd (Makefile.am): Likewise.
54092         * lib/unistd_.h (lseek): Declare a replacement.
54093         * doc/functions/lseek.texi (lseek): Document this fix.
54094         * doc/functions/fseek.texi (fseek): Likewise.
54095         * doc/functions/ftell.texi (ftell): Likewise.
54096
54097 2007-05-24  Bruno Haible  <bruno@clisp.org>
54098
54099         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
54100         in the printed representation of a NaN.
54101         * tests/test-vasprintf-posix.c (test_function): Likewise.
54102         * tests/test-snprintf-posix.h (test_function): Likewise.
54103         * tests/test-sprintf-posix.h (test_function): Likewise.
54104         Reported by Eric Blake.
54105
54106 2007-05-23  Eric Blake  <ebb9@byu.net>
54107
54108         Fix fseeko/ftello on cygwin 1.5.24.
54109         * doc/functions/fseeko.texi (fseeko): Document the fix.
54110         * doc/functions/ftello.texi (ftello): Document the fix.
54111         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
54112         * doc/functions/stdout.text (stdout): New file.
54113         * doc/functions/stderr.text (stderr): New file.
54114         * doc/gnulib.texi (Function Substitutes): Use new files.
54115         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
54116         prior to 1.7.0.
54117         * tests/test-ftello.c (main): Likewise for ftello.
54118         * tests/test-fseeko.sh: New file.
54119         * tests/test-ftello.sh: New file.
54120         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
54121         with seekable stdin.
54122         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
54123         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
54124         (gl_REPLACE_FSEEKO): New macro.
54125         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
54126         * modules/fseeko (Files): Distribute fseeko.c.
54127         * modules/ftello (Files): Distribute ftello.c.
54128         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
54129         mode.
54130         * lib/ftello.c (rpl_ftello): New file.
54131         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
54132         fseeko, ftello.
54133         (gl_STDIN_LARGE_OFFSET): New macro.
54134         * modules/stdio (Makefile.am): Perform the replacement.
54135         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
54136
54137 2007-05-23  Bruno Haible  <bruno@clisp.org>
54138
54139         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
54140         GNULIB_POSIXCHECK is defined.
54141
54142 2007-05-21  Bruno Haible  <bruno@clisp.org>
54143
54144         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
54145         Check also the output for NaN arguments. When cross-compiling, guess
54146         no on IRIX.
54147         * lib/vasnprintf.c: Update comments.
54148         * tests/test-vasnprintf-posix.c (strisnan): New function.
54149         (test_function): Use it.
54150         * tests/test-vasprintf-posix.c (strisnan): New function.
54151         (test_function): Use it.
54152         * tests/test-snprintf-posix.h (strisnan): New function.
54153         (test_function): Use it.
54154         * tests/test-sprintf-posix.h (strisnan): New function.
54155         (test_function): Use it.
54156         Reported by Eric Blake.
54157
54158 2007-05-20  Bruno Haible  <bruno@clisp.org>
54159
54160         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
54161         numbers that fails on BeOS.
54162         * doc/functions/frexpl.texi: Update.
54163
54164 2007-05-20  Jim Meyering  <jim@meyering.net>
54165
54166         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
54167         forced upon us by glibc-2.6.
54168
54169 2007-05-20  Bruno Haible  <bruno@clisp.org>
54170
54171         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
54172         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
54173         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
54174         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
54175         NEED_PRINTF_INFINITE.
54176         (is_infinitel): New function.
54177         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
54178         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
54179         gl_PREREQ_VASNPRINTF_INFINITE.
54180         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
54181         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54182         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
54183         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
54184         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
54185         gl_PREREQ_VASNPRINTF_INFINITE.
54186         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54187         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54188         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54189         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54190         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54191         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54192         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54193         * doc/functions/fprintf.texi: Update.
54194         * doc/functions/printf.texi: Update.
54195         * doc/functions/snprintf.texi: Update.
54196         * doc/functions/sprintf.texi: Update.
54197         * doc/functions/vfprintf.texi: Update.
54198         * doc/functions/vprintf.texi: Update.
54199         * doc/functions/vsnprintf.texi: Update.
54200         * doc/functions/vsprintf.texi: Update.
54201
54202 2007-05-20  Bruno Haible  <bruno@clisp.org>
54203
54204         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
54205         was not found in libc.
54206         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
54207
54208 2007-05-20  Bruno Haible  <bruno@clisp.org>
54209
54210         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
54211         printed as "-nan" instead of "nan".
54212         * tests/test-vasprintf-posix.c (test_function): Likewise.
54213         * tests/test-snprintf-posix.h (test_function): Likewise.
54214         * tests/test-sprintf-posix.h (test_function): Likewise.
54215         Needed for HP-UX 11.
54216
54217 2007-05-20  Jim Meyering  <jim@meyering.net>
54218
54219         Fix buggy test for the fchownat-deref bug.
54220         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
54221         symlink required for the run-test.  Without it, this test would
54222         always declare that fchownat doesn't work, and client code would
54223         unnecessarily use the replacement function with fixed libc.
54224         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
54225         Reported by Greg Schafer.
54226
54227 2007-05-19  Bruno Haible  <bruno@clisp.org>
54228
54229         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
54230         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
54231         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
54232         Needed for IRIX 6.5 and Solaris 2.5.1.
54233
54234 2007-05-19  Bruno Haible  <bruno@clisp.org>
54235
54236         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
54237         (test_function): Skip tests involving -0.0 on platforms where
54238         -0.0 = 0.0.
54239         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
54240         (test_function): Skip tests involving -0.0 on platforms where
54241         -0.0 = 0.0.
54242         * tests/test-snprintf-posix.h (have_minus_zero): New function.
54243         (test_function): Skip tests involving -0.0 on platforms where
54244         -0.0 = 0.0.
54245         * tests/test-sprintf-posix.h (have_minus_zero): New function.
54246         (test_function): Skip tests involving -0.0 on platforms where
54247         -0.0 = 0.0.
54248         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
54249         tests.
54250         * tests/test-printf-posix.h (test_function): Likewise.
54251         * tests/test-printf-posix.output: Remove all -0.0 related results.
54252         Needed for IRIX 6.5.
54253
54254 2007-05-19  Bruno Haible  <bruno@clisp.org>
54255
54256         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
54257         printed as "nan0x7fffffff" instead of "nan".
54258         * tests/test-vasprintf-posix.c (test_function): Likewise.
54259         * tests/test-snprintf-posix.h (test_function): Likewise.
54260         * tests/test-sprintf-posix.h (test_function): Likewise.
54261         * tests/test-fprintf-posix.h (NaN): Remove macro.
54262         (test_function): Remove all NaN related tests.
54263         * tests/test-printf-posix.h (NaN): Remove macro.
54264         (test_function): Remove all NaN related tests.
54265         * tests/test-printf-posix.output: Remove all NaN related results.
54266         Needed for IRIX 6.5.
54267
54268 2007-05-19  Bruno Haible  <bruno@clisp.org>
54269
54270         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
54271         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
54272
54273 2007-05-19  Bruno Haible  <bruno@clisp.org>
54274
54275         * lib/float_.h: New file.
54276         * m4/float_h.m4: New file.
54277         * modules/float: New file.
54278         * modules/isnanl (Dependencies): Add float.
54279         * modules/isnanl-nolibm (Dependencies): Likewise.
54280         * modules/mathl (Dependencies): Likewise.
54281         * modules/printf-frexpl (Dependencies): Likewise.
54282         * modules/signbit (Dependencies): Likewise.
54283         * modules/vasnprintf (Dependencies): Likewise.
54284         * doc/headers/float.texi: Update.
54285
54286 2007-05-19  Jim Meyering  <jim@meyering.net>
54287
54288         * lib/utimens.c (gl_futimens): Rename from futimens,
54289         now that glibc-2.6 declares futimens.
54290         * lib/utimens.h: Likewise.
54291
54292 2007-05-19  Bruno Haible  <bruno@clisp.org>
54293
54294         Avoid test failures on mingw.
54295         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
54296         * tests/test-printf-posix.sh: Likewise.
54297         * tests/test-vfprintf-posix.sh: Likewise.
54298         * tests/test-vprintf-posix.sh: Likewise.
54299
54300 2007-05-19  Bruno Haible  <bruno@clisp.org>
54301
54302         Fix *printf result for NaN, Inf, -0.0 on mingw.
54303         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
54304         * lib/vasnprintf.c: Include math.h and isnan.h.
54305         (is_infinite_or_zero): New function.
54306         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
54307         values in the %f, %F, %e, %E, %g, %G directives.
54308         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
54309         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54310         gl_PRINTF_INFINITE and test its result. Invoke
54311         gl_PREREQ_VASNPRINTF_INFINITE.
54312         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54313         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54314         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54315         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54316         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54317         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54318         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54319         * doc/functions/fprintf.texi: Update.
54320         * doc/functions/printf.texi: Update.
54321         * doc/functions/snprintf.texi: Update.
54322         * doc/functions/sprintf.texi: Update.
54323         * doc/functions/vfprintf.texi: Update.
54324         * doc/functions/vprintf.texi: Update.
54325         * doc/functions/vsnprintf.texi: Update.
54326         * doc/functions/vsprintf.texi: Update.
54327
54328 2007-05-19  Bruno Haible  <bruno@clisp.org>
54329
54330         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
54331         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
54332         Instead of multiplying with 10^k, set extra_zeroes to k.
54333         (scale10_round_long_double): Remove function.
54334
54335 2007-05-18  Bruno Haible  <bruno@clisp.org>
54336
54337         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
54338         introduced on 2007-05-06.
54339
54340 2007-05-18  Bruno Haible  <bruno@clisp.org>
54341
54342         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
54343         %g directives.
54344         * tests/test-vasprintf-posix.c (test_function): Likewise.
54345         * tests/test-snprintf-posix.h (test_function): Likewise.
54346         * tests/test-sprintf-posix.h (test_function): Likewise.
54347
54348 2007-05-18  Bruno Haible  <bruno@clisp.org>
54349
54350         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
54351         (strmatch): New function.
54352         (test_function): Test the %f directive on numbers of various exponents.
54353         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
54354         (strmatch): New function.
54355         (test_function): Test the %f directive on numbers of various exponents.
54356         * tests/test-snprintf-posix.h (strmatch): New function.
54357         (test_function): Test the %f directive on numbers of various exponents.
54358         * tests/test-sprintf-posix.h (strmatch): New function.
54359         (test_function): Test the %f directive on numbers of various exponents.
54360         * tests/test-snprintf-posix.c (SIZEOF): New macro.
54361         * tests/test-sprintf-posix.c (SIZEOF): New macro.
54362         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
54363         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
54364
54365 2007-05-18  Bruno Haible  <bruno@clisp.org>
54366
54367         Add support for 'long double' number output.
54368         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
54369         * lib/vasnprintf.c: Include math.h and float+.h.
54370         (mp_limb_t): New type.
54371         (GMP_LIMB_BITS): New macro.
54372         (mp_twolimb_t): New type.
54373         (GMP_TWOLIMB_BITS): New macro.
54374         (mpn_t): New type.
54375         (multiply, divide, convert_to_decimal, decode_long_double,
54376         scale10_round_long_double, scale10_round_decimal_long_double,
54377         floorlog10l): New functions.
54378         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
54379         for the %f, %F, %e, %E, %g, %G directives.
54380         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
54381         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54382         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
54383         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
54384         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54385         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54386         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54387         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54388         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54389         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54390         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54391         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
54392         * modules/snprintf-posix (Depends-on): Likewise.
54393         * modules/sprintf-posix (Depends-on): Likewise.
54394         * modules/vasnprintf-posix (Depends-on): Likewise.
54395         * modules/vasprintf-posix (Depends-on): Likewise.
54396         * modules/vfprintf-posix (Depends-on): Likewise.
54397         * modules/vsnprintf-posix (Depends-on): Likewise.
54398         * modules/vsprintf-posix (Depends-on): Likewise.
54399         * modules/vasnprintf (Files): Add lib/float+.h.
54400         * doc/functions/fprintf.texi: Update.
54401         * doc/functions/printf.texi: Update.
54402         * doc/functions/snprintf.texi: Update.
54403         * doc/functions/sprintf.texi: Update.
54404         * doc/functions/vfprintf.texi: Update.
54405         * doc/functions/vprintf.texi: Update.
54406         * doc/functions/vsnprintf.texi: Update.
54407         * doc/functions/vsprintf.texi: Update.
54408
54409 2007-05-18  Bruno Haible  <bruno@clisp.org>
54410
54411         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
54412
54413 2007-05-18  Bruno Haible  <bruno@clisp.org>
54414
54415         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
54416         for printing 64-bit integers. Needed for mingw.
54417
54418 2007-05-18  Bruno Haible  <bruno@clisp.org>
54419
54420         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
54421         gl_FUNC_FREXPL_WORKS.
54422         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
54423
54424 2007-05-18  Bruno Haible  <bruno@clisp.org>
54425
54426         * modules/frexpl-nolibm-tests: New file.
54427
54428         * modules/frexpl-nolibm: New file.
54429         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
54430
54431 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
54432
54433         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
54434         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
54435         GCC 4.2, which otherwise issues a lot of warnings.
54436         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
54437         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
54438         Likewise.
54439         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
54440         * modules/iconv_open (iconv.h): Likewise.
54441         * modules/locale (locale.h): Likewise.
54442         * modules/netinet_in (netinet/in.h): Likewise.
54443         * modules/sys_select (sys_select.h): Likewise.
54444         * modules/sys_socket (sys/socket.h): Likewise.
54445         * modules/sys_stat (sys/stat.h): Likewise.
54446         * modules/sysexits (sysexits.h): Likewise.
54447         * modules/unistd (unistd.h): Likewise.
54448
54449 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54450
54451         * modules/closein-tests (Makefile.am): Distribute
54452         `test-closein.sh'.
54453
54454 2007-05-17  Bruno Haible  <bruno@clisp.org>
54455
54456         * tests/test-printf-posix.output: Renamed from
54457         tests/test-fprintf-posix.out.
54458         * modules/fprintf-posix-tests: Update.
54459         * modules/printf-posix-tests: Update.
54460         * modules/vfprintf-posix-tests: Update.
54461         * modules/vprintf-posix-tests: Update.
54462         * tests/test-fprintf-posix.sh: Update.
54463         * tests/test-printf-posix.sh: Update.
54464         * tests/test-vfprintf-posix.sh: Update.
54465         * tests/test-vprintf-posix.sh: Update.
54466         Reported by Ralf Wildenhues.
54467
54468 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54469
54470         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
54471         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
54472         GCC 4.2, which otherwise issues a lot of warnings.
54473         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
54474         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
54475         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
54476         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
54477         it should no longer be needed.
54478         * lib/string_.h: Likewise.
54479         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
54480         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
54481         * modules/inttypes (inttypes.h): Likewise.
54482         * modules/math (math.h): Likewise.
54483         * modules/search (search.h): Likewise.
54484         * modules/signal (signal.h): Likewise.
54485         * modules/stdint (stdint.h): Likewise.
54486         * modules/stdio (stdio.h): Likewise.
54487         * modules/stdlib (stdlib.h): Likewise.
54488         * modules/string (string.h): Likewise.
54489         * modules/sys_time (sys/time.h): Likewise.
54490         * modules/time (time.h): Likewise.
54491         * modules/wchar (wchar.h): Likewise.
54492         * modules/wctype (wtype.h): Likewise.
54493
54494 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
54495
54496         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
54497
54498 2007-05-13  Bruno Haible  <bruno@clisp.org>
54499
54500         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
54501         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
54502         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
54503         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
54504         (gl_PREREQ_STRTOK_R): Don't require it here.
54505
54506 2007-05-13  Bruno Haible  <bruno@clisp.org>
54507
54508         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
54509         when used in C++ mode.
54510
54511 2007-05-12  Bruno Haible  <bruno@clisp.org>
54512
54513         * lib/linebuffer.h: Tweak doc.
54514         * lib/linebuffer.c: Likewise.
54515
54516 2007-05-12  James Youngman  <jay@gnu.org>
54517
54518         * lib/linebuffer.c (readlinebuffer_delim): New function,
54519         like readlinebuffer, but use a caller-specified delimiter.
54520         (readlinebuffer): Just call readlinebuffer_delim with '\n'
54521         as the delimiter.
54522         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
54523
54524 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
54525
54526         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
54527         * modules/openat (Files): Remove openat-die.c.
54528         (Depends-on): Add openat-die.
54529         * modules/openat-die: New module.
54530
54531 2007-05-06  Bruno Haible  <bruno@clisp.org>
54532
54533         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
54534         Update with info about Cygwin.
54535         * doc/functions/fprintf.texi: Update.
54536         * doc/functions/printf.texi: Update.
54537         * doc/functions/snprintf.texi: Update.
54538         * doc/functions/sprintf.texi: Update.
54539         * doc/functions/vfprintf.texi: Update.
54540         * doc/functions/vprintf.texi: Update.
54541         * doc/functions/vsnprintf.texi: Update.
54542         * doc/functions/vsprintf.texi: Update.
54543         Reported by Eric Blake.
54544
54545 2007-05-06  Bruno Haible  <bruno@clisp.org>
54546
54547         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
54548         padding ourselves for the floating-point directives.
54549         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
54550         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
54551         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54552         gl_PRINTF_FLAG_ZERO and test its result. Invoke
54553         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
54554         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54555         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
54556         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54557         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54558         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54559         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54560         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54561         * tests/test-snprintf-posix.h (test_function): Also check the width
54562         and some flags in the %f directive.
54563         * tests/test-sprintf-posix.h (test_function): Likewise.
54564         * tests/test-vasnprintf-posix.c (test_function): Likewise.
54565         * tests/test-vasprintf-posix.c (test_function): Likewise.
54566         * doc/functions/fprintf.texi: Update.
54567         * doc/functions/printf.texi: Update.
54568         * doc/functions/snprintf.texi: Update.
54569         * doc/functions/sprintf.texi: Update.
54570         * doc/functions/vfprintf.texi: Update.
54571         * doc/functions/vprintf.texi: Update.
54572         * doc/functions/vsnprintf.texi: Update.
54573         * doc/functions/vsprintf.texi: Update.
54574
54575 2007-05-06  Bruno Haible  <bruno@clisp.org>
54576
54577         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
54578         pass the ' flag character to sprintf or snprintf.
54579         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
54580         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
54581         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54582         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
54583         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
54584         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54585         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
54586         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54587         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54588         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54589         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54590         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54591         * tests/test-snprintf-posix.h (test_function): Also check the grouping
54592         flag.
54593         * tests/test-sprintf-posix.h (test_function): Likewise.
54594         * tests/test-vasnprintf-posix.c (test_function): Likewise.
54595         * tests/test-vasprintf-posix.c (test_function): Likewise.
54596         * doc/functions/fprintf.texi: Update.
54597         * doc/functions/printf.texi: Update.
54598         * doc/functions/snprintf.texi: Update.
54599         * doc/functions/sprintf.texi: Update.
54600         * doc/functions/vfprintf.texi: Update.
54601         * doc/functions/vprintf.texi: Update.
54602         * doc/functions/vsnprintf.texi: Update.
54603         * doc/functions/vsprintf.texi: Update.
54604
54605 2007-05-01  Bruno Haible  <bruno@clisp.org>
54606
54607         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
54608
54609 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
54610
54611         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
54612         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
54613
54614 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
54615
54616         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
54617         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
54618         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
54619
54620 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
54621
54622         * lib/argp-help.c (struct hol_entry): New member `ord'.
54623         (HOL_ENTRY_PTRCMP): Use ord for comparison
54624         (hol_sort): Initialize ord.
54625
54626 2007-05-01  Bruno Haible  <bruno@clisp.org>
54627
54628         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
54629         Reported by Eric Blake.
54630         * doc/gnulib.texi (Function Substitutes): Update.
54631
54632 2007-05-01  Bruno Haible  <bruno@clisp.org>
54633
54634         * doc/functions.texi: Remove file, now redundant through
54635         doc/functions/*.texi.
54636
54637 2007-05-01  Bruno Haible  <bruno@clisp.org>
54638
54639         * modules/argp (Depends-on): Add sleep.
54640
54641 2007-05-01  Bruno Haible  <bruno@clisp.org>
54642
54643         * modules/sleep-tests: New file.
54644         * tests/test-sleep.c: New file.
54645
54646         * modules/sleep: New file.
54647         * lib/sleep.c: New file.
54648         * m4/sleep.m4: New file.
54649         * lib/unistd_.h (sleep): New declaration.
54650         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
54651         HAVE_SLEEP.
54652         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
54653         * doc/functions/sleep.texi: Document the sleep module.
54654
54655 2007-05-01  Bruno Haible  <bruno@clisp.org>
54656
54657         * lib/sigprocmask.h: Remove file.
54658         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
54659         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
54660         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
54661         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
54662         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
54663         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
54664         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
54665         HAVE_SIGSET_T as a shell variable.
54666         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
54667         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
54668         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
54669         (Depends-on): Add signal. Remove verify.
54670         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
54671         (Include): Mention <signal.h> instead of sigprocmask.h.
54672         * NEWS: Mention the change.
54673         * lib/fatal-signal.c: Don't include sigprocmask.h.
54674
54675 2007-05-01  Bruno Haible  <bruno@clisp.org>
54676
54677         * modules/signal: New file.
54678         * lib/signal_.h: New file.
54679         * m4/signal_h.m4: New file.
54680
54681 2007-05-01  Bruno Haible  <bruno@clisp.org>
54682
54683         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
54684         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
54685         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
54686         HAVE_WCTYPE_CTMP_BUG into wctype.h.
54687
54688 2007-05-01  Bruno Haible  <bruno@clisp.org>
54689
54690         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
54691         configure time.
54692         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
54693         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
54694         * modules/sys_stat (Makefile.am): Substitute their values into
54695         sys/stat.h.
54696
54697 2007-05-01  Bruno Haible  <bruno@clisp.org>
54698
54699         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
54700         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
54701         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
54702
54703 2007-05-01  Bruno Haible  <bruno@clisp.org>
54704
54705         * doc/header/assert.texi: Undo last change: don't mention the gnulib
54706         'assert' module here.
54707
54708 2007-05-01  Bruno Haible  <bruno@clisp.org>
54709
54710         * doc/functions/*.texi: New files.
54711         * doc/functions/google-ranking.txt: New file.
54712         * doc/gnulib.texi (Function Substitutes): New chapter.
54713         (ctime, inet_ntoa): Remove sections.
54714         * doc/ctime.texi: Remove file.
54715         * doc/inet_ntoa.texi: Remove file.
54716         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
54717         dependencies.
54718         (%.info): New rule, specifying a --reference-limit.
54719
54720 2007-05-01  Bruno Haible  <bruno@clisp.org>
54721
54722         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
54723
54724 2007-05-01  Bruno Haible  <bruno@clisp.org>
54725
54726         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
54727         the portability of 'mkdir' to mingw systems.
54728
54729 2007-05-01  Bruno Haible  <bruno@clisp.org>
54730
54731         * doc/headers/google-ranking.txt: New file.
54732
54733 2007-04-30  Eric Blake  <ebb9@byu.net>
54734
54735         Prefer fseeko to fseek.
54736         * modules/getpass (Depends-on): Add fseeko.
54737         * lib/getpass.c (getpass): Use fseeko, not fseek.
54738
54739 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
54740
54741         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
54742         assumes the sorting is stable, while most qsort implementations
54743         are not.  Use argument addresses to ensure they never compare as
54744         equal.
54745
54746         * tests/test-argp-2.sh (usage-indent test): Fix output
54747         (func_compare): Restore diff options
54748         * tests/test-argp.c: Restore #include "progname.h"
54749
54750 2007-04-29  Bruno Haible  <bruno@clisp.org>
54751
54752         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
54753         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54754         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
54755         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54756         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
54757         (configure.ac): Define CHECK_SNPRINTF_POSIX.
54758         (TESTS, check_PROGRAMS): Add test-snprintf.
54759         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
54760         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
54761         (TESTS, check_PROGRAMS): Add test-vsnprintf.
54762         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
54763         assertions that fail on HP-UX, OSF/1, or IRIX.
54764         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
54765
54766 2007-04-29  Bruno Haible  <bruno@clisp.org>
54767
54768         * MODULES.html.sh (posix_functions): Remove 'contents'.
54769
54770 2007-04-29  Karl Berry  <karl@gnu.org>
54771
54772         * config/srclist.txt (gendocs_template_min): new entry.
54773
54774 2007-04-29  Bruno Haible  <bruno@clisp.org>
54775
54776         Work around fpurge bug on BSD systems.
54777         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
54778         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
54779         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
54780         fpurge to rpl_fpurge if the system already has this function.
54781         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
54782         the case where the system already has this function. Correct invariants
54783         on BSD systems.
54784         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
54785         BSD systems.
54786
54787 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
54788
54789         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
54790         proposed by Sven Verdoolaege.
54791
54792         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
54793         options.
54794         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
54795         (usage and help tests): Update
54796
54797 2007-04-29  Bruno Haible  <bruno@clisp.org>
54798
54799         * tests/test-fflush.c (main): Use a file of size 17, not 10.
54800         Print more information in case of failure. Disable a test on BeOS.
54801
54802 2007-04-29  Bruno Haible  <bruno@clisp.org>
54803
54804         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
54805         This helps debugging on systems on which no gdb is available.
54806
54807 2007-04-29  Bruno Haible  <bruno@clisp.org>
54808
54809         * lib/freading.h: Improve comments.
54810         * lib/fwriting.h: Likewise.
54811         * tests/test-freading.c (main): Don't check freading immediately after
54812         repositioning. Needed for glibc.
54813
54814 2007-04-29  Bruno Haible  <bruno@clisp.org>
54815
54816         * lib/freading.c (freading): Trivial simplification.
54817
54818 2007-04-28  Bruno Haible  <bruno@clisp.org>
54819
54820         * tests/test-fwriting.c (main): Also test the interaction between
54821         fflush and fwriting.
54822         * modules/fwriting-tests (Depends-on): Add fflush.
54823
54824         * tests/test-freading.c (main): Also test the interaction between
54825         fflush and freading.
54826         * modules/freading-tests (Depends-on): Add fflush.
54827
54828 2007-04-28  Bruno Haible  <bruno@clisp.org>
54829
54830         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
54831         fseeko and ftello.
54832         Suggested by Eric Blake.
54833
54834 2007-04-28  Jim Meyering  <jim@meyering.net>
54835
54836         Avoid false-negative in gl_STDINT_H's C99 conformance test.
54837         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
54838         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
54839
54840 2007-04-27  Eric Blake  <ebb9@byu.net>
54841
54842         * doc/headers/assert.texi (assert.h): Document assert module use.
54843
54844 2007-04-27  Bruno Haible  <bruno@clisp.org>
54845
54846         * doc/headers/*.texi: New files.
54847         * doc/gnulib.texi (Header File Substitutes): New chapter.
54848         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
54849         dependencies.
54850         (standards.info ,standards.html, standards.dvi): Update dependencies.
54851         (mostlyclean, clean): New targets.
54852
54853 2007-04-27  Bruno Haible  <bruno@clisp.org>
54854
54855         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
54856         * modules/sysexits (Files, Makefile.am): Update.
54857
54858         * lib/sys_socket_.h: Renamed from lib/socket_.h.
54859         * modules/sys_socket (Files, Makefile.am): Update.
54860
54861         * lib/sys_stat_.h: Renamed from lib/stat_.h.
54862         * modules/sys_stat (Files, Makefile.am): Update.
54863
54864 2007-04-27  Eric Blake  <ebb9@byu.net>
54865
54866         * lib/freading.h: Improve comments.
54867         * lib/fwriting.h: Likewise.
54868         * lib/fflush.c: Likewise.
54869
54870         Fix closein for mingw.
54871         * modules/closein-tests: Add tests for closein.
54872         * tests/test-closein.c: New file.
54873         * tests/test-closein.sh: Likewise.
54874         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
54875         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
54876
54877 2007-04-27  Bruno Haible  <bruno@clisp.org>
54878
54879         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
54880         version is < 6.
54881         * lib/math_.h [__DECC]: Likewise.
54882         * lib/stdio_.h [__DECC]: Likewise.
54883         * lib/stdlib_.h [__DECC]: Likewise.
54884         * lib/string_.h [__DECC]: Likewise.
54885         * lib/time_.h [__DECC]: Likewise.
54886         * lib/wchar_.h [__DECC]: Likewise.
54887         * lib/wctype_.h [__DECC]: Likewise.
54888
54889 2007-04-27  Bruno Haible  <bruno@clisp.org>
54890
54891         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
54892
54893 2007-04-27  Bruno Haible  <bruno@clisp.org>
54894
54895         * lib/fflush.c: Add comments.
54896         * modules/fpurge-tests (Depends-on): Add fflush.
54897         * modules/freadable-tests (Depends-on): Likewise.
54898         * modules/fwritable-tests (Depends-on): Likewise.
54899
54900 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
54901
54902         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
54903         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
54904         Report by Bruno Haible <bruno@clisp.org>.
54905
54906 2007-04-26  Eric Blake  <ebb9@byu.net>
54907
54908         Fix fflush on mingw.
54909         * modules/fflush (Depends-on): Add freading.
54910         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
54911         but unread data.
54912
54913 2007-04-26  Eric Blake  <ebb9@byu.net>
54914         and Bruno Haible  <bruno@clisp.org>
54915
54916         Implement freading and fwriting.
54917         * lib/freading.c: New file.
54918         * lib/freading.h: Likewise.
54919         * m4/freading.m4: Likewise.
54920         * modules/freading: Likewise.
54921         * modules/freading-tests: Likewise.
54922         * tests/test-freading.c: Likewise.
54923         * lib/fwriting.c: New file.
54924         * lib/fwriting.h: Likewise.
54925         * m4/fwriting.m4: Likewise.
54926         * modules/fwriting: Likewise.
54927         * modules/fwriting-tests: Likewise.
54928         * tests/test-fwriting.c: Likewise.
54929         * MODULES.html.sh (File stream based Input/Output): Mention them.
54930
54931 2007-04-26  Bruno Haible  <bruno@clisp.org>
54932
54933         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
54934         'long' when we assume it.
54935         Suggested by Eric Blake.
54936
54937 2007-04-26  Bruno Haible  <bruno@clisp.org>
54938
54939         Ensure fseeko, ftello are declared on glibc systems.
54940         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
54941         * modules/fseeko (configure.ac-early): Likewise.
54942         * modules/ftello (configure.ac-early): Likewise.
54943         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
54944         AC_FUNC_FSEEKO for this.
54945         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
54946         (gl_CHECK_FSEEKO): Remove macro.
54947
54948 2007-04-26  Bruno Haible  <bruno@clisp.org>
54949
54950         * tests/test-fflush.c (main): Also check the ftell result after
54951         fflush and fseek/fseeko.
54952         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
54953         file descriptor position cache in the stream.
54954         * lib/fseeko.c (rpl_fseeko): Likewise.
54955
54956 2007-04-26  Bruno Haible  <bruno@clisp.org>
54957
54958         * modules/fflush-tests (Depends-on): Add fseeko.
54959
54960 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
54961             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54962
54963         * lib/argz_.h: ensure error_t definition is obtained in same
54964         mechanism system argz.h would have.
54965         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
54966         argz facilities are known bad.  Err on the side of caution if
54967         cross-compiling.
54968
54969 2007-04-25  Eric Blake  <ebb9@byu.net>
54970
54971         * lib/fpurge.c (includes): Use stdlib.h for free.
54972         * tests/test-fflush.c (main): Also test fflush-fseeko.
54973
54974 2007-04-25  Bruno Haible  <bruno@clisp.org>
54975
54976         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
54977         * lib/fseeko.c: New file.
54978         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
54979         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
54980         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
54981         gl_FUNC_FSEEKO.
54982         (gl_FUNC_FSEEKO): Invoke it.
54983         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
54984         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
54985         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
54986
54987 2007-04-25  Bruno Haible  <bruno@clisp.org>
54988
54989         * modules/fflush (Depends-on): Add ftello.
54990
54991 2007-04-25  Bruno Haible  <bruno@clisp.org>
54992
54993         * modules/ftello-tests: New file.
54994         * tests/test-ftello.c: New file.
54995
54996         * modules/ftello: New file.
54997         * m4/ftello.m4: New file.
54998         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
54999         HAVE_FTELLO.
55000         * lib/stdio_.h (ftello): New declaration.
55001         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
55002         HAVE_FTELLO.
55003
55004 2007-04-25  Bruno Haible  <bruno@clisp.org>
55005
55006         * modules/fseeko-tests: New file.
55007         * tests/test-fseeko.c: New file.
55008
55009         * modules/fseeko: New file.
55010         * m4/fseeko.m4: New file.
55011         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
55012         HAVE_FSEEKO.
55013         * lib/stdio_.h (fseeko): New declaration.
55014         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
55015         HAVE_FSEEKO.
55016
55017 2007-04-25  Bruno Haible  <bruno@clisp.org>
55018
55019         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
55020
55021 2007-04-25  Bruno Haible  <bruno@clisp.org>
55022
55023         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
55024         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
55025         * tests/test-unistd.c: Likewise.
55026         * tests/test-fcntl.c: Likewise.
55027
55028 2007-04-23  Eric Blake  <ebb9@byu.net>
55029
55030         * lib/fflush.c: Fix missing include.
55031         Reported by Bruno Haible.
55032
55033 2007-04-23  Bruno Haible  <bruno@clisp.org>
55034
55035         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
55036         Reported by Eric Blake.
55037
55038 2007-04-23  Bruno Haible  <bruno@clisp.org>
55039
55040         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
55041
55042 2007-04-23  Bruno Haible  <bruno@clisp.org>
55043
55044         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
55045
55046 2007-04-23  Bruno Haible  <bruno@clisp.org>
55047
55048         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
55049         Needed on HP-UX 11.
55050
55051 2007-04-16  Eric Blake  <ebb9@byu.net>
55052
55053         Make fflush rely on fpurge.
55054         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
55055         open coding all variants.
55056         * modules/fflush (Depends-on): Add fpurge and unistd.
55057         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
55058         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
55059
55060         Fix --with-tests compilation on cygwin.
55061         * modules/argmatch-tests (Makefile.am): List gnulib library first
55062         in LDADD.
55063         * modules/argp-tests (Makefile.am): Likewise.
55064         * modules/array-list-tests (Makefile.am): Likewise.
55065         * modules/array-oset-tests (Makefile.am): Likewise.
55066         * modules/avltree-list-tests (Makefile.am): Likewise.
55067         * modules/avltree-oset-tests (Makefile.am): Likewise.
55068         * modules/avltreehash-list-tests (Makefile.am): Likewise.
55069         * modules/carray-list-tests (Makefile.am): Likewise.
55070         * modules/dirname-tests (Makefile.am): Likewise.
55071         * modules/frexp-tests (Makefile.am): Likewise.
55072         * modules/isnanl-tests (Makefile.am): Likewise.
55073         * modules/linked-list-tests (Makefile.am): Likewise.
55074         * modules/linkedhash-list-tests (Makefile.am): Likewise.
55075         * modules/lock-tests (Makefile.am): Likewise.
55076         * modules/rbtree-list-tests (Makefile.am): Likewise.
55077         * modules/rbtree-oset-tests (Makefile.am): Likewise.
55078         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
55079         * modules/tls-tests (Makefile.am): Likewise.
55080         * modules/tsearch-tests (Makefile.am): Likewise.
55081         * modules/xvasprintf-tests (Makefile.am): Likewise.
55082
55083         Fix fpurge for cygwin.
55084         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
55085         value.
55086         * modules/fpurge-tests (Depends-on): Clean up trash.
55087
55088 2007-04-16  Simon Josefsson  <simon@josefsson.org>
55089
55090         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
55091
55092         * m4/autobuild.m4: Re-indent.
55093
55094 2007-04-13  Bruno Haible  <bruno@clisp.org>
55095
55096         * modules/fpurge-tests: New file.
55097         * tests/test-fpurge.c: New file.
55098
55099         * modules/fpurge: New file.
55100         * lib/fpurge.h: New file.
55101         * lib/fpurge.c: New file.
55102         * m4/fpurge.m4: New file.
55103
55104 2007-04-13  Bruno Haible  <bruno@clisp.org>
55105
55106         * modules/fbufmode-tests: New file.
55107         * tests/test-fbufmode.c: New file.
55108
55109         * modules/fbufmode: New file.
55110         * lib/fbufmode.h: New file.
55111         * lib/fbufmode.c: New file.
55112         * m4/fbufmode.m4: New file.
55113
55114 2007-04-13  Bruno Haible  <bruno@clisp.org>
55115
55116         * modules/fwritable-tests: New file.
55117         * tests/test-fwritable.c: New file.
55118
55119         * modules/fwritable: New file.
55120         * lib/fwritable.h: New file.
55121         * lib/fwritable.c: New file.
55122         * m4/fwritable.m4: New file.
55123
55124 2007-04-13  Bruno Haible  <bruno@clisp.org>
55125
55126         * modules/freadable-tests: New file.
55127         * tests/test-freadable.c: New file.
55128
55129         * modules/freadable: New file.
55130         * lib/freadable.h: New file.
55131         * lib/freadable.c: New file.
55132         * m4/freadable.m4: New file.
55133
55134 2007-04-13  Bruno Haible  <bruno@clisp.org>
55135
55136         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
55137         MOSTLYCLEANFILES.
55138
55139 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
55140
55141         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
55142         gzip bootstrap.conf to avoid dragging in i18n machinery.
55143         (gnulib_tool_option): Use it.
55144
55145 2007-04-13  Bruno Haible  <bruno@clisp.org>
55146
55147         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
55148         %F directives.
55149         * tests/test-vasprintf-posix.c (test_function): Likewise.
55150         * tests/test-snprintf-posix.h (test_function): Likewise.
55151         * tests/test-sprintf-posix.h (test_function): Likewise.
55152         * tests/test-fprintf-posix.h (test_function): Likewise.
55153         * tests/test-printf-posix.h (test_function): Likewise.
55154         * tests/test-fprintf-posix.out: Likewise.
55155
55156 2007-04-13  Bruno Haible  <bruno@clisp.org>
55157
55158         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
55159         * modules/tls-tests (configure.ac): Likewise.
55160         Reported by Arto C. Nirkko <anirkko@insel.ch>.
55161
55162 2007-04-13  Bruno Haible  <bruno@clisp.org>
55163
55164         * lib/tls.c (glthread_tls_get): Fix return type.
55165         Patch by Arto C. Nirkko <anirkko@insel.ch>.
55166
55167 2007-04-12  Eric Blake  <ebb9@byu.net>
55168
55169         * modules/gettime (Depends-on): Remove gettime.
55170         Reported by Dmitry V. Levin.
55171
55172 2007-04-12  Bruno Haible  <bruno@clisp.org>
55173
55174         * modules/fflush (Include): Mention <stdio.h>.
55175         * modules/strtoimax (Include): Mention <inttypes.h>.
55176         * modules/strtoumax (Include): Likewise.
55177
55178 2007-04-12  Eric Blake  <ebb9@byu.net>
55179
55180         * .cvsignore: New file.
55181         * .gitignore: Likewise.
55182
55183 2007-04-12  Bruno Haible  <bruno@clisp.org>
55184
55185         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
55186         not before, since $(LDADD) often contains libgnu.a.
55187         * modules/striconv-tests (test_striconv_LDADD): Likewise.
55188         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
55189         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
55190         Needed on Cygwin.
55191
55192 2007-04-12  Eric Blake  <ebb9@byu.net>
55193
55194         Work around glibc's failure to flush stdin on fclose.
55195         * lib/closein.c (close_stdin): Flush stdin before closing.
55196
55197         Work around glibc's failure to reset seekable stdin on exit.
55198         * modules/closein: New module.
55199         * lib/closein.c: New file.
55200         * lib/closein.h: Likewise.
55201         * m4/closein.m4: Likewise.
55202         * MODULES.html.sh (File stream based Input/Output): Document it.
55203
55204 2007-04-12  Simon Josefsson  <simon@josefsson.org>
55205
55206         * gnulib-tool: Rename generated 'autobuild' script to
55207         'do-autobuild' in --create-megatestdir output.
55208
55209         * doc/gnulib.texi (Build robot for gnulib): Fix.
55210
55211 2007-04-12  Simon Josefsson  <simon@josefsson.org>
55212
55213         * modules/sysexits (Depends-on): Add absolute-header.
55214
55215 2007-04-12  Eric Blake  <ebb9@byu.net>
55216
55217         No need to preserve errno on success.
55218         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
55219         Reported by Bruno Haible.
55220
55221 2007-04-12  Simon Josefsson  <simon@josefsson.org>
55222
55223         * MODULES.html.sh (Support for maintaining and releasing
55224         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
55225
55226 2007-04-12  Simon Josefsson  <simon@josefsson.org>
55227
55228         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
55229
55230 2007-04-12  Simon Josefsson  <simon@josefsson.org>
55231
55232         * modules/autobuild: New module.
55233
55234         * m4/autobuild.m4: New file.
55235
55236 2007-04-11  Bruno Haible  <bruno@clisp.org>
55237
55238         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
55239         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
55240         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
55241         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
55242         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55243         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55244         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55245         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55246         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55247         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55248         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
55249         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55250         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55251         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
55252         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55253         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55254         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
55255         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55256         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55257         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
55258         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55259         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55260         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
55261         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55262         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55263         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
55264         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55265         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55266         Reported by Eric Blake.
55267
55268 2007-04-11  Bruno Haible  <bruno@clisp.org>
55269
55270         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
55271
55272 2007-04-10  Bruno Haible  <bruno@clisp.org>
55273
55274         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
55275         for NaN and Infinity. Needed on FreeBSD 6.1.
55276         * tests/test-vasnprintf-posix.c (test_function): Undo last change
55277         regarding results for "%010a" of Infinity and NaN.
55278         * tests/test-vasprintf-posix.c (test_function): Likewise.
55279         * tests/test-snprintf-posix.h (test_function): Likewise.
55280         * tests/test-sprintf-posix.h (test_function): Likewise.
55281         * tests/test-fprintf-posix.h (test_function): Likewise.
55282         * tests/test-printf-posix.h (test_function): Likewise.
55283         * tests/test-fprintf-posix.out: Likewise.
55284
55285 2007-04-10  Bruno Haible  <bruno@clisp.org>
55286
55287         * modules/locale-tests: New file.
55288         * tests/test-locale.c: New file.
55289
55290         * modules/locale: New file.
55291         * lib/locale_.h: New file.
55292         * m4/locale_h.m4: New file.
55293
55294 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
55295             Bruno Haible  <bruno@clisp.org>
55296
55297         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
55298         be determined, test for availability of the copysignf, copysign,
55299         copysignl functions.
55300         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
55301         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
55302         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
55303
55304 2007-04-09  Eric Blake  <ebb9@byu.net>
55305
55306         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
55307         * modules/stdio (Makefile.am): Support fflush.
55308         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55309         * modules/fflush: New file.
55310         * lib/fflush.c: Likewise.
55311         * m4/fflush.m4: Likewise.
55312         * modules/fflush-tests: New test.
55313         * tests/test-fflush.c: Likewise.
55314         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
55315
55316 2007-04-06  Bruno Haible  <bruno@clisp.org>
55317
55318         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
55319         (VASNPRINTF): Use signbit for faster determination whether to print a
55320         minus sign.
55321         * modules/vasnprintf (Files): Remove lib/float+.h.
55322         * modules/fprintf-posix (Depends-on): Add signbit.
55323         * modules/snprintf-posix (Depends-on): Likewise.
55324         * modules/sprintf-posix (Depends-on): Likewise.
55325         * modules/vasnprintf-posix (Depends-on): Likewise.
55326         * modules/vasprintf-posix (Depends-on): Likewise.
55327         * modules/vfprintf-posix (Depends-on): Likewise.
55328         * modules/vsnprintf-posix (Depends-on): Likewise.
55329         * modules/vsprintf-posix (Depends-on): Likewise.
55330
55331 2007-04-06  Bruno Haible  <bruno@clisp.org>
55332
55333         * tests/test-frexp.c (main): Test also the sign bit of zero results.
55334         * tests/test-frexpl.c (main): Likewise.
55335         * tests/test-ldexpl.c (main): Likewise.
55336         * modules/frexp-tests (Depends-on): Add signbit.
55337         * modules/frexpl-tests (Depdends-on): Likewise.
55338         * modules/ldexpl-tests (Depdends-on): Likewise.
55339
55340 2007-04-06  Bruno Haible  <bruno@clisp.org>
55341
55342         * modules/signbit-tests: New file.
55343         * tests/test-signbit.c: New file.
55344
55345         * modules/signbit: New file.
55346         * lib/signbitf.c: New file.
55347         * lib/signbitd.c: New file.
55348         * lib/signbitl.c: New file.
55349         * m4/signbit.m4: New file.
55350         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
55351         (signbit): New macro.
55352         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
55353         REPLACE_SIGNBIT.
55354         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
55355         REPLACE_FREXPL into math.h.
55356
55357 2007-04-06  Bruno Haible  <bruno@clisp.org>
55358
55359         * modules/isnanf-nolibm-tests: New file.
55360         * tests/test-isnanf.c: New file.
55361
55362         * modules/isnanf-nolibm: New file.
55363         * lib/isnanf.h: New file.
55364         * lib/isnanf.c: New file.
55365         * lib/isnan.c: Consider the USE_FLOAT macro.
55366         * m4/isnanf.m4: New file.
55367
55368 2007-04-06  Bruno Haible  <bruno@clisp.org>
55369
55370         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
55371         (Link): New section.
55372
55373         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
55374
55375 2007-04-06  Bruno Haible  <bruno@clisp.org>
55376
55377         Assume the 'long double' type.
55378         * m4/longdouble.m4: Remove file.
55379         * config/srclist.txt: Don't mention longdouble.m4.
55380         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
55381         * lib/float+.h: Likewise.
55382         * lib/frexp.c: Likewise.
55383         * lib/printf-args.h: Likewise.
55384         * lib/printf-args.c: Likewise.
55385         * lib/printf-frexp.c: Likewise.
55386         * lib/printf-parse.c: Likewise.
55387         * lib/vasnprintf.c: Likewise.
55388         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
55389         * m4/intl.m4: Likewise.
55390         * m4/isnanl.m4: Likewise.
55391         * m4/printf.m4: Likewise.
55392         * m4/printf-frexpl.m4: Likewise.
55393         * m4/vasnprintf.m4: Likewise.
55394         * modules/allocsa (Files): Remove m4/longdouble.m4.
55395         * modules/gettext (Files): Likewise.
55396         * modules/relocatable-prog-wrapper (Files): Likewise.
55397         * modules/vasnprintf (Files): Likewise.
55398         * modules/isnanl (Files): Likewise.
55399         (Include): Simplify.
55400         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
55401         (Include): Simplify.
55402         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
55403         (Include): Simplify.
55404         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
55405         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55406         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
55407         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55408         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
55409         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55410         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
55411         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55412         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
55413         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55414         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
55415         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55416         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
55417         * tests/test-isnanl.c: Likewise.
55418         * tests/test-snprintf-posix.h: Likewise.
55419         * tests/test-sprintf-posix.h: Likewise.
55420         * tests/test-vasnprintf-posix.c: Likewise.
55421         * tests/test-vasnprintf-posix2.c: Likewise.
55422         * tests/test-vasprintf-posix.c: Likewise.
55423
55424 2007-04-06  Bruno Haible  <bruno@clisp.org>
55425
55426         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
55427         * lib/math_.h [__DECC]: Include the overridden include file through
55428         #include_next, outside the double-inclusion guard.
55429         * lib/stdio_.h [__DECC]: Likewise.
55430         * lib/stdlib_.h [__DECC]: Likewise.
55431         * lib/string_.h [__DECC]: Likewise.
55432         * lib/time_.h [__DECC]: Likewise.
55433         * lib/wchar_.h [__DECC]: Likewise.
55434         * lib/wctype_.h [__DECC]: Likewise.
55435         * lib/inttypes_.h [__DECC]: Likewise.
55436         Reported by Albert Chin <china@thewrittenword.com> in
55437         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
55438
55439 2007-04-04  Eric Blake  <ebb9@byu.net>
55440
55441         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
55442         1.5.x.
55443
55444 2007-04-04  Bruno Haible  <bruno@clisp.org>
55445
55446         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
55447         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
55448
55449 2007-04-04  Bruno Haible  <bruno@clisp.org>
55450
55451         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
55452         results for "%010a" of Infinity and NaN.
55453         * tests/test-vasprintf-posix.c (test_function): Likewise.
55454         * tests/test-snprintf-posix.h (test_function): Likewise.
55455         * tests/test-sprintf-posix.h (test_function): Likewise.
55456         * tests/test-fprintf-posix.h (test_function): Remove these tests.
55457         * tests/test-printf-posix.h (test_function): Likewise.
55458         * tests/test-fprintf-posix.out: Update.
55459         Needed for FreeBSD 6.1.
55460
55461 2007-04-04  Bruno Haible  <bruno@clisp.org>
55462
55463         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
55464         directly used by the gnulib modules nor by gnulib-tool.
55465
55466 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
55467
55468         * DEPENDENCIES: Give overall description of version dependency
55469         desirability.  Use more-typical names for apps.
55470         Add shell, coreutils, diffutils, grep, tar, gzip.
55471
55472 2007-04-04  Simon Josefsson  <simon@josefsson.org>
55473
55474         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
55475
55476 2007-04-04  Karl Berry  <karl@gnu.org>
55477
55478         * MODULES.html.sh (func_module): missing '.
55479
55480 2007-04-03  Bruno Haible  <bruno@clisp.org>
55481
55482         * modules/argmatch-tests (Makefile.am): New variable
55483         test_argmatch_LDADD.
55484         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
55485         * modules/array-list-tests (Makefile.am): New variable
55486         test_array_list_LDADD.
55487         * modules/array-oset-tests (Makefile.am): New variable
55488         test_array_oset_LDADD.
55489         * modules/avltree-list-tests (Makefile.am): New variable
55490         test_avltree_list_LDADD.
55491         * modules/avltree-oset-tests (Makefile.am): New variable
55492         test_avltree_oset_LDADD.
55493         * modules/avltreehash-list-tests (Makefile.am): New variable
55494         test_avltreehash_list_LDADD.
55495         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
55496         test_canonicalize_lgpl_LDADD.
55497         * modules/carray-list-tests (Makefile.am): New variable
55498         test_carray_list_LDADD.
55499         * modules/dirname-tests (Makefile.am): New variable
55500         test_dirname_LDADD.
55501         * modules/linked-list-tests (Makefile.am): New variable
55502         test_linked_list_LDADD.
55503         * modules/linkedhash-list-tests (Makefile.am): New variable
55504         test_linkedhash_list_LDADD.
55505         * modules/rbtree-list-tests (Makefile.am): New variable
55506         test_rbtree_list_LDADD.
55507         * modules/rbtree-oset-tests (Makefile.am): New variable
55508         test_rbtree_oset_LDADD.
55509         * modules/rbtreehash-list-tests (Makefile.am): New variable
55510         test_rbtreehash_list_LDADD.
55511         * modules/xvasprintf-tests (Makefile.am): New variable
55512         test_xvasprintf_LDADD.
55513         Reported by Eric Blake.
55514
55515 2007-04-03  Eric Blake  <ebb9@byu.net>
55516
55517         * DEPENDENCIES: Weaken m4 requirements.
55518
55519 2007-04-03  Bruno Haible  <bruno@clisp.org>
55520
55521         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
55522         * modules/isnanl-tests (configure.ac): Likewise.
55523
55524 2007-04-03  Ben Pfaff  <blp@gnu.org>
55525
55526         * modules/iconv_open: Add $(srcdir)/ to source directory
55527         references in Makefile fragments that call gperf, to fix VPATH
55528         builds.
55529
55530 2007-04-03  Bruno Haible  <bruno@clisp.org>
55531
55532         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
55533         * lib/ldexpl.c: Undo last change.
55534
55535 2007-04-03  Bruno Haible  <bruno@clisp.org>
55536
55537         * modules/printf-frexpl (Depends-on): Undo last change.
55538         (Files): Add m4/ldexpl.m4.
55539
55540 2007-04-03  Bruno Haible  <bruno@clisp.org>
55541
55542         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
55543         * modules/isnanl (Link): New section.
55544
55545         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
55546         * modules/frexp (Link): New section.
55547
55548         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
55549         * modules/frexpl (Link): New section.
55550
55551         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
55552         * modules/ldexpl (Link): New section.
55553
55554 2007-04-03  Bruno Haible  <bruno@clisp.org>
55555
55556         * modules/TEMPLATE-EXTENDED: New file.
55557         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
55558
55559 2007-04-03  Bruno Haible  <bruno@clisp.org>
55560
55561         * DEPENDENCIES: New file.
55562         Suggested by Simon Josefsson.
55563
55564 2007-04-03  Bruno Haible  <bruno@clisp.org>
55565
55566         * doc/gnulib.texi: Escape @.
55567
55568 2007-04-03  James Youngman  <jay@gnu.org>
55569         and Paul Eggert  <eggert@cs.ucla.edu>
55570
55571         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
55572         birthtime on all systems that have birthtime, not just those which
55573         use st_birthtimensec rather than st_birthtim.  Putting zero in
55574         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
55575         that the birth time is not available for files on an NFS mount.
55576
55577 2007-04-03  Simon Josefsson  <simon@josefsson.org>
55578
55579         * modules/memxor: Move back from crypto/, suggested by Bruno.
55580         * modules/crypto/hmac-sha1: Fix memxor dependency.
55581
55582         * modules/crypto/gc: Moved from ../.
55583
55584 2007-04-02  Eric Blake  <ebb9@byu.net>
55585
55586         * lib/ldexpl.c (includes): Avoid libm.
55587
55588         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
55589
55590 2007-04-02  Bruno Haible  <bruno@clisp.org>
55591
55592         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
55593         on IRIX.
55594
55595 2007-04-02  Bruno Haible  <bruno@clisp.org>
55596
55597         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
55598         x86 or x86_64 platforms running MacOS X.
55599         Reported by Ryan Schmidt <@ryandesign.com>.
55600
55601 2007-04-02  Bruno Haible  <bruno@clisp.org>
55602
55603         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
55604         i386.
55605
55606 2007-04-01  Simon Josefsson  <simon@josefsson.org>
55607
55608         * modules/crypto/arcfour: Moved from ../.
55609         * modules/crypto/arcfour-tests: Moved from ../.
55610         * modules/crypto/arctwo: Moved from ../.
55611         * modules/crypto/arctwo-tests: Moved from ../.
55612         * modules/crypto/des: Moved from ../.
55613         * modules/crypto/des-tests: Moved from ../.
55614         * modules/crypto/gc-arcfour: Moved from ../.
55615         * modules/crypto/gc-arcfour-tests: Moved from ../.
55616         * modules/crypto/gc-arctwo: Moved from ../.
55617         * modules/crypto/gc-arctwo-tests: Moved from ../.
55618         * modules/crypto/gc-des: Moved from ../.
55619         * modules/crypto/gc-des-tests: Moved from ../.
55620         * modules/crypto/gc-hmac-md5: Moved from ../.
55621         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
55622         * modules/crypto/gc-hmac-sha1: Moved from ../.
55623         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
55624         * modules/crypto/gc-md2: Moved from ../.
55625         * modules/crypto/gc-md2-tests: Moved from ../.
55626         * modules/crypto/gc-md4: Moved from ../.
55627         * modules/crypto/gc-md4-tests: Moved from ../.
55628         * modules/crypto/gc-md5: Moved from ../.
55629         * modules/crypto/gc-md5-tests: Moved from ../.
55630         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
55631         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
55632         * modules/crypto/gc-random: Moved from ../.
55633         * modules/crypto/gc-rijndael: Moved from ../.
55634         * modules/crypto/gc-rijndael-tests: Moved from ../.
55635         * modules/crypto/gc-sha1: Moved from ../.
55636         * modules/crypto/gc-sha1-tests: Moved from ../.
55637         * modules/crypto/gc-tests: Moved from ../.
55638         * modules/crypto/hmac-md5: Moved from ../.
55639         * modules/crypto/hmac-md5-tests: Moved from ../.
55640         * modules/crypto/hmac-sha1: Moved from ../.
55641         * modules/crypto/hmac-sha1-tests: Moved from ../.
55642         * modules/crypto/md2: Moved from ../.
55643         * modules/crypto/md2-tests: Moved from ../.
55644         * modules/crypto/md4: Moved from ../.
55645         * modules/crypto/md4-tests: Moved from ../.
55646         * modules/crypto/md5: Moved from ../.
55647         * modules/crypto/md5-tests: Moved from ../.
55648         * modules/crypto/memxor: Moved from ../.
55649         * modules/crypto/rijndael: Moved from ../.
55650         * modules/crypto/rijndael-tests: Moved from ../.
55651         * modules/crypto/sha1: Moved from ../.
55652
55653 2007-03-30  James Youngman  <jay@gnu.org>
55654
55655         * tests/test-stat-time.c (prepare_test): use chmod() rather than
55656         rename() to change the ctime of a file (because ctime is unaffected
55657         by rename on jfs2 on AIX 5.1).
55658         (main): Start by doing cleanup, in case a previous run failed leaving
55659         test files behind.
55660
55661 2007-03-31  Bruno Haible  <bruno@clisp.org>
55662
55663         Support old proprietary implementations of iconv.
55664         * modules/iconv_open: New file.
55665         * lib/iconv_.h: New file.
55666         * m4/iconv_h.m4: New file.
55667         * lib/iconv_open.c: New file.
55668         * lib/iconv_open-aix.gperf: New file.
55669         * lib/iconv_open-hpux.gperf: New file.
55670         * lib/iconv_open-irix.gperf: New file.
55671         * lib/iconv_open-osf.gperf: New file.
55672         * m4/iconv_open.m4: New file.
55673         * modules/linebreak (Depends-on): Add iconv_open.
55674         * modules/striconv (Depends-on): Likewise.
55675         * modules/striconveh (Depends-on): Likewise.
55676         * modules/unicodeio (Depends-on): Likewise.
55677         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
55678         (iconv_t)(-1).
55679         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
55680         conversion if cd is (iconv_t)(-1).
55681         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
55682         is not possible.
55683
55684 2007-03-31  Bruno Haible  <bruno@clisp.org>
55685
55686         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
55687         work on Solaris either. Protect also second use of "autodetect_jp".
55688
55689 2007-03-31  Bruno Haible  <bruno@clisp.org>
55690
55691         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
55692         the function is not present.
55693
55694 2007-03-31  Bruno Haible  <bruno@clisp.org>
55695
55696         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
55697         the function is not present.
55698
55699 2007-03-31  Bruno Haible  <bruno@clisp.org>
55700
55701         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
55702         a bug in HP-UX iconv_open().
55703
55704 2007-03-31  Bruno Haible  <bruno@clisp.org>
55705
55706         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
55707         (Mathematics <math.h>): New section, add fpieee.
55708         (Input/output <stdio.h>): Add fseterr.
55709         (Mathematics <math.h>): New section, add printf-frexp.
55710         (Container data structures): Add sublist.
55711         (Core language properties): Add fpucw, inline.
55712         (Functions for greatest-width integer types <inttypes.h>): Add
55713         imaxabs, imaxdiv, inttypes.
55714         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
55715         isnanl-nolibm, ldexp.
55716         (Mathematics <math.h>): New section, add printf-frexpl.
55717         (Support for systems lacking POSIX:2001): Add fprintf-posix,
55718         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
55719         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
55720         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
55721         (Unicode string functions): Add unistr/u*-mbtoucr.
55722         (Java): Add javacomp-script, javaexec-script.
55723         (C#): Add csharpcomp-script, csharpexec-script.
55724         (Support for building libraries and executables): Add havelib,
55725         relocatable-*.
55726         (Support for maintaining and releasing projects): Renamed from
55727         'Support for maintaining and release projects'. Add announce-gen.
55728
55729 2007-03-31  Bruno Haible  <bruno@clisp.org>
55730
55731         * README: Talk primarily about git.
55732         (git and CVS): Renamed from CVS.
55733         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
55734         gnulib is available through git.
55735         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
55736
55737 2007-03-30  Bruno Haible  <bruno@clisp.org>
55738
55739         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
55740         * lib/poll_.h: Likewise.
55741         * lib/stat_.h: Likewise.
55742         * lib/sys_time_.h: Likewise.
55743         * lib/sysexit_.h: Likewise.
55744         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
55745         * lib/stdbool_.h: Likewise.
55746         * lib/byteswap_.h: Add double-inclusion guard.
55747
55748 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
55749
55750         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
55751
55752 2007-03-30  Karl Berry  <karl@gnu.org>
55753
55754         * config/srclist-update: double space after USA in the license
55755         substitution, since that's how it's usually (?) written.
55756
55757 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
55758
55759         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
55760         reported by Bruno Haible.
55761
55762 2007-03-29  Bruno Haible  <bruno@clisp.org>
55763
55764         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
55765         a bug in AIX iconv().
55766
55767 2007-03-29  Bruno Haible  <bruno@clisp.org>
55768
55769         * modules/ldexpl-tests: New file.
55770         * tests/test-ldexpl.c: New file.
55771
55772 2007-03-29  Bruno Haible  <bruno@clisp.org>
55773
55774         * lib/ldexpl.c: Include fpucw.h.
55775         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
55776         multiplication.
55777         * modules/ldexpl (Depends-on): Add fpucw.
55778
55779 2007-03-29  Bruno Haible  <bruno@clisp.org>
55780
55781         * modules/ldexpl: New file.
55782         * m4/ldexpl.m4: New file.
55783         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
55784         set.
55785         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
55786         REPLACE_LDEXPL.
55787         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
55788         REPLACE_LDEXPL.
55789         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
55790         gl_FUNC_LDEXPL_WORKS.
55791         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
55792         * modules/mathl (Files): Remove lib/ldexpl.c.
55793         (Depends-on): Add ldexpl.
55794
55795 2007-03-29  Bruno Haible  <bruno@clisp.org>
55796
55797         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
55798
55799 2007-03-29  Bruno Haible  <bruno@clisp.org>
55800
55801         * tests/test-striconveh.c (main): Don't assume that a direct conversion
55802         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
55803         and possibly also HP-UX.
55804         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
55805         work on AIX, IRIX, HP-UX, OSF/1.
55806         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
55807         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
55808         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
55809         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
55810         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
55811         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
55812
55813 2007-03-29  Bruno Haible  <bruno@clisp.org>
55814
55815         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
55816
55817 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
55818
55819         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
55820         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
55821
55822 2007-03-29  Eric Blake  <ebb9@byu.net>
55823
55824         * lib/acl-internal.h: Remove redundant include.
55825         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
55826         Cygwin when a file is locked.
55827
55828 2007-03-29  Bruno Haible  <bruno@clisp.org>
55829
55830         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
55831         file.
55832         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
55833
55834 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
55835
55836         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
55837         try to remove a parent directory if the child couldn't be removed
55838         (except for the first rmdir, which could fail because the child
55839         doesn't exist).  Problem reported by Jeff Blaine in
55840         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
55841
55842 2007-03-28  Bruno Haible  <bruno@clisp.org>
55843
55844         * lib/striconveh.c (utf8conv_carefully): New function.
55845         (mem_cd_iconveh_internal): Invoke it.
55846
55847 2007-03-28  Bruno Haible  <bruno@clisp.org>
55848
55849         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
55850         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
55851         input.
55852         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
55853         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
55854         unistr/u8-uctomb.
55855
55856 2007-03-28  Bruno Haible  <bruno@clisp.org>
55857
55858         * modules/unistr/u8-mbtoucr: New file.
55859         * lib/unistr/u8-mbtoucr.c: New file.
55860         * modules/unistr/u16-mbtoucr: New file.
55861         * lib/unistr/u16-mbtoucr.c: New file.
55862         * modules/unistr/u16-mbtoucr: New file.
55863         * lib/unistr/u16-mbtoucr.c: New file.
55864         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
55865
55866 2007-03-27  Simon Josefsson  <simon@josefsson.org>
55867             Bruno Haible  <bruno@clisp.org>
55868
55869         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
55870         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
55871         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
55872
55873         * m4/stdio_h.m4: Add stubs for vasprintf too.
55874
55875         * modules/stdio: Support vasprintf in sed command.
55876
55877         * modules/vasprintf: Depend on stdio for prototypes.  Remove
55878         vasprintf.h.  Add stdio module indicator.
55879
55880         * lib/stdio_.h: Declare asprintf and vasprintf, based on
55881         vasprintf.h.
55882
55883         * lib/vasprintf.h: File removed.
55884
55885         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
55886         * lib/vasprintf.c: Ditto.
55887         * lib/xvasprintf.c: Ditto.
55888         * tests/test-vasprintf-posix.c: Ditto.
55889         * tests/test-vasprintf.c: Ditto.
55890
55891 2007-03-27  Bruno Haible  <bruno@clisp.org>
55892
55893         Make vasnprintf multithread-safe.
55894         * lib/vasnprintf.c (decimal_point_char): New function.
55895         (VASNPRINTF): Use it.
55896         Suggested by Simon Josefsson.
55897
55898 2007-03-27  Eric Blake  <ebb9@byu.net>
55899
55900         Support sub-second birthtime on cygwin.
55901         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
55902         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
55903         (get_stat_birthtime): Also work with st_birthtim.
55904
55905 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
55906
55907         * lib/stat-time.h (USE_BIRTHTIME): Remove.
55908         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
55909         (get_stat_birthtime_ns): Do not try to use "spare" fields.
55910         (get_stat_birthtime_ns): Simplify compile-time tests.
55911         (get_stat_birthtime): Change the API to look like
55912         get_stat_mtime etc., except return a negative tv_nsec on error.
55913         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
55914         Don't check for "spare" fields.
55915         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
55916         or for struct stat.st_birthtime, as these tests aren't used.
55917         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
55918
55919 2007-03-27  Bruno Haible  <bruno@clisp.org>
55920
55921         * lib/stat-time.h: Include <sys/stat.h>.
55922
55923 2007-03-27  James Youngman  <jay@gnu.org>
55924
55925         * lib/stat-time.h (get_stat_birthtime): New function for
55926           retrieving st_birthtime as provided by UFS2 (hence *BSD).
55927         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
55928           and its variants.
55929         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
55930         * modules/stat-time-test: New file.
55931         * tests/test-stat-time.c: New test, devised by Bruno Haible.
55932
55933 2007-03-26  Bruno Haible  <bruno@clisp.org>
55934
55935         Better support of signalling NaNs.
55936         * lib/atanl.c: Include isnanl.h.
55937         (atanl): Perform test for NaN at the beginning of the function and
55938         through a call to isnanl.
55939         * lib/cosl.c: Include isnanl.h.
55940         (cosl): Perform test for NaN at the beginning of the function and
55941         through a call to isnanl.
55942         * lib/ldexpl.c: Include isnanl.h.
55943         (ldexpl): Perform test for NaN through a call to isnanl.
55944         * lib/logl.c: Include isnanl.h.
55945         (logl): Perform test for NaN at the beginning of the function and
55946         through a call to isnanl.
55947         * lib/sinl.c: Include isnanl.h.
55948         (sinl): Perform test for NaN at the beginning of the function and
55949         through a call to isnanl.
55950         * lib/sqrtl.c: Include isnanl.h.
55951         (sqrtl): Perform test for NaN at the beginning of the function and
55952         through a call to isnanl.
55953         * lib/tanl.c: Include isnanl.h.
55954         (tanl): Perform test for NaN at the beginning of the function and
55955         through a call to isnanl.
55956         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
55957         * modules/mathl (Depends-on): Add isnanl.
55958
55959 2007-03-26  Eric Blake  <ebb9@byu.net>
55960
55961         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
55962         regression in logic sense of previous patch.
55963
55964 2007-03-26  Bruno Haible  <bruno@clisp.org>
55965
55966         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
55967         unportable shell command "if ! ...".
55968         Reported by Ralf Wildenhues.
55969
55970 2007-03-25  Bruno Haible  <bruno@clisp.org>
55971
55972         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
55973         <sysexits.h> file, and only add EX_CONFIG.
55974         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
55975         absolute file name and whether it is sufficient. Substitute also
55976         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
55977         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
55978         ABSOLUTE_SYSEXITS_H into sysexits.h.
55979
55980 2007-03-25  Bruno Haible  <bruno@clisp.org>
55981
55982         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
55983         hints is NULL.
55984
55985 2007-03-25  Bruno Haible  <bruno@clisp.org>
55986
55987         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
55988         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
55989
55990 2007-03-25  Bruno Haible  <bruno@clisp.org>
55991
55992         * lib/vasnprintf.c: Include langinfo.h.
55993         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
55994         multithread-safe.
55995         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
55996         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
55997         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55998         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55999         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56000         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56001         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56002         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
56003         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56004         Reported by Simon Josefsson.
56005
56006 2007-03-25  Bruno Haible  <bruno@clisp.org>
56007
56008         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
56009         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
56010         * modules/vasnprintf (Depends-on): Add stdint.
56011
56012 2007-03-25  Bruno Haible  <bruno@clisp.org>
56013
56014         * modules/fpieee: New file.
56015         * m4/fpieee.m4: New file.
56016         * modules/isnan-nolibm (Depends-on): Add fpieee.
56017         * modules/isnanl-nolibm (Depends-on): Add fpieee.
56018         * modules/isnanl (Depends-on): Add fpieee.
56019
56020 2007-03-25  Bruno Haible  <bruno@clisp.org>
56021
56022         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
56023
56024 2007-03-25  Bruno Haible  <bruno@clisp.org>
56025
56026         Avoid test failures on IRIX 6.5.
56027         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
56028         (main): Use it.
56029         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
56030         macros.
56031         (main): Use them.
56032
56033 2007-03-25  Bruno Haible  <bruno@clisp.org>
56034
56035         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
56036         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
56037         exists but doesn't work.
56038         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
56039         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
56040         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
56041         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
56042         math.h.
56043
56044 2007-03-25  Bruno Haible  <bruno@clisp.org>
56045
56046         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
56047         returns inf. Needed on IRIX 6.5.
56048
56049 2007-03-25  Bruno Haible  <bruno@clisp.org>
56050
56051         * tests/test-frexpl.c: Include isnanl-nolibm.h.
56052         (main): Use isnanl instead of x != x idiom.
56053         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
56054
56055         * tests/test-frexp.c: Include isnan.h.
56056         (main): Use isnan instead of x != x idiom.
56057         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
56058
56059 2007-03-25  Bruno Haible  <bruno@clisp.org>
56060
56061         * tests/test-frexp.c (NaN): New function/macro.
56062         (main): Use it instead of 0.0 / 0.0.
56063         * tests/test-isnan.c (NaN): New function/macro.
56064         (main): Use it instead of 0.0 / 0.0.
56065         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
56066         (test_function): Use it instead of 0.0 / 0.0.
56067         * tests/test-vasprintf-posix.c (NaN): New function/macro.
56068         (test_function): Use it instead of 0.0 / 0.0.
56069         * tests/test-snprintf-posix.h (NaN): New function/macro.
56070         (test_function): Use it instead of 0.0 / 0.0.
56071         * tests/test-sprintf-posix.h (NaN): New function/macro.
56072         (test_function): Use it instead of 0.0 / 0.0.
56073         * tests/test-fprintf-posix.h (NaN): New function/macro.
56074         (test_function): Use it instead of 0.0 / 0.0.
56075         * tests/test-printf-posix.h (NaN): New function/macro.
56076         (test_function): Use it instead of 0.0 / 0.0.
56077
56078         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
56079
56080 2007-03-25  Bruno Haible  <bruno@clisp.org>
56081
56082         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
56083
56084 2007-03-25  Bruno Haible  <bruno@clisp.org>
56085
56086         * lib/regexec.c (merge_state_with_log): Make static.
56087
56088 2007-03-25  Bruno Haible  <bruno@clisp.org>
56089
56090         * lib/trigl.c (kernel_rem_pio2): Make static.
56091
56092 2007-03-25  Bruno Haible  <bruno@clisp.org>
56093
56094         * lib/sincosl.c (sincosl_table): Make static.
56095
56096 2007-03-25  Bruno Haible  <bruno@clisp.org>
56097
56098         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
56099         if the compiler does not support C99.
56100
56101 2007-03-25  Bruno Haible  <bruno@clisp.org>
56102
56103         * modules/time (Makefile.am): Ensure all rule action lines start with a
56104         tab.
56105
56106 2007-03-24  Bruno Haible  <bruno@clisp.org>
56107
56108         * modules/tsearch-tests: New file.
56109         * tests/test-tsearch.sh: New file.
56110         * tests/test-tsearch.c: New file, mostly copied from glibc.
56111
56112         * modules/search-tests: New file.
56113         * tests/test-search.c: New file.
56114
56115         * modules/search: New file.
56116         * lib/search_.h: New file, incorporating lib/tsearch.h.
56117         * m4/search_h.m4: New file.
56118         * lib/tsearch.h: Remove file.
56119         * lib/tsearch.c: Include search.h instead of tsearch.h.
56120         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
56121         HAVE_TSEARCH.
56122         * modules/tsearch (Files): Remove lib/tsearch.h.
56123         (Depends-on): Add search.
56124         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
56125         (Include): Change tsearch.h into search.h.
56126
56127 2007-03-24  Bruno Haible  <bruno@clisp.org>
56128
56129         * modules/fpucw: New file.
56130         * lib/fpucw.h: New file.
56131         * lib/frexp.c: Include fpucw.h.
56132         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
56133         (FUNC): Use them.
56134         * lib/printf-frexp.c: Include fpucw.h.
56135         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
56136         (FUNC): Use them.
56137         * lib/vasnprintf.c: Include fpucw.h.
56138         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
56139         'long double' calculations.
56140         * tests/test-frexpl.c: Include fpucw.h.
56141         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
56142         * tests/test-printf-frexpl.c: Include fpucw.h.
56143         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
56144         * modules/frexpl (Depends-on): Add fpucw.
56145         * modules/printf-frexpl (Depends-on): Likewise.
56146         * modules/fprintf-posix (Depends-on): Likewise.
56147         * modules/snprintf-posix (Depends-on): Likewise.
56148         * modules/sprintf-posix (Depends-on): Likewise.
56149         * modules/vasnprintf-posix (Depends-on): Likewise.
56150         * modules/vasprintf-posix (Depends-on): Likewise.
56151         * modules/vfprintf-posix (Depends-on): Likewise.
56152         * modules/vsnprintf-posix (Depends-on): Likewise.
56153         * modules/vsprintf-posix (Depends-on): Likewise.
56154         * modules/frexpl-tests (Depends-on): Likewise.
56155         * modules/printf-frexpl-tests (Depends-on): Likewise.
56156
56157 2007-03-24  Bruno Haible  <bruno@clisp.org>
56158
56159         * lib/float+.h: New file.
56160         * lib/isnan.c: Include float+.h.
56161         (SIZE): New macro.
56162         (FUNC): Compare only SIZE bytes of the value.
56163         * lib/vasnprintf.c: Include float+.h.
56164         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
56165         SIZEOF_LDBL or SIZEOF_DBL bytes.
56166         * modules/isnan-nolibm (Files): Add lib/float+.h.
56167         * modules/isnanl-nolibm (Files): Add lib/float+.h.
56168         * modules/isnanl (Files): Add lib/float+.h.
56169         * modules/vasnprintf (Files): Add lib/float+.h.
56170
56171 2007-03-24  Bruno Haible  <bruno@clisp.org>
56172
56173         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
56174         include isnanl-nolibm.h.
56175
56176 2007-03-24  Bruno Haible  <bruno@clisp.org>
56177
56178         * tests/test-read-file.c (main): Don't produce spurious output for
56179         expected situations. Make the test fail if it encountered unexpected
56180         results.
56181
56182 2007-03-24  Bruno Haible  <bruno@clisp.org>
56183
56184         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
56185         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
56186
56187 2007-03-24  Bruno Haible  <bruno@clisp.org>
56188
56189         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
56190
56191 2007-03-24  Bruno Haible  <bruno@clisp.org>
56192
56193         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
56194         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
56195
56196         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
56197         * modules/utf8-ucs4: Turn into a symbolic link to module
56198         unistr/u8-mbtouc.
56199
56200         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
56201         utf8-ucs4-unsafe.
56202         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
56203         unistr/u8-mbtouc-unsafe.
56204
56205         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
56206         * modules/utf16-ucs4: Turn into a symbolic link to module
56207         unistr/u16-mbtouc.
56208
56209         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
56210         utf16-ucs4-unsafe.
56211         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
56212         unistr/u16-mbtouc-unsafe.
56213
56214         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
56215         * modules/ucs4-utf8: Turn into a symbolic link to module
56216         unistr/u8-ubtomb.
56217
56218         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
56219         * modules/ucs4-utf16: Turn into a symbolic link to module
56220         unistr/u16-ubtomb.
56221
56222 2007-03-24  Bruno Haible  <bruno@clisp.org>
56223
56224         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
56225         Enable the function only if HAVE_INLINE.
56226         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
56227         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
56228         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
56229         Enable the function only if HAVE_INLINE.
56230         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
56231         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
56232         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
56233         Enable the function only if HAVE_INLINE.
56234         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
56235         Enable the function only if HAVE_INLINE.
56236         * modules/utf8-ucs4: Update.
56237         * modules/utf8-ucs4-unsafe: Update.
56238         * modules/utf16-ucs4: Update.
56239         * modules/utf16-ucs4-unsafe: Update.
56240         * modules/ucs4-utf8: Update.
56241         * modules/ucs4-utf16: Update.
56242
56243 2007-03-24  Bruno Haible  <bruno@clisp.org>
56244
56245         * lib/utf8-ucs4.h: Remove file.
56246         * lib/utf8-ucs4-unsafe.h: Remove file.
56247         * lib/utf16-ucs4.h: Remove file.
56248         * lib/utf16-ucs4-unsafe.h: Remove file.
56249         * lib/ucs4-utf8.h: Remove file.
56250         * lib/ucs4-utf16.h: Remove file.
56251         * lib/unistr.h: Include their previous contents.
56252         * m4/utf-ucs4.m4: Remove file.
56253         * m4/ucs4-utf.m4: Remove file.
56254         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
56255         (Depends-on): Add unistr/base.
56256         (configure.ac): Remove gl_UTF_UCS4.
56257         (Makefile.am): Update.
56258         (Include): Change to unistr.h.
56259         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
56260         (Depends-on): Add unistr/base.
56261         (configure.ac): Remove gl_UTF_UCS4.
56262         (Makefile.am): Update.
56263         (Include): Change to unistr.h.
56264         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
56265         (Depends-on): Add unistr/base.
56266         (configure.ac): Remove gl_UTF_UCS4.
56267         (Makefile.am): Update.
56268         (Include): Change to unistr.h.
56269         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
56270         (Depends-on): Add unistr/base.
56271         (configure.ac): Remove gl_UTF_UCS4.
56272         (Makefile.am): Update.
56273         (Include): Change to unistr.h.
56274         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
56275         (Depends-on): Add unistr/base.
56276         (configure.ac): Remove gl_UCS4_UTF.
56277         (Makefile.am): Update.
56278         (Include): Change to unistr.h.
56279         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
56280         (Depends-on): Add unistr/base.
56281         (configure.ac): Remove gl_UCS4_UTF.
56282         (Makefile.am): Update.
56283         (Include): Change to unistr.h.
56284         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
56285         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
56286         utf8-ucs4-unsafe.h.
56287         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
56288         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
56289         utf16-ucs4-unsafe.h.
56290         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
56291         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
56292         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
56293         * lib/unistr/u8-strchr.c: Likewise.
56294         * lib/unistr/u8-strrchr.c: Likewise.
56295         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
56296         * lib/unistr/u16-strchr.c: Likewise.
56297         * lib/unistr/u16-strrchr.c: Likewise.
56298         * lib/striconveh.c: Update.
56299         * lib/linebreak.c: Update.
56300
56301 2007-03-24  Bruno Haible  <bruno@clisp.org>
56302
56303         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
56304         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
56305
56306 2007-03-22  Bruno Haible  <bruno@clisp.org>
56307
56308         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
56309
56310 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
56311
56312         * MODULES.html.sh (File system functions): New module write-any-file.
56313         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
56314         * m4/write-any-file.m4: New files.
56315
56316 2007-03-23  Eric Blake  <ebb9@byu.net>
56317
56318         * gnulib-tool: Rearrange space-tab sequences, since some editors
56319         like to eat them.
56320
56321 2007-03-23  Eric Blake  <ebb9@byu.net>
56322
56323         * lib/version-etc.c (version_etc_va): Update license wording to
56324         be more concise.  Recommended by Richard Stallman.
56325
56326 2007-03-22  Bruno Haible  <bruno@clisp.org>
56327
56328         * lib/poll.c (MSG_PEEK): New fallback definition.
56329
56330 2007-03-22  Bruno Haible  <bruno@clisp.org>
56331
56332         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
56333         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
56334         (main): Update.
56335         Fixes a compilation error on BeOS.
56336
56337 2007-03-22  Bruno Haible  <bruno@clisp.org>
56338
56339         * modules/frexpl-tests: New file.
56340         * tests/test-frexpl.c: New file.
56341
56342         * modules/frexpl: New file.
56343         * m4/frexpl.m4: New file.
56344         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
56345         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
56346         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
56347         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
56348         (Depends-on): Add frexpl. Remove isnanl-nolibm.
56349         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
56350
56351 2007-03-22  Bruno Haible  <bruno@clisp.org>
56352
56353         * lib/frexpl.c: Share code with lib/frexp.c.
56354         * modules/mathl (Files): Add lib/frexp.c.
56355         (Depends-on): Add isnanl-nolibm.
56356
56357 2007-03-22  Bruno Haible  <bruno@clisp.org>
56358
56359         * modules/printf-frexp (Files): Add m4/frexp.m4.
56360         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
56361         only if the found frexp function actually works.
56362
56363 2007-03-22  Bruno Haible  <bruno@clisp.org>
56364
56365         * lib/frexp.c: Remove older implementation that uses divisions.
56366
56367 2007-03-21  Bruno Haible  <bruno@clisp.org>
56368
56369         * modules/frexp-tests: New file.
56370         * tests/test-frexp.c: New file.
56371
56372         * modules/frexp: New file.
56373         * lib/frexp.c: New file.
56374         * m4/frexp.m4: New file.
56375         * lib/math_.h (frexp): New declaration.
56376         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
56377         REPLACE_FREXP.
56378         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
56379
56380 2007-03-21  Bruno Haible  <bruno@clisp.org>
56381
56382         * modules/isnanl-tests: New file.
56383         * tests/test-isnanl.c: New file.
56384
56385         * modules/isnanl: New file.
56386         * lib/isnanl.h: New file.
56387         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
56388         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
56389         gl_FUNC_ISNANL_WORKS.
56390         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
56391         New macros.
56392
56393 2007-03-21  Bruno Haible  <bruno@clisp.org>
56394
56395         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
56396         lib/isnanl.h.
56397         (Include): Update.
56398         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
56399         * lib/vasnprintf.c: Update.
56400         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
56401         tests/test-isnanl.h, remove tests/test-isnanl.c.
56402         (Makefile.am): Update.
56403         * tests/test-isnanl-nolibm.c: New file.
56404         * tests/test-isnanl.h: New file.
56405         * tests/test-isnanl.c: Remove file.
56406
56407 2007-03-21  Jim Meyering  <jim@meyering.net>
56408
56409         When trying to open ".", treat ESTALE like EACCES.
56410         * lib/savewd.c (savewd_save): Resort to forking not just upon
56411         failure with EACCES, but also when errno is ESTALE.
56412
56413 2007-03-20  Bruno Haible  <bruno@clisp.org>
56414
56415         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
56416         Needed on AIX 5.1. Reported by Matthew Woehlke.
56417
56418 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
56419
56420         Suggestions by Bruno Haible:
56421         * lib/acl-internal.h: Include "gettext.h" rather than rolling
56422         our own.
56423         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
56424         * modules/acl (Depends-on): Add gettext.
56425
56426 2007-03-19  Bruno Haible  <bruno@clisp.org>
56427
56428         * modules/iconvme: Remove file.
56429         * lib/iconvme.h: Remove file.
56430         * lib/iconvme.c: Remove file.
56431         * m4/iconvme.m4: Remove file.
56432
56433 2007-03-19  Bruno Haible  <bruno@clisp.org>
56434
56435         * doc/relocatable-maint.texi: Break long shell script line.
56436         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
56437
56438 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
56439
56440         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
56441         handle file_has_acl.
56442         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
56443         * lib/acl.c: Move header inclusions and related macro defns into
56444         lib/acl-internal.h.
56445         (S_ISLNK): Remove defn, since that's now done for us.
56446         (file_has_acl): Move to lib/file-has-acl.c.
56447         Call acl_trivial if available.  This is the crucial part of the fix.
56448         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
56449         shared within the library.  Rewrite a bit, partly to make it compatible
56450         with the GNU coding style.
56451         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
56452         Remove unnecessary double-quotes.
56453         Don't test for acl_to_text; the build will catch that.
56454         Replace acl_entries if it doesn't exist and it is needed.
56455         Check for -lsec and acl_trivial (as used on Solaris 10).
56456         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
56457         lib/file-has-acl.c.
56458         (Depends-on): Add sys_stat, for S_ISLNK.
56459
56460 2007-03-19  Ben Pfaff  <blp@gnu.org>
56461
56462         * doc/gnulib.texi: Fix typos.
56463         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
56464
56465 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
56466
56467         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
56468         If size is zero here, buf must be zero.
56469
56470 2007-03-19  Simon Josefsson  <simon@josefsson.org>
56471
56472         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
56473         <bruno@clisp.org>.
56474
56475 2007-03-18  Bruno Haible  <bruno@clisp.org>
56476
56477         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
56478         Suggested by Eric Blake.
56479
56480 2007-03-18  Ben Pfaff  <blp@gnu.org>
56481
56482         * doc/relocatable.texi: Recommend using as prefix a directory
56483         that does not exist and will never be created.  Based on
56484         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
56485         and others.
56486
56487 2007-03-17  Bruno Haible  <bruno@clisp.org>
56488
56489         * lib/fchownat.c: Include lchown.h.
56490
56491 2007-03-17  Bruno Haible  <bruno@clisp.org>
56492
56493         Fix endless loop when the given allocated size was > INT_MAX.
56494         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
56495         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
56496         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
56497         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
56498         * lib/sprintf.c (sprintf): Likewise.
56499
56500 2007-03-17  Bruno Haible  <bruno@clisp.org>
56501
56502         * tests/test-argp-2.sh (func_compare): Output a context diff.
56503
56504 2007-03-17  Bruno Haible  <bruno@clisp.org>
56505
56506         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
56507         locale's decimal-point character.
56508
56509 2007-03-17  Bruno Haible  <bruno@clisp.org>
56510
56511         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
56512         before comparing it. Needed because on some platforms (e.g. x86) a
56513         'long double' occupies less bytes than sizeof (long double).
56514
56515 2007-03-17  Bruno Haible  <bruno@clisp.org>
56516
56517         * tests/test-crc.c (main): Make printf statements 64-bit clean.
56518         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
56519         * tests/test-getaddrinfo.c (simple): Likewise.
56520         * tests/test-read-file.c (main): Likewise.
56521
56522 2007-03-17  Bruno Haible  <bruno@clisp.org>
56523
56524         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
56525
56526 2007-03-17  Bruno Haible  <bruno@clisp.org>
56527
56528         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
56529         unused variable.
56530
56531 2007-03-17  Bruno Haible  <bruno@clisp.org>
56532
56533         * tests/test-c-strcasecmp.c: Include c-strcase.h.
56534         * tests/test-c-strncasecmp.c: Likewise.
56535
56536 2007-03-17  Bruno Haible  <bruno@clisp.org>
56537
56538         * modules/stdlib (Depends-on): Add unistd.
56539         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
56540         Needed for MacOS X 10.3.
56541
56542 2007-03-17  Bruno Haible  <bruno@clisp.org>
56543
56544         * lib/unistr/u-strdup.h: Include <stdlib.h>.
56545
56546 2007-03-17  Bruno Haible  <bruno@clisp.org>
56547
56548         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
56549
56550 2007-03-17  Bruno Haible  <bruno@clisp.org>
56551
56552         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
56553         to reflect files copied from gnulib (with or without modifications).
56554         Suggested by Jim Meyering.
56555
56556 2007-03-17  Eric Blake  <ebb9@byu.net>
56557
56558         * NEWS: Document stdlib change from 2007-02-18.
56559
56560 2007-03-17  Jim Meyering  <jim@meyering.net>
56561
56562         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
56563         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
56564         someone uses a name containing shell meta-characters.
56565         Reported by Alfred M. Szmidt.
56566
56567         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
56568
56569 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
56570
56571         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
56572         and copy gettext configuration files only if configure.ac contains
56573         a use of AM_GNU_GETTEXT_VERSION.
56574
56575 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
56576
56577         * build-aux/bootstrap (gnulib_name): New variable.
56578         (gnulib_tool_options): Use it.
56579
56580 2007-03-13  Simon Josefsson  <simon@josefsson.org>
56581
56582         * tests/test-des.c: Use new namespace.
56583
56584 2007-03-15  Bruno Haible  <bruno@clisp.org>
56585
56586         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
56587         Reported by James Youngman <jay@gnu.org>.
56588
56589 2007-03-15  Bruno Haible  <bruno@clisp.org>
56590
56591         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
56592         declared prototype. Needed with cc on OSF/1 5.1.
56593
56594 2007-03-15  Bruno Haible  <bruno@clisp.org>
56595
56596         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
56597         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
56598         (struct gl_list_implementation): Add dispose_fn argument to the
56599         'create_empty', 'create' methods.
56600         (struct gl_list_impl_base): Add field 'dispose_fn'.
56601         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
56602         argument.
56603         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
56604         dispose_fn argument.
56605         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
56606         dispose_fn on the dropped values.
56607         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
56608         dispose_fn argument.
56609         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
56610         dropped values.
56611         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
56612         (gl_tree_remove_node): Call dispose_fn on the dropped value.
56613         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
56614         (gl_tree_remove_node): Call dispose_fn on the dropped value.
56615         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
56616         argument.
56617         (gl_tree_list_free): Call dispose_fn on the dropped values.
56618         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
56619         the dropped values.
56620         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
56621         Add dispose_fn argument.
56622         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
56623         Call dispose_fn on the dropped values.
56624         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
56625         Add dispose_fn argument.
56626         (gl_sublist_create): Initialize the 'dispose_fn' field.
56627         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
56628         * tests/test-array_list.c (main): Update.
56629         * tests/test-carray_list.c (main): Update.
56630         * tests/test-avltree_list.c (main): Update.
56631         * tests/test-rbtree_list.c (main): Update.
56632         * tests/test-avltreehash_list.c (main): Update.
56633         * tests/test-rbtreehash_list.c (main): Update.
56634         * tests/test-linked_list.c (main): Update.
56635         * tests/test-linkedhash_list.c (main): Update.
56636         * tests/test-array_oset.c (main): Update.
56637
56638 2007-03-15  Bruno Haible  <bruno@clisp.org>
56639
56640         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
56641         (gl_oset_create_empty): Add dispose_fn argument.
56642         (struct gl_oset_implementation): Add dispose_fn argument to
56643         'create_empty' method.
56644         (struct gl_oset_impl_base): Add dispose_fn field.
56645         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
56646         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
56647         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
56648         values.
56649         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
56650         (gl_tree_oset_free): Call dispose_fn on the dropped values.
56651         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
56652         dropped value.
56653         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
56654         dropped value.
56655         * tests/test-array_oset.c (main): Update.
56656         * tests/test-avltree_oset.c (main): Update.
56657         * tests/test-rbtree_oset.c (main): Update.
56658         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
56659
56660 2007-03-13  Bruno Haible  <bruno@clisp.org>
56661
56662         * tests/test-stdbool.c (i): Update after last patch.
56663
56664 2007-03-12  Bruno Haible  <bruno@clisp.org>
56665
56666         * lib/quotearg.c: Include <wctype.h> early, before the definition of
56667         the iswprint macro. Needed on Solaris 2.5.1.
56668
56669 2007-03-12  Bruno Haible  <bruno@clisp.org>
56670
56671         * tests/test-printf-frexp.c (main): Declare x as volatile.
56672
56673 2007-03-12  Simon Josefsson  <simon@josefsson.org>
56674
56675         * doc/gnulib.texi (Build robot for gnulib): New section.
56676
56677 2007-03-12  Jim Meyering  <jim@meyering.net>
56678
56679         * build-aux/bootstrap: New file.
56680         * build-aux/bootstrap.conf: New file, from coreutils.
56681
56682 2007-03-11  Bruno Haible  <bruno@clisp.org>
56683
56684         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
56685
56686 2007-03-12  Simon Josefsson  <simon@josefsson.org>
56687
56688         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
56689         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
56690         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
56691
56692 2007-03-11  Bruno Haible  <bruno@clisp.org>
56693
56694         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
56695         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
56696
56697 2007-03-11  Bruno Haible  <bruno@clisp.org>
56698
56699         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
56700         formula. Needed for SunPRO C 5.0.
56701
56702 2007-03-11  Bruno Haible  <bruno@clisp.org>
56703
56704         * modules/long-options (Depends-on): Add getopt.
56705
56706 2007-03-11  Bruno Haible  <bruno@clisp.org>
56707
56708         * modules/modechange (Depends-on): Add stdbool.
56709
56710 2007-03-11  Bruno Haible  <bruno@clisp.org>
56711
56712         * modules/i-ring (Depends-on): Add stdbool.
56713
56714 2007-03-11  Bruno Haible  <bruno@clisp.org>
56715
56716         * modules/gc-des (Depends-on): Add stdbool.
56717
56718 2007-03-11  Bruno Haible  <bruno@clisp.org>
56719
56720         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
56721
56722 2007-03-11  Bruno Haible  <bruno@clisp.org>
56723
56724         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
56725
56726 2007-03-11  Bruno Haible  <bruno@clisp.org>
56727
56728         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
56729
56730 2007-03-11  Bruno Haible  <bruno@clisp.org>
56731
56732         * lib/vasnprintf.c (sprintf): Undefine.
56733
56734 2007-03-11  Bruno Haible  <bruno@clisp.org>
56735
56736         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
56737         initializers in SunPRO C and Compaq C compilers.
56738
56739 2007-03-11  Bruno Haible  <bruno@clisp.org>
56740
56741         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
56742         decrementing code ANSI C compliant.
56743
56744 2007-03-11  Bruno Haible  <bruno@clisp.org>
56745
56746         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
56747         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
56748
56749 2007-03-11  Bruno Haible  <bruno@clisp.org>
56750
56751         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
56752         <stdbool.h> substitute doesn't pass.
56753
56754 2007-03-11  Bruno Haible  <bruno@clisp.org>
56755
56756         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
56757
56758 2007-03-11  Bruno Haible  <bruno@clisp.org>
56759
56760         * gnulib-tool (func_create_megatestdir): Create also an autobuild
56761         script, for submission to autobuild.josefsson.org.
56762
56763 2007-03-10  Bruno Haible  <bruno@clisp.org>
56764
56765         * modules/canonicalize-lgpl-tests: New file.
56766         * tests/test-canonicalize-lgpl.sh: New file.
56767         * tests/test-canonicalize-lgpl.c: New file.
56768
56769         * modules/c-strcase-tests: New file.
56770         * tests/test-c-strcase.sh: New file.
56771         * tests/test-c-strcasecmp.c: New file.
56772         * tests/test-c-strncasecmp.c: New file.
56773
56774         * modules/atexit-tests: New file.
56775         * tests/test-atexit.sh: New file.
56776         * tests/test-atexit.c: New file.
56777
56778 2007-03-10  Bruno Haible  <bruno@clisp.org>
56779
56780         * tests/test-binary-io.sh: Use temporary filenames that are not so
56781         likely to clash with those of other tests (in a parallel make).
56782         * tests/test-binary-io.c: Likewise.
56783
56784 2007-03-10  Bruno Haible  <bruno@clisp.org>
56785
56786         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
56787         fallback; use #error instead.
56788         Suggested by Simon Josefsson.
56789
56790 2007-03-10  Bruno Haible  <bruno@clisp.org>
56791
56792         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
56793         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
56794         first and the last.
56795
56796 2007-03-10  Bruno Haible  <bruno@clisp.org>
56797
56798         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
56799
56800 2007-03-10  Bruno Haible  <bruno@clisp.org>
56801
56802         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
56803         "make distcheck".
56804         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
56805         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
56806         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
56807
56808 2007-03-10  Bruno Haible  <bruno@clisp.org>
56809
56810         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
56811         variable.
56812         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
56813         variable.
56814
56815 2007-03-09  Eric Blake  <ebb9@byu.net>
56816         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
56817
56818         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
56819         types are not being provided by gnulib.
56820         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
56821         types are supported.
56822
56823 2007-03-10  Bruno Haible  <bruno@clisp.org>
56824
56825         * lib/stdio_.h (__attribute__): New macro.
56826         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
56827         vsprintf): Specify __attribute__ __format__ for GCC.
56828         Suggested by Eric Blake.
56829
56830 2007-03-09  Bruno Haible  <bruno@clisp.org>
56831
56832         * modules/printf-posix-tests: New file.
56833         * tests/test-printf-posix.sh: New file.
56834         * tests/test-printf-posix.c: New file.
56835
56836         * modules/printf-posix: New file.
56837         * lib/printf.c: New file.
56838         * m4/printf-posix-rpl.m4: New file.
56839         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
56840         REPLACE_PRINTF.
56841         * lib/stdio_.h (printf): New declaration.
56842         (format, __format__, ____printf____, ____scanf____, ____strftime____,
56843         ____strfmon____): New macros.
56844         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
56845         REPLACE_PRINTF.
56846
56847 2007-03-09  Bruno Haible  <bruno@clisp.org>
56848
56849         * tests/test-vasnprintf-posix2.sh: New file.
56850         * tests/test-vasnprintf-posix2.c: New file.
56851         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
56852         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
56853         (Makefile.am): Activate test-vasnprintf-posix2.sh.
56854
56855         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
56856         a locale dependent decimal point, rather than always '.'.
56857
56858 2007-03-09  Eric Blake  <ebb9@byu.net>
56859
56860         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
56861         spite of platforms like Tandem/NSK that define it to -1.
56862
56863 2007-03-08  Bruno Haible  <bruno@clisp.org>
56864
56865         * modules/vprintf-posix-tests: New file.
56866         * tests/test-vprintf-posix.sh: New file.
56867         * tests/test-vprintf-posix.c: New file.
56868         * tests/test-printf-posix.h: New file.
56869
56870         * modules/vprintf-posix: New file.
56871         * lib/vprintf.c: New file.
56872         * m4/vprintf-posix.m4: New file.
56873         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
56874         REPLACE_VPRINTF.
56875         * lib/stdio_.h (vprintf): New declaration.
56876         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
56877         REPLACE_VPRINTF.
56878
56879 2007-03-08  Bruno Haible  <bruno@clisp.org>
56880
56881         * modules/fprintf-posix-tests: New file.
56882         * tests/test-fprintf-posix.sh: New file.
56883         * tests/test-fprintf-posix.c: New file.
56884
56885         * modules/fprintf-posix: New file.
56886         * lib/fprintf.c: New file.
56887         * m4/fprintf-posix.m4: New file.
56888         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
56889         REPLACE_FPRINTF.
56890         * lib/stdio_.h (fprintf): New declaration.
56891         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
56892         REPLACE_FPRINTF.
56893
56894 2007-03-08  Bruno Haible  <bruno@clisp.org>
56895
56896         * modules/vfprintf-posix-tests: New file.
56897         * tests/test-vfprintf-posix.sh: New file.
56898         * tests/test-vfprintf-posix.c: New file.
56899         * tests/test-fprintf-posix.h: New file.
56900         * tests/test-fprintf-posix.out: New file.
56901
56902         * modules/vfprintf-posix: New file.
56903         * lib/vfprintf.c: New file.
56904         * m4/vfprintf-posix.m4: New file.
56905         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
56906         REPLACE_VFPRINTF.
56907         * lib/stdio_.h (vfprintf): New declaration.
56908         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
56909         REPLACE_VFPRINTF.
56910
56911 2007-03-08  Bruno Haible  <bruno@clisp.org>
56912
56913         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
56914
56915 2007-03-08  Bruno Haible  <bruno@clisp.org>
56916
56917         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
56918         instead of 'expr' invocations.
56919         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56920         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56921         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56922         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56923         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56924         Suggested by Paul Eggert.
56925
56926 2007-03-08  Bruno Haible  <bruno@clisp.org>
56927
56928         * modules/fseterr-tests: New file.
56929         * tests/test-fseterr.c: New file.
56930
56931         * modules/fseterr: New file.
56932         * lib/fseterr.h: New file.
56933         * lib/fseterr.c: New file.
56934
56935 2007-03-08  Bruno Haible  <bruno@clisp.org>
56936
56937         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
56938         * lib/getopt_.h: Likewise.
56939         * lib/mbswidth.h: Likewise.
56940         * lib/setenv.h: Likewise.
56941         * lib/vasnprintf.h: Likewise.
56942         * lib/vasprintf.h: Likewise.
56943         * lib/verror.h: Likewise.
56944         * lib/xsetenv.h: Likewise.
56945         * lib/xvasprintf.h: Likewise.
56946
56947 2007-03-08  Jim Meyering  <jim@meyering.net>
56948
56949         * users.txt: Add parted.
56950
56951         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
56952
56953 2007-03-07  Bruno Haible  <bruno@clisp.org>
56954
56955         * m4/printf.m4: Make the shell script snippets copy&pastable.
56956
56957 2007-03-02  Bruno Haible  <bruno@clisp.org>
56958
56959         * lib/netinet_in_.h: New file.
56960         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
56961         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
56962         * modules/netinet_in (Files): Add lib/netinet_in_.h.
56963         (Depends-on): Add absolute-header.
56964         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
56965         into netinet/in.h.
56966
56967 2007-03-03  Bruno Haible  <bruno@clisp.org>
56968
56969         * lib/sys_select_.h: New file.
56970         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
56971         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
56972         * modules/sys_select (Files): Add lib/sys_select_.h.
56973         (Depends-on): Add absolute-header.
56974         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
56975         into sys/select.h.
56976
56977 2007-03-02  Bruno Haible  <bruno@clisp.org>
56978
56979         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
56980         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
56981         values.
56982         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
56983         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
56984         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
56985         * modules/sys_socket (Depends-on): Add absolute-header.
56986         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
56987         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
56988         (Include): Remove requirement of inclusion of <sys/types.h>.
56989
56990 2007-03-02  Bruno Haible  <bruno@clisp.org>
56991
56992         * lib/byteswap_.h (bswap_32): Fix formula.
56993
56994 2007-03-06  Bruno Haible  <bruno@clisp.org>
56995
56996         * modules/sprintf-posix-tests: New file.
56997         * tests/test-sprintf-posix.c: New file.
56998
56999         * modules/sprintf-posix: New file.
57000         * lib/sprintf.c: New file.
57001         * m4/sprintf-posix.m4: New file.
57002         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
57003         REPLACE_SPRINTF.
57004         * lib/stdio_.h (sprintf): New declaration.
57005         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
57006         REPLACE_SPRINTF.
57007
57008 2007-03-06  Bruno Haible  <bruno@clisp.org>
57009
57010         * modules/vsprintf-posix-tests: New file.
57011         * tests/test-vsprintf-posix.c: New file.
57012         * tests/test-sprintf-posix.h: New file.
57013
57014         * modules/vsprintf-posix: New file.
57015         * lib/vsprintf.c: New file.
57016         * m4/vsprintf-posix.m4: New file.
57017         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
57018         REPLACE_VSPRINTF.
57019         * lib/stdio_.h (vsprintf): New declaration.
57020         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
57021         REPLACE_VSPRINTF.
57022
57023 2007-03-06  Bruno Haible  <bruno@clisp.org>
57024
57025         * modules/vsnprintf (Depend-on): Remove minmax.
57026
57027 2007-03-06  Bruno Haible  <bruno@clisp.org>
57028
57029         * modules/snprintf-posix-tests: New file.
57030         * tests/test-snprintf-posix.c: New file.
57031
57032         * modules/snprintf-posix: New file.
57033         * m4/snprintf-posix.m4: New file.
57034         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
57035         gl_FUNC_SNPRINTF.
57036         (gl_FUNC_SNPRINTF): Invoke it.
57037         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
57038         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
57039         is set.
57040         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
57041
57042 2007-03-06  Bruno Haible  <bruno@clisp.org>
57043
57044         * modules/vsnprintf-posix-tests: New file.
57045         * tests/test-vsnprintf-posix.c: New file.
57046         * tests/test-snprintf-posix.h: New file.
57047
57048         * modules/vsnprintf-posix: New file.
57049         * m4/vsnprintf-posix.m4: New file.
57050         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
57051         gl_FUNC_VSNPRINTF.
57052         (gl_FUNC_VSNPRINTF): Invoke it.
57053         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
57054         * lib/stdio_.h (vsnprintf): Define as a replacement if
57055         REPLACE_VSNPRINTF is set.
57056         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
57057
57058 2007-03-06  Bruno Haible  <bruno@clisp.org>
57059
57060         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
57061         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
57062
57063 2007-03-06  Bruno Haible  <bruno@clisp.org>
57064
57065         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
57066         (asinl): Declare also if HAVE_DECL_ASINL is set.
57067         (atanl): Declare also if HAVE_DECL_ATANL is set.
57068         (ceill): Declare also if HAVE_DECL_CEILL is set.
57069         (cosl): Declare also if HAVE_DECL_COSL is set.
57070         (expl): Declare also if HAVE_DECL_EXPL is set.
57071         (floorl): Declare also if HAVE_DECL_FLOORL is set.
57072         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
57073         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
57074         (logl): Declare also if HAVE_DECL_LOGL is set.
57075         (sinl): Declare also if HAVE_DECL_SINL is set.
57076         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
57077         (tanl): Declare also if HAVE_DECL_TANL is set.
57078         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
57079         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
57080         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
57081         declaration of frexpl, ldexpl.
57082         * modules/printf-frexpl (Depends-on): Add math.
57083         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
57084
57085 2007-03-05  Bruno Haible  <bruno@clisp.org>
57086
57087         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
57088         frexpl and ldexpl are declared.
57089         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
57090
57091 2007-03-05  Bruno Haible  <bruno@clisp.org>
57092
57093         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
57094         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
57095
57096 2007-03-05  Bruno Haible  <bruno@clisp.org>
57097
57098         * lib/stdio_.h: Include <stddef.h>.
57099
57100 2007-03-05  Bruno Haible  <bruno@clisp.org>
57101
57102         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
57103
57104 2007-03-05  Bruno Haible  <bruno@clisp.org>
57105
57106         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
57107         NetBSD 4, from Ralf Wildenhues.
57108
57109 2007-03-04  Bruno Haible  <bruno@clisp.org>
57110
57111         * lib/vasprintf.h: Update #if logic for the case when the functions
57112         exist but are overridden.
57113
57114 2007-03-04  Bruno Haible  <bruno@clisp.org>
57115
57116         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
57117         implementations: glibc-2.4 and MacOS X 10.3.
57118         * tests/test-vasnprintf-posix.c (test_function): Test also the case
57119         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
57120         * tests/test-vasprintf-posix.c (test_function): Likewise.
57121
57122 2007-03-04  Bruno Haible  <bruno@clisp.org>
57123
57124         * modules/vasprintf-posix-tests: New file.
57125         * tests/test-vasprintf-posix.c: New file.
57126
57127         * modules/vasprintf-posix: New file.
57128         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
57129         defined.
57130         * m4/vasprintf-posix.m4: New file.
57131         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
57132         gl_FUNC_VASPRINTF.
57133         (gl_FUNC_VASPRINTF): Invoke it.
57134         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
57135         here.
57136         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
57137
57138 2007-03-04  Bruno Haible  <bruno@clisp.org>
57139
57140         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
57141         REPLACE_GETTIMEOFDAY.
57142         * modules/sys_time (Makefile.am): Likewise.
57143         * m4/sys_time_h.m4: Likewise.
57144         * m4/gettimeofday.m4: Likewise.
57145
57146 2007-03-04  Bruno Haible  <bruno@clisp.org>
57147
57148         * modules/vasnprintf-posix-tests: New file.
57149         * tests/test-vasnprintf-posix.c: New file.
57150
57151         * modules/vasnprintf-posix: New file.
57152         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
57153         printf-frexpl.h.
57154         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
57155         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
57156         REPLACE_VASNPRINTF is defined.
57157         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
57158         gl_FUNC_VASNPRINTF.
57159         (gl_FUNC_VASNPRINTF): Invoke it.
57160         * m4/vasnprintf-posix.m4: New file.
57161         * m4/printf.m4: New file.
57162
57163 2007-03-04  Bruno Haible  <bruno@clisp.org>
57164
57165         Compile progreloc.c only if --enable-relocatable is specified.
57166         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
57167         if --enable-relocatable was specified.
57168         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
57169         lib_SOURCES.
57170
57171 2007-03-04  Jim Meyering  <jim@meyering.net>
57172
57173         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
57174         Use it consistently, rather than enumerating errno constants.
57175
57176 2007-03-04  Bruno Haible  <bruno@clisp.org>
57177
57178         * modules/xvasprintf-tests: New file.
57179         * tests/test-xvasprintf.c: New file.
57180
57181         * modules/vasprintf-tests: New file.
57182         * tests/test-vasprintf.c: New file.
57183
57184         * modules/vasnprintf-tests: New file.
57185         * tests/test-vasnprintf.c: New file.
57186
57187         * modules/vsnprintf-tests: New file.
57188         * tests/test-vsnprintf.c: New file.
57189
57190         * modules/snprintf-tests: New file.
57191         * tests/test-snprintf.c: New file.
57192
57193 2007-03-04  Bruno Haible  <bruno@clisp.org>
57194
57195         Compile relocatable.c only if --enable-relocatable is specified.
57196         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
57197         gl_RELOCATABLE_LIBRARY.
57198         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
57199         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
57200         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
57201         gl_RELOCATABLE_LIBRARY.
57202         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
57203         (Makefile.am): Remove lib_SOURCES.
57204         * modules/relocatable-lib-lgpl (configure.ac): Invoke
57205         gl_RELOCATABLE_LIBRARY.
57206         (Makefile.am): Remove lib_SOURCES.
57207         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
57208         always.
57209         * modules/relocatable-prog-wrapper (configure.ac): Invoke
57210         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
57211
57212 2007-03-04  Bruno Haible  <bruno@clisp.org>
57213
57214         * modules/argmatch-tests: New file.
57215         * tests/test-argmatch.c: New file.
57216
57217         * tests/test-allocsa.c (main): Halve the number of loop runs.
57218
57219         * modules/alloca-opt-tests: New file.
57220         * tests/test-alloca-opt.c: New file.
57221
57222 2007-03-04  Jim Meyering  <jim@meyering.net>
57223
57224         Work around difference between Linux ACLs and Solaris 10 ZFS.
57225         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
57226         for EINVAL.
57227
57228 2007-03-03  Bruno Haible  <bruno@clisp.org>
57229
57230         * modules/relocatable-prog (Depends-on): Add back progreloc's
57231         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
57232
57233 2007-03-03  Bruno Haible  <bruno@clisp.org>
57234
57235         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
57236         * modules/relocatable-lib: New file.
57237
57238 2007-03-03  Bruno Haible  <bruno@clisp.org>
57239
57240         * modules/relocatable-prog: Renamed from modules/relocatable.
57241         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
57242
57243 2007-03-03  Bruno Haible  <bruno@clisp.org>
57244
57245         * modules/relocatable-script (Files): Add doc/relocatable.texi,
57246         m4/relocatable-lib.m4.
57247         (Depends-on): Remove 'relocatable'.
57248         (configure.ac): Add gl_RELOCATABLE_NOP.
57249
57250 2007-03-03  Bruno Haible  <bruno@clisp.org>
57251
57252         * modules/relocatable-prog-wrapper: New file.
57253         * modules/relocatable (Depends-on): Add it. Remove all other
57254         dependencies except progname.
57255         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
57256
57257         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
57258         (gl_FUNC_STRERROR): Nop.
57259         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
57260
57261         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
57262         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
57263
57264         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
57265         (gl_FUNC_READLINK): Update.
57266
57267         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
57268
57269 2007-03-03  Bruno Haible  <bruno@clisp.org>
57270
57271         * lib/xreadlink.c: Include <unistd.h> unconditionally.
57272         * modules/xreadlink (Depends-on): Add unistd.
57273         * modules/xreadlink-with-size (Depends-on): Likewise.
57274
57275 2007-03-03  Bruno Haible  <bruno@clisp.org>
57276
57277         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
57278         extracted from gt_FUNC_SETENV.
57279         (gt_FUNC_SETENV): Remove macro.
57280         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
57281         remove gt_FUNC_SETENV.
57282
57283 2007-03-03  Bruno Haible  <bruno@clisp.org>
57284
57285         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
57286         ENABLE_RELOCATABLE here.
57287         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
57288
57289 2007-03-03  Bruno Haible  <bruno@clisp.org>
57290
57291         * modules/rbtreehash-list-tests (Depends-on): Add progname.
57292         * tests/test-rbtreehash_list.c: Include progname.h.
57293         (main): Call set_program_name.
57294
57295         * modules/rbtree-oset-tests (Depends-on): Add progname.
57296         * tests/test-rbtree_oset.c: Include progname.h.
57297         (main): Call set_program_name.
57298
57299         * modules/rbtree-list-tests (Depends-on): Add progname.
57300         * tests/test-rbtree_list.c: Include progname.h.
57301         (main): Call set_program_name.
57302
57303         * modules/linked-list-tests (Depends-on): Add progname.
57304         * tests/test-linked_list.c: Include progname.h.
57305         (main): Call set_program_name.
57306
57307 2007-03-03  Bruno Haible  <bruno@clisp.org>
57308
57309         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
57310         All uses of __restrict changed to _Restrict_.
57311         * lib/glob_.h (__restrict): Remove macro.
57312
57313 2007-03-02  Bruno Haible  <bruno@clisp.org>
57314
57315         * modules/gettext (configure.ac): Require gettext infrastructure
57316         from version 0.16.1.
57317
57318 2007-03-02  Bruno Haible  <bruno@clisp.org>
57319
57320         * modules/linkedhash-list-tests (Depends-on): Add progname.
57321         * tests/test-linkedhash_list.c: Include progname.h.
57322         (main): Call set_program_name.
57323
57324         * modules/carray-list-tests (Depends-on): Add progname.
57325         * tests/test-carray_list.c: Include progname.h.
57326         (main): Call set_program_name.
57327
57328         * modules/avltreehash-list-tests (Depends-on): Add progname.
57329         * tests/test-avltreehash_list.c: Include progname.h.
57330         (main): Call set_program_name.
57331
57332         * modules/avltree-oset-tests (Depends-on): Add progname.
57333         * tests/test-avltree_oset.c: Include progname.h.
57334         (main): Call set_program_name.
57335
57336         * modules/avltree-list-tests (Depends-on): Add progname.
57337         * tests/test-avltree_list.c: Include progname.h.
57338         (main): Call set_program_name.
57339
57340         * modules/array-oset-tests (Depends-on): Add progname.
57341         * tests/test-array_oset.c: Include progname.h.
57342         (main): Call set_program_name.
57343
57344         * modules/array-list-tests (Depends-on): Add progname.
57345         * tests/test-array_list.c: Include progname.h.
57346         (main): Call set_program_name.
57347
57348         * modules/argp-tests (Depends-on): Add progname.
57349         * tests/test-argp.c: Include argp.h first. Include progname.h.
57350         (main): Call set_program_name.
57351
57352 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
57353
57354         * doc/gnulib-tool.texi (Initial import): Reword description of
57355         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
57356         limited effect even if defined after the first system include.
57357
57358 2007-03-01  Bruno Haible  <bruno@clisp.org>
57359
57360         * build-aux/config.libpath: Update to libtool-1.5.22.
57361         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
57362
57363 2007-03-01  Bruno Haible  <bruno@clisp.org>
57364
57365         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
57366         foo_CFLAGS.
57367         Reported by Ralf Wildenhues.
57368
57369 2007-03-01  Bruno Haible  <bruno@clisp.org>
57370
57371         * build-aux/install-reloc: Remove object files left over by some
57372         compilers.
57373         Reported by Ralf Wildenhues.
57374
57375 2007-03-01  Bruno Haible  <bruno@clisp.org>
57376
57377         * build-aux/install-reloc: Break long lines.
57378
57379 2007-03-01  Bruno Haible  <bruno@clisp.org>
57380
57381         * doc/relocatable.texi: Document that it may not work on OpenBSD.
57382         Reported by Ralf Wildenhues.
57383
57384 2007-03-01  Bruno Haible  <bruno@clisp.org>
57385
57386         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
57387         include ordering constraints.
57388
57389 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
57390
57391         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
57392         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
57393         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
57394         as another example.
57395         * lib/time_.h: Fix misspelling.
57396         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
57397         Require gl_HEADER_TIME_H_DEFAULTS.
57398         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
57399         * m4/time_r.m4 (gl_TIME_R): Likewise.
57400         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
57401
57402 2007-03-01  Bruno Haible  <bruno@clisp.org>
57403
57404         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
57405         * m4/utimens.m4 (gl_UTIMENS): Likewise.
57406
57407 2007-03-01  Jim Meyering  <jim@meyering.net>
57408
57409         * modules/xreadlink (Maintainer): Add my name.
57410         * modules/xreadlink-with-size (Depends-on): Alphabetize.
57411
57412 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
57413             Bruno Haible  <bruno@clisp.org>
57414
57415         * build-aux/install-reloc: Compile also c-ctype.c.
57416         * build-aux/relocatable.sh.in: New file.
57417         * doc/relocatable.texi: New file.
57418         * doc/relocatable-maint.texi: New file.
57419         * doc/gnulib.texi: Include relocatable-maint.texi.
57420         * lib/progreloc.c: Include unistd.h unconditionally.
57421         * lib/relocwrapper.c: Include unistd.h unconditionally.
57422         Include c-ctype.h.
57423         (add_dotbin): Use c_tolower.
57424         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
57425         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
57426         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
57427         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
57428         to m4/relocatable-lib.m4.
57429         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
57430         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
57431         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
57432         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
57433         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
57434         * modules/relocatable: New file.
57435         * modules/relocatable-lib: New file.
57436         * modules/relocatable-script: New file.
57437
57438 2007-02-28  Bruno Haible  <bruno@clisp.org>
57439
57440         Import --enable-relocatable infrastructure.
57441         * build-aux/config.libpath: New file, from GNU gettext.
57442         * build-aux/install-reloc: New file, from GNU gettext.
57443         * build-aux/reloc-ldflags: New file, from GNU gettext.
57444         * lib/relocatable.h: New file, from GNU gettext.
57445         * lib/relocatable.c: New file, from GNU gettext.
57446         * lib/relocwrapper.c: New file, from GNU gettext.
57447         * m4/relocatable.m4: New file, from GNU gettext.
57448
57449 2007-02-28  Bruno Haible  <bruno@clisp.org>
57450
57451         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
57452
57453         * modules/xreadlink: New file, from GNU gettext with modifications.
57454         * lib/xreadlink.c: New file, from GNU gettext.
57455         * lib/xreadlink.h: Add comments.
57456         (xreadlink): New declaration.
57457
57458         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
57459         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
57460         lib/xreadlink-with-size.c.
57461         (configure.ac): Remove gl_XREADLINK invocation.
57462         (Makefile.am): Augment lib_SOURCES.
57463         * m4/xreadlink.m4: Remove file.
57464         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
57465         (xreadlink_with_size): Renamed from xreadink.
57466         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
57467         * modules/canonicalize (Depends-on): Replace xreadlink with
57468         xreadlink-with-size.
57469         * lib/canonicalize.c (canonicalize_filename_mode): Update.
57470
57471 2007-02-25  Jim Meyering  <jim@meyering.net>
57472
57473         * build-aux/announce-gen: When complaining about excess arguments,
57474         list them.
57475
57476 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
57477
57478         * README: Document signed integer overflow situation more
57479         accurately.
57480
57481 2007-02-25  Bruno Haible  <bruno@clisp.org>
57482
57483         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
57484         'a' or 'A' conversion.
57485
57486 2007-02-25  Bruno Haible  <bruno@clisp.org>
57487
57488         * modules/filename: Renamed from modules/pathname.
57489         (Files): Replace lib/pathname.h with lib/filename.h. Replace
57490         lib/concatpath.c with lib/concat-filename.c.
57491         (Makefile.am): Update.
57492         (Include): Replace pathname.h with filename.h.
57493         * lib/filename.h: Renamed from lib/pathname.h.
57494         (concatenated_filename): Renamed from concatenated_pathname.
57495         * lib/concat-filename.c: Renamed from lib/concatpath.c.
57496         (concatenated_filename): Renamed from concatenated_pathname.
57497         * lib/findprog.c: Include filename.h instead of pathname.h.
57498         (find_in_path): Update.
57499         * lib/javacomp.c: Include filename.h instead of pathname.h.
57500         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
57501         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
57502         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
57503         is_oldgcj_14_13_usable, is_javac_usable): Update.
57504         * lib/javaexec.c: Include filename.h instead of pathname.h.
57505         (execute_java_class): Update.
57506         * modules/findprog: Update.
57507         * modules/javacomp: Update.
57508         * modules/javaexec: Update.
57509         * MODULES.html.sh (File system functions): Add 'filename', remove
57510         'pathname'.
57511
57512 2007-02-25  Bruno Haible  <bruno@clisp.org>
57513
57514         * modules/printf-frexpl-tests: New file.
57515         * tests/test-printf-frexpl.c: New file.
57516
57517         * modules/printf-frexpl: New file.
57518         * lib/printf-frexpl.h: New file.
57519         * lib/printf-frexpl.c: New file.
57520         * m4/printf-frexpl.m4: New file.
57521
57522 2007-02-25  Bruno Haible  <bruno@clisp.org>
57523
57524         * modules/printf-frexp-tests: New file.
57525         * tests/test-printf-frexp.c: New file.
57526
57527         * modules/printf-frexp: New file.
57528         * lib/printf-frexp.h: New file.
57529         * lib/printf-frexp.c: New file.
57530         * m4/printf-frexp.m4: New file.
57531
57532 2007-02-25  Bruno Haible  <bruno@clisp.org>
57533
57534         Assume automake >= 1.10 for the tests.
57535         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
57536         * modules/arctwo-tests: Likewise.
57537         * modules/argp-tests: Likewise.
57538         * modules/avltree-list-tests: Likewise.
57539         * modules/avltree-oset-tests: Likewise.
57540         * modules/avltreehash-list-tests: Likewise.
57541         * modules/carray-list-tests: Likewise.
57542         * modules/crc-tests: Likewise.
57543         * modules/des-tests: Likewise.
57544         * modules/gc-arcfour-tests: Likewise.
57545         * modules/gc-arctwo-tests: Likewise.
57546         * modules/gc-des-tests: Likewise.
57547         * modules/gc-hmac-md5-tests: Likewise.
57548         * modules/gc-hmac-sha1-tests: Likewise.
57549         * modules/gc-md2-tests: Likewise.
57550         * modules/gc-md4-tests: Likewise.
57551         * modules/gc-md5-tests: Likewise.
57552         * modules/gc-pbkdf2-sha1-tests: Likewise.
57553         * modules/gc-rijndael-tests: Likewise.
57554         * modules/gc-sha1-tests: Likewise.
57555         * modules/gc-tests: Likewise.
57556         * modules/getaddrinfo-tests: Likewise.
57557         * modules/hmac-md5-tests: Likewise.
57558         * modules/hmac-sha1-tests: Likewise.
57559         * modules/linked-list-tests: Likewise.
57560         * modules/linkedhash-list-tests: Likewise.
57561         * modules/lock-tests: Likewise.
57562         * modules/md2-tests: Likewise.
57563         * modules/md4-tests: Likewise.
57564         * modules/md5-tests: Likewise.
57565         * modules/rbtree-list-tests: Likewise.
57566         * modules/rbtree-oset-tests: Likewise.
57567         * modules/rbtreehash-list-tests: Likewise.
57568         * modules/read-file-tests: Likewise.
57569         * modules/rijndael-tests: Likewise.
57570         * modules/stdint-tests: Likewise.
57571         * modules/tls-tests: Likewise.
57572
57573 2007-02-24  Bruno Haible  <bruno@clisp.org>
57574
57575         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
57576         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
57577         function; instead check whether isnan with a double argument links.
57578         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
57579         function; instead check whether isnan with a 'long double' argument
57580         links.
57581         Reported by Eric Blake <ebb9@byu.net>.
57582
57583 2007-02-24  Bruno Haible  <bruno@clisp.org>
57584
57585         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
57586         defined.
57587         * lib/isnanl.c: Remove all code. Just include isnan.c.
57588         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
57589
57590 2007-02-25  Jim Meyering  <jim@meyering.net>
57591
57592         Avoid conflicting types for 'unsetenv' on FreeBSD.
57593         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
57594         conflicting with FreeBSD's (5.0 and 6.1) function declaration
57595         in stdlib.h.
57596
57597 2007-02-24  Bruno Haible  <bruno@clisp.org>
57598
57599         * modules/isnanl-nolibm-tests: New file.
57600         * tests/test-isnanl.c: New file.
57601
57602         * modules/isnanl-nolibm: New file.
57603         * lib/isnanl.h: New file.
57604         * lib/isnanl.c: New file.
57605         * m4/isnanl.m4: New file.
57606
57607 2007-02-24  Bruno Haible  <bruno@clisp.org>
57608
57609         * modules/isnan-nolibm-tests: New file.
57610         * tests/test-isnan.c: New file.
57611
57612         * modules/isnan-nolibm: New file.
57613         * lib/isnan.h: New file.
57614         * lib/isnan.c: New file.
57615         * m4/isnan.m4: New file.
57616
57617 2007-02-24  Bruno Haible  <bruno@clisp.org>
57618
57619         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
57620         assume that an exponent fits in 20 bits.
57621
57622 2007-02-24  Jim Meyering  <jim@meyering.net>
57623
57624         * m4/regex.m4: Update the description of the configure-time option,
57625         --without-included-regex, to state accurately what the defaults are,
57626         and perhaps to give people an idea why using this option is risky.
57627
57628 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
57629
57630         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
57631         loops on small arguments.  This attempts to avoid the problem
57632         Bruno Haible reported for AIX 4.3.2 in
57633         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
57634
57635 2007-02-23  Bruno Haible  <bruno@clisp.org>
57636
57637         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
57638         Needed for help2man.
57639
57640 2007-02-23  Karl Berry  <karl@gnu.org>
57641
57642         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
57643         exists, foo.h should be cvs-ignored, not committed.
57644
57645 2007-02-23  Eric Blake  <ebb9@byu.net>
57646
57647         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
57648         * lib/stat-time.h (includes): Likewise.
57649         * lib/utimecmp.c (includes): Likewise.
57650         * lib/utimens.h (includes): Likewise.
57651         * lib/getdate.y (includes): Also include "timespec.h" for use
57652         internal to the module.
57653         * modules/utimens (Depends-on): Revert yesterday's patch.
57654         * modules/nanosleep (Depends-on): Add missing dependency.
57655
57656 2007-02-22  Bruno Haible  <bruno@clisp.org>
57657
57658         * lib/glob.c: Don't include getlogin_r.h.
57659
57660 2007-02-22  Jim Meyering  <jim@meyering.net>
57661
57662         * modules/utimens (Depends-on): Add timespec, required for
57663         utimens.h's inclusion of timespec.h.
57664
57665 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
57666
57667         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
57668         long unreadable paths in GNU/Linux.  Problem reported by Andreas
57669         Schwab in
57670         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
57671         I'll try to think of a better way to fix the Solaris problem.
57672
57673         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
57674         like glibc; on Solaris 10, it fails with errno == EINVAL.
57675         POSIX says the behavior is unspecified if the first argument is NULL,
57676         so play it safe and never pass NULL to the system getcwd.
57677
57678 2007-02-21  Jim Meyering  <jim@meyering.net>
57679
57680         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
57681         of gettimeofday.  It would conflict with the one now always
57682         provided via sys_time_.h.  Reported by Matthew Woehlke, as
57683         an IRIX 6.5 build failure.
57684
57685 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
57686
57687         Minor fixups to port to Solaris 10 with Sun C 5.8.
57688         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
57689         * modules/getcwd (Depends-on): Add dirfd.
57690         * lib/putenv.c (putenv): #undef it.
57691         (rpl_putenv): New decl.
57692         (malloc, free): Include <stdlib.h> rather than prototyping separately.
57693
57694 2007-02-20  Bruno Haible  <bruno@clisp.org>
57695
57696         * modules/stdio-tests: New file.
57697         * tests/test-stdio.c: New file.
57698
57699         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
57700         (Depends-on): Add stdio.
57701         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
57702         (Include): Use <stdio.h> instead of vsnprintf.h.
57703         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
57704         HAVE_DECL_VSNPRINTF.
57705         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
57706
57707         * modules/snprintf (Files): Remove lib/snprintf.h.
57708         (Depends-on): Add stdio.
57709         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
57710         (Include): Use <stdio.h> instead of snprintf.h.
57711         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
57712         HAVE_DECL_SNPRINTF.
57713         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
57714         * lib/getaddrinfo.c: Likewise.
57715
57716         * modules/stdio: New file.
57717         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
57718         * lib/snprintf.h: Remove file.
57719         * lib/vsnprintf.h: Remove file.
57720         * lib/.cppi-disable: Remove snprintf.h.
57721         * m4/stdio_h.m4: New file.
57722         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
57723
57724 2007-02-20  Jim Meyering  <jim@meyering.net>
57725
57726         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
57727         used by e.g., mingw.  From Bruno Haible.
57728
57729 2007-02-19  Bruno Haible  <bruno@clisp.org>
57730
57731         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
57732         warnings.
57733         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57734
57735 2007-02-19  Bruno Haible  <bruno@clisp.org>
57736
57737         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
57738         from mingw users.
57739
57740 2007-02-19  Bruno Haible  <bruno@clisp.org>
57741
57742         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
57743         warnings.
57744         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
57745
57746 2007-02-19  Jim Meyering  <jim@meyering.net>
57747
57748         Don't use FD after a successful "fdopendir (fd)".
57749         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
57750         Reset it by calling dirfd on the just-obtained DIR*.
57751
57752         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
57753         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
57754
57755 2007-02-18  Bruno Haible  <bruno@clisp.org>
57756
57757         * lib/readlink.c: Include <unistd.h>.
57758         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
57759         HAVE_READLINK.
57760         * modules/readlink (Depends-on): Add unistd.
57761         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57762         (Include): Add <unistd.h>.
57763
57764         * lib/getlogin_r.h: Remove file.
57765         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
57766         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
57767         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
57768         HAVE_DECL_GETLOGIN_R.
57769         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
57770         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57771         (Include): Use <unistd.h> instead of getlogin_r.h.
57772
57773         * lib/getcwd.h: Remove file.
57774         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
57775         * lib/xgetcwd.c: Likewise.
57776         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
57777         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
57778         * modules/getcwd (Files): Remove lib/getcwd.h.
57779         (Depends-on): Add unistd.
57780         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57781         (Include): Use <unistd.h> instad of getcwd.h.
57782
57783         * lib/ftruncate.c: Include <unistd.h> first.
57784         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
57785         Set HAVE_FTRUNCATE.
57786         * modules/ftruncate (Depends-on): Add unistd.
57787         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57788
57789         * lib/fchdir.c: Include <unistd.h> first.
57790         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
57791         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
57792         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
57793         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57794         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
57795
57796         * lib/dup2.c: Include <unistd.h> first.
57797         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
57798         HAVE_DUP2.
57799         * modules/dup2 (Depends-on): Add unistd.
57800         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57801
57802         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
57803         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
57804         REPLACE_CHOWN. Don't define chown as a macro here.
57805         * modules/chown (Depends-on): Add unistd.
57806         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57807
57808         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
57809         Add definition for GL_LINK_WARNING.
57810         (chown, dup2): New declarations.
57811         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
57812         link warning.
57813         (ftruncate): New declaration.
57814         (getcwd): New declaration, taken from old getcwd.h.
57815         (getlogin_r): New declaration, taken from old getlogin_r.h.
57816         (readlink): New declaration.
57817         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
57818         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
57819         (gl_PREREQ_UNISTD): Remove macro.
57820         (gl_UNISTD_MODULE_INDICATOR): New macro.
57821         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
57822         many new variables. Don't set UNISTD_H.
57823         * modules/unistd (Description): Change.
57824         (Depends-on): Add link-warning.
57825         (configure.ac): Update.
57826         (Makefile.am): Create unistd.h always. Substitute many new variables
57827         into it.
57828
57829 2007-02-18  Bruno Haible  <bruno@clisp.org>
57830
57831         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
57832         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
57833         HAVE_GETSUBOPT.
57834         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
57835         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
57836         * lib/getsubopt.h: Remove file.
57837         * modules/getsubopt (Files): Remove lib/getsubopt.h.
57838         (Depends-on): Add stdlib.
57839         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57840         (Includes): Use <stdlib.h> instead of getsubopt.h.
57841         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
57842         Set HAVE_GETSUBOPT.
57843         * lib/getsubopt.c: Don't include getsubopt.h.
57844
57845 2007-02-18  Bruno Haible  <bruno@clisp.org>
57846
57847         * modules/fchdir (Depends-on): Add dup2.
57848
57849 2007-02-18  Bruno Haible  <bruno@clisp.org>
57850
57851         * lib/stdlib_.h: Handle glibc's special invocation convention
57852         specially.
57853
57854 2007-02-18  Bruno Haible  <bruno@clisp.org>
57855
57856         * modules/stdlib-tests: New file.
57857         * tests/test-stdlib.c: New file.
57858
57859         * modules/mkstemp (Files): Remove lib/mkstemp.h.
57860         (Depends-on): Add stdlib.
57861         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57862         (Includes): Use <stdlib.h> instead of mkstemp.h.
57863         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
57864         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
57865         * lib/mkstemp.c: Don't include mkstemp.h.
57866         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
57867         * lib/stdlib--.h: Don't include mkstemp.h.
57868
57869         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
57870         (Depends-on): Add stdlib.
57871         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57872         (Includes): Use <stdlib.h> instead of mkdtemp.h.
57873         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
57874         HAVE_MKDTEMP.
57875         * lib/mkdtemp.c: Don't include mkdtemp.h.
57876         * lib/clean-temp.c: Don't include mkdtemp.h.
57877
57878         * modules/exit (Files): Remove lib/exit.h.
57879         (Depends-on): Add stdlib.
57880         (Makefile.am): Remove lib_SOURCES.
57881         (Include): Use <stdlib.h> instead of exit.h.
57882         * lib/argmatch.c: Don't include exit.h.
57883         * lib/execute.c: Likewise.
57884         * lib/pagealign_alloc.c: Likewise.
57885         * lib/pipe.c: Likewise.
57886         * lib/wait-process.c: Likewise.
57887         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
57888         * lib/exitfail.c: Likewise.
57889         * lib/savewd.c: Likewise.
57890         * lib/xsetenv.c: Likewise.
57891
57892         * modules/stdlib: New file.
57893         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
57894         and extra comments about mkstemp().
57895         * lib/exit.h: Remove file.
57896         * lib/mkdtemp.h: Remove file.
57897         * lib/mkstemp.h: Remove file.
57898         * m4/stdlib_h.m4: New file.
57899         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
57900
57901 2007-02-18  Bruno Haible  <bruno@clisp.org>
57902
57903         * modules/math-tests: New file.
57904         * tests/test-math.c: New file.
57905
57906         * modules/math: New file.
57907         * modules/mathl (Files): Remove lib/mathl.h.
57908         (Depends-on): Add math.
57909         (Makefile.am): Don't mention mathl.h.
57910         (Include): Use <math.h> instead of mathl.h.
57911         * lib/math_.h: New file.
57912         * lib/mathl.h: Remove file.
57913         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
57914         mathl.h.
57915         * lib/asinl.c: Likewise.
57916         * lib/atanl.c: Likewise.
57917         * lib/ceill.c: Likewise.
57918         * lib/cosl.c: Likewise.
57919         * lib/expl.c: Likewise.
57920         * lib/floorl.c: Likewise.
57921         * lib/frexpl.c: Likewise.
57922         * lib/ldexpl.c: Likewise.
57923         * lib/logl.c: Likewise.
57924         * lib/sincosl.c: Likewise.
57925         * lib/sinl.c: Likewise.
57926         * lib/sqrtl.c: Likewise.
57927         * lib/tanl.c: Likewise.
57928         * lib/trigl.c: Likewise.
57929         * m4/math_h.m4: New file.
57930         * MODULES.html.sh (Mathematics): Add math.
57931
57932 2007-02-17  Bruno Haible  <bruno@clisp.org>
57933
57934         * modules/wctype-tests: New file.
57935         * tests/test-wctype.c: New file.
57936
57937         * modules/wchar-tests: New file.
57938         * tests/test-wchar.c: New file.
57939
57940         * modules/unistd-tests: New file.
57941         * tests/test-unistd.c: New file.
57942
57943         * modules/time-tests: New file.
57944         * tests/test-time.c: New file.
57945
57946         * modules/sysexits-tests: New file.
57947         * tests/test-sysexits.c: New file.
57948
57949         * modules/sys_time-tests: New file.
57950         * tests/test-sys_time.c: New file.
57951
57952         * modules/sys_stat-tests: New file.
57953         * tests/test-sys_stat.c: New file.
57954
57955         * modules/sys_socket-tests: New file.
57956         * tests/test-sys_socket.c: New file.
57957
57958         * modules/sys_select-tests: New file.
57959         * tests/test-sys_select.c: New file.
57960
57961         * modules/string-tests: New file.
57962         * tests/test-string.c: New file.
57963
57964         * modules/stdbool-tests: New file.
57965         * tests/test-stdbool.c: New file.
57966
57967         * modules/netinet_in-tests: New file.
57968         * tests/test-netinet_in.c: New file.
57969
57970         * modules/inttypes-tests: New file.
57971         * tests/test-inttypes.c: New file.
57972
57973         * modules/fcntl-tests: New file.
57974         * tests/test-fcntl.c: New file.
57975
57976         * modules/byteswap-tests: New file.
57977         * tests/test-byteswap.c: New file.
57978
57979         * modules/arpa_inet-tests: New file.
57980         * tests/test-arpa_inet.c: New file.
57981
57982 2007-02-17  Bruno Haible  <bruno@clisp.org>
57983
57984         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
57985         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
57986         if the corresponding module is not enabled. Emit link warnings if
57987         the function is used nevertheless.
57988         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
57989         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
57990         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
57991         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
57992         * modules/inttypes (Depends-on): Add link-warning.
57993         (Makefile.am): Copy the contents of build-aux/link-warning.h into
57994         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
57995         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
57996         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
57997         * modules/imaxdiv (configure.ac): Likewise.
57998         * modules/strtoimax (configure.ac): Likewise.
57999         * modules/strtoumax (configure.ac): Likewise.
58000
58001 2007-02-17  Bruno Haible  <bruno@clisp.org>
58002
58003         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
58004         gl_STRING_MODULE_INDICATOR_DEFAULTS.
58005         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
58006         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
58007
58008 2007-02-17  Bruno Haible  <bruno@clisp.org>
58009
58010         * modules/link-warning: New file.
58011         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
58012         * lib/string_.h (GL_LINK_WARNING): Remove definition.
58013         * modules/string (Depends-on): Add link-warning.
58014         (Makefile.am): Copy the contents of build-aux/link-warning.h into
58015         string.h.
58016         * MODULES.html.sh (Support for building libraries and executables): Add
58017         link-warning.
58018
58019 2007-02-17  Bruno Haible  <bruno@clisp.org>
58020
58021         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
58022         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
58023         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
58024         long lines.
58025
58026 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
58027             Bruno Haible  <bruno@clisp.org>
58028
58029         * modules/tmpfile: New file.
58030         * lib/tmpfile.c: New file.
58031         * m4/tmpfile.m4: New file.
58032         * MODULES.html.sh (func_all_modules): New section "Input/output".
58033
58034 2007-02-15  Bruno Haible  <bruno@clisp.org>
58035
58036         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
58037         (supports_delete_on_close): New function.
58038         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
58039
58040 2007-02-14  Bruno Haible  <bruno@clisp.org>
58041
58042         * modules/mbspcasecmp-tests: New file.
58043         * tests/test-mbspcasecmp.sh: New file.
58044         * tests/test-mbspcasecmp.c: New file.
58045
58046         New module mbspcasecmp.
58047         * modules/mbspcasecmp: New file.
58048         * lib/mbspcasecmp.c: New file.
58049         * lib/string_.h (strncasecmp): Change warning message.
58050         (mbspcasecmp): New declaration.
58051         * m4/mbspcasecmp.m4: New file.
58052         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58053         GNULIB_MBSPCASECMP.
58054         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
58055         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
58056
58057 2007-02-14  Bruno Haible  <bruno@clisp.org>
58058
58059         * modules/mbsncasecmp-tests: New file.
58060         * tests/test-mbsncasecmp.sh: New file.
58061         * tests/test-mbsncasecmp.c: New file.
58062
58063         New module mbsncasecmp.
58064         * modules/mbsncasecmp: New file.
58065         * lib/mbsncasecmp.c: New file.
58066         * lib/string_.h (mbsncasecmp): New declaration.
58067         * m4/mbsncasecmp.m4: New file.
58068         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58069         GNULIB_MBSNCASECMP.
58070         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
58071         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
58072
58073 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
58074
58075         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
58076         Verify that it doesn't overlap with our flags.
58077         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
58078         do not have the desired effect in multibyte locales; instead, use
58079         mbscasecmp.
58080         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
58081         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
58082         we don't require GNU fnmatch ourselves (if our users require it, they
58083         should do so explicitly).
58084
58085         Fix regex code so it doesn't rely on strcasecmp.
58086         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
58087         Otherwise, include gnulib's langinfo.h.
58088         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
58089         undesirable behavior in non-C locales.  Instead, rely on localecharset.
58090         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
58091         * modules/regex (FILES): Remove m4/codeset.m4.
58092         (Depends-on): Add localcharset.  Remove strcase.
58093
58094 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58095
58096         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
58097         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
58098
58099 2007-02-13  Bruno Haible  <bruno@clisp.org>
58100
58101         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
58102         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58103
58104 2007-02-12  Bruno Haible  <bruno@clisp.org>
58105
58106         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
58107         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
58108         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
58109         time warning rather than a link error.
58110
58111 2007-02-12  Bruno Haible  <bruno@clisp.org>
58112
58113         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
58114         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58115         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58116
58117 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
58118
58119         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
58120         args, not 2.
58121
58122 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
58123
58124         New module 'time', so that apps can include <time.h> as per
58125         POSIX and GNU instead of separate include files like time_r.h
58126         and timegm.h.  This implementation tries out a simpler approach
58127         for replacing decls in standard include files (as compared to
58128         the string module), somewhat as an experiment.
58129
58130         * config/srclist.txt: Comment out mktime.c for now.
58131         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
58132         since it doesn't apply any more.  Use generic wording instead.
58133         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
58134         'time'.
58135         * lib/time_.h, m4/time_h.m4, modules/time: New files.
58136         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
58137         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
58138         Don't include <sys/types.h>; no longer needed since we assume C89.
58139         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
58140         * lib/strftime.c: Likewise.
58141         * lib/time_r.c: Likewise.
58142         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
58143         * lib/nanosleep.c: Include <time.h> first, to check interface.
58144         * lib/strptime.c: Likewise.
58145         * lib/time_r.c: Likewise.
58146         * lib/timegm.c: Likewise.
58147         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
58148         needed.
58149         * lib/timegm.c: Don't include timegm.h; no longer needed.
58150         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
58151         time.h now handles any problems in that area.
58152         (struct timespec, nanosleep): Remove; time.h now arranges for these.
58153         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
58154         that time.h defines struct timespec.
58155         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
58156         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
58157         handles that.
58158         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
58159         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
58160         needed.  Set REPLACE_LOCALTIME.
58161         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
58162         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
58163         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
58164         nanosleep; time_h.m4 now does that.  Don't require
58165         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
58166         module handles this now.
58167         * modules/getdate (Depends-on): Remove timespec.  Add time.
58168         * modules/nanosleep (Depends-on): Likewise.
58169         * modules/stat-time (Depends-on): Likewise.
58170         * modules/nanosleep (Include): Include time.h, not timespec.h.
58171         * modules/strptime (Files): Remove lib/strptime.h.
58172         (Depends-on): Add extensions, time.
58173         (Include): Include time.h, not strptime.h.
58174         * modules/time_r (Files): Remove lib/time_r.h.
58175         (Depends-on): Add time.
58176         (Include): Include time.h, not time_r.h.
58177         * modules/timegm: Likewise.
58178         * modules/timespec (Description): Now does timespec-related decls
58179         of our own, instead of struct timespec itself.
58180         (Depends-on): Add time; remove extensions.
58181         (Maintainer): Add self.
58182         * modules/utimecmp (Depends-on): Add time; remove timespec.
58183         * modules/utimens (Depends-on): Likewise.
58184         * modules/xnanosleep (Depends-on): Likewise.
58185
58186 2007-02-11  Bruno Haible  <bruno@clisp.org>
58187
58188         * lib/c-strstr.c: Include allocsa.h.
58189         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
58190         * lib/c-strcasestr.c: Include allocsa.h.
58191         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
58192         * lib/strcasestr.c: Include allocsa.h.
58193         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
58194         * lib/mbsstr.c: Include allocsa.h.
58195         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
58196         allocsa/freesa instead of malloc/free.
58197         * lib/mbscasestr.c: Include allocsa.h.
58198         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
58199         allocsa/freesa instead of malloc/free.
58200         * modules/c-strstr (Depends-on): Add allocsa.
58201         * modules/c-strcasestr (Depends-on): Likewise.
58202         * modules/strcasestr (Depends-on): Likewise.
58203         * modules/mbsstr (Depends-on): Likewise.
58204         * modules/mbscasestr (Depends-on): Likewise.
58205
58206 2007-02-11  Bruno Haible  <bruno@clisp.org>
58207
58208         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
58209
58210         * modules/mbsspn-tests: New file.
58211         * tests/test-mbsspn.sh: New file.
58212         * tests/test-mbsspn.c: New file.
58213
58214 2007-02-11  Bruno Haible  <bruno@clisp.org>
58215
58216         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
58217
58218         * modules/mbspbrk-tests: New file.
58219         * tests/test-mbspbrk.sh: New file.
58220         * tests/test-mbspbrk.c: New file.
58221
58222 2007-02-11  Bruno Haible  <bruno@clisp.org>
58223
58224         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
58225         unneeded cast.
58226
58227         * modules/mbscspn-tests: New file.
58228         * tests/test-mbscspn.sh: New file.
58229         * tests/test-mbscspn.c: New file.
58230
58231 2007-02-11  Bruno Haible  <bruno@clisp.org>
58232
58233         * modules/mbscasecmp-tests: New file.
58234         * tests/test-mbscasecmp.sh: New file.
58235         * tests/test-mbscasecmp.c: New file.
58236
58237 2007-02-11  Bruno Haible  <bruno@clisp.org>
58238
58239         Ensure O(n) worst-case complexity of mbscasestr.
58240         * lib/mbscasestr.c: Include stdbool.h.
58241         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
58242         functions.
58243         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
58244         the bookkeeping indicates that it's worth it.
58245         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
58246
58247         * modules/mbscasestr-tests: New file.
58248         * tests/test-mbscasestr1.c: New file.
58249         * tests/test-mbscasestr2.sh: New file.
58250         * tests/test-mbscasestr2.c: New file.
58251         * tests/test-mbscasestr3.sh: New file.
58252         * tests/test-mbscasestr3.c: New file.
58253         * tests/test-mbscasestr4.sh: New file.
58254         * tests/test-mbscasestr4.c: New file.
58255         * m4/locale-tr.m4: New file.
58256
58257 2007-02-11  Bruno Haible  <bruno@clisp.org>
58258
58259         Ensure O(n) worst-case complexity of mbsstr.
58260         * lib/mbsstr.c: Include stdbool.h.
58261         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
58262         functions.
58263         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
58264         bookkeeping indicates that it's worth it.
58265         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
58266
58267         * modules/mbsstr-tests: New file.
58268         * tests/test-mbsstr1.c: New file.
58269         * tests/test-mbsstr2.sh: New file.
58270         * tests/test-mbsstr2.c: New file.
58271         * tests/test-mbsstr3.sh: New file.
58272         * tests/test-mbsstr3.c: New file.
58273         * m4/locale-fr.m4: New file.
58274
58275 2007-02-11  Bruno Haible  <bruno@clisp.org>
58276
58277         * lib/mbsrchr.c (mbsrchr): Fix bug.
58278
58279         * modules/mbsrchr-tests: New file.
58280         * tests/test-mbsrchr.sh: New file.
58281         * tests/test-mbsrchr.c: New file.
58282
58283 2007-02-11  Bruno Haible  <bruno@clisp.org>
58284
58285         * lib/mbschr.c (mbschr): Fix bug.
58286
58287         * modules/mbschr-tests: New file.
58288         * tests/test-mbschr.sh: New file.
58289         * tests/test-mbschr.c: New file.
58290         * m4/locale-zh.m4: New file.
58291
58292 2007-02-11  Bruno Haible  <bruno@clisp.org>
58293
58294         Support for copying multibyte string iterators.
58295         * lib/mbiter.h: Include <string.h>.
58296         (mbiter_multi_copy): New function.
58297         (mbi_copy): New macro.
58298         * lib/mbuiter.h: Include <string.h>.
58299         (mbuiter_multi_copy): New function.
58300         (mbui_copy): New macro.
58301
58302 2007-02-11  Bruno Haible  <bruno@clisp.org>
58303
58304         New module mbslen.
58305         * modules/mbslen: New file.
58306         * lib/mbslen.c: New file.
58307         * lib/string_.h (mbslen): New declaration.
58308         * m4/mbslen.m4: New file.
58309         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58310         GNULIB_MBSLEN.
58311         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
58312         * MODULES.html.sh (Internationalization functions): Add mbslen.
58313
58314 2007-02-11  Bruno Haible  <bruno@clisp.org>
58315
58316         Ensure O(n) worst-case complexity of strcasestr substitute.
58317         * lib/strcasestr.c: Include stdbool.h.
58318         (knuth_morris_pratt): New function.
58319         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
58320         bookkeeping indicates that it's worth it.
58321         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
58322
58323         * modules/strcasestr-tests: New file.
58324         * tests/test-strcasestr.c: New file.
58325
58326 2007-02-11  Bruno Haible  <bruno@clisp.org>
58327
58328         Ensure O(n) worst-case complexity of c_strcasestr.
58329         * lib/c-strcasestr.c: Include stdbool.h, string.h.
58330         (knuth_morris_pratt): New function.
58331         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
58332         the bookkeeping indicates that it's worth it.
58333         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
58334
58335         * modules/c-strcasestr-tests: New file.
58336         * tests/test-c-strcasestr.c: New file.
58337
58338 2007-02-11  Bruno Haible  <bruno@clisp.org>
58339
58340         Ensure O(n) worst-case complexity of c_strstr.
58341         * lib/c-strstr.c: Include stdbool.h, string.h.
58342         (knuth_morris_pratt): New function.
58343         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
58344         bookkeeping indicates that it's worth it.
58345         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
58346
58347         * lib/c-strstr.c: Complete rewrite for maintainability.
58348
58349         * modules/c-strstr-tests: New file.
58350         * tests/test-c-strstr.c: New file.
58351
58352 2007-02-11  Bruno Haible  <bruno@clisp.org>
58353
58354         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
58355         5.2.1 and earlier, whereby \055 was treated just like the range
58356         delimiter '-'.
58357         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58358
58359 2007-02-08  Bruno Haible  <bruno@clisp.org>
58360
58361         * modules/regex (Depends-on): Add stdbool.
58362         Reported by Dalibor Topic <robilad@kaffe.org>.
58363
58364 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
58365
58366         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
58367         Prefer returning from main to exiting from it.
58368         Remove unnecessary parens after sizeof.
58369
58370 2007-02-05  Bruno Haible  <bruno@clisp.org>
58371
58372         New module mbssep.
58373         * modules/mbssep: New file.
58374         * lib/mbssep.c: New file.
58375         * lib/string_.h (strsep): Add a conditional link warning.
58376         (mbssep): New declaration.
58377         * m4/mbssep.m4: New file.
58378         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58379         GNULIB_MBSSEP.
58380         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
58381         * MODULES.html.sh (Internationalization functions): Add mbssep.
58382
58383 2007-02-05  Bruno Haible  <bruno@clisp.org>
58384
58385         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
58386         Optimize search in case of 1 delimiter.
58387
58388 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
58389
58390         * lib/acl.h: Include sys/types.h before sys/acl.h.
58391
58392 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
58393
58394         Merge upstream fix for glibc bugzilla #3957:
58395
58396         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
58397
58398         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
58399         bit for RE_HAT_LISTS_NOT_NEWLINE.
58400         (build_charclass_op): Remove bogus comment.
58401
58402 2007-02-05  Simon Josefsson  <simon@josefsson.org>
58403
58404         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
58405
58406 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
58407
58408         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
58409         * lib/memmem.c [!defined _LIBC]: Include config.h.
58410
58411 2007-02-04  Bruno Haible  <bruno@clisp.org>
58412
58413         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
58414         warning message.
58415
58416 2007-02-04  Bruno Haible  <bruno@clisp.org>
58417
58418         New module mbstok_r.
58419         * modules/mbstok_r: New file.
58420         * lib/mbstok_r.c: New file.
58421         * lib/string_.h (strtok_r): Change argument names to match the
58422         comments. Add a conditional link warning.
58423         (mbstok_r): New declaration.
58424         * m4/mbstok_r.m4: New file.
58425         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58426         GNULIB_MBSTOK_R.
58427         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
58428         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
58429
58430 2007-02-04  Bruno Haible  <bruno@clisp.org>
58431
58432         New module mbsspn.
58433         * modules/mbsspn: New file.
58434         * lib/mbsspn.c: New file.
58435         * lib/string_.h (strspn): Add a conditional link warning.
58436         (mbsspn): New declaration.
58437         * m4/mbsspn.m4: New file.
58438         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58439         GNULIB_MBSSPN.
58440         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
58441         * MODULES.html.sh (Internationalization functions): Add mbsspn.
58442
58443 2007-02-04  Bruno Haible  <bruno@clisp.org>
58444
58445         New module mbspbrk.
58446         * modules/mbspbrk: New file.
58447         * lib/mbspbrk.c: New file.
58448         * lib/string_.h (strpbrk): Add a conditional link warning.
58449         (mbspbrk): New declaration.
58450         * m4/mbspbrk.m4: New file.
58451         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58452         GNULIB_MBSPBRK.
58453         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
58454         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
58455
58456 2007-02-04  Bruno Haible  <bruno@clisp.org>
58457
58458         New module mbscspn.
58459         * modules/mbscspn: New file.
58460         * lib/mbscspn.c: New file.
58461         * lib/string_.h (strcspn): Add a conditional link warning.
58462         (mbscspn): New declaration.
58463         * m4/mbscspn.m4: New file.
58464         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58465         GNULIB_MBSCSPN.
58466         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
58467         * MODULES.html.sh (Internationalization functions): Add mbscspn.
58468
58469 2007-02-04  Bruno Haible  <bruno@clisp.org>
58470
58471         New module mbscasestr, reduced goal of strcasestr.
58472         * modules/mbscasestr: New file.
58473         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
58474         (mbscasestr): Renamed from strcasestr.
58475         * lib/strcasestr.c: Don't include mbuiter.h.
58476         (strcasestr): Remove support for multibyte locales.
58477         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
58478         Change the conditional link warning.
58479         (mbscasestr): New declaration.
58480         * m4/mbscasestr.m4: New file.
58481         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
58482         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
58483         REPLACE_STRCASESTR.
58484         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
58485         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58486         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
58487         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
58488         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
58489         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
58490         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
58491         (Depends-on): Remove mbuiter.
58492         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
58493
58494 2007-02-04  Bruno Haible  <bruno@clisp.org>
58495
58496         Simplify handling of strncasecmp.
58497         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
58498         the conditional link warning.
58499         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58500         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
58501         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
58502         * modules/strcase (configure.ac): Don't invoke
58503         gl_STRING_MODULE_INDICATOR.
58504         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
58505
58506 2007-02-04  Bruno Haible  <bruno@clisp.org>
58507
58508         New module mbscasecmp, reduced goal of strcasecmp.
58509         * modules/mbscasecmp: New file.
58510         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
58511         (mbscasecmp): Renamed from strcasecmp.
58512         * lib/strcasecmp.c: Don't include mbuiter.h.
58513         (strcasecmp): Remove support for multibyte locales.
58514         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
58515         Change the conditional link warning.
58516         (mbscasecmp): New declaration.
58517         * m4/mbscasecmp.m4: New file.
58518         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
58519         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
58520         REPLACE_STRCASECMP.
58521         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
58522         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58523         GNULIB_MBSCASECMP.
58524         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
58525         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
58526         * modules/strcase (Files): Remove m4/mbrtowc.m4.
58527         (Depends-on): Remove mbuiter.
58528         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
58529
58530 2007-02-04  Bruno Haible  <bruno@clisp.org>
58531
58532         New module mbsstr. Remove module strstr.
58533         * modules/mbsstr: New file.
58534         * modules/strstr: Remove file.
58535         * lib/mbsstr.c: Renamed from lib/strstr.c.
58536         (mbsstr): Renamed from strstr.
58537         * lib/string_.h (strstr): Remove declaration. Change the conditional
58538         link warning.
58539         (mbsstr): New declaration.
58540         * m4/mbsstr.m4: New file.
58541         * m4/strstr.m4: Remove file.
58542         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
58543         REPLACE_STRSTR.
58544         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
58545         Don't initialize GNULIB_STRSTR.
58546         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
58547         substitute GNULIB_STRSTR and REPLACE_STRSTR.
58548         * MODULES.html.sh (Internationalization functions): Add mbsstr.
58549         (Support for systems lacking ANSI C 89): Remove strstr.
58550
58551 2007-02-04  Bruno Haible  <bruno@clisp.org>
58552
58553         New module mbsrchr.
58554         * modules/mbsrchr: New file.
58555         * lib/mbsrchr.c: New file.
58556         * lib/string_.h (strrchr): Add a conditional link warning.
58557         (mbsrchr): New declaration.
58558         * m4/mbsrchr.m4: New file.
58559         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58560         GNULIB_MBSRCHR.
58561         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
58562         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
58563
58564 2007-02-04  Bruno Haible  <bruno@clisp.org>
58565
58566         New module mbschr.
58567         * modules/mbschr: New file.
58568         * lib/mbschr.c: New file.
58569         * lib/string_.h (strchr): Add a conditional link warning.
58570         (mbschr): New declaration.
58571         * m4/mbschr.m4: New file.
58572         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58573         GNULIB_MBSCHR.
58574         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
58575         * MODULES.html.sh (Internationalization functions): Add mbschr.
58576
58577 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
58578
58579         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
58580
58581         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
58582
58583 2007-02-04  Bruno Haible  <bruno@clisp.org>
58584
58585         New module description section 'configure.ac-early'.
58586         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
58587         (func_get_autoconf_early_snippet): New function.
58588         (func_import, func_create_testdir): Use it. Remove special cases for
58589         modules 'extensions' and 'lock'.
58590         * modules/extensions (configure.ac-early): Require
58591         gl_USE_SYSTEM_EXTENSIONS.
58592         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
58593
58594 2007-02-04  Bruno Haible  <bruno@clisp.org>
58595
58596         Make use of gcj-4.3's -fsource and -ftarget option.
58597         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
58598         and if so try the options -fsource and -ftarget.
58599         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
58600         source_version, ftarget_option, target_version arguments.
58601         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
58602         (is_envjavac_oldgcj_14_14_usable): Renamed from
58603         is_envjavac_gcj_14_14_usable.
58604         (is_envjavac_oldgcj_14_13_usable): Renamed from
58605         is_envjavac_gcj_14_13_usable.
58606         (is_gcj_present): Update.
58607         (is_gcj_43, is_gcj43_usable): New functions.
58608         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
58609         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
58610         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
58611         try the options -fsource and -ftarget.
58612
58613 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58614
58615         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
58616         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
58617         larger value.
58618
58619 2007-02-03  Jim Meyering  <jim@meyering.net>
58620
58621         Give tools a better chance to allocate space for very large buffers.
58622         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
58623
58624         Make pwd and readlink work also when run with an unreadable parent dir
58625         on systems with openat support.
58626         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
58627         provided getcwd function, even when we have openat support.
58628         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
58629
58630 2007-02-02  Bruno Haible  <bruno@clisp.org>
58631
58632         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
58633         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
58634         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
58635         portability problems if one of these functions is only used on specific
58636         platforms.
58637         Reported by Paul Eggert.
58638
58639 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
58640
58641         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
58642         is causing more trouble than it's curing.
58643         * lib/regex_internal.h (__mempcpy): Remove.
58644         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
58645         (and make the code a tad smaller to boot).
58646         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
58647
58648 2007-02-02  Jim Meyering  <jim@meyering.net>
58649
58650         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
58651         section, not in the Makefile.am: one.
58652
58653 2007-02-02  Eric Blake  <ebb9@byu.net>
58654
58655         * lib/strchrnul.c: Always include config.h first.
58656
58657         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
58658         gnulib strstr is not necessary here.
58659
58660 2007-02-02  Simon Josefsson  <simon@josefsson.org>
58661
58662         * m4/socklen.m4: Fix typo.
58663
58664 2007-02-02  Eric Blake  <ebb9@byu.net>
58665
58666         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
58667         * modules/netinet_in (Makefile.am): Likewise.
58668
58669 2007-02-01  Bruno Haible  <bruno@clisp.org>
58670
58671         * lib/string_.h (GL_LINK_WARNING): New macro.
58672         (strcasecmp, strstr, strcasestr): If provided by the system,
58673         conditionally define as a macro that leads to a warning instead of to
58674         an error.
58675         (strncasecmp): Conditionally define as a macro that leads to a warning.
58676
58677 2007-02-01  Karl Berry  <karl@gnu.org>
58678
58679         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
58680
58681 2007-02-01  Bruno Haible  <bruno@clisp.org>
58682
58683         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
58684         renamings.
58685
58686 2007-02-01  Eric Blake  <ebb9@byu.net>
58687
58688         * modules/regex (Depends-on): Revert dependence on mempcpy.
58689         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
58690         module's definition of mempcpy.
58691         Reported by Paul Eggert.
58692
58693 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
58694
58695         * lib/string_.h: If the gnulib module XYZ is not present, undefine
58696         the symbol XYZ before redefining it.  This fixes a problem with
58697         programs that don't use XYZ, when compiled on systems that define
58698         XYZ to something else.
58699
58700 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
58701
58702         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
58703         occurs when "mkdir -m foo" creates a setgid directory that is (1)
58704         writeable to group or other and (2) is intended to have a special
58705         mode bit that is set or cleared.  In such a case, the directory
58706         should be neither group- nor other-writeable until the special
58707         mode bits are right.
58708
58709 2007-01-31  Eric Blake  <ebb9@byu.net>
58710
58711         * modules/mountlist (Depends-on): Add strstr.
58712
58713         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
58714         bug.
58715         * modules/string (Makefile.am): Remove redundant replacement.
58716         * modules/regex (Depends-on): Add mempcpy.
58717
58718 2007-01-31  Bruno Haible  <bruno@clisp.org>
58719
58720         New module description field 'Link'.
58721         * gnulib-tool (func_usage): Document --extract-link-directive.
58722         (sed_extract_prog): Recognize 'Link' directive.
58723         (func_get_link_directive): New function.
58724         (func_import): Show summary of link directives.
58725         Handle --extract-link-directive option.
58726         * modules/acl (Link): New section.
58727         * modules/clock-time (Link): New section.
58728         * modules/euidaccess (Link): New section.
58729         * modules/gettext (Link): New section.
58730         * modules/iconv (Link): New section.
58731         * modules/lock (Link): New section.
58732         * modules/nanosleep (Link): New section.
58733         * modules/readline (Link): New section.
58734
58735 2007-01-27  Bruno Haible  <bruno@clisp.org>
58736
58737         Enforce the use of gnulib modules for unportable <string.h> functions.
58738         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
58739         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
58740         (gl_HEADER_STRING_H_BODY): Require it.
58741         * lib/string_.h: If the gnulib module XYZ is not present, redefine
58742         the symbol XYZ to one that gives a link error.
58743         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
58744         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
58745         * modules/mempcpy (configure.ac): Likewise.
58746         * modules/memrchr (configure.ac): Likewise.
58747         * modules/stpcpy (configure.ac): Likewise.
58748         * modules/stpncpy (configure.ac): Likewise.
58749         * modules/strcase (configure.ac): Likewise.
58750         * modules/strcasestr (configure.ac): Likewise.
58751         * modules/strchrnul (configure.ac): Likewise.
58752         * modules/strdup (configure.ac): Likewise.
58753         * modules/strndup (configure.ac): Likewise.
58754         * modules/strnlen (configure.ac): Likewise.
58755         * modules/strpbrk (configure.ac): Likewise.
58756         * modules/strsep (configure.ac): Likewise.
58757         * modules/strstr (configure.ac): Likewise.
58758         * modules/strtok_r (configure.ac): Likewise.
58759
58760 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
58761
58762         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
58763
58764 2007-01-30  Jim Meyering  <jim@meyering.net>
58765
58766         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
58767
58768 2007-01-29  Bruno Haible  <bruno@clisp.org>
58769
58770         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
58771         * lib/execute.c: Likewise.
58772         * lib/pipe.c: Likewise.
58773         * lib/printf-args.h: Likewise.
58774         * lib/printf-args.c: Likewise.
58775         * lib/printf-parse.c: Likewise.
58776         * lib/vasnprintf.c: Likewise.
58777
58778 2007-01-29  Eric Blake  <ebb9@byu.net>
58779
58780         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
58781         declaration.
58782
58783 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
58784
58785         * lib/strptime.h (strptime): Use 'restrict' for args where
58786         POSIX requires this.
58787         * lib/strptime.c (strptime): Likewise.
58788         Change license notice from LGPL to GPL, since gnulib-tool will
58789         change this as needed.
58790         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
58791         defined.
58792         Include "strptime.h" first, to check interface.
58793         Do not #undef _LIBC and _NL_CURRENT.
58794         Do not include <stdlib.h>; no longer needed.
58795         Include "time_r.h" and declare ptime_locale_status
58796         only if _LIBC is not defined.
58797         (__P): Remove unused macro.
58798         (match_string): Bring back glibc version, but use it only if _LIBC
58799         is defined.
58800         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
58801         Remove unnecessary assertion and abort() call.
58802         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
58803         * m4/strptime.m4: Fix serial number comment.
58804         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
58805         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
58806         (Depends-on): Add time_r.
58807
58808 2007-01-29  Bruno Haible  <bruno@clisp.org>
58809
58810         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58811         strptime.
58812         * modules/strptime (Depends-on): Add stdbool.
58813         * lib/strptime.h: Include <time.h> always. Add comments.
58814
58815 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58816
58817         * modules/strptime: New file.
58818         * lib/strptime.h: New file.
58819         * lib/strptime.c: New file.
58820         * m4/strptime.m4: New file.
58821
58822 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58823
58824         * MODULES.html.sh: New module mpsort.
58825         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
58826
58827         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
58828         a circularity problem with HP-UX ia64 reported by Bob Proulx in
58829         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
58830         All uses changed.
58831         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
58832         All uses changed.
58833         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
58834         to _Restrict_.
58835         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
58836         the parameter matches the prototype.
58837
58838 2007-01-28  Jim Meyering  <jim@meyering.net>
58839
58840         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
58841         sys/time.h here, reverting that part of the previous patch:
58842         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
58843
58844 2007-01-28  Bruno Haible  <bruno@clisp.org>
58845
58846         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
58847         value of $(SYS_TIME_H).
58848         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
58849         remove it conditionally, too. [added by Jim Meyering]
58850         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
58851         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
58852         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
58853         GETTIMEOFDAY_REPLACEMENT to 1.
58854
58855 2007-01-28  Bruno Haible  <bruno@clisp.org>
58856
58857         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
58858         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
58859         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
58860         Set UNISTD_H instead of UNISTD_H2.
58861         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
58862
58863 2007-01-28  Bruno Haible  <bruno@clisp.org>
58864
58865         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
58866         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
58867
58868 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58869
58870         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
58871         (func_create_testdir): Ensure C locale for `grep' and `tr'
58872         character ranges.
58873         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
58874         ACLOCAL_AMFLAGS parsing state machine.
58875
58876 2007-01-27  Bruno Haible  <bruno@clisp.org>
58877
58878         * modules/unistr/base: Update.
58879
58880 2007-01-27  Bruno Haible  <bruno@clisp.org>
58881
58882         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
58883         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
58884         * modules/unistr/u32-mbtouc-unsafe: Renamed from
58885         modules/unistr/u32-mbtouc.
58886         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
58887         * lib/unistr.h: Update.
58888         * lib/linebreak.c: Update.
58889         * modules/unistr/u32-mbtouc: Renamed from
58890         modules/unistr/u32-mbtouc-safe.
58891         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
58892         * lib/unistr.h: Update.
58893         * lib/unistr/u32-to-u8.c: Update.
58894         * lib/unistr/u32-to-u16.c: Update.
58895
58896 2007-01-27  Bruno Haible  <bruno@clisp.org>
58897
58898         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
58899         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
58900         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
58901         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
58902         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
58903         * modules/unistr/u16-mbtouc-unsafe: Renamed from
58904         modules/unistr/u16-mbtouc.
58905         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
58906         * lib/unistr.h: Update.
58907         * lib/linebreak.c: Update.
58908         * modules/linebreak: Update.
58909         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
58910         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
58911         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
58912         * modules/unistr/u16-mbtouc: Renamed from
58913         modules/unistr/u16-mbtouc-safe.
58914         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
58915         * lib/unistr.h: Update.
58916         * lib/unistr/u16-to-u8.c: Update.
58917         * modules/unistr/u16-to-u8: Update.
58918         * lib/unistr/u16-to-u32.c: Update.
58919         * modules/unistr/u16-to-u32: Update.
58920
58921 2007-01-27  Bruno Haible  <bruno@clisp.org>
58922
58923         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
58924         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
58925         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
58926         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
58927         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
58928         * modules/unistr/u8-mbtouc-unsafe: Renamed from
58929         modules/unistr/u8-mbtouc.
58930         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
58931         * lib/unistr.h: Update.
58932         * lib/striconveh.c: Update.
58933         * modules/striconveh: Update.
58934         * lib/linebreak.c: Update.
58935         * modules/linebreak: Update.
58936         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
58937         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
58938         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
58939         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
58940         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
58941         * lib/unistr.h: Update.
58942         * lib/striconveh.c: Update.
58943         * modules/striconveh: Update.
58944         * lib/unistr/u8-to-u16.c: Update.
58945         * modules/unistr/u8-to-u16: Update.
58946         * lib/unistr/u8-to-u32.c: Update.
58947         * modules/unistr/u8-to-u32: Update.
58948
58949 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58950
58951         Sync from Libtool.
58952         * lib/argz.c: Do not include strings.h nor memory.h, include
58953         string.h unconditionally.  Patch by Simon Josefsson.
58954
58955 2007-01-27  Bruno Haible  <bruno@clisp.org>
58956
58957         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
58958         from gl_HEADER_STRING_H_BODY.
58959         (gl_HEADER_STRING_H_BODY): Require it.
58960         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
58961         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
58962         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
58963         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
58964         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58965         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
58966         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58967         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
58968         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
58969         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58970         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
58971         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
58972         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
58973         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58974         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58975
58976 2007-01-27  Bruno Haible  <bruno@clisp.org>
58977
58978         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
58979         check_PROGRAMS into noinst_PROGRAMS.
58980         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
58981         check_PROGRAMS in this case.
58982         (func_import): Set for_test to false.
58983         (func_create_testdir): Set for_test to true.
58984
58985 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
58986             Bruno Haible  <bruno@clisp.org>
58987
58988         * modules/strcasestr (Files): Remove lib/strcasestr.h.
58989         (Depends-on): Add string.
58990         (Includes): Use <string.h> instead of strcasestr.h.
58991         * modules/string (Makefile.am): Also substitute the value of
58992         REPLACE_STRCASESTR.
58993         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
58994         assume strcasestr is declared in <string.h> not <strings.h>. Also
58995         set REPLACE_STRCASESTR.
58996         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
58997         REPLACE_STRCASESTR.
58998         * lib/strcasestr.h: Remove file.
58999         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
59000         * lib/string_.h (strcasestr): New declaration.
59001
59002 2007-01-27  Bruno Haible  <bruno@clisp.org>
59003
59004         * lib/string_.h: Use 'extern'.
59005
59006 2007-01-27  Jim Meyering  <jim@meyering.net>
59007
59008         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
59009         of set-but-not-used local, "q".
59010
59011         * lib/mempcpy.c: Include <config.h> before <string.h>.
59012         This fixes a compilation error on HP-UX, due to the system's
59013         "restrict"-using mempcpy prototype.
59014
59015 2007-01-26  Bruno Haible  <bruno@clisp.org>
59016
59017         Small optimization.
59018         * lib/javacomp.c: Include c-strstr.h.
59019          (is_envjavac_gcj): Use c_strstr instead of strstr.
59020         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
59021
59022 2007-01-26  Bruno Haible  <bruno@clisp.org>
59023
59024         * MODULES.html.sh (Unicode string functions): Add the new modules.
59025
59026         * modules/uniconv/u32-strconv-to-locale: New file.
59027         * lib/uniconv/u32-strconv-to-locale.c: New file.
59028
59029         * modules/uniconv/u16-strconv-to-locale: New file.
59030         * lib/uniconv/u16-strconv-to-locale.c: New file.
59031
59032         * modules/uniconv/u8-strconv-to-locale: New file.
59033         * lib/uniconv/u8-strconv-to-locale.c: New file.
59034
59035         * modules/uniconv/u32-strconv-from-locale: New file.
59036         * lib/uniconv/u32-strconv-from-locale.c: New file.
59037
59038         * modules/uniconv/u16-strconv-from-locale: New file.
59039         * lib/uniconv/u16-strconv-from-locale.c: New file.
59040
59041         * modules/uniconv/u8-strconv-from-locale: New file.
59042         * lib/uniconv/u8-strconv-from-locale.c: New file.
59043
59044         * modules/uniconv/u32-strconv-to-enc: New file.
59045         * lib/uniconv/u32-strconv-to-enc.c: New file.
59046         * modules/uniconv/u32-strconv-to-enc-tests: New file.
59047         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
59048
59049         * modules/uniconv/u16-strconv-to-enc: New file.
59050         * lib/uniconv/u16-strconv-to-enc.c: New file.
59051         * lib/uniconv/u-strconv-to-enc.h: New file.
59052         * modules/uniconv/u16-strconv-to-enc-tests: New file.
59053         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
59054
59055         * modules/uniconv/u8-strconv-to-enc: New file.
59056         * lib/uniconv/u8-strconv-to-enc.c: New file.
59057         * modules/uniconv/u8-strconv-to-enc-tests: New file.
59058         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
59059
59060         * modules/uniconv/u32-strconv-from-enc: New file.
59061         * lib/uniconv/u32-strconv-from-enc.c: New file.
59062         * modules/uniconv/u32-strconv-from-enc-tests: New file.
59063         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
59064
59065         * modules/uniconv/u16-strconv-from-enc: New file.
59066         * lib/uniconv/u16-strconv-from-enc.c: New file.
59067         * modules/uniconv/u16-strconv-from-enc-tests: New file.
59068         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
59069
59070         * modules/uniconv/u8-strconv-from-enc: New file.
59071         * lib/uniconv/u8-strconv-from-enc.c: New file.
59072         * lib/uniconv/u-strconv-from-enc.h: New file.
59073         * modules/uniconv/u8-strconv-from-enc-tests: New file.
59074         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
59075
59076         * modules/uniconv/u32-conv-from-enc: New file.
59077         * lib/uniconv/u32-conv-from-enc.c: New file.
59078         * modules/uniconv/u32-conv-from-enc-tests: New file.
59079         * tests/uniconv/test-u32-conv-from-enc.c: New file.
59080
59081         * modules/uniconv/u16-conv-from-enc: New file.
59082         * lib/uniconv/u16-conv-from-enc.c: New file.
59083         * lib/uniconv/u-conv-from-enc.h: New file.
59084         * modules/uniconv/u16-conv-from-enc-tests: New file.
59085         * tests/uniconv/test-u16-conv-from-enc.c: New file.
59086
59087         * modules/uniconv/u8-conv-from-enc: New file.
59088         * lib/uniconv/u8-conv-from-enc.c: New file.
59089         * modules/uniconv/u8-conv-from-enc-tests: New file.
59090         * tests/uniconv/test-u8-conv-from-enc.c: New file.
59091
59092         * modules/uniconv/base: New file.
59093         * lib/uniconv.h: New file.
59094
59095 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
59096
59097         * doc/gnulib-tool.texi (Initial import): Update to match current
59098         behavior with strdup module.
59099         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
59100         * lib/memmem.h: Remove; all uses removed.  This is now done
59101         by <string.h>.
59102         * lib/mempcpy.h: Likewise.
59103         * lib/memrchr.h: Likewise.
59104         * lib/stpcpy.h: Likewise.
59105         * lib/stpncpy.h: Likewise.
59106         * lib/strcase.h: Likewise.
59107         * lib/strchrnul.h: Likewise.
59108         * lib/strdup.h: Likewise.
59109         * lib/strndup.h: Likewise.
59110         * lib/strnlen.h: Likewise.
59111         * lib/strpbrk.h: Likewise.
59112         * lib/strsep.h: Likewise.
59113         * lib/strstr.h: Likewise.
59114         * lib/strtok_r.h: Likewise.
59115         * lib/string_.h: New file.
59116         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
59117         Rely on <string.h> instead.
59118         * lib/canon-host.c: Likewise.
59119         * lib/chdir-long.c: Likewise.
59120         * lib/concatpath.c: Likewise.
59121         * lib/exclude.c: Likewise.
59122         * lib/fchdir.c: Likewise.
59123         * lib/getaddrinfo.c: Likewise.
59124         * lib/getcwd.c: Likewise.
59125         * lib/getsubopt.c: Likewise.
59126         * lib/glob.c: Likewise.
59127         * lib/hard-locale.c: Likewise.
59128         * lib/iconvme.c: Likewise.
59129         * lib/javacomp.c: Likewise.
59130         * lib/mempcpy.c: Likewise.
59131         * lib/memrchr.c: Likewise.
59132         * lib/regex_internal.h: Likewise.
59133         * lib/stpncpy.c: Likewise.
59134         * lib/strcasecmp.c: Likewise.
59135         * lib/strchrnul.c: Likewise.
59136         * lib/strdup.c: Likewise.
59137         * lib/striconv.c: Likewise.
59138         * lib/striconveh.c: Likewise.
59139         * lib/striconveha.c: Likewise.
59140         * lib/strncasecmp.c: Likewise.
59141         * lib/strndup.c: Likewise.
59142         * lib/strnlen.c: Likewise.
59143         * lib/strsep.c: Likewise.
59144         * lib/strstr.c: Likewise.
59145         * lib/strtok_r.c: Likewise.
59146         * lib/userspec.c: Likewise.
59147         * lib/w32spawn.h: Likewise.
59148         * lib/xstrndup.c: Likewise.
59149         * lib/mountlist.c (strstr): Remove decl.
59150         * m4/string_h.m4: New file.
59151         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
59152         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
59153         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
59154         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
59155         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
59156         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
59157         Set REPLACE_STRCASECMP if necessary.
59158         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
59159         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
59160         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
59161         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
59162         HAVE_DECL_STRDUP if necessary.
59163         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
59164         since gl_FUNC_STRNDUP does that now.
59165         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
59166         Check for decl here...
59167         (gl_PREREQ_STRNLEN): ... not here.
59168         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
59169         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
59170         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
59171         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
59172         necessary.
59173         * modules/string: New file.
59174         * modules/memmem (Files): Remove special-purpose include file.
59175         (Depends-on): Add string.
59176         (Include): Include <string.h>, not the removed file.
59177         * modules/mempcpy: Likewise.
59178         * modules/memrchr: Likewise.
59179         * modules/stpcpy: Likewise.
59180         * modules/stpncpy: Likewise.
59181         * modules/strcase: Likewise.
59182         * modules/strchrnul: Likewise.
59183         * modules/strdup: Likewise.
59184         * modules/strndup: Likewise.
59185         * modules/strnlen: Likewise.
59186         * modules/strpbrk: Likewise.
59187         * modules/strsep: Likewise.
59188         * modules/strstr: Likewise.
59189         * modules/strtok_r: Likewise.
59190         * tests/test-dirname.c: Don't include "strdup.h", since
59191         <string.h> now suffices.
59192         * tests/test-memmem.c: Don't include "memmem.h", since
59193         <string.h> now suffices.
59194
59195 2007-01-25  Bruno Haible  <bruno@clisp.org>
59196
59197         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
59198         *resultp is 0.
59199
59200         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
59201         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
59202         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
59203         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
59204
59205         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
59206         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
59207         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
59208         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
59209         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
59210         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
59211
59212 2007-01-24  Bruno Haible  <bruno@clisp.org>
59213
59214         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
59215         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
59216         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
59217         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
59218         gl_FUNC_FTS_CORE.
59219         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
59220         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
59221         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
59222         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
59223         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
59224         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
59225         gl_FUNC_FCHOWNAT.
59226         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
59227         gl_FUNC_STRFTIME.
59228         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
59229         Reported by Ralf Wildenhues.
59230
59231 2007-01-24  Bruno Haible  <bruno@clisp.org>
59232
59233         Drop AC_REQUIRE calls that are redundant with the module dependencies.
59234         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
59235         gl_GETADDRINFO.
59236         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
59237         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
59238         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
59239
59240 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
59241
59242         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
59243         Don't use 'exit'; just return from 'main'.
59244         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
59245
59246         * lib/fnmatch_.h: Readjust white space and comments to match
59247         glibc, to avoid spurious diffs.
59248
59249 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59250
59251         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
59252         2004-12-01 change by Jakub Jelinek, since this code won't compile
59253         if !LIBC.  Problem reported by Bob Proulx.
59254
59255 2007-01-23  Bruno Haible  <bruno@clisp.org>
59256
59257         * lib/striconveh.c: Include c-strcaseeq.h.
59258         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
59259         * modules/striconveh (Depends-on): Add c-strcaseeq.
59260
59261 2007-01-23  Bruno Haible  <bruno@clisp.org>
59262
59263         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
59264
59265         * modules/c-strcaseeq: New file.
59266         * lib/c-strcaseeq.h: New file.
59267
59268         * modules/streq: New file.
59269         * lib/streq.h: New file.
59270
59271 2007-01-23  Bruno Haible  <bruno@clisp.org>
59272
59273         * modules/striconveha-tests: New file.
59274         * tests/test-striconveha.c: New file.
59275
59276         * lib/striconveha.h: Include <stdbool.h>.
59277         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
59278         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
59279         (mem_iconveha_notranslit): Renamed from mem_iconveha.
59280         (mem_iconveha): New function.
59281         (str_iconveha_notranslit): Renamed from str_iconveha.
59282         (str_iconveha): New function.
59283         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
59284         c-strcase.
59285
59286 2007-01-23  Bruno Haible  <bruno@clisp.org>
59287
59288         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
59289         encodings without forgiving before trying any encoding with handler.
59290         (str_iconveha): Try all encodings without forgiving before trying any
59291         encoding with handler.
59292
59293 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59294
59295         Import the following changes from libc.
59296
59297         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
59298
59299         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
59300
59301         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
59302
59303         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
59304         normal_bracket label.
59305
59306         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
59307
59308         [BZ #361]
59309         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
59310         to normal_bracket after fetching the next character.
59311
59312 2007-01-22  Bruno Haible  <bruno@clisp.org>
59313
59314         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
59315         argument.
59316         * lib/striconveh.c (iconv_carefully_1): New function.
59317         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
59318         argument.
59319         (str_cd_iconveh): Update.
59320         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
59321         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
59322         * tests/test-striconveh.c (MAGIC): New macro.
59323         (new_offsets): New function.
59324         (main): Test call with and without offsets.
59325
59326 2007-01-22  Bruno Haible  <bruno@clisp.org>
59327
59328         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
59329         * modules/sys_select (Makefile.am): Likewise.
59330         * modules/sys_socket (Makefile.am): Likewise.
59331         * modules/sys_time (Makefile.am): Likewise.
59332
59333 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
59334
59335         * modules/gettimeofday (License): Change from GPL to LGPL, since
59336         gettimeofday is a library function.
59337
59338 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59339
59340         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
59341
59342 2007-01-21  Bruno Haible  <bruno@clisp.org>
59343
59344         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
59345
59346 2007-01-21  Bruno Haible  <bruno@clisp.org>
59347
59348         * modules/striconveha: New file.
59349         * lib/striconveha.h: New file.
59350         * lib/striconveha.c: New file.
59351         * MODULES.html.sh (Internationalization functions): Add striconveha.
59352         * lib/striconv.c (str_iconv): Optimize the case of an empty input
59353         string.
59354         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
59355
59356 2007-01-21  Bruno Haible  <bruno@clisp.org>
59357
59358         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
59359         * lib/striconveh.c (str_iconveh): Likewise.
59360
59361 2007-01-21  Bruno Haible  <bruno@clisp.org>
59362
59363         * lib/striconveh.h (mem_iconveh): New declaration.
59364         * lib/striconveh.c (mem_iconveh): New function.
59365         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
59366
59367 2007-01-21  Bruno Haible  <bruno@clisp.org>
59368
59369         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
59370
59371         * lib/striconveh.h (mem_cd_iconveh): Change specification.
59372         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
59373         original result buffer.
59374         (str_cd_iconveh): Update.
59375         * tests/test-striconveh.c (main): Update.
59376
59377         * lib/striconv.h (mem_cd_iconv): Change specification.
59378         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
59379         result buffer.
59380         (str_cd_iconv): Update.
59381         * tests/test-striconv.c (main): Update.
59382
59383 2007-01-21  Bruno Haible  <bruno@clisp.org>
59384
59385         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
59386
59387 2007-01-20  Jim Meyering  <jim@meyering.net>
59388
59389         * lib/userspec.c (parse_with_separator): If a user or group string
59390         starts with "+", skip the corresponding name-to-ID look-up, since
59391         such a look-up must fail: user and group names may not include "+".
59392
59393 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
59394
59395         * lib/poll.c: Include sys/time.h and time.h unconditionally,
59396         since we now assume the sys_time module.
59397         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
59398         check for sys/time.h; no longer needed.
59399         * modules/poll (Depends-on): Depend on sys_time.
59400
59401 2007-01-18  Bruno Haible  <bruno@clisp.org>
59402
59403         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
59404         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
59405
59406         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
59407         gettimeofday.
59408
59409         * tests/test-gettimeofday.c: Include <time.h>.
59410         (dummy): Remove variable.
59411
59412         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
59413         gl_HEADER_SYS_TIME_H.
59414         (gl_HEADER_SYS_TIME_H): New macro.
59415
59416         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
59417         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59418         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
59419         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
59420         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59421         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
59422         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
59423         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59424         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
59425         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
59426         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59427
59428         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
59429         last change; it caused a compilation error when cross-compiling to
59430         Cygwin.
59431
59432 2007-01-18  Jim Meyering  <jim@meyering.net>
59433
59434         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
59435         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
59436         than the race-prone "test -d sys || mkdir sys".
59437         (configure.ac): Use AC_PROG_MKDIR_P.
59438         * modules/sys_select: Likewise.
59439         * modules/sys_socket: Likewise.
59440         * modules/sys_time: Likewise.
59441
59442 2007-01-18  Eric Blake  <ebb9@byu.net>
59443
59444         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
59445         replace gettimeofday.
59446         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
59447         name, to avoid infinite recursion.
59448
59449 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
59450
59451         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
59452         module sys_time.
59453         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
59454         assume timespec.h defines struct timeval.
59455         * lib/settime.c: Likewise.
59456         * lib/utimens.c: Likewise.
59457         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
59458         since we now assume the gettimeofday module.
59459         * lib/tempname.c (__gen_tempname): Likewise.
59460         * lib/gettimeofday.h: Remove.
59461         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
59462         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
59463         Include <time.h>, for 'time()'.
59464         (localtime_buffer_addr): Also use this workaround if
59465         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
59466         to simplify the uses.  All uses changed.
59467         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
59468         that #undef is inside {}, and 'const' follows type name consistently.
59469         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
59470         (gettimeofday): Do not use the maximum possible value for
59471         tv->tv_usec, since that might break usages other than ls.c.
59472         Instead, we'll leave ls.c alone.  This undoes today's patch
59473         by Bruno.  Add a compile-time warning for 1s-clock resolution;
59474         we've never observed the problem but might as well keep the
59475         canary.
59476         * lib/nanosleep.c: Include timespec.h first, for interface check.
59477         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
59478         now assume the sys_time module.
59479         * lib/tempname.c: Likewise.
59480         * lib/timespec.h: Likewise.
59481         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
59482         needed.
59483         * lib/strftime.c: Likewise.
59484         * lib/timespec.h: Likewise.
59485         * lib/posixtm.c: Include posixtm.h first, for interface check.
59486         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
59487         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
59488         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
59489         * lib/sys_time_.h: New file.
59490         * lib/timespec.h (struct timespec): Use long int, not long.
59491         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
59492         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
59493         Remove obsolescent call to AC_HEADER_TIME.
59494         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
59495         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59496         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
59497         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
59498         Likewise.
59499         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
59500         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
59501         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
59502         into the sys_time module.  Check for gettimeofday just once.
59503         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
59504         for gettimeofday signature to just check the signature.  Merely
59505         compile it, since linking doesn't test signature.  Improve test for
59506         whether gettimeofday.o is actually needed.
59507         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
59508         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
59509         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
59510         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59511         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
59512         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
59513         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
59514         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
59515         than worrying about sys/time.h.
59516         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
59517         Don't bother worrying about TIME_WITH_SYS_TIME.
59518         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
59519         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
59520         * m4/sys_time_h.m4: New file.
59521         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
59522         Don't include sys/time.h.  Return from main rather than exiting.
59523         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
59524         all uses changed.
59525         * modules/gethrxtime (Depends-on): Add sys_time.
59526         * modules/gettime (Depends-on): Likewise.
59527         * modules/gettimeofday (Depends-on): Likewise.
59528         * modules/nanosleep (Depends-on): Likewise.
59529         * modules/settime (Depends-on): Likewise.
59530         * modules/tempname (Depends-on): Likewise.
59531         * modules/utimens (Depends-on): Likewise.
59532         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
59533         (Include): Change back to <sys/time.h>.
59534         (Maintainer): Add self.
59535         * modules/sys_time: New file.
59536         * modules/tempname (Depends-on): Add gettimeofday.
59537         * tests/test-gettimeofday.c: Include <sys/time.h>
59538         rather than gettimeofday.h.
59539
59540 2007-01-17  Bruno Haible  <bruno@clisp.org>
59541
59542         * gnulib-tool (func_get_license): Revert last patch. Instead, let
59543         the license default to GPL.
59544         (func_create_testdir): Don't complain if a module is LGPL and its
59545         tests module depends on GPLed modules.
59546
59547 2007-01-17  Bruno Haible  <bruno@clisp.org>
59548
59549         * lib/gettimeofday.c (gettimeofday): Add code for the case
59550         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
59551         maximum possible value for tv->tv_usec, rather than the minimum one.
59552
59553 2005-10-08  Martin Lambers  <marlam@marlam.de>
59554 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
59555 2007-01-16  Bruno Haible  <bruno@clisp.org>
59556
59557         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
59558         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
59559         gl_FUNC_GETTIMEOFDAY.
59560         (Include): Add gettimeofday.h.
59561         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
59562         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
59563         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
59564         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
59565         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
59566         * lib/gettimeofday.h: New file.
59567         * lib/gettimeofday.c: Include <sys/timeb.h>.
59568         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
59569         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59570         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
59571         fall back on time().
59572
59573         * tests/test-gettimeofday.c: New file.
59574         * modules/gettimeofday-tests: New file.
59575
59576 2007-01-16  Eric Blake  <ebb9@byu.net>
59577
59578         * modules/fnmatch (Depends-on): Depend on wchar.
59579         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
59580         * m4/fnmatch.m4: Likewise.
59581         * modules/mbchar (Makefile.am): Assume <wchar.h>.
59582         * m4/mbchar.m4: Likewise.
59583         * modules/mbswidth (Depends-on): Depend on wchar.
59584         * lib/mbswidth.c: Assume <wchar.h>.
59585         * m4/mbswidth.m4: Likewise.
59586         * modules/quotearg (Depends-on): Depend on wchar.
59587         * lib/quotearg.c: Assume <wchar.h>.
59588         * m4/quotearg.m4: Likewise.
59589         * modules/regex (Depends-on): Depend on wchar.
59590         * lib/regex_internal.h: Assume <wchar.h>.
59591         * m4/regex.m4: Likewise.
59592         * modules/stdint (Depends-on): Depend on wchar.
59593         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
59594         * m4/stdint.m4: Likewise.
59595         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
59596         * modules/strftime (Depends-on): Depend on wchar.
59597         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
59598         * modules/strtol (Depends-on): Depend on wchar.
59599         * lib/strtol.c: Assume <wchar.h>.
59600         * modules/wcwidth (Depends-on): Depend on wchar.
59601         * lib/wcwidth.h: Assume <wchar.h>.
59602         * m4/wcwidth.m4: Likewise.
59603
59604 2007-01-16  Bruno Haible  <bruno@clisp.org>
59605
59606         * modules/csharpexec-script: New, created from...
59607         * modules/csharpexec: ... this.
59608
59609 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
59610
59611         * modules/javaexec-script: New, created from...
59612         * modules/javaexec: ... this.
59613
59614 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59615
59616         * modules/poll (Dependencies): Add sys_select.
59617
59618 2007-01-15  Jim Meyering  <jim@meyering.net>
59619
59620         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
59621         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
59622         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
59623         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
59624
59625 2007-01-15  Bruno Haible  <bruno@clisp.org>
59626
59627         * modules/striconveh: New file.
59628         * lib/striconveh.h: New file.
59629         * lib/striconveh.c: New file.
59630         * MODULES.html.sh (Internationalization functions): Add striconveh.
59631
59632         * modules/striconveh-tests: New file.
59633         * tests/test-striconveh.c: New file.
59634
59635 2007-01-15  Bruno Haible  <bruno@clisp.org>
59636
59637         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
59638         not from GNU libiconv or GNU libc.
59639
59640 2007-01-15  Bruno Haible  <bruno@clisp.org>
59641
59642         * doc/gnulib-intro.texi (Copyright): Explain the different license
59643         terms for module descriptions, autoconf macros, tests, documentation.
59644
59645 2007-01-14  Bruno Haible  <bruno@clisp.org>
59646
59647         * modules/striconv-tests: New file.
59648         * tests/test-striconv.c: New file.
59649
59650 2007-01-14  Bruno Haible  <bruno@clisp.org>
59651
59652         * modules/iconv-tests: New file.
59653         * tests/test-iconv.c: New file.
59654
59655 2007-01-14  Bruno Haible  <bruno@clisp.org>
59656
59657         * gnulib-tool (func_get_license): For test modules, use the license of
59658         the main module.
59659
59660 2007-01-14  Bruno Haible  <bruno@clisp.org>
59661
59662         * modules/iconv (Include): Clarify that <iconv.h> can only be included
59663         if iconv is found to exist.
59664
59665 2007-01-14  Bruno Haible  <bruno@clisp.org>
59666
59667         * modules/c-ctype-tests: New file.
59668         * tests/test-c-ctype.c: New file.
59669
59670 2007-01-14  Bruno Haible  <bruno@clisp.org>
59671
59672         * modules/binary-io-tests: New file.
59673         * tests/test-binary-io.sh: New file.
59674         * tests/test-binary-io.c: New file.
59675
59676 2007-01-14  Bruno Haible  <bruno@clisp.org>
59677
59678         * modules/array-oset-tests: New file.
59679         * tests/test-array_oset.c: New file.
59680
59681 2007-01-14  Bruno Haible  <bruno@clisp.org>
59682
59683         * modules/array-list-tests: New file.
59684         * tests/test-array_list.c: New file.
59685
59686 2007-01-14  Bruno Haible  <bruno@clisp.org>
59687
59688         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
59689         and make.
59690         Reported by Simon Josefsson in
59691         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
59692
59693 2007-01-14  Bruno Haible  <bruno@clisp.org>
59694
59695         * modules/allocsa-tests: New file.
59696         * tests/test-allocsa.c: New file.
59697
59698 2007-01-14  Bruno Haible  <bruno@clisp.org>
59699
59700         * modules/fchdir (Depends-on): Add absolute-header.
59701         * modules/unistd (Depends-on): Likewise.
59702
59703 2006-12-30  Bruno Haible  <bruno@clisp.org>
59704
59705         * modules/fchdir: New file.
59706         * modules/unistd (Files): Add lib/unistd_.h.
59707         (Makefile.am): Generate unistd.h from unistd_.h.
59708         * lib/fchdir.c: New file.
59709         * lib/dirent_.h: New file.
59710         * lib/unistd_.h: New file.
59711         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
59712         * m4/fchdir.m4: New file.
59713         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
59714         (gl_HEADER_UNISTD): Invoke it.
59715         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
59716         function.
59717         * lib/backupfile.c (opendir, closedir): Undefine.
59718         * lib/chown.c (open, close): Undefine.
59719         * lib/clean-temp.c (open, close): Undefine.
59720         * lib/copy-file.c (open, close): Undefine.
59721         * lib/execute.c (open, close): Undefine.
59722         * lib/fsusage.c (open, close): Undefine.
59723         * lib/gc-gnulib.c (open, close): Undefine.
59724         * lib/getcwd.c (opendir, closedir): Undefine.
59725         * lib/glob.c (opendir, closedir): Undefine.
59726         * lib/javacomp.c (open, close): Undefine.
59727         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
59728         * lib/openat-proc.c (open, close): Undefine.
59729         * lib/pagealign_alloc.c (open, close): Undefine.
59730         * lib/pipe.c (open, close): Undefine.
59731         * lib/progreloc.c (open, close): Undefine.
59732         * lib/savedir.c (opendir, closedir): Undefine.
59733         * lib/utime.c (open, close): Undefine.
59734         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
59735
59736 2007-01-10  Bruno Haible  <bruno@clisp.org>
59737
59738         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
59739
59740 2007-01-12  Eric Blake  <ebb9@byu.net>
59741
59742         Provide a robust <wchar.h>.  Further simplifications are now
59743         possible in other modules, but not included here.
59744         * modules/wchar: New module.
59745         * m4/wchar.m4: New file.
59746         * lib/wchar_.h: Likewise.
59747         * modules/mbchar (Depends-on): Depend on wchar, as the first use
59748         of the new module.
59749         * MODULES.html.sh (Extended multibyte and wide character utilities):
59750         New section.
59751
59752 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
59753
59754         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
59755         to a reasonable default for memory allocation.
59756         (xreadlink): Don't allocate a huge buffer, to work around a buggy
59757         file system that reports garbage st_size values for symlinks.
59758         Problem reported by Liyang Hu.
59759
59760 2007-01-11  Simon Josefsson  <simon@josefsson.org>
59761
59762         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
59763         Emacs .#* auto-save files).
59764
59765 2007-01-11  Bruno Haible  <bruno@clisp.org>
59766
59767         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
59768         directory.
59769
59770 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
59771
59772         Use @...@ consistently in lib/wctype_.h.
59773         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
59774         on it being set to 1 or 0.
59775         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
59776         go back to AC_SUBSTing it.
59777         * modules/wctype (Makefile.am): Undo previous change.
59778
59779 2007-01-10  Eric Blake  <ebb9@byu.net>
59780
59781         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
59782         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
59783         * modules/wctype (Makefile.am): Likewise.
59784         Reported by Chris McGuire.
59785
59786 2007-01-10  Jim Meyering  <jim@meyering.net>
59787
59788         fts.c: a small readability/maintainability improvement
59789         * lib/fts.c (fts_read): Make this code slightly more readable and
59790         maintainable by hoisting the "sp->fts_cur = p" assignments to
59791         immediately follow the statements that set P.  Derived from
59792         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
59793
59794 2007-01-10  Eric Blake  <ebb9@byu.net>
59795
59796         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
59797         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
59798         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59799         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
59800         Reported by Chris McGuire.
59801
59802 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59803
59804         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
59805         in sed script.
59806
59807 2007-01-09  Bruno Haible  <bruno@clisp.org>
59808
59809         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
59810         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
59811         variables.
59812         (func_module): Use them.
59813
59814 2007-01-09  Bruno Haible  <bruno@clisp.org>
59815
59816         * modules/unistr/base: New file.
59817         * lib/unistr.h: New file.
59818
59819         * modules/unistr/u8-to-u16: New file.
59820         * lib/unistr/u8-to-u16.c: New file.
59821
59822         * modules/unistr/u8-to-u32: New file.
59823         * lib/unistr/u8-to-u32.c: New file.
59824
59825         * modules/unistr/u16-to-u8: New file.
59826         * lib/unistr/u16-to-u8.c: New file.
59827
59828         * modules/unistr/u16-to-u32: New file.
59829         * lib/unistr/u16-to-u32.c: New file.
59830
59831         * modules/unistr/u32-to-u8: New file.
59832         * lib/unistr/u32-to-u8.c: New file.
59833
59834         * modules/unistr/u32-to-u16: New file.
59835         * lib/unistr/u32-to-u16.c: New file.
59836
59837         * modules/unistr/u8-check: New file.
59838         * modules/unistr/u16-check: New file.
59839         * modules/unistr/u32-check: New file.
59840         * lib/unistr/u8-check.c: New file.
59841         * lib/unistr/u16-check.c: New file.
59842         * lib/unistr/u32-check.c: New file.
59843
59844         * modules/unistr/u8-chr: New file.
59845         * modules/unistr/u16-chr: New file.
59846         * modules/unistr/u32-chr: New file.
59847         * lib/unistr/u8-chr.c: New file.
59848         * lib/unistr/u16-chr.c: New file.
59849         * lib/unistr/u32-chr.c: New file.
59850
59851         * modules/unistr/u8-cmp: New file.
59852         * modules/unistr/u16-cmp: New file.
59853         * modules/unistr/u32-cmp: New file.
59854         * lib/unistr/u8-cmp.c: New file.
59855         * lib/unistr/u16-cmp.c: New file.
59856         * lib/unistr/u32-cmp.c: New file.
59857
59858         * modules/unistr/u8-cpy: New file.
59859         * modules/unistr/u16-cpy: New file.
59860         * modules/unistr/u32-cpy: New file.
59861         * lib/unistr/u8-cpy.c: New file.
59862         * lib/unistr/u16-cpy.c: New file.
59863         * lib/unistr/u32-cpy.c: New file.
59864         * lib/unistr/u-cpy.h: New file.
59865
59866         * modules/unistr/u8-cpy-alloc: New file.
59867         * modules/unistr/u16-cpy-alloc: New file.
59868         * modules/unistr/u32-cpy-alloc: New file.
59869         * lib/unistr/u8-cpy-alloc.c: New file.
59870         * lib/unistr/u16-cpy-alloc.c: New file.
59871         * lib/unistr/u32-cpy-alloc.c: New file.
59872         * lib/unistr/u-cpy-alloc.h: New file.
59873
59874         * modules/unistr/u8-endswith: New file.
59875         * modules/unistr/u16-endswith: New file.
59876         * modules/unistr/u32-endswith: New file.
59877         * lib/unistr/u8-endswith.c: New file.
59878         * lib/unistr/u16-endswith.c: New file.
59879         * lib/unistr/u32-endswith.c: New file.
59880         * lib/unistr/u-endswith.h: New file.
59881
59882         * modules/unistr/u8-mblen: New file.
59883         * modules/unistr/u16-mblen: New file.
59884         * modules/unistr/u32-mblen: New file.
59885         * lib/unistr/u8-mblen.c: New file.
59886         * lib/unistr/u16-mblen.c: New file.
59887         * lib/unistr/u32-mblen.c: New file.
59888
59889         * modules/unistr/u8-mbtouc: New file.
59890         * modules/unistr/u16-mbtouc: New file.
59891         * modules/unistr/u32-mbtouc: New file.
59892         * lib/unistr/u8-mbtouc.c: New file.
59893         * lib/unistr/u16-mbtouc.c: New file.
59894         * lib/unistr/u32-mbtouc.c: New file.
59895
59896         * modules/unistr/u8-mbtouc-safe: New file.
59897         * modules/unistr/u16-mbtouc-safe: New file.
59898         * modules/unistr/u32-mbtouc-safe: New file.
59899         * lib/unistr/u8-mbtouc-safe.c: New file.
59900         * lib/unistr/u16-mbtouc-safe.c: New file.
59901         * lib/unistr/u32-mbtouc-safe.c: New file.
59902
59903         * modules/unistr/u8-move: New file.
59904         * modules/unistr/u16-move: New file.
59905         * modules/unistr/u32-move: New file.
59906         * lib/unistr/u8-move.c: New file.
59907         * lib/unistr/u16-move.c: New file.
59908         * lib/unistr/u32-move.c: New file.
59909         * lib/unistr/u-move.h: New file.
59910
59911         * modules/unistr/u8-next: New file.
59912         * modules/unistr/u16-next: New file.
59913         * modules/unistr/u32-next: New file.
59914         * lib/unistr/u8-next.c: New file.
59915         * lib/unistr/u16-next.c: New file.
59916         * lib/unistr/u32-next.c: New file.
59917
59918         * modules/unistr/u8-prev: New file.
59919         * modules/unistr/u16-prev: New file.
59920         * modules/unistr/u32-prev: New file.
59921         * lib/unistr/u8-prev.c: New file.
59922         * lib/unistr/u16-prev.c: New file.
59923         * lib/unistr/u32-prev.c: New file.
59924
59925         * modules/unistr/u8-set: New file.
59926         * modules/unistr/u16-set: New file.
59927         * modules/unistr/u32-set: New file.
59928         * lib/unistr/u8-set.c: New file.
59929         * lib/unistr/u16-set.c: New file.
59930         * lib/unistr/u32-set.c: New file.
59931         * lib/unistr/u-set.h: New file.
59932
59933         * modules/unistr/u8-startswith: New file.
59934         * modules/unistr/u16-startswith: New file.
59935         * modules/unistr/u32-startswith: New file.
59936         * lib/unistr/u8-startswith.c: New file.
59937         * lib/unistr/u16-startswith.c: New file.
59938         * lib/unistr/u32-startswith.c: New file.
59939         * lib/unistr/u-startswith.h: New file.
59940
59941         * modules/unistr/u8-stpcpy: New file.
59942         * modules/unistr/u16-stpcpy: New file.
59943         * modules/unistr/u32-stpcpy: New file.
59944         * lib/unistr/u8-stpcpy.c: New file.
59945         * lib/unistr/u16-stpcpy.c: New file.
59946         * lib/unistr/u32-stpcpy.c: New file.
59947         * lib/unistr/u-stpcpy.h: New file.
59948
59949         * modules/unistr/u8-stpncpy: New file.
59950         * modules/unistr/u16-stpncpy: New file.
59951         * modules/unistr/u32-stpncpy: New file.
59952         * lib/unistr/u8-stpncpy.c: New file.
59953         * lib/unistr/u16-stpncpy.c: New file.
59954         * lib/unistr/u32-stpncpy.c: New file.
59955         * lib/unistr/u-stpncpy.h: New file.
59956
59957         * modules/unistr/u8-strcat: New file.
59958         * modules/unistr/u16-strcat: New file.
59959         * modules/unistr/u32-strcat: New file.
59960         * lib/unistr/u8-strcat.c: New file.
59961         * lib/unistr/u16-strcat.c: New file.
59962         * lib/unistr/u32-strcat.c: New file.
59963         * lib/unistr/u-strcat.h: New file.
59964
59965         * modules/unistr/u8-strchr: New file.
59966         * modules/unistr/u16-strchr: New file.
59967         * modules/unistr/u32-strchr: New file.
59968         * lib/unistr/u8-strchr.c: New file.
59969         * lib/unistr/u16-strchr.c: New file.
59970         * lib/unistr/u32-strchr.c: New file.
59971
59972         * modules/unistr/u8-strcmp: New file.
59973         * modules/unistr/u16-strcmp: New file.
59974         * modules/unistr/u32-strcmp: New file.
59975         * lib/unistr/u8-strcmp.c: New file.
59976         * lib/unistr/u16-strcmp.c: New file.
59977         * lib/unistr/u32-strcmp.c: New file.
59978
59979         * modules/unistr/u8-strcpy: New file.
59980         * modules/unistr/u16-strcpy: New file.
59981         * modules/unistr/u32-strcpy: New file.
59982         * lib/unistr/u8-strcpy.c: New file.
59983         * lib/unistr/u16-strcpy.c: New file.
59984         * lib/unistr/u32-strcpy.c: New file.
59985         * lib/unistr/u-strcpy.h: New file.
59986
59987         * modules/unistr/u8-strcspn: New file.
59988         * modules/unistr/u16-strcspn: New file.
59989         * modules/unistr/u32-strcspn: New file.
59990         * lib/unistr/u8-strcspn.c: New file.
59991         * lib/unistr/u16-strcspn.c: New file.
59992         * lib/unistr/u32-strcspn.c: New file.
59993         * lib/unistr/u-strcspn.h: New file.
59994
59995         * modules/unistr/u8-strdup: New file.
59996         * modules/unistr/u16-strdup: New file.
59997         * modules/unistr/u32-strdup: New file.
59998         * lib/unistr/u8-strdup.c: New file.
59999         * lib/unistr/u16-strdup.c: New file.
60000         * lib/unistr/u32-strdup.c: New file.
60001         * lib/unistr/u-strdup.h: New file.
60002
60003         * modules/unistr/u8-strlen: New file.
60004         * modules/unistr/u16-strlen: New file.
60005         * modules/unistr/u32-strlen: New file.
60006         * lib/unistr/u8-strlen.c: New file.
60007         * lib/unistr/u16-strlen.c: New file.
60008         * lib/unistr/u32-strlen.c: New file.
60009         * lib/unistr/u-strlen.h: New file.
60010
60011         * modules/unistr/u8-strmblen: New file.
60012         * modules/unistr/u16-strmblen: New file.
60013         * modules/unistr/u32-strmblen: New file.
60014         * lib/unistr/u8-strmblen.c: New file.
60015         * lib/unistr/u16-strmblen.c: New file.
60016         * lib/unistr/u32-strmblen.c: New file.
60017
60018         * modules/unistr/u8-strmbtouc: New file.
60019         * modules/unistr/u16-strmbtouc: New file.
60020         * modules/unistr/u32-strmbtouc: New file.
60021         * lib/unistr/u8-strmbtouc.c: New file.
60022         * lib/unistr/u16-strmbtouc.c: New file.
60023         * lib/unistr/u32-strmbtouc.c: New file.
60024
60025         * modules/unistr/u8-strncat: New file.
60026         * modules/unistr/u16-strncat: New file.
60027         * modules/unistr/u32-strncat: New file.
60028         * lib/unistr/u8-strncat.c: New file.
60029         * lib/unistr/u16-strncat.c: New file.
60030         * lib/unistr/u32-strncat.c: New file.
60031         * lib/unistr/u-strncat.h: New file.
60032
60033         * modules/unistr/u8-strncmp: New file.
60034         * modules/unistr/u16-strncmp: New file.
60035         * modules/unistr/u32-strncmp: New file.
60036         * lib/unistr/u8-strncmp.c: New file.
60037         * lib/unistr/u16-strncmp.c: New file.
60038         * lib/unistr/u32-strncmp.c: New file.
60039
60040         * modules/unistr/u8-strncpy: New file.
60041         * modules/unistr/u16-strncpy: New file.
60042         * modules/unistr/u32-strncpy: New file.
60043         * lib/unistr/u8-strncpy.c: New file.
60044         * lib/unistr/u16-strncpy.c: New file.
60045         * lib/unistr/u32-strncpy.c: New file.
60046         * lib/unistr/u-strncpy.h: New file.
60047
60048         * modules/unistr/u8-strnlen: New file.
60049         * modules/unistr/u16-strnlen: New file.
60050         * modules/unistr/u32-strnlen: New file.
60051         * lib/unistr/u8-strnlen.c: New file.
60052         * lib/unistr/u16-strnlen.c: New file.
60053         * lib/unistr/u32-strnlen.c: New file.
60054         * lib/unistr/u-strnlen.h: New file.
60055
60056         * modules/unistr/u8-strpbrk: New file.
60057         * modules/unistr/u16-strpbrk: New file.
60058         * modules/unistr/u32-strpbrk: New file.
60059         * lib/unistr/u8-strpbrk.c: New file.
60060         * lib/unistr/u16-strpbrk.c: New file.
60061         * lib/unistr/u32-strpbrk.c: New file.
60062         * lib/unistr/u-strpbrk.h: New file.
60063
60064         * modules/unistr/u8-strrchr: New file.
60065         * modules/unistr/u16-strrchr: New file.
60066         * modules/unistr/u32-strrchr: New file.
60067         * lib/unistr/u8-strrchr.c: New file.
60068         * lib/unistr/u16-strrchr.c: New file.
60069         * lib/unistr/u32-strrchr.c: New file.
60070
60071         * modules/unistr/u8-strspn: New file.
60072         * modules/unistr/u16-strspn: New file.
60073         * modules/unistr/u32-strspn: New file.
60074         * lib/unistr/u8-strspn.c: New file.
60075         * lib/unistr/u16-strspn.c: New file.
60076         * lib/unistr/u32-strspn.c: New file.
60077         * lib/unistr/u-strspn.h: New file.
60078
60079         * modules/unistr/u8-strstr: New file.
60080         * modules/unistr/u16-strstr: New file.
60081         * modules/unistr/u32-strstr: New file.
60082         * lib/unistr/u8-strstr.c: New file.
60083         * lib/unistr/u16-strstr.c: New file.
60084         * lib/unistr/u32-strstr.c: New file.
60085         * lib/unistr/u-strstr.h: New file.
60086
60087         * modules/unistr/u8-strtok: New file.
60088         * modules/unistr/u16-strtok: New file.
60089         * modules/unistr/u32-strtok: New file.
60090         * lib/unistr/u8-strtok.c: New file.
60091         * lib/unistr/u16-strtok.c: New file.
60092         * lib/unistr/u32-strtok.c: New file.
60093         * lib/unistr/u-strtok.h: New file.
60094
60095         * modules/unistr/u8-uctomb: New file.
60096         * modules/unistr/u16-uctomb: New file.
60097         * modules/unistr/u32-uctomb: New file.
60098         * lib/unistr/u8-uctomb.c: New file.
60099         * lib/unistr/u16-uctomb.c: New file.
60100         * lib/unistr/u32-uctomb.c: New file.
60101
60102         * MODULES.html.sh (Unicode string functions): Add the new modules.
60103
60104 2007-01-08  Bruno Haible  <bruno@clisp.org>
60105
60106         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
60107         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
60108         subdirectories.
60109
60110 2007-01-08  Karl Berry  <karl@gnu.org>
60111
60112         * doc/error.texi: mention that main() fns must set program_name
60113         when progname is used.
60114
60115 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
60116
60117         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
60118         WCTYPE_H is empty, for the benefit of builds from non-distclean
60119         directories.  Problem reported by Eric Blake in
60120         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
60121
60122 2007-01-08  Bruno Haible  <bruno@clisp.org>
60123
60124         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
60125         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
60126         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
60127         PROVIDE_CANONICALIZE_FILENAME_MODE.
60128         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
60129
60130 2007-01-08  Bruno Haible  <bruno@clisp.org>
60131
60132         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
60133         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
60134         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
60135         * lib/fts.c: Likewise.
60136         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
60137
60138 2006-12-25  Bruno Haible  <bruno@clisp.org>
60139
60140         * modules/utf8-ucs4-safe: New file.
60141         * lib/utf8-ucs4-safe.h: New file.
60142         * lib/unistr/utf8-ucs4-safe.c: New file.
60143
60144         * modules/utf16-ucs4-safe: New file.
60145         * lib/utf16-ucs4-safe.h: New file.
60146         * lib/unistr/utf16-ucs4-safe.c: New file.
60147
60148         * MODULES.html.sh (Unicode string functions): Add the new modules.
60149
60150 2007-01-08  Bruno Haible  <bruno@clisp.org>
60151
60152         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
60153         (Depends-on): Add unitypes.
60154         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
60155         (u8_mbtouc_aux): Move out to separate file.
60156         (u8_mbtouc): Use ucs4_t, uint8_t types.
60157         * lib/unistr/utf8-ucs4.c: New file.
60158
60159         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
60160         (Depends-on): Add unitypes.
60161         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
60162         (u16_mbtouc_aux): Move out to separate file.
60163         (u16_mbtouc): Use ucs4_t, uint16_t types.
60164         * lib/unistr/utf16-ucs4.c: New file.
60165
60166         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
60167         (Depends-on): Add unitypes.
60168         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
60169         (u8_uctomb_aux): Move out to separate file.
60170         (u8_uctomb): Use ucs4_t, uint8_t types.
60171         * lib/unistr/ucs4-utf8.c: New file.
60172
60173         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
60174         (Depends-on): Add unitypes.
60175         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
60176         (u16_uctomb_aux): Move out to separate file.
60177         (u16_uctomb): Use ucs4_t, uint16_t types.
60178         * lib/unistr/ucs4-utf16.c: New file.
60179
60180 2006-12-25  Bruno Haible  <bruno@clisp.org>
60181
60182         * modules/unitypes: New file.
60183         * lib/unitypes.h: New file.
60184         * MODULES.html.sh (func_all_modules): New section "Unicode string
60185         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
60186         this section. Add unitypes.
60187
60188 2007-01-08  Bruno Haible  <bruno@clisp.org>
60189
60190         Avoid variable names that conflict with those from libtool.
60191         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
60192         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
60193         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
60194         library_names_spec to acl_library_names_spec, hardcode_* to
60195         acl_hardcode_*.
60196         Reported by Ralf Wildenhues.
60197
60198 2007-01-08  Bruno Haible  <bruno@clisp.org>
60199
60200         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
60201         definition.
60202         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
60203         definition.
60204         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
60205         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
60206         definition.
60207         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
60208         definition.
60209         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
60210         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
60211         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
60212         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
60213         definition.
60214         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
60215         definition.
60216         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
60217         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
60218         GC_USE_<algorithm>.
60219         * lib/gc-libgcrypt.c: Likewise.
60220         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
60221         * modules/gc-arctwo (configure.ac): Likewise.
60222         * modules/gc-des (configure.ac): Likewise.
60223         * modules/gc-hmac-md5 (configure.ac): Likewise.
60224         * modules/gc-hmac-sha1 (configure.ac): Likewise.
60225         * modules/gc-md2 (configure.ac): Likewise.
60226         * modules/gc-md4 (configure.ac): Likewise.
60227         * modules/gc-md5 (configure.ac): Likewise.
60228         * modules/gc-random (configure.ac): Likewise.
60229         * modules/gc-rijndael (configure.ac): Likewise.
60230         * modules/gc-sha1 (configure.ac): Likewise.
60231
60232 2007-01-08  Bruno Haible  <bruno@clisp.org>
60233
60234         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
60235         macro definition.
60236         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
60237         definition.
60238         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
60239         definition.
60240         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
60241         * modules/fcntl-safer (configure.ac): Likewise.
60242         * modules/fopen-safer (configure.ac): Likewise.
60243         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
60244         GNULIB_FWRITEERROR macro definition.
60245
60246 2007-01-08  Bruno Haible  <bruno@clisp.org>
60247
60248         * m4/gnulib-common.m4: New file.
60249         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
60250         (func_get_filelist): Add m4/gnulib-common.m4.
60251
60252 2007-01-08  Bruno Haible  <bruno@clisp.org>
60253
60254         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
60255         command.
60256
60257 2007-01-08  Jim Meyering  <jim@meyering.net>
60258
60259         Use a more robust test for a "can't happen" condition.
60260         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
60261         narrowed the st_size value.  Presuming the "can't happen" condition
60262         is true, that narrowing could conceivably convert an invalid st_size
60263         value into a valid one.  Instead, use a change based on Matthew
60264         Woehlke's original patch.
60265
60266         Slight readability improvement: use an assert-like macro
60267         in place of literal "abort ()" uses.
60268         * lib/fts.c (fts_assert): Define.
60269         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
60270         Use this macro instead of a bare 'abort'.
60271
60272 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
60273
60274         Don't worry about using IRIX 5.3's wctype.h broken definitions;
60275         simply work around them.
60276         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
60277         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
60278         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
60279         declaring.
60280         Don't bother to define as macros, since the standard doesn't require it.
60281         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
60282         longer worry about IRIX 5.3.
60283         (HAVE_WCTYPE_CTMP_BUG): Remove.
60284
60285 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
60286
60287         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
60288         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
60289         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
60290         Problems reported by Georg Schwarz for IRIX 5.3.
60291
60292         * gnulib-tool (autoconf_minversion): Take the maximum version number
60293         found, not the minimum.  Problem reported by James Youngman.
60294
60295 2007-01-03  Karl Berry  <karl@gnu.org>
60296
60297         * doc/error.texi: new file, explaining interaction with progname.
60298         * doc/gnulib.texi: include it.  Update copyright.
60299
60300 2007-01-03  Simon Josefsson  <simon@josefsson.org>
60301
60302         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
60303         AC_CANONICAL_HOST, to improve autobuild outputs.
60304
60305 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
60306             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
60307
60308         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
60309         sockets, server sockets, and other file descriptors.  Count errors
60310         to compute the return value.  Reorder the code a bit to be easier
60311         to follow.  Don't set event bits that were not requested (except
60312         POLLERR and POLLHUP).
60313
60314 2007-01-01  Bruno Haible  <bruno@clisp.org>
60315
60316         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
60317
60318 2007-01-03  Jim Meyering  <jim@meyering.net>
60319
60320         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
60321
60322 2007-01-02  Bruno Haible  <bruno@clisp.org>
60323
60324         * modules/settime (Include): Require timespec.h.
60325         * modules/nanosleep (Include): Likewise.
60326
60327 2007-01-01  Bruno Haible  <bruno@clisp.org>
60328
60329         * gnulib-tool (func_emit_copyright_notice): Bump year.
60330         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
60331
60332 2007-01-01  Bruno Haible  <bruno@clisp.org>
60333
60334         Improve support for OpenBSD.
60335         * build-aux/config.rpath (libname_spec): Export.
60336         (library_names_spec): New variable. Export.
60337         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
60338         library_names_spec from the config.rpath output. Locate shared library
60339         through the name pattern in library_names_spec.
60340
60341 2007-01-01  Eric Blake  <ebb9@byu.net>
60342
60343         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
60344
60345 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
60346
60347         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
60348         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
60349         assume the C locale, and avoid an "eval" that could cause trouble.
60350         Problem with SORT reported by Bob Proulx.
60351
60352         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
60353         Define.  Trivial patch from Henning Nielsen Lund, originally
60354         sent to bug-grep@gnu.org today.
60355
60356 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
60357
60358         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
60359         struct stat.  Problem reported by Henning Nielsen Lund.
60360         * lib/acl.c: Include acl.h first, to check interface.  Don't
60361         bother to include sys/types.h and sys/stat.h again.
60362
60363 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
60364
60365         Import the following change from libc; problem reported by
60366         Sven Verdoolaege.
60367
60368         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
60369
60370         [BZ #1373]
60371         * lib/argp.h: Remove __NTH for __argp_usage inline function.
60372
60373 2006-12-28  Jim Meyering  <jim@meyering.net>
60374
60375         * build-aux/announce-gen: Do not assume that the package
60376         builds any of tar.gz, tar.bz2, and .xdelta files.
60377         Suggestion from Simon Josefsson.
60378
60379 2006-12-28  Simon Josefsson  <simon@josefsson.org>
60380
60381         * modules/announce-gen: New file.
60382
60383 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
60384
60385         * lib/mbchar.h: Just include <wctype.h>; the wctype module
60386         handles its gotchas now.
60387         * lib/mbswidth.c: Likewise.
60388         * lib/wcwidth.h: Likewise.
60389         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
60390         and iswcntrl; the wctype module does this stuff now.
60391         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
60392         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
60393         * modules/mbchar (Depends-on): Add wctype.
60394         * modules/mbswidth (Depends-on): Likewise.
60395         * modules/wcwidth (Depends-on): Likewise.
60396
60397 2006-12-27  Eric Blake  <ebb9@byu.net>
60398
60399         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
60400         module uses more than what <wctype.h> is required to provide.
60401
60402 2006-12-26  Eric Blake  <ebb9@byu.net>
60403
60404         * gnulib-tool (sed_extract_prog): Avoid space-tab.
60405
60406 2006-12-26  Eric Blake  <ebb9@byu.net>
60407
60408         * modules/absolute-header: New module.
60409         * modules/fcntl (Depends-on): Depend on it.
60410         * modules/inttypes (Depends-on): Likewise.
60411         * modules/stdint (Depends-on): Likewise.
60412         * modules/sys_stat (Depends-on): Likewise.
60413         * modules/wctype (Depends-on): Likewise.
60414         * MODULES.html.sh (Support for building libraries and
60415         executables): Document it.
60416
60417 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
60418
60419         * gnulib-tool (SED): Remove, undoing previous change.
60420         The problem was that it broke coreutils on Solaris, because
60421         "sed --posix" leaked into a makefile.
60422         (sed): New alias, if 'alias' and GNU sed.
60423
60424 2006-12-24  Jim Meyering  <jim@meyering.net>
60425
60426         Work around an fchownat bug in glibc-2.4:
60427         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
60428         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
60429         in spite of the -P option.
60430         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
60431         New macros.
60432         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
60433         * modules/openat (Files): Add lib/fchownat.c.
60434         * lib/openat.c (fchownat): Don't define here.  Move to...
60435         * lib/fchownat.c: ...this new file.
60436
60437 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
60438
60439         Fix bug reported by Bruno Haible in
60440         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
60441         where quotearg.c didn't compile on Mac OS X 10.2 because it
60442         lacks <wchar.h> and wint_t.
60443         * lib/wctype_.h (__wctype_wint_t): New type.
60444         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
60445         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
60446         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
60447         Arg is now of type __wctype_wint_t, not wint_t.
60448         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
60449         substitute HAVE_WINT_T.
60450         * modules/wctype (Files): Add m4/wint_t.m4.
60451         (wctype.h): Substitute HAVE_WINT_T.
60452
60453 2006-12-23  Bruno Haible  <bruno@clisp.org>
60454
60455         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
60456
60457 2006-12-23  Bruno Haible  <bruno@clisp.org>
60458
60459         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
60460         S_ISLNK.
60461         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
60462         mingw.
60463
60464 2006-12-22  Bruno Haible  <bruno@clisp.org>
60465
60466         * lib/copy-file.c: Include acl.h.
60467         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
60468         Close the file descriptors only after being done with copy_acl.
60469         * modules/copy-file (Depends-on): Add acl.
60470
60471 2006-12-22  Bruno Haible  <bruno@clisp.org>
60472
60473         * gnulib-tool (SED): New variable.
60474         Use $SED instead of sed everywhere.
60475
60476 2006-12-22  Bruno Haible  <bruno@clisp.org>
60477
60478         * modules/no-c++: New file.
60479         * m4/no-c++.m4: New file.
60480         * MODULES.html.sh (Support for building libraries and executables):
60481         Add no-c++.
60482
60483 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
60484
60485         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
60486         Include <limits.h>, and use its INT_MAX to rewrite the
60487         j loop so that it does not overflow 'int'.  Problem reported by
60488         Ralf Wildenhues in
60489         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
60490         Play it safe by shifting left by 1 rather than multiplying by 2,
60491         as GCC is less likely to optimize this away when the value
60492         is signed (when it assumes overflow leads to undefined behavior).
60493         Also, don't assume time_t uses two's complement.
60494
60495 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
60496
60497         * MODULES.html.sh: New module wctype.
60498         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
60499         * lib/fnmatch.c: Don't bother to include <wchar.h> before
60500         <wctype.h>, since the new wctype module should fix this.
60501         * lib/quotearg.c: Include <wctype.h> unconditionally, since
60502         the wctype module should arrange for it.
60503         * lib/regex_internal.h: Likewise.
60504         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
60505         since the wctype module should handle this now.
60506         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
60507         * modules/fnmatch (Depends-on): Add wctype.
60508         * modules/quotearg (Depends-on): Likewise.
60509         * modules/regex (Depends-on): Likewise.
60510
60511 2006-12-19  Bruno Haible  <bruno@clisp.org>
60512
60513         * lib/strdup.h [C++]: Wrap definitions in extern "C".
60514         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
60515
60516 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60517
60518         * modules/savewd (Depends-on): Fix dependency on fcntl.
60519
60520 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
60521
60522         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
60523         conforms to C99, rather than relying on the user's environment
60524         setting of STDINT_H.
60525
60526 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
60527         and Eric Blake  <ebb9@byu.net>
60528
60529         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
60530         This is more consistent with the other defines here.
60531         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
60532         Port to z/OS.  Problem reported by Paul Gilmartin.
60533         Change local vars to use gl_ prefix rather than ac_.
60534         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
60535         with other defines.
60536         * modules/double-slash-root: New module.
60537         * modules/dirname (Files): Remove m4/double-slash-root.m4.
60538         (Depends-on): Add double-slash-root.
60539         * MODULES.html.sh (File system functions): Mention new module.
60540
60541 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
60542
60543         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
60544         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
60545         This is for the benefit of gzip, which doesn't do i18n.
60546
60547 2006-12-12  Jim Meyering  <jim@meyering.net>
60548
60549         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
60550         Reported by Andreas Schwab <schwab@suse.de>.
60551
60552 2006-12-12  Bruno Haible  <bruno@clisp.org>
60553
60554         Merge these changes.
60555         2006-09-05  Bruno Haible  <bruno@clisp.org>
60556         * lib/iconvme.c (iconv_string): No need to save and restore errno when
60557         iconv_alloc succeeded.
60558         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
60559         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
60560         test for " && dest " at the end - dest is always != NULL there. Call
60561         iconv with 4xNULL arguments initially, to reset the state. Call iconv
60562         with 2xNULL arguments, also to flush the state storage. Handle the
60563         IRIX iconv behaviour. Realloc the final result, to throw away unused
60564         memory.
60565
60566 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
60567
60568         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
60569         and fchmodat unconditionally, since glibc 2.4 has them.
60570         Problem reported by Arkadiusz Miskiewicz.
60571
60572 2006-12-10  Bruno Haible  <bruno@clisp.org>
60573
60574         * gnulib-tool (func_import): Show the include files only for those
60575         modules that are copied and specified.
60576         Reported by Karl Berry.
60577
60578 2006-12-08  Jim Meyering  <jim@meyering.net>
60579
60580         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
60581         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
60582
60583         * build-aux/announce-gen: Add two new options, both optional:
60584         --bootstrap-tools=TOOL_LIST
60585               a comma-separated list of tools, e.g.,
60586               autoconf,automake,bison,gnulib
60587         --gnulib-snapshot-date=DATE
60588               if gnulib is in the bootstrap tool list,
60589               then report this as the snapshot date.
60590               If not specified, use the current date/time.
60591               If you specify a date here, be sure it's UTC.
60592
60593 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60594
60595         * tests/test-argp-2.sh: Fix test to match actual output.
60596         (func_compare): Fix sed script to be portable.
60597
60598 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
60599
60600         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
60601         workaround for this case.  It is not autoconfigured now; offhand
60602         it's hard to see how to autoconfigure it.
60603
60604 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
60605
60606         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
60607         a directory that is about to be chowned.  Such a directory's
60608         initial file permissions should permit the owner only and this
60609         should not be changed until after the chown, since the group and
60610         other bits would be incorrect if they granted permission before
60611         the chown.
60612
60613         Fix porting problem for iswctype reported by Georg Schwarz in:
60614         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
60615         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
60616         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
60617         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
60618         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
60619
60620 2006-12-03  Jim Meyering  <jim@meyering.net>
60621
60622         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
60623         p->fts_statp may not yet be defined.
60624         (fts_read): Instead, set it in the caller, once p->fts_statp is
60625         sure to be defined, and corresponds to a top-level directory.
60626         This bug made du -x fail.  Here's the coreutils test case:
60627         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
60628         Reported by Mike Frysinger.
60629
60630 2006-12-01  Jim Meyering  <jim@meyering.net>
60631
60632         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
60633         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
60634         Reported by Simon Josefsson.
60635
60636 2006-11-30  Jim Meyering  <jim@meyering.net>
60637
60638         * m4/warning.m4: Use the all-permissive copyright notice
60639         recommended by RMS (rather than LGPL).
60640         * m4/vararrays.m4: Likewise.
60641         * m4/flexmember.m4: Likewise.
60642
60643 2006-11-29  Bruno Haible  <bruno@clisp.org>
60644
60645         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
60646         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
60647         using +=.
60648         Reported by Simon Josefsson <simon@josefsson.org>.
60649
60650 2006-11-28  James Youngman <jay@gnu.org>
60651
60652         * README: Advise users that they might find the bug-gnulib@gnu.org
60653         and autotools-announce@gnu.org mailing lists useful.
60654
60655 2006-11-28  Bruno Haible  <bruno@clisp.org>
60656
60657         * m4/ptrdiff_max.m4: Remove file.
60658
60659 2006-11-21  Bruno Haible  <bruno@clisp.org>
60660
60661         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
60662         _AC_COMPUTE_INT.
60663         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60664         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
60665         _AC_COMPUTE_INT.
60666         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60667         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
60668         _AC_COMPUTE_INT.
60669         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60670
60671 2006-11-28  Jim Meyering  <jim@meyering.net>
60672
60673         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
60674         warning from "gcc -Wshadow" about shadowing the builtin.
60675
60676 2006-11-27  Bruno Haible  <bruno@clisp.org>
60677
60678         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
60679         _AC_COMPUTE_INT.
60680         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60681
60682 2006-11-27  Bruno Haible  <bruno@clisp.org>
60683             Paul Eggert  <eggert@cs.ucla.edu>
60684
60685         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
60686
60687 2006-11-26  Bruno Haible  <bruno@clisp.org>
60688
60689         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
60690         noinst_LTLIBRARIES.
60691
60692 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
60693             Bruno Haible  <bruno@clisp.org>
60694
60695         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
60696         if compiling with "gcc -ansi".
60697
60698 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
60699
60700         Fix some incompatibilities with gcc -ansi -pedantic.
60701         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
60702         if compiling pedantically with GCC, unless it's C99 or later.
60703         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
60704         it mishandles gcc -ansi -pedantic as well.
60705         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
60706         if gcc -pedantic.
60707         * lib/regexec.c (check_node_accept_bytes): Don't use auto
60708         initializers for struct if -pedantic, unless it's C99 or later.
60709
60710 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
60711
60712         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
60713         Don't close an fd more than once. Identical atimes indicate
60714         success, not failure.
60715
60716 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
60717
60718         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
60719
60720 2006-11-23  Jim Meyering  <jim@meyering.net>
60721
60722         * build-aux/announce-gen: New file.  From coreutils.
60723
60724 2006-11-22  Jim Meyering  <jim@meyering.net>
60725
60726         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
60727         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
60728         (fts_read): Use a temporary to narrow the overused st_size member
60729         before using it in a switch statement.  Reported by Matthew Woehlke.
60730
60731         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
60732         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
60733
60734 2006-11-20  Bruno Haible  <bruno@clisp.org>
60735
60736         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
60737         changequote instead of pairs of brackets.
60738         Reported by Andreas Schwab <schwab@suse.de>.
60739
60740 2006-11-21  Jim Meyering  <jim@meyering.net>
60741
60742         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
60743         so as to remain compatible with older compilers.
60744         Patch from Michael Deutschmann.
60745
60746 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
60747
60748         * MODULES.html.sh (File system functions): Add openat.
60749
60750         * lib/openat.h (rpl_fstatat): New macro, if
60751         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
60752         (fstatat): Define to rpl_fstatat under the same conditions,
60753         unless COMPILING_FSTATAT.
60754         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
60755         seems to have the bug.
60756         * lib/fstatat.c: New file.
60757         * modules/openat (Files): Add it.
60758
60759 2006-11-20  Bruno Haible  <bruno@clisp.org>
60760
60761         * Makefile: New file.
60762
60763 2006-11-20  Jim Meyering  <jim@meyering.net>
60764
60765         The beginnings of syntax-related checks for gnulib.
60766         * lib/Makefile: New file.
60767         * lib/t-idcache: New script.  Ensure that the two halves of
60768         idcache.c stay in sync.
60769
60770         * lib/idcache.c: Adjust comments in user- and group- portions to
60771         be more accurate, and to be consistent with one another.
60772
60773 2006-11-20  Jim Meyering  <jim@meyering.net>
60774
60775         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
60776         continue using the flexible array member (thus, this module performs
60777         half as many malloc calls), with the addition that...
60778         (getgroup, getuser): Consistently record a non-match via an empty
60779         "name" string, and map an empty string match to a NULL return value.
60780         * modules/idcache (Depends-on): Re-add flexmember.
60781
60782         * lib/idcache.c (getuser): Remove all uses of the register keyword.
60783         (getuidbyname, getgroup, getgidbyname): Likewise.
60784
60785         Use cleaner syntax: NULL rather than 0.
60786         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
60787
60788 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
60789
60790         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
60791         It mishandled the case where the group was missing.
60792         Problem reported by Greg Schafer.
60793         * modules/idcache: Likewise.
60794
60795 2006-11-18  Jim Meyering  <jim@meyering.net>
60796
60797         * check-module (%exempt_header): Add exception for some
60798         conditionally-included headers.
60799
60800         * modules/i-ring (Depends-on): Add verify.
60801         (License): Change to LGPL.
60802
60803 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60804
60805         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
60806         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
60807         and inttostr.h.  Use snprintf rather than uinttostr, so that
60808         LGPLed code doesn't depend on GPLed.
60809
60810 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60811
60812         * modules/inline (License): Change from GPL to LGPL.
60813
60814 2006-11-17  Jim Meyering  <jim@meyering.net>
60815
60816         * modules/d-type (License): Switch to LGPL.
60817
60818 2006-11-15  Bruno Haible  <bruno@clisp.org>
60819
60820         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
60821
60822 2006-11-15  Eric Blake  <ebb9@byu.net>
60823
60824         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
60825         the module dependency.
60826
60827 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60828             Bruno Haible  <bruno@clisp.org>
60829
60830         * gnulib-tool (func_create_testdir): Add license consistency check.
60831
60832 2006-11-15  Eric Blake  <ebb9@byu.net>
60833
60834         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
60835         random "(cached)" in configure output.
60836
60837 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60838
60839         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
60840         test for conforming inttypes.h is both announced and cached.
60841
60842         * MODULES.html.sh (seen_modules, seen_files): New variables.
60843         (func_module): Rewrite to use a few less gnulib-tool and sed
60844         invocations.  Avoid a couple of quadratic algorithms for ...
60845         (missed_modules, missed_files): ... these, with ...
60846         (func_append, func_tmpdir): ... these new functions, from
60847         gnulib-tool.  Analogously, install traps for cleanup.
60848
60849         * tests/test-gc.c (main): Remove unused variables.
60850         * tests/test-read-file.c: Include stdlib.h, for 'free'.
60851
60852 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
60853
60854         * modules/inttostr (License): Change to LGPL.
60855
60856 2006-11-14  Eric Blake  <ebb9@byu.net>
60857
60858         * modules/tempname (License): Change to LGPL.
60859
60860 2006-11-14  Eric Blake  <ebb9@byu.net>
60861
60862         * doc/functions.texi (Function Portability): *printf functions on
60863         Cygwin now understand all POSIX size specifiers.
60864
60865 2006-11-14  Bruno Haible  <bruno@clisp.org>
60866
60867         * modules/c-ctype (License): Change to LGPL.
60868
60869 2006-11-12  Bruno Haible  <bruno@clisp.org>
60870
60871         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
60872         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
60873         for GNOME libraries, for which the include files are installed in
60874         subdirectories of $prefix/include.
60875
60876 2006-11-12  Bruno Haible  <bruno@clisp.org>
60877
60878         * m4/lib-link.m4: Require at least autoconf-2.54.
60879         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
60880         name to underscores for the --with option.
60881
60882 2006-11-13  Bruno Haible  <bruno@clisp.org>
60883
60884         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
60885         the tests directory.
60886         Reported by Ralf Wildenhues.
60887
60888 2006-11-13  Bruno Haible  <bruno@clisp.org>
60889
60890         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
60891         (func_emit_initmacro_end): Undo the override here.
60892         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
60893         Works around the famous automake error in coreutils.
60894
60895 2006-11-13  Eric Blake  <ebb9@byu.net>
60896
60897         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
60898         element, not its node.
60899
60900 2006-11-12  Bruno Haible  <bruno@clisp.org>
60901
60902         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
60903         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
60904
60905 2006-11-12  Bruno Haible  <bruno@clisp.org>
60906
60907         * gnulib-tool: New option --local-symlink.
60908         (func_usage): Document it.
60909         (lsymbolic): New variable.
60910         (func_import, func_create_testdir): If --symlink was not specified,
60911         test whether --local-symlink was specified and the file comes from
60912         the local_gnulib_dir.
60913
60914 2006-11-12  Bruno Haible  <bruno@clisp.org>
60915
60916         * gnulib-tool (func_ln): New function.
60917         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
60918
60919 2006-11-12  Bruno Haible  <bruno@clisp.org>
60920
60921         Finish support for source files in subdirectories.
60922         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
60923         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
60924         AUTOMAKE_OPTIONS.
60925         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
60926
60927 2006-11-12  Bruno Haible  <bruno@clisp.org>
60928
60929         * gnulib-tool (func_get_automake_snippet): Synthesize also an
60930         EXTRA_lib_SOURCES augmentation.
60931         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
60932
60933 2006-11-12  Jim Meyering  <jim@meyering.net>
60934
60935         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
60936         file descriptors.  This also averts a failure on systems with
60937         native openat support when a traversed directory lacks "x" access.
60938         * lib/fts_.h: Include "i-ring.h"
60939         (struct FTS) [fts_fd_ring]: New member.
60940         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
60941         (FCHDIR): Add parentheses.
60942         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
60943         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
60944         When descending, rather than simply closing the previous
60945         fts_cwd_fd value, push that file descriptor onto the ring.
60946         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
60947         (fts_open): Initialize the new fd_ring member.
60948         (fts_close): Clear the ring.
60949         (fts_safe_changedir): When possible, use our new fd_ring to skip
60950         the diropen and fstat and dev/ino comparison that would normally
60951         accompany a virtual `chdir ("..")'.
60952
60953         * modules/fts (Depends-on): Add i-ring.
60954         * modules/i-ring: New module.
60955         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
60956         * m4/i-ring.m4: New file.
60957
60958 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60959
60960         * gnulib-tool (func_create_testdir): Fix replacement of
60961         `build-aux' in configure.ac.  Run autotools in gltests
60962         subdirectory.
60963         (func_create_testdir, func_create_megatestdir, test): There is
60964         no need for '--force' in most autotool invocations in a new
60965         tree.  Actually fail the whole test if any of the tools, or the
60966         configure or make stages fail.
60967
60968         Sync from Automake.
60969         * build-aux/gnupload: Revert last change.  Add pointer to upload
60970         instructions of the GNU Maintenance Instructions.
60971         Suggestion by Karl Berry.
60972
60973 2006-11-10  Jim Meyering  <jim@meyering.net>
60974
60975         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
60976
60977 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60978
60979         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
60980         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
60981         (bind_textdomain_codeset) [! ENABLE_NLS]:
60982         Evaluate all the arguments.  That way, callers get compatible behavior
60983         if the arguments have side effects.  Also, it avoids some GCC
60984         diagnostics in some cases; Joel E. Denny reported problems when Bison
60985         was configured with --enable-gcc-warnigs.
60986
60987 2006-11-10  Jim Meyering  <jim@meyering.net>
60988
60989         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
60990         relevant options in CFLAGS (like -O, -fno-inline) are taken into
60991         account.
60992
60993 2006-11-10  Jim Meyering  <jim@meyering.net>
60994
60995         * modules/inline: New file/module.
60996         * modules/xalloc (Files): Remove m4/inline.m4.
60997         (Depends-on): Add inline, instead.
60998         * modules/oset: Likewise.
60999         * modules/list: Likewise.
61000
61001 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
61002
61003         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
61004         Problem reported by Matthew Woehlke.
61005
61006 2006-11-09  Bruno Haible  <bruno@clisp.org>
61007
61008         * lib/tempname.c (gen_tempname): Remove variant that invokes
61009         __gen_tempname.
61010         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
61011         __gen_tempname.
61012
61013 2006-11-08  Bruno Haible  <bruno@clisp.org>
61014
61015         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
61016         to 'yes' instead of 'cross-compiling'.
61017
61018 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
61019
61020         * lib/quotearg.h (quotearg_free): New decl.
61021         * lib/quotearg.c (quotearg_free): New function.
61022         (slot0, nslots, slotvec0, slotvec):
61023         Now file-scope so that quotearg_free can get at them.
61024
61025 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61026
61027         Sync from Automake.
61028         * build-aux/gnupload: Add missing 'gnu' to example URL.
61029         Report by Karl Berry.
61030
61031 2006-11-08  Bruno Haible  <bruno@clisp.org>
61032
61033         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
61034         Suggested by Paul Eggert.
61035
61036 2006-11-08  Jim Meyering  <jim@meyering.net>
61037
61038         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
61039         It's already included if !_LIBC.
61040         (fts_safe_changedir): Add a comment.
61041
61042 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
61043
61044         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
61045         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
61046         Matthew Woehlke.
61047
61048         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
61049         definitions up, to avoid colliding with change below.
61050         (static_inline) [HAVE_INLINE]: New macro.
61051         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
61052         Provide extern decls when !HAVE_INLINE.  Do not define unless
61053         static_inline is defined, either by us or by xmalloc.c.  Use
61054         static_inline rather than static inline.
61055         (XCALLOC): Optimize sizeof(T) = 1 case.
61056         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
61057
61058 2006-11-07  Bruno Haible  <bruno@clisp.org>
61059
61060         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
61061         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
61062         AC_C_INLINE.
61063         * modules/xalloc (Files): Add m4/inline.m4.
61064
61065 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61066
61067         * README: Fix typo.
61068         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
61069         (Miscellanous Notes): ...from this.
61070
61071 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
61072
61073         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
61074         Mention that offsetof should be used instead of sizeof.
61075         From Bruno Haible.
61076
61077 2006-11-07  Bruno Haible  <bruno@clisp.org>
61078
61079         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
61080
61081 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
61082
61083         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
61084         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
61085         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
61086         (gl_tree_add_before, gl_tree_add_after):
61087         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
61088         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
61089         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
61090         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
61091         (gl_linked_add_after, gl_linked_add_at): Likewise.
61092         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
61093         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
61094         (gl_tree_add_before, gl_tree_add_after): Likewise.
61095         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
61096         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
61097         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
61098
61099 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61100
61101         * lib/gl_oset.h: Use C comment style, not C++ comment style.
61102
61103 2006-11-06  Bruno Haible  <bruno@clisp.org>
61104
61105         * m4/inline.m4: New file.
61106         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
61107         * modules/list (Files): Add m4/inline.m4.
61108         * modules/oset (Files): Likewise.
61109
61110 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
61111
61112         * lib/idcache.c: Include <stddef.h>, for offsetof.
61113         (struct userid.name): Change from char * to a flexible array member.
61114         All uses changed.
61115         * modules/idcache (Depends-on): Add flexmember.
61116
61117         * MODULES.html.sh (Core language properties): New module flexmember.
61118         * modules/flexmember, m4/flexmember.m4: New files.
61119
61120         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
61121         inline functions that are identical with the old xnmalloc_inline,
61122         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
61123         that we can avoid some unnecessary integer multiplications and
61124         divisions in the common case where the element size is known at
61125         compile time.
61126         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
61127         needed.
61128         (xnboundedmalloc): Remove.
61129         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
61130         arguments, for consistency with rest of this header.
61131         (xcharalloc): Rewrite using XNMALLOC.
61132         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
61133         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
61134         versions have been moved to lib/xalloc.h and renamed to be the
61135         non-*_inline versions.
61136         (xmalloc, xrealloc): Implement without reference to the xnmalloc
61137         and xnrealloc functions, since those functions are now inline and
61138         now call us.
61139         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
61140         renaming described above.
61141         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
61142         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
61143         captures the dependency in AC_C_INLINE.
61144
61145         New module canonicalize-lgpl, proposed by Charles Wilson in
61146         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
61147         with a few small changes afterwards.
61148         * MODULES.html.sh (File system functions): New module
61149         canonicalize-lgpl.
61150         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
61151         and canonicalize_file_name.
61152         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
61153         * modules/canonicalize-lgpl: New files.
61154
61155 2006-11-05  Bruno Haible  <bruno@clisp.org>
61156
61157         * gnulib-tool (func_import, func_create_testdir): Create directories
61158         also for files in subdirectories of lib/.
61159
61160 2006-11-05  Bruno Haible  <bruno@clisp.org>
61161
61162         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
61163         ANSI C compliant.
61164
61165 2006-11-03  Bruno Haible  <bruno@clisp.org>
61166
61167         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
61168         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
61169         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
61170         (xnboundedmalloc): New inline function.
61171         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
61172         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
61173         xmalloc.
61174         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
61175         xmalloc.
61176         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
61177         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
61178         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
61179         xmalloc.
61180         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
61181         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
61182         xmalloc.
61183         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
61184         gl_tree_add_after): Use XMALLOC instead of xmalloc.
61185         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
61186         xmalloc.
61187         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
61188         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
61189         gl_tree_add_after): Use XMALLOC instead of xmalloc.
61190         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
61191         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
61192         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
61193         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
61194
61195 2006-11-03  Bruno Haible  <bruno@clisp.org>
61196
61197         * lib/c-ctype.h [C++]: Define functions without name mangling.
61198         * lib/fwriteerror.h [C++]: Likewise.
61199         * lib/gcd.h [C++]: Likewise.
61200         * lib/linebreak.h [C++]: Likewise.
61201
61202 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
61203
61204         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
61205         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
61206         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
61207         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
61208         Check for functions and headers just once.
61209         Check for declaration of canonicalize_file_name.
61210         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
61211
61212 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
61213
61214         * gnulib-tool (func_import): Fix typo in actioncmd.
61215
61216 2006-11-02  Bruno Haible  <bruno@clisp.org>
61217
61218         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
61219         newline sequence in the Makefile.am snippet as a space, like "make"
61220         does.
61221         Reported by Roger Persson <perrog@gmail.com>.
61222
61223 2006-11-01  Bruno Haible  <bruno@clisp.org>
61224
61225         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
61226         already declared in <string.h>.
61227         * lib/strcase.h (strncasecmp): Don't declare it if yes.
61228
61229 2006-11-01  Bruno Haible  <bruno@clisp.org>
61230
61231         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
61232         * lib/strcase.h: Include <string.h>.
61233         (strcasecmp): Define to rpl_strcasecmp here.
61234
61235 2006-11-01  Bruno Haible  <bruno@clisp.org>
61236
61237         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
61238
61239 2006-11-01  Eric Blake  <ebb9@byu.net>
61240
61241         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
61242
61243         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
61244
61245 2006-10-29  Bruno Haible  <bruno@clisp.org>
61246
61247         Make it compile in C++ mode.
61248         * lib/full-write.c (full_rw): Add a cast.
61249
61250 2006-11-01  Bruno Haible  <bruno@clisp.org>
61251
61252         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
61253         be POSIX compliant.
61254         Reported by Roger Persson <perrog@gmail.com>.
61255
61256 2006-11-01  Eric Blake  <ebb9@byu.net>
61257
61258         * lib/getopt_.h: Fix comments.
61259
61260 2006-10-31  Eric Blake  <ebb9@byu.net>
61261
61262         * modules/tmpdir (Depends-on): Add sys_stat.
61263         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
61264         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
61265         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
61266         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
61267         tempname.
61268
61269 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
61270
61271         Avoid some C++ diagnostics reported by Bruno Haible.
61272         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
61273         xmalloc.
61274         (quotearg_alloc): Use xcharalloc rather than xmalloc.
61275         (struct slotvec): Move to top level.
61276         (quotearg_n_options): Rewrite to avoid xmalloc.
61277         * lib/xalloc.h (xcharalloc): New function.
61278         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
61279         [defined __cplusplus]: Add function template that provides result
61280         type propagation.  This part of the change is from Bruno Haible.
61281
61282 2006-10-29  Bruno Haible  <bruno@clisp.org>
61283
61284         Make it compile in C++ mode.
61285         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
61286         * lib/strnlen1.c (strnlen1): Cast memchr result.
61287         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
61288         * lib/clean-temp.c (string_equals, string_hash): Add casts.
61289         (create_temp_dir): Rename local variable 'template'.
61290         (compile_csharp_using_sscli): Add cast.
61291         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
61292         * lib/findprog.c (find_in_path): Likewise.
61293         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
61294         * lib/wait-process.c (register_slave_subprocess): Likewise.
61295
61296 2006-10-22  Bruno Haible  <bruno@clisp.org>
61297
61298         * modules/tsearch: New file.
61299         * lib/tsearch.h: New file.
61300         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
61301         * m4/tsearch.m4: New file.
61302         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
61303
61304 2006-10-29  Eric Blake  <ebb9@byu.net>
61305
61306         * lib/arcfour.c: Assume config.h.
61307         * lib/arctwo.c: Likewise.
61308         * lib/base64.c: Likewise.
61309         * lib/check-version.c: Likewise.
61310         * lib/crc.c: Likewise.
61311         * lib/des.c: Likewise.
61312         * lib/gc-gnulib.c: Likewise.
61313         * lib/gc-libgcrypt.c: Likewise.
61314         * lib/gc-pbkdf2-sha1.c: Likewise.
61315         * lib/getaddrinfo.c: Likewise.
61316         * lib/getdelim.c: Likewise.
61317         * lib/getline.c: Likewise.
61318         * lib/hmac-md5.c: Likewise.
61319         * lib/hmac-sha1.c: Likewise.
61320         * lib/iconvme.c: Likewise.
61321         * lib/md2.c: Likewise.
61322         * lib/md4.c: Likewise.
61323         * lib/memxor.c: Likewise.
61324         * lib/read-file.c: Likewise.
61325         * lib/readline.c: Likewise.
61326         * lib/rijndael-alg-fst.c: Likewise.
61327         * lib/rijndael-api-fst.c: Likewise.
61328         * lib/xgetdomainname.c: Likewise.
61329
61330 2006-10-28  Eric Blake  <ebb9@byu.net>
61331
61332         * lib/xstrndup.c: Assume config.h.
61333
61334 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
61335
61336         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
61337         stat-macros.h is now for our own macros, whereas stat_h is for
61338         macros in the <sys/stat.h> name space.
61339         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
61340         (STAT_MACROS_H): Remove.
61341         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
61342         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
61343         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
61344         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
61345         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
61346         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
61347         Move these macros to ...
61348         * lib/stat_.h: here.  Don't include stat-macros.h.
61349         * lib/canonicalize.c: Don't include stat-macros.h.
61350         * lib/chown.c: Likewise.
61351         * lib/euidaccess.c: Likewise.
61352         * lib/file-type.c: Likewise.
61353         * lib/filemode.c: Likewise.
61354         * lib/glob.c: Likewise.
61355         * lib/isapipe.c: Likewise.
61356         * lib/lchown.c: Likewise.
61357         * lib/lstat.c: Likewise.
61358         * lib/mkdir-p.c: Likewise.
61359         * lib/rmdir.c: Likewise.
61360         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
61361         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
61362         unless mkdir isn't declared, to speed up 'configure'.
61363         Always create sys/stat.h, since it's unlikely any real sys/stat.h
61364         would define all the S_* symbols.
61365         * modules/canonicalize (Depends-on):
61366         Depend on sys_stat, not stat-macros.
61367         * modules/chown: Likewise.
61368         * modules/euidaccess: Likewise.
61369         * modules/filemode: Likewise.
61370         * modules/file-type: Likewise.
61371         * modules/glob: Likewise.
61372         * modules/isapipe: Likewise.
61373         * modules/lchown: Likewise.
61374         * modules/lstat: Likewise.
61375         * modules/mkancesdirs: Likewise.
61376         * modules/rmdir: Likewise.
61377         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
61378         * modules/modechange: Likewise.
61379         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
61380         (configure.ac): Remove gl_STAT_MACROS.
61381         * modules/sys_stat (Depends-on): Remove stat-macros.
61382
61383 2006-10-27  Bruno Haible  <bruno@clisp.org>
61384
61385         * m4/signed.m4: Remove file.
61386         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
61387         invocation.
61388         * modules/vasnprintf (Files): Remove m4/signed.m4.
61389
61390 2006-10-27  Bruno Haible  <bruno@clisp.org>
61391
61392         Update to GNU gettext 0.16.
61393         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
61394         m4/inttypes-h.m4, m4/signed.m4.
61395         * m4/gettext.m4: Update to GNU gettext 0.16.
61396         * m4/intl.m4: New file, from GNU gettext.
61397         * m4/intldir.m4: New file, from GNU gettext.
61398         * config/srclist.txt: Update
61399
61400 2006-10-27  Eric Blake  <ebb9@byu.net>
61401
61402         * MODULES.html.sh: Document tempname.
61403         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
61404         dependencies.
61405         (Files): Move lib/tempname.c...
61406         * modules/tempname: ...to this new module.
61407         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
61408         (gl_PREREQ_TEMPNAME): Move...
61409         * m4/tempname.m4: ...to this new file.
61410         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
61411         * modules/sys_stat (Depends-on): Add stat-macros.
61412         * lib/stat_.h (includes): Pick up stat macros.
61413         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
61414         if stat macros are broken.
61415         * lib/tempname.c (includes): No need to include "stat-macros.h".
61416         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
61417         (direxists, __path_search) [!_LIBC]: Don't compile these in
61418         gnulib; the tmpdir module covers that.
61419         * lib/tempname.h: New file.
61420
61421 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
61422
61423         * COPYING: Explain how gnulib-tool converts licence headers.
61424         Almost all wording by Eric Blake.
61425
61426 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
61427
61428         * lib/mbchar.h (is_basic_table): Make read-only.
61429         * lib/mbchar.c (is_basic_table): Likewise.
61430         Reported by John Darrington.
61431
61432 2006-10-25  Bruno Haible  <bruno@clisp.org>
61433
61434         * lib/progname.h (set_program_name): Undefine before defining.
61435
61436 2006-10-25  Bruno Haible  <bruno@clisp.org>
61437
61438         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
61439         false for non-gcc C++ compilers.
61440         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
61441
61442 2006-10-24  Bruno Haible  <bruno@clisp.org>
61443
61444         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
61445         iconv implementations like Irix iconv.
61446
61447 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61448
61449         * modules/vararrays: New file.
61450         * m4/vararrays.m4: New file, taken from diffutils.
61451         * MODULES.html.sh: New module vararrays.
61452
61453 2006-10-24  Karl Berry  <karl@gnu.org>
61454
61455         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
61456         Don't call GNU Unix.
61457
61458 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61459
61460         * users.txt: Add Libtool.
61461
61462         Sync from Libtool:
61463
61464         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61465
61466         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
61467         to gnulib's policy of including config.h unconditionally.
61468
61469 2006-10-24  Bruno Haible  <bruno@clisp.org>
61470
61471         * modules/wcwidth (Files): Add m4/wint_t.m4.
61472         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
61473         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
61474
61475 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61476
61477         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
61478         to pacify GCC with some -W flags enabled.  Problem reported by
61479         Bruno Haible.
61480
61481 2006-10-24  Jim Meyering  <jim@meyering.net>
61482
61483         * MODULES.html.sh: Remove uinttostr.  It's not a module.
61484         Reported by Karl Berry.
61485
61486 2006-10-23  Bruno Haible  <bruno@clisp.org>
61487
61488         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
61489
61490 2006-10-24  Bruno Haible  <bruno@clisp.org>
61491
61492         * lib/gl_list.h: Use C comment style, not C++ comment style.
61493
61494 2006-10-23  Eric Blake  <ebb9@byu.net>
61495
61496         * lib/getaddrinfo.c (includes): Add missing include.
61497
61498 2006-10-23  Bruno Haible  <bruno@clisp.org>
61499             Paul Eggert  <eggert@cs.ucla.edu>
61500
61501         Ability to rename obstack_free.
61502         * lib/obstack.h (__obstack_free): New macro. Declare instead of
61503         obstack_free.
61504         (obstack_free): Invoke the __obstack_free macro.
61505         * lib/obstack.c (obstack_free): Use __obstack_free macro.
61506
61507 2006-10-23  Bruno Haible  <bruno@clisp.org>
61508             Paul Eggert  <eggert@cs.ucla.edu>
61509
61510         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
61511         __argc, __argv from the declaration. (They are defined as macros on
61512         mingw.)
61513
61514 2006-10-22  Bruno Haible  <bruno@clisp.org>
61515
61516         * doc/gnulib-intro.texi: New file.
61517         * doc/gnulib.texi: Include it.
61518
61519 2006-10-21  Bruno Haible  <bruno@clisp.org>
61520
61521         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
61522         "Introduction", "Miscellanous Notes", "Particular Modules".
61523
61524 2006-10-21  Bruno Haible  <bruno@clisp.org>
61525
61526         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61527         Change mostlyclean-local rule to avoid sh syntax error from bash
61528         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
61529
61530 2006-10-23  Jim Meyering  <jim@meyering.net>
61531
61532         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
61533         in place of snprintf.
61534
61535         * modules/inttostr (Files): Add lib/uinttostr.c.
61536         * lib/uinttostr.c (inttostr): New file/function.
61537         * lib/inttostr.h (uinttostr): Declare.
61538         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
61539         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
61540         Add uinttostr.
61541         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
61542
61543 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
61544
61545         * lib/canonicalize.c (ELOOP): Define if not already defined.
61546         Problem reported by Bruno Haible in
61547         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
61548
61549 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
61550
61551         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
61552         Problem reported by Perry Smith and Ville Laurikari.
61553
61554         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
61555         uses.
61556
61557 2006-10-19  Bruno Haible  <bruno@clisp.org>
61558
61559         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
61560         for mingw.
61561
61562 2006-10-19  Bruno Haible  <bruno@clisp.org>
61563
61564         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
61565         Needed for mingw.
61566
61567 2006-10-19  Bruno Haible  <bruno@clisp.org>
61568
61569         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
61570
61571 2006-10-19  Bruno Haible  <bruno@clisp.org>
61572
61573         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
61574         it.
61575
61576 2006-10-19  Bruno Haible  <bruno@clisp.org>
61577
61578         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
61579         invocation.
61580
61581 2006-10-19  Bruno Haible  <bruno@clisp.org>
61582
61583         * gnulib-tool (func_create_testdir): Don't include ftruncate and
61584         mountlist by default.
61585
61586 2006-10-16  Bruno Haible  <bruno@clisp.org>
61587
61588         * lib/c-strstr.c: Include c-strstr.h.
61589
61590 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
61591
61592         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
61593         in a slash.
61594
61595 2006-10-18  Bruno Haible  <bruno@clisp.org>
61596
61597         * lib/lock.h [C++]: Wrap definitions in extern "C".
61598
61599 2006-10-18  Bruno Haible  <bruno@clisp.org>
61600
61601         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
61602         gl_LIBOBJS list.
61603
61604 2006-10-18  Bruno Haible  <bruno@clisp.org>
61605
61606         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
61607
61608 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
61609
61610         * lib/xstrtol.h: Include gettext.h.
61611         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
61612         Problem reported by Eric Blake.
61613         * modules/xstrtol (Depends-on): Add gettext-h.
61614
61615 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
61616
61617         * lib/strftime.c (advance): New macro.
61618         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
61619         incomplete type, so you can't add 0 to it.  Problem and patch
61620         reported by Eelco Dolstra for dietlibc.
61621
61622 2006-10-18  Jim Meyering  <jim@meyering.net>
61623
61624         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
61625         type for a local, and rename it: s/up/user_proc/.
61626
61627 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
61628
61629         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
61630         READ_UTMP_USER_PROCESS.
61631         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
61632
61633 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
61634
61635         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
61636         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
61637
61638 2006-10-17  Eric Blake  <ebb9@byu.net>
61639
61640         * lib/sigprocmask.c (sigprocmask): Fix typo.
61641
61642         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
61643
61644         * modules/clean-temp (Makefile.am): Don't add to make output...
61645         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
61646         config.h.
61647
61648 2006-10-17  Bruno Haible  <bruno@clisp.org>
61649
61650         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
61651         differently if DEFAULT_TEXT_DOMAIN is set.
61652
61653 2006-10-16  Bruno Haible  <bruno@clisp.org>
61654
61655         * lib/clean-temp.c: Include fwriteerror.h.
61656
61657 2006-10-16  Bruno Haible  <bruno@clisp.org>
61658
61659         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
61660
61661 2006-10-16  Bruno Haible  <bruno@clisp.org>
61662
61663         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
61664         * lib/sigprocmask.h: Include <sys/types.h>.
61665         (sigset_t): Use the system's definition if present.
61666
61667 2006-10-17  Eric Blake  <ebb9@byu.net>
61668
61669         * lib/xvasprintf.c (includes): Assume config.h.
61670         * lib/xasprintf.c (includes): Likewise.
61671
61672 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61673
61674         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
61675         at least as wide as intmax_t.
61676
61677 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
61678
61679         (Imported from Automake.)
61680         * build-aux/gnupload: Update to version 1.1 of directive file.
61681
61682 2006-10-16  Eric Blake  <ebb9@byu.net>
61683
61684         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
61685         match Automake 1.10a.
61686
61687 2006-10-14  Bruno Haible  <bruno@clisp.org>
61688
61689         * modules/sigprocmask: New file.
61690         * lib/sigprocmask.h: New file.
61691         * lib/sigprocmask.c: New file.
61692         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
61693         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
61694         request sigprocmask.o.
61695         (gl_PREREQ_SIGPROCMASK): New macro.
61696         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
61697         (Depends-on): Add sigprocmask.
61698         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
61699         gt_SIGNALBLOCKING. Test for 'raise' only once.
61700         * lib/fatal-signal.c: Include sigprocmask.h.
61701         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
61702         unblock_fatal_signals): Define always.
61703         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61704         sigprocmask.
61705
61706 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
61707
61708         Sync from Automake.
61709         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
61710         which incorrectly sets the mode of an existing destination
61711         directory.  In some cases the unpatched install-sh could do the
61712         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
61713         system.  We hope this is rare in practice, but it's clearly worth
61714         fixing.  Problem reported by Alex Unleashed in
61715         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
61716         Also, don't bother to check for -m bugs unless we're using -m;
61717         suggested by Stepan Kasal.
61718
61719 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61720
61721         Sync from Automake.
61722         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
61723         `-c' flag, so they appear at the same position as in %FASTDEP%
61724         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
61725         which ignores unknown options only after the first non-option.
61726         Bug report against M4 by Nelson H. F. Beebe.
61727
61728 2006-10-13  Jim Meyering  <jim@meyering.net>
61729
61730         Fix a bug in yesterday's change.
61731         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
61732         p->fts_statp->st_dev would be used uninitialized.
61733         Ensures that we always call fts_stat on the very first entry.
61734         Miklos Szeredi reported that find -xdev stopped working.
61735
61736 2006-10-12  Bruno Haible  <bruno@clisp.org>
61737
61738         * gnulib-tool (func_get_automake_snippet): Append an automatically
61739         computed EXTRA_DIST augmentation.
61740         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
61741         * modules/alloca-opt (Makefile.am): Likewise.
61742         * modules/allocsa (Makefile.am): Likewise.
61743         * modules/arcfour (Makefile.am): Likewise.
61744         * modules/arctwo (Makefile.am): Likewise.
61745         * modules/argmatch (Makefile.am): Likewise.
61746         * modules/argz (Makefile.am): Likewise.
61747         * modules/atexit (Makefile.am): Likewise.
61748         * modules/backupfile (Makefile.am): Likewise.
61749         * modules/byteswap (Makefile.am): Likewise.
61750         * modules/c-strtod (Makefile.am): Likewise.
61751         * modules/c-strtold (Makefile.am): Likewise.
61752         * modules/calloc (Makefile.am): Likewise.
61753         * modules/canon-host (Makefile.am): Likewise.
61754         * modules/canonicalize (Makefile.am): Likewise.
61755         * modules/chdir-long (Makefile.am): Likewise.
61756         * modules/chdir-safer (Makefile.am): Likewise.
61757         * modules/check-version (Makefile.am): Likewise.
61758         * modules/chown (Makefile.am): Likewise.
61759         * modules/cloexec (Makefile.am): Likewise.
61760         * modules/close-stream (Makefile.am): Likewise.
61761         * modules/closeout (Makefile.am): Likewise.
61762         * modules/crc (Makefile.am): Likewise.
61763         * modules/csharpexec (Makefile.am): Likewise.
61764         * modules/cycle-check (Makefile.am): Likewise.
61765         * modules/des (Makefile.am): Likewise.
61766         * modules/dev-ino (Makefile.am): Likewise.
61767         * modules/dirfd (Makefile.am): Likewise.
61768         * modules/dirname (Makefile.am): Likewise.
61769         * modules/dup2 (Makefile.am): Likewise.
61770         * modules/eealloc (Makefile.am): Likewise.
61771         * modules/error (Makefile.am): Likewise.
61772         * modules/euidaccess (Makefile.am): Likewise.
61773         * modules/exclude (Makefile.am): Likewise.
61774         * modules/exitfail (Makefile.am): Likewise.
61775         * modules/fcntl-safer (Makefile.am): Likewise.
61776         * modules/fcntl (Makefile.am): Likewise.
61777         * modules/file-type (Makefile.am): Likewise.
61778         * modules/fileblocks (Makefile.am): Likewise.
61779         * modules/filemode (Makefile.am): Likewise.
61780         * modules/filenamecat (Makefile.am): Likewise.
61781         * modules/fnmatch (Makefile.am): Likewise.
61782         * modules/fopen-safer (Makefile.am): Likewise.
61783         * modules/fpending (Makefile.am): Likewise.
61784         * modules/fprintftime (Makefile.am): Likewise.
61785         * modules/free (Makefile.am): Likewise.
61786         * modules/fsusage (Makefile.am): Likewise.
61787         * modules/ftruncate (Makefile.am): Likewise.
61788         * modules/fts (Makefile.am): Likewise.
61789         * modules/gc-arcfour (Makefile.am): Likewise.
61790         * modules/gc-des (Makefile.am): Likewise.
61791         * modules/gc-hmac-md5 (Makefile.am): Likewise.
61792         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
61793         * modules/gc-md4 (Makefile.am): Likewise.
61794         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
61795         * modules/gc-sha1 (Makefile.am): Likewise.
61796         * modules/gc (Makefile.am): Likewise.
61797         * modules/getaddrinfo (Makefile.am): Likewise.
61798         * modules/getcwd (Makefile.am): Likewise.
61799         * modules/getdelim (Makefile.am): Likewise.
61800         * modules/getdomainname (Makefile.am): Likewise.
61801         * modules/getgroups (Makefile.am): Likewise.
61802         * modules/gethostname (Makefile.am): Likewise.
61803         * modules/gethrxtime (Makefile.am): Likewise.
61804         * modules/getline (Makefile.am): Likewise.
61805         * modules/getloadavg (Makefile.am): Likewise.
61806         * modules/getlogin_r (Makefile.am): Likewise.
61807         * modules/getndelim2 (Makefile.am): Likewise.
61808         * modules/getopt (Makefile.am): Likewise.
61809         * modules/getpagesize (Makefile.am): Likewise.
61810         * modules/getpass-gnu (Makefile.am): Likewise.
61811         * modules/getpass (Makefile.am): Likewise.
61812         * modules/getsubopt (Makefile.am): Likewise.
61813         * modules/gettime (Makefile.am): Likewise.
61814         * modules/gettimeofday (Makefile.am): Likewise.
61815         * modules/getugroups (Makefile.am): Likewise.
61816         * modules/getusershell (Makefile.am): Likewise.
61817         * modules/glob (Makefile.am): Likewise.
61818         * modules/group-member (Makefile.am): Likewise.
61819         * modules/hard-locale (Makefile.am): Likewise.
61820         * modules/hash (Makefile.am): Likewise.
61821         * modules/hmac-md5 (Makefile.am): Likewise.
61822         * modules/hmac-sha1 (Makefile.am): Likewise.
61823         * modules/human (Makefile.am): Likewise.
61824         * modules/idcache (Makefile.am): Likewise.
61825         * modules/imaxabs (Makefile.am): Likewise.
61826         * modules/imaxdiv (Makefile.am): Likewise.
61827         * modules/inet_ntop (Makefile.am): Likewise.
61828         * modules/inet_pton (Makefile.am): Likewise.
61829         * modules/intprops (Makefile.am): Likewise.
61830         * modules/inttostr (Makefile.am): Likewise.
61831         * modules/inttypes (Makefile.am): Likewise.
61832         * modules/isapipe (Makefile.am): Likewise.
61833         * modules/javaversion (Makefile.am): Likewise.
61834         * modules/lchmod (Makefile.am): Likewise.
61835         * modules/lchown (Makefile.am): Likewise.
61836         * modules/localcharset (Makefile.am): Likewise.
61837         * modules/long-options (Makefile.am): Likewise.
61838         * modules/lstat (Makefile.am): Likewise.
61839         * modules/malloc (Makefile.am): Likewise.
61840         * modules/mathl (Makefile.am): Likewise.
61841         * modules/mbchar (Makefile.am): Likewise.
61842         * modules/md2 (Makefile.am): Likewise.
61843         * modules/md4 (Makefile.am): Likewise.
61844         * modules/md5 (Makefile.am): Likewise.
61845         * modules/memcasecmp (Makefile.am): Likewise.
61846         * modules/memchr (Makefile.am): Likewise.
61847         * modules/memcmp (Makefile.am): Likewise.
61848         * modules/memcoll (Makefile.am): Likewise.
61849         * modules/memcpy (Makefile.am): Likewise.
61850         * modules/memmem (Makefile.am): Likewise.
61851         * modules/memmove (Makefile.am): Likewise.
61852         * modules/mempcpy (Makefile.am): Likewise.
61853         * modules/memrchr (Makefile.am): Likewise.
61854         * modules/memset (Makefile.am): Likewise.
61855         * modules/memxor (Makefile.am): Likewise.
61856         * modules/mkancesdirs (Makefile.am): Likewise.
61857         * modules/mkdir-p (Makefile.am): Likewise.
61858         * modules/mkdir (Makefile.am): Likewise.
61859         * modules/mkdtemp (Makefile.am): Likewise.
61860         * modules/mkstemp (Makefile.am): Likewise.
61861         * modules/mktime (Makefile.am): Likewise.
61862         * modules/modechange (Makefile.am): Likewise.
61863         * modules/mountlist (Makefile.am): Likewise.
61864         * modules/nanosleep (Makefile.am): Likewise.
61865         * modules/obstack (Makefile.am): Likewise.
61866         * modules/openat (Makefile.am): Likewise.
61867         * modules/pagealign_alloc (Makefile.am): Likewise.
61868         * modules/pathmax (Makefile.am): Likewise.
61869         * modules/physmem (Makefile.am): Likewise.
61870         * modules/poll (Makefile.am): Likewise.
61871         * modules/posixtm (Makefile.am): Likewise.
61872         * modules/posixver (Makefile.am): Likewise.
61873         * modules/putenv (Makefile.am): Likewise.
61874         * modules/quote (Makefile.am): Likewise.
61875         * modules/quotearg (Makefile.am): Likewise.
61876         * modules/raise (Makefile.am): Likewise.
61877         * modules/read-file (Makefile.am): Likewise.
61878         * modules/readline (Makefile.am): Likewise.
61879         * modules/readlink (Makefile.am): Likewise.
61880         * modules/readtokens (Makefile.am): Likewise.
61881         * modules/readutmp (Makefile.am): Likewise.
61882         * modules/realloc (Makefile.am): Likewise.
61883         * modules/regex (Makefile.am): Likewise.
61884         * modules/rename-dest-slash (Makefile.am): Likewise.
61885         * modules/rename (Makefile.am): Likewise.
61886         * modules/rijndael (Makefile.am): Likewise.
61887         * modules/rmdir (Makefile.am): Likewise.
61888         * modules/rpmatch (Makefile.am): Likewise.
61889         * modules/safe-read (Makefile.am): Likewise.
61890         * modules/safe-write (Makefile.am): Likewise.
61891         * modules/same-inode (Makefile.am): Likewise.
61892         * modules/same (Makefile.am): Likewise.
61893         * modules/save-cwd (Makefile.am): Likewise.
61894         * modules/savedir (Makefile.am): Likewise.
61895         * modules/setenv (Makefile.am): Likewise.
61896         * modules/settime (Makefile.am): Likewise.
61897         * modules/sha1 (Makefile.am): Likewise.
61898         * modules/sig2str (Makefile.am): Likewise.
61899         * modules/snprintf (Makefile.am): Likewise.
61900         * modules/stat-macros (Makefile.am): Likewise.
61901         * modules/stat-time (Makefile.am): Likewise.
61902         * modules/stdbool (Makefile.am): Likewise.
61903         * modules/stdint (Makefile.am): Likewise.
61904         * modules/stdlib-safer (Makefile.am): Likewise.
61905         * modules/stpcpy (Makefile.am): Likewise.
61906         * modules/stpncpy (Makefile.am): Likewise.
61907         * modules/strcase (Makefile.am): Likewise.
61908         * modules/strcasestr (Makefile.am): Likewise.
61909         * modules/strchrnul (Makefile.am): Likewise.
61910         * modules/strcspn (Makefile.am): Likewise.
61911         * modules/strdup (Makefile.am): Likewise.
61912         * modules/strerror (Makefile.am): Likewise.
61913         * modules/strftime (Makefile.am): Likewise.
61914         * modules/strndup (Makefile.am): Likewise.
61915         * modules/strnlen (Makefile.am): Likewise.
61916         * modules/strpbrk (Makefile.am): Likewise.
61917         * modules/strsep (Makefile.am): Likewise.
61918         * modules/strstr (Makefile.am): Likewise.
61919         * modules/strtod (Makefile.am): Likewise.
61920         * modules/strtoimax (Makefile.am): Likewise.
61921         * modules/strtok_r (Makefile.am): Likewise.
61922         * modules/strtol (Makefile.am): Likewise.
61923         * modules/strtoll (Makefile.am): Likewise.
61924         * modules/strtoul (Makefile.am): Likewise.
61925         * modules/strtoull (Makefile.am): Likewise.
61926         * modules/strtoumax (Makefile.am): Likewise.
61927         * modules/strverscmp (Makefile.am): Likewise.
61928         * modules/sys_socket (Makefile.am): Likewise.
61929         * modules/sys_stat (Makefile.am): Likewise.
61930         * modules/sysexits (Makefile.am): Likewise.
61931         * modules/time_r (Makefile.am): Likewise.
61932         * modules/timegm (Makefile.am): Likewise.
61933         * modules/timespec (Makefile.am): Likewise.
61934         * modules/tmpfile-safer (Makefile.am): Likewise.
61935         * modules/trim (Makefile.am): Likewise.
61936         * modules/unistd-safer (Makefile.am): Likewise.
61937         * modules/unlinkdir (Makefile.am): Likewise.
61938         * modules/unlocked-io (Makefile.am): Likewise.
61939         * modules/userspec (Makefile.am): Likewise.
61940         * modules/utime (Makefile.am): Likewise.
61941         * modules/utimecmp (Makefile.am): Likewise.
61942         * modules/utimens (Makefile.am): Likewise.
61943         * modules/vasnprintf (Makefile.am): Likewise.
61944         * modules/vasprintf (Makefile.am): Likewise.
61945         * modules/vsnprintf (Makefile.am): Likewise.
61946         * modules/xalloc (Makefile.am): Likewise.
61947         * modules/xgetcwd (Makefile.am): Likewise.
61948         * modules/xnanosleep (Makefile.am): Likewise.
61949         * modules/xreadlink (Makefile.am): Likewise.
61950         * modules/xstrtod (Makefile.am): Likewise.
61951         * modules/xstrtol (Makefile.am): Likewise.
61952         * modules/xstrtold (Makefile.am): Likewise.
61953         * modules/yesno (Makefile.am): Likewise.
61954         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
61955
61956 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61957
61958         * modules/error (Makefile.am): Distribute files through
61959         EXTRA_DIST, not lib_SOURCES.
61960
61961 2006-10-12  Eric Blake  <ebb9@byu.net>
61962
61963         * modules/error (Makefile.am): Distribute files in /lib.
61964         * modules/obstack (Makefile.am): Likewise.
61965
61966 2006-10-12  Bruno Haible  <bruno@clisp.org>
61967
61968         * modules/acl (Makefile.am): Distribute all files in lib/ through
61969         EXTRA_DIST.
61970         * modules/arcfour (Makefile.am): Likewise.
61971         * modules/arctwo (Makefile.am): Likewise.
61972         * modules/argmatch (Makefile.am): Likewise.
61973         * modules/argz (Makefile.am): Likewise.
61974         * modules/atexit (Makefile.am): Likewise.
61975         * modules/backupfile (Makefile.am): Likewise.
61976         * modules/c-strtod (Makefile.am): Likewise.
61977         * modules/c-strtold (Makefile.am): Likewise.
61978         * modules/calloc (Makefile.am): Likewise.
61979         * modules/canon-host (Makefile.am): Likewise.
61980         * modules/canonicalize (Makefile.am): Likewise.
61981         * modules/chdir-long (Makefile.am): Likewise.
61982         * modules/chdir-safer (Makefile.am): Likewise.
61983         * modules/check-version (Makefile.am): Likewise.
61984         * modules/chown (Makefile.am): Likewise.
61985         * modules/cloexec (Makefile.am): Likewise.
61986         * modules/close-stream (Makefile.am): Likewise.
61987         * modules/closeout (Makefile.am): Likewise.
61988         * modules/crc (Makefile.am): Likewise.
61989         * modules/cycle-check (Makefile.am): Likewise.
61990         * modules/des (Makefile.am): Likewise.
61991         * modules/dirfd (Makefile.am): Likewise.
61992         * modules/dirname (Makefile.am): Likewise.
61993         * modules/dup2 (Makefile.am): Likewise.
61994         * modules/euidaccess (Makefile.am): Likewise.
61995         * modules/exclude (Makefile.am): Likewise.
61996         * modules/exitfail (Makefile.am): Likewise.
61997         * modules/fcntl-safer (Makefile.am): Likewise.
61998         * modules/file-type (Makefile.am): Likewise.
61999         * modules/fileblocks (Makefile.am): Likewise.
62000         * modules/filemode (Makefile.am): Likewise.
62001         * modules/filenamecat (Makefile.am): Likewise.
62002         * modules/fnmatch (Makefile.am): Likewise.
62003         * modules/fopen-safer (Makefile.am): Likewise.
62004         * modules/fpending (Makefile.am): Likewise.
62005         * modules/fprintftime (Makefile.am): Likewise.
62006         * modules/free (Makefile.am): Likewise.
62007         * modules/fsusage (Makefile.am): Likewise.
62008         * modules/ftruncate (Makefile.am): Likewise.
62009         * modules/fts (Makefile.am): Likewise.
62010         * modules/gc (Makefile.am): Likewise.
62011         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
62012         * modules/getaddrinfo (Makefile.am): Likewise.
62013         * modules/getcwd (Makefile.am): Likewise.
62014         * modules/getdelim (Makefile.am): Likewise.
62015         * modules/getdomainname (Makefile.am): Likewise.
62016         * modules/getgroups (Makefile.am): Likewise.
62017         * modules/gethostname (Makefile.am): Likewise.
62018         * modules/gethrxtime (Makefile.am): Likewise.
62019         * modules/getline (Makefile.am): Likewise.
62020         * modules/getloadavg (Makefile.am): Likewise.
62021         * modules/getlogin_r (Makefile.am): Likewise.
62022         * modules/getopt (Makefile.am): Likewise.
62023         * modules/getpass (Makefile.am): Likewise.
62024         * modules/getpass-gnu (Makefile.am): Likewise.
62025         * modules/getsubopt (Makefile.am): Likewise.
62026         * modules/gettime (Makefile.am): Likewise.
62027         * modules/gettimeofday (Makefile.am): Likewise.
62028         * modules/getugroups (Makefile.am): Likewise.
62029         * modules/getusershell (Makefile.am): Likewise.
62030         * modules/glob (Makefile.am): Likewise.
62031         * modules/group-member (Makefile.am): Likewise.
62032         * modules/hard-locale (Makefile.am): Likewise.
62033         * modules/hash (Makefile.am): Likewise.
62034         * modules/hmac-md5 (Makefile.am): Likewise.
62035         * modules/hmac-sha1 (Makefile.am): Likewise.
62036         * modules/human (Makefile.am): Likewise.
62037         * modules/idcache (Makefile.am): Likewise.
62038         * modules/imaxabs (Makefile.am): Likewise.
62039         * modules/imaxdiv (Makefile.am): Likewise.
62040         * modules/inet_ntop (Makefile.am): Likewise.
62041         * modules/inet_pton (Makefile.am): Likewise.
62042         * modules/inttostr (Makefile.am): Likewise.
62043         * modules/isapipe (Makefile.am): Likewise.
62044         * modules/lchown (Makefile.am): Likewise.
62045         * modules/long-options (Makefile.am): Likewise.
62046         * modules/lstat (Makefile.am): Likewise.
62047         * modules/malloc (Makefile.am): Likewise.
62048         * modules/mathl (Makefile.am): Likewise.
62049         * modules/mbchar (Makefile.am): Likewise.
62050         * modules/md2 (Makefile.am): Likewise.
62051         * modules/md4 (Makefile.am): Likewise.
62052         * modules/md5 (Makefile.am): Likewise.
62053         * modules/memcasecmp (Makefile.am): Likewise.
62054         * modules/memchr (Makefile.am): Likewise.
62055         * modules/memcmp (Makefile.am): Likewise.
62056         * modules/memcoll (Makefile.am): Likewise.
62057         * modules/memcpy (Makefile.am): Likewise.
62058         * modules/memmem (Makefile.am): Likewise.
62059         * modules/memmove (Makefile.am): Likewise.
62060         * modules/mempcpy (Makefile.am): Likewise.
62061         * modules/memrchr (Makefile.am): Likewise.
62062         * modules/memset (Makefile.am): Likewise.
62063         * modules/memxor (Makefile.am): Likewise.
62064         * modules/mkancesdirs (Makefile.am): Likewise.
62065         * modules/mkdir (Makefile.am): Likewise.
62066         * modules/mkdir-p (Makefile.am): Likewise.
62067         * modules/mkdtemp (Makefile.am): Likewise.
62068         * modules/mkstemp (Makefile.am): Likewise.
62069         * modules/mktime (Makefile.am): Likewise.
62070         * modules/modechange (Makefile.am): Likewise.
62071         * modules/mountlist (Makefile.am): Likewise.
62072         * modules/nanosleep (Makefile.am): Likewise.
62073         * modules/openat (Makefile.am): Likewise.
62074         * modules/pagealign_alloc (Makefile.am): Likewise.
62075         * modules/physmem (Makefile.am): Likewise.
62076         * modules/poll (Makefile.am): Likewise.
62077         * modules/posixtm (Makefile.am): Likewise.
62078         * modules/posixver (Makefile.am): Likewise.
62079         * modules/putenv (Makefile.am): Likewise.
62080         * modules/quote (Makefile.am): Likewise.
62081         * modules/quotearg (Makefile.am): Likewise.
62082         * modules/raise (Makefile.am): Likewise.
62083         * modules/read-file (Makefile.am): Likewise.
62084         * modules/readline (Makefile.am): Likewise.
62085         * modules/readlink (Makefile.am): Likewise.
62086         * modules/readtokens (Makefile.am): Likewise.
62087         * modules/readutmp (Makefile.am): Likewise.
62088         * modules/realloc (Makefile.am): Likewise.
62089         * modules/regex (Makefile.am): Likewise.
62090         * modules/rename (Makefile.am): Likewise.
62091         * modules/rename-dest-slash (Makefile.am): Likewise.
62092         * modules/rijndael (Makefile.am): Likewise.
62093         * modules/rmdir (Makefile.am): Likewise.
62094         * modules/rpmatch (Makefile.am): Likewise.
62095         * modules/safe-read (Makefile.am): Likewise.
62096         * modules/safe-write (Makefile.am): Likewise.
62097         * modules/same (Makefile.am): Likewise.
62098         * modules/save-cwd (Makefile.am): Likewise.
62099         * modules/savedir (Makefile.am): Likewise.
62100         * modules/setenv (Makefile.am): Likewise.
62101         * modules/settime (Makefile.am): Likewise.
62102         * modules/sha1 (Makefile.am): Likewise.
62103         * modules/sig2str (Makefile.am): Likewise.
62104         * modules/snprintf (Makefile.am): Likewise.
62105         * modules/stdlib-safer (Makefile.am): Likewise.
62106         * modules/stpcpy (Makefile.am): Likewise.
62107         * modules/stpncpy (Makefile.am): Likewise.
62108         * modules/strcase (Makefile.am): Likewise.
62109         * modules/strcasestr (Makefile.am): Likewise.
62110         * modules/strchrnul (Makefile.am): Likewise.
62111         * modules/strcspn (Makefile.am): Likewise.
62112         * modules/strdup (Makefile.am): Likewise.
62113         * modules/strerror (Makefile.am): Likewise.
62114         * modules/strftime (Makefile.am): Likewise.
62115         * modules/strndup (Makefile.am): Likewise.
62116         * modules/strnlen (Makefile.am): Likewise.
62117         * modules/strpbrk (Makefile.am): Likewise.
62118         * modules/strsep (Makefile.am): Likewise.
62119         * modules/strstr (Makefile.am): Likewise.
62120         * modules/strtod (Makefile.am): Likewise.
62121         * modules/strtoimax (Makefile.am): Likewise.
62122         * modules/strtok_r (Makefile.am): Likewise.
62123         * modules/strtol (Makefile.am): Likewise.
62124         * modules/strtoll (Makefile.am): Likewise.
62125         * modules/strtoul (Makefile.am): Likewise.
62126         * modules/strtoull (Makefile.am): Likewise.
62127         * modules/strtoumax (Makefile.am): Likewise.
62128         * modules/strverscmp (Makefile.am): Likewise.
62129         * modules/time_r (Makefile.am): Likewise.
62130         * modules/timegm (Makefile.am): Likewise.
62131         * modules/tmpfile-safer (Makefile.am): Likewise.
62132         * modules/unistd-safer (Makefile.am): Likewise.
62133         * modules/unlinkdir (Makefile.am): Likewise.
62134         * modules/userspec (Makefile.am): Likewise.
62135         * modules/utime (Makefile.am): Likewise.
62136         * modules/utimecmp (Makefile.am): Likewise.
62137         * modules/utimens (Makefile.am): Likewise.
62138         * modules/vasnprintf (Makefile.am): Likewise.
62139         * modules/vasprintf (Makefile.am): Likewise.
62140         * modules/vsnprintf (Makefile.am): Likewise.
62141         * modules/xalloc (Makefile.am): Likewise.
62142         * modules/xgetcwd (Makefile.am): Likewise.
62143         * modules/xnanosleep (Makefile.am): Likewise.
62144         * modules/xreadlink (Makefile.am): Likewise.
62145         * modules/xstrtod (Makefile.am): Likewise.
62146         * modules/xstrtol (Makefile.am): Likewise.
62147         * modules/xstrtold (Makefile.am): Likewise.
62148         * modules/yesno (Makefile.am): Likewise.
62149
62150 2006-10-12  Jim Meyering  <jim@meyering.net>
62151
62152         * m4/getloadavg.m4: Revert the change below.
62153
62154         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
62155         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
62156         fail with a symlink, which is what coreutils' ./bootstrap now
62157         creates by default.
62158
62159 2006-10-12  Bruno Haible  <bruno@clisp.org>
62160
62161         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
62162         mingw.
62163         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
62164         MSVC and mingw explicitly.
62165
62166 2006-10-11  Simon Josefsson  <jas@extundo.com>
62167             Bruno Haible  <bruno@clisp.org>
62168
62169         Add support for multiple gnulib-tool invocations in the scope of a
62170         single configure.ac file.
62171         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
62172         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
62173         with the same contents as the _LIBADD variable.
62174         (func_emit_initmacro_start, func_emit_initmacro_end,
62175         func_emit_initmacro_done): New functions.
62176         (func_import, func_create_testdir): Invoke them. Allow the identifiers
62177         gl_LIBOBJS and gl_LTLIBOBJS.
62178
62179 2006-10-11  Bruno Haible  <bruno@clisp.org>
62180
62181         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
62182         (func_create_testdir): Don't create po/Makefile.am, don't invoke
62183         autoreconf. Instead, invoke autopoint explicitly but move back the
62184         *.m4 files from gnulib.
62185
62186 2006-10-11  Bruno Haible  <bruno@clisp.org>
62187
62188         * gnulib-tool (func_usage): Make module names after --create-testdir
62189         optional.
62190         (func_create_testdir): If no module was specified, use nearly all
62191         modules.
62192
62193 2006-10-12  Jim Meyering  <jim@meyering.net>
62194
62195         Big performance improvement for fts-based tools that use FTS_NOSTAT.
62196         Avoid spurious inode-mismatch problems on non-POSIX file systems.
62197         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
62198         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
62199         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
62200         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
62201         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
62202         (fts_set_stat_required): New function.
62203         (fts_open): Defer the calls to fts_stat, if possible or requested.
62204         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
62205         into fts_stat itself.
62206         (fts_read): Perform any required (deferred) fts_stat call.
62207         (fts_build): Likewise, for the directory we're about to open and read.
62208         In the readdir loop, carefully decide whether each entry will require
62209         an eventual call to fts_stat, using dirent.d_type info if available.
62210         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
62211         a command line argument into this function.  Update all callers.
62212         Map a return value of FTS_DOT to FTS_D for a command line argument.
62213         * modules/fts (Depends-on): Add d-type.  Alphabetize.
62214         Thanks to Miklos Szeredi for his tenacity and for the initial
62215         bug report about "find" failing on a FUSE-based file system.
62216
62217         * lib/fts.c (fts_open): Use consistent indentation.
62218
62219 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
62220
62221         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
62222         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
62223         reported by Jim Meyering.  All uses of cache variables renamed
62224         to match Autoconf's.
62225         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
62226         the other one.
62227
62228         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
62229         Fix misspelling in diagnostic.
62230
62231 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
62232
62233         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
62234         defined.  Problem reported by Matthew Woehlke.
62235
62236         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
62237         Add support for Tandem NonStop R series.
62238         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
62239         Use new macro.
62240
62241         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
62242         (has_trailing_slash): Omit size arg; all callers changed.
62243         Omit 'inline', since it doesn't help performance and we'd
62244         need to configure it.
62245         Don't count //, ///, etc. as having a trailing slash.
62246         As a side effect, this removes a C99ism reported by Matthew Woehlke.
62247         (rpl_rename_dest_slash): On failure, use rename's errno rather
62248         than (in some cases) an incorrect or junk errno.
62249         Simplify code by removing need to compute length; this does
62250         cause it to make two passes instead of one over the file name,
62251         but it's worth it.
62252
62253         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
62254         change, since Autoconf's version may no longer be appropriate now
62255         that we are using CVS Autoconf's version.  Add support for Tandem.
62256
62257 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
62258             Bruno Haible  <bruno@clisp.org>
62259
62260         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
62261         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
62262         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
62263         gl_AC_TYPE_LONG_LONG.
62264
62265         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
62266         instead of HAVE_LONG_LONG.
62267         * lib/printf-args.c (printf_fetchargs): Likewise.
62268         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
62269         * lib/vasnprintf.c (VASNPRINTF): Likewise.
62270         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
62271         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
62272         gl_AC_TYPE_LONG_LONG.
62273
62274 2006-10-11  Bruno Haible  <bruno@clisp.org>
62275
62276         * m4/longlong.m4: Add comments.
62277         * m4/ulonglong.m4: Likewise.
62278
62279 2006-10-10  Bruno Haible  <bruno@clisp.org>
62280
62281         Make it possible to #define stpcpy, strdup to aliases.
62282         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
62283         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
62284
62285 2006-10-10  Bruno Haible  <bruno@clisp.org>
62286
62287         Make it possible to #define gcd to an alias.
62288         * lib/gcd.c: Include config.h.
62289
62290 2006-10-10  Bruno Haible  <bruno@clisp.org>
62291
62292         Make it possible to #define c_isascii to an alias.
62293         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
62294         defined. Undefine the macros before defining them, to avoid gcc
62295         warnings.
62296         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
62297         define NO_C_CTYPE_MACROS early.
62298
62299 2006-10-10  Bruno Haible  <bruno@clisp.org>
62300
62301         Make it possible to #define set_program_name to an alias.
62302         * lib/progname.c: Don't undefine set_program_name; instead, undefine
62303         ENABLE_RELOCATABLE early.
62304
62305 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
62306
62307         Port to Tandem NSK OSS, which has 64-bit signed int but at most
62308         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
62309         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
62310         More generally, don't assume that 64-bit signed int is available
62311         if unsigned int is, and vice versa.
62312         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
62313         unsigned symbols, not on their signed counterparts.
62314         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
62315         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
62316         (UINT64_C, UINTMAX_C):
62317         Likewise.
62318         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
62319         unsigned counterparts.
62320         (Have_long_long, Unsigned): New macros.
62321         (Int): Renamed from INT.
62322         (strtoimax): Use the new macros.
62323         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
62324         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
62325         * modules/inttypes (inttypes.h): Substitute
62326         HAVE_UNSIGNED_LONG_LONG_INT.
62327         * modules/stdint (stdint.h): Likewise.
62328         (Files): Add m4/ulonglong.m4.
62329
62330 2006-10-10  Bruno Haible  <bruno@clisp.org>
62331
62332         Fix a gcc -Wshadow warning.
62333         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
62334         to 'bucket'.
62335         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
62336         gl_linked_indexof_from_to): Likewise.
62337         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
62338         Likewise.
62339         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
62340         Likewise.
62341         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
62342         Reported by Eric Blake.
62343
62344 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
62345
62346         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
62347         for NetBSD.  Problem reported by Bruno Haible.
62348
62349 2006-10-09  Jim Meyering  <jim@meyering.net>
62350
62351         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
62352         Patch from Bruno Haible.
62353
62354 2006-10-09  Jim Meyering  <jim@meyering.net>
62355
62356         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
62357         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
62358         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
62359
62360 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
62361
62362         Don't include <config.h> twice; this doesn't work in some cases,
62363         e.g., when config.h has "#define intmax_t long long int" and
62364         we include <config.h>, <inttypes.h>, <config.h> in that order.
62365         Problem reported by Matthew Woehlke in:
62366         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
62367         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
62368         * lib/fts-cycle.c: Don't include config.h.
62369         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
62370         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
62371         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
62372         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
62373         inttypes.h.
62374         * lib/xstrtoumax.c: Likewise.
62375         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
62376         __strtol and the like, so that this module is more like its siblings.
62377         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
62378         Remove; no longer needed now that we assume gnulib inttypes.h.
62379
62380 2006-10-08  Bruno Haible  <bruno@clisp.org>
62381
62382         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
62383         option.
62384
62385 2006-10-07  Jim Meyering  <jim@meyering.net>
62386
62387         * modules/inttypes (inttypes.h): Revert what seems to have been
62388         an inadvertent part of today's change: use "|", not "/" in the
62389         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
62390
62391 2006-10-07  Bruno Haible  <bruno@clisp.org>
62392
62393         * modules/sublist: New file.
62394
62395 2006-10-07  Bruno Haible  <bruno@clisp.org>
62396
62397         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
62398         * modules/argz (argz.h): Likewise.
62399         * modules/arpa_inet (arpa/inet.h): Likewise.
62400         * modules/byteswap (byteswap.h): Likewise.
62401         * modules/configmake (configmake.h): Likewise.
62402         * modules/fcntl (fcntl.h): Likewise.
62403         * modules/fnmatch (fnmatch.h): Likewise.
62404         * modules/getopt (getopt.h): Likewise.
62405         * modules/glob (glob.h): Likewise.
62406         * modules/inttypes (inttypes.h): Likewise.
62407         * modules/netinet_in (netinet/in.h): Likewise.
62408         * modules/poll (poll.h): Likewise.
62409         * modules/stdbool (stdbool.h): Likewise.
62410         * modules/stdint (stdint.h): Likewise.
62411         * modules/sys_select (sys/select.h): Likewise.
62412         * modules/sys_socket (sys/socket.h): Likewise.
62413         * modules/sys_stat (sys/stat.h): Likewise.
62414         * modules/sysexits (sysexits.h): Likewise.
62415         * modules/unistd (unistd.h): Likewise.
62416         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62417         Add a "DO NOT EDIT" comment to the generated file.
62418         (func_import): Likewise for gnulib-comp.m4.
62419
62420 2006-10-07  Bruno Haible  <bruno@clisp.org>
62421
62422         * lib/gl_sublist.h: New file.
62423         * lib/gl_sublist.c: New file.
62424
62425 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
62426
62427         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
62428         name (relative to the original working directory) and the file
62429         name component (relative to the temporary working directory).  All
62430         callers changed.
62431         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
62432         * lib/mkdir-p.c (make_dir_parents): Likewise.
62433         * lib/mkdir-p.h (make_dir_parents): Likewise.
62434
62435 2006-10-06  Eric Blake  <ebb9@byu.net>
62436
62437         Define several macros for use by the clean-temp module.
62438         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
62439         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
62440         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
62441
62442         * lib/clean-temp.h (close_stream_temp): New declaration.
62443         * lib/clean-temp.c (includes): Pull in headers according to what
62444         other modules are in use.
62445         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
62446
62447 2006-10-06  Bruno Haible  <bruno@clisp.org>
62448
62449         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
62450         instead of fopen, fwriteerror.
62451
62452 2006-10-06  Bruno Haible  <bruno@clisp.org>
62453
62454         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
62455         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
62456         int.
62457         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
62458         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
62459         Return an error indicator.
62460         Suggested by Eric Blake.
62461
62462 2006-10-06  Bruno Haible  <bruno@clisp.org>
62463
62464         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
62465         Reported by Eric Blake.
62466
62467 2006-10-06  Bruno Haible  <bruno@clisp.org>
62468
62469         * modules/closeout (Description): Mention stderr too.
62470
62471 2006-10-06  Bruno Haible  <bruno@clisp.org>
62472         and Paul Eggert  <eggert@cs.ucla.edu>
62473
62474         * lib/closeout.c (close_stdout): Also close stderr.
62475         * lib/closeout.h: Update comment.
62476
62477 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
62478
62479         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
62480         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
62481         * lib/dirchownmod.c: Include lchown.h.
62482         * lib/lchown.c: Don't include files that lchown.h now includes.
62483         Don't declare chown, since lchown.h now does that.
62484         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
62485         (lchown): Define to rpl_chown if lchown is declared but
62486         does not exist.  Declare using a prototype if lchown is not
62487         declared.  Add a copyright notice.
62488         * lib/mkstemp.h: Include <unistd.h>.
62489         * lib/openat.c: Include lchown.h.
62490
62491         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
62492         we now test for that separately.
62493         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
62494         rather than O_NOFOLLOW, when testing whether it's possible to
62495         avoid a race condition reliably.
62496         * lib/savewd.c (savewd_chdir): Likewise.
62497
62498         Remove macros that are no longer needed now that stdint.h is
62499         reliable.
62500         * lib/fsusage.c (UINTMAX_MAX): Remove.
62501         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
62502         * lib/utimecmp.c (SIZE_MAX): Remove.
62503
62504         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
62505
62506         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
62507         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
62508         O_NOATIME works.
62509
62510 2006-10-05  Bruno Haible  <bruno@clisp.org>
62511
62512         * lib/gl_list.h (gl_sortedlist_search_from_to,
62513         gl_sortedlist_indexof_from_to): New declarations.
62514         (gl_list_implementation): New fields sortedlist_search_from_to,
62515         sortedlist_indexof_from_to.
62516         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
62517         inline functions.
62518         * lib/gl_list.c (gl_sortedlist_search_from_to,
62519         gl_sortedlist_indexof_from_to): New functions.
62520         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
62521         function.
62522         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
62523         (gl_array_sortedlist_search_from_to): New function.
62524         (gl_array_list_implementation): Update.
62525         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
62526         function.
62527         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
62528         (gl_carray_sortedlist_search_from_to): New function.
62529         (gl_carray_list_implementation): Update.
62530         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
62531         gl_linked_sortedlist_indexof_from_to): New functions.
62532         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
62533         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
62534         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
62535         gl_tree_sortedlist_indexof_from_to): New functions.
62536         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
62537         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
62538         Update.
62539         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
62540         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
62541         Update.
62542
62543 2006-10-05  Bruno Haible  <bruno@clisp.org>
62544
62545         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
62546         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
62547         (struct gl_list_implementation): Add fields search_from_to,
62548         indexof_from_to. Remove fields search, indexof.
62549         (gl_list_search): Use the search_from_to method.
62550         (gl_list_search_from, gl_list_search_from_to): New functions.
62551         (gl_list_indexof): Use the indexof_from_to method.
62552         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
62553         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
62554         (gl_list_search_from, gl_list_search_from_to): New functions.
62555         (gl_list_indexof): Use the indexof_from_to method.
62556         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
62557         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
62558         gl_array_indexof. Add start_index, end_index arguments.
62559         (gl_array_search_from_to): Renamed from gl_array_search. Add
62560         start_index, end_index arguments.
62561         (gl_array_remove, gl_array_list_implementation): Update.
62562         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
62563         gl_carray_indexof. Add start_index, end_index arguments.
62564         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
62565         start_index, end_index arguments.
62566         (gl_carray_remove, gl_carray_list_implementation): Update.
62567         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
62568         gl_linked_search. Add start_index, end_index arguments.
62569         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
62570         start_index, end_index arguments.
62571         (gl_linked_remove): Update.
62572         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
62573         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
62574         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
62575         field to 'size_t'.
62576         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
62577         gl_tree_search. Add start_index, end_index arguments.
62578         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
62579         start_index, end_index arguments.
62580         (gl_tree_remove): Update.
62581         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
62582         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
62583         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
62584         function.
62585         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
62586         gl_tree_search. Add start_index, end_index arguments.
62587         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
62588         start_index, end_index arguments.
62589         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
62590         Update.
62591         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
62592
62593 2006-10-05  Bruno Haible  <bruno@clisp.org>
62594
62595         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
62596
62597         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
62598         fwriteerror_temp): New declarations.
62599         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
62600         (descriptors): New variable.
62601         (cleanup): First, close the descriptors.
62602         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
62603         fclose_temp, fwriteerror_temp): New functions.
62604
62605 2006-10-04  Jim Meyering  <jim@meyering.net>
62606
62607         * lib/fts.c (fts_open): Tiny comment change.
62608
62609 2006-10-04  Bruno Haible  <bruno@clisp.org>
62610
62611         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
62612         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
62613         gl_LOCK_BODY.
62614         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
62615         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
62616         gl_LOCK_EARLY_BODY.
62617         (gl_LOCK): Require gl_LOCK_BODY.
62618
62619 2006-10-04  Bruno Haible  <bruno@clisp.org>
62620
62621         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
62622         (gl_oset_search_atleast): New declaration.
62623         (struct gl_oset_implementation): Add field 'search_atleast'.
62624         (gl_oset_search_atleast): New inline function.
62625         * lib/gl_oset.c (gl_oset_search_atleast): New function.
62626         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
62627         (gl_array_oset_implementation): Update.
62628         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
62629         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
62630         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
62631
62632 2006-10-04  Bruno Haible  <bruno@clisp.org>
62633
62634         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
62635
62636 2006-10-03  Bruno Haible  <bruno@clisp.org>
62637
62638         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
62639         from gl_avltreehash_list_implementation.
62640
62641 2006-10-03  Bruno Haible  <bruno@clisp.org>
62642
62643         * lib/gl_oset.c (gl_oset_add): Fix return type.
62644
62645 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
62646
62647         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
62648
62649 2006-10-02  Eric Blake  <ebb9@byu.net>
62650
62651         * modules/strnlen (Depends-on): Add extensions.
62652
62653 2006-10-02  Eric Blake  <ebb9@byu.net>
62654
62655         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
62656         definition in 2.60+.
62657
62658 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
62659
62660         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
62661         checks.
62662
62663 2006-10-02  Bruno Haible  <bruno@clisp.org>
62664
62665         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
62666         to the AUTOMAKE_OPTIONS.
62667         Reported by Jim Meyering.
62668
62669 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
62670
62671         Work around bug in Solaris 10 /proc file system:
62672         /proc/self/fd/NNN/.. isn't the parent directory of
62673         the directory whose file descriptor is NNN.  This needs to
62674         be worked around at run time, not compile time, since a
62675         program might be built on Solaris 8, where things work, and
62676         run on Solaris 10.
62677         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
62678         to use the following interface instead:
62679         (OPENAT_BUFFER_SIZE): New macro.
62680         (openat_proc_name): New function.
62681         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
62682         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
62683         Likewise.
62684         * lib/openat-proc.c: New file.
62685         * modules/openat (Files): Add lib/openat-proc.c.
62686         (Depends-on): Add same-inode, stdbool.
62687         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
62688
62689 2006-09-29  Bruno Haible  <bruno@clisp.org>
62690
62691         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
62692         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
62693         argument. Set stdout_closed before testing for ferror, not after.
62694         (fwriteerror, fwriteerror_no_ebadf): New functions.
62695
62696 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62697
62698         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
62699
62700 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
62701
62702         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
62703         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
62704
62705 2006-09-28  Jim Meyering  <jim@meyering.net>
62706
62707         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
62708         Include <unistd.h>.
62709
62710 2006-09-28  Bruno Haible  <bruno@clisp.org>
62711
62712         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
62713         * modules/linkedhash-list (Depends-on): Likewise.
62714         * modules/rbtreehash-list (Depends-on): Likewise.
62715
62716 2006-09-28  Bruno Haible  <bruno@clisp.org>
62717
62718         * lib/strndup.h: Simplify the redefinition of strndup.
62719         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
62720         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
62721
62722 2006-09-28  Bruno Haible  <bruno@clisp.org>
62723
62724         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
62725         * lib/gl_linkedhash_list.c: Likewise.
62726         * lib/gl_rbtreehash_list.c: Likewise.
62727
62728 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
62729
62730         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
62731         getaddrinfo.
62732
62733         * lib/__fpending.h: Don't include <stdio_ext.h> unless
62734         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
62735         it causes <stdio_ext.h> to cause a compile-time error.
62736         Problem reported by Nelson H. F. Beebe.
62737         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
62738         of HAVE_DECL___PENDING.
62739
62740         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
62741         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
62742         declaration.
62743
62744 2006-09-27  Jim Meyering  <jim@meyering.net>
62745
62746         This file could end up with a definition for a function
62747         named __strndup, rather than rpl_strndup on a system with
62748         incomplete weak_alias support.
62749         * lib/strndup.c (strndup): Rename from __strndup.
62750         Remove #defines that used to map __strndup to strndup.
62751         Don't use K&R prototypes.
62752         Remove LIBC-related code, since this file is not sync'd with glibc.
62753         * lib/strndup.h: Revamp, accordingly.
62754         * m4/strndup.m4: Modernize.
62755
62756 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
62757
62758         * modules/savewd (Depends-on): Add 'raise'.
62759         * lib/savewd.c: Include <signal.h>, for 'raise'.
62760
62761 2006-09-26  Jim Meyering  <jim@meyering.net>
62762
62763         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
62764         when we detect Darwin 8.7.0's acl_get_file bug.
62765         Rearrange to perform the new (below) run-test while $LIBS
62766         contains any acl-related library.  Set USE_ACL at the end.
62767         (gl_ACL_GET_FILE): New function.
62768
62769 2006-09-26  Eric Blake  <ebb9@byu.net>
62770
62771         * lib/verror.c: Include <config.h> unconditionally.
62772
62773 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
62774
62775         * modules/clock-time (Maintainer): Add self.
62776         * modules/getlogin_r (Depends-on): Add extensions.
62777
62778 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62779
62780         * modules/clock-time: New module.
62781         * modules/nanosleep (Depends-on): Add clock-time.
62782         * modules/gethrxtime (Depends-on): Likewise.
62783         * modules/gettime (Depends-on): Likewise.
62784         * modules/settime (Depends-on): Likewise.
62785
62786         * modules/fts-lgpl: Depend on openat.
62787         * modules/mkancesdirs: Depend on savewd.
62788         * modules/mkdir-p: Likewise.
62789
62790 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62791
62792         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
62793
62794         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
62795         `gl_have_arbitrary_file_name_length_limit' to
62796         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
62797         actually works between configure runs.
62798
62799 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62800             Bruno Haible  <bruno@clisp.org>
62801
62802         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
62803
62804 2006-09-25  Jim Meyering  <jim@meyering.net>
62805
62806         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
62807         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
62808
62809 2006-09-25  Eric Blake  <ebb9@byu.net>
62810
62811         * gnulib-tool (func_import, func_create_testdir): Fix typos in
62812         exec's in 2006-09-18 patch when shuffling fds.
62813
62814 2006-09-25  Bruno Haible  <bruno@clisp.org>
62815
62816         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
62817         Reported by Jim Meyering.
62818
62819 2006-09-24  Jim Meyering  <jim@meyering.net>
62820
62821         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
62822         compare a pointer against a literal "0".  That caused failures with
62823         at least HP-UX's hpcc.
62824
62825 2006-09-22  Simon Josefsson  <jas@extundo.com>
62826
62827         * modules/gc-sha1:
62828         * modules/gc-md4:
62829         * modules/gc-hmac-sha1:
62830         * modules/gc-hmac-md5:
62831         * modules/gc-des:
62832         * modules/gc-arcfour: Distribute more files.
62833
62834 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62835
62836         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
62837         (gl_linked_iterator_from_to): Initialize struct completely.
62838         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
62839         (gl_tree_iterator_from_to): Likewise
62840         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
62841         * lib/gl_array_list.c [lint] (gl_array_iterator)
62842         (gl_array_iterator_from_to): Likewise.
62843         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
62844         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
62845         (gl_carray_iterator_from_to): Likewise.
62846
62847         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
62848         * lib/md4.c (md4_process_block): Remove unused variable.
62849         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
62850         parentheses for clarity.
62851
62852 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62853
62854         * modules/bison-i18n (Depends-on): Add gettext.
62855
62856 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62857
62858         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
62859         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
62860         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
62861         also add missing comma that caused broken test.
62862         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
62863         stdlib.h, for `abort'.
62864         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
62865         variables.
62866         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
62867         include unistd.h if present, for `rmdir'.
62868         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
62869         variables.
62870         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
62871         in the process include standard headers for prototypes.
62872         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
62873         gets declared on GNU/Linux.
62874         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
62875         unistd.h, for `rmdir'.
62876         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
62877
62878         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
62879         always true.
62880         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
62881
62882         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
62883
62884 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62885
62886         * gnulib-tool (func_version): Create output all at once.  This
62887         may help avoid triggering unnecessary SIGPIPEs, and at any
62888         rate it doesn't hurt.
62889
62890 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62891             Bruno Haible  <bruno@clisp.org>
62892
62893         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
62894         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
62895         * m4/signed.m4 (bh_C_SIGNED): Likewise.
62896
62897         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
62898         (gl_FUNC_VASPRINTF): Invoke it.
62899
62900 2006-09-22  Bruno Haible  <bruno@clisp.org>
62901
62902         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
62903         getloadavg.c as first argument.
62904
62905 2006-09-22  Bruno Haible  <bruno@clisp.org>
62906
62907         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
62908         at the beginning of the gl_INIT macro.
62909         * modules/getloadavg (configure.ac): Pass $gl_source_base to
62910         gl_GETLOADAVG.
62911
62912 2006-09-22  Bruno Haible  <bruno@clisp.org>
62913
62914         * gnulib-tool (func_create_megatestdir): Don't include the config-h
62915         module.
62916         Suggested by Ralf Wildenhues.
62917
62918 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
62919
62920         Import this patch from libc:
62921
62922         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
62923
62924         * lib/regex_internal.c (re_string_reconstruct): Handle
62925         offset < pstr->valid_raw_len && pstr->offsets_needed case.
62926         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
62927         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
62928         re_string_context_at.
62929
62930         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
62931         now requires it.
62932         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
62933         gl_REGEX now does it for us.
62934         (gl_REGEX): Add test taken from
62935         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
62936
62937         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
62938         Check that large offsets work.  Modernize Autoconf usages.
62939         Prefer "yes" to mean a good thing rather than a bad.
62940         Don't put "#define mkstemp" in config.h, as this might interfere
62941         with standard system headers that "#define mkstemp mkstemp64".
62942
62943         * modules/mkstemp (Depends-on): Add extensions, so that
62944         mkstemp is visible on some platforms.
62945         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
62946         (Include): Change to "mkstemp.h" from <stdlib.h>.
62947         (Files): Add mkstemp.h.
62948
62949         * lib/mkstemp.h: New file, since some standard headers
62950         #define mkstemp.
62951         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
62952         Include "mkstemp.h".
62953         Make the _LIBC code resemble glibc original more,
62954         e.g., use K&R style.
62955         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
62956         (mkstemp): Remove, since mkstemp.h does this for us.
62957         * lib/stdlib--.h: Include mkstemp.h.
62958
62959         Import this patch from libc:
62960
62961         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
62962
62963         * lib/tempname.c (__gen_tempname): Change attempts_min
62964         into a macro.  Use preprocessor to decide how to initialize
62965         attempts [Coverity CID 67].
62966
62967 2006-09-20  Bruno Haible  <bruno@clisp.org>
62968
62969         * lib/mkdtemp.c: Import from libc.
62970         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
62971                 * sysdeps/posix/tempname.c (__gen_tempname): Change
62972                 attempts_min into a macro.  Use preprocessor to decide how to
62973                 initialize attempts [Coverity CID 67].
62974         2001-11-27  Paul Eggert  <eggert@twinsun.com>
62975                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
62976                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
62977
62978 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62979
62980         * gnulib-tool (func_exit): New function, to allow to pass the
62981         exit status portably through the trap.  Use everywhere.
62982         (--help, --version): Signal a write error.
62983         (trap): catch SIGPIPE, for write errors.
62984         Exit at the end of the trap, with the correct exit status.
62985
62986 2006-09-19  Karl Berry  <karl@gnu.org>
62987
62988         * doc/gnulib.texi: note about the license texinfo files.
62989
62990 2006-09-19  Eric Blake  <ebb9@byu.net>
62991
62992         * gnulib-tool: Avoid space-tab.
62993
62994 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
62995
62996         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
62997         that prevented coreutils 6.1 from building.  Problem reported
62998         by Petter Reinholdtsen.
62999
63000 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
63001
63002         * gnulib-tool (avoidlist): Fix typo that broke options like
63003         --avoid=lock that are used by coreutils bootstrap.
63004
63005 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
63006
63007         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
63008         more systematically.
63009
63010 2006-09-18  Jim Meyering  <jim@meyering.net>
63011
63012         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
63013
63014 2006-09-18  Bruno Haible  <bruno@clisp.org>
63015
63016         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
63017
63018 2006-09-18  Bruno Haible  <bruno@clisp.org>
63019
63020         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
63021         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
63022         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
63023         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
63024         * m4/gettext.m4: Require autoconf >= 2.52.
63025         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
63026         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
63027         of gl_cv_header_inttypes_h.
63028
63029 2006-09-18  Bruno Haible  <bruno@clisp.org>
63030
63031         * lib/javaversion.c: Include configmake.h.
63032
63033 2006-09-18  Bruno Haible  <bruno@clisp.org>
63034
63035         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
63036         avoid that the while loops be executed in a subshell.
63037
63038 2006-09-18  Bruno Haible  <bruno@clisp.org>
63039
63040         * MODULES.html.sh (func_module): Break long lines.
63041         Suggested by Bruce Korb <bkorb@gnu.org>.
63042
63043 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63044
63045         Speed up by a factor of 1.12.
63046         * gnulib-tool (nl): New variable.
63047         (func_import): Rewrite include directive extraction to only read each
63048         directive once.
63049
63050 2006-09-17  Bruno Haible  <bruno@clisp.org>
63051
63052         * modules/javaversion (Makefile.am): Remove DEFS setting.
63053         (Depends-on): Add configmake, for PKGDATADIR definition.
63054
63055 2006-09-17  Bruno Haible  <bruno@clisp.org>
63056
63057         * gnulib-tool (func_create_testdir): Rewrite all files at once.
63058
63059 2006-09-17  Bruno Haible  <bruno@clisp.org>
63060
63061         * gnulib-tool (func_append): New function, stolen from libtool.m4.
63062         (func_modules_transitive_closure, func_modules_add_dummy,
63063         func_modules_to_filelist, func_import, func_create_testdir,
63064         func_create_megatestdir, ...): Use it wherever possible.
63065         Suggested by Ralf Wildenhues.
63066
63067 2006-09-16  Karl Berry  <karl@gnu.org>
63068
63069         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
63070         to avoid sectioning errors.
63071         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
63072         [ifinfo]: blank line after @center-ed titles.
63073         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
63074         Spell FSF address consistently with others.
63075         (These changes approved by rms.)
63076
63077 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63078
63079         Speed up by a factor of 1.61.
63080         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
63081         already checked module names again.
63082
63083 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63084
63085         Speed up by a factor of 1.13.
63086         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
63087         for new_files, and the input to func_add_or_update.
63088
63089 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63090
63091         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
63092         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
63093
63094 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
63095
63096         * modules/mkancesdirs (Depends-on): Add fcntl.
63097         * modules/savewd: New file.
63098         * MODULES.html.sh (File system functions): Add savewd.
63099
63100         * modules/configmake (Makefile.am): Add support for the
63101         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
63102
63103 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
63104
63105         * m4/savewd.m4: New file.
63106
63107 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
63108
63109         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
63110         (dirchownmod): New arg FD.  All callers changed.
63111         Use FD rather than opening the directory ourself, as opening is
63112         now the caller's responsibility.
63113         * lib/dirchownmod.h: Likewise.
63114         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
63115         hosts that require <sys/types.h> before <sys/stat.h>.  Include
63116         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
63117         (test_dir): Remove.
63118         (mkancesdirs): Return length of prefix of FILE that has already
63119         been made, or -2 if there is a child doing the work.  Redo
63120         algorithm so that it is O(N) rather than O(N**2).  Optimize away
63121         ".", and treat ".." specially since it might stray back into
63122         already-created areas.  Use a subprocess if necessary.  New arg
63123         WD; all users changed.  MAKE_DIR function should now return 1
63124         if it creates a directory that is not readable.  Return -2 if
63125         a child process is spun off.
63126         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
63127         Adjust signature to match code.
63128         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
63129         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
63130         all users changed.
63131         * lib/savewd.c, lib/savewd.h: New files.
63132
63133 2006-09-15  Jim Meyering  <jim@meyering.net>
63134
63135         * modules/rename-dest-slash: New module.
63136         * MODULES.html.sh (posix_compat): Add it here.
63137
63138         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
63139
63140 2006-09-15  Jim Meyering  <jim@meyering.net>
63141
63142         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
63143         file.
63144
63145         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
63146
63147 2006-09-15  Jim Meyering  <jim@meyering.net>
63148
63149         * lib/rename-dest-slash.c (has_trailing_slash): Use
63150         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
63151         (rpl_rename_dest_slash): Perform the cheaper trailing slash
63152         test before testing whether SRC is a directory.
63153         Suggestions from Bruno Haible.
63154
63155         Avoid a warning about an unused variable.
63156         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
63157         into the #ifdef block where it's used.
63158
63159         * lib/rename-dest-slash.c: New file.
63160
63161 2006-09-14  Bruno Haible  <bruno@clisp.org>
63162
63163         * lib/allocsa.c: Include <config.h> unconditionally.
63164         * lib/asnprintf.c: Likewise.
63165         * lib/asprintf.c: Likewise.
63166         * lib/c-strcasecmp.c: Likewise.
63167         * lib/c-strcasestr.c: Likewise.
63168         * lib/c-strncasecmp.c: Likewise.
63169         * lib/c-strstr.c: Likewise.
63170         * lib/classpath.c: Likewise.
63171         * lib/clean-temp.c: Likewise.
63172         * lib/concatpath.c: Likewise.
63173         * lib/copy-file.c: Likewise.
63174         * lib/csharpcomp.c: Likewise.
63175         * lib/csharpexec.c: Likewise.
63176         * lib/execute.c: Likewise.
63177         * lib/fatal-signal.c: Likewise.
63178         * lib/findprog.c: Likewise.
63179         * lib/fwriteerror.c: Likewise.
63180         * lib/gl_array_list.c: Likewise.
63181         * lib/gl_array_oset.c: Likewise.
63182         * lib/gl_avltree_list.c: Likewise.
63183         * lib/gl_avltree_oset.c: Likewise.
63184         * lib/gl_avltreehash_list.c: Likewise.
63185         * lib/gl_carray_list.c: Likewise.
63186         * lib/gl_linked_list.c: Likewise.
63187         * lib/gl_linkedhash_list.c: Likewise.
63188         * lib/gl_list.c: Likewise.
63189         * lib/gl_oset.c: Likewise.
63190         * lib/gl_rbtree_list.c: Likewise.
63191         * lib/gl_rbtree_oset.c: Likewise.
63192         * lib/gl_rbtreehash_list.c: Likewise.
63193         * lib/imaxabs.c: Likewise.
63194         * lib/imaxdiv.c: Likewise.
63195         * lib/javacomp.c: Likewise.
63196         * lib/javaexec.c: Likewise.
63197         * lib/javaversion.c: Likewise.
63198         * lib/linebreak.c: Likewise.
63199         * lib/localcharset.c: Likewise.
63200         * lib/lock.c: Likewise.
63201         * lib/mbchar.c: Likewise.
63202         * lib/mbswidth.c: Likewise.
63203         * lib/mkdtemp.c: Likewise.
63204         * lib/pipe.c: Likewise.
63205         * lib/printf-args.c: Likewise.
63206         * lib/printf-parse.c: Likewise.
63207         * lib/progname.c: Likewise.
63208         * lib/progreloc.c: Likewise.
63209         * lib/readlink.c: Likewise.
63210         * lib/sh-quote.c: Likewise.
63211         * lib/stpcpy.c: Likewise.
63212         * lib/stpncpy.c: Likewise.
63213         * lib/strcasecmp.c: Likewise.
63214         * lib/strcasestr.c: Likewise.
63215         * lib/strcspn.c: Likewise.
63216         * lib/striconv.c: Likewise.
63217         * lib/strncasecmp.c: Likewise.
63218         * lib/strnlen1.c: Likewise.
63219         * lib/strstr.c: Likewise.
63220         * lib/strtok_r.c: Likewise.
63221         * lib/tls.c: Likewise.
63222         * lib/tmpdir.c: Likewise.
63223         * lib/unicodeio.c: Likewise.
63224         * lib/unsetenv.c: Likewise.
63225         * lib/vasnprintf.c: Likewise.
63226         * lib/vasprintf.c: Likewise.
63227         * lib/wait-process.c: Likewise.
63228         * lib/xallocsa.c: Likewise.
63229         * lib/xsetenv.c: Likewise.
63230         * lib/xstriconv.c: Likewise.
63231
63232 2006-09-13  Simon Josefsson  <jas@extundo.com>
63233
63234         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
63235         that internally, suggested by Ralf Wildenhues
63236         <Ralf.Wildenhues@gmx.de>.
63237
63238 2006-09-13  Simon Josefsson  <jas@extundo.com>
63239
63240         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
63241         @LIBOBJS@.
63242         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63243
63244 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
63245
63246         * lib/_fpending.c: Include <config.h> unconditionally, since we no
63247         longer worry about uses that don't define HAVE_CONFIG_H.
63248         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
63249         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
63250         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
63251         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
63252         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
63253         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
63254         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
63255         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
63256         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
63257         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
63258         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
63259         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
63260         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
63261         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
63262         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
63263         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
63264         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
63265         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
63266         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
63267         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
63268         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
63269         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
63270         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
63271         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
63272         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
63273         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
63274         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
63275         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
63276         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
63277         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
63278         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
63279         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
63280         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
63281         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
63282         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
63283         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
63284         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
63285         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
63286         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
63287         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
63288         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
63289         Likewise.
63290
63291 2006-09-13  Eric Blake  <ebb9@byu.net>
63292
63293         * lib/getopt.c: Fix typo in last commit.
63294
63295 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
63296
63297         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
63298         dgettext.
63299
63300 2006-09-12  Jim Meyering  <jim@meyering.net>
63301
63302         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
63303         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
63304         Reported by Nelson H. F. Beebe.
63305
63306 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63307
63308         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
63309         program_invocation_name and program_invocation_short_name are
63310         initialized.
63311         * lib/argp-namefrob.h: Move declarations of program_invocation_name
63312         and program_invocation_short_name to argp.h, so they are visible
63313         to user programs.
63314         * lib/argp.h: Likewise
63315
63316 2006-09-10  Bruno Haible  <bruno@clisp.org>
63317
63318         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
63319         m4/inttypes_h.m4, m4/uintmax_t.m4.
63320
63321 2006-09-10  Bruno Haible  <bruno@clisp.org>
63322
63323         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
63324         gl_AC_TYPE_UINTMAX_T.
63325
63326 2006-09-10  Bruno Haible  <bruno@clisp.org>
63327
63328         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
63329
63330 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63331
63332         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
63333         convention.  Text proposed by Bruno Haible.
63334         (struct argp_option): Document the use of N_() wrappers.
63335
63336         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
63337         '\v', and translate the two parts separately, instead of feeding
63338         the whole string to gettext.  This allows to exclude
63339         '\v' from the strings visible to the translator by writing doc
63340         strings as N_("..") "\v" N_("..").
63341
63342 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
63343
63344         * config/srclist.txt: Undo latest change; the bug was fixed.
63345
63346 2006-09-09  Bruno Haible  <bruno@clisp.org>
63347
63348         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
63349         assignments if building a library without libtool.
63350         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
63351         in func_emit_lib_Makefile_am.
63352         (func_import): When building a static library libfoo.a, arrange to
63353         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
63354         (func_create_testdir): Likewise.
63355         * modules/gc (configure.ac, Makefile.am): If building statically,
63356         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
63357         * modules/iconvme (configure.ac, Makefile.am): Likewise.
63358         * modules/striconv (configure.ac, Makefile.am): Likewise.
63359         Based on a suggestion by Ralf Wildenhues.
63360
63361 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63362
63363         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
63364         Check for unistd.h too, since Autoconf doesn't assume POSIX.
63365         Also:
63366
63367         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63368         Add year_2050_test to catch glibc bug 2821
63369         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
63370
63371         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63372         Prefer #ifdef to #if.
63373
63374         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
63375         Return from 'main' instead of calling 'exit'.
63376
63377 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63378
63379         * lib/mktime.c (guess_time_tm): Fix bug where mktime
63380         returned the maximum time_t value rather than (time_t) -1.
63381         Problem originally reported by William Bardwell
63382         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
63383
63384         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
63385         Moved to here ...
63386         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
63387         ... from here.
63388
63389 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63390
63391         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
63392         2821 is fixed.
63393
63394 2006-09-08  Jim Meyering  <jim@meyering.net>
63395
63396         Don't make generated files read-only.  That would bother too many
63397         people.  However, do retain the ability to work when targets are
63398         read-only: remove the destination and temporary files before writing
63399         them (when generated via sed or echo), or by using the -f option for
63400         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
63401         * modules/alloca-opt, modules/argz, modules/arpa_inet:
63402         * modules/byteswap, modules/configmake, modules/fcntl:
63403         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
63404         * modules/localcharset, modules/netinet_in, modules/poll:
63405         * modules/stdbool, modules/stdint, modules/sys_select:
63406         * modules/sys_socket, modules/sys_stat, modules/sysexits:
63407
63408 2006-09-08  Jim Meyering  <jim@meyering.net>
63409
63410         Avoid new build failure on FreeBSD 6.0.
63411         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
63412         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
63413         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
63414
63415 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63416
63417         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
63418
63419 2006-09-07  Jim Meyering  <jim@meyering.net>
63420
63421         Fix global typo in last change: use chmod u-w, not chmod u-x.
63422         Spotted by Paul Eggert and Bruce Korb.
63423         * modules/alloca-opt, modules/argz, modules/arpa_inet:
63424         * modules/byteswap, modules/configmake, modules/fcntl:
63425         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
63426         * modules/localcharset, modules/netinet_in, modules/poll:
63427         * modules/stdbool, modules/stdint, modules/sys_select:
63428         * modules/sys_socket, modules/sys_stat, modules/sysexits:
63429
63430 2006-09-06  Jim Meyering  <jim@meyering.net>
63431
63432         Make generated files be read-only.
63433         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
63434         Ensure that each generated file is now read-only.
63435         * modules/argz: Likewise.
63436         * modules/arpa_inet: Likewise.
63437         * modules/byteswap: Likewise.
63438         * modules/configmake: Likewise.
63439         * modules/fcntl: Likewise.
63440         * modules/fnmatch: Likewise.
63441         * modules/getopt: Likewise.
63442         * modules/glob: Likewise.
63443         * modules/inttypes: Likewise.
63444         * modules/netinet_in: Likewise.
63445         * modules/poll: Likewise.
63446         * modules/stdbool: Likewise.
63447         * modules/stdint: Likewise.
63448         * modules/sys_select: Likewise.
63449         * modules/sys_socket: Likewise.
63450         * modules/sys_stat: Likewise.
63451         * modules/sysexits: Likewise.
63452         * modules/localcharset: Same as above, but continue using temporary
63453         file named "t-$@" (why different?) rather than the "$@-t" used
63454         everywhere else.
63455
63456         * modules/sysexits (Makefile.am): Replace literal occurrences
63457         of "sysexit.h" more readable, and more consistent, "$@".
63458
63459 2006-09-06  Bruno Haible  <bruno@clisp.org>
63460
63461         * modules/striconv: New file.
63462         * modules/xstriconv: New file.
63463         * MODULES.html.sh (Internationalization functions): Add striconv,
63464         xstriconv.
63465
63466 2006-09-06  Bruno Haible  <bruno@clisp.org>
63467
63468         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
63469         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
63470         not using libtool correctly.
63471
63472 2006-09-06  Bruno Haible  <bruno@clisp.org>
63473
63474         * lib/striconv.h: New file.
63475         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
63476         iconvstring.c.
63477         * lib/xstriconv.h: New file.
63478         * lib/xstriconv.c: New file.
63479
63480 2006-09-06  Bruno Haible  <bruno@clisp.org>
63481
63482         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
63483         lib_..._LDFLAGS.
63484
63485 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63486
63487         * lib/argz_.h: Sync from Libtool.
63488
63489         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
63490                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
63491
63492         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
63493
63494 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
63495
63496         * modules/trim: New file.
63497
63498 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
63499
63500         * lib/trim.h: New file.
63501         * lib/trim.c: New file.
63502
63503 2006-09-05  Bruno Haible  <bruno@clisp.org>
63504
63505         * MODULES.html.sh (String handling): Add trim.
63506
63507 2006-09-04  Karl Berry  <karl@gnu.org>
63508
63509         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
63510         until next release.
63511
63512 2006-09-03  Bruno Haible  <bruno@clisp.org>
63513
63514         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
63515         correctly.
63516
63517 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63518
63519         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
63520         not gl_GETLOADAVG.  Omit unneeded semicolons.
63521         Problems reported by Ralf Wildenhues in
63522         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
63523         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
63524         at the end, which is the usual gnulib style.
63525
63526         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
63527         of doing all the work ourselves.
63528         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
63529         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
63530
63531 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63532
63533         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
63534         Problem reported by Ralf Wildenhues in
63535         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
63536
63537         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
63538         HAVE_STRUCT_STATFS_F_FSTYPENAME.
63539
63540 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63541
63542         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
63543         yesterday's patch by changing test -n to test -z.
63544
63545 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63546
63547         * modules/getloadavg (Files): Add m4/getloadavg.m4.
63548         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
63549         the former is now obsolescent.
63550
63551         * modules/chdir-long (Depends-on): Add fcntl.
63552
63553 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63554
63555         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
63556         obsolescent, and programs should use gnulib instead.
63557         * m4/getloadavg.m4: New file, with contents taken from Autoconf
63558         but with prefixes changed.
63559
63560 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63561
63562         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
63563         or stdbool.h, because they might not exist while configuring.
63564
63565         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
63566         Don't include unistd.h or limits.h; not needed, since chdir-long.h
63567         does that for us.
63568         (O_DIRECTORY): Remove.
63569
63570 2006-08-31  Eric Blake  <ebb9@byu.net>
63571
63572         * gnulib-tool: Don't let emacs change spaces to TAB.
63573
63574 2006-08-31  Bruno Haible  <bruno@clisp.org>
63575
63576         * gnulib-tool: When calling func_import more than once, do it in a
63577         subshell.
63578         Reported by Eric Blake <ebb9@byu.net>.
63579
63580 2006-08-31  Bruno Haible  <bruno@clisp.org>
63581
63582         * gnulib-tool (nl): Remove variable.
63583         (sed_transform_lib_file): Use more robust test for config-h module.
63584         (func_import): Fix typo in 2006-08-25 patch.
63585
63586 2006-08-31  Bruno Haible  <bruno@clisp.org>
63587
63588         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
63589         specified, augment Makefile.am variables instead of assigning them.
63590
63591 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63592
63593         Work around a bug in both the Linux and SunOS 64-bit kernels:
63594         nanosleep mishandles sleeps for longer than 2**31 seconds.
63595         Problem reported by Frank v Waveren in
63596         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
63597         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
63598         Check for nanosleep bug.
63599         (LIB_NANOSLEEP): Append clock_gettime library if needed.
63600
63601 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63602
63603         Work around a bug in both the Linux and SunOS 64-bit kernels:
63604         nanosleep mishandles sleeps for longer than 2**31 seconds.
63605         Problem reported by Frank v Waveren in
63606         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
63607         * lib/nanosleep.c (BILLION): New constant.
63608         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
63609         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
63610         implementation.
63611
63612 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63613
63614         * modules/nanosleep (Depends-on): Add gettime.
63615
63616 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63617         and Simon Josefsson  <jas@extundo.com>
63618         and Oskar Liljeblad  <oskar@osk.mine.nu>
63619
63620         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
63621         * gnulib-tool (func_import): New license type 'unmodifiable license
63622         text'.
63623         * modules/fdl: Use it.  Longer description.
63624         * module/gpl, module/lgpl: New files.
63625
63626 2006-08-30  Jim Meyering  <jim@meyering.net>
63627
63628         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
63629         shadowing the parameter.
63630
63631 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63632
63633         Sync from Libtool:
63634
63635         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63636
63637         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
63638         sharing with gnulib.  Report by Eric Blake.
63639
63640 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63641
63642         * modules/isapipe: New file.
63643         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
63644
63645 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63646
63647         * modules/configmake (Makefile.am): Add a comment, and omit
63648         the CONFIGMAKE_ prefix from generated macro names.  Suggested
63649         by Bruno Haible.
63650
63651 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63652
63653         * m4/isapipe.m4: New file.
63654
63655 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63656
63657         * lib/isapipe.c, lib/isapipe.h: New files.
63658
63659 2006-08-29  Jim Meyering  <jim@meyering.net>
63660
63661         * modules/configmake (Makefile.am): Make configmake.h depend on
63662         Makefile.  Otherwise, a stale configmake.h could hang around.
63663
63664 2006-08-29  Eric Blake  <ebb9@byu.net>
63665
63666         * lib/error.c (error_at_line, print_errno_message): Match libc, after
63667         resolution of upstream bug 3044.
63668
63669 2006-08-29  Bruno Haible  <bruno@clisp.org>
63670
63671         * modules/localcharset (Depends-on): Add configmake.
63672         (Makefile.am): Remove setting of LIBDIR through DEFS.
63673
63674 2006-08-29  Bruno Haible  <bruno@clisp.org>
63675
63676         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
63677         defined.
63678
63679 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63680
63681         * modules/fcntl: New file.
63682         * modules/chdir-safer (Depends-on): Add fcntl.
63683         * modules/fts: Likewise.
63684         * modules/mkdir-p: Likewise.
63685
63686         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
63687         This undoes the most recent change, since we're now addressing the
63688         problem in a different way.
63689
63690         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
63691         into output, since the output might be called Makefile.am even
63692         if $makefile_name is something different.
63693         (func_import): Use $makefile_am rather than
63694         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
63695         empty.
63696
63697         * modules/inttypes (Files): Add m4/inttypes-h.m4.
63698
63699 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63700
63701         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
63702         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
63703         recent change to stdint.m4, since we're now addressing the problem in a
63704         different way.
63705
63706 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63707
63708         * m4/fcntl_h.m4: New file.
63709
63710 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63711
63712         * lib/fcntl_.h: New file.
63713         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
63714         the fcntl module.
63715         * lib/dirchownmod.c: Likewise.
63716         * lib/fts.c: Likewise.
63717
63718         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
63719         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
63720         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
63721         just before including <inttypes.h>, to avoid circular inclusion.
63722
63723 2006-08-28  Jim Meyering  <jim@meyering.net>
63724
63725         * doc/visibility.texi: Actually read and correct the grammar of the
63726         sentence affected by yesterday's change.
63727
63728 2006-08-28  Eric Blake  <ebb9@byu.net>
63729
63730         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
63731         needs wrapper.
63732
63733 2006-08-28  Eric Blake  <ebb9@byu.net>
63734
63735         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
63736
63737 2006-08-28  Eric Blake  <ebb9@byu.net>
63738
63739         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
63740
63741 2006-08-28  Bruno Haible  <bruno@clisp.org>
63742
63743         * modules/c-strstr: New file, from GNU gettext.
63744         * MODULES.html.sh (String handling): Add c-strstr.
63745
63746 2006-08-28  Bruno Haible  <bruno@clisp.org>
63747
63748         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
63749         macros.
63750         Reported by Eric Blake.
63751
63752 2006-08-28  Bruno Haible  <bruno@clisp.org>
63753
63754         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
63755         (VASNPRINTF): Return a string of length > INT_MAX without failing.
63756         * lib/vasprintf.c: Include errno.h, limits.h.
63757         (EOVERFLOW): New fallback definition.
63758         (vasprintf): Test here whether the string length is > INT_MAX.
63759         * lib/vsnprintf.c: Include errno.h, limits.h.
63760         (EOVERFLOW): New fallback definition.
63761         (vsnprintf): Fix bug when generated string was too long for the buffer.
63762         Test here whether the string length is > INT_MAX.
63763
63764 2006-08-28  Bruno Haible  <bruno@clisp.org>
63765
63766         * lib/inttypes_.h (SCNX*): Remove definitions.
63767         Reported by Eric Blake.
63768
63769 2006-08-28  Bruno Haible  <bruno@clisp.org>
63770
63771         * lib/c-strstr.h: New file, from GNU gettext.
63772         * lib/c-strstr.c: New file, from GNU gettext.
63773
63774 2006-08-28  Bruno Haible  <bruno@clisp.org>
63775
63776         * gnulib-tool: Reorder some statements.
63777
63778 2006-08-28  Bruno Haible  <bruno@clisp.org>
63779
63780         * gnulib-tool: New option --makefile-name.
63781         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
63782         $makefile_name.
63783         (func_import): Write $makefile_name to the cache file, and read it from
63784         there unless explicitly specified. Use $makefile_name as file name
63785         instead of Makefile.am. Adjust the recommendations accordingly.
63786
63787 2006-08-28  Bruno Haible  <bruno@clisp.org>
63788
63789         * gnulib-tool (func_verify_module): Check against misapplying patch.
63790
63791 2006-08-28  Bruno Haible  <bruno@clisp.org>
63792
63793         * gnulib-tool (func_relativize, func_relconcat): New functions.
63794         Give an error if --local-dir is given with --update.
63795         Remove trailing slashes from $local_gnulib_dir.
63796         (func_import): Store the relativized $local_gnulib_dir in
63797         gnulib-cache.m4, and read it from there if not specified explicitly.
63798
63799 2006-08-28  Bruno Haible  <bruno@clisp.org>
63800
63801         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
63802         is the current directory. Respect also $local_gnulib_dir.
63803
63804 2006-08-28  Bruno Haible  <bruno@clisp.org>
63805             Simon Josefsson  <jas@extundo.com>
63806
63807         BeOS portability.
63808         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
63809
63810 2006-08-27  Jim Meyering  <jim@meyering.net>
63811
63812         * doc/visibility.texi: Remove duplicate word: "pointer".
63813
63814 2006-08-26  Bruno Haible  <bruno@clisp.org>
63815
63816         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
63817         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
63818         (Makefile.am): Create inttypes.h from inttypes_.h.
63819         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
63820
63821         * modules/imaxabs: New file.
63822
63823         * modules/imaxdiv: New file.
63824
63825 2006-08-26  Bruno Haible  <bruno@clisp.org>
63826
63827         * m4/inttypes.m4: New file.
63828         * m4/_inttypes_h.m4: Remove file.
63829         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
63830         PRI_MACROS_BROKEN.
63831         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
63832
63833         * m4/imaxabs.m4: New file.
63834
63835         * m4/imaxdiv.m4: New file.
63836
63837 2006-08-26  Bruno Haible  <bruno@clisp.org>
63838
63839         * lib/inttypes_.h: New file.
63840         * lib/inttypes.h: Remove file.
63841         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
63842
63843         * lib/imaxabs.c: New file.
63844
63845         * lib/imaxdiv.c: New file.
63846
63847 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63848
63849         New config-h module, so that "make" output needn't be cluttered
63850         by -DHAVE_CONFIG_H.
63851         * MODULES.html.sh (Support for building libraries and executables):
63852         Add config-h.
63853         * modules/config-h: New file.
63854         * gnulib-tool (nl, sed_transform_lib_file): New vars.
63855         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
63856         the config-h module is used.
63857
63858         New configmake module, so that "make" output needn't be cluttered
63859         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
63860         * MODULES.html.sh (Support for building libraries and executables):
63861         Add configmake.
63862         * modules/configmake: New file.
63863
63864 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63865
63866         * m4/config-h.m4: New file.
63867
63868 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63869
63870         * config/srclist.txt: Add elisp-comp.
63871
63872 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63873
63874         * MODULES.html.sh (Support for building libraries and executables):
63875         Add elisp-comp.
63876         * build-aux/elisp-comp: New file.
63877         * modules/elisp-comp: New file.
63878
63879 2006-08-24  Bruno Haible  <bruno@clisp.org>
63880
63881         * gnulib-tool (func_create_testdir): Use non-default values of
63882         sourcebase and m4base.
63883
63884 2006-08-24  Bruno Haible  <bruno@clisp.org>
63885
63886         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
63887         HTML structure.
63888
63889 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
63890
63891         * modules/openat (Depends-on): Add lchown.
63892
63893 2006-08-23  Bruno Haible  <bruno@clisp.org>
63894
63895         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
63896         of gl_LOCK_EARLY instead of gl_LOCK.
63897
63898 2006-08-23  Bruno Haible  <bruno@clisp.org>
63899
63900         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
63901         on OSF/1 to no.
63902         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
63903
63904 2006-08-23  Bruno Haible  <bruno@clisp.org>
63905
63906         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
63907         as unusable.
63908
63909         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
63910         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
63911         (gl_LOCK): New macro.
63912
63913 2006-08-22  Simon Josefsson  <jas@extundo.com>
63914
63915         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
63916         to md5 module.
63917
63918 2006-08-22  Simon Josefsson  <jas@extundo.com>
63919
63920         * MODULES.html.sh: Add "Support for maintaining and release
63921         projects".
63922
63923         * build-aux/gnupload: New file, from coreutils.
63924
63925 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63926
63927         Avoid the need for AC_LIBSOURCES in m4 macros.
63928         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
63929         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
63930         * modules/check-version (EXTRA_DIST): Add check-version.h.
63931         * modules/crc (EXTRA_DIST): Add crc.h.
63932         * modules/des (EXTRA_DIST): Add des.h.
63933         * modules/gc (EXTRA_DIST): Add gc.h.
63934         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
63935         * modules/getline (EXTRA_DIST): Add getline.h.
63936         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
63937         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
63938         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
63939         * modules/md2 (EXTRA_DIST): Add md2.h.
63940         * modules/md4 (EXTRA_DIST): Add md4.h.
63941         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
63942         * modules/read-file (EXTRA_DIST): Add read-file.h.
63943         * modules/readline (EXTRA_DIST): Add readline.h.
63944         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
63945         rijndael-api-fst.h.
63946
63947 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63948
63949         * m4/rijndael.m4 (gl_ARCFOUR):
63950         * m4/arctwo.m4 (gl_ARCTWO):
63951         * m4/check-version.m4 (gl_CHECK_VERSION):
63952         * m4/crc.m4 (gl_CRC):
63953         * m4/des.m4 (gl_DES):
63954         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
63955         * m4/gc.m4 (gl_GC):
63956         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
63957         * m4/getline.m4 (gl_FUNC_GETLINE):
63958         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
63959         * m4/hmac-md5.m4 (gl_HMAC_MD5):
63960         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
63961         * m4/md2.m4 (gl_MD2):
63962         * m4/md4.m4 (gl_MD4):
63963         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
63964         * m4/read-file.m4 (gl_FUNC_READ_FILE):
63965         * m4/readline.m4 (gl_FUNC_READLINE):
63966         * m4/rijndael.m4 (gl_RIJNDAEL):
63967         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
63968         to get the necessary .h files and whatnot.
63969
63970 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63971
63972         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
63973         gnulib rather than the other way around.
63974         * config/srclistvars.sh (COREUTILS): Remove.
63975
63976 2006-08-22  Jim Meyering  <jim@meyering.net>
63977
63978         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
63979
63980         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
63981
63982 2006-08-22  Eric Blake  <ebb9@byu.net>
63983
63984         * modules/regexprops-generic: New file.
63985         * MODULES.html.sh (Support for building documentation): List it.
63986
63987 2006-08-22  Eric Blake  <ebb9@byu.net>
63988
63989         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
63990         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
63991         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
63992         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
63993
63994 2006-08-22  Bruno Haible  <bruno@clisp.org>
63995
63996         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
63997         and lib_LTLIBRARIES like the other lib_* variables.
63998
63999 2006-08-22  Bruno Haible  <bruno@clisp.org>
64000
64001         * build-aux/x-to-1.in: New file, from GNU gettext.
64002
64003 2006-08-22  Bruno Haible  <bruno@clisp.org>
64004
64005         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
64006         <utmpx.h> exists.
64007
64008 2006-08-22  Bruno Haible  <bruno@clisp.org>
64009
64010         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
64011         <utmpx.h> exists.
64012
64013 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
64014
64015         BeOS portability.
64016         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
64017         exist.
64018         Problem reported by Bruno Haible.
64019
64020 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
64021
64022         Avoid the need for AC_LIBSOURCES in m4 macros.
64023         * modules/acl (EXTRA_DIST): Add acl.h.
64024         * modules/argmatch (Files): Add m4/argmatch.m4.
64025         (configure.ac): Add gl_ARGMATCH.
64026         (EXTRA_DIST): Renamed from lib_SOURCES, for
64027         consistency with the other modules.  Remove argmatch.c.
64028         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
64029         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
64030         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
64031         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
64032         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
64033         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
64034         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
64035         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
64036         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
64037         * modules/closeout (EXTRA_DIST): Add closeout.h.
64038         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
64039         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
64040         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
64041         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
64042         dirname.h; remove basename.c and stripslash.c.
64043         * modules/exclude (EXTRA_DIST): Add exclude.h.
64044         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
64045         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
64046         * modules/file-type (EXTRA_DIST): Add file-type.h.
64047         * modules/filemode (EXTRA_DIST): Add filemode.h.
64048         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
64049         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
64050         * modules/fpending (EXTRA_DIST): Add __fpending.h.
64051         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
64052         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
64053         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
64054         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
64055         * modules/getdate (EXTRA_DIST): Add getdate.c.
64056         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
64057         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
64058         * modules/getpass (EXTRA_DIST): Add getpass.h.
64059         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
64060         * modules/group-member (EXTRA_DIST): Add group-member.h.
64061         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
64062         * modules/hash (EXTRA_DIST): Add hash.h.
64063         * modules/human (EXTRA_DIST): Add human.h.
64064         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
64065         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
64066         * modules/lchown (EXTRA_DIST): Add lchown.h.
64067         * modules/long-options (EXTRA_DIST): Add long-options.h.
64068         * modules/lstat (EXTRA_DIST): Add lstat.h.
64069         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
64070         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
64071         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
64072         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
64073         * modules/memxor (EXTRA_DIST): Add memxor.h.
64074         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
64075         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
64076         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
64077         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
64078         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
64079         * modules/physmem (EXTRA_DIST): Add physmem.h.
64080         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
64081         * modules/posixver (EXTRA_DIST): Add posixver.h.
64082         * modules/quote (EXTRA_DIST): Add quote.h.
64083         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
64084         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
64085         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
64086         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
64087         regex_internal.h regexec.c.
64088         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
64089         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
64090         * modules/same (EXTRA_DIST): Add same.h.
64091         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
64092         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
64093         * modules/savedir (EXTRA_DIST): Add savedir.h.
64094         * modules/sha1 (EXTRA_DIST): Add sha1.h.
64095         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
64096         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
64097         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
64098         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
64099         * modules/strdup (EXTRA_DIST): Add strdup.h.
64100         * modules/strftime (EXTRA_DIST): Add strftime.h.
64101         * modules/strndup (EXTRA_DIST): Add strndup.h.
64102         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
64103         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
64104         * modules/time_r (EXTRA_DIST): Add time_r.h.
64105         * modules/timespec (EXTRA_DIST): Add timespec.h.
64106         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
64107         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
64108         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
64109         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
64110         * modules/userspec (EXTRA_DIST): Add userspec.h.
64111         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
64112         * modules/utimens (EXTRA_DIST): Add utimens.h.
64113         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
64114         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
64115         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
64116         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
64117         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
64118         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
64119         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
64120         * modules/yesno (EXTRA_DIST): Add yesno.h.
64121
64122 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
64123
64124         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
64125
64126         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
64127         * m4/dev-ino.m4, same-inode.m4: Remove.
64128
64129         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
64130         * m4/acl.m4 (AC_FUNC_ACL):
64131         * m4/backupfile.m4 (gl_BACKUPFILE):
64132         * m4/c-strtod.m4 (gl_C99_STRTOLD):
64133         * m4/canon-host.m4 (gl_CANON_HOST):
64134         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
64135         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
64136         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
64137         * m4/cloexec.m4 (gl_CLOEXEC):
64138         * m4/close-stream.m4 (gl_CLOSE_STREAM):
64139         * m4/closeout.m4 (gl_CLOSEOUT):
64140         * m4/dirfd.m4 (gl_FUNC_DIRFD):
64141         * m4/dirname.m4 (gl_DIRNAME):
64142         * m4/exclude.m4 (gl_EXCLUDE):
64143         * m4/exitfail.m4 (gl_EXITFAIL):
64144         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
64145         * m4/file-type.m4 (gl_FILE_TYPE):
64146         * m4/filemode.m4 (gl_FILEMODE):
64147         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
64148         * m4/fpending.m4 (gl_FUNC_FPENDING):
64149         * m4/fprintftime.m4 (gl_FPRINTFTIME):
64150         * m4/fts.m4 (gl_FUNC_FTS):
64151         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
64152         * m4/getdate.m4 (gl_GETDATE):
64153         * m4/gethrxtime.m4 (gl_GETHRXTIME):
64154         * m4/getpagesize.m4 (gl_GETPAGESIZE):
64155         * m4/getpass.m4 (gl_FUNC_GETPASS):
64156         * m4/gettime.m4 (gl_GETTIME):
64157         * m4/getugroups.m4 (gl_GETUGROUPS):
64158         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
64159         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
64160         * m4/hard-locale.m4 (gl_HARD_LOCALE):
64161         * m4/hash.m4 (gl_HASH):
64162         * m4/idcache.m4 (gl_IDCACHE):
64163         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
64164         * m4/lchown.m4 (gl_FUNC_LCHOWN):
64165         * m4/long-options.m4 (gl_LONG_OPTIONS):
64166         * m4/lstat.m4 (gl_FUNC_LSTAT):
64167         * m4/md5.m4 (gl_MD5):
64168         * m4/memcasecmp.m4 (gl_MEMCASECMP):
64169         * m4/memcoll.m4 (gl_MEMCOLL):
64170         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
64171         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
64172         * m4/memxor.m4 (gl_MEMXOR):
64173         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
64174         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
64175         * m4/modechange.m4 (gl_MODECHANGE):
64176         * m4/mountlist.m4 (gl_MOUNTLIST):
64177         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64178         * m4/openat.m4 (gl_FUNC_OPENAT):
64179         * m4/pathmax.m4 (gl_PATHMAX):
64180         * m4/physmem.m4 (gl_PHYSMEM):
64181         * m4/posixtm.m4 (gl_POSIXTM):
64182         * m4/posixver.m4 (gl_POSIXVER):
64183         * m4/quote.m4 (gl_QUOTE):
64184         * m4/quotearg.m4 (gl_QUOTEARG):
64185         * m4/readtokens.m4 (gl_READTOKENS):
64186         * m4/readutmp.m4 (gl_READUTMP):
64187         * m4/regex.m4 (gl_REGEX):
64188         * m4/safe-read.m4 (gl_SAFE_READ):
64189         * m4/safe-write.m4 (gl_SAFE_WRITE):
64190         * m4/same.m4 (gl_SAME):
64191         * m4/save-cwd.m4 (gl_SAVE_CWD):
64192         * m4/savedir.m4 (gl_SAVEDIR):
64193         * m4/settime.m4 (gl_SETTIME):
64194         * m4/sha1.m4 (gl_SHA1):
64195         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
64196         * m4/stat-macros.m4 (gl_STAT_MACROS):
64197         * m4/stat-time.m4 (gl_STAT_TIME):
64198         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
64199         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
64200         * m4/strdup.m4 (gl_FUNC_STRDUP):
64201         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
64202         * m4/strndup.m4 (gl_FUNC_STRNDUP):
64203         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
64204         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
64205         * m4/time_r.m4 (gl_TIME_R):
64206         * m4/timespec.m4 (gl_TIMESPEC):
64207         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
64208         * m4/unlinkdir.m4 (gl_UNLINKDIR):
64209         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
64210         * m4/userspec.m4 (gl_USERSPEC):
64211         * m4/utimecmp.m4 (gl_UTIMECMP):
64212         * m4/utimens.m4 (gl_UTIMENS):
64213         * m4/xalloc.m4 (gl_XALLOC):
64214         * m4/xgetcwd.m4 (gl_XGETCWD):
64215         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
64216         * m4/xreadlink.m4 (gl_XREADLINK):
64217         * m4/xstrtod.m4 (gl_XSTRTOD):
64218         * m4/yesno.m4 (gl_YESNO):
64219         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
64220         to get the necessary .h files and whatnot.
64221
64222 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
64223             Bruno Haible  <bruno@clisp.org>
64224
64225         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
64226         /bin/sh understanding of '!' conditional negation.
64227
64228 2006-08-21  Jim Meyering  <jim@meyering.net>
64229
64230         * modules/openat (Depends-on): Really alphabetize.
64231
64232         * modules/acl (Depends-on): Add error and quote.
64233
64234         * check-module (find_included_lib_files): Add at-func.c to the
64235         ok-to-include-more-than-once white list.
64236
64237         * modules/openat (Depends-on): Add lstat.  Alphabetize.
64238
64239 2006-08-21  Bruno Haible  <bruno@clisp.org>
64240
64241         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64242         Emit a pkgdata_DATA variable only if some snippets add contents to it.
64243         Reported by Martin Lambers <marlam@marlam.de>.
64244
64245 2006-08-21  Bruno Haible  <bruno@clisp.org>
64246
64247         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
64248         specify an installation location, don't emit a noinst_LIBRARIES or
64249         noinst_LTLIBRARIES assignment.
64250
64251 2006-08-21  Bruno Haible  <bruno@clisp.org>
64252
64253         BeOS portability.
64254         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
64255         BeOS has mbrtowc() but no <wctype.h>.
64256
64257 2006-08-21  Bruno Haible  <bruno@clisp.org>
64258
64259         BeOS portability.
64260         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
64261         exist.
64262
64263 2006-08-21  Bruno Haible  <bruno@clisp.org>
64264
64265         BeOS portability.
64266         * lib/mbchar.h: Include <wctype.h> only if it exists.
64267
64268 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64269
64270         Remove files that are no longer needed by their respective modules.
64271         * m4/obstack.m4: Remove.
64272         * m4/strerror_r.m4: Remove.
64273         * m4/uint32_t.m4: Remove.
64274         * m4/uintptr_t.m4: Remove.
64275         * m4/ullong_max.m4: Remove.
64276         * m4/xstrtoimax.m4: Remove.
64277         * m4/xstrtoumax.m4: Remove.
64278
64279         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
64280         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
64281         dependencies now capture this.
64282
64283         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
64284         Do not use AC_LIBSOURCES, since gnulib modules now do this.
64285         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
64286         * m4/human.m4 (gl_HUMAN): Likewise.
64287         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
64288         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
64289
64290         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
64291
64292         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
64293         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
64294         stdint.
64295         * m4/human.m4 (gl_HUMAN): Likewise.
64296         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
64297         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
64298         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
64299         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
64300         * m4/xstrtol (gl_XSTRTOL): Likewise.
64301
64302         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
64303         AC_TYPE_LONG_LONG_INT.
64304         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
64305         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
64306         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
64307         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
64308
64309         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
64310         on stdbool.
64311
64312         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
64313         (gl_PREREQ_XSTRTOUL): Remove.
64314
64315         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
64316
64317         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
64318         mode.
64319
64320 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64321
64322         Add and change modules to make it easier for coreutils to use
64323         gnulib-tool.
64324         * modules/backupfile (Files): Remove m4/d-ino.m4.
64325         (Depends-on): Add d-ino.
64326         * modules/cycle-check (Depends-on): Add stdint.
64327         (lib_SOURCES): Add cycle-check.h.
64328         * modules/d-ino: New module.
64329         * modules/d-type: New module.
64330         * modules/error (Files): Remove m4/strerror_r.m4.
64331         * modules/filemode (Files): Add m4/st_dm_mode.m4.
64332         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
64333         m4/inttypes_h.m4, m4/uintmax_t.m4.
64334         (Depends-on): Add stdint.
64335         (lib_SOURCES): Add fsusage.h.
64336         * modules/getcwd (Files): Remove d-ino.m4.
64337         (Depends-on): Add d-ino.
64338         * modules/getndelim2 (Depends-on): Add stdint.
64339         * modules/glob (Files): Remove m4/d-type.m4.
64340         (Depends-on): Add d-type.
64341         * modules/host-os: New module.
64342         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
64343         m4/inttypes_h.m4, m4/uintmax_t.m4.
64344         * Depends-on: Add stdint.
64345         (lib_SOURCES): Add human.h.
64346         * modules/inttostr (Files): Remove m4/intmax_t.m4,
64347         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
64348         m4/uintmax_t.m4, m4/ulonglong.m4.
64349         (Depends-on): Add stdint.
64350         (EXTRA_DIST): Add inttostr.h.
64351         * modules/lchmod: New module.
64352         * modules/link-follow: New module.
64353         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
64354         (Depends-on): Add lchmod.
64355         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
64356         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
64357         (Depends-on): Add stdint.
64358         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
64359         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
64360         (Depends-on): Add stdint.
64361         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
64362         * modules/perl: New module.
64363         * modules/regex (Depends-on): Add stdint.
64364         * modules/rmdir-errno: New module.
64365         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
64366         m4/intmax_t.m4.
64367         (Depends-on): Add stdint.
64368         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
64369         m4/uintmax_t.m4.
64370         (Depends-on): Add stdint.
64371         * modules/unlink-busy: New module.
64372         * modules/utimecmp (Depends-on): Add stdint.
64373         * modules/uptime: New module.
64374         * modules/winsz-ioctl: New module.
64375         * modules/winsz-termios: New module.
64376         * modules/xnanosleep (Depends-on): Add nanosleep.
64377         * modules/ullong_max: Remove.
64378         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
64379         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
64380         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
64381         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
64382         (Depends-on): Add inttypes.
64383         (lib_SOURCES): Add xstrtol.h.
64384         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
64385         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
64386         * MODULES.html.sh: Move 'assert' into the assert section.
64387         Move 'dummy' into the linking section.
64388         Remove ullong_max.
64389         Add section for compatibility checks for POSIX:2001 functions,
64390         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
64391         winsz-ioctl, and winsz-termios into it.
64392         Add lchmod.
64393         Add top-level Misc section and put host-os, perl, and uptime
64394         into it.
64395
64396 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64397
64398         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
64399         now assume the stdint module.  Do not include inttypes.h.
64400         * lib/fsusage.h: Likewise.
64401         * lib/getndelim2.c: Likewise.
64402         * lib/human.h: Likewise.
64403         * lib/inttostr.h: Likewise.
64404         * lib/obstack.c: Likewise.
64405         * lib/regex_internal.h: Likewise.
64406         * lib/tempname.c: Likewise.
64407         * lib/utimecmp.c: Likewise.
64408         * lib/xstrtol.h: Likewise.
64409
64410         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
64411
64412         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
64413         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
64414         * lib/xtime.h: Likewise.
64415
64416 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64417
64418         * modules/openat (Files): Add lib/fchmodat.c.
64419         Fixes problem reported by Jay Youngman.
64420
64421 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64422
64423         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
64424         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
64425
64426 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
64427             Bruno Haible  <bruno@clisp.org>
64428
64429         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
64430         and is a script that invokes bison. Tighten the code. Add comments.
64431
64432 2006-08-18  Jim Meyering  <jim@meyering.net>
64433
64434         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
64435         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
64436         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
64437         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
64438
64439 2006-08-18  Bruno Haible  <bruno@clisp.org>
64440
64441         * modules/bison-i18n: New file.
64442         * MODULES.html.sh (Internationalization functions): Add it.
64443
64444 2006-08-18  Bruno Haible  <bruno@clisp.org>
64445
64446         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
64447         sys/statvfs.h. When getmntinfo was found, check its declaration and
64448         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
64449
64450 2006-08-18  Bruno Haible  <bruno@clisp.org>
64451
64452         * m4/bison-i18n.m4: New file, from bison.
64453
64454 2006-08-18  Bruno Haible  <bruno@clisp.org>
64455
64456         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
64457         (ME_DUMMY): Treat "kernfs" as a dummy.
64458         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
64459
64460 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
64461
64462         Update from coreutils.
64463
64464         2006-08-15  Jim Meyering  <jim@meyering.net>
64465
64466         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
64467
64468         2006-01-17  Jim Meyering  <jim@meyering.net>
64469
64470         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
64471
64472         2006-01-11  Jim Meyering  <jim@meyering.net>
64473
64474         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
64475         Check for the lchmod function.
64476
64477 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
64478
64479         Update from coreutils.
64480
64481         * lib/__fpending.h: Add copyright notice.
64482         * lib/fprintftime.h: Likewise.
64483         * lib/savedir.c: Use (C) in copyright notice.
64484         * lib/savedir.h: Likewise.
64485
64486         2006-08-15  Jim Meyering  <jim@meyering.net>
64487
64488         * lib/at-func.c: New file, with the logic of all emulated at-functions.
64489         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
64490         in support of the EXPECTED_ERRNO macro.
64491         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
64492         definitions.  Instead, define the appropriate symbols and include
64493         "at-func.c".
64494         * lib/mkdirat.c (mkdirat): Likewise.
64495         * lib/fchmodat.c (fchmodat): Likewise.
64496         (ENOSYS): Remove definition.
64497         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
64498         it.  Don't include "unistd--.h" -- it wasn't ever used.
64499
64500         2006-01-17  Jim Meyering  <jim@meyering.net>
64501
64502         Rewrite fts.c not to change the current working directory,
64503         by using openat, fstatat, fdopendir, etc..
64504
64505         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
64506         (HAVE_OPENAT_SUPPORT): Define.
64507         [_LIBC] (fchdir): Don't undef or define; no longer used.
64508         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
64509         Now, this `function' always succeeds, and consumes its file descriptor
64510         parameter -- so callers must not close such FDs.  Update callers.
64511         (diropen_fd, opendirat, cwd_advance_fd): New functions.
64512         (diropen): Add parameter, SP.  Adjust all callers.
64513         Implement using diropen_fd, rather than open.
64514         (fts_open): Initialize new member, fts_cwd_fd.
64515         Remove fts_rft-setting code.
64516         (fts_close): Close fts_cwd_fd, if necessary.
64517         (__opendir2): Define in terms of opendir or opendirat,
64518         depending on whether the FST_NOCHDIR flag is set.
64519         (fts_build): Since fts_safe_changedir consumes its FD, and since
64520         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
64521         and close the dup'd file descriptor upon failure.
64522         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
64523         (fts_safe_changedir): Tweak semantics to reflect that this function
64524         now calls cwd_advance_fd and hence consumes its FD argument.
64525         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
64526         [struct FTS] (fts_rft): Remove now-unused member.
64527         [struct FTS] (fts_cycle.state): Improve comment.
64528
64529         * lib/openat.c (openat_needs_fchdir): New function.
64530         * lib/openat.h (openat_needs_fchdir): Declare it.
64531
64532 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
64533
64534         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
64535         Problem and fix reported by Pádraig Brady in
64536         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
64537
64538 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64539
64540         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
64541
64542 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64543
64544         * lib/memcoll.c (memcoll): Optimize for the common case where the
64545         arguments are bytewise equal.
64546
64547 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64548
64549         * doc/regexprops-generic.texi: Add a copyright notice.
64550
64551 2006-08-15  Bruno Haible  <bruno@clisp.org>
64552
64553         * modules/tmpdir (License): Change to LGPL.
64554
64555 2006-08-15  Bruno Haible  <bruno@clisp.org>
64556
64557         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
64558         module.
64559
64560 2006-08-14  Simon Josefsson  <jas@extundo.com>
64561
64562         * config/srclist.txt: Add gnupload.
64563
64564 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64565
64566         Change copyright notice from LGPL 2 to GPL 2, since that's the
64567         standard form used in the gnulib repository.
64568         * tests/test-lock.c: Likewise.
64569         * tests/test-stdint.c: Likewise.
64570         * tests/test-tls.c: Likewise.
64571
64572         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
64573         prelude-manager.  User shorter URLs for GNU projects, without '?'.
64574         Add copyright notice.
64575
64576         * check-module: Add copyright notice.  Output a copyright
64577         notice if "--version" is specified.
64578         * modules/COPYING: New file.
64579         * tests/test-getaddrinfo.c: Add copyright notice.
64580         * tests/test-verify.c: Likewise.
64581
64582 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64583
64584         Change copyright notice from LGPL 2 to GPL 2, since that's the
64585         standard form used in the gnulib repository.
64586         * lib/lock.c: LGPL -> GPL.
64587         * lib/lock.h: Likewise.
64588         * lib/strnlen1.c: Likewise.
64589         * lib/strnlen1.h: Likewise.
64590         * lib/tls.c: Likewise.
64591         * lib/tls.h: Likewise.
64592         * lib/tmpdir.c: Likewise.
64593
64594         * lib/TODO: Remove; this belongs only in coreutils.
64595
64596 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64597
64598         Add copyright notices to long-enough files that lack them, since
64599         otherwise the files aren't clearly free.  Use the same notice that
64600         getdate.texi already uses.
64601         * doc/alloca-opt.texi: Add copyright notice.
64602         * doc/alloca.texi: Likewise.
64603         * doc/ctime.texi: Likewise.
64604         * doc/functions.texi: Likewise.
64605         * doc/gcd.texi: Likewise.
64606         * doc/gnulib-tool.texi: Likewise.
64607         * doc/inet_ntoa.texi: Likewise.
64608         * doc/visibility.texi: Likewise.
64609
64610         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
64611         * doc/quote.texi: Add copyright notice.
64612
64613         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
64614         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
64615         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
64616         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
64617         is now obsolete, and give a pointer to the Sun list.
64618         Add copyright notice.
64619
64620 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64621
64622         * config/srclistvars.sh: Add copyright notice.
64623
64624 2006-08-14  Eric Blake  <ebb9@byu.net>
64625
64626         Import the following change from libc:
64627
64628         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
64629
64630         Upstream bug 2997.
64631         * lib/misc/error.c: Add space between program name and message if file
64632         name is missing.
64633
64634 2006-08-12  Karl Berry  <karl@gnu.org>
64635
64636         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
64637         remove, these originate in gnulib now.
64638
64639 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64640
64641         * doc/Makefile (standards.info standards.html standards.dvi):
64642         Also depend on make-stds.texi.
64643
64644 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64645
64646         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
64647         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
64648
64649         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
64650         in wchar_t.  Problem reported by Eric Blake.
64651
64652         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
64653         LEN is smaller than SIZE.  Suggested by Bruno Haible.
64654         Also, help the compiler to keep LEN in a register.
64655
64656 2006-08-11  Eric Blake  <ebb9@byu.net>
64657
64658         * users.txt: Sort.  Add tar.
64659
64660 2006-08-11  Bruno Haible  <bruno@clisp.org>
64661
64662         * users.txt: New file.
64663
64664 2006-08-11  Bruno Haible  <bruno@clisp.org>
64665
64666         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
64667         before <wchar.h>. Needed for OSF/1 and BSD/OS.
64668
64669 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64670
64671         * modules/snprintf (Depends-on): Remove minmax.
64672         (Maintainer): Add self and Bruno.
64673
64674 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64675
64676         * lib/.cppi-disable: Add snprintf.h, socket_.h.
64677         * lib/snprintf.c: Include <errno.h> and <limits.h>.
64678         (EOVERFLOW): Define if the system does not.
64679         Do not include "minmax.h"; it wasn't used.
64680         (snprintf): Don't assume size_t promotes to an unsigned type.
64681         Fix bug when generated string was too long for the buffer: the
64682         buffer's contents are supposed to be the initial prefix of the
64683         output.  Don't assume vasnprintf returns EOVERFLOW if the size
64684         exceeds INT_MAX; do the check ourselves.
64685
64686         Import the following changes from libc:
64687
64688         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
64689
64690         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
64691         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
64692         set wc to the byte which couldn't be converted.
64693         (re_string_reconstruct): Don't clear valid_raw_len before calling
64694         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
64695         tip_context using re_string_context_at.
64696
64697         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
64698
64699         * lib/posix/regex.h: g++ still cannot handled [restrict].
64700
64701         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
64702
64703         * lib/posix/regex.h: Remove special handling for VMS.
64704
64705 2006-08-10  Jim Meyering  <jim@meyering.net>
64706
64707         * modules/same-inode: New module.
64708         * modules/dev-ino: New module.
64709         * modules/cycle-check: Depend on these modules, rather than simply
64710         including their .h files.
64711         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
64712         required via m4/cycle-check.m4.
64713         * modules/same: Depend on new same-inode module, rather than
64714         including same-inode.h.
64715         * modules/chdir-safer: New file.
64716
64717         * modules/chown (Depends-on): Add stat-macros.
64718
64719 2006-08-10  Jim Meyering  <jim@meyering.net>
64720
64721         * m4/cycle-check.m4: New file.
64722         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
64723         * m4/dev-ino.m4, m4/same-inode.m4: New files.
64724
64725 2006-08-10  Eric Blake  <ebb9@byu.net>
64726
64727         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
64728         in from original proposal.
64729
64730 2006-08-10  Eric Blake  <ebb9@byu.net>
64731         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
64732
64733         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
64734         namespace.
64735
64736 2006-08-10  Bruno Haible  <bruno@clisp.org>
64737
64738         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
64739         as well.
64740
64741 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64742
64743         Sync from coreutils.
64744
64745         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
64746
64747         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
64748         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
64749
64750 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64751
64752         * modules/restrict: Remove; no longer needed now that we assume
64753         Autoconf 2.59 or later.
64754         * MODULES.html.sh: Remove 'restrict'.
64755         * modules/argp (Depends-on): Remove 'restrict'.
64756         * modules/base64 (Depends-on): Likewise.
64757         * modules/gc (Depends-on): Likewise.
64758         * modules/getaddrinfo (Depends-on): Likewise.
64759         * modules/glob (Depends-on): Likewise.
64760         * modules/inet_ntop (Depends-on): Likewise.
64761         * modules/inet_pton (Depends-on): Likewise.
64762         * modules/memxor (Depends-on): Likewise.
64763         * modules/regex (Depends-on): Likewise.
64764         * modules/strtok_r (Depends-on): Likewise.
64765         * modules/time_r (Depends-on): Likewise.
64766
64767 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64768
64769         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
64770         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
64771         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
64772         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
64773         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
64774         * m4/memxor.m4 (gl_MEMXOR): Likewise.
64775         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
64776         gl_C_RESTRICT replaced by AC_C_RESTRICT.
64777
64778         Merge from coreutils.
64779         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
64780         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
64781         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64782         * m4/time_r.m4 (gl_TIME_R): Likewise.
64783
64784 2006-08-09  Karl Berry  <karl@gnu.org>
64785
64786         * config/srclist.txt: no more gettext-tools, per Bruno.
64787
64788 2006-08-08  Eric Blake  <ebb9@byu.net>
64789
64790         * modules/verror: New module.
64791         * MODULES.html.sh: Document it.
64792
64793 2006-08-08  Eric Blake  <ebb9@byu.net>
64794
64795         * lib/verror.h, lib/verror.c: New files.
64796
64797 2006-08-08  Eric Blake  <ebb9@byu.net>
64798
64799         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
64800         verror_at_line output complies with GNU Coding Standards even when
64801         file is NULL.
64802
64803 2006-08-07  Bruno Haible  <bruno@clisp.org>
64804
64805         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
64806         versions of AIX.
64807         Reported by Ralf Wildenhues.
64808
64809 2006-08-07  Bruno Haible  <bruno@clisp.org>
64810
64811         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
64812         in an AC_DEFUN. Needed so that the autoconf snippets can use
64813         AC_REQUIRE.
64814
64815 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64816
64817         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64818         Initialize pkgdata_DATA.
64819         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
64820         overriding it.
64821
64822 2006-08-06  Eric Blake  <ebb9@byu.net>
64823
64824         * lib/error.h: Fold in some upstream changes from glibc.
64825         * lib/error.c: Likewise.
64826
64827 2006-08-04  Bruno Haible  <bruno@clisp.org>
64828
64829         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64830         Make the mostlyclean-local rule depend on mostlyclean-generic.
64831         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
64832
64833 2006-07-31  Bruno Haible  <bruno@clisp.org>
64834
64835         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
64836         <stdlib.h>, <string.h>.
64837
64838 2006-07-30  Bruno Haible  <bruno@clisp.org>
64839
64840         * modules/readlink (License): Change to LGPL.
64841
64842 2006-07-30  Bruno Haible  <bruno@clisp.org>
64843
64844         * modules/javaversion (Makefile.am): Distribute javaversion.java and
64845         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
64846         set PKGDATADIR to point to it.
64847
64848 2006-07-30  Bruno Haible  <bruno@clisp.org>
64849
64850         * modules/csharpexec (configure.ac): Comment out macro invocation.
64851         * modules/javaexec (configure.ac): Likewise.
64852         * modules/javacomp-script (configure.ac): Likewise.
64853
64854         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
64855
64856 2006-07-30  Bruno Haible  <bruno@clisp.org>
64857
64858         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
64859         linked-list.
64860
64861 2006-07-30  Bruno Haible  <bruno@clisp.org>
64862
64863         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
64864
64865 2006-07-30  Bruno Haible  <bruno@clisp.org>
64866
64867         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64868         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
64869         get removed.
64870
64871 2006-07-29  Bruno Haible  <bruno@clisp.org>
64872
64873         Make it possible for gnulib-tool to work with locally modified or
64874         augmented gnulib repositories.
64875         * gnulib-tool (func_usage): Document --local-dir option.
64876         (local_gnulib_dir): New variable.
64877         Handle --local-dir option.
64878         (func_lookup_file): New function.
64879         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
64880         (func_get_description, func_get_filelist, func_get_description,
64881         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
64882         func_get_automake_snippet, func_get_include_directive,
64883         func_get_license, func_get_maintainer): Use func_lookup_file.
64884         (func_import, func_create_testdir): Use func_lookup_file.
64885
64886 2006-07-29  Bruno Haible  <bruno@clisp.org>
64887
64888         * modules/setenv (Depends-on): Add unistd.
64889
64890 2006-07-29  Bruno Haible  <bruno@clisp.org>
64891
64892         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
64893
64894 2006-07-29  Bruno Haible  <bruno@clisp.org>
64895
64896         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
64897
64898 2006-07-29  Bruno Haible  <bruno@clisp.org>
64899
64900         * gnulib-tool (import, update): If there is no Makefile.am, look at
64901         aclocal.m4, instead of bailing out.
64902
64903 2006-07-29  Bruno Haible  <bruno@clisp.org>
64904
64905         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
64906         Categorize the options by when they are useful.
64907
64908 2006-07-29  Bruno Haible  <bruno@clisp.org>
64909
64910         * gnulib-tool (func_usage): Document option --no-libtool.
64911         Handle option --no-libtool.
64912         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
64913         for changed semantics of $libtool variable.
64914         (func_import): Likewise. If libtool is not used, show this through
64915         an option --no-libtool.
64916         (func_create_testdir): Update.
64917
64918 2006-07-29  Bruno Haible  <bruno@clisp.org>
64919
64920         * gnulib-tool (func_import): Extend error message about missing
64921         --doc-base.
64922
64923 2006-07-29  Bruno Haible  <bruno@clisp.org>
64924
64925         * gnulib-tool (func_import): Don't create the $docbase directory if
64926         there is no file to store there.
64927
64928 2006-07-29  Bruno Haible  <bruno@clisp.org>
64929
64930         * gnulib-tool (autoconf_minversion): If a --dir option is given and
64931         relevant, look for configure.ac there, not in the current directory.
64932         Also use a simple search for AC_PREREQ, not "autoconf --trace".
64933
64934 2006-07-29  Bruno Haible  <bruno@clisp.org>
64935
64936         * gnulib-tool (SORT): New variable.
64937         (func_usage): Undocument --assume-autoconf option.
64938         Remove --assume-autoconf option handling.
64939         (autoconf_minversion): Determine from the contents of configure.ac.
64940         (func_import): Remove autoconf_minversion handling.
64941         Suggested by Eric Blake.
64942
64943 2006-07-29  Bruno Haible  <bruno@clisp.org>
64944
64945         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
64946
64947 2006-07-29  Bruno Haible  <bruno@clisp.org>
64948
64949         * config/srclist.txt (*setenv.[ch]): Remove rules.
64950
64951 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64952
64953         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
64954
64955 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64956
64957         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
64958         arpa/inet.h.
64959
64960 2006-07-28  Simon Josefsson  <jas@extundo.com>
64961
64962         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
64963         * modules/inet_pton (Depends-on): Likewise.
64964
64965 2006-07-28  Simon Josefsson  <jas@extundo.com>
64966
64967         * m4/netinet_in_h.m4: New file.
64968
64969 2006-07-28  Simon Josefsson  <jas@extundo.com>
64970
64971         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
64972         #include's.
64973
64974 2006-07-28  Simon Josefsson  <jas@extundo.com>
64975
64976         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
64977         #include's.
64978
64979 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
64980
64981         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
64982         setgid on directories only if they set these bits.
64983         * lib/modechange.h: Remove obsolete comment about masks.
64984
64985 2006-07-28  Eric Blake  <ebb9@byu.net>
64986
64987         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
64988         macro expansion.
64989
64990 2006-07-28  Bruno Haible  <bruno@clisp.org>
64991
64992         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
64993
64994 2006-07-28  Bruno Haible  <bruno@clisp.org>
64995
64996         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
64997
64998 2006-07-28  Bruno Haible  <bruno@clisp.org>
64999
65000         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
65001         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
65002         Define fallbacks.
65003         Avoids link error on FreeBSD 4.x.
65004         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
65005
65006         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
65007         encoding.
65008         * lib/mbswidth.c (iswcntrl): Likewise.
65009
65010 2006-07-27  Bruno Haible  <bruno@clisp.org>
65011
65012         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
65013         test.
65014
65015 2006-07-27  Bruno Haible  <bruno@clisp.org>
65016
65017         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
65018         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
65019         defined.
65020
65021 2006-07-26  Eric Blake  <ebb9@byu.net>
65022
65023         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
65024
65025 2006-07-26  Eric Blake  <ebb9@byu.net>
65026
65027         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
65028         like mingw that lack mkstemp.
65029         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
65030         avoid compilation warning on mingw.
65031
65032 2006-07-26  Bruno Haible  <bruno@clisp.org>
65033
65034         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
65035         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
65036         INT_FAST*_MIN, INTPTR_MIN.
65037
65038 2006-07-25  Bruno Haible  <bruno@clisp.org>
65039
65040         * modules/version-etc (Depends-on): Add stdarg.
65041
65042 2006-07-25  Bruno Haible  <bruno@clisp.org>
65043
65044         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
65045         complex commands.
65046
65047 2006-07-25  Bruno Haible  <bruno@clisp.org>
65048
65049         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
65050         defined in <stdarg.h> or config.h.
65051
65052 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
65053
65054         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
65055         (gl_STDIO_SAFER): Remove.
65056
65057 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
65058
65059         * MODULES.html.sh (File stream based Input/Output):
65060         Add fopen-safer, tmpfile-safer; remove stdio-safer.
65061         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
65062         * modules/fopen-safer, modules/tmpfile-safer: New files.
65063         * modules/stdio-safer: Remove.
65064
65065 2006-07-24  Bruno Haible  <bruno@clisp.org>
65066
65067         * modules/tmpdir: New file.
65068         * MODULES.html.sh (File system functions): Add it.
65069
65070 2006-07-24  Bruno Haible  <bruno@clisp.org>
65071
65072         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
65073         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
65074
65075 2006-07-24  Bruno Haible  <bruno@clisp.org>
65076
65077         * modules/clean-temp: New file.
65078
65079 2006-07-24  Bruno Haible  <bruno@clisp.org>
65080
65081         * m4/tmpdir.m4: New file, from GNU gettext.
65082
65083 2006-07-24  Bruno Haible  <bruno@clisp.org>
65084
65085         * lib/tmpdir.h: New file, from GNU gettext.
65086         * lib/tmpdir.c: New file, from GNU gettext.
65087
65088 2006-07-24  Bruno Haible  <bruno@clisp.org>
65089
65090         * lib/clean-temp.h: New file, from GNU gettext.
65091         * lib/clean-temp.c: New file, from GNU gettext.
65092
65093 2006-07-23  Eric Blake  <ebb9@byu.net>
65094
65095         * modules/stdio-safer (Files): Add tmpfile-safer.c.
65096         (Depends-on): Add binary-io.
65097
65098 2006-07-23  Eric Blake  <ebb9@byu.net>
65099
65100         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
65101
65102 2006-07-23  Eric Blake  <ebb9@byu.net>
65103
65104         * lib/tmpfile-safer.c: New file.
65105         * lib/stdio-safer.h (fopen_safer): Add prototype.
65106         * lib/stdio--.h (tmpfile): Make safer.
65107
65108 2006-07-23  Bruno Haible  <bruno@clisp.org>
65109
65110         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
65111         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
65112         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
65113         gl_linked_remove_at): Use it.
65114
65115 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65116         and Simon Josefsson <jas@extundo.com>
65117
65118         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
65119
65120         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
65121
65122 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
65123
65124         * modules/close-stream: New file.
65125         * modules/closeout (Description): Make it clear that it exits
65126         with a diagnostic on error.
65127         (Depends-on): Add close-stream.  Remove fpending, stdbool.
65128         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
65129
65130 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
65131
65132         * m4/close-stream.m4: New file.
65133
65134 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
65135
65136         * lib/close-stream.c, lib/close-stream.h: New files.
65137
65138 2006-07-22  Bruno Haible  <bruno@clisp.org>
65139
65140         Merge from GNU gettext 0.15.
65141
65142         2006-05-01  Bruno Haible  <bruno@clisp.org>
65143
65144                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
65145
65146         2006-07-22  Bruno Haible  <bruno@clisp.org>
65147
65148                 * modules/javaversion: New file.
65149                 * MODULES.html.sh (Java): Add javaversion.
65150
65151         2006-03-12  Bruno Haible  <bruno@clisp.org>
65152
65153                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
65154
65155         2005-12-04  Bruno Haible  <bruno@clisp.org>
65156
65157                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
65158                 (untested).
65159
65160         2006-06-21  Bruno Haible  <bruno@clisp.org>
65161
65162                 Avoid warnings from recent versions of mcs.
65163                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
65164                 -o, -L, -r any more. Use options documented since mcs-1.0
65165                 instead. Similarly for -g.
65166
65167         2005-12-04  Bruno Haible  <bruno@clisp.org>
65168
65169                 * build-aux/csharpcomp.sh.in: Suffix for resources is
65170                 .resources, not .resource.
65171
65172         2005-07-09  Bruno Haible  <bruno@clisp.org>
65173
65174                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
65175                 add a .dll suffix.
65176                 Reported by Mark Junker <mjscod@gmx.de>.
65177
65178         2006-07-22  Bruno Haible  <bruno@clisp.org>
65179
65180                 * modules/gettext: Upgrade to gettext-0.15.
65181                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
65182                 m4/visibility.m4.
65183                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
65184
65185 2006-07-22  Bruno Haible  <bruno@clisp.org>
65186
65187         Merge from GNU gettext 0.15.
65188
65189         2006-03-25  Bruno Haible  <bruno@clisp.org>
65190
65191                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
65192
65193         2006-07-21  Bruno Haible  <bruno@clisp.org>
65194
65195                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
65196                 "1.1".
65197
65198         2006-05-09  Bruno Haible  <bruno@clisp.org>
65199
65200                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
65201                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
65202                 for the conftestver execution.
65203
65204         2006-05-01  Bruno Haible  <bruno@clisp.org>
65205
65206                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
65207                 optional target-version argument. Verify that the compiler
65208                 groks source of the specified source-version, or add -source
65209                 option as necessary. Verify that the compiler produces
65210                 bytecode in the specified target-version, or add -target and
65211                 -source options as necessary. Make the result of the test
65212                 available as variable CONF_JAVAC. Also log error output in
65213                 config.log.
65214
65215         2006-03-11  Bruno Haible  <bruno@clisp.org>
65216
65217                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
65218
65219         2006-05-09  Bruno Haible  <bruno@clisp.org>
65220
65221                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
65222                 CLASSPATH_SEPARATOR to a semicolon.
65223
65224         2006-03-12  Bruno Haible  <bruno@clisp.org>
65225
65226                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
65227                 available as variable CONF_JAVA, for subsequent autoconf
65228                 tests. Also log error output in config.log.
65229
65230         2006-07-19  Bruno Haible  <bruno@clisp.org>
65231
65232                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
65233                 that getline works on glibc2 systems. Needed to avoid trouble
65234                 in relocatable.c.
65235                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
65236
65237         2005-12-04  Bruno Haible  <bruno@clisp.org>
65238
65239                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
65240                 launcher (untested).
65241
65242         2005-12-04  Bruno Haible  <bruno@clisp.org>
65243
65244                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
65245
65246         2006-07-22  Bruno Haible  <bruno@clisp.org>
65247
65248                 * gettext.m4: Update from GNU gettext-0.15.
65249                 * nls.m4: Likewise.
65250                 * po.m4: Likewise.
65251                 * inttypes-pri.m4: Likewise.
65252                 * inttypes-h.m4: Renamed from inttypes.m4.
65253                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
65254
65255 2006-07-22  Bruno Haible  <bruno@clisp.org>
65256
65257         Merge from GNU gettext 0.15.
65258
65259         2005-07-05  Bruno Haible  <bruno@clisp.org>
65260
65261                 * printf-args.c (printf_fetchargs): Work around broken
65262                 definition of wint_t on mingw.
65263
65264         2005-02-12  Bruno Haible  <bruno@clisp.org>
65265
65266                 * xallocsa.h: Add extern "C" for C++.
65267
65268         2006-05-17  Bruno Haible  <bruno@clisp.org>
65269
65270                 Cygwin portability.
65271                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
65272
65273         2006-04-30  Bruno Haible  <bruno@clisp.org>
65274
65275                 * progreloc.c: Include <mach-o/dyld.h> if available.
65276                 (find_executable): Use _NSGetExecutablePath when possible.
65277
65278         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
65279
65280                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
65281                 function.
65282
65283         2005-12-29  Bruno Haible  <bruno@clisp.org>
65284
65285                 * progreloc.c (set_program_name_and_installdir): Fix
65286                 compilation error.
65287
65288         2005-12-04  Bruno Haible  <bruno@clisp.org>
65289
65290                 Cygwin portability.
65291                 * progreloc.c: Include <windows.h> also on Cygwin.
65292                 (find_executable): Add support for Cygwin.
65293                 (set_program_name_and_installdir): Handle also platforms with
65294                 nonempty EXEEXT.
65295
65296         2006-07-11  Bruno Haible  <bruno@clisp.org>
65297
65298                 * javacomp.c: Fix a comment.
65299                 Reported by Jim Meyering.
65300
65301         2006-04-30  Bruno Haible  <bruno@clisp.org>
65302
65303                 * javacomp.h (compile_java_class): Add source_version,
65304                 target_version arguments.
65305                 * javacomp.c: Rewritten to choose only a compiler that
65306                 respects the specified source_version and target_version.
65307
65308         2006-06-27  Bruno Haible  <bruno@clisp.org>
65309
65310                 Assume correct S_ISDIR macro.
65311                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
65312
65313         2006-07-22  Bruno Haible  <bruno@clisp.org>
65314
65315                 * javaversion.h: New file, from GNU gettext.
65316                 * javaversion.c: New file, from GNU gettext.
65317                 * javaversion.java: New file, from GNU gettext.
65318                 * javaversion.class: New file, from GNU gettext.
65319
65320         2006-05-17  Bruno Haible  <bruno@clisp.org>
65321
65322                 Cygwin portability.
65323                 * javaexec.c (execute_java_class): Test for jview program
65324                 also on Cygwin.
65325
65326         2006-04-09  Bruno Haible  <bruno@clisp.org>
65327
65328                 * fatal-signal.c: Don't include string.h.
65329                 (at_fatal_signal): Use a copying loop instead of memcpy.
65330
65331         2005-12-04  Bruno Haible  <bruno@clisp.org>
65332
65333                 * csharpexec.c: Add support for 'clix' launcher (untested).
65334                 (execute_csharp_using_sscli): New function.
65335                 (execute_csharp_program): Call it.
65336
65337         2006-06-21  Bruno Haible  <bruno@clisp.org>
65338
65339                 Avoid warnings from recent versions of mcs.
65340                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
65341                 -o, -L, -r any more. Use options documented since mcs-1.0
65342                 instead. Similarly for -g.
65343
65344         2005-07-09  Bruno Haible  <bruno@clisp.org>
65345
65346                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
65347                 add a .dll suffix.
65348                 Reported by Mark Junker <mjscod@gmx.de>.
65349
65350         2006-06-17  Bruno Haible  <bruno@clisp.org>
65351
65352                 * config.charset: Update for NetBSD 3.0.
65353
65354         2006-05-17  Bruno Haible  <bruno@clisp.org>
65355
65356                 Cygwin portability.
65357                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
65358
65359         2006-05-16  Bruno Haible  <bruno@clisp.org>
65360
65361                 * localcharset.c [CYGWIN]: Include <windows.h>.
65362                 (get_charset_aliases): For Cygwin, return the same CPxxx
65363                 aliases list as under WIN32.
65364                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
65365                 the environment variables. Fall back to GetACP().
65366
65367         2006-04-05  Bruno Haible  <bruno@clisp.org>
65368
65369                 * config.charset: Update Juan Manuel Guerrero's address.
65370
65371         2005-02-12  Bruno Haible  <bruno@clisp.org>
65372
65373                 * allocsa.h: Add extern "C" for C++.
65374
65375         2005-02-10  Bruno Haible  <bruno@clisp.org>
65376
65377                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
65378                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
65379
65380         2006-07-22  Bruno Haible  <bruno@clisp.org>
65381
65382                 * gettext.h: Update to GNU gettext-0.15.
65383
65384 2006-07-22  Bruno Haible  <bruno@clisp.org>
65385
65386         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
65387         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
65388         lib-prefix.m4, longdouble.m4, ssize_t.m4.
65389
65390 2006-07-21  Eric Blake  <ebb9@byu.net>
65391
65392         * modules/stdlib-safer: New file.
65393         * MODULES.html.sh (File stream based Input/Output): Add
65394         stdlib-safer.
65395
65396 2006-07-21  Eric Blake  <ebb9@byu.net>
65397
65398         * lib/stdlib-safer.h: New file from coreutils, required by
65399         stdlib--.h.
65400
65401 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
65402
65403         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
65404
65405 2006-07-20  Bruno Haible  <bruno@clisp.org>
65406
65407         * gnulib-tool: Recognize new option --assume-autoconf.
65408         (autoconf_minversion): New variable.
65409         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
65410
65411 2006-07-20  Bruno Haible  <bruno@clisp.org>
65412
65413         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
65414
65415 2006-07-19  Derek R. Price  <derek@ximbiot.com>
65416
65417         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
65418         Reindent and repaginate.
65419
65420 2006-07-19  Derek Price  <derek@ximbiot.com>
65421
65422         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
65423         Correct grammar.
65424
65425 2006-07-17  Bruno Haible  <bruno@clisp.org>
65426
65427         * modules/list: New file.
65428         * modules/array-list: New file.
65429         * modules/carray-list, modules/carray-list-tests: New files.
65430         * modules/linked-list, modules/linked-list-tests: New files.
65431         * modules/avltree-list, modules/avltree-list-tests: New files.
65432         * modules/rbtree-list, modules/rbtree-list-tests: New files.
65433         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
65434         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
65435         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
65436         * modules/oset: New file.
65437         * modules/array-oset: New file.
65438         * modules/avltree-oset, modules/avltree-oset-tests: New files.
65439         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
65440         * tests/test-carray_list.c: New file.
65441         * tests/test-linked_list.c: New file.
65442         * tests/test-avltree_list.c: New file.
65443         * tests/test-rbtree_list.c: New file.
65444         * tests/test-linkedhash_list.c: New file.
65445         * tests/test-avltreehash_list.c: New file.
65446         * tests/test-rbtreehash_list.c: New file.
65447         * tests/test-avltree_oset.c: New file.
65448         * tests/test-rbtree_oset.c: New file.
65449         * MODULES.html.sh (Container data structures): New section.
65450
65451 2006-07-17  Bruno Haible  <bruno@clisp.org>
65452
65453         * m4/gl_list.m4: New file.
65454
65455 2006-07-17  Bruno Haible  <bruno@clisp.org>
65456
65457         * lib/gl_list.h: New file.
65458         * lib/gl_list.c: New file.
65459         * lib/gl_array_list.h: New file.
65460         * lib/gl_array_list.c: New file.
65461         * lib/gl_carray_list.h: New file.
65462         * lib/gl_carray_list.c: New file.
65463         * lib/gl_linked_list.h: New file.
65464         * lib/gl_linked_list.c: New file.
65465         * lib/gl_anylinked_list1.h: New file.
65466         * lib/gl_anylinked_list2.h: New file.
65467         * lib/gl_avltree_list.h: New file.
65468         * lib/gl_avltree_list.c: New file.
65469         * lib/gl_anyavltree_list1.h: New file.
65470         * lib/gl_anyavltree_list2.h: New file.
65471         * lib/gl_rbtree_list.h: New file.
65472         * lib/gl_rbtree_list.c: New file.
65473         * lib/gl_anyrbtree_list1.h: New file.
65474         * lib/gl_anyrbtree_list2.h: New file.
65475         * lib/gl_anytree_list1.h: New file.
65476         * lib/gl_anytree_list2.h: New file.
65477         * lib/gl_linkedhash_list.h: New file.
65478         * lib/gl_linkedhash_list.c: New file.
65479         * lib/gl_anyhash_list1.h: New file.
65480         * lib/gl_anyhash_list2.h: New file.
65481         * lib/gl_avltreehash_list.h: New file.
65482         * lib/gl_avltreehash_list.c: New file.
65483         * lib/gl_rbtreehash_list.h: New file.
65484         * lib/gl_rbtreehash_list.c: New file.
65485         * lib/gl_anytreehash_list1.h: New file.
65486         * lib/gl_anytreehash_list2.h: New file.
65487
65488         * lib/gl_oset.h: New file.
65489         * lib/gl_oset.c: New file.
65490         * lib/gl_array_oset.h: New file.
65491         * lib/gl_array_oset.c: New file.
65492         * lib/gl_avltree_oset.h: New file.
65493         * lib/gl_avltree_oset.c: New file.
65494         * lib/gl_rbtree_oset.h: New file.
65495         * lib/gl_rbtree_oset.c: New file.
65496         * lib/gl_anytree_oset.h: New file.
65497
65498 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
65499
65500         * m4/mkancesdirs.m4: New file.
65501         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
65502         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
65503         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
65504         it.
65505
65506 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
65507
65508         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
65509         * lib/mkancesdirs.h: New files.
65510         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
65511         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
65512         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
65513         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
65514         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
65515         callers changed.  Revamp internals significantly, by not
65516         attempting to create directories that are temporarily more
65517         permissive than the final results.  Do not attempt to use
65518         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
65519         This removes some race conditions, fixes some bugs, and simplifies
65520         things.  Use new dirchownmod function to do owner and mode changes.
65521         * lib/mkdir-p.h: Likewise.
65522         * lib/modechange.c (octal_to_mode): New function.
65523         (struct mode_change): New member mentioned.
65524         (make_node_op_equals): New arg mentioned.  All callers changed.
65525         (mode_compile): Keep track of which mode bits the user has explicitly
65526         mentioned.
65527         (mode_adjust): New arg DIR, so that we implement the X op correctly.
65528         New arg PMODE_BITS, to keep track of which mode bits the user
65529         mentioned; it treats S_ISUID and S_ISGID speciall.
65530         All callers changed.
65531         * lib/modechange.h: Likewise.
65532
65533 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
65534
65535         * MODULES.html.sh: Add mkancestors.
65536         * modules/mkancesdirs: New module.
65537         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
65538         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
65539         The chdir-safer and afs files are now orphans; I'll remove them
65540         unless someone speaks up.
65541         Add lib/dirchownmod.c, lib/dirchownmod.h.
65542         (Depends-on): Remove alloca, chown, save-cwd, dirname.
65543         Add lchown, mkancesdirs.
65544         (Maintainer): Add self.
65545
65546 2006-07-15  Karl Berry  <karl@gnu.org>
65547
65548         * gnulib-tool: help message wording/arrangement.
65549
65550 2006-07-14  Simon Josefsson  <jas@extundo.com>
65551
65552         * doc/gnulib.texi (Libtool and Windows): New section.
65553
65554 2006-07-12  Simon Josefsson  <jas@extundo.com>
65555
65556         * modules/gendocs (License): Fix license, approved by Karl.
65557
65558 2006-07-12  Eric Blake  <ebb9@byu.net>
65559
65560         * MODULES.html.sh: Add gendocs.
65561
65562 2006-07-11  Eric Blake  <ebb9@byu.net>
65563
65564         * modules/fdl: New module, to install doc/fdl.texi.
65565         * MODULES.html.sh: Add new section for documentation modules.
65566         * gnulib-tool: Avoid space-tab.
65567         (--doc-base): New option, to manage files from doc.
65568
65569 2006-07-11  Eric Blake  <ebb9@byu.net>
65570
65571         * m4/absolute-header.m4: Fix comments to match recent change.
65572
65573 2006-07-11  Eric Blake  <ebb9@byu.net>
65574
65575         * gnulib-tool: List --doc-base before --tests-base.
65576
65577 2006-07-11  Derek R. Price  <derek@ximbiot.com>
65578
65579         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
65580
65581 2006-07-11  Bruno Haible  <bruno@clisp.org>
65582
65583         * README: Mention where to put documentation.
65584
65585 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65586
65587         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
65588
65589 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
65590
65591         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
65592         to stdint.m4.
65593
65594 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
65595
65596         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
65597         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
65598         "no/such/file/stdint.h" when there is no such file, so that
65599         the resulting C code can be parsed by dodgy compilers.
65600         Problems reported by Bob Proulx.
65601
65602 2006-07-10  Derek R. Price  <derek@ximbiot.com>
65603
65604         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
65605         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
65606         macros into the GNU _D_EXACT_NAMLEN.
65607         * lib/savedir.c:  Likewise.
65608         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
65609
65610 2006-07-10  Derek R. Price  <derek@ximbiot.com>
65611         and Paul Eggert  <eggert@cs.ucla.edu>
65612
65613         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
65614         * m4/savedir.m4:
65615         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
65616         macros into the GNU _D_EXACT_NAMLEN.
65617
65618 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65619
65620         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
65621         around the absolute name, to work around a problem with the HP-UX
65622         11.23 native C compiler, reported by Bob Proulx.
65623
65624 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65625
65626         * doc/maintain.texi, make-stds.texi: Sync from
65627         <http://savannah.gnu.org/projects/gnustandards>.
65628
65629 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65630
65631         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
65632
65633 2006-07-09  Jim Meyering  <jim@meyering.net>
65634
65635         * m4/glob.m4: Remove a doubled word in a comment.
65636
65637 2006-07-09  Jim Meyering  <jim@meyering.net>
65638
65639         * lib/argp-pv.c: Remove a doubled word in a comment.
65640         * lib/check-version.c (check_version): Likewise.
65641         * lib/javacomp.c (compile_java_class): Likewise.
65642
65643 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
65644
65645         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
65646         for the benefit of people using Autoconf 2.60.  If you want to
65647         support older Autoconf versions you can copy m4/onceonly_2_57.m4
65648         (or m4/onceonly.m4, if pre-2.57) manually.
65649
65650 2006-07-08  Jim Meyering  <jim@meyering.net>
65651
65652         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
65653         comment.
65654         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
65655         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
65656         comment.
65657
65658 2006-07-08  Jim Meyering  <jim@meyering.net>
65659
65660         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
65661
65662 2006-07-07  Simon Josefsson  <jas@extundo.com>
65663
65664         * tests/test-crc.c: Change expected crc value, the test vector
65665         were probably computed using the old broken crc.c?
65666
65667 2006-07-06  Simon Josefsson  <jas@extundo.com>
65668
65669         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
65670         now the canonical place for the M4 file).
65671
65672         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
65673         from the sys_socket dependency now.
65674
65675         * modules/inet_pton (Files): Ditto.
65676
65677         * modules/inet_ntop (Files): Ditto.
65678
65679 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65680
65681         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
65682         not gl_PREREQ_GETUSERSHELL.
65683
65684 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65685
65686         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
65687         with only one argument, for Autoconf 2.60.
65688         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
65689         expand to nothing, so add a shell command to avoid syntax error.
65690         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
65691
65692 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65693
65694         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
65695
65696 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65697
65698         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
65699         no longer needed.  Check for isblank decl.
65700         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
65701         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
65702         of existence.
65703
65704 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65705
65706         * lib/getloadavg.c: Use __VMS, not VMS.
65707         * lib/getopt.c: Likewise.
65708         * lib/getpagesize.h: Likewise.
65709         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
65710         and probably does not work.
65711
65712 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65713
65714         * lib/.cppi-disable: Add wcwidth.
65715         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
65716         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
65717         (ISGRAPH): Remove.  All uses changed to isgraph.
65718         (FOLD) [!defined _LIBC]: Remove special case.
65719         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
65720         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
65721         HAVE_ISBLANK.
65722         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
65723         case.
65724
65725 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
65726
65727         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
65728         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
65729         brackets.  Other minor changes to suppress some compiler
65730         warnings.
65731
65732 2006-07-06  Derek R. Price  <derek@ximbiot.com>
65733         and Paul Eggert  <eggert@cs.ucla.edu>
65734
65735         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
65736         of invoking obsolescent AC_HEADER_DIRENT macro.
65737         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
65738         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
65739         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
65740         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
65741         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
65742         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
65743         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
65744         * m4/readdir.m4: Remove; no longer needed.
65745
65746 2006-07-06  Derek R. Price  <derek@ximbiot.com>
65747         and Paul Eggert  <eggert@cs.ucla.edu>
65748
65749         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
65750         Don't worry about this obsolete case any more.
65751         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
65752         directories.
65753         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
65754         worry about this obsolete case any more.
65755         * lib/fts.c: Likewise.
65756         * lib/getcwd.c: Likewise.
65757         * lib/glob.h: Likewise.
65758         * lib/savedir.c: Likewise.
65759
65760 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65761
65762         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
65763         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
65764         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
65765         needed.
65766         All uses removed.
65767         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65768         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
65769         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
65770         needed.
65771         * m4/getdate.m4 (gl_GETDATE): Likewise.
65772         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
65773         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
65774         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
65775         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65776         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
65777         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65778         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
65779         needed.
65780
65781 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65782
65783         * lib/memcasecmp.c: Include <limits.h>.
65784         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
65785         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
65786         Don't assume isdigit succeeds only on '0' through '9'.
65787
65788 2006-07-05  Eric Blake  <ebb9@byu.net>
65789
65790         * modules/getaddrinfo (Depends-on): Add snprintf.
65791
65792 2006-07-05  Eric Blake  <ebb9@byu.net>
65793
65794         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
65795         to avoid 'header present but could not be compiled' on cygwin.
65796
65797 2006-07-05  Eric Blake  <ebb9@byu.net>
65798
65799         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
65800         missing from netdb.h.
65801         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
65802
65803 2006-07-05  Derek R. Price  <derek@ximbiot.com>
65804
65805         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
65806         no longer needed.
65807         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
65808         * m4/getdate.m4 (gl_GETDATE): Likewise.
65809         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
65810         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
65811         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
65812         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65813         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65814
65815 2006-07-05  Derek R. Price  <derek@ximbiot.com>
65816
65817         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
65818         All uses of is_space replaced by isspace.
65819         * lib/exit.h: Don't talk about STDC_HEADERS.
65820         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
65821         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
65822         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
65823         replaced by isprint etc.
65824         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
65825         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
65826         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
65827         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
65828         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
65829         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
65830
65831 2006-07-05  Bruno Haible  <bruno@clisp.org>
65832
65833         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
65834         the function exists, before testing against AIX.
65835         Reported by Martin Lambers <marlam@marlam.de>.
65836
65837 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
65838
65839         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
65840         From Mark D. Baushke.
65841
65842 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
65843
65844         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
65845         to the absolute name, not just one, to bypass Sun C 5.8's
65846         "warning: #include of /usr/include/... may be non-portable".
65847
65848 2006-07-04  Eric Blake  <ebb9@byu.net>
65849
65850         * modules/dirname-tests: New test module.
65851         * tests/test-dirname.c: New file, replacing dirname.c
65852         TEST_DIRNAME section that was recently deleted.
65853
65854 2006-07-04  Bruno Haible  <bruno@clisp.org>
65855
65856         Assume ANSI C header files and <ctype.h> functions.
65857         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
65858         (mbsnwidth): Use isprint, iscntrl instead.
65859
65860 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65861
65862         Merge from coreutils.
65863         * MODULES.html.sh: Add xstrtold.
65864         * modules/xstrtold: New file.
65865         * modules/cycle-check (Files): Add lib/same-inode.h.
65866         * modules/dirname (Files): Add m4/double-slash-root.m4.
65867         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
65868         * modules/mkdir-p (Files): Add lib/same-inode.h.
65869         * modules/same (Files): Add lib/same-inode.h.
65870
65871 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65872
65873         * m4/absolute-header.m4: Renamed from full-header-path.m4.
65874         This is to keep the terminology clean; POSIX talks about
65875         "absolute pathnames", not "full pathnames", but the GNU
65876         Coding Standards say to use "path" for something else;
65877         so use "absolute" to keep both sides happy.
65878         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
65879         Set gl_absolute_header, not gl_full_header_path.
65880         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
65881         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
65882         All uses changed.
65883
65884         Merge from coreutils.
65885
65886         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
65887
65888         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
65889         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
65890         want to require the building of c-strtod.o.
65891         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
65892         needs -lm directly.
65893         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
65894
65895         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
65896
65897         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
65898         --as-needed option if available.  Problem reported by Albert Chin in
65899         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
65900         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
65901         cc merely issues a bunch of annoying warnings for --as-needed
65902         (this problem was reported by Bob Proulx).  Also, try linking with
65903         -lm to detect a bug in binutils 2.16 (this problem was reported
65904         by Ralf Wildenhues).
65905
65906         2006-06-18  Jim Meyering  <jim@meyering.net>
65907
65908         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
65909         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
65910         macro.
65911         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
65912         also check for glibc-2.4's abort-inducing bug.
65913
65914         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
65915         Low-probability clean-up should be to use rmdir to get rid of
65916         the just-created directory, not unlink.
65917
65918         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
65919         configure fail, and request a bug report to inform us about it.
65920         Add a comment that, barring reports to the contrary, in 2007 we'll
65921         assume ftruncate is universally available.
65922
65923         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
65924
65925         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
65926
65927         2006-03-12  Jim Meyering  <jim@meyering.net>
65928
65929         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
65930         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
65931         * m4/same.m4 (gl_SAME): Likewise.
65932         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
65933
65934         2006-03-11  Eric Blake  <ebb9@byu.net>
65935
65936         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
65937         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
65938         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
65939         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
65940
65941 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65942
65943         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
65944         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
65945         reported by Mark D. Baushke, one in
65946         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
65947
65948         Merge from coreutils.
65949
65950         * lib/.cppi-disable: Add stdint_.h.
65951         * lib/.cvsignore: Add stdint.h.
65952
65953         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
65954
65955         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
65956         both double and long double versions.
65957         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
65958         * lib/xstrtold.c: New file.
65959         * lib/xstrtod.h (xstrtold): New decl.
65960
65961         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
65962
65963         * lib/filemode.c (setst): Remove.
65964         (strmode): Rewrite to avoid setst.  This makes the code shorter,
65965         (arguably) clearer, and the generated code is a bit smaller on my
65966         Debian GNU/Linux stable x86 host.
65967
65968         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
65969
65970         * lib/filemode.c: Include "filemode.h" first, to test the interface.
65971         Assume that filemode.h includes sys/types.h and sys/stat.h.
65972         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
65973         (ftypelet): Reorder to put common cases first, for efficiency.
65974         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
65975         to do 'M'.
65976         (strmode): Renamed from mode_string, and now stores 12 bytes instead
65977         of 10, for compatibility with FreeBSD.  All callers changed.
65978         (filemodestring): Now stores 12 bytes instead of 10, and sets file
65979         types that can't be deduced solely from st_mode.  First arg is now a
65980         const pointer.
65981         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
65982         (strmode): Renamed from mode_string.
65983         (filemodestring): New decl.
65984         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
65985         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
65986         needed.
65987         (S_ISPORT, S_ISWHT): New macros, if not already defined.
65988
65989         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
65990
65991         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
65992         fsusage.h now does that.  Include fsusage.h first, to test interface.
65993         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
65994         at most one method (the old code could have generated decls that
65995         didn't conform to C89, not that this was ever exercised).
65996         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
65997
65998         2006-03-19  Jim Meyering  <jim@meyering.net>
65999
66000         Work even in a chroot where d_ino values for entries in "/"
66001         don't match the stat.st_ino values for the same names.
66002         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
66003         number, iterate through all entries again, using lstat instead.
66004         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
66005         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
66006
66007         * lib/getcwd.c (__getcwd): Clarify a comment.
66008         Use memcpy in place of a call to strcpy.
66009
66010         2006-03-12  Jim Meyering  <jim@meyering.net>
66011
66012         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
66013         matches that of the current directory (which we're about to chdir ".."
66014         out of), then save the dev-ino of the parent, instead.
66015
66016         * lib/same-inode.h (SAME_INODE): New file/macro.
66017         * lib/chdir-safer.c (SAME_INODE): Remove definition.
66018         Include "same-inode.h", instead.
66019         * lib/same.c: Likewise.
66020         * lib/cycle-check.h: Include "same-inode.h".
66021         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
66022         * lib/cycle-check.c (SAME_INODE): Remove definition.
66023         * lib/root-dev-ino.h: Include "same-inode.h".
66024
66025         2006-03-11  Eric Blake  <ebb9@byu.net>
66026
66027         * lib/same.c (same_name): s/base_name/last_component/
66028         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
66029         * lib/filenamecat.c (file_name_concat): Likewise.
66030
66031         2006-03-11  Eric Blake  <ebb9@byu.net>,
66032                     Paul Eggert  <eggert@cs.ucla.edu>
66033
66034         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
66035         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
66036         drive prefix.
66037         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
66038         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
66039         (last_component): New method.
66040         * lib/dirname.c (dir_len): Determine when drive letters need a
66041         subsequent slash.  Preserve // when it is special.
66042         (dir_name): Don't append dot when drive letter is absolute.
66043         [TEST_DIRNAME]: Move into a full-blown gnulib test.
66044         * lib/basename.c (base_name): New semantics - malloc the result.
66045         Preserve // when it is special.  Preserve relative files that look
66046         like drive letters.
66047         (base_len): Preserve // when it is special.
66048         (last_component): New method, similar to old base_name semantics.
66049         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
66050         base_name.  Strip redundant slashes from ///.
66051
66052 2006-07-03  Jim Meyering  <jim@meyering.net>
66053
66054         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
66055         macro is used before the first cycle_check call.
66056
66057 2006-07-03  Eric Blake  <ebb9@byu.net>
66058
66059         * modules/dirname (Depends-on): Add xstrndup.
66060
66061 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
66062
66063         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
66064         test cases, so that config.log is a bit easier to follow.
66065
66066 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
66067
66068         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
66069         both are 64 bits, since this seems to be the tradition, and this
66070         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
66071         we ever run into a host that prefers long long to long in this
66072         case, we'll need another configure-time test.  Problem reported by
66073         Jim Meyering.
66074
66075 2006-07-02  Eric Blake  <ebb9@byu.net>
66076
66077         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
66078
66079 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
66080
66081         * modules/inttypes (Depends-on): No longer depends on stdint.
66082         * modules/stdint (Description): Say more about assumptions.
66083         Say that the fast types might differ.  Say macros are used.
66084         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
66085         (Makefile.am): Revise list of substituted symbols to match
66086         new stdint.m4.
66087         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
66088         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
66089         * tests/test-stdint.c (verify_same_types)
66090         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
66091         the code conforms to C99/C89.
66092         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
66093         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
66094
66095 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
66096
66097         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
66098         but fix a bug, by requiring at least 64 bits.
66099         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
66100         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
66101         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
66102         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
66103
66104         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
66105         changes.  Make 2.59 a prerequisite.  Check and substitute for
66106         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
66107         inttypes.h.  Do not use special include files; just use the
66108         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
66109         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
66110         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
66111         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
66112         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
66113         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
66114         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
66115         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
66116         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
66117         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
66118         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
66119         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
66120         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
66121         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
66122         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
66123         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
66124         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
66125         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
66126         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
66127         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
66128         WINT_MAX.  Check for C99 conformance more strictly, by detecting
66129         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
66130         not check for things that C99 does not require, e.g., int8_t.  If
66131         a test isn't needed unless <stdint.h> isn't working, and is
66132         unlikely to be needed for any other reason, then don't do it
66133         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
66134         size_t, since we assume C89 freestanding at least.  Do not check
66135         for sig_atomic_t, wchar_t, or wint_t, since the code now does
66136         the right thing even if the types are not defined.  Instead use:
66137         (gl_STDINT_TYPE_PROPERTIES): New macro.
66138         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
66139         testing whether <sys/types.h> clashes, as Autoconf does this for
66140         us now.  All uses removed.
66141         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
66142         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
66143         (gl_CHECK_TYPE_SAME):
66144         Remove; no longer needed.
66145         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
66146         exists, since we'll return 0 anyway in that case.
66147         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
66148
66149 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
66150
66151         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
66152         possible collision with system files.
66153         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
66154         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
66155         WCHAR_MIN and WCHAR_MAX in this case.
66156         (<stddef.h>): Do not include; no longer needed.
66157         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
66158         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
66159         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
66160         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
66161         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
66162         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
66163         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
66164         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
66165         !defined(__c99))]: Include in this case too, since it's harmless
66166         now.
66167         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
66168         dangerous to do so.
66169         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
66170         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
66171         (_STDINT_MIN, _STDINT_MAX): New macros.
66172         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
66173         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
66174         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
66175         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
66176         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
66177         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
66178         macros, not typedefs; this simplifies things quite a bit.
66179         Use long int for all types narrower than int64_t.
66180         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
66181         Define in terms of long long int or int64_t or long int,
66182         not int64_t or int32_t.  This saves some compile-time testing.
66183         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
66184         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
66185         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
66186         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
66187         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
66188         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
66189         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
66190         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
66191         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
66192         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
66193         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
66194         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
66195         undef any previous version and define our own version, for
66196         simplicity and consistency with the new macros for types.
66197         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
66198         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
66199         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
66200         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
66201         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
66202         @WINT_T_SUFFIX@ to keep things simple here.
66203         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
66204         Simplify by assuming typical 8/16/32/64 host, since we're
66205         already doing that elsewhere anyway.
66206         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
66207         and assume long long int is 64 bits if available.  This
66208         speeds up 'configure'.
66209
66210 2006-07-01  Eric Blake  <ebb9@byu.net>
66211
66212         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
66213         Reported by Andreas Buening.
66214
66215 2006-07-01  Eric Blake  <ebb9@byu.net>
66216
66217         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
66218
66219 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
66220
66221         * lib/getaddrinfo.c: fixed typo
66222
66223 2006-06-29  Jim Meyering  <jim@meyering.net>
66224
66225         * modules/strftime (Maintainer): Add my name, since with the
66226         FPRINTFTIME changes strftime.c has forked from glibc.
66227
66228 2006-06-29  Eric Blake  <ebb9@byu.net>
66229
66230         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
66231
66232 2006-06-29  Eric Blake  <ebb9@byu.net>
66233
66234         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
66235
66236 2006-06-29  Eric Blake  <ebb9@byu.net>
66237
66238         * lib/stat_.h: New file.
66239
66240 2006-06-29  Eric Blake  <ebb9@byu.net>
66241
66242         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
66243         unused static function.
66244
66245 2006-06-29  Eric Blake  <ebb9@byu.net>
66246
66247         * doc/functions.texi (Function Portability): Document missing lstat
66248         on mingw.
66249
66250 2006-06-29  Eric Blake  <ebb9@byu.net>
66251
66252         * MODULES.html.sh: Add sys_stat.
66253         * modules/sys_stat: New module.
66254         * modules/mkstemp (Depends-on): Add sys_stat.
66255
66256 2006-06-29  Derek R. Price  <derek@ximbiot.com>
66257
66258         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
66259
66260 2006-06-29  Derek R. Price  <derek@ximbiot.com>
66261
66262         * m4/c-bs-a.m4: Removed.
66263
66264 2006-06-29  Derek R. Price  <derek@ximbiot.com>
66265
66266         * lib/strftime.c: Assume strftime() exists.
66267
66268 2006-06-29  Derek Price  <derek@ximbiot.com>
66269
66270         * modules/c-bs-a: Removed - \a is C89.
66271         * MODULES.html.sh: Remove c-bs-a.
66272
66273 2006-06-29  Bruno Haible  <bruno@clisp.org>
66274
66275         * modules/wcwidth (License): Change to LGPL.
66276
66277 2006-06-28  Simon Josefsson  <jas@extundo.com>
66278
66279         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
66280         on _WIN32.
66281
66282         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
66283         getnameinfo.
66284
66285 2006-06-28  Simon Josefsson  <jas@extundo.com>
66286
66287         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
66288
66289 2006-06-28  Simon Josefsson  <jas@extundo.com>
66290
66291         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
66292         functions there.  It will succeed on Windows XP, but on Windows
66293         2000 and (presumably) earlier, it will fail, and use the internal
66294         re-implementation.
66295         (use_win32_p): New function.
66296         (getaddrinfo): Use strtoul on servname, to support numeric ports.
66297         Support AI_NUMERICSERV to disable getservbyname.
66298         (getnameinfo): New function, only supports
66299         NI_NUMERICHOST|NI_NUMERICSERV for now.
66300
66301         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
66302         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
66303         getnameinfo.
66304
66305 2006-06-28  Eric Blake  <ebb9@byu.net>
66306
66307         * modules/wcwidth: New file.
66308         * modules/mbchar (Depends-on): Add wcwidth.
66309         * modules/mbswidth (Depends-on): Add wcwidth.
66310         * MODULES.html.sh: Add wcwidth.
66311
66312 2006-06-28  Eric Blake  <ebb9@byu.net>
66313
66314         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
66315         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
66316
66317 2006-06-28  Eric Blake  <ebb9@byu.net>
66318
66319         * lib/xvasprintf.h: Fix comments.
66320
66321 2006-06-28  Eric Blake  <ebb9@byu.net>
66322
66323         * lib/mbchar.h (wcwidth): Include wcwidth.h.
66324         * lib/mbswidth.c (wcwidth): Move from here...
66325         * lib/wcwidth.h: ...to this new file.
66326
66327 2006-06-28  Derek R. Price  <derek@ximbiot.com>
66328
66329         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
66330
66331         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
66332         it's obsolete.
66333         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
66334
66335 2006-06-28  Derek R. Price  <derek@ximbiot.com>
66336
66337         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
66338         Autoconf 2.60 says this stuff was obsolete.
66339
66340 2006-06-28  Bruno Haible  <bruno@clisp.org>
66341
66342         * modules/wcwidth (Files): Add m4/wchar_t.m4.
66343
66344 2006-06-28  Bruno Haible  <bruno@clisp.org>
66345
66346         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
66347         gt_TYPE_WCHAR_T.
66348
66349 2006-06-28  Bruno Haible  <bruno@clisp.org>
66350
66351         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
66352         declaration for wcwidth.
66353         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
66354
66355 2006-06-28  Bruno Haible  <bruno@clisp.org>
66356
66357         * lib/mkdtemp.c [MINGW]: Include <io.h>.
66358         (mkdir): Define using _mkdir.
66359
66360 2006-06-28  Bruno Haible  <bruno@clisp.org>
66361
66362         * lib/getaddrinfo.h: Fix POSIX URL.
66363         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
66364         _WIN32.
66365         (use_win32_p): Make static.
66366         (getaddrinfo): Reject service name if it is empty or does not consist
66367         solely of decimal digits, or if its value is > 65535.
66368         (getnameinfo): Remove useless casts.
66369
66370 2006-06-27  Simon Josefsson  <jas@extundo.com>
66371
66372         * modules/sys_select: New file, suggested by Bruno Haible, Paul
66373         Eggert and Martin Lambers.
66374
66375 2006-06-27  Simon Josefsson  <jas@extundo.com>
66376
66377         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
66378         Eggert and Martin Lambers.
66379
66380 2006-06-27  Bruno Haible  <bruno@clisp.org>
66381
66382         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
66383         result to 0, not to empty.
66384         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
66385
66386 2006-06-27  Bruno Haible  <bruno@clisp.org>
66387
66388         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
66389
66390 2006-06-26  Simon Josefsson  <jas@extundo.com>
66391
66392         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
66393         present.
66394
66395 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
66396
66397         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
66398         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
66399         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
66400
66401 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
66402
66403         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
66404
66405 2006-06-26  Bruno Haible  <bruno@clisp.org>
66406
66407         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
66408
66409 2006-06-26  Bruno Haible  <bruno@clisp.org>
66410
66411         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
66412
66413 2006-06-26  Bruno Haible  <bruno@clisp.org>
66414
66415         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
66416         SGI C compiler in pre-C99 mode.
66417         Suggested by Mark D. Baushke and Larry Jones.
66418
66419 2006-06-26  Bruno Haible  <bruno@clisp.org>
66420
66421         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
66422         WCHAR_MAX.
66423         Reported by Mark D. Baushke and Larry Jones.
66424
66425 2006-06-26  Bruno Haible  <bruno@clisp.org>
66426
66427         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
66428         in pre-C99 mode.
66429         Suggested by Mark D. Baushke and Larry Jones.
66430
66431 2006-06-23  Simon Josefsson  <jas@extundo.com>
66432             Bruno Haible  <bruno@clisp.org>
66433
66434         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
66435         Emit mostlyclean-local rule.
66436         (func_emit_tests_Makefile_am): Likewise.
66437         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
66438
66439 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
66440
66441         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
66442
66443 2006-06-23  Bruno Haible  <bruno@clisp.org>
66444
66445         * tests/test-stdint.c: Update to match ISO C 99 Technical
66446         Corrigendum 1.
66447
66448 2006-06-23  Bruno Haible  <bruno@clisp.org>
66449
66450         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
66451
66452 2006-06-23  Bruno Haible  <bruno@clisp.org>
66453
66454         * lib/stdint_.h: Treat IRIX like OpenBSD.
66455
66456 2006-06-23  Bruno Haible  <bruno@clisp.org>
66457
66458         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
66459         ISO C 99 Technical Corrigendum 1.
66460
66461 2006-06-22  Simon Josefsson  <jas@extundo.com>
66462
66463         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
66464         MinGW.
66465
66466 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
66467
66468         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
66469         needed.  Some compiler complained about some of them.  Problem reported
66470         by Larry Jones in
66471         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
66472
66473 2006-06-21  Simon Josefsson  <jas@extundo.com>
66474
66475         * tests/test-getaddrinfo.c: New file.
66476
66477         * modules/getaddrinfo-tests: New file.
66478
66479         * MODULES.html.sh: Add inet_pton.
66480
66481         * modules/inet_pton: New file.
66482
66483 2006-06-21  Simon Josefsson  <jas@extundo.com>
66484
66485         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
66486         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
66487         of using the (limited) gnulib implementation on Windows XP.
66488
66489         * m4/inet_pton.m4: New file.
66490
66491 2006-06-21  Simon Josefsson  <jas@extundo.com>
66492
66493         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
66494         variable.
66495
66496         * lib/socket_.h: Don't define WINVER.
66497
66498         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
66499         slightly modified to work in gnulib.
66500
66501 2006-06-21  Simon Josefsson  <jas@extundo.com>
66502
66503         * doc/gnulib.texi (Windows sockets): Add.
66504
66505 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
66506
66507         * lib/read-file.c (fread_file): Start with buffer allocation of
66508         0 bytes rather than 1 byte; this simplifies the code.
66509         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
66510         code to free buffer and save/restore errno.
66511         (internal_read_file): Remove unused local.
66512
66513 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
66514
66515         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
66516         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
66517         Problem reported by Denis Excoffier in
66518         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
66519
66520 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66521
66522         * modules/sys_socket, modules/socklen: Include sys/types since
66523         FreeBSD 4.x's sys/socket.h needs it.
66524
66525 2006-06-19  Simon Josefsson  <jas@extundo.com>
66526
66527         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
66528
66529 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
66530
66531         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
66532
66533 2006-06-19  Bruno Haible  <bruno@clisp.org>
66534
66535         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
66536         and FULL_PATH_INTTYPES_H in angle brackets.
66537         Reported by Mark D. Baushke <mdb@gnu.org>.
66538
66539 2006-06-17  Eric Blake  <ebb9@byu.net>
66540
66541         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
66542         errno.
66543
66544 2006-06-17  Bruno Haible  <bruno@clisp.org>
66545
66546         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
66547         <sys/inttypes.h>.
66548
66549 2006-06-17  Bruno Haible  <bruno@clisp.org>
66550
66551         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
66552         whether errno is declared. Assume <errno.h> declares errno.
66553
66554 2006-06-17  Bruno Haible  <bruno@clisp.org>
66555
66556         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
66557
66558 2006-06-17  Bruno Haible  <bruno@clisp.org>
66559
66560         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
66561         problem on Solaris 2.5.1.
66562
66563 2006-06-16  Eric Blake  <ebb9@byu.net>
66564
66565         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
66566         * lib/unicodeio.c [!defined errno]: Likewise.
66567         * lib/strtol.c [!defined errno]: Likewise.
66568         * lib/strtod.c [!defined errno]: Likewise.
66569
66570 2006-06-15  Eric Blake  <ebb9@byu.net>
66571
66572         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
66573
66574 2006-06-15  Eric Blake  <ebb9@byu.net>
66575
66576         * config/srclist.txt (ssize_t.m4): Lose sync.
66577
66578 2006-06-15  Bruno Haible  <bruno@clisp.org>
66579
66580         * modules/stdint (Files): Include m4/full-header-path.m4,
66581         m4/size_max.m4, m4/wchar_t.m4.
66582         (Makefile.am): Many more substitutions.
66583         * modules/stdint-tests: New file.
66584         * tests/test-stdint.c: New file.
66585
66586 2006-06-15  Bruno Haible  <bruno@clisp.org>
66587
66588         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
66589         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
66590         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
66591         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
66592         gl_CHECK_TYPE_SAME): New macros.
66593
66594 2006-06-15  Bruno Haible  <bruno@clisp.org>
66595
66596         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
66597
66598 2006-06-15  Bruno Haible  <bruno@clisp.org>
66599
66600         * lib/stdint_.h: Rewritten to be fully auto-configured.
66601         Fixes bug on HP-UX/IA64.
66602
66603 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
66604
66605         * lib/getdate.y (__attribute__): Don't define if already defined.
66606         Problem reported by Larry Jones.
66607         * lib/utimens.c (__attribute__): Likewise.
66608
66609 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
66610
66611         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
66612         reported by Andreas Schwab.
66613
66614 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66615             Bruno Haible  <bruno@clisp.org>
66616
66617         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
66618         check for the declaration of strnlen and a run test that exposes the
66619         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
66620         rpl_strndup.
66621
66622 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66623             Bruno Haible  <bruno@clisp.org>
66624
66625         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
66626
66627 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66628
66629         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
66630         compile test, for Tru64 4.0D.
66631
66632 2006-05-28  Karl Berry  <karl@gnu.org>
66633
66634         * config/srclist.txt (printf-args.c): lose sync.
66635
66636 2006-05-26  Martin Lambers  <marlam@marlam.de>
66637
66638         * lib/getpass.c: Updates the test for the native W32 API, and adds
66639         missing includes, thus fixing compilation warnings.
66640
66641 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
66642
66643         * lib/exclude.c (exclude_fnmatch): New function.
66644         (excluded_file_name): Call exclude_fnmatch.
66645         * lib/exclude.h (excluded_file_name): New prototype
66646
66647 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
66648
66649         * lib/tempname.c (small_open, large_open): New macros.
66650         (__open, __open64) [!_LIBC]: Remove.
66651         (__gen_tempname): Use small_open and large_open instead of __open
66652         and __open64.  This fixes a portability bug on HP-UX 11.11i
66653         reported by Simon Wing-Tang in
66654         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
66655
66656 2006-05-24  Bruno Haible  <bruno@clisp.org>
66657
66658         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
66659         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
66660         Reported by Thorsten Maerz <torte@netztorte.de> via
66661         Aaron Stone <aaron@serendipity.cx>.
66662
66663 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
66664
66665         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
66666         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
66667         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
66668         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
66669         not really conditional on the cache.
66670         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
66671
66672 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
66673
66674         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
66675         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
66676         (my_usleep): Don't mishandle maximum value.
66677
66678 2006-05-19  Jim Meyering  <jim@meyering.net>
66679
66680         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
66681
66682 2006-05-17  Bruno Haible  <bruno@clisp.org>
66683
66684         Cygwin portability.
66685         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
66686
66687 2006-05-17  Bruno Haible  <bruno@clisp.org>
66688
66689         * lib/stdint_.h: Fix recognition of Cygwin.
66690
66691 2006-05-15  Bruno Haible  <bruno@clisp.org>
66692
66693         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
66694         on libtool patch by Ralf Wildenhues.
66695
66696 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66697
66698         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
66699         test for C99 conformance; (bool) 0.5 is an integer constant
66700         expression, but (bool) -0.5 is not.  Problem reported by Fedor
66701         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
66702
66703 2006-05-11  Simon Josefsson  <jas@extundo.com>
66704
66705         * m4/xvasprintf.m4: Fix obvious typo.
66706
66707 2006-05-11  Jim Meyering  <jim@meyering.net>
66708
66709         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
66710         James Lemley.
66711
66712 2006-05-10  Simon Josefsson  <jas@extundo.com>
66713
66714         * lib/md4.c: Typo fix, update copyright years.
66715         (K1, K2): Don't use L because it turn computations into 64-bit on
66716         64-bit platforms.
66717
66718 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
66719
66720         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
66721         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
66722         unwanted sign propagation, e.g., on hosts with 64-bit int.
66723         There still are some problems with reeelly weird theoretical hosts
66724         (e.g., 33-bit int) but it's not worth worrying about now.
66725         * lib/sha1.c (rol): Likewise.
66726         (K1, K2, K3, K4): Remove unnecessary L suffix.
66727
66728 2006-05-10  Bruno Haible  <bruno@clisp.org>
66729
66730         * lib/des.c: Cast to avoid warnings.
66731
66732 2006-05-09  Bruno Haible  <bruno@clisp.org>
66733
66734         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
66735         (Depends-on): Depend also on xsize, stdarg.
66736         (configure.ac): Add gl_XVASPRINTF.
66737
66738 2006-05-09  Bruno Haible  <bruno@clisp.org>
66739
66740         * m4/xvasprintf.m4: New file.
66741
66742 2006-05-09  Bruno Haible  <bruno@clisp.org>
66743
66744         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
66745         (EOVERFLOW): Define fallback value.
66746         (xstrcat): New function.
66747         (xvasprintf): Recognize the special case of a string concatenation.
66748
66749 2006-05-08  Eric Blake  <ebb9@byu.net>
66750
66751         * gnulib-tool (func_version): Base copyright year on CVS date.
66752         (func_emit_copyright_notice): New function.
66753         (func_emit_lib_Makefile_am): Use it.
66754         (func_emit_tests_Makefile_am): Likewise.
66755         (func_import): Likewise.
66756
66757 2006-05-08  Bruno Haible  <bruno@clisp.org>
66758
66759         * modules/stdarg: New file.
66760         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
66761
66762 2006-05-08  Bruno Haible  <bruno@clisp.org>
66763
66764         * m4/stdarg.m4: New file, from GNU gettext.
66765
66766 2006-05-08  Bruno Haible  <bruno@clisp.org>
66767
66768         * config/srclist.txt (build-aux/config.rpath): different from latest
66769         release.
66770
66771 2006-05-08  Bruno Haible  <bruno@clisp.org>
66772
66773         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
66774
66775 2006-05-05  Jim Meyering  <jim@meyering.net>
66776
66777         * m4/warning.m4: New file, derived from bison's file by the same name.
66778
66779 2006-05-03  Bruno Haible  <bruno@clisp.org>
66780
66781         * lib/stdint_.h: Shorter URL.
66782         * lib/inttypes.h: Likewise.
66783
66784 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66785
66786         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
66787
66788 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66789
66790         * lib/verify.h: Document the internals better.  Most of this change
66791         was written by Bruno Haible.
66792
66793 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66794
66795         * doc/verify.texi: New file, partly based on a proposal by
66796         Bruno Haible.
66797
66798 2006-05-02  Bruno Haible  <bruno@clisp.org>
66799
66800         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
66801         test from here...
66802         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
66803
66804 2006-04-29  Bruno Haible  <bruno@clisp.org>
66805
66806         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
66807         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
66808
66809 2006-04-29  Bruno Haible  <bruno@clisp.org>
66810
66811         * gnulib-tool: Make --update option actually work.
66812
66813 2006-04-29  Bruno Haible  <bruno@clisp.org>
66814
66815         * doc/gcd.texi: New file.
66816         * doc/gnulib.texi: Include it.
66817
66818 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
66819
66820         * lib/getdate.y (get_date): When adding relative date, start with the
66821         initial time, not with the result of the first mktime call.
66822
66823 2006-04-25  Bruno Haible  <bruno@clisp.org>
66824
66825         * gnulib-tool (func_import): Output the include directives in three
66826         blocks, sorted separately.
66827         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66828
66829 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
66830
66831         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
66832         to define main with arguments, for C++.  Reported by Eric Blake.
66833         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
66834         Prefer 'int main ()' to 'int main (void)', for C++.
66835         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
66836         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
66837         for 'main', for C99 and C++.
66838
66839 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
66840
66841         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
66842         Don't assume that exit status -1 is valid.
66843         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
66844         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
66845         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
66846         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
66847         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
66848         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
66849         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
66850         functions can be used without declaring them, or that you can
66851         exit with status -1.
66852         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
66853
66854 2006-04-24  Karl Berry  <karl@gnu.org>
66855
66856         * config/srclist.txt (longdouble.m4): sync lost.
66857
66858 2006-04-24  Eric Blake  <ebb9@byu.net>
66859
66860         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
66861
66862 2006-04-24  Bruno Haible  <bruno@clisp.org>
66863
66864         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
66865         poll() implementation in AIX.
66866         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66867
66868 2006-04-24  Bruno Haible  <bruno@clisp.org>
66869
66870         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
66871         assigned exactly once.
66872
66873 2006-04-23  Claudio Fontana  <claudio@gnu.org>
66874             Bruno Haible  <bruno@clisp.org>
66875
66876         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
66877         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
66878         for AM_CPPFLAGS.
66879
66880 2006-04-23  Bruno Haible  <bruno@clisp.org>
66881
66882         * modules/copy-file: Depend on unistd.
66883         * modules/execute: Likewise.
66884         * modules/fatal-signal: Likewise.
66885         * modules/findprog: Likewise.
66886         * modules/mkdtemp : Likewise.
66887         * modules/pipe: Likewise.
66888         * modules/wait-process: Likewise.
66889
66890 2006-04-23  Bruno Haible  <bruno@clisp.org>
66891
66892         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
66893         condition was already detected.
66894         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66895
66896 2006-04-23  Bruno Haible  <bruno@clisp.org>
66897
66898         * lib/copy-file.c: Include <unistd.h> unconditionally.
66899         * lib/execute.c: Likewise.
66900         * lib/fatal-signal.c: Likewise.
66901         * lib/findprog.c: Likewise.
66902         * lib/mkdtemp.c: Likewise.
66903         * lib/pipe.h: Likewise.
66904         * lib/pipe.c: Likewise.
66905         * lib/wait-process.h: Likewise.
66906
66907 2006-04-23  Bruno Haible  <bruno@clisp.org>
66908
66909         * gnulib-tool (func_usage): Fix --import description. Document
66910         --update.
66911         (func_import): Create temporary file in a temporary directory, if
66912         --dry-run is specified. Silence errors from 'grep' when there are no
66913         m4 files in $m4dir.
66914         (func_create_testdir): Silence errors from 'grep' when there are no
66915         m4 files in $m4dir.
66916         Reported by Karl Berry <karl@freefriends.org>.
66917
66918 2006-04-20  Bruno Haible  <bruno@clisp.org>
66919
66920         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
66921         one argument, so that the code will be portable to Autoconf 2.60.
66922         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
66923         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
66924         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
66925
66926 2006-04-19  Derek Price  <derek@ximbiot.com>
66927             Eric Blake  <ebb9@byu.net>
66928
66929         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
66930         rather than "/full/path.h".  Update comment to match.  Shorten &
66931         generalize m4_translit call via AS_TR_CPP.
66932
66933 2006-04-19  Derek Price  <derek@ximbiot.com>
66934             Eric Blake  <ebb9@byu.net>
66935
66936         * lib/inttypes.h: Correct grammar in comment.
66937
66938 2006-04-18  Derek Price  <derek@ximbiot.com>
66939             Paul Eggert  <eggert@cs.ucla.edu>
66940
66941         * modules/inttypes: New file.
66942         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
66943
66944 2006-04-18  Derek Price  <derek@ximbiot.com>
66945             Paul Eggert  <eggert@cs.ucla.edu>
66946
66947         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
66948         New files.
66949
66950 2006-04-18  Derek Price  <derek@ximbiot.com>
66951             Paul Eggert  <eggert@cs.ucla.edu>
66952
66953         * lib/inttypes.h: New file.
66954         * lib/strtoimax.c: Assume <inttypes.h>.
66955
66956 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
66957
66958         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
66959         isn't mounted.  Problem reported by Kir Kolyshkin.
66960
66961 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66962
66963         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
66964         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
66965         Derek R. Price.
66966         * lib/regex.h (RE_DUP_MAX): Update comment to match current
66967         implementation.
66968
66969 2006-04-12  Eric Blake  <ebb9@byu.net>
66970
66971         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
66972         is now done automatically by the corresponding Autoconf macro.
66973
66974 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
66975
66976         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
66977         time_r.h.
66978
66979 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66980
66981         Merge regex changes from libc, removing some of our
66982         POSIX-conformance changes that were rejected and redoing them in a
66983         less-intrusive way.
66984
66985         * lib/regcomp.c (re_compile_internal, init_dfa):
66986         Length arg is now size_t, not Idx.  All uses changed.
66987         (peek_token): Forward decl now says internal_function.
66988         (__re_error_msgid, __re_error_msgid_idx):
66989         Now static rather than extern with attribute_hidden.
66990         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
66991         For some reason libc prefers K&R style defns for external functions.
66992         (regerror) [!defined _LIBC]: Likewise.
66993         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
66994         (seek_collating_symbol_entry, lookup_collation_sequence_value):
66995         (build_range_exp, build_collating_symbol):
66996         Use K&R-style defn.
66997         (re_compile_fastmap): Use '\0' to memset, not 0.
66998         (utf8_sb_map): Make the calculations more obvious.
66999         (init_dfa, parse_bracket_exp, build_charclass_op):
67000         Call calloc and cast result, as glibc does.
67001         (init_word_char, fetch_token, peek_token, peek_token_bracket):
67002         (build_range_exp, build_collating_symbol):
67003         Now internal functions.
67004
67005         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
67006
67007         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
67008         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
67009         Don't depend on VMS; depend on __VMS instead, for POSIX
67010         namespace cleanness.
67011         (regoff_t): Define to ssize_t, not long int.
67012
67013         Remove the REG_ macros named below.  Instead, make the old names
67014         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
67015         __USE_GNU_REGEX.
67016         (REG_BACKSLASH_ESCAPE_IN_LISTS):
67017         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
67018         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
67019         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
67020         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
67021         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
67022         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
67023         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
67024         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
67025         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
67026         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
67027         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
67028         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
67029         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
67030         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
67031         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
67032         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
67033         (REG_NREGS):
67034         Remove.  All uses replaced by the old RE_* names.
67035         (RE_BACKSLASH_ESCAPE_IN_LISTS):
67036         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
67037         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
67038         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
67039         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
67040         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
67041         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
67042         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
67043         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
67044         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
67045         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
67046         Don't bother having these macros be independent of each others'
67047         values, since they no longer exist in the POSIX name space.
67048
67049         Rename the following member names back to their old names,
67050         unless !__USE_GNU_REGEX.  All uses changed back.
67051         (buffer): Renamed from re_buffer.
67052         (allocated): Renamed from re_allocated.
67053         (used): Renamed from re_used.
67054         (syntax): Renamed from re_syntax.
67055         (fastmap): Renamed from re_fastmap.
67056         (translate): Renamed from re_translate.
67057         (can_be_null): Renamed from re_can_be_null.
67058         (regs_allocated): Renamed from re_regs_allocated.
67059         (fastmap_accurate): Renamed from re_fastmap_accurate.
67060         (no_sub): Renamed from re_no_sub.
67061         (not_bol): Renamed from re_not_bol.
67062         (not_eol): Renamed from re_not_eol.
67063         (newline_anchor): Renamed from re_newline_anchor.
67064         (num_regs): Renamed from rm_num_regs.
67065         (start): Renamed from rm_start.
67066         (end): Renamed from rm_end.
67067
67068         (free_state): Move up a bit.
67069
67070         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
67071         #define to be empty.
67072         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
67073         when that is what is intended.
67074         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
67075         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
67076         (MAX): New macro.
67077         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
67078         All uses changed back to re_malloc, etc.  It's now the caller's
67079         responsibility to check for overflow; all callers changed.
67080         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
67081         (re_x2nrealloc): Remove.
67082         (free_state): Remove decl.
67083
67084         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
67085         (re_set_registers, re_exec):
67086         Use K&R-style defn.
67087
67088         2006-01-31  Roland McGrath  <roland@redhat.com>
67089
67090         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
67091         Reported by Mike Frysinger <vapier@gentoo.org>.
67092
67093         2006-01-15  Andreas Jaeger  <aj@suse.de>
67094
67095         [BZ #1950]
67096         * lib/regex_internal.c (re_string_reconstruct): Adjust for
67097         build_wcs_upper_buffer change.
67098         (build_wcs_upper_buffer): Change return type.
67099
67100         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
67101
67102         * lib/regex_internal.h: Include <stdint.h> if available.
67103
67104         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
67105
67106         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
67107
67108         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
67109
67110         * lib/regcomp.c: Adjust for changed secondary hash function.
67111
67112         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
67113
67114         * lib/regex.h: Pretty printing.
67115         Clean up namespace a bit.
67116
67117         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
67118
67119         * lib/regexec.c (update_cur_sifted_state, check_arrival,
67120         check_arrival_add_next_nodes): Avoid using uninitialized variable.
67121
67122         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67123                     Ulrich Drepper  <drepper@redhat.com>
67124
67125         [BZ #1302]
67126         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
67127         changed.
67128         (bitset_word_t): Renamed from bitset_word.  All uses changed.
67129
67130         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
67131
67132         [BZ #281]
67133         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
67134         * lib/regcomp.c: Remove unnecessary uses of
67135         unsigned RE_TRANSLATE_TYPE.
67136         * lib/regex_internal.h: Likewise.
67137         * lib/regex_internal.c: Likewise.
67138         * lib/regexec.c: Likewise.
67139         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
67140
67141         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
67142
67143         * lib/regexec.c (find_recover_state): Remove unnecessary
67144         initialization.
67145         (transit_state_bkref): Make DFA a const pointer.
67146         (get_subexp): Likewise.
67147         (check_arrival): Likewise.
67148         (update_cur_sifted_state): Likewise.
67149         (re_search_internal): Likewise.
67150         (prune_impossible_nodes): Likewise.
67151         (acquire_init_state_context): Likewise.
67152         (proceed_next_node): Likewise.
67153         (set_regs): Likewise.
67154         (free_fail_stack_return): Likewise.
67155         (check_arrival_expand_ecl): Mark DFA parameter as const.
67156         (check_arrival_expand_ecl_sub): Likewise.
67157         (check_subexp_limits): Likewise.
67158         (sub_epsilon_src_nodes):  Likewise.
67159         (add_epsilon_src_nodes):  Likewise.
67160         (merge_state_array): Likewise.
67161         (update_regs): Likewise.
67162         (build_trtable): Likewise.
67163         (sift_states_backward): Mark MCTX parameter as const.
67164         (build_sifted_states): Likewise.
67165         (update_cur_sifted_state): Likewise.
67166         (sift_states_mkref): Likewise.
67167         (check_arrival_expand_ecl): Mark eclosure as const.
67168         (check_dst_limits_calc_pos_1): Likewise.
67169         * lib/regex_internal.h (re_match_context_t): Make dfa a const
67170         pointer.
67171
67172         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
67173
67174         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
67175         (transit_state_sb): Likewise.
67176         (transit_state_mb): Likewise.
67177         (sift_states_iter_mb): Likewise.
67178         (check_arrival_add_next_nodes): Likewise.
67179         (check_node_accept_bytes): Change first parameter to pointer-to-const.
67180         [_LIBC] (re_search_2_stub): Use mempcpy.
67181
67182         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
67183         mbrtowc for very simple UTF-8 case.
67184
67185         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
67186         a pointer-to-const.
67187         (re_acquire_state_context): Likewise.
67188         * lib/regex_internal.h: Adjust prototypes.
67189
67190         * lib/regex.c: Prevent using C++ compilers.
67191
67192         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
67193         (re_acquire_state_context): Likewise.
67194
67195 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
67196
67197         * modules/regex (Depends-on): Add ssize_t.
67198
67199 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
67200
67201         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
67202         translation table.
67203
67204 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
67205
67206         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
67207
67208 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
67209             Bruno Haible  <bruno@clisp.org>
67210
67211         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
67212         <sys/types.h> and <inttypes.h>.
67213
67214 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67215
67216         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
67217         `__error_t_defined', so argp.h will not typedef the former.
67218
67219 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
67220
67221         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
67222         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
67223         glibc names.  Even if glibc is changed to conform to POSIX, the
67224         traditional names will be available anyway, since regex depends on
67225         the extensions module.  Also, fix a longstanding typo in the
67226         implementation of Spencer ERE test #75 from grep 2.3.  Problems
67227         reported by Emanuele Giaquinta.  Also, change sense of cached
67228         variable, so that the message makes sense.
67229
67230 2006-03-24  Simon Josefsson  <jas@extundo.com>
67231
67232         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
67233         including some doc fixes.
67234         (base64_encode_alloc): Fix +1 bug on allocation failures.
67235
67236 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67237
67238         * lib/base64.c (base64_encode): Do not read past end of array with
67239         unsanitized input on systems with CHAR_BIT > 8.
67240
67241 2006-03-24  Eric Blake  <ebb9@byu.net>
67242
67243         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
67244
67245 2006-03-22  Karl Berry  <karl@gnu.org>
67246
67247         * config/srclist.txt (*setenv.[ch]): get from coreutils.
67248         * config/srclistvars.sh (COREUTILS): new var.
67249
67250 2006-03-17  Jim Meyering  <jim@meyering.net>
67251
67252         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
67253         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
67254
67255 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
67256
67257         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
67258         no longer needs it.  Instead, check that regoff_t is as least
67259         as wide as ptrdiff_t.
67260
67261         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
67262         so that our regex.h stays compatible with the installed regex.
67263         This is helpful for installers who configure --without-included-regex.
67264         Problem reported by Emanuele Giaquinta.
67265
67266 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
67267
67268         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
67269         Typedef to long int, not to off_, as POSIX will likely change
67270         in that direction.
67271
67272 2006-03-15  Eric Blake  <ebb9@byu.net>
67273
67274         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
67275
67276 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
67277
67278         * lib/argp-help.c (validate_uparams): Fix typo
67279         * lib/argp-parse.c (argp_default_options): Consistently begin help
67280         messages with a lowercase letter.
67281
67282 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
67283
67284         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
67285         overrun buffers and shouldn't be used (much as gets shouldn't be
67286         used).
67287         * lib/time_r.c (asctime_r, ctime_r): Likewise.
67288
67289 2006-03-08  Simon Josefsson  <jas@extundo.com>
67290
67291         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
67292         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67293
67294 2006-03-08  Simon Josefsson  <jas@extundo.com>
67295
67296         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
67297         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67298
67299 2006-03-08  Simon Josefsson  <jas@extundo.com>
67300
67301         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
67302         signal that configure disabled the device.
67303
67304 2006-03-08  Simon Josefsson  <jas@extundo.com>
67305
67306         * build-aux/maint.mk: Fix refresh-po, to handle no translated
67307         languages.
67308
67309 2006-03-07  Simon Josefsson  <jas@extundo.com>
67310
67311         * modules/getopt (Depends-on): Add unistd.
67312
67313         * modules/unistd: New file.
67314
67315 2006-03-07  Simon Josefsson  <jas@extundo.com>
67316
67317         * modules/gc-random: New file.
67318
67319 2006-03-07  Simon Josefsson  <jas@extundo.com>
67320
67321         * m4/unistd_h.m4: New file.
67322
67323 2006-03-07  Simon Josefsson  <jas@extundo.com>
67324
67325         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
67326         test to be side-effect free by storing the result in the cache
67327         variable gl_cv_lib_readline, and moving the assignment of
67328         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
67329         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67330
67331 2006-03-07  Simon Josefsson  <jas@extundo.com>
67332
67333         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
67334         error on missing devices (the functions will return an error).
67335
67336         * m4/gc.m4: Move random stuff to gc-random.m4
67337
67338 2006-03-07  Simon Josefsson  <jas@extundo.com>
67339
67340         * lib/unistd_.h: New file.
67341
67342 2006-03-07  Simon Josefsson  <jas@extundo.com>
67343
67344         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
67345
67346 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
67347
67348         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
67349         Problem reported by Juan Manuel Guerrero.
67350
67351 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
67352
67353         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
67354         the unistd module.
67355         * lib/getlogin_r.c: Likewise.
67356         * lib/getlogin_r.h: Likewise.
67357         * lib/glob.c: Likewise.
67358         * lib/pagealign_alloc.c: Likewise.
67359         * lib/unistd_.h: Remove; no longer needed.
67360
67361 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
67362
67363         * MODULES.html.sh (Support for systems lacking POSIX:2001):
67364         Add unistd.
67365         * modules/c-stack (Depends-on): Add unistd.
67366         * modules/getlogin_r: Likewise.
67367         * modules/glob: Likewise.
67368         * modules/pagealign_alloc: Likewise.
67369         * modules/unistd (Files): Remove lib/unistd_.h.
67370         (EXTRA_DIST): Remove.
67371         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
67372         need unistd_.h.
67373         (MOSTLYCLEANFILES): Remove unistd.h-t.
67374
67375 2006-03-03  Simon Josefsson  <jas@extundo.com>
67376
67377         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
67378
67379 2006-03-03  Simon Josefsson  <jas@extundo.com>
67380
67381         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
67382         libidn and bison.
67383
67384 2006-03-03  Simon Josefsson  <jas@extundo.com>
67385
67386         * build-aux/maint.mk: Add indent target.
67387
67388 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
67389
67390         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
67391         our replacement poll.h in any case, to avoid a differing
67392         declaration from a system header.  Seen on AIX.
67393
67394 2006-03-01  Simon Josefsson  <jas@extundo.com>
67395
67396         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
67397         <kasal@ucw.cz>.
67398
67399 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67400
67401         * modules/gettime (Depends-on): Add extensions module.
67402         * modules/nanosleep (Depends-on): Likewise.
67403         * modules/settime (Depends-on): Likewise.
67404
67405 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67406
67407         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
67408         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
67409         pedantically.
67410         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
67411         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
67412
67413         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
67414         not "==".  Reported by Ralf Wildenhues.
67415
67416 2006-03-01  Karl Berry  <karl@gnu.org>
67417
67418         * doc/Copyright/request-*: new files, synced from gnuorg.
67419
67420 2006-03-01  Karl Berry  <karl@gnu.org>
67421
67422         * config/srclist.txt (Copyright/*): new entries.
67423
67424 2006-02-28  Simon Josefsson  <jas@extundo.com>
67425
67426         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
67427
67428 2006-02-27  Simon Josefsson  <jas@extundo.com>
67429
67430         * lib/base64.h: Indent #define's.  From Jim Meyering
67431         <jim@meyering.net>.
67432
67433 2006-02-27  Jim Meyering  <jim@meyering.net>
67434
67435         Revert the change of 2006-02-24, so these files can continue
67436         to be sync'd from gettext.
67437         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
67438         of `config.h'.
67439
67440 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
67441
67442         * modules/intprops: New file.
67443         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
67444         Add intprops.
67445         * modules/getloadavg (Files): Remove lib/intprops.h.
67446         (Depends-on): Add intprops.
67447         * modules/human: Likewise.
67448         * modules/inttostr: Likewise.
67449         * modules/openat: Likewise.
67450         * modules/sig2str: Likewise.
67451         * modules/userspec: Likewise.
67452         * modules/utimecmp: Likewise.
67453         * modules/xnanosleep: Likewise.
67454         * modules/xstrtol: Likewise.
67455
67456 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
67457
67458         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
67459         * modules/lock-tests (TESTS): Use $(EXEEXT).
67460         * modules/tls-tests: Likewise.
67461         * modules/argp-tests: Likewise.
67462         (check_PROGRAMS): New var, replacing...
67463         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
67464
67465 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67466
67467         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
67468         `config.h'.
67469
67470 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
67471
67472         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
67473
67474 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67475
67476         Sync from coreutils.
67477         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
67478         gl_CHDIR_SAFER.
67479
67480 2006-02-22  Jim Meyering  <jim@meyering.net>
67481
67482         Sync from coreutils.
67483         * m4/chdir-safer.m4: New file.
67484
67485 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
67486
67487         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
67488         AT_FDCWD exceeds INT_MAX.
67489         * lib/openat.h (AT_FDCWD): Likewise.
67490
67491 2006-02-17  Eric Blake  <address@hidden>
67492
67493         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
67494
67495 2006-02-16  Simon Josefsson  <jas@extundo.com>
67496
67497         * modules/getaddrinfo (Depends-on): Add sys_socket.
67498
67499 2006-02-15  Simon Josefsson  <jas@extundo.com>
67500
67501         * build-aux/maint.mk: Add dsyntax-check rule.
67502
67503 2006-02-15  Eric Blake  <ebb9@byu.net>
67504
67505         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
67506         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
67507         'present but cannot compile' warnings on cygwin.
67508         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
67509         use ws2tcpip.h if sys/socket.h works.
67510         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
67511         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
67512
67513 2006-02-14  Simon Josefsson  <jas@extundo.com>
67514
67515         * modules/maintainer-makefile (Files): Rename.
67516
67517         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
67518         and (the local) Makefile.cfg to maint-cfg.mk.
67519
67520         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
67521         to the latter.
67522
67523         * modules/maintainer-makefile: New module.
67524
67525         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
67526         severaly stripped to make it possible to build it up from scratch
67527         with reliable tests.
67528
67529         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
67530         fixes to permit overriding the default actions when configure and
67531         makefile are not available.
67532
67533 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
67534
67535         Sync from coreutils.
67536         * modules/lstat (Depends-on): Don't depend on xalloc.
67537         (License): Change from GPL to LGPL, since this is now simply a
67538         replacement for a libc function.
67539
67540 2006-02-14  Jim Meyering  <jim@meyering.net>
67541
67542         Sync from coreutils.
67543
67544         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
67545         failure on deficient systems, and simplify gnulib lgpl dependencies.
67546         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
67547         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
67548
67549         * lib/xalloc-die.c: Remove unused definition of N_.
67550
67551 2006-02-14  Jim Meyering  <jim@meyering.net>
67552
67553         Sync from coreutils.
67554         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
67555         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
67556         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
67557         double-quote uses of that variable, to accommodate the rare case in
67558         which getmntent is available in none of the libraries checked.  This
67559         happens at least on FreeBSD 5.0.
67560
67561 2006-02-13  Simon Josefsson  <jas@extundo.com>
67562
67563         * gnulib-tool (Usage): Fix --import, from
67564         karl@freefriends.org (Karl Berry).
67565
67566 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
67567
67568         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
67569
67570 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
67571
67572         * lib/argp-namefrob.h: Restore changes accidentally lost during the
67573         "autoupdate" on 2005-12-12.
67574
67575 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
67576
67577         * modules/closeout (Depends-on): Remove atexit.
67578
67579 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
67580
67581         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
67582         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
67583
67584 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
67585
67586         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
67587         __EXTENSIONS__ if this causes compilation to fail.  Problem
67588         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
67589         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
67590
67591 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
67592
67593         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
67594         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
67595         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
67596         All uses changed.
67597
67598 2006-01-26  Simon Josefsson  <jas@extundo.com>
67599
67600         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
67601         prototype is visible on mingw32.
67602
67603         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
67604         for mingw32.
67605
67606         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
67607         mingw32).
67608
67609 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
67610
67611         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
67612         attempt to open for write; this always fails, at least on POSIX
67613         hosts.  This reinstates the 2006-01-09 change, which was
67614         inadvertently removed.
67615
67616 2006-01-26  Bruno Haible  <bruno@clisp.org>
67617
67618         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
67619         Reported by Paul Eggert.
67620
67621 2006-01-26  Bruno Haible  <bruno@clisp.org>
67622             Paul Eggert  <eggert@cs.ucla.edu>
67623
67624         * lib/stdbool_.h (_Bool)
67625         [(! (defined __cplusplus || defined __BEOS__)
67626           && !defined __GNUC__
67627           && !(defined __HP_cc || defined __xlc__
67628                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
67629                || defined __sgi))]:
67630         #define to signed char in these cases too; this simplifies
67631         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
67632         etc., separately) and makes it more conservative.
67633
67634 2006-01-25  Simon Josefsson  <jas@extundo.com>
67635
67636         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
67637         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
67638         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
67639
67640 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67641
67642         * lib/argp-namefrob.h: Bugfix. Remove stray #
67643
67644 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
67645
67646         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
67647         so that we test the test.
67648         Check for yet another HP-UX cc bug involving *bool |= bool.
67649
67650 2006-01-25  Karl Berry  <karl@gnu.org>
67651
67652         * config/srclist.txt (vasnprintf.c): sync lost.
67653
67654 2006-01-25  Jim Meyering  <jim@meyering.net>
67655
67656         Sync from the stable (b5) branch of coreutils:
67657
67658         * lib/fts.c (fts_children): Don't let close() clobber errno from
67659         failed fchdir().
67660
67661         * lib/fts.c (fts_stat): When following a symlink-to-directory,
67662         don't necessarily interpret stat-fails+lstat-succeeds as indicating
67663         a dangling symlink.  That can also happen at least for ELOOP.
67664         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
67665         FYI, this bug predates the inclusion of fts.c in coreutils.
67666
67667         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
67668         in their own block, so pre-c99 compilers don't object.
67669
67670         Avoid the double-free (first in fts_read, second in fts_close) that
67671         would occur when an `active' directory is made inaccessible (e.g.,
67672         via chmod a-x) during a traversal.
67673         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
67674         before returning.  Reproduce this failure by
67675         mkdir -p a/b; cd a; chmod a-x . b
67676         Reported by Stavros Passas.
67677
67678 2006-01-25  Jim Meyering  <jim@meyering.net>
67679
67680         * lib/fileblocks.c: Remove more useless parentheses.
67681         * lib/readutmp.h: Likewise.
67682
67683 2006-01-25  Bruno Haible  <bruno@clisp.org>
67684
67685         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
67686         warnings.
67687         Reported by Paul Eggert.
67688
67689 2006-01-25  Bruno Haible  <bruno@clisp.org>
67690
67691         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
67692         rid of a trap command. For Solaris sh.
67693         Reported by Mark D. Baushke <mdb@gnu.org>.
67694
67695 2006-01-24  Simon Josefsson  <jas@extundo.com>
67696
67697         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
67698         Bruno.
67699
67700 2006-01-24  Karl Berry  <karl@gnu.org>
67701
67702         * config/srclist.txt (argp-namefrob.h): sync lost.
67703
67704 2006-01-24  Jim Meyering  <jim@meyering.net>
67705
67706         * modules/openat (Files): Add lib/intprops.h.
67707         From Mark D. Baushke.
67708
67709 2006-01-24  Jim Meyering  <jim@meyering.net>
67710
67711         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
67712         Reported by Mark D. Baushke.
67713
67714 2006-01-24  Jim Meyering  <jim@meyering.net>
67715
67716         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
67717
67718 2006-01-24  Bruno Haible  <bruno@clisp.org>
67719
67720         * modules/strnlen (Maintainer): Change from glibc to all.
67721
67722 2006-01-24  Bruno Haible  <bruno@clisp.org>
67723
67724         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
67725         Patch by Paul Eggert.
67726
67727 2006-01-24  Bruno Haible  <bruno@clisp.org>
67728
67729         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
67730         already has it.
67731         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
67732         2005-11-26.
67733
67734         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
67735         'signed char' to avoid problems with the built-in _Bool type.
67736         Reported by Paul Eggert on 2005-11-26.
67737
67738 2006-01-24  Bruno Haible  <bruno@clisp.org>
67739
67740         * gnulib-tool (func_import): Avoid constructing complicated sed
67741         expressions inside backquote.
67742         Report and solution by Mark D. Baushke <mdb@gnu.org>.
67743
67744 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
67745
67746         These changes imported from libc.
67747         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
67748         test and two separate function calls.
67749         * lib/strndup.c (__strndup): Add libc_hidden_def.
67750
67751 2006-01-23  Simon Josefsson  <jas@extundo.com>
67752
67753         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
67754         Remove the test_*_SOURCES variable: automake infers it by default.
67755         * modules/tls-tests: Likewise.
67756
67757 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67758
67759         Work around porting bugs reported by Dieter in
67760         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
67761         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
67762         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
67763         Include "getopt.h" first, to check interface.
67764         (getenv): Declare only if defined HAVE_DECL_GETENV &&
67765         !HAVE_DECL_GETENV.
67766         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
67767         (__strndup): Revert to K&R-style function dfns, the glibc style.
67768         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
67769         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
67770         Include strnlen.h first, to get prototype properly.
67771         (strnlen): Renamed from __strnlen.
67772         Remove weak alias.
67773
67774 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67775
67776         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
67777
67778 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67779
67780         * config/srclist.txt: Adjust to reflect glibc reorganization.
67781         This affects only comments.
67782
67783 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67784
67785          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
67786          Reported by Bruce Korb <bkorb@gnu.org>.
67787
67788 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
67789
67790         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
67791         to pacify gcc -Wswitch-default.
67792
67793 2006-01-22  Bruno Haible  <bruno@clisp.org>
67794
67795         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
67796         temporary buffer for sprintf, take into account the precision also
67797         for 'd', 'i', 'u', 'o', 'x', 'X'.
67798
67799 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
67800
67801         * modules/argp-tests: New module
67802         * tests/test-argp.c: New file
67803         * tests/test-argp-2.sh: New file
67804
67805 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
67806
67807         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
67808         (__argp_base_name): Removed
67809         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
67810         typo.
67811         (__argp_base_name): Provide macro definition or extern declaration
67812         depending on the configuration
67813
67814 2006-01-20  Simon Josefsson  <jas@extundo.com>
67815
67816         * modules/inet_ntop (Depends-on): Depend on sys_socket.
67817
67818 2006-01-20  Simon Josefsson  <jas@extundo.com>
67819
67820         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
67821
67822 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67823
67824         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
67825         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
67826         Suggested by Bruno Haible.
67827
67828 2006-01-20  Karl Berry  <karl@gnu.org>
67829
67830         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
67831         until changes propagate, I guess.
67832
67833 2006-01-19  Simon Josefsson  <jas@extundo.com>
67834
67835         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
67836
67837 2006-01-19  Simon Josefsson  <jas@extundo.com>
67838
67839         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
67840
67841 2006-01-19  Simon Josefsson  <jas@extundo.com>
67842
67843         * gnulib-tool: Set check_PROGRAMS.
67844
67845         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
67846         modules/des-tests, modules/gc-arcfour-tests,
67847         modules/gc-arctwo-tests, modules/gc-des-tests,
67848         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
67849         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
67850         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
67851         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
67852         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
67853         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
67854         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
67855         test_*_SOURCES.
67856
67857 2006-01-18  Simon Josefsson  <jas@extundo.com>
67858
67859         * modules/socklen (Depends-on): Depend on sys_socket.
67860
67861 2006-01-18  Simon Josefsson  <jas@extundo.com>
67862
67863         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
67864         modules/des-tests, modules/gc-arcfour-tests,
67865         modules/gc-arctwo-tests, modules/gc-des-tests,
67866         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
67867         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
67868         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
67869         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
67870         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
67871         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
67872         $(EXEEXT) to automake TESTS variable, for mingw32.
67873
67874 2006-01-17  Simon Josefsson  <jas@extundo.com>
67875
67876         * modules/socklen (Include): Need sys/socket.h.
67877
67878 2006-01-17  Bruno Haible  <bruno@clisp.org>
67879
67880         * modules/ssize_t (Include): Add <sys/types.h>.
67881
67882 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
67883
67884         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
67885         it's not portable and it doesn't work with cross-compiles.
67886         Problem reported by Bruno Haible.  Fix missing-$ typo in
67887         'test "gl_cv_ignore_unused_libraries" ...' that prevented
67888         -zignore from being used with Sun's C compiler.
67889
67890 2006-01-12  Simon Josefsson  <jas@extundo.com>
67891
67892         * lib/base64.c: Fix warning, reported by Bruno Haible
67893         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
67894
67895 2006-01-12  Bruno Haible  <bruno@clisp.org>
67896
67897         * modules/ldd: New file.
67898         * build-aux/ldd.sh.in: New file.
67899         * MODULES.html.sh (Support for building libraries and executables): Add
67900         ldd.
67901
67902 2006-01-12  Bruno Haible  <bruno@clisp.org>
67903
67904         * m4/ldd.m4: New file.
67905
67906 2006-01-12  Bruno Haible  <bruno@clisp.org>
67907
67908         * gnulib-tool (func_import, func_create_testdir): Don't go into an
67909         endless loop while replacing $auxdir with build-aux.
67910
67911 2006-01-11  Simon Josefsson  <jas@extundo.com>
67912
67913         * lib/stdint_.h (SIZE_MAX): Add missing (.
67914
67915 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
67916
67917         Sync from coreutils.
67918         * lib/md5.c: Fix commentary typos.
67919         (alignof, UNALIGNED_P): No need for a GCC-specific version.
67920         * lib/md5.h (__attribute__): Remove; unused.
67921         * lib/sha1.c: Fix commentary to match md5 better.
67922         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
67923         so that we don't need to worry about alignment.  All uses changed.
67924         This merges the 2005-10-28 md5 change into sha1.
67925
67926 2006-01-11  Jim Meyering  <jim@meyering.net>
67927
67928         Sync from coreutils.
67929         * lib/md5.c (OP): Fix spacing.
67930
67931 2006-01-11  Bruno Haible  <bruno@clisp.org>
67932
67933         Ensure automatic ordering between gl_LOCK and gl_ARGP.
67934         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
67935         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
67936
67937 2006-01-11  Bruno Haible  <bruno@clisp.org>
67938
67939         Ensure automatic ordering between gl_LOCK and gl_ARGP.
67940         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
67941         the "early" section as well.
67942
67943 2006-01-11  Bruno Haible  <bruno@clisp.org>
67944
67945         Avoid "ar: no archive members specified" error on MacOS X.
67946         * gnulib-tool (func_modules_add_dummy): New function.
67947         (func_import, func_create_testdir): Invoke it.
67948
67949 2006-01-11  Bruno Haible  <bruno@clisp.org>
67950
67951         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
67952         with $auxdir in AC_CONFIG_FILES statements.
67953
67954 2006-01-11  Bruno Haible  <bruno@clisp.org>
67955
67956         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67957         Initialize also noinst_HEADERS to empty.
67958
67959 2006-01-11  Bruno Haible  <bruno@clisp.org>
67960
67961         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
67962         variables.
67963         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
67964         autoreconf.
67965
67966 2006-01-11  Bruno Haible  <bruno@clisp.org>
67967
67968         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
67969         overridable by the user.
67970         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67971
67972 2006-01-10  Simon Josefsson  <jas@extundo.com>
67973
67974         * modules/sys_socket: New file.
67975
67976 2006-01-10  Simon Josefsson  <jas@extundo.com>
67977
67978         * m4/sys_socket_h.m4: New file.
67979
67980 2006-01-10  Simon Josefsson  <jas@extundo.com>
67981
67982         * lib/socket_.h: New file.
67983
67984 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67985
67986         * modules/readutmp (Maintainer): Add myself.
67987
67988 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67989
67990         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
67991         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
67992         People who are still concerned with buggy memcmp implementations
67993         can invoke gl_FUNC_MEMCMP themselves.
67994
67995 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67996
67997         * lib/regex_internal.h (BITSET_WORD_BITS):
67998         Work around a bug in 64-bit PGC (before version 6.1-2), where the
67999         preprocessor mishandles large unsigned values as if they were signed.
68000         Problem reported by Claudio Fontana in
68001         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
68002
68003 2006-01-10  Jim Meyering  <jim@meyering.net>
68004
68005         Avoid the double-free (first in fts_read, second in fts_close) that
68006         would occur when an `active' directory is made inaccessible (e.g.,
68007         via chmod a-x) during a traversal.
68008         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
68009         before returning.  Reproduce this failure by
68010         mkdir -p a/b; cd a; chmod a-x . b
68011         Reported by Stavros Passas.
68012
68013         Sync from coreutils.
68014         * lib/sha1.c: Tweak grammar in a comment.
68015
68016 2006-01-10  Jim Meyering  <jim@meyering.net>
68017
68018         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
68019         Patch by Joerg Sonnenberger.
68020
68021 2006-01-10  Bruno Haible  <bruno@clisp.org>
68022
68023         * modules/readutmp: Depend on module free.
68024         * modules/strtok_r: Depend on module restrict.
68025
68026 2006-01-10  Bruno Haible  <bruno@clisp.org>
68027
68028         * modules/gettext (configure.ac): Add an invocation of
68029         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
68030
68031 2006-01-10  Bruno Haible  <bruno@clisp.org>
68032
68033         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
68034         Reported by Werner Lemberg <wl@gnu.org>.
68035
68036 2006-01-10  Bruno Haible  <bruno@clisp.org>
68037
68038         * lib/localcharset.c: Update from GNU gettext.
68039
68040 2006-01-10  Bruno Haible  <bruno@clisp.org>
68041
68042         * lib/argp.h (__const): Remove macro. Use const instead.
68043         * lib/argp-fmtstream.h (__const): Likewise.
68044         * lib/glob_.h (__const): Remove macro.
68045         * lib/glob-libc.h: Use const instead of __const.
68046
68047 2006-01-10  Bruno Haible  <bruno@clisp.org>
68048
68049         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
68050         variable.
68051         Needed to avoid an automake error regarding the 'gettext' module.
68052
68053 2006-01-09  Simon Josefsson  <jas@extundo.com>
68054
68055         * modules/inet_ntop (Depends-on): Add restrict.
68056
68057 2006-01-09  Simon Josefsson  <jas@extundo.com>
68058
68059         * modules/gc-rijndael-tests (License): Put under LGPL.
68060
68061         * modules/gc-des-tests (License): Likewise.
68062
68063         * modules/gc-arcfour-tests (License): Likewise.
68064
68065         * modules/gc-arctwo-tests (License): Likewise.
68066
68067         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
68068
68069         * modules/gc-hmac-sha1-tests (Files): Likewise.
68070
68071         * modules/gc-hmac-md5-tests (License): Likewise.
68072
68073         * modules/gc-sha1-tests (License): Likewise.
68074
68075         * modules/gc-md5-tests (License): Likewise.
68076
68077         * modules/gc-md4-tests (License): Likewise.
68078
68079         * modules/gc-md2-tests (License): Likewise.
68080
68081         * modules/gc-tests (License): Likewise.
68082
68083         * modules/des-tests (License): Likewise.
68084
68085         * modules/md4-tests (License): Likewise.
68086
68087         * modules/md2-tests (License): Likewise.
68088
68089 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
68090
68091         Sync from coreutils:
68092
68093         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
68094         * modules/lib-ignore: New file.
68095         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
68096         chdir-safer.m4, lchmod.m4.
68097         * modules/openat: Add mkdirat.c, openat-priv.h.
68098
68099 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
68100
68101         Sync from coreutils.
68102         * m4/lib-ignore.m4: New file.
68103         * m4/lchmod.m4: New file.
68104
68105 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
68106
68107         Sync from coreutils.
68108         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
68109         for write access: POSIX says that must fail.
68110         * lib/fts.c (diropen): Likewise.
68111         * lib/save-cwd.c (save_cwd): Likewise.
68112         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
68113         well, for minor improvements on hosts that lack O_DIRECTORY.
68114         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
68115         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
68116         Fall back on chown if open failed with EACCES.
68117
68118         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
68119         Report an error at compile-time if only a 1-second nominal clock
68120         resolution is found.
68121
68122         * lib/lchmod.h: New file.
68123         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
68124         (make_dir_parents): Use lchown rather than chown, and
68125         lchmod rather than chmod.
68126
68127         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
68128         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
68129         "proc" reported by n0dalus.
68130
68131         * lib/mountlist.c: Include <limits.h>.
68132         (dev_from_mount_options)
68133         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
68134         New function.  It no longer assumes "dev=" has the System V meaning
68135         on Linux (since it doesn't).  It also parses "dev=" more carefully.
68136         (read_file_system_list)
68137         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
68138         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
68139         dev= in that case.
68140
68141         * lib/posixtm.h (PDS_PRE_2000): New macro.
68142         * lib/posixtm.c (year): Arg is now syntax_bits rather than
68143         allow_century.  All usages changed.  Reject dates outside the range
68144         1969-1999 if PDS_PRE_2000 is used.
68145
68146 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
68147
68148         Sync from coreutils.
68149         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
68150         (Time of day items): Mention the possibility of leap seconds.
68151         Problem reported by Dr. David Alan Gilbert.
68152
68153 2006-01-09  Jim Meyering  <jim@meyering.net>
68154
68155         Sync from coreutils.
68156
68157         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
68158
68159         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
68160
68161         * lib/modechange.c (mode_compile): Reject an invalid mode string
68162         that starts with an octal digit.  From Andreas Gruenbacher.
68163
68164         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
68165         and dup to open_safer and dup_safer, respectively.
68166         (openat_permissive): Fix typo in comment.
68167
68168         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
68169         "gettext.h"; either no longer needed or are guaranteed by openat.h.
68170         (_): Remove; no longer needed.
68171         (openat): Renamed from rpl_openat; no need for rpl_openat
68172         since openat.h renames openat for us.
68173         Replace most of the body with a call to openat_permissive,
68174         to avoid duplicate code.
68175         Port to (probably hypothetical) environments were mode_t is
68176         wider than int.
68177         (openat_permissive): Require mode arg, so that we can check
68178         types better.  Put it just after flags.  Change cwd failure
68179         indicator from pointer-to-bool to pointer-to-errno-value.
68180         All callers changed.
68181         Invoke openat_save_fail and/or openat_restore_fail if
68182         cwd_errno is null, so that openat can call us.
68183         (openat_permissive, fdopendir, fstatat, unlinkat):
68184         Simplify errno handling to avoid some duplicate code,
68185         as it's OK to set errno on success.
68186         * lib/openat.h: Revamp code so that function macros depend on
68187         __OPENAT_PREFIX only, not also on AT_FDCWD.
68188         (openat_ro): Remove.  Caller changed to use openat_permissive.
68189         (openat_permissive): Now a macro, if not a function.
68190         (openat_restore_fail, openat_save_fail): Now always functions,
68191         since mkdirat needs them even if __OPENAT_PREFIX is defined.
68192
68193         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
68194         and openat.c.
68195         * lib/mkdirat.c: Include openat-priv.h.
68196         Remove definitions of macros defined therein.
68197         * lib/openat.c: Likewise.
68198
68199         * lib/mkdirat.c (mkdirat): New file and function.
68200         * lib/openat.h (mkdirat): Declare.
68201
68202         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
68203
68204         * lib/openat.h (openat_permissive): Declare.
68205         (openat_ro): Define.
68206
68207         * lib/openat.c (EXPECTED_ERRNO): New macro.
68208         (openat_permissive): New function -- used in remove.c rewrite.
68209         (all functions): Set errno just before returning, only if there
68210         was an actual failure.
68211         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
68212
68213         Emulate openat-family functions using Linux's procfs, if possible.
68214         Idea and some code based on Ulrich Drepper's glibc changes.
68215
68216         * lib/openat.c: (BUILD_PROC_NAME): New macro.
68217         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
68218         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
68219         before falling back on save_cwd and restore_cwd.
68220         (fdopendir, fstatat, unlinkat): Likewise.
68221
68222         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
68223         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
68224
68225         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
68226         as second argument to va_arg.  Otherwise, some versions of gcc
68227         warn that `if this code is reached, the program will abort'.
68228
68229 2006-01-09  Jim Meyering  <jim@meyering.net>
68230
68231         Sync from coreutils.
68232         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
68233         Require openat-priv.h.
68234
68235 2006-01-09  Bruno Haible  <bruno@clisp.org>
68236
68237         * modules/strnlen (Include): Use strnlen.h.
68238
68239 2006-01-09  Bruno Haible  <bruno@clisp.org>
68240
68241         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
68242
68243 2006-01-09  Bruno Haible  <bruno@clisp.org>
68244
68245         * lib/sysexit_.h (EX_OK): New macro.
68246         Suggested by Martin Lambers <marlam@marlam.de>.
68247
68248 2006-01-09  Bruno Haible  <bruno@clisp.org>
68249
68250         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
68251         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
68252
68253 2006-01-09  Bruno Haible  <bruno@clisp.org>
68254
68255         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
68256         numbers.
68257
68258 2006-01-09  Bruno Haible  <bruno@clisp.org>
68259
68260         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
68261         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
68262         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
68263         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
68264
68265 2006-01-09  Bruno Haible  <bruno@clisp.org>
68266
68267         * build-aux/javacomp.sh.in: New file, moved from lib/.
68268         * modules/javacomp-script (Files): Update.
68269         (configure.ac): Add AC_CONFIG_FILES invocation.
68270         (EXTRA_DIST): Remove variable.
68271
68272         * build-aux/javaexec.sh.in: New file, moved from lib/.
68273         * modules/javaexec (Files): Update.
68274         (configure.ac): Add AC_CONFIG_FILES invocation.
68275         (EXTRA_DIST): Remove javaexec.sh.in.
68276
68277         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
68278         * modules/csharpcomp-script (Files): Update.
68279         (configure.ac): Add AC_CONFIG_FILES invocation.
68280         (EXTRA_DIST): Remove variable.
68281
68282         * build-aux/csharpexec.sh.in: New file, moved from lib/.
68283         * modules/csharpexec (Files): Update.
68284         (configure.ac): Add AC_CONFIG_FILES invocation.
68285         (EXTRA_DIST): Remove csharpexec.sh.in.
68286
68287 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
68288
68289         Sync from coreutils.
68290
68291         Add POSIX ACL support
68292         * lib/acl.h (copy_acl, set_acl): Add declarations.
68293         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
68294         systems other than Linux.
68295         (chmod_or_fchmod): New function: use fchmod when possible,
68296         and chmod otherwise.
68297         (file_has_acl): Add a POSIX ACL implementation, with a
68298         Linux-specific subcase.
68299         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
68300         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
68301         acls are unsupported.
68302         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
68303         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
68304         are unsupported.
68305
68306 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
68307
68308         Sync from coreutils.
68309         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
68310
68311 2006-01-07  Bruno Haible  <bruno@clisp.org>
68312
68313         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
68314         gl_EARLY.
68315
68316 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
68317
68318         * lib/strftime.c (tzname): Don't declare if it is already #defined.
68319         Problem reported for Mingw by Mark Junker.
68320
68321 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
68322
68323         * README: Gnulib normally doesn't generate a tarball.
68324
68325 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
68326
68327         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
68328         long int, not int, for nanosecond counts, so that people who are
68329         used to POSIX struct timespec won't be surprised.  Reported by Jim
68330         Meyering.
68331
68332 2005-12-28  Bruno Haible  <bruno@clisp.org>
68333
68334         * build-aux/config.rpath: Update from GNU gettext.
68335
68336 2005-12-16  Jim Meyering  <jim@meyering.net>
68337
68338         * modules/fprintftime: New module.
68339         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
68340
68341 2005-12-16  Jim Meyering  <jim@meyering.net>
68342
68343         * m4/fprintftime.m4: New file.
68344
68345 2005-12-16  Jim Meyering  <jim@meyering.net>
68346
68347         * lib/fprintftime.c, lib/fprintftime.h: New files.
68348
68349 2005-12-15  Simon Josefsson  <jas@extundo.com>
68350
68351         * modules/socklen (configure.ac): Fix M4 macro name, to align with
68352         new m4/socklen.m4.
68353
68354 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68355
68356         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
68357         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
68358
68359 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68360
68361         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
68362         * lib/argp-help.c (fill_in_uparams): Check if the constructed
68363         struct uparams is valid. Fall back to the default values if it is
68364         not.
68365
68366 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68367
68368         * modules/argp (Files): Add argp-pin.c
68369         (Depends-on): dirname
68370         (lib_SOURCES): Add argp-pin.c
68371
68372 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68373
68374         * m4/argp.m4:  Check if program_invocation_name and
68375         program_invocation_short_name are declared and define appropriate
68376         macros if they are not.
68377
68378 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68379
68380         * lib/argp-help.c (__argp_base_name): New function
68381         (__argp_short_program_name): Rewrite using __argp_base_name
68382         * lib/argp-namefrob.h: Define program_invocation_name and
68383         program_invocation_short_name if requested
68384         (__argp_base_name): Add prototype
68385         * lib/argp-parse.c (argp_def): Use gettext wrappers
68386         (argp_default_parser): Use __argp_base_name
68387         * lib/argp-pin.c: New file. Defines program_invocation_name and
68388         program_invocation_short_name on systems that lack them.
68389
68390 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
68391
68392         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
68393         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
68394         porting problem reported by Georg Schwarz in
68395         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
68396
68397 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
68398
68399         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
68400         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
68401         porting problem reported by Georg Schwarz in
68402         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
68403
68404 2005-12-05  Bruno Haible  <bruno@clisp.org>
68405
68406         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
68407         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
68408         Reported by Mark Junker <mjscod@gmx.de>.
68409
68410 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
68411
68412         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
68413         Use implementation from Albert Chin, with some
68414         comments/corrections by Stepan Kasal and myself.
68415
68416 2005-12-02  Bruno Haible  <bruno@clisp.org>
68417
68418         * gnulib-tool (func_import): Accept GPLed build tool modules when
68419         --lgpl is given.
68420         * modules/csharpcomp-script: New file.
68421         * modules/csharpcomp: Depend on it.
68422         * modules/javacomp-script: New file.
68423         * modules/javacomp: Depend on it.
68424         Suggested by Simon Josefsson.
68425
68426 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
68427
68428         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
68429         statement, to work around an HP-UX 10.20 compiler bug reported by
68430         Peter O'Gorman.
68431
68432 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
68433
68434         * modules/savedir (Depends-on): Add openat.
68435
68436 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
68437
68438         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
68439         (uintmax_t) [defined uintmax_t]: Do not declare.
68440         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
68441         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
68442         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
68443         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
68444         sake of portability to weird hosts that C allows (though we don't
68445         know of any practical examples).
68446
68447         * lib/savedir.h (fdsavedir): New decl.
68448         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
68449         contains most of the former guts of savedir.
68450         (savedir): Use savedirstream.
68451         Include "openat.h".
68452
68453 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
68454
68455         * modules/obstack (Files): Add m4/ulonglong.m4.
68456         Problem reported by Davide Angelocola.
68457
68458 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
68459
68460         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
68461         coreutils no longer futzes with rounding modes.
68462
68463 2005-11-14  Jim Meyering  <jim@meyering.net>
68464
68465         * lib/mkstemp-safer.c: Include <config.h>, required for possible
68466         replacement of mkstemp.
68467
68468 2005-11-10  Simon Josefsson  <jas@extundo.com>
68469
68470         * lib/readline.c: Remove EOL.
68471
68472 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68473
68474         * modules/gethrxtime (Depends-on): Add gettime.
68475
68476 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68477
68478         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
68479         or gettimeofday; no longer needed.
68480
68481 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68482
68483         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
68484         time business.
68485         (gethrxtime) [! (HAVE_NANOUPTIME
68486         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
68487         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
68488         our own approximation.
68489
68490 2005-11-08  Eric Blake  <ebb9@byu.net>
68491
68492         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
68493
68494 2005-11-08  Eric Blake  <ebb9@byu.net>
68495
68496         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
68497
68498 2005-11-04  Bruno Haible  <bruno@clisp.org>
68499
68500         * gnulib-tool: Implement --update mode.
68501
68502 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
68503
68504         Fix porting problem reported by Theodoros V. Kalamatianos.
68505         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
68506         Don't assume that futimes failing means we must fail.
68507
68508 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
68509
68510         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
68511         variables to suggest the intended function of the PATH_MAX check.
68512
68513 2005-10-30  Kean Johnston  <jkj@sco.com>
68514
68515         Trivial changes to support SCO systems.
68516         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
68517         as PATH_MAX.
68518         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
68519         where __ptr is null when no I/O is pending.
68520
68521 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68522
68523         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
68524         leave errno alone.  Problem reported by Dmitry V. Levin.
68525
68526 2005-10-28  Simon Josefsson  <jas@extundo.com>
68527
68528         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
68529         Test more.
68530
68531         * tests/test-gc-md2.c, tests/test-md2.c: New files.
68532
68533         * modules/md2, modules/md2-tests: New files.
68534
68535 2005-10-28  Simon Josefsson  <jas@extundo.com>
68536
68537         * m4/inet_ntop.m4: More tests.
68538
68539         * m4/gc-md2.m4, md2.m4: New file.
68540
68541 2005-10-28  Simon Josefsson  <jas@extundo.com>
68542
68543         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
68544         "restrict" keywords, as per POSIX.  Protect the function
68545         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
68546         Don't use K&R prototypes.  Check the sprintf return values.
68547         Re-define EAFNOSUPPORT if not present.  Indent.
68548
68549         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
68550         suggested by Bruno Haible <bruno@clisp.org>.
68551
68552         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
68553
68554         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
68555
68556         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
68557         libgcrypt).
68558
68559         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
68560
68561         * lib/md2.h, lib/md2.c: New files.
68562
68563 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
68564
68565         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
68566         errno alone.  Problem reported by Frederic Jolliton.
68567
68568 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
68569
68570         * modules/verify (License): Change from GPL to LGPL.  This is a
68571         tiny module and there are apparently near-equivalents that are
68572         under the BSD license.
68573
68574 2005-10-24  Simon Josefsson  <jas@extundo.com>
68575
68576         * modules/sha1: Relicense to LGPL.
68577
68578 2005-10-24  Simon Josefsson  <jas@extundo.com>
68579
68580         * lib/md4.h: Shrink buffer size, now that we changed the type.
68581
68582 2005-10-23  Simon Josefsson  <jas@extundo.com>
68583
68584         * gnulib-tool (func_import): Fix --tests-base.
68585
68586 2005-10-22  Simon Josefsson  <jas@extundo.com>
68587
68588         * modules/arcfour (Depends-on): Need stdint.
68589
68590 2005-10-22  Simon Josefsson  <jas@extundo.com>
68591
68592         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
68593         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
68594
68595 2005-10-22  Simon Josefsson  <jas@extundo.com>
68596
68597         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
68598         suggested by Bruno Haible <bruno@clisp.org>.
68599
68600 2005-10-22  Simon Josefsson  <jas@extundo.com>
68601
68602         * lib/crc.h: Include stddef.h, for size_t.
68603
68604 2005-10-22  Simon Josefsson  <jas@extundo.com>
68605
68606         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
68607         arcfour_context struct (simplify test vector testing in GNU
68608         Shishi).
68609
68610 2005-10-21  Simon Josefsson  <jas@extundo.com>
68611
68612         * modules/des, modules/des-tests: New files.
68613
68614         * modules/gc-des, modules/gc-des-tests: New files.
68615
68616         * tests/test-des.c, tests/test-gc-des.c: New file.
68617
68618 2005-10-21  Simon Josefsson  <jas@extundo.com>
68619
68620         * modules/arctwo, modules/arctwo-tests: New files.
68621
68622         * tests/test-arctwo.c: New file.
68623
68624         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
68625
68626         * tests/test-gc-arctwo.c: New file.
68627
68628 2005-10-21  Simon Josefsson  <jas@extundo.com>
68629
68630         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
68631         Bruno Haible <bruno@clisp.org>.
68632
68633         * m4/gc-des.m4: New file.
68634
68635 2005-10-21  Simon Josefsson  <jas@extundo.com>
68636
68637         * m4/arctwo.m4: New file.
68638
68639         * m4/gc-arctwo.m4: New file.
68640
68641 2005-10-21  Simon Josefsson  <jas@extundo.com>
68642
68643         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
68644         block.
68645
68646 2005-10-21  Simon Josefsson  <jas@extundo.com>
68647
68648         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
68649         <bruno@clisp.org>.
68650
68651         * lib/hmac-sha1.c (hmac_sha1): Likewise.
68652
68653         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
68654         Bruno Haible <bruno@clisp.org>.
68655
68656         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
68657         <bruno@clisp.org>.
68658
68659 2005-10-21  Simon Josefsson  <jas@extundo.com>
68660
68661         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
68662
68663 2005-10-21  Simon Josefsson  <jas@extundo.com>
68664
68665         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
68666
68667 2005-10-21  Simon Josefsson  <jas@extundo.com>
68668
68669         * lib/des.h, lib/des.c: New files.
68670
68671         * lib/gc-gnulib.c: Support DES.c
68672
68673 2005-10-21  Simon Josefsson  <jas@extundo.com>
68674
68675         * lib/arctwo.h, lib/arctwo.c: New files.
68676
68677         * lib/gc-gnulib.c: Support ARCTWO.
68678
68679 2005-10-21  Simon Josefsson  <jas@extundo.com>
68680
68681         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
68682         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68683
68684 2005-10-21  Simon Josefsson  <jas@extundo.com>
68685
68686         * gnulib-tool (func_import, func_create_testdir): Define automake
68687         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
68688         Makefile.am snippet),
68689         suggested by Bruno Haible <bruno@clisp.org>.
68690
68691         * modules/gc (Makefile.am): Use it.
68692
68693 2005-10-21  Bruno Haible  <bruno@clisp.org>
68694
68695         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
68696         patch.
68697
68698 2005-10-19  Simon Josefsson  <jas@extundo.com>
68699
68700         * tests/test-gc-rijndael.c: New file.
68701
68702         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
68703
68704 2005-10-19  Simon Josefsson  <jas@extundo.com>
68705
68706         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
68707         interface too.
68708
68709 2005-10-19  Simon Josefsson  <jas@extundo.com>
68710
68711         * tests/test-gc-arcfour.c: New file.
68712
68713         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
68714
68715 2005-10-19  Simon Josefsson  <jas@extundo.com>
68716
68717         * modules/gc-md4, modules/gc-md4-tests: New file.
68718
68719         * tests/test-gc-md4.c: New file.
68720
68721 2005-10-19  Simon Josefsson  <jas@extundo.com>
68722
68723         * m4/gc-md4.m4: New file.
68724
68725 2005-10-19  Simon Josefsson  <jas@extundo.com>
68726
68727         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
68728         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
68729         <kasal@ucw.cz>.
68730
68731 2005-10-19  Simon Josefsson  <jas@extundo.com>
68732
68733         * m4/gc-arcfour.m4: New file.
68734
68735         * m4/gc-rijndael.m4: New file.
68736
68737 2005-10-19  Simon Josefsson  <jas@extundo.com>
68738
68739         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
68740
68741 2005-10-19  Simon Josefsson  <jas@extundo.com>
68742
68743         * lib/gc-gnulib.c: Support ARCFOUR.
68744
68745 2005-10-19  Simon Josefsson  <jas@extundo.com>
68746
68747         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
68748         support.
68749
68750         * lib/gc.h: Add ECB enum type.
68751
68752         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
68753
68754 2005-10-18  Simon Josefsson  <jas@extundo.com>
68755
68756         * tests/test-md5.c: New file.
68757
68758         * modules/md5-tests: New file.
68759
68760 2005-10-18  Simon Josefsson  <jas@extundo.com>
68761
68762         * tests/test-md4.c: New file.
68763
68764         * modules/md4, modules/md4-tests: New files.
68765
68766 2005-10-18  Simon Josefsson  <jas@extundo.com>
68767
68768         * m4/md4.m4: New file.
68769
68770 2005-10-18  Simon Josefsson  <jas@extundo.com>
68771
68772         * lib/md4.h, lib/md4.c: New files, based on md5.?.
68773
68774 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
68775
68776         * gnulib-tool (func_create_testdir): Omit the second check whether
68777         BUILT_SOURCES in nonempty.
68778
68779 2005-10-17  Simon Josefsson  <jas@extundo.com>
68780
68781         * tests/test-rijndael.c: New file.
68782
68783 2005-10-17  Simon Josefsson  <jas@extundo.com>
68784
68785         * modules/sha1: Depend on stdint instead of md5.
68786
68787         * modules/md5: Depend on stdint, remove uint32_t.
68788
68789 2005-10-17  Simon Josefsson  <jas@extundo.com>
68790
68791         * modules/gc-sha1-tests: New file.
68792
68793         * tests/test-gc-sha1.c: New file.
68794
68795 2005-10-17  Simon Josefsson  <jas@extundo.com>
68796
68797         * m4/md5.m4: Remove call to uint32_t.m4.
68798
68799 2005-10-17  Simon Josefsson  <jas@extundo.com>
68800
68801         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
68802
68803         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
68804         md5.h.
68805
68806         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
68807
68808         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
68809
68810 2005-10-17  Simon Josefsson  <jas@extundo.com>
68811
68812         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
68813
68814 2005-10-17  Simon Josefsson  <jas@extundo.com>
68815
68816         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
68817
68818 2005-10-17  Simon Josefsson  <jas@extundo.com>
68819
68820         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
68821
68822         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
68823
68824 2005-10-17  Bruno Haible  <bruno@clisp.org>
68825
68826         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
68827         that it can also be used in a test.
68828
68829 2005-10-16  Bruno Haible  <bruno@clisp.org>
68830
68831         * gnulib-tool (func_emit_tests_Makefile_am): Also define
68832         TESTS_ENVIRONMENT, so that individual tests can augment it.
68833
68834         * gnulib-tool (func_create_testdir): Use an intermediate target for
68835         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
68836         macros, like $(ALLOCA_H), which cannot be passed through the command
68837         line.
68838
68839 2005-10-15  Simon Josefsson  <jas@extundo.com>
68840
68841         * modules/rijndael-tests: New file.
68842
68843         * modules/rijndael: New file.
68844
68845 2005-10-15  Simon Josefsson  <jas@extundo.com>
68846
68847         * m4/rijndael.m4: New file.
68848
68849 2005-10-15  Simon Josefsson  <jas@extundo.com>
68850
68851         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
68852
68853         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
68854
68855 2005-10-14  Simon Josefsson  <jas@extundo.com>
68856
68857         * tests/test-arcfour.c: New file.
68858
68859         * modules/arcfour, modules/arcfour-tests: New files.
68860
68861 2005-10-14  Simon Josefsson  <jas@extundo.com>
68862
68863         * m4/arcfour.m4: New file.
68864
68865 2005-10-14  Simon Josefsson  <jas@extundo.com>
68866
68867         * lib/arcfour.h, lib/arcfour.c: New files.
68868
68869 2005-10-14  Roland McGrath  <roland@redhat.com>
68870
68871         Import from libc.  [BZ #1331]
68872         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
68873         macro argument.
68874         Reported by Matej Vela <vela@debian.org>.
68875
68876 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68877
68878         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
68879         include <wchar.h>; no longer needed.
68880
68881 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68882
68883         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
68884
68885 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
68886         and  Ulrich Drepper  <drepper@redhat.com>
68887
68888         Import from libc.
68889         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
68890         instead of inline stream orientation test and two separate
68891         function calls.  Pay no attention to USE_IN_LIBIO.
68892
68893 2005-10-13  Simon Josefsson  <jas@extundo.com>
68894
68895         * modules/gc-hmac-md5-tests: New file.
68896
68897         * tests/test-gc-hmac-sha1.c: New file.
68898
68899         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
68900
68901         * modules/gc-hmac-md5-tests: New file.
68902
68903         * tests/test-gc-md5.c: New file.
68904
68905         * modules/gc-md5-tests: New file.
68906
68907 2005-10-13  Simon Josefsson  <jas@extundo.com>
68908
68909         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
68910         Move memory allocation outside of loop.
68911
68912 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
68913
68914         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
68915         intermediate directory is in a read-only file system.  Problem
68916         reported by Eric Blake.
68917
68918 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
68919
68920         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
68921
68922 2005-10-12  Simon Josefsson  <jas@extundo.com>
68923
68924         * tests/test-hmac-sha1.c: New file.
68925
68926         * modules/hmac-sha1-tests: New file.
68927
68928         * modules/hmac-sha1: New file.
68929
68930 2005-10-12  Simon Josefsson  <jas@extundo.com>
68931
68932         * modules/gc-sha1: New file.
68933
68934 2005-10-12  Simon Josefsson  <jas@extundo.com>
68935
68936         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
68937
68938         * tests/test-gc-pbkdf2-sha1.c: New file.
68939
68940 2005-10-12  Simon Josefsson  <jas@extundo.com>
68941
68942         * modules/gc-md5, modules/gc-hmac-md5: New files.
68943
68944         * modules/gc (Files): Remove md5, memxor and hmac files.
68945
68946 2005-10-12  Simon Josefsson  <jas@extundo.com>
68947
68948         * m4/gc-pbkdf2-sha1.m4: New file.
68949
68950         * m4/gc-hmac-sha1.m4: New file.
68951
68952         * m4/gc-sha1: New file.
68953
68954         * m4/hmac-sha1.m4: New file.
68955
68956 2005-10-12  Simon Josefsson  <jas@extundo.com>
68957
68958         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
68959
68960         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
68961
68962 2005-10-12  Simon Josefsson  <jas@extundo.com>
68963
68964         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
68965         suggested by Bruno Haible <bruno@clisp.org>.
68966
68967 2005-10-12  Simon Josefsson  <jas@extundo.com>
68968
68969         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
68970
68971 2005-10-12  Simon Josefsson  <jas@extundo.com>
68972
68973         * lib/gc-pbkdf2-sha1.c: New file.
68974
68975         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
68976
68977 2005-10-12  Simon Josefsson  <jas@extundo.com>
68978
68979         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
68980
68981         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
68982
68983 2005-10-12  Simon Josefsson  <jas@extundo.com>
68984
68985         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
68986         GC_USE_HMAC_MD5, respectively.
68987
68988         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
68989         (gc_md5): Fix typo.
68990
68991         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
68992
68993         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
68994
68995         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
68996
68997 2005-10-12  Bruno Haible  <bruno@clisp.org>
68998
68999         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
69000         Reported by Stepan Kasal <kasal@ucw.cz>.
69001
69002 2005-10-11  Simon Josefsson  <jas@extundo.com>
69003
69004         * tests/test-crc.c: New file.
69005
69006         * modules/crc, modules/crc-tests: New files.
69007
69008 2005-10-11  Simon Josefsson  <jas@extundo.com>
69009
69010         * m4/crc.m4: New file.
69011
69012 2005-10-11  Simon Josefsson  <jas@extundo.com>
69013
69014         * lib/gc.h: Add gc_hash and gc_hash_buffer.
69015
69016         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
69017
69018         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
69019
69020 2005-10-11  Simon Josefsson  <jas@extundo.com>
69021
69022         * lib/crc.h, lib/crc.c: New files.
69023
69024         * lib/gc.h (gc_hash_buffer): Add doc.
69025
69026 2005-10-11  Bruno Haible  <bruno@clisp.org>
69027
69028         * modules/c-strcasestr: New file.
69029         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
69030
69031 2005-10-11  Bruno Haible  <bruno@clisp.org>
69032
69033         * modules/c-strcase: New file.
69034         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
69035
69036 2005-10-11  Bruno Haible  <bruno@clisp.org>
69037
69038         * lib/strcasecmp.c: Include limits.h.
69039         (strcasecmp): Avoid integer overflow on exotic platforms.
69040         * lib/strncasecmp.c: Include limits.h.
69041         (strncasecmp): Avoid integer overflow on exotic platforms.
69042         Reported by Paul Eggert.
69043
69044 2005-10-11  Bruno Haible  <bruno@clisp.org>
69045
69046         * lib/c-strcasestr.h: New file, from GNU gettext.
69047         * lib/c-strcasestr.c: New file, from GNU gettext.
69048
69049 2005-10-11  Bruno Haible  <bruno@clisp.org>
69050
69051         * lib/c-strcase.h: New file, from GNU gettext.
69052         * lib/c-strcasecmp.c: New file, from GNU gettext.
69053         * lib/c-strncasecmp.c: New file, from GNU gettext.
69054
69055 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
69056
69057         * modules/mempcpy (License): GPL -> LGPL.
69058         * modules/strchrnul (License): Likewise.
69059         * modules/sysexits (License): Likewise.
69060
69061 2005-10-08  Simon Josefsson  <jas@extundo.com>
69062
69063         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
69064
69065 2005-10-07  Simon Josefsson  <jas@extundo.com>
69066
69067         * m4/memxor.m4: Remove gl_C_RESTRICT call.
69068
69069 2005-10-06  Simon Josefsson  <jas@extundo.com>
69070
69071         * tests/test-hmac-md5.c: New file.
69072
69073         * modules/hmac-md5-tests: New file.
69074
69075         * modules/hmac-md5: New file.
69076
69077 2005-10-06  Simon Josefsson  <jas@extundo.com>
69078
69079         * m4/hmac-md5.m4: New file.
69080
69081         * m4/memxor.m4: Require gl_C_RESTRICT.
69082
69083 2005-10-06  Simon Josefsson  <jas@extundo.com>
69084
69085         * lib/memxor.c (memxor): Avoid casts and warnings.
69086
69087 2005-10-06  Simon Josefsson  <jas@extundo.com>
69088
69089         * lib/hmac-md5.c: New file.
69090
69091         * lib/hmac.h: New file.
69092
69093 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
69094
69095         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
69096         promotes to int, not unsigned int, to catch the AIX 5.3
69097         compiler bug.
69098
69099 2005-10-05  Simon Josefsson  <jas@extundo.com>
69100
69101         * modules/memxor: New file.
69102
69103         * modules/iconv (Files): Move config.rpath to havelib, it is used
69104         there.
69105
69106         * modules/havelib (Files): Add config.rpath.
69107
69108 2005-10-05  Simon Josefsson  <jas@extundo.com>
69109
69110         * m4/memxor.m4: New file.
69111
69112 2005-10-05  Simon Josefsson  <jas@extundo.com>
69113
69114         * lib/memxor.c (memxor): Fix compiler error.
69115
69116         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
69117         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
69118
69119         * lib/memxor.h, lib/memxor.c: New files.
69120
69121         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
69122         we assume all systems have it, suggested by Jim Meyering
69123         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
69124         any systems lack sys/socket.h; mingw32 is known to lack it, but we
69125         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
69126         same reasons.
69127
69128 2005-10-05  Simon Josefsson  <jas@extundo.com>
69129
69130         * config/srclist.txt: Add glibc bug 1423 for md5.h.
69131
69132 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
69133
69134         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
69135         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
69136         needed, since the source code now assumes these .h files.
69137
69138 2005-10-05  Derek Price  <derek@ximbiot.com>
69139
69140         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
69141
69142 2005-10-05  Bruno Haible  <bruno@clisp.org>
69143
69144         * modules/stdint (License): Change to LGPL.
69145
69146 2005-10-04  Simon Josefsson  <jas@extundo.com>
69147
69148         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
69149         D. Baushke" <mdb@gnu.org>.
69150
69151 2005-10-04  Bruno Haible  <bruno@clisp.org>
69152
69153         * lib/verify.h (verify_true): Provide alternative definition for C++.
69154
69155 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
69156
69157         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
69158         (SSIZE_MAX): New macro, if not already defined.
69159         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
69160         than 2 GiB.
69161
69162 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
69163
69164         Sync from coreutils.
69165         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
69166         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
69167         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
69168         ULLONG_MAX doesn't work with 2.7.2.1.
69169
69170 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
69171
69172         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
69173         From Ben Pfaff.
69174
69175         * modules/exclude (Depends-on): Depend on verify.
69176         * modules/strtoimax (Depends-on): Likewise.
69177         * modules/utimecmp (Depends-on): Likewise.
69178
69179 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
69180
69181         * lib/exclude.c: Include verify.h.
69182         (verify): Remove.  All callers changed to use verify.h's version.
69183         * lib/strtoimax.c: Likewise.
69184         * lib/utimecmp.c: Likewis.e
69185
69186         Sync from coreutils.
69187         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
69188         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
69189         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
69190         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
69191         bother returning ENOSYS if settimeofday or stime fails; just let
69192         them return whatever errno they want to return.
69193         * lib/utimens.c: Include unistd.h, for dup2.
69194         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
69195         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
69196
69197 2005-10-02  Jim Meyering  <jim@meyering.net>
69198
69199         Sync from coreutils.
69200         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
69201         from glibc-2.2.5 that fails for read-only files.
69202
69203 2005-10-02  Jim Meyering  <jim@meyering.net>
69204
69205         Sync from coreutils.
69206         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
69207         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
69208         `#if HAVE_CONFIG_H'.
69209         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
69210         Remove AT_FDCWD test.
69211         Do not consume the fd unless successful.
69212         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
69213         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
69214         block, so that we don't even try to compile it if settimeofday is
69215         available.  This works around a compilation failure on OSF1 V5.1,
69216         due to stime requiring a `long int*' while tv_sec is `int'.
69217
69218 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
69219
69220         Sync from coreutils.
69221         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
69222         against `yes', rather than just testing for nonempty.
69223
69224 2005-10-01  Simon Josefsson  <jas@extundo.com>
69225
69226         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
69227         and Darwin.
69228
69229         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
69230         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
69231         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
69232         freeaddrinfo and gai_strerror are declared by the POSIX headers.
69233         Check if struct addrinfo is declared.
69234
69235 2005-10-01  Simon Josefsson  <jas@extundo.com>
69236
69237         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
69238         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
69239         AI_* and EAI_* definitions.  Protect function declarations.
69240
69241 2005-10-01  Jim Meyering  <jim@meyering.net>
69242
69243         Sync from coreutils.
69244
69245         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
69246         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
69247         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
69248         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
69249         in the inet and nsl libraries.  Required on Solaris 5.7.
69250
69251 2005-10-01  Jim Meyering  <jim@meyering.net>
69252
69253         Sync from coreutils.
69254         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
69255         in the inet and nsl libraries.  Required on Solaris 5.7.
69256
69257 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
69258
69259         * lib/getdelim.c (getdelim): Remove unused variables.
69260
69261 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
69262
69263         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
69264         so that the code works even with ancient cpp.  Portability problem
69265         with GCC 2.7.2.1 reported by Thomas M.Ott.
69266
69267 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
69268
69269         * modules/regex (Depends-on): Add strcase.
69270
69271         * modules/gethostname (Licence): Change from GPL to LGPL, since
69272         gethostname.c is a trivial implementation of a standard library
69273         function.
69274         * modules/poll (License): Change from GPL to LGPL, since it's
69275         derived from LGPL code.
69276
69277 2005-09-27  Jim Meyering  <jim@meyering.net>
69278
69279         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
69280         HAVE_CONFIG_H.
69281
69282         * lib/intprops.h (signed_type_or_expr__): Define.
69283         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
69284         for unsigned types.
69285
69286 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
69287
69288         * lib/verify.h (verify_expr): Remove, replacing with:
69289         (verify_true): New macro that returns true instead of void.
69290         (verify_type__): Remove.
69291         (verify): Use verify_true rather than verify_type__.
69292
69293 2005-09-26  Bruno Haible  <bruno@clisp.org>
69294
69295         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
69296         is necessary.
69297         (lib_SOURCES): Remove mbchar.c.
69298         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
69299         (Files): Add m4/mbrtowc.m4.
69300         * modules/mbiter: Likewise.
69301         * modules/mbuiter: Likewise.
69302
69303 2005-09-26  Bruno Haible  <bruno@clisp.org>
69304
69305         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
69306         compile mbchar.c if they are not both present.
69307         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
69308         * m4/mbiter.m4 (gl_MBITER): Likewise.
69309         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
69310         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
69311         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
69312
69313 2005-09-25  Jim Meyering  <jim@meyering.net>
69314
69315         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
69316         also uses socklen_t.
69317
69318 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
69319
69320         * lib/utimens.c (ENOSYS): Define if not already defined.
69321         (futimens): Support having a null PATH if the file descriptor
69322         is nonnegative.
69323
69324         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
69325         Remove.
69326         (__attribute): Define to empty unless GCC 3.1 or later.
69327         This works around a core dump on OpenBSD 3.4, which has GCC
69328         2.95.3, which dumps core when given __attribute__(()).  It also
69329         simplifies other tests, since we really don't want to bother with
69330         worrying about which ancient version of GCC supported what.
69331         Original problem reported by Yoann Vandoorselaere, with part of
69332         the fix suggested by Derek Price.
69333
69334 2005-09-24  Jim Meyering  <jim@meyering.net>
69335
69336         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
69337         so we can once again use a positive bitfield width of 1 -- now we
69338         don't have to explain why we were using a bitfield width of 2.
69339
69340 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
69341
69342         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
69343         and similarly for the other external symbols.  Problem reported
69344         by James Gallager.
69345
69346         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
69347         bug reported by Jim Meyering.
69348
69349         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
69350         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
69351         not needed, since socklen is a prerequisite module.
69352
69353 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
69354
69355         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
69356         Problem reported by Eric Blake.
69357         (getaddrinfo): Initialize se so that it's not garbage.
69358         Redo internal storage allocation so that it doesn't make unportable
69359         assumptions about alignment.
69360         Fix a memory leak.
69361
69362         * lib/utimens.c (futimens): Use futimesat if available.
69363         Prefer it to futimes since it doesn't have the futimes bug.
69364
69365         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
69366         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
69367         Instead, declare a function that returns a pointer to an array,
69368         and use verify_type__ to declare the size of the array.
69369         Problem and germ of a solution reported by Bruno Haible.
69370         (verify_type__): Use 2, not 1, for bitfield size, to avoid
69371         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
69372
69373 2005-09-23  Jim Meyering  <jim@meyering.net>
69374
69375         Sync from coreutils.
69376         Correct build failure (socklen_t not defined) on at least
69377         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
69378         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
69379
69380 2005-09-23  Jim Meyering  <jim@meyering.net>
69381
69382         * modules/getaddrinfo (Depends-on): Add socklen.
69383
69384 2005-09-23  Bruno Haible  <bruno@clisp.org>
69385
69386         * tests/test-verify.c: New file.
69387
69388 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
69389
69390         Sync from coreutils.
69391
69392         * modules/argmatch (Depends-on): Add verify.
69393         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
69394         unistd-safer.
69395         * modules/save-cwd (Depends-on): Likewise.
69396
69397         * modules/openat (Files): Add lib/openat-die.c.
69398         (Depends-on): Remove error, exitfail.
69399         Add dirname.
69400
69401         * modules/verify: New file.
69402         * MODULES.html.sh (Diagnostics <assert.h>): New section,
69403         with "verify" module.
69404
69405 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
69406
69407         Sync from coreutils.
69408
69409         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
69410         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
69411         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
69412         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
69413         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
69414         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
69415         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
69416         Don't bother checking for string.h, stdlib.h, unistd.h.
69417         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
69418         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
69419         module's job.
69420         * m4/jm-macros.m4 (gl_MACROS): Likewise.
69421         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
69422
69423         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
69424         (gl_GETDATE): Use it.
69425
69426         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
69427
69428 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
69429
69430         Sync from coreutils.
69431
69432         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
69433         stat-time.h.
69434         * lib/argmatch.h: Include verify.h
69435         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
69436         (ARGMATCH_ASSERT): Remove; unused.
69437         * lib/canonicalize.c: Assume STDC_HEADERS.
69438         * lib/exclude.c: Include "strcase.h".
69439         * lib/regex_internal.h [!defined _LIBC]: Likewise.
69440         * lib/getusershell.c: Include stdio--.h rather than stdio.h
69441         and stdio-safer.h.
69442         (getusershell): Call fopen, not fopen_safer.
69443         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
69444         Do not include unistd-safer.h.
69445         (save_cwd): Don't call fd_safer; no longer needed
69446         now that we include fcntl--.h.
69447
69448         * lib/getdate.y (relative_time): New type.
69449         (RELATIVE_TIME_0): New constant.
69450         (parser_control): Use relative_time instead of doing it ourselves.
69451         (%union): Add new relative_time rel member.
69452         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
69453         Now typeless.
69454         (relunit, relunit_snumber): Now of type rel.
69455         (zone, rel, relunit, get_date): Adjust to above changes.
69456
69457         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
69458         Do not include unistd-safer.h.
69459         (getloadavg): Don't call fd_safer; no longer needed
69460         now that we include fcntl--.h.
69461
69462         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
69463         (make_dir_parents): Treat ENOSYS like EEXIST.
69464
69465         Improve quality of diagnostics on restore_cwd failure.
69466         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
69467         (make_dir_parents): Last arg is now int * (for errno), not bool *.
69468         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
69469         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
69470         each time through the loop.  Do not diagnose restore_cwd failure;
69471         that is the caller's job (and perhaps the caller does not care).
69472
69473         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
69474         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
69475         If the file already exists but is not a directory, don't bother
69476         to try to make its parents.
69477         Close potential file descriptor leak if we can't chdir("/") (!).
69478         Don't always return true if chdir($PWD) fails; return true only
69479         if the requested action was done successfully (except for the
69480         chdir($PWD)).
69481         Don't log final directory unless we actually made it.
69482         Refactor to avoid duplicate code to fix up permissions.
69483         Don't attempt to fix up parent permissions if chdir($PWD) fails.
69484
69485         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
69486         to make it a bit faster and (I hope) clearer.
69487         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
69488         Fix bug in formats like %2N.
69489
69490         * lib/verify.h: New file.
69491
69492 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
69493
69494         Sync from coreutils.
69495         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
69496
69497 2005-09-22  Jim Meyering  <jim@meyering.net>
69498
69499         Sync from coreutils.
69500
69501         * m4/lstat.m4 (gl_FUNC_LSTAT):
69502         Use AC_LIBSOURCES to require lstat.c and lstat.h.
69503         Remove obsolete comment.
69504         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
69505         * m4/xstrtod.m4: Likewise.
69506
69507         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
69508
69509 2005-09-22  Jim Meyering  <jim@meyering.net>
69510
69511         Sync from coreutils.
69512
69513         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
69514
69515         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
69516         the .tm_year member, since otherwise gcc-4.0 would now warn about
69517         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
69518
69519         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
69520         order to avoid an unsuppressible warning from gcc on 64-bit systems.
69521
69522         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
69523         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
69524         when run in a time zone for which daylight savings time is in effect
69525         for the starting date.
69526
69527         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
69528         stop us from restricting permissions of just-created absolute-named
69529         directories.
69530         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
69531         to restore initial working directory.
69532         * lib/mkdir-p.c (make_dir_parents): New parameter:
69533         different_working_dir, to tell caller if/when we change the working
69534         directory and are unable to return to the initial one.
69535         * lib/mkdir-p.h (make_dir_parents): Update prototype.
69536         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
69537         `return false'.  This fixes a bug introduced on 2004-07-30.
69538
69539         * lib/openat.c (fdopendir): Be sure to close the supplied
69540         file descriptor before returning.  This makes our replacement
69541         implementation a little closer to Solaris's, where fdopendir
69542         ties the file descriptor to the returned DIR* pointer.
69543         * lib/openat.c (unlinkat): New function.
69544         * lib/openat.h (unlinkat): Add prototype.
69545         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
69546         (openat_restore_fail): Rename from openat_restore_die.
69547         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
69548
69549         Provide an alternative to exiting immediately upon save_cwd or
69550         restore_cwd failure.  Now, an application can arrange e.g.,
69551         to perform a longjump in that case.
69552         * lib/openat.c: Include dirname.h.
69553         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
69554         (rpl_openat, fdopendir, fstatat): Call openat_save_die
69555         and openat_restore_die rather than calling error directly.
69556         Don't include "error.h" or "exitfail.h"; they're no longer needed.
69557
69558         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
69559         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
69560         define.
69561
69562         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
69563         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
69564                             int utc, int nanoseconds);
69565         Background:
69566         date should not have to allocate a megabyte of virtual memory to
69567         handle a format argument like +%1048575T.  When implemented with
69568         strftime, it must allocate such a buffer, use strftime to fill it
69569         in, print it, then free it.
69570         With fprintftime, it simply prints everything and exits.
69571         With no need for memory allocation, that's one fewer way to fail.
69572         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
69573         optional field width, not before, so we accept %9:z, not %:9z.
69574         (my_strftime): Be sure to use L_('x') for literals.
69575
69576         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
69577         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
69578         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
69579         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
69580         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
69581         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
69582         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
69583         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
69584         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
69585         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
69586         * lib/xgethostname.c, lib/xreadlink.c:
69587         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
69588
69589         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
69590         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
69591         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
69592         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
69593         and don't include <sys/file.h>).
69594
69595 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
69596
69597         Sync from coreutils.
69598
69599         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
69600         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
69601         [!LDAV_DONE]: Avoid unused variable warning.
69602
69603 2005-09-21  Bruno Haible  <bruno@clisp.org>
69604
69605         * lib/unicodeio.h (unicode_to_mb): New declaration.
69606
69607 2005-09-20  Derek Price  <derek@ximbiot.com>
69608
69609         * lib/getaddrinfo.c: Don't include <netdb.h> included from
69610         getaddrinfo.h.
69611
69612 2005-09-20  Bruno Haible  <bruno@clisp.org>
69613
69614         * gnulib-tool: Remove trailing slashes from the values specified for
69615         --source-base, --m4-base, --tests-base, --aux-dir.
69616         Suggested by Simon Josefsson <jas@extundo.com>.
69617
69618 2005-09-20  Bruno Haible  <bruno@clisp.org>
69619
69620         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
69621         func_modules_to_filelist, func_import, func_create_testdir): Make all
69622         sorting results locale-independent, so that gnulib-cache.m4 doesn't
69623         change when gnulib-tool is invoked in a different locale.
69624
69625 2005-09-19  Simon Josefsson  <jas@extundo.com>
69626
69627         * m4/socklen.m4: Fix typo.
69628
69629 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69630
69631         Use a consistent style for including <config.h>.
69632         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
69633         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
69634         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
69635         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
69636         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
69637         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
69638         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
69639         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
69640         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
69641         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
69642         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
69643         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
69644         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
69645         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
69646         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
69647         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
69648         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
69649         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
69650         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
69651         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
69652         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
69653         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
69654         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
69655         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
69656         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
69657         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
69658         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
69659         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
69660         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
69661         lib/xstrtoumax.c, lib/yesno.c:
69662         Standardize inclusion of config.h.
69663         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
69664         lib/inttostr.h:  Removed inclusion of config.h from header files.
69665         * lib/inttostr.c:  Adjusted in-tree users.
69666         * lib/timespec.h: Remove superfluous warning to include config.h.
69667         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
69668         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
69669         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
69670         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
69671         config.h with HAVE_CONFIG_H.
69672
69673 2005-09-19  Jim Meyering  <jim@meyering.net>
69674
69675         * modules/pathmax (License): Change to LGPL.
69676
69677 2005-09-19  Derek Price  <derek@ximbiot.com>
69678
69679         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
69680
69681 2005-09-19  Bruno Haible  <bruno@clisp.org>
69682
69683         * gnulib-tool (import): Provide default for --tests-base.
69684
69685 2005-09-19  Bruno Haible  <bruno@clisp.org>
69686
69687         * doc/quote.texi: New file, extracted from gnulib.texi.
69688         * doc/ctime.texi: New file, extracted from gnulib.texi.
69689         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
69690         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
69691         * doc/gnulib.texi: Include them.
69692
69693 2005-09-18  Bruno Haible  <bruno@clisp.org>
69694
69695         Portability fix.
69696         * gnulib-tool (func_readlink): New function.
69697         (func_ln_if_changed): Use it.
69698
69699 2005-09-18  Bruno Haible  <bruno@clisp.org>
69700
69701         * gnulib-tool: Support --with-tests also with --import.
69702         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
69703         (func_import): Use variables $testsbase and $inctests. Emit a
69704         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
69705         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
69706         SUBDIRS += $testsdir.
69707         (func_create_testdir): Update.
69708
69709 2005-09-18  Bruno Haible  <bruno@clisp.org>
69710
69711         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
69712         instead of $dry_run.
69713         (func_cp_if_changed, func_mv_if_changed): Remove functions.
69714         (func_ln_if_changed): Don't handle dry-run here.
69715         (func_import): In dry-run mode, detect more precisely which actions
69716         would be performed, and don't use "...ing" verbs.
69717
69718 2005-09-18  Bruno Haible  <bruno@clisp.org>
69719
69720         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
69721         (func_import): Use join on two temporary files instead of three nested
69722         loops, in order to determine which files are new or old.
69723
69724 2005-09-18  Bruno Haible  <bruno@clisp.org>
69725
69726         * gnulib-tool (func_import): Comment out code that spits out the
69727         new files with --dry-run.
69728
69729 2005-09-18  Bruno Haible  <bruno@clisp.org>
69730
69731         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
69732
69733 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
69734
69735         * lib/stat-time.h: New file.
69736         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
69737         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
69738         in a different way.
69739         (timespec_cmp): New function.
69740         * lib/utimecmp.c: Include stat-time.h.
69741         (SYSCALL_RESOLUTION): Depend on whether various struct stat
69742         members exist, not on the obsolescent ST_MTIM_NSEC.
69743         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
69744
69745 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
69746
69747         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
69748
69749 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
69750
69751         * MODULES.html.sh (File system functions): Add stat-time.
69752         * modules/stat-time: New file.
69753         * modules/timespec (Files): Remove m4/st_mtim.m4; this
69754         is now done in a different way, by the stat-time module.
69755         * modules/utimecmp (Depends-on): Add stat-time.
69756
69757 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69758
69759         * m4/st_mtim.m4: Remove.  Superseded by...
69760         * m4/stat-time.m4: New file.
69761         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
69762         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
69763
69764 2005-09-15  Derek Price  <derek@ximbiot.com>
69765
69766         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
69767
69768 2005-09-15  Derek Price  <derek@ximbiot.com>
69769
69770         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
69771         * lib/regex_internal.c: Ditto, using this...
69772         (__GNUC_PREREQ): ...new macro.
69773         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
69774         using...
69775         (__GNUC_PREREQ): ...this new macro.
69776
69777         * lib/strstr.h: Include string.h. Define strstr as a macro here.
69778
69779 2005-09-15  Derek Price  <derek@ximbiot.com>
69780             Paul Eggert  <eggert@cs.ucla.edu>
69781
69782         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
69783         changes, consolidating in...
69784         * lib/regex_internal.h: ...this file.
69785
69786 2005-09-13  Jim Meyering  <jim@meyering.net>
69787
69788         * lib/canon-host.c: Filter through gnu indent and reword comments
69789         slightly.
69790         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
69791
69792 2005-09-13  Derek Price  <derek@ximbiot.com>
69793
69794         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
69795         failure.
69796         Reported by Jim Meyering  <jim@meyering.net>.
69797
69798 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69799
69800         * lib/base64.c: Typo.
69801         (base64_encode): Put b64str in initialized data section.
69802
69803 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
69804
69805         Merge glibc and coreutils changes into gnulib, plus a few
69806         extra fixes.
69807         * lib/md5.c: Use #error rather than a string.
69808         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
69809         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
69810         (__attribute__): Define to empty for non recent-GCC.
69811         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
69812         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
69813         Renamed from their non-__ counterparts, with new macros replacing
69814         them if not _LIBC.  Add __THROW attribute.
69815         (rol): Remove.
69816         (struct md5_ctx): Align buffer if using GCC.
69817         * lib/sha1.h (struct sha1_ctx): Likewise.
69818         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
69819         The old name was backwards.
69820         (NOTSWAP): Remove; not used.
69821         (rol): New macro, moved here from md5.h.
69822         (sha1_process_block): Remove a FIXME that doesn't make sense.
69823
69824 2005-09-12  Derek Price  <derek@ximbiot.com>
69825
69826         Return usable errors from canon-host.
69827         * lib/canon-host.h: New file.
69828         * lib/canon-host.c (canon_host): Wrap...
69829         (canon_host_r): ...this new function, which now relies exclusively on
69830         getaddrinfo.
69831         (ch_strerror): New function.
69832         (last_cherror): New global.
69833         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
69834         interface.
69835         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
69836         void *.
69837         (freeaddrinfo): Free ai->ai_canonname when set.
69838
69839 2005-09-12  Derek Price  <derek@ximbiot.com>
69840
69841         Make canon-host require getaddrinfo.
69842         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
69843         AC_LIBSOURCE canon-host.h.  Call...
69844         (gl_PREREQ_CANON_HOST): ...this new function, which requires
69845         gl_GETADDRINFO.
69846         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
69847
69848 2005-09-12  Derek Price  <derek@ximbiot.com>
69849
69850         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
69851         LGPL.
69852         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
69853
69854 2005-09-12  Derek Price  <derek@ximbiot.com>
69855
69856         * lib/gai_strerror.c: Include config.h when available.  Include
69857         getaddrinfo.h before other headers to test interface.
69858         Reported by Larry Jones <lawrence.jones@ugs.com>.
69859
69860 2005-09-12  Derek Price  <derek@ximbiot.com>
69861             Paul Eggert  <eggert@cs.ucla.edu>
69862
69863         * modules/glob (Files): Add glob-libc.h.
69864
69865 2005-09-12  Derek Price  <derek@ximbiot.com>
69866             Paul Eggert  <eggert@cs.ucla.edu>
69867
69868         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
69869         glob_.h, glob-libc.h.
69870         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
69871
69872 2005-09-12  Derek Price  <derek@ximbiot.com>
69873             Paul Eggert  <eggert@cs.ucla.edu>
69874
69875         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
69876         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
69877         protecting things that should be done only in gnulib contexts.
69878         * lib/glob_.h: New file, containing only the glob things needed for
69879         gnulib.
69880         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
69881         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
69882         (glob, globfree, glob_pattern_p): Now defined simply in terms of
69883         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
69884         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
69885         and to respect the namespace rules better.
69886
69887 2005-09-08  Simon Josefsson  <jas@extundo.com>
69888
69889         * modules/socklen: New file.
69890
69891 2005-09-08  Simon Josefsson  <jas@extundo.com>
69892
69893         * m4/socklen.m4: New file.
69894
69895 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69896
69897         * modules/utimens (Files): Add m4/utimbuf.m4, since
69898         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
69899         Reported by Sergey Poznyakoff.
69900
69901 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69902
69903         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
69904         definitions, since that's the preferred style in glibc.
69905         Fix a minor spacing issue, and update copyright notice to match
69906         glibc's.
69907
69908 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69909
69910         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
69911
69912 2005-09-06  Simon Josefsson  <jas@extundo.com>
69913
69914         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
69915         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
69916
69917 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69918
69919         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
69920         warning.
69921
69922 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69923
69924         * config/srclist.txt: Add glibc bug 1302.
69925
69926 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
69927
69928         Change bitset word type from unsigned int to unsigned long int,
69929         as this has better performance on typical 64-bit hosts.
69930         Port bitset code to hosts with unusual word sizes.
69931         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
69932         (build_collating_symbol):
69933         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
69934         argument is a bitset.  This is merely a style issue, but it makes
69935         it clearer that an entire array is expected.
69936         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
69937         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
69938         Port to the case where bitset_word is not the same as unsigned int.
69939         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
69940         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
69941         Likewise.
69942         * lib/regexec.c (check_dst_limits_calc_pos_1,
69943         check_subexp_matching_top):
69944         (build_trtable, group_nodes_into_DFAstates):
69945         Likewise.
69946         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
69947         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
69948         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
69949         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
69950         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
69951         * lib/regcomp.c (optimize_subexps, lower_subexp):
69952         Work even if bitset_word has holes in its bitwise representation.
69953         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
69954         * lib/regexec.c (check_dst_limits_calc_pos_1,
69955         check_subexp_matching_top):
69956         Likewise.
69957         * lib/regex_internal.c (re_string_reconstruct):
69958         Don't assume UCHAR_MAX == 255.
69959         * lib/regex_internal.h (bitset_set_all): Likewise.
69960         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
69961         All uses changed.
69962         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
69963         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
69964         All uses changed.
69965         (BITSET_WORD_MAX): New macro.
69966         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
69967         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
69968         (bitset_empty, bitset_copy):
69969         Prefer sizeof (bitset) to multiplying it out ourselves.
69970         (bitset_not_merge): Remove; unused.
69971         (bitset_contain): Return bool, not unsigned int with one bit on.
69972         All callers changed.
69973         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
69974         alignment than re_node_set; do this by defining a new internal
69975         type struct dests_alloc and using it to allocate memory.
69976
69977 2005-09-05  Bruno Haible  <bruno@clisp.org>
69978
69979         * gnulib-tool (func_import): Fix comparison in handling of symbolic
69980         links.
69981
69982 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
69983
69984         * modules/size_max (Makefile.am): Add size_max.h
69985
69986 2005-09-04  Derek Price  <derek@ximbiot.com>
69987
69988         * gnulib-tool (func_import): Fix reversed $symbolic logic.
69989
69990 2005-09-03  Simon Josefsson  <jas@extundo.com>
69991
69992         * gnulib-tool: Fix typo.
69993
69994 2005-09-03  Simon Josefsson  <jas@extundo.com>
69995
69996         * config/srclist.txt: Add glibc bug 1293.
69997
69998 2005-09-03  Derek Price  <derek@ximbiot.com>
69999
70000         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
70001         From Larry Jones <lawrence.jones@ugs.com>.
70002
70003 2005-09-02  Simon Josefsson  <jas@extundo.com>
70004
70005         * modules/socklen: New file.
70006
70007 2005-09-02  Simon Josefsson  <jas@extundo.com>
70008
70009         * modules/havelib: New module.
70010
70011         * modules/gettext, modules/iconv, modules/lock, modules/readline:
70012         Use havelib.
70013
70014 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
70015
70016         Check for arithmetic overflow when calculating sizes, to prevent
70017         some buffer-overflow issues.  These patches are conservative, in the
70018         sense that when I couldn't determine whether an overflow was possible,
70019         I inserted a run-time check.
70020         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
70021         macros.
70022         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
70023         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
70024         (re_xnrealloc, re_x2nrealloc): New inline functions.
70025         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
70026         parse_bracket_exp):
70027         (build_equiv_class, build_charclass): Check for arithmetic overflow
70028         in size expression calculations.
70029         * lib/regex_internal.c (re_string_realloc_buffers):
70030         (build_wcs_upper_buffer, re_node_set_add_intersect):
70031         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
70032         (re_dfa_add_node, register_state): Likewise.
70033         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
70034         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
70035         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
70036         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
70037
70038 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
70039
70040         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
70041         m4/ulonglong.m4.  Problem reported by Martin Lambers.
70042
70043 2005-09-02  Bruno Haible  <bruno@clisp.org>
70044
70045         Support for lib vs. lib64 distinction on biarch platforms.
70046         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
70047         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
70048         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
70049
70050 2005-09-02  Bruno Haible  <bruno@clisp.org>
70051
70052         * gnulib-tool (import): In the other first-use case, provide defaults
70053         as well.
70054
70055 2005-09-02  Bruno Haible  <bruno@clisp.org>
70056
70057         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
70058         patches not yet found in the latest gettext release.
70059
70060 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70061
70062         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
70063         to avoid a collision with bits/local_lim.h in glibc.
70064         All uses changed.  Problem reported by Dmitry V. Levin in
70065         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
70066
70067         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
70068         bugs in int versus size_t comparisons.
70069         (re_string_context_at): Fix bug where the code assumed that
70070         Idx is signed.
70071
70072         Use bool where appropriate.
70073         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
70074         All callers changed.
70075         (calc_eclosure_iter): Likewise, for ROOT arg.
70076         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
70077         (build_charclass_op): Likewise, for NON_MATCH arg.
70078         * lib/regex_internal.c (re_string_allocate, re_string_construct):
70079         (re_string_construct_common): Likewise, for ICASE arg.
70080         * lib/regexec.c (re_search_2_stub, re_search_stub):
70081         Likewise, for RET_LEN arg.
70082         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
70083         (set_regs): Likewise, for FL_BACKTRACK arg.
70084         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
70085         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
70086         (calc_eclosure_iter, parse_bracket_exp):
70087         Use bool for internal variables that are booleans.
70088         * lib/regexec.c (re_search_internal, check_matching,
70089         proceed_next_node):
70090         (set_regs, build_sifted_states, sift_states_bkref):
70091         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
70092         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
70093         (find_collation_sequence_value):
70094         Likewise.
70095         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
70096         (re_node_set_compare):
70097         Return bool, not int. All callers changed.
70098         * lib/regexec.c (check_halt_node_context, check_dst_limits):
70099         (build_trtable, check_node_accept): Likewise.
70100         * lib/regex_internal.h: Include stdbool.h.
70101
70102         Fix bugs uncovered when converting to bool.
70103         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
70104         failure instead of charging ahead blindly.
70105         * lib/regex_internal.c (register_state): Likewise.
70106         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
70107         for freeing internal storage.
70108         (group_nodes_into_DFA_states): Use unsigned int, not int, for
70109         bitset pieces used as boolean, to avoid undefined behavior
70110         on hosts that do int overflow checking.
70111
70112 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70113
70114         * config/srclist.txt: Add glibc bugs 1285-1287.
70115
70116 2005-09-01  Jim Meyering  <jim@meyering.net>
70117
70118         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
70119         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
70120         Require gl_STAT_MACROS, too.
70121
70122 2005-09-01  Bruno Haible  <bruno@clisp.org>
70123
70124         * gnulib-tool (import): In the first-use case, provide defaults.
70125
70126 2005-09-01  Bruno Haible  <bruno@clisp.org>
70127
70128         * gnulib-tool (func_import): Remove the .tmp files.
70129
70130 2005-09-01  Bruno Haible  <bruno@clisp.org>
70131
70132         * gnulib-tool (func_import): Fix handling of symbolic links.
70133
70134 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70135
70136         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
70137         old glibc regex code mishandles strings longer than 2**31 bytes.
70138         This patch fixes this when the regex code is used in gnulib
70139         (i.e., outside glibc).
70140
70141         This patch should not affect the use of the regex code inside
70142         glibc.  No doubt this problem also needs to be handled for glibc
70143         as well, but the result will be an incompatible change to the
70144         glibc ABI, and the old ABI will have to be supported too.  That
70145         can be the the subject for another patch.
70146
70147         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
70148         governing whether the rest of this patch is active.  By default,
70149         the macro is disabled and the patch has no effect.
70150         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
70151         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
70152         (struct re_pattern_buffer, re_search, re_search_2, re_match):
70153         (re_match_2, re_set_registers): Use the new types.
70154         * lib/regex_internal.h (Idx, re_hashval_t): New types.
70155         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
70156         New macros.
70157         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
70158         (re_string_context_at, bin_tree_t, re_dfastate_t):
70159         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
70160         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
70161         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
70162         (re_string_char_size_at, re_string_wchar_at):
70163         (re_string_elem_size_at):
70164         Use the new types and macros to port to 64-bit hosts.
70165         Use unsigned types for internal values, so that the code
70166         mostly works even for arrays larger than SSIZE_MAX.
70167         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
70168         (search_duplicated_node, calc_eclosure_iter, fetch_number):
70169         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
70170         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
70171         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
70172         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
70173         (calc_inveclosure, parse_dup_op, build_range_exp):
70174         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
70175         (fetch_number, create_token_tree, mark_opt_subexp):
70176         Likewise.
70177         * lib/regex_internal.c (re_string_construct_common,
70178         create_ci_newstate):
70179         (create_cd_newstate, re_string_allocate, re_string_construct):
70180         (re_string_realloc_buffers, build_wcs_upper_buffer):
70181         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
70182         (re_string_reconstruct, re_string_peek_byte_case):
70183         (re_string_fetch_byte_case, re_string_context_at):
70184         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
70185         (re_node_set_init_copy, re_node_set_add_intersect):
70186         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
70187         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
70188         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
70189         (re_acquire_state, re_acquire_state_context, register_state):
70190         Likewise.
70191         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
70192         search_cur_bkref_entry):
70193         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
70194         (re_search_internal, re_search_2_stub, re_search_stub)
70195         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
70196         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
70197         (update_cur_sifted_state, check_dst_limits):
70198         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
70199         (check_subexp_limits, sift_states_bkref, merge_state_array):
70200         (check_subexp_matching_top, get_subexp, get_subexp_sub):
70201         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
70202         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
70203         (expand_bkref_cache, check_node_accept_bytes):
70204         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
70205         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
70206         (acquire_init_state_context, check_halt_node_context):
70207         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
70208         (sift_states_backward, clean_state_log_if_needed):
70209         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
70210         (find_recover_state, transit_state_sb, transit_state_mb):
70211         (transit_state_bkref, build_trtable, match_ctx_clean):
70212         Likewise.
70213         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
70214         to work around an assumption that REG_MISSING is negative.
70215
70216         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
70217         (seek_collating_symbol_entry) [defined _LIBC]:
70218         (lookup_collation_sequence_value) [defined _LIBC]:
70219         (build_range_exp, build_collating_symbol) [defined _LIBC]:
70220         Use prototypes rather than old-style function definitions.
70221         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
70222         (transit_state_sb) [0]:
70223         (find_collation_sequence_value) [defined _LIBC]: Likewise.
70224
70225         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
70226         rm_eo.
70227
70228         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
70229         (optimize_subexps, lower_subexp):
70230         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
70231         since the signed shift might overflow.  Use 1u<<31 instead.
70232         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
70233         Likewise.
70234         * lib/regexec.c (check_dst_limits_calc_pos_1,
70235         check_subexp_matching_top): Likewise.
70236
70237         * lib/regcomp.c (optimize_subexps, lower_subexp):
70238         Use CHAR_BIT rather than 8, for clarity.
70239         * lib/regexec.c (check_dst_limits_calc_pos_1):
70240         (check_subexp_matching_top): Likewise.
70241         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
70242         have to worry about portability issues when shifting it left.
70243         Remove no-longer-needed test for table_size > 0.
70244         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
70245         in a word, as the resulting behavior is undefined.
70246         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
70247         in one case, a <= should have been an <, and in another case the
70248         whole test was missing.
70249         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
70250         the standard name CHAR_BIT.
70251         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
70252         this is not true on one's complement and signed-magnitude hosts.
70253
70254         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
70255         next_last_offset.
70256         (struct re_dfa_t): Remove unused member states_alloc.
70257         * lib/regcomp.c (init_dfa): Don't initialize unused members.
70258
70259 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70260
70261         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
70262         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
70263         and large-file glibc and in 32-bit large-file Solaris.
70264
70265 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70266
70267         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
70268         lengths fit in regoff_t; this isn't true if regoff_t is the same
70269         width as size_t.
70270         * lib/regex.c (re_search_internal): 5th arg is LAST_START
70271         (= START + RANGE) instead of RANGE.  This avoids overflow
70272         problems when regoff_t is the same width as size_t.
70273         All callers changed.
70274         (re_search_2_stub): Check for overflow when adding the
70275         sizes of the two strings.
70276         (re_search_stub): Check for overflow when adding START
70277         to RANGE; if it occurs, substitute the extreme value.
70278
70279 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70280
70281         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
70282
70283 2005-08-31  Jim Meyering  <jim@meyering.net>
70284
70285         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
70286         a pointer-to-const.
70287         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
70288         (register_state): Likewise.
70289         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
70290         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
70291         (group_nodes_into_DFAstates): Likewise.
70292
70293 2005-08-31  Jim Meyering  <jim@meyering.net>
70294
70295         * check-module: Add a FIXME comment.
70296
70297 2005-08-31  Eric Blake  <ebb9@byu.net>
70298
70299         * modules/unistd-safer (Files): Add unistd--.h.
70300         * modules/stdio-safer (Files): Add stdio--.h.
70301
70302 2005-08-31  Derek Price  <derek@ximbiot.com>
70303
70304         * lib/getdelim.c (getdelim): Return EOF on EOF.
70305         Reported by Larry Jones <lawrence.jones@ugs.com>.
70306
70307 2005-08-31  Bruno Haible  <bruno@clisp.org>
70308
70309         Avoid unnecessary diffs in the generated lib/Makefile.am.
70310         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
70311         the generated files.
70312         (func_import): Don't set cmd.
70313
70314 2005-08-31  Bruno Haible  <bruno@clisp.org>
70315
70316         * lib/strstr.c: Include <stddef.h>, for NULL.
70317         * lib/strcasestr.c: Likewise.
70318         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70319
70320 2005-08-31  Bruno Haible  <bruno@clisp.org>
70321
70322         * gnulib-tool: New option --macro-prefix.
70323         (func_import): Use macro_prefix.
70324         (import): Handle option --macro-prefix.
70325
70326 2005-08-31  Bruno Haible  <bruno@clisp.org>
70327
70328         * gnulib-tool (import): Rename most ac_* variables to cached_*.
70329         Also use new variables cached_lgpl, cached_libtool.
70330
70331 2005-08-31  Bruno Haible  <bruno@clisp.org>
70332
70333         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
70334         always instantiating them.
70335
70336 2005-08-31  Bruno Haible  <bruno@clisp.org>
70337
70338         * gnulib-tool (func_import): Read the previous cached settings
70339         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
70340         earlier added by gnulib but are now dropped. Warn when a gnulib file
70341         overwrites a non-gnulib file.
70342
70343 2005-08-31  Bruno Haible  <bruno@clisp.org>
70344
70345         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
70346         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
70347         projects that don't keep autogenerated files in CVS. Put into
70348         actioncmd only the specified modules, not the transitive closure.
70349
70350 2005-08-31  Bruno Haible  <bruno@clisp.org>
70351
70352         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
70353         Create directories that shall be filled.
70354         (import): Don't look for gl_* macros in configure.ac. Recurse across
70355         all directories containing a gnulib-cache.m4 files, if meaningful.
70356
70357 2005-08-31  Bruno Haible  <bruno@clisp.org>
70358
70359         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
70360         (import): Set seen_libtool when we see gl_LIBTOOL.
70361
70362 2005-08-31  Bruno Haible  <bruno@clisp.org>
70363
70364         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
70365         declaration macro definitions from generated gnulib.m4.
70366
70367 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
70368
70369         * lib/iconvme.h: Add prototype for iconv_alloc.
70370
70371 2005-08-29  Simon Josefsson  <jas@extundo.com>
70372
70373         * lib/iconvme.c: Fix errno.
70374
70375 2005-08-29  Bruno Haible  <bruno@clisp.org>
70376
70377         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
70378         that it works when the directory contains spaces.
70379
70380 2005-08-29  Bruno Haible  <bruno@clisp.org>
70381
70382         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
70383
70384 2005-08-29  Bruno Haible  <bruno@clisp.org>
70385
70386         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
70387         Emit more advice.
70388
70389 2005-08-29  Bruno Haible  <bruno@clisp.org>
70390         and Stepan Kasal  <kasal@ucw.cz>
70391
70392         * check-module: If more parameters are given, check each of them
70393         separately; add more exceptions, as noted by Jim Meyering.
70394         (check_module): New procedure.
70395         (%exempt_header): Now contains all exceptions.
70396
70397 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
70398
70399         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
70400
70401 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
70402
70403         * lib/iconvme.c: Split iconv_string into iconv_alloc.
70404
70405 2005-08-28  Bruno Haible  <bruno@clisp.org>
70406
70407         * m4/gnulib-tool.m4: New file.
70408
70409 2005-08-27  Jim Meyering  <jim@meyering.net>
70410
70411         * modules/unistd-safer (Files): Add pipe-safer.c.
70412         * modules/fcntl-safer (Files): Add creat-safer.c.
70413
70414 2005-08-27  Jim Meyering  <jim@meyering.net>
70415
70416         * m4/stdlib-safer.m4: New file.  From coreutils.
70417         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
70418         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
70419         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
70420         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
70421         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
70422
70423 2005-08-27  Jim Meyering  <jim@meyering.net>
70424
70425         * lib/fopen-safer.c: Merge minor changes from coreutils.
70426         * lib/dup-safer.c: Likewise.
70427         * lib/fd-safer.c: Likewise.
70428
70429         Merge from coreutils.
70430         * lib/stdio--.h: New file.
70431         * lib/stdlib--.h: New file.
70432         * lib/mkstemp-safer.c: New file.
70433
70434         GNU tar needs these.
70435         * lib/pipe-safer.c: New file.
70436         * lib/creat-safer.c: New file.
70437         * lib/fcntl--.h (creat): Define to creat_safer.
70438         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
70439         * lib/unistd--.h (pipe): Define to pipe_safer.
70440         * lib/unistd-safer.h: Declare pipe_safer.
70441
70442 2005-08-26  Simon Josefsson  <jas@extundo.com>
70443
70444         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
70445         Haible <bruno@clisp.org>.
70446
70447 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
70448
70449         * lib/regex_internal.h: Remove all references to
70450         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
70451         or better.
70452         (bitset_not, bitset_merge, bitset_not_merge):
70453         (bitset_mask, re_string_allocate, re_string_construct):
70454         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
70455         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
70456         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
70457         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
70458         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
70459         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
70460         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
70461         (re_acquire_state_context):
70462         Remove unnecessary forward decls.
70463         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
70464         Put __attribute at function definition,
70465         now that the function decl has been removed.
70466         * lib/regex_internal.c (re_string_peek_byte_case):
70467         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
70468         Likewise.
70469
70470 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
70471
70472         * m4/regex.m4: Add AC_PREREQ(2.50).
70473         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
70474
70475 2005-08-25  Simon Josefsson  <jas@extundo.com>
70476
70477         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
70478         __fsetlocking.
70479
70480 2005-08-25  Simon Josefsson  <jas@extundo.com>
70481
70482         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
70483         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
70484         GLIBC specific code.
70485
70486 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70487
70488         Make regex safe for g++.  This fixes one real bug (an "err"
70489         that should have been "*err").  g++ problem reported by
70490         Sam Steingold.
70491         * lib/regex_internal.h (re_calloc): New macro, consistent with
70492         re_malloc etc.  All callers of calloc changed to use re_calloc.
70493         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
70494         not int.  All callers changed.
70495         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
70496         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
70497         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
70498         (find_recover_state): Change "err" to "*err"; this fixes what
70499         appears to be a real bug.
70500         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
70501         versus int.
70502
70503 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70504
70505         * modules/regex (Depends-on): Add malloc, since the code
70506         assumes that !malloc(0) means failure.
70507
70508 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70509
70510         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
70511
70512         alloca modernization/simplification for regex.
70513         * lib/regex.c: Remove portability cruft for alloca.  This no longer
70514         needs to be at the start of the file, and can be moved into
70515         regex_internal.h and simplified.
70516         * lib/regex_internal.h: Include <alloca.h>.
70517         (__libc_use_alloca) [!defined _LIBC]: New macro.
70518         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
70519         now works outside glibc.
70520
70521 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70522
70523         * config/srclist.txt: Add glibc bugs 1241, 1245.
70524
70525 2005-08-25  Jim Meyering  <jim@meyering.net>
70526
70527         * lib/open-safer.c: Include <config.h>.
70528         Otherwise, we'd lose LARGEFILE support in any file using
70529         e.g. "fcntl--.h"
70530
70531 2005-08-25  Bruno Haible  <bruno@clisp.org>
70532
70533         * m4/minmax.m4: Require autoconf 2.52.
70534         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
70535         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
70536         alternatives of translit over the alphabet.
70537         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
70538
70539 2005-08-24  Simon Josefsson  <jas@extundo.com>
70540
70541         * tests/test-getpass.c: New file.
70542
70543 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70544
70545         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
70546         for GNU regex features.
70547
70548 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70549
70550         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
70551         * lib/regex.h (regerror): Likewise.
70552
70553         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
70554         requires this.  (The code never needed it.)
70555
70556         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
70557         All uses of recently-renamed identifiers changed to use the new,
70558         POSIX-compliant names.  The code will build and run just fine
70559         without these changes, but it's better to eat our own dog food
70560         and use the standard-conforming names.
70561
70562         * lib/regex.h: Fix a multitude of POSIX name space violations.
70563         These changes have an effect only for programs that define
70564         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
70565         do not change anything for programs compiled in the normal way.
70566         Also, there is no effect on the ABI.
70567
70568         (_REGEX_SOURCE): New macro.
70569         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
70570         defined and _GNU_SOURCE is not; this fixes a name space violation.
70571
70572         Rename the following macros to obey POSIX requirements.
70573         The old names are still visible as macros if _REGEX_SOURCE is defined.
70574         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
70575         RE_BACKSLASH_ESCAPE_IN_LISTS.
70576         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
70577         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
70578         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
70579         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
70580         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
70581         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
70582         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
70583         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
70584         (REG_INTERVALS): renamed from RE_INTERVALS.
70585         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
70586         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
70587         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
70588         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
70589         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
70590         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
70591         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
70592         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
70593         RE_UNMATCHED_RIGHT_PAREN_ORD.
70594         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
70595         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
70596         (REG_DEBUG): renamed from RE_DEBUG.
70597         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
70598         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
70599         unusual, since we can't clash with the POSIX REG_ICASE.
70600         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
70601         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
70602         (REG_NO_SUB): renamed from RE_NO_SUB.
70603         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
70604         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
70605         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
70606         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
70607         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
70608         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
70609         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
70610         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
70611         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
70612         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
70613         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
70614         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
70615         RE_SYNTAX_POSIX_MINIMAL_BASIC.
70616         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
70617         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
70618         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
70619         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
70620         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
70621         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
70622         (REG_FIXED): Renamed from REGS_FIXED.
70623         (REG_NREGS): Renamed from RE_NREGS.
70624
70625         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
70626         of other REG_* macros, since POSIX says the user is allowed to
70627         #undef these macros selectively.
70628
70629         (reg_errcode_t): Update comment stating what other tables need
70630         to be consistent.
70631
70632         Rename the following enum values to obey POSIX requirements.
70633         The old names are still visible as macros.
70634         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
70635         is not defined, since GNU is supposed to be a superset of POSIX as
70636         much as possible, and since we want reg_errcode_t to be a signed
70637         type for implementation consistency.
70638         (_REG_NOERROR): Renamed from REG_NOERROR.
70639         (_REG_NOMATCH): Renamed from REG_NOMATCH.
70640         (_REG_BADPAT): Renamed from REG_BADPAT.
70641         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
70642         (_REG_ECTYPE): Renamed from REG_ECTYPE.
70643         (_REG_EESCAPE): Renamed from REG_EESCAPE.
70644         (_REG_ESUBREG): Renamed from REG_ESUBREG.
70645         (_REG_EBRACK): Renamed from REG_EBRACK.
70646         (_REG_EPAREN): Renamed from REG_EPAREN.
70647         (_REG_EBRACE): Renamed from REG_EBRACE.
70648         (_REG_BADBR): Renamed from REG_BADBR.
70649         (_REG_ERANGE): Renamed from REG_ERANGE.
70650         (_REG_ESPACE): Renamed from REG_ESPACE.
70651         (_REG_BADRPT): Renamed from REG_BADRPT.
70652         (_REG_EEND): Renamed from REG_EEND.
70653         (_REG_ESIZE): Renamed from REG_ESIZE.
70654         (_REG_ERPAREN): Renamed from REG_ERPAREN.
70655         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
70656         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
70657         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
70658         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
70659
70660         (_REG_RE_NAME, _REG_RM_NAME): New macros.
70661         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
70662         changed.  But support the old name if the new one is not defined
70663         and if _REGEX_SOURCE.
70664
70665         Change the following member names in struct re_pattern_buffer.
70666         The old names are still supported if !_REGEX_SOURCE.
70667         The new names are always supported, regardless of _REGEX_SOURCE.
70668         (re_buffer): Renamed from buffer.
70669         (re_allocated): Renamed from allocated.
70670         (re_used): Renamed from used.
70671         (re_syntax): Renamed from syntax.
70672         (re_fastmap): Renamed from fastmap.
70673         (re_translate): Renamed from translate.
70674         (re_can_be_null): Renamed from can_be_null.
70675         (re_regs_allocated): Renamed from regs_allocated.
70676         (re_fastmap_accurate): Renamed from fastmap_accurate.
70677         (re_no_sub): Renamed from no_sub.
70678         (re_not_bol): Renamed from not_bol.
70679         (re_not_eol): Renamed from not_eol.
70680         (re_newline_anchor): Renamed from newline_anchor.
70681
70682         Change the following member names in struct re_registers.
70683         The old names are still supported if !_REGEX_SOURCE.
70684         The new names are always supported, regardless of _REGEX_SOURCE.
70685         (rm_num_regs): Renamed from num_regs.
70686         (rm_start): Renamed from start.
70687         (rm_end): Renamed from end.
70688
70689         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
70690         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
70691         Prepend __ to parameter names.
70692
70693         Undo yesterday's changes.
70694
70695 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70696
70697         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
70698         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
70699         lib/regex.c.
70700
70701 2005-08-24  Jim Meyering  <jim@meyering.net>
70702
70703         Sync from coreutils.
70704         * m4/fcntl-safer.m4: New file.
70705
70706         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
70707         and object files for this module.
70708
70709 2005-08-24  Jim Meyering  <jim@meyering.net>
70710
70711         Sync from coreutils.
70712         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
70713
70714 2005-08-24  Jim Meyering  <jim@meyering.net>
70715
70716         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
70717         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
70718
70719 2005-08-24  Jim Meyering  <jim@meyering.net>
70720
70721         * modules/fcntl-safer: New module.
70722         * modules/fts (Depends-on): Add fcntl-safer.
70723         * MODULES.html.sh (File descriptor based Input/Output):
70724         Add fcntl-safer.
70725
70726 2005-08-24  Bruno Haible  <bruno@clisp.org>
70727
70728         Support for unit test modules.
70729         * modules/README: Mention tests modules.
70730         * modules/TEMPLATE-TESTS: New file.
70731         * gnulib-tool: New options --extract-tests-module, --with-tests and
70732         --tests-base (unused for the moment).
70733         (testsbase, inctests): New variables.
70734         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
70735         (func_verify_module): Exclude TEMPLATE-TESTS.
70736         (func_verify_nontests_module, func_verify_tests_module): New functions.
70737         (func_get_dependencies): Add implicit dependency for tests modules.
70738         (func_get_tests_module): New function.
70739         (func_modules_transitive_closure): When --with-tests was specified,
70740         include the unit tests as well, unless explicitly avoided.
70741         (func_emit_lib_Makefile_am): Ignore the tests modules here.
70742         (func_emit_tests_Makefile_am): New function.
70743         (func_create_testdir): When --with-tests was specified, emit a
70744         tests/ directory.
70745         * MODULES.html.sh (Future developments): Update.
70746
70747 2005-08-24  Bruno Haible  <bruno@clisp.org>
70748
70749         * modules/tls-tests: New file.
70750         * tests/test-tls.c: New file, from GNU gettext.
70751
70752 2005-08-24  Bruno Haible  <bruno@clisp.org>
70753
70754         * modules/lock-tests: New file.
70755         * tests/test-lock.c: New file, from GNU gettext.
70756
70757 2005-08-24  Bruno Haible  <bruno@clisp.org>
70758
70759         * lib/lock.h: Add multiple inclusion guard.
70760         * lib/tls.h: Add multiple inclusion guard.
70761
70762 2005-08-24  Bruno Haible  <bruno@clisp.org>
70763
70764         * gnulib-tool: Add support for the --aux-dir option to
70765         --create-testdir, --create-megatestdir, --test, --megatest.
70766         (func_create_testdir, func_create_megatestdir): Optionally emit a
70767         AC_CONFIG_AUX_DIR directive.
70768         (create-testdir, create-megatestdir, test, megatest): Provide a
70769         default value for $auxdir.
70770
70771 2005-08-24  Bruno Haible  <bruno@clisp.org>
70772
70773         * gnulib-tool (import): Use compound statement instead of subshell
70774         where possible.
70775
70776 2005-08-24  Bruno Haible  <bruno@clisp.org>
70777
70778         * gnulib-tool (import): Change --aux-dir default to "build-aux".
70779
70780 2005-08-24  Bruno Haible  <bruno@clisp.org>
70781
70782         * gnulib-tool (func_version): Update.
70783
70784 2005-08-24  Bruno Haible  <bruno@clisp.org>
70785
70786         * gnulib-tool (func_import, func_create_testdir,
70787         func_create_megatestdir): Quote all autoconf macro arguments.
70788
70789 2005-08-24  Bruno Haible  <bruno@clisp.org>
70790
70791         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
70792         option --force, because --force causes the aclocal.m4 of each
70793         subdirectory to be newer than the corresponding config.h.in.
70794
70795 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70796
70797         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
70798         All contents moved to gl_REGEX.
70799         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
70800         assume that it does.
70801
70802 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70803
70804         * lib/regex.h (REG_NOSYS)
70805         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
70806         Define, since POSIX requires it as of 2001.
70807         (_REG_ENOSYS)
70808         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
70809         New private symbol, used to keep the enum signed in all cases.
70810         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
70811         Youngman in
70812         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
70813
70814         * lib/regex_internal.c (re_string_skip_chars, register_state):
70815         (calc_state_hash):
70816         Remove forward decls; no longer needed now that we use prototypes.
70817         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
70818         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
70819         (clean_state_log_if_needed): Likewise.
70820
70821 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70822
70823         * config/srclist.txt: Add glibc bugs 1231-1233.
70824
70825 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70826
70827         Fix problems reported by Sam Steingold in
70828         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
70829         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
70830         assumed that reg_errcode_t is a signed type, which is not
70831         necessarily true if _XOPEN_SOURCE is not defined.
70832         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
70833         since some compilers warn about it otherwise.
70834
70835 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70836
70837         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
70838         (init_word_char, create_initial_state, duplicate_node_closure):
70839         (fetch_token, peek_token_bracket, build_range_exp):
70840         (build_collating_symbol): Remove forward decls; no longer needed
70841         now that we use prototypes.
70842
70843         * lib/regcomp.c:
70844         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
70845         (re_compile_fastmap_iter, regcomp, regerror, regfree):
70846         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
70847         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
70848         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
70849         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
70850         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
70851         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
70852         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
70853         (build_range_exp, build_collating_symbol, parse_bracket_exp):
70854         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
70855         (build_charclass, build_charclass_op, fetch_number, create_tree):
70856         (create_token_tree, mark_opt_subexp, duplicate_tree):
70857         Use prototypes rather than old-style definitions.
70858
70859         * lib/regex_internal.c:
70860         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
70861         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
70862         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
70863         (re_string_reconstruct, re_string_peek_byte_case):
70864         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
70865         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
70866         (re_node_set_init_copy, re_node_set_add_intersect):
70867         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
70868         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
70869         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
70870         (re_acquire_state, re_acquire_state_context, register_state):
70871         (create_ci_newstate, create_cd_newstate, free_state):
70872         Likewise.
70873         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
70874         re_search_2):
70875         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
70876         (re_search_internal, prune_impossible_nodes):
70877         (acquire_init_state_context, check_matching, static):
70878         (check_halt_node_context, check_halt_state_context, proceed_next_node):
70879         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
70880         (update_regs, sift_states_backward, build_sifted_states):
70881         (clean_state_log_if_needed, merge_state_array):
70882         (update_cur_sifted_state, add_epsilon_src_nodes):
70883         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
70884         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
70885         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
70886         (find_recover_state, check_subexp_matching_top, transit_state_mb):
70887         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
70888         (check_arrival, check_arrival_add_next_nodes):
70889         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
70890         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
70891         (check_node_accept_bytes, check_node_accept, extend_buffers):
70892         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
70893         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
70894         (sift_ctx_init):
70895         Likewise.
70896
70897         * lib/regex_internal.h:
70898         (re_string_allocate, re_string_construct, re_string_reconstruct):
70899         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
70900         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
70901         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
70902         (re_string_context_at, re_string_peek_byte_case):
70903         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
70904         is defined, since we now use prototypes always.
70905
70906         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
70907         C89 or better.  All uses removed.
70908
70909 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70910
70911         * config/srclist.txt: Add glibc bugs 1220-1227.
70912
70913 2005-08-20  Jim Meyering  <jim@meyering.net>
70914
70915         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
70916         of unused local, dfa.
70917
70918 2005-08-20  Bruno Haible  <bruno@clisp.org>
70919
70920         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
70921
70922 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70923
70924         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
70925         (re_node_set_insert_last, re_dfa_add_node):
70926         Rename local variables to avoid GCC shadowing warnings.
70927
70928 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70929
70930         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
70931         [defined lint]: Suppress bogus uninitialized-variable warnings.
70932
70933         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
70934         and let the caller return REG_ESPACE if out of space.  This
70935         removes an uninitialied-variable warning with GCC 4.0.1, and also
70936         avoids taking the address of a local variable.  All callers
70937         changed.
70938
70939 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70940
70941         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
70942         $LIBCSRC/posix/regexec.c.
70943         Add glibc bug 1217 for regcomp.c.
70944
70945 2005-08-19  Jim Meyering  <jim@meyering.net>
70946
70947         * lib/regexec.c (proceed_next_node): Redo local variables to
70948         avoid GCC shadowing warnings.
70949
70950 2005-08-18  Bruno Haible  <bruno@clisp.org>
70951
70952         * lib/strstr.c (strstr): Fix return value in multibyte case.
70953         * lib/strcasestr.c (strcasestr): Likewise.
70954
70955 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70956
70957         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
70958
70959 2005-08-17  Jim Meyering  <jim@meyering.net>
70960
70961         Make the %s format (seconds since the epoch) work for a negative
70962         number and when used with a zero-padded field width, e.g. %015s.
70963
70964         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
70965         label so that it precedes the code to set `digits'.  Otherwise,
70966         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
70967         print `00-22'.  Now, it prints `-0022', as it should.
70968
70969 2005-08-17  Bruno Haible  <bruno@clisp.org>
70970
70971         * modules/strstr (Files): Add m4/mbrtowc.m4.
70972         (Depends-on): Add mbuiter.
70973
70974 2005-08-17  Bruno Haible  <bruno@clisp.org>
70975
70976         * modules/strcasestr: New file.
70977         * MODULES.html.sh (String handling, based on ANSI C 89): Add
70978         strcasestr.
70979
70980 2005-08-17  Bruno Haible  <bruno@clisp.org>
70981
70982         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
70983
70984 2005-08-17  Bruno Haible  <bruno@clisp.org>
70985
70986         * modules/mbuiter: New file.
70987         * MODULES.html.sh (Extended multibyte and wide character utilities):
70988         Add mbuiter.
70989
70990 2005-08-17  Bruno Haible  <bruno@clisp.org>
70991
70992         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
70993         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
70994
70995 2005-08-17  Bruno Haible  <bruno@clisp.org>
70996
70997         * m4/strcasestr.m4: New file.
70998
70999 2005-08-17  Bruno Haible  <bruno@clisp.org>
71000
71001         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
71002         * lib/strstr.c: Completely rewritten, with multibyte locale support.
71003
71004 2005-08-17  Bruno Haible  <bruno@clisp.org>
71005
71006         * lib/strcasestr.h: New file.
71007         * lib/strcasestr.c: New file.
71008
71009 2005-08-17  Bruno Haible  <bruno@clisp.org>
71010
71011         * lib/strcasecmp.c: Use mbuiter.h.
71012
71013 2005-08-17  Bruno Haible  <bruno@clisp.org>
71014
71015         * lib/mbuiter.h: New file.
71016
71017 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
71018
71019         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
71020         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
71021         and gl_GETOPT are both invoked via different paths (as happens
71022         with GNU tar CVS because it uses both argp and getopt), the former
71023         wins.
71024
71025 2005-08-16  Bruno Haible  <bruno@clisp.org>
71026
71027         * modules/tls: New file.
71028         * MODULES.html.sh (Multithreading): Add tls.
71029
71030 2005-08-16  Bruno Haible  <bruno@clisp.org>
71031
71032         * modules/strnlen1: New file.
71033         * MODULES.html.sh (String handling): Add strnlen1.
71034
71035 2005-08-16  Bruno Haible  <bruno@clisp.org>
71036
71037         * modules/strcase (Files): Add m4/mbrtowc.m4.
71038         (Depends-on): Add strnlen1, mbchar.
71039
71040 2005-08-16  Bruno Haible  <bruno@clisp.org>
71041
71042         * modules/mbiter: New file.
71043         * MODULES.html.sh (Extended multibyte and wide character utilities):
71044         Add mbiter.
71045
71046 2005-08-16  Bruno Haible  <bruno@clisp.org>
71047
71048         * modules/mbfile: New file.
71049         * MODULES.html.sh (Extended multibyte and wide character utilities):
71050         Add mbfile.
71051
71052 2005-08-16  Bruno Haible  <bruno@clisp.org>
71053
71054         * modules/mbchar: New file.
71055         * MODULES.html.sh (Extended multibyte and wide character utilities):
71056         New section.
71057
71058 2005-08-16  Bruno Haible  <bruno@clisp.org>
71059
71060         * m4/tls.m4: New file, from GNU gettext.
71061
71062 2005-08-16  Bruno Haible  <bruno@clisp.org>
71063
71064         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
71065         always.
71066         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
71067
71068 2005-08-16  Bruno Haible  <bruno@clisp.org>
71069
71070         * m4/mbiter.m4: New file.
71071
71072 2005-08-16  Bruno Haible  <bruno@clisp.org>
71073
71074         * m4/mbfile.m4: New file.
71075
71076 2005-08-16  Bruno Haible  <bruno@clisp.org>
71077
71078         * m4/mbchar.m4: New file.
71079
71080 2005-08-16  Bruno Haible  <bruno@clisp.org>
71081
71082         * lib/tls.h: New file, from GNU gettext.
71083         * lib/tls.c: New file, from GNU gettext.
71084
71085 2005-08-16  Bruno Haible  <bruno@clisp.org>
71086
71087         * lib/strnlen1.h: New file.
71088         * lib/strnlen1.c: New file.
71089
71090 2005-08-16  Bruno Haible  <bruno@clisp.org>
71091
71092         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
71093         (mbi_init): Update.
71094         (mbi_avail, mbi_advance): Let the iteration end before the terminating
71095         NUL byte, not after it.
71096
71097 2005-08-16  Bruno Haible  <bruno@clisp.org>
71098
71099         * lib/strcase.h (strcasecmp): Add note in comments.
71100         * lib/strncasecmp.c: Use code from strcasecmp.c.
71101         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
71102         (strcasecmp): Work correctly in multibyte locales.
71103
71104 2005-08-16  Bruno Haible  <bruno@clisp.org>
71105
71106         * lib/mbiter.h: New file.
71107
71108 2005-08-16  Bruno Haible  <bruno@clisp.org>
71109
71110         * lib/mbfile.h: New file.
71111
71112 2005-08-16  Bruno Haible  <bruno@clisp.org>
71113
71114         * lib/mbchar.h: New file.
71115         * lib/mbchar.c: New file.
71116
71117 2005-08-16  Bruno Haible  <bruno@clisp.org>
71118
71119         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
71120         the valid ones. Makes the comparison operations transitive:
71121         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
71122         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
71123
71124 2005-08-15  Simon Josefsson  <jas@extundo.com>
71125
71126         * modules/ssize_t (License): Change to 'unlimited'.
71127
71128         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
71129
71130 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71131
71132         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
71133         Add comments for each pending glibc patch.
71134
71135 2005-08-15  Bruno Haible  <bruno@clisp.org>
71136
71137         * lib/regex.h (__restrict_arr): Don't define to __restrict if
71138         __cplusplus is defined.
71139
71140 2005-08-14  Jim Meyering  <jim@meyering.net>
71141
71142         Sync from coreutils.
71143
71144         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
71145         Use the hash-table-based cycle-detection code not just when
71146         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
71147         Reported by James Youngman in
71148         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
71149         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
71150         FTS_TIGHT_CYCLE_CHECK.
71151         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
71152         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
71153         once again.
71154         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
71155         * lib/fts.c (fd_safer): Remove decl.
71156         Include fcntl--.h rather than unistd-safer.h
71157         (fts_safe_changedir): Don't call fd_safer; no longer needed
71158         now that we include fcntl--.h.
71159
71160 2005-08-12  Simon Josefsson  <jas@extundo.com>
71161
71162         * modules/getndelim2: Use ssize_t module.
71163         * modules/getnline: Likewise.
71164         * modules/safe-read: Likewise.
71165         * modules/xreadlink: Likewise.
71166
71167         * modules/ssize_t: New file.
71168
71169 2005-08-12  Simon Josefsson  <jas@extundo.com>
71170
71171         * m4/readline.m4: Look for termcap, curses or ncurses if required.
71172
71173 2005-08-12  Simon Josefsson  <jas@extundo.com>
71174
71175         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71176         ssize_t.
71177
71178 2005-08-12  Simon Josefsson  <jas@extundo.com>
71179
71180         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
71181         readline, getdelim and check_version.
71182         (Support for systems lacking ISO C 99: Sizes of integer types):
71183         Add size_max.
71184
71185 2005-08-12  Bruno Haible  <bruno@clisp.org>
71186
71187         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
71188
71189 2005-08-11  Simon Josefsson  <jas@extundo.com>
71190
71191         * modules/readline: New file.
71192
71193         * modules/strnlen (Files): Add strnlen.h.
71194
71195 2005-08-11  Simon Josefsson  <jas@extundo.com>
71196
71197         * m4/readline.m4: New file.
71198
71199 2005-08-11  Simon Josefsson  <jas@extundo.com>
71200
71201         * lib/readline.h, readline.c: New file.
71202
71203 2005-08-11  Simon Josefsson  <jas@extundo.com>
71204
71205         * doc/gnulib.texi (Initial import, Finishing touches): Mention
71206         gl_AVOID.
71207
71208 2005-08-11  Bruno Haible  <bruno@clisp.org>
71209
71210         * lib/strnlen.h (strnlen): Change parameter name to match comment.
71211
71212 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
71213
71214         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
71215
71216 2005-08-10  Simon Josefsson  <jas@extundo.com>
71217
71218         * tests/test-iconvme.c: New file.
71219
71220 2005-08-10  Simon Josefsson  <jas@extundo.com>
71221
71222         * m4/strnlen.m4: New file.
71223
71224         * m4/strndup.m4: Don't check for strnlen declaration, done in
71225         strnlen.m4.
71226
71227 2005-08-10  Simon Josefsson  <jas@extundo.com>
71228
71229         * lib/strndup.c: Use strnlen.h.
71230
71231         * lib/strnlen.h: New file.
71232
71233 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71234
71235         * README: Typos.
71236
71237 2005-08-02  Simon Josefsson  <jas@extundo.com>
71238
71239         * modules/readline: New file.
71240
71241 2005-08-02  Simon Josefsson  <jas@extundo.com>
71242
71243         * modules/getdelim: New file.
71244
71245         * modules/getline: Rewrite, don't use getndelim2.
71246
71247 2005-08-02  Simon Josefsson  <jas@extundo.com>
71248
71249         * m4/getline.m4: Separate out getdelim stuff into separate module.
71250
71251         * m4/getdelim.m4: New file.
71252
71253 2005-08-02  Simon Josefsson  <jas@extundo.com>
71254
71255         * lib/getline.h, getline.c: Rewrite.
71256
71257         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
71258
71259 2005-07-31  Bruno Haible  <bruno@clisp.org>
71260
71261         * lib/lock.h (gl_lock_initializer): New macro.
71262         (gl_lock_define_initialized): Use it.
71263         (gl_rwlock_initializer): New macro.
71264         (gl_rwlock_define_initialized): Use it.
71265         (gl_recursive_lock_initializer): New macro.
71266         (gl_recursive_lock_define_initialized): Use it.
71267
71268 2005-07-30  Karl Berry  <karl@gnu.org>
71269
71270         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
71271         Report from Ben Pfaff, regarding getopt.
71272
71273 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
71274
71275         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
71276         normal way.
71277         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
71278         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
71279         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
71280         (gl_GETOPT): Use the new macros.  Most of the implementation
71281         is moved to the new macros.  This is for programs like Emacs
71282         that don't want all the functionality of gl_GETOPT.
71283
71284 2005-07-26  Bruno Haible  <bruno@clisp.org>
71285
71286         * m4/lock.m4: Update from GNU gettext.
71287
71288 2005-07-26  Bruno Haible  <bruno@clisp.org>
71289
71290         * lib/lock.h: Update from GNU gettext.
71291         * lib/lock.c: Update from GNU gettext.
71292
71293 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
71294
71295         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
71296         obsolescent AC_TRY_RUN.  Include the default includes files, for
71297         'exit'.
71298
71299 2005-07-24  Bruno Haible  <bruno@clisp.org>
71300
71301         * modules/visibility: New file.
71302         * MODULES.html.sh (Misc): Add visibility.
71303
71304 2005-07-24  Bruno Haible  <bruno@clisp.org>
71305
71306         * m4/visibility.m4: New file.
71307
71308 2005-07-24  Bruno Haible  <bruno@clisp.org>
71309
71310         * doc/visibility.texi: New file.
71311
71312 2005-07-22  Bruno Haible  <bruno@clisp.org>
71313
71314         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
71315         $(ALLOCA_H), redundant through BUILT_SOURCES.
71316         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
71317         redundant through BUILT_SOURCES.
71318         * modules/byteswap (Makefile.am): Remove explicit dependency on
71319         $(BYTESWAP_H), redundant through BUILT_SOURCES.
71320         * modules/fnmatch (Makefile.am): Remove explicit dependency on
71321         $(FNMATCH_H), redundant through BUILT_SOURCES.
71322         * modules/getopt (Makefile.am): Remove explicit dependency on
71323         $(GETOPT_H), redundant through BUILT_SOURCES.
71324         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
71325         redundant through BUILT_SOURCES.
71326         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
71327         redundant through BUILT_SOURCES.
71328         * modules/stdbool (Makefile.am): Remove explicit dependency on
71329         $(STDBOOL_H), redundant through BUILT_SOURCES.
71330         * modules/stdint (Makefile.am): Remove explicit dependency on
71331         $(STDINT_H), redundant through BUILT_SOURCES.
71332         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
71333         Remove explicit dependency on $(SYSEXITS_H).
71334         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
71335
71336 2005-07-18  Simon Josefsson  <jas@extundo.com>
71337
71338         * lib/check-version.c (check_version): Accept identical versions too.
71339
71340 2005-07-18  Bruno Haible  <bruno@clisp.org>
71341
71342         * modules/lock: New file.
71343         * MODULES.html.sh (Multithreading): New section.
71344
71345 2005-07-18  Bruno Haible  <bruno@clisp.org>
71346
71347         * m4/lock.m4: New file, from GNU gettext.
71348
71349 2005-07-18  Bruno Haible  <bruno@clisp.org>
71350
71351         * lib/lock.h: New file, from GNU gettext.
71352         * lib/lock.c: New file, from GNU gettext.
71353
71354 2005-07-18  Bruno Haible  <bruno@clisp.org>
71355
71356         * lib/lock.h (gl_once_t): New type.
71357         (gl_once_define, gl_once): New macros.
71358         * lib/lock.c (fresh_once): New variable.
71359         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
71360         functions.
71361
71362 2005-07-16  Simon Josefsson  <jas@extundo.com>
71363
71364         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
71365         workaround, suggested by Bruno.
71366
71367 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
71368
71369         * modules/xalloc (Depends-on): Add xalloc-die.
71370         * modules/xvasprintf (Depends-on): Add xalloc-die.
71371
71372 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
71373
71374         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
71375         with a minor change.
71376
71377 2005-07-15  Bruno Haible  <bruno@clisp.org>
71378
71379         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
71380         When using lib/poll.c, define poll as rpl_poll.
71381
71382 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
71383
71384         * modules/argp (Depends-on): Remove unlocked-io.
71385
71386 2005-07-14  Derek Price  <derek@ximbiot.com>
71387
71388         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
71389         for glob symlink bug.
71390
71391 2005-07-14  Bruno Haible  <bruno@clisp.org>
71392
71393         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
71394         Instead, test for *_unlocked function declarations directly.
71395
71396 2005-07-11  Simon Josefsson  <jas@extundo.com>
71397
71398         * modules/size_max: New file.
71399
71400         * modules/xsize: Depend on size_max module for size_max.m4.
71401
71402 2005-07-11  Simon Josefsson  <jas@extundo.com>
71403
71404         * lib/size_max.h: New file.
71405
71406 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
71407
71408         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
71409         copyright symbol and the year.
71410         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
71411         (version_etc_va): Use parameterized copyright notice.
71412         Reword to conform to the current GNU coding standards.
71413
71414 2005-07-11  Karl Berry  <karl@gnu.org>
71415
71416         * doc/gnulib.texi (Quoting): new node.
71417         (Initial import): more info, from Patrice.
71418
71419 2005-07-11  Bruno Haible  <bruno@clisp.org>
71420
71421         * gnulib-tool (func_usage): Document option --avoid.
71422         (Command line options): Handle --avoid.
71423         (func_acceptable): New function.
71424         (func_modules_transitive_closure): Use it.
71425
71426 2005-07-11  Bruno Haible  <bruno@clisp.org>
71427
71428         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
71429         Reported by Jim Meyering.
71430
71431 2005-07-10  Bruno Haible  <bruno@clisp.org>
71432
71433         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
71434         Needed when size_t is smaller than 'unsigned int'.
71435         Reported by Paul Eggert.
71436
71437 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
71438
71439         * modules/argp (Depends-on): Add unlocked-io
71440
71441 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
71442
71443         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
71444         block of defines.
71445
71446 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
71447
71448         * config/srclist.txt: Comment out regcomp.c, since we have a porting
71449         fix now.
71450
71451 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
71452         and Paul Eggert  <eggert@cs.ucla.edu>
71453
71454         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
71455         in wint_t, not wchar_t.  Remove now-unnecessary cast.
71456
71457 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
71458
71459         * modules/regex (Files): Add lib/regex_internal.c,
71460         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
71461         (Depends-on): Add extensions.
71462         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
71463
71464 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
71465
71466         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
71467         pathconf.
71468         * m4/same.m4 (gl_SAME): Likewise.
71469         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
71470
71471         * m4/regex.m4: Adjust to new libc regex implementation.
71472         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
71473         all the .c and .h parts of (the new) regex.
71474         Quote the m4 stuff better.
71475         Check for RE_ICASE bug of old gnulib.
71476         Check for REG_STARTEND of recent libc.
71477         Rename local variables from jm_* to gl_*.
71478         Quote operand of "test -f".
71479         Say "recent enough" version of libc, not "version 2".
71480         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
71481         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
71482         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
71483         Remove check for btowc, isascii.
71484         Require AM_LANGINFO_CODESET.
71485
71486 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
71487
71488         * lib/regex.c, regex.h: Sync from libc.
71489         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
71490         * lib/regexec.c:
71491         New files, synced from libc, except that regex_internal.h
71492         currently has a small porting fix.
71493
71494 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
71495
71496         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
71497         regex_internal.c, regexec.c.
71498         Add regex_internal.h too, but as a comment, since the libc version
71499         is currently broken in gnulib mode.
71500
71501 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71502
71503         Support programs like Emacs that use gnulib but not gettext.
71504         * MODULES.html.sh (Internationalization functions): Add gettext-h.
71505         * modules/gettext-h: New file.
71506         * modules/gettext (Files): Remove lib/gettext.h.
71507         (Depends-on): Add gettext-h.
71508         (Makefile.am): Remove lib_SOURCES.
71509         * modules/argmatch, modules/c-stack, modules/closeout:
71510         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
71511         * modules/execute, modules/file-type, modules/getaddrinfo:
71512         * modules/getopt, modules/human, modules/javacomp:
71513         * modules/javaexec, modules/mkdir-p, modules/obstack:
71514         * modules/openat, modules/pagealign_alloc, modules/pipe:
71515         * modules/quotearg, modules/regex, modules/rpmatch:
71516         * modules/unicodeio, modules/userspec, modules/version-etc:
71517         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
71518         * modules/xsetenv:
71519         Depend on gettext-h, not gettext.
71520
71521 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71522
71523         * gnulib-tool (func_import): Add support for 'public domain' license.
71524         * modules/alloca, modules/atexit, modules/memmove:
71525         Now public domain, not GPL.
71526         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
71527         * modules/realloc, modules/strerror, modules/strtod:
71528         Now LGPL, not GPL.
71529
71530 2005-07-05  Bruno Haible  <bruno@clisp.org>
71531
71532         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
71533         autoconf CVS. Needed for mingw.
71534
71535 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71536
71537         Remove the dependency of the strftime module on the tzset module.
71538         * modules/strftime (Depends-on): Remove dependency on tzset.
71539
71540 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71541
71542         Remove the dependency of the strftime module on the tzset module.
71543         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
71544         gl_FUNC_TZSET_CLOBBER.
71545
71546 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71547
71548         Remove the dependency of the strftime module on the tzset module.
71549         * lib/strftime.c (my_strftime)
71550         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
71551         Copy the input structure, to work around some of the bug with
71552         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
71553         Solaris releases, you should also use the tzset module, but we won't
71554         require it as a dependency any more since we don't want LGPLed code
71555         to depend on GPLed code.
71556
71557 2005-07-02  Jim Meyering  <jim@meyering.net>
71558
71559         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
71560         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
71561         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
71562         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
71563
71564 2005-07-02  Jim Meyering  <jim@meyering.net>
71565
71566         * lib/backupfile.c (backup_args): Change a `0' to NULL.
71567
71568 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71569
71570         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
71571         declares only 'struct timespec;' (!).
71572
71573 2005-07-01  Jim Meyering  <jim@meyering.net>
71574
71575         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
71576         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
71577         * lib/save-cwd.c, tempname.c:
71578         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
71579         and don't include <sys/file.h>).
71580
71581 2005-06-29  Jim Meyering  <jim@meyering.net>
71582
71583         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
71584         type name.  Use the variable name instead.
71585         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
71586         Likewise.
71587
71588 2005-06-28  Simon Josefsson  <jas@extundo.com>
71589
71590         * modules/check-version (Files): Add check-version.m4.
71591
71592 2005-06-28  Simon Josefsson  <jas@extundo.com>
71593
71594         * m4/check-version.m4: New file, suggested by Jim Meyering
71595         <jim@meyering.net>.
71596
71597 2005-06-28  Simon Josefsson  <jas@extundo.com>
71598
71599         * lib/check-version.h, lib/check-version.c: New files.
71600
71601 2005-06-28  Simon Josefsson  <jas@extundo.com>
71602
71603         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
71604         collision with global variable.  Better indentation.  Don't
71605         increment buffer pointer beyond buffer end.  Based on comments
71606         from Paul Eggert <eggert@cs.ucla.edu>.
71607
71608         * lib/base64.h: Indent.
71609
71610 2005-06-28  Simon Josefsson  <jas@extundo.com>
71611
71612         * doc/gnulib.texi (Library version handling): New section.
71613
71614 2005-06-28  Jim Meyering  <jim@meyering.net>
71615
71616         * check-module (find_included_lib_files): Hard-code another
71617         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
71618         but modules/fts-lgpl (correctly) does not list those files.
71619
71620         * modules/canonicalize (Files): Add lib/pathmax.h.
71621
71622 2005-06-25  Simon Josefsson  <jas@extundo.com>
71623
71624         * modules/check-version: New file.
71625
71626 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
71627
71628         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
71629         initializer of struct addrinfo, as an indication that we don't
71630         care how many members the structure has.
71631
71632 2005-06-24  Derek Price  <derek@ximbiot.com>
71633         and Bruno Haible  <bruno@clisp.org>
71634
71635         Remove stat module & update lstat.
71636         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
71637         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71638         * m4/stat.m4: Remove this file.
71639
71640 2005-06-24  Derek Price  <derek@ximbiot.com>
71641         and Bruno Haible  <bruno@clisp.org>
71642
71643         Remove stat module & update lstat.
71644         * lib/stat.c: Remove this file...
71645         (slash_aware_lstat): ...moving this content and its support...
71646         * lib/lstat.c (rpl_lstat): ...into here.
71647         * lib/lstat.h: New file.
71648
71649 2005-06-24  Derek Price  <derek@ximbiot.com>
71650         and Bruno Haible  <bruno@clisp.org>
71651
71652         Remove stat module & update lstat.
71653         * config/srclist.txt (libc sources): Remove stat.
71654
71655 2005-06-24  Derek Price  <derek@ximbiot.com>
71656         and Bruno Haible  <bruno@clisp.org>
71657
71658         Remove stat module & update lstat.
71659         * MODULES.html.sh (stat): Remove.
71660         * MODULES.html: Regenerated.
71661         * modules/lstat (Description): Correct function name.
71662         (Files): Add "lstat.h".
71663         (Depends-on): Remove stat, add xalloc, stat-macros.
71664         * modules/stat: Remove this file.
71665         (Include): Add "lstat.h", remove <sys/stat.h>.
71666
71667 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
71668
71669         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
71670         (ranged_convert): Don't save conversion in a temporary struct.
71671         This causes a warning with GCC 4.0.0, and anyway in the typical
71672         case it's not worth the extra 100 bytes or so of code.
71673         (ranged_convert, __mktime_internal): When calling a function via a
71674         pointer P, use P () rather than (*P) (), as we now assume C89 or
71675         better.
71676
71677 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71678
71679         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
71680         "who -r" failed to give output.  Problem reported by Tim Waugh.
71681
71682         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
71683         (xcalloc): Use it to avoid needless tests.
71684         Problem reported by Jim Meyering.
71685
71686 2005-06-20  Derek Price  <derek@ximbiot.com>
71687
71688         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
71689         unnecessary for Autoconfs > 2.59c.
71690
71691 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71692
71693         * lib/argp.h (__option_is_short): Check upper limit of
71694         __key. Isprint() requires its argument to have the value
71695         of an unsigned char or EOF.
71696
71697 2005-06-16  Jim Meyering  <jim@meyering.net>
71698
71699         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
71700         when either N or S is zero.
71701
71702 2005-06-16  Derek Price  <derek@ximbiot.com>
71703
71704         * m4/bison.m4: Declare YACC & YFLAGS precious.
71705
71706 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
71707
71708         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
71709         multibyte string or pattern, fall back on unibyte matching.
71710         Problem reported by James Youngman.
71711
71712 2005-06-08  Bruno Haible  <bruno@clisp.org>
71713
71714         * modules/csharpcomp: New file.
71715         * MODULES.html.sh (C#): Add csharpcomp.
71716
71717 2005-06-08  Bruno Haible  <bruno@clisp.org>
71718
71719         * m4/csharpcomp.m4: New file, from GNU gettext.
71720
71721 2005-06-08  Bruno Haible  <bruno@clisp.org>
71722
71723         * lib/csharpcomp.h: New file, from GNU gettext.
71724         * lib/csharpcomp.c: New file, from GNU gettext.
71725         * lib/csharpcomp.sh.in: New file, from GNU gettext.
71726
71727 2005-06-08  Bruno Haible  <bruno@clisp.org>
71728
71729         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
71730         warning on mingw.
71731
71732 2005-06-07  Derek Price  <derek@ximbiot.com>
71733
71734         Sync from CVS.
71735         * lib/glob_.h: Indent nested #ifdef.
71736
71737 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71738
71739         Sync from coreutils.
71740         Use "file name" when talking about file names, instead of "filename"
71741         or "path", as per the GNU coding standards.
71742         * lib/mkdir-p.c: Renamed from makepath.c.
71743         (make_dir_parents): Renamed from make_path.  All callers changed.
71744         * lib/mkdir-p.h: Likewise.  All includers changed.
71745         * lib/filenamecat.c: Renamed from path-concat.c.
71746         (file_name_concat): Renamed from path_concat.  All callers changed.
71747         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
71748         * lib/filenamecat.h: Likewise.  All includers changed.
71749         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
71750         in comments or local variable names.
71751         * lib/basename.c: Likewise.
71752         * lib/canonicalize.c, canonicalize.h: Likewise.
71753         * lib/dirname.c, dirname.h: Likewise.
71754         * lib/euidaccess.c: Likewise.
71755         * lib/exclude.c: Likewise
71756         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
71757         * lib/fsusage.c, fsuage.h: Likewise.
71758         * lib/fts.c, fts_.h: Likewise.
71759         * lib/getcwd.c: Likewise.
71760         * lib/getloadavg.c: Likewise.
71761         * lib/mkstemp.c: Likewise.
71762         * lib/mountlist.c, mountlist.h: Likewise.
71763         * lib/openat.c, openat.h: Likewise.
71764         * lib/readlink-stub.c: Likewise.
71765         * lib/readutmp.c, readutmp.h: Likewise.
71766         * lib/rename.c: Likewise.
71767         * lib/rmdir.c: Likewise.
71768         * lib/same.c: Likewise.
71769         * lib/savedir.c: Likewise.
71770         * lib/stripslash.c: Likewise.
71771         * lib/tempname.c: Likewise.
71772         * lib/xreadlink.c: Likewise.
71773         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
71774         All uses changed.
71775         * lib/exclude.h: Likewise.
71776
71777         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
71778         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71779         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
71780         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71781         * lib/pathmax.h: Include <limits.h> unconditionally, since other
71782         files have been getting away with it for years (MORE/BSD 4.3
71783         is extinct now).
71784         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
71785         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71786
71787         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
71788         Define to 256, not 255, as per modern POSIX.
71789
71790 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71791
71792         Sync from coreutils.
71793         Use "file name" when talking about file names, instead of "filename"
71794         or "path", as per the GNU coding standards.
71795         * MODULES.html.sh: mkdir-p renamed from makepath.
71796         filenamecat renamed from path-concat.
71797         * modules/filenamecat: Renamed from modules/path-concat.
71798         (Files): filenamecat.h and filenamecat.c renamed from
71799         path-concat.h and path-concat.c.
71800         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
71801         (Include): filenamecat.h, not path-concat.h.
71802         * modules/mkdir-p: Renamed from modules/makepath.
71803         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
71804         makepath.c.
71805         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
71806         (Include): mkdir-p.h, not makepath.h.
71807
71808 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71809
71810         Sync from coreutils.
71811         * m4/mkdir-p.m4: Renamed from makepath.m4.
71812         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
71813         Rename files from makepath.c to mkdir-p.c, and from
71814         makepath.h to mkdir-p.h.
71815         * m4/filenamecat.m4: Renamed from path-concat.m4.
71816         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
71817         Rename files from path-concat.c to filenamecat.c,
71818         and from path-concat.h to filenamecat.h.
71819         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
71820         "file name" in local variables or comments.
71821         * m4/rename.m4: Likewise.
71822
71823 2005-06-01  Bruno Haible  <bruno@clisp.org>
71824
71825         * modules/csharpexec: New file.
71826         * MODULES.html.sh (C#): New section.
71827
71828 2005-06-01  Bruno Haible  <bruno@clisp.org>
71829
71830         * m4/csharp.m4: New file, from GNU gettext.
71831         * m4/csharpexec.m4: New file, from GNU gettext.
71832
71833 2005-06-01  Bruno Haible  <bruno@clisp.org>
71834
71835         * lib/csharpexec.h: New file, from GNU gettext.
71836         * lib/csharpexec.c: New file, from GNU gettext.
71837         * lib/csharpexec.sh.in: New file, from GNU gettext.
71838
71839 2005-05-31  Derek Price  <derek@ximbiot.com>
71840             Paul Eggert  <eggert@cs.ucla.edu>
71841
71842         Sync from cvs.
71843         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
71844
71845 2005-05-31  Derek Price  <derek@ximbiot.com>
71846             Paul Eggert  <eggert@cs.ucla.edu>
71847
71848         Sync from cvs.
71849         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
71850
71851 2005-05-29  Derek Price  <derek@ximbiot.com>
71852
71853         * config/srclist.txt (glob_.h, glob.c): Add these files.
71854
71855 2005-05-29  Derek Price  <derek@ximbiot.com>
71856
71857         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
71858         * modules/glob: New file.
71859         * modules/getlogin_r: Add link to POSIX spec in description.
71860
71861 2005-05-29  Derek Price  <derek@ximbiot.com>
71862             Paul Eggert  <eggert@cs.ucla.edu>
71863
71864         * m4/glob.m4: New file.
71865
71866 2005-05-29  Derek Price  <derek@ximbiot.com>
71867             Paul Eggert  <eggert@cs.ucla.edu>
71868
71869         * lib/glob_.h, lib/glob.c: New files.
71870
71871 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71872
71873         * modules/fts (Files): Remove m4/inttypes-pri.m4.
71874         * modules/fts-lgpl (Depends-on): Remove gettext.
71875
71876 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71877
71878         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
71879         and don't require gt_INTTYPES_PRI.
71880
71881 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71882
71883         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
71884
71885         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
71886         the configuration hassle isn't worth it.
71887         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
71888         (LONGEST_MODIFIER, PRIuMAX): Remove.
71889
71890 2005-05-27  Bruno Haible  <bruno@clisp.org>
71891
71892         * lib/getlogin_r.h: Remove second include of <stddef.h>.
71893
71894 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
71895
71896         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
71897         _POSIX_PTHREAD_SEMANTICS for Solaris.
71898
71899 2005-05-25  Derek Price  <derek@ximbiot.com>
71900
71901         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
71902
71903 2005-05-25  Derek Price  <derek@ximbiot.com>
71904             Paul Eggert  <eggert@cs.ucla.edu>
71905
71906         * modules/getlogin_r, m4/getlogin_r.m4: New files.
71907         * lib/getlogin_r.c, getlogin_r.h: New files.
71908
71909 2005-05-25  Bruno Haible  <bruno@clisp.org>
71910             Derek Price  <derek@ximbiot.com>
71911
71912         * lib/getlogin_r.h: Simplify API documentation.
71913
71914 2005-05-23  Derek Price  <derek@ximbiot.com>
71915
71916         * modules/minmax (Files): Add m4/minmax.m4.
71917         (configure.ac): Add gl_MINMAX.
71918
71919 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71920
71921         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
71922         so that unistd-safer.h (GPL'ed code) need not be included.
71923
71924 2005-05-22  Bruno Haible  <bruno@clisp.org>
71925
71926         * m4/minmax.m4: New file.
71927         Based on a patch by Derek Price <derek@ximbiot.com>.
71928
71929 2005-05-22  Bruno Haible  <bruno@clisp.org>
71930
71931         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
71932         (INT64_MIN): Fix definition.
71933         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
71934
71935         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
71936         NEED_SIGNED_INT_TYPES.
71937
71938         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
71939         HAVE_SYSTEM_INTTYPES.
71940
71941 2005-05-22  Bruno Haible  <bruno@clisp.org>
71942
71943         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
71944         Also include <sys/param.h> if it defines MIN, MAX.
71945         Based on a patch by Derek Price <derek@ximbiot.com>.
71946
71947 2005-05-21  Jim Meyering  <jim@meyering.net>
71948
71949         * modules/fts (Files): Add m4/inttypes-pri.m4.
71950         (Depends-on): Add lstat and remove gettext.  Alphabetize.
71951
71952 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71953
71954         New fts module.
71955         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
71956         (setup_dir, free_dir): New functions.
71957         (enter_dir, leave_dir): Define trivial
71958         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
71959         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
71960         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
71961         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
71962         Move to fts-cycle.c.
71963         (fts_open): Use setup_dir.
71964         (fts_close): Use free_dir.
71965         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
71966         This adds a label and some gotos, but the alternatives were messier.
71967         Check for memory allocation failure when entering a dir.
71968         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
71969         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
71970         (FTS): New member fts_cycle, that is a union that contains the
71971         old active_dir_ht and cycle_state.  All uses changed to mention
71972         fts_cycle.ht and fts_cycle.state.
71973         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
71974         fts.c, with the following changes:
71975         (setup_dir, free_dir): New functions.
71976         (enter_dir): Now returns bool.  Return true if successful, false
71977         if memory exhausted.  All callers changed.
71978         Do not bother partly cleaning up on
71979         memory allocation failure; that is free_dir's job.
71980         However, free ad if hash_insert fails, to avoid memory leak.
71981         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
71982         fts->fts_options to see which union member to use.
71983
71984 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71985
71986         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
71987         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
71988
71989 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71990
71991         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
71992
71993 2005-05-20  Jim Meyering  <jim@meyering.net>
71994
71995         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
71996         Now a macro, to pacify GCC.
71997
71998 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
71999
72000         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
72001         of -1.
72002
72003 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
72004
72005         * lib/chown.c (rpl_chown): Return -1 on failure.
72006
72007 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
72008
72009         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
72010         Don't check for stddef.h.
72011         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
72012         don't use its results.
72013         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
72014         since we include them unconditionally.  Don't require
72015         AM_STDBOOL_H, since stdbool is a prerequisite.
72016         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
72017         since we assume C89 or better.
72018         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
72019         as we don't use their results.
72020         Don't check for fchdir, memmove, memset, strrchr, as we use
72021         them unconditionally.
72022         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
72023         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
72024
72025 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
72026
72027         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
72028         Include <stddef.h> unconditionally, since we assume C89 now.
72029         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
72030         * lib/fts.c: Include fts_.h first, to check interface.
72031         Do not include intprops.h; no longer needed.
72032         Include cycle-check.h and hash.h, since fts_.h no longer does.
72033         Remove unnecessary casts of closedir to void.
72034         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
72035         decide whether to decrement nlinks.
72036         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
72037         (FTS): Use struct hash_table * instead of Hash_table, so that
72038         we no longer need to include hash.h here.
72039
72040 2005-05-18  Jim Meyering  <jim@meyering.net>
72041
72042         * modules/dirfd (License): Change to LGPL.  Most of the code
72043         is already in the public domain.
72044
72045 2005-05-18  Jim Meyering  <jim@meyering.net>
72046
72047         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
72048         Reported by Yoann Vandoorselaere.
72049
72050 2005-05-17  Jim Meyering  <jim@meyering.net>
72051
72052         * m4/fts.m4: New file, from coreutils.
72053
72054 2005-05-17  Jim Meyering  <jim@meyering.net>
72055
72056         * lib/fts.c, lib/fts_.h: New files, from coreutils.
72057
72058 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72059
72060         Sync from coreutils.
72061         * m4/unlinkdir.m4: New file.
72062
72063 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72064
72065         Sync from coreutils.
72066         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
72067         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
72068         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
72069         White space changes only.
72070         * lib/makepath.c (make_path): Port to hosts where leading "//" is
72071         special.
72072         * lib/yesno.c: Include getline.h, not ctype.h.
72073         (yesno): Don't remove leading white space; POSIX doesn't allow it.
72074         Use getline to remove arbitrary restriction on response length.
72075
72076 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72077
72078         * config/srclist-update: Spell out "Street" in FSF postal
72079         mail address; this is the style the FSF seems to prefer.
72080
72081         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
72082         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
72083         this updates FSF postal mail address.
72084
72085         Sync from coreutils.
72086         * modules/unlinkdir: New file.
72087         * modules/yesno (Depends-on): Add getline.
72088         * MODULES.html.sh (File system functions): Add unlinkdir.
72089
72090 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
72091
72092         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
72093         lib/strsep.h:
72094         Change the initial comment to refer to GPL, not LGPL.
72095         gnulib-tool will change it to LGPL as needed.
72096
72097         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
72098         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
72099         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
72100         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
72101         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
72102         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
72103         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
72104         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
72105         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
72106         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
72107         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
72108         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
72109         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
72110         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
72111         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
72112         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
72113         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
72114         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
72115         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
72116         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
72117         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
72118         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
72119         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
72120         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
72121         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
72122         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
72123         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
72124         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
72125         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
72126         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
72127         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
72128         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
72129         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
72130         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
72131         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
72132         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
72133         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
72134         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
72135         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
72136         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
72137         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
72138         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
72139         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
72140         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
72141         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
72142         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
72143         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
72144         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
72145         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
72146         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
72147         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
72148         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
72149         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
72150         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
72151         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
72152         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
72153         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
72154         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
72155         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
72156         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
72157         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
72158         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
72159         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
72160         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
72161         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
72162         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
72163         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
72164         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
72165         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
72166         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
72167         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
72168         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
72169         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
72170         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
72171         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
72172         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
72173         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
72174         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
72175         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
72176         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
72177         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
72178         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
72179         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
72180         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
72181         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
72182         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
72183         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
72184         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
72185         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
72186         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
72187         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
72188         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
72189         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
72190         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
72191         lib/yesno.c, lib/yesno.h:
72192         Update FSF postal mail address.
72193
72194 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
72195
72196         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
72197         tests/test-memmem.c, tests/test-stpncpy.c:
72198         Update FSF postal mail address.
72199
72200 2005-05-13  Bruno Haible  <bruno@clisp.org>
72201
72202         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
72203         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
72204         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
72205         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
72206         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
72207         Add support for 64-bit integers in the MSVC compiler.
72208
72209 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72210
72211         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
72212
72213 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
72214
72215         * gnulib-tool (func_import): Sort and uniquify recommended includes.
72216
72217 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
72218
72219         * doc/getdate.texi (General date syntax): Don't say that date
72220         date --iso-8601=ns generates acceptable dates; it doesn't yet.
72221         Problem reported by Nic Ferrier.
72222
72223 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72224
72225         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
72226         specified in ai_socktype. Fix invalid ai_protocol
72227         check. ai_protocol is usually set to 0 or depending on
72228         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
72229         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
72230         ai_socktype / ai_protocol in the returned addrinfo structure.
72231
72232 2005-05-10  Simon Josefsson  <jas@extundo.com>
72233
72234         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
72235         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72236
72237 2005-05-10  Karl Berry  <karl@gnu.org>
72238
72239         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
72240         (from http://www.gnu.org/licenses).
72241         * doc/COPYING.LIB: also rename to COPYING.LESSER.
72242         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
72243         fdl.texi suffices.
72244
72245 2005-05-10  Karl Berry  <karl@gnu.org>
72246
72247         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
72248         (COPYING.DOC): remove.
72249
72250         * config/srclist-update: new FSF address.
72251
72252 2005-05-10  Derek Price  <derek@ximbiot.com>
72253
72254         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
72255         possible.
72256
72257 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72258             Bruno Haible  <bruno@clisp.org>
72259
72260         * modules/inet_ntop: New file.
72261         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72262         inet_ntop.
72263
72264 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72265             Bruno Haible  <bruno@clisp.org>
72266
72267         * m4/inet_ntop.m4: New file.
72268
72269 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72270             Bruno Haible  <bruno@clisp.org>
72271
72272         * lib/inet_ntop.h: New file.
72273         * lib/inet_ntop.c: New file, from glibc with modifications.
72274
72275 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
72276
72277         * modules/time_r (License): Change to LGPL.
72278         * modules/extensions (License): Change to LGPL.  Actually,
72279         the license is more permissive than that, but currently gnulib-tool
72280         doesn't know how to handle more-permissive licenses.
72281
72282         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
72283         Problem reported by Dave Love.
72284
72285 2005-05-08  Jim Meyering  <jim@meyering.net>
72286
72287         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
72288         blank.
72289
72290 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
72291
72292         * modules/argmatch (Depends-on): Add stdbool.
72293         * modules/backupfile (Depends-on): Likewise.
72294         * modules/chdir-long (Depends-on): Likewise.
72295         * modules/closeout (Depends-on): Likewise.
72296         * modules/cycle-check (Depends-on): Likewise.
72297         * modules/dirname (Depends-on): Likewise.
72298         * modules/fnmatch (Depends-on): Likewise.
72299         * modules/fsusage (Depends-on): Likewise.
72300         * modules/fwriteerror (Depends-on): Likewise.
72301         * modules/getcwd (Depends-on): Likewise.
72302         * modules/getloadavg (Depends-on): Likewise.
72303         * modules/hard-locale (Depends-on): Likewise.
72304         * modules/makepath (Depends-on): Likewise.
72305         * modules/mountlist (Depends-on): Likewise.
72306         * modules/nanosleep (Depends-on): Likewise.
72307         * modules/posixtm (Depends-on): Likewise.
72308         * modules/quotearg (Depends-on): Likewise.
72309         * modules/readtokens (Depends-on): Likewise.
72310         * modules/readtokens0 (Depends-on): Likewise.
72311         * modules/readutmp (Depends-on): Likewise.
72312         * modules/save-cwd (Depends-on): Likewise.
72313         * modules/strftime (Depends-on): Likewise.
72314         * modules/userspec (Depends-on): Likewise.
72315         * modules/utimecmp (Depends-on): Likewise.
72316         * modules/xgetcwd (Depends-on): Likewise.
72317         * modules/xnanosleep (Depends-on): Likewise.
72318         * modules/xstrtod (Depends-on): Likewise.
72319         * modules/yesno (Depends-on): Likewise.
72320
72321 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
72322
72323         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
72324         needless checks.
72325
72326 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
72327
72328         Merge from coreutils.  Among other things,
72329         add bulletproofing for cases where stdin, stdout, or stderr are closed.
72330         * lib/fd-safer.c: New file.
72331         * lib/fcntl-safer.h, open-safer.c: Remove.
72332         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
72333         * lib/dup-safer.c: Include unistd-safer.h first.
72334         Don't include errno.h.
72335         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
72336         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
72337         * lib/file-type.c: Rely on file-type.h change.
72338         * lib/getloadavg.c: Include unistd-safer.h.
72339         (getloadavg): Use safer open.
72340         * lib/getusershell.c: Include "stdio-safer.h".
72341         (getusershell): Use safer fopen.
72342         * lib/long-options.c (long_options): Use NULL rather than 0.
72343         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
72344         'free'.
72345         * lib/modechange.c: Likewise.
72346         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
72347         (MODE_DONE): New constant.
72348         (struct mode_change): Remove 'next' member.
72349         (make_node_op_equals): New function; like the old one of the
72350         same name, except it allocates an array.
72351         (mode_compile, mode_create_from_ref): Use it.
72352         (mode_compile): Allocate result as an array, not a linked list.
72353         Parse octal string ourself, so that we catch mistakes like "+0".
72354         (mode_adjust): Arg is an array, not a linked list.
72355         * lib/modechange.c: Include stat-macros.h, xalloc.h.
72356         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
72357         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
72358         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
72359         Remove.  This is now stat-macros.h's job.
72360         (talloc): Remove.  All callers replaced by xalloc, so that
72361         our invokers don't have to worry about reporting memory failures.
72362         (make_node_op_equals): Remove.
72363         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
72364         New constants.
72365         (struct mode_change): Moved here from modechange.h.
72366         (mode_append_entry): Remove.
72367         (mode_compile): Remove MASKED_OPS arg, since it encouraged
72368         apps to have incorrect behavior.  Use simpler algorithm for head
72369         and tail.  Don't futz with umask; that's now the job of mode_adjust.
72370         Detect more invalid usages rather than having somewhat-random behavior.
72371         Don't insert an "a=" action, as that leads to incorrect behavior.
72372         (mode_compile, mode_create_from_ref): Return NULL on error instead
72373         of an enum, since now there's only one way to have an error.  All
72374         callers changed.
72375         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
72376         at the correct time.  Simplify calculation of "+u" and its ilk.
72377         Don't mishandle "+X".
72378         (mode_free): Remove "register" and localize decls.
72379         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
72380         (struct mode_change): Move to modechange.c; callers don't
72381         need to see this stuff.
72382         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
72383         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
72384         (mode_change, mode_adjust): Reflect the new signatures noted above.
72385         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
72386         that might redefine system include files.
72387         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
72388         (my_usleep): Use NULL rather than (void *) 0.
72389         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
72390         Use siginterrupt to specify that system calls should be interrupted.
72391         (rpl_nanosleep): Move initialization of suspended closer to call of
72392         my_usleep.
72393         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
72394         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
72395         (desirable_utmp_entry): New function.
72396         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
72397         using x2nrealloc, to simplify logic.
72398         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
72399         size calculation.  Do not assume utmp file is a regular file.
72400         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
72401         (READ_UTMP_CHECK_PIDS): New constant.
72402         * lib/save-cwd.c: Include unistd-safer.h.
72403         (save_cwd): Use fd_safer.
72404         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
72405         [!_LIBC] Include "stat-macros.h" instead.
72406         * lib/unistd-safer.h (fd_safer): New decl.
72407
72408 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
72409
72410         * modules/getloadavg (Depends-on): Add unistd-safer.
72411         * modules/getusershell (Depends-on): Add stdio-safer.
72412         * modules/lstat (Depends-on): Remove xalloc.
72413         * modules/mkstemp (Depends-on): Add stat-macros.
72414         * modules/modechange (Depends-on): Remove xstrtol.
72415         Add stat-macros, xalloc.
72416         * modules/save-cwd (Depends-on): Add unistd-safer.
72417         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
72418         * modules/unistd-safer (Files): Add lib/fd-safer.c
72419         (Makefile.am): Remove lib_SOURCES.
72420
72421         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
72422         Remove fcntl-safer; unistd-safer supersedes it.
72423
72424 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
72425
72426         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
72427         AC_HEADER_STAT.
72428         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
72429         (gl_PREREQ_CHOWN): Remove.
72430         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
72431         it.  Don't require AC_HEADER_STAT.
72432         (gl_PREREQ_LSTAT): Remove.
72433         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
72434         Don't require AC_HEADER_STAT.
72435         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
72436         (gl_PREREQ_RMDIR): Remove.
72437         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
72438         mention stat-macros.h or AC_HEADER_STAT, since we'll make
72439         the stat-macros module a prerequisite.
72440         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
72441         * m4/filemode.m4 (gl_FILEMODE): Likewise.
72442         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
72443         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
72444         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
72445         variable names.
72446         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
72447         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
72448         variable prefixes.
72449         * m4/fcntl-safer.m4: Remove.
72450         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
72451         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
72452         Invoke gl_PREREQ_FD_SAFER.
72453         (gl_PREREQ_FD_SAFER): New macro.
72454         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
72455         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
72456         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
72457         Remove duplicate call to AC_LIBOBJ(readutmp).
72458         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
72459
72460         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
72461         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
72462
72463 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
72464
72465         * MODULES.html.sh (Misc): Add byteswap.
72466
72467 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
72468
72469         * modules/getcwd (Depends-on): Add extensions.
72470         * modules/openat (Depends-on): Likewise.
72471
72472 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
72473
72474         * modules/byteswap: New file.
72475
72476 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
72477
72478         * m4/byteswap.m4: New file.
72479
72480 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
72481
72482         * lib/byteswap_.h: New file.
72483
72484 2005-04-25  Karl Berry  <karl@gnu.org>
72485
72486         * m4/gettext.m4: Update from GNU gettext 0.14.4.
72487
72488 2005-04-25  Albert Chin  <china@thewrittenword.com>
72489
72490         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
72491         Toolkit C bug.
72492
72493 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
72494
72495         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
72496         (func_ln_if_changed): Remove forcibly for no error message
72497         in case file does not exist.
72498
72499 2005-04-19  Simon Josefsson  <jas@extundo.com>
72500
72501         * gnulib-tool (Options): Make --symlink mean --symbolic.
72502
72503 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
72504
72505         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
72506
72507 2005-04-16  Simon Josefsson  <jas@extundo.com>
72508
72509         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
72510
72511 2005-04-15  Simon Josefsson  <jas@extundo.com>
72512
72513         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
72514
72515 2005-04-15  Simon Josefsson  <jas@extundo.com>
72516
72517         * gnulib-tool: Rename --symlink to --symbolic.
72518
72519 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
72520
72521         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
72522         symbolic links to files instead of copying/moving.  Add --aux-dir,
72523         specifying directory relative --dir where auxiliary build tools
72524         are placed.
72525
72526 2005-04-14  Bruno Haible  <bruno@clisp.org>
72527
72528         * modules/allocsa (License): Change to LGPL.
72529         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
72530
72531 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
72532
72533         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
72534         that "UTC +1 second" continues to work.  Problem reported
72535         by Dmitry V. Levin.
72536         (relunit_snumber): New rule.
72537         (relunit): Use it.
72538
72539 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
72540
72541         * lib/getdate.y (universal_time_zone_table): New constant.
72542         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
72543         universal_time_zone_table.
72544         (lookup_zone): Prefer universal_time_zone_table to
72545         local_time_zone_table, so that "GMT" time stamps are allowed in
72546         London during the summer.  Problem reported by Ian Abbott.
72547
72548 2005-04-12  Jim Meyering  <jim@meyering.net>
72549
72550         * lib/human.c (humblock): Set *options even when returning due to
72551         xstrtoumax conversion failure.  Thanks to a used-uninitialized
72552         warning from gcc-4.
72553
72554 2005-04-09  Jim Meyering  <jim@meyering.net>
72555
72556         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
72557         -Wuninitialized: initialize tm0.tm_year.
72558
72559 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
72560
72561         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
72562         count, since there's no maximum.  All uses changed.
72563         Add member dsts_seen.
72564         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
72565         not being INT_MAX.
72566         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
72567         Use pc_rels_seen to decide whther a date is absolute.
72568
72569         * lib/getdate.y (number): Don't overwrite year.
72570         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
72571         check.
72572
72573 2005-04-02  Simon Josefsson  <jas@extundo.com>
72574
72575         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
72576         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
72577
72578 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
72579
72580         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
72581         where no absolute path name can be longer than PATH_MAX.
72582
72583 2005-03-27  Jim Meyering  <jim@meyering.net>
72584
72585         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
72586
72587 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
72588
72589         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
72590         "one's complement" -> "ones' complement" in comment, as per Knuth.
72591         "value of type" -> "type or expression" in comment.
72592         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
72593
72594 2005-03-26  Jim Meyering  <jim@meyering.net>
72595
72596         Comment nits.
72597         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
72598         Correct typos: s/or/of/.
72599
72600 2005-03-26  Jim Meyering  <jim@meyering.net>
72601
72602         * modules/check-include-files: Move to ../ and rename to...
72603         * check-module: ...this.
72604
72605 2005-03-25  Jim Meyering  <jim@meyering.net>
72606
72607         * modules/xvasprintf (Files): Add xalloc.h.
72608
72609 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
72610
72611         * modules/gettext (Files): config/config.rpath ->
72612         build-aux/config.rpath
72613         * modules/iconv (Files): Likewise.
72614         Problem reported by Oskar Liljeblad.
72615
72616 2005-03-23  Jim Meyering  <jim@meyering.net>
72617
72618         * modules/check-include-files: New script to check for
72619         missing dependencies, multiple includes, etc.
72620
72621         * modules/c-strtold (Depends-on): Add xalloc.
72622         * modules/c-strtod (Depends-on): Add xalloc.
72623         * modules/hash (Depends-on): Add xalloc.
72624         (Files): Remove lib/xalloc.h.
72625
72626         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
72627         * modules/userspec (Files): Add lib/inttostr.h.
72628
72629 2005-03-23  Jim Meyering  <jim@meyering.net>
72630
72631         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
72632
72633 2005-03-22  Jim Meyering  <jim@meyering.net>
72634
72635         * modules/stat-macros: New module.
72636         * modules/canonicalize, modules/euidaccess, modules/file-type,
72637         * modules/filemode, modules/lchown, modules/makepath,
72638         * modules/rmdir, modules/stat: Depend on new stat-macros module
72639         rather than listing lib/stat-macros.h manually.
72640         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
72641
72642 2005-03-22  Jim Meyering  <jim@meyering.net>
72643
72644         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
72645
72646 2005-03-22  Bruno Haible  <bruno@clisp.org>
72647
72648         * config/srclist.txt: Replace target directory 'config' with
72649         'build-aux'.
72650         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
72651         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
72652         ../build-aux/.
72653
72654 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
72655
72656         * modules/chdir-long (Depends-on): Add mempcpy.
72657
72658         * modules/acl, modules/backupfile, modules/c-strtod,
72659         modules/c-strtold, modules/canon-host, modules/canonicalize,
72660         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
72661         modules/exclude, modules/exitfail, modules/file-type,
72662         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
72663         modules/getdate, modules/getline, modules/getpagesize,
72664         modules/getpass, modules/getugroups, modules/group-member,
72665         modules/hard-locale, modules/hash, modules/human, modules/idcache,
72666         modules/inttostr, modules/long-options, modules/makepath,
72667         modules/md5, modules/memcasecmp, modules/memcoll,
72668         modules/modechange, modules/mountlist, modules/path-concat,
72669         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
72670         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
72671         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
72672         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
72673         modules/strftime, modules/strndup, modules/strverscmp,
72674         modules/timespec, modules/unlocked-io, modules/userspec,
72675         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
72676         modules/yesno:
72677         Remove lib_SOURCES line from Makefile.am section, as this is now
72678         done automatically by the corresponding Autoconf macro.
72679
72680 2005-03-21  Jim Meyering  <jim@meyering.net>
72681
72682         Changes imported from coreutils.
72683
72684         * lib/cycle-check.c: Don't include xalloc.h.
72685
72686         * lib/path-concat.c: Don't include assert.h.
72687         (path_concat): Remove assertion that would have triggered
72688         for ABASE starting with more than one slash.
72689         Reported by Andreas Schwab.
72690
72691         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
72692         properly when ABASE is an absolute file name.
72693         Correct the description of this function.
72694         Include <assert.h>.
72695         Add an assertion and a test driver.
72696         This fixes a bug introduced on 2004-07-02.
72697         Andreas Schwab reported the resulting failure of cp --parents:
72698         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
72699
72700 2005-03-21  Jim Meyering  <jim@meyering.net>
72701
72702         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
72703         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
72704
72705 2005-03-21  Jim Meyering  <jim@meyering.net>
72706         and  Paul Eggert  <eggert@cs.ucla.edu>
72707
72708         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
72709         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
72710         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
72711         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
72712         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
72713         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
72714         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
72715         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
72716         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
72717         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
72718         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
72719         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
72720         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
72721         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
72722         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
72723         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
72724         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
72725         for these modules.
72726
72727 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
72728
72729         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
72730         (which shouldn't happen), generate nothing instead of returning 0
72731         immediately, so that nstrftime (NULL, ...) doesn't return 0.
72732
72733 2005-03-16  Bruno Haible  <bruno@clisp.org>
72734
72735         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
72736         HAVE_LONGLONG_64BIT.
72737
72738 2005-03-16  Bruno Haible  <bruno@clisp.org>
72739
72740         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
72741         HAVE_LONGLONG_64BIT.
72742
72743 2005-03-16  Bruno Haible  <bruno@clisp.org>
72744
72745         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
72746         HAVE_LONGLONG_64BIT.
72747
72748 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
72749
72750         * lib/strftime.c (my_strftime): Prepend space to format so that we can
72751         reliably distinguish strftime failure from empty output on POSIX
72752         hosts.
72753
72754 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
72755
72756         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
72757         (iconv_string): Don't guess a size-zero buffer, as that might cause
72758         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
72759         result would be 'too large', where 'too large' is (heuristically)
72760         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
72761         overflow concerns.  This will prevent some unwanted malloc failures
72762         when the inputs are very large.
72763
72764 2005-03-15  Karl Berry  <karl@gnu.org>
72765
72766         * config/srclist.txt (config.rpath): from gettext.
72767         * config/config.rpath: update.
72768
72769 2005-03-15  Bruno Haible  <bruno@clisp.org>
72770
72771         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
72772         to 'negate'.
72773
72774         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
72775         variable.
72776
72777         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
72778         results.
72779
72780 2005-03-14  Simon Josefsson  <jas@extundo.com>
72781
72782         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
72783         <fx@gnu.org>.
72784
72785 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
72786
72787         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
72788         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
72789         intprops.h.
72790         * lib/strtol.c: Likewise.
72791
72792 2005-03-14  Jim Meyering  <jim@meyering.net>
72793
72794         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
72795         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
72796         to be nonzero so that we (and caller) can detect the difference
72797         between a valid zero-length expansion and an error return, even
72798         when the underlying strftime fails before writing anything into
72799         that location.
72800
72801 2005-03-14  Bruno Haible  <bruno@clisp.org>
72802
72803         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
72804         Update from GNU gettext 0.14.3.
72805
72806 2005-03-10  Jim Meyering  <jim@meyering.net>
72807
72808         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
72809
72810 2005-03-10  Jim Meyering  <jim@meyering.net>
72811
72812         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
72813         so that this module works on systems without fchdir.
72814
72815 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
72816
72817         Factor int-properties macros into a single file, except for
72818         glibc-related files.
72819         * lib/intprops.h: New file.
72820         * lib/getloadavg.c: Include it instead of limits.h.
72821         (INT_STRLEN_BOUND): Remove.
72822         * lib/human.c: Include intprops.h.
72823         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
72824         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
72825         302/1000.
72826         * lib/inttostr.h: Include intprops.h instead of limits.h.
72827         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
72828         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
72829         for consistency with intprops.h.
72830         (time_t_is_integer, twos_complement_arithmetic): Use them.
72831         * lib/sig2str.h: Include <signal.h>, intprops.h.
72832         (INT_STRLEN_BOUND): Remove.
72833         * lib/strftime.c (TYPE_SIGNED): Remove.
72834         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
72835         * lib/strtol.c: Adjust comments to match intprops.h.
72836         * lib/userspec.c: Include intprops.h.
72837         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
72838         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
72839         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
72840         instead of rolling our own expressions.
72841         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
72842
72843         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
72844         instead of int.
72845         (my_strftime): Do not mishandle years close to INT_MAX, by doing
72846         the right thing even if adding 1900 would overflow.  Similarly
72847         for tm_mon + 1 and tm_yday + 1.
72848         Make %Y always equivalent to %C%y, and similarly for %G and %g.
72849         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
72850         (DO_SIGNED_NUMBER): New macro.
72851         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
72852
72853 2005-03-07  Bruno Haible  <bruno@clisp.org>
72854
72855         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
72856
72857 2005-03-07  Bruno Haible  <bruno@clisp.org>
72858
72859         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
72860
72861 2005-03-04  Derek R. Price  <derek@ximbiot.com>
72862
72863         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
72864         (func_import): Only replace files via --import when they have actually
72865         changed.
72866
72867 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72868
72869         * m4/mmap-anon.m4: New file.
72870         * m4/pagealign_alloc.m4: New file.
72871
72872 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72873             Bruno Haible  <bruno@clisp.org>
72874
72875         * modules/pagealign_alloc: New file.
72876         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
72877
72878 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72879             Bruno Haible  <bruno@clisp.org>
72880
72881         * lib/pagealign_alloc.h: New file.
72882         * lib/pagealign_alloc.c: New file.
72883
72884 2005-03-03  Bruno Haible  <bruno@clisp.org>
72885
72886         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
72887         Use an all-permissive copyright notice, recommended by RMS.
72888
72889 2005-03-02  Bruno Haible  <bruno@clisp.org>
72890
72891         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
72892         of AIX, the replacement has to be done only after <string.h> is
72893         included, therefore not in config.h. stpncpy.h does the replacement,
72894         and stpncpy.c uses it.
72895
72896 2005-03-02  Bruno Haible  <bruno@clisp.org>
72897
72898         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
72899         stpncpy.c uses it.
72900
72901 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72902
72903         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
72904         The workaround isn't strictly needed for POSIX conformance, and
72905         it's too much of a pain to configure and maintain.  We'll ask
72906         people to fix their kernels instead.
72907         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
72908         (NANOSLEEP_BUG_WORKAROUND): Remove.
72909         (xnanosleep): Remove the workaround.
72910
72911 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72912
72913         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
72914         Reported by Derek Price.
72915         (Include): Add "timespec.h".
72916
72917         * modules/xnanosleep (Depends-on): Remove gethrxtime.
72918
72919 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72920
72921         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
72922         to detect nanosleep bug.
72923
72924 2005-03-01  Bruno Haible  <bruno@clisp.org>
72925
72926         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
72927
72928 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72929
72930         * modules/gethrxtime: New file.
72931         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
72932         (Depends-on): Add gethrxtime.
72933         (configure.ac): Add gl_XNANOSLEEP.
72934         (Makefile.am): Remove lib_SOURCES line.
72935
72936 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72937
72938         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
72939         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
72940
72941 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72942
72943         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
72944         * lib/timespec.h (gettime): Return void, since it always
72945         succeeds now.  All uses changed.
72946         * lib/gettime.c (gettime): Likewise.
72947         [HAVE_NANOTIME]: Prefer nanotime.
72948         Assume gettimeofday succeeds, as POSIX requires.
72949         Assime time () succeeds, since other code already does.
72950         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
72951         (timespec_subtract): Remove.
72952         (NANOSLEEP_BUG_WORKAROUND): New constant.
72953         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
72954         things considerably.  Use it only on GNU/Linux hosts, since the
72955         workaround shouldn't be needed elsewhere.
72956
72957 2005-02-24  Bruno Haible  <bruno@clisp.org>
72958
72959         * modules/gettext (Files): Add m4/glibc2.m4.
72960
72961 2005-02-24  Bruno Haible  <bruno@clisp.org>
72962
72963         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
72964         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
72965         * m4/progtest.m4:
72966         Update from GNU gettext 0.14.2.
72967         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
72968
72969 2005-02-24  Bruno Haible  <bruno@clisp.org>
72970
72971         * lib/localcharset.c: Update from GNU gettext 0.14.2.
72972         * lib/config.charset: Update from GNU gettext 0.14.2.
72973
72974 2005-02-24  Bruno Haible  <bruno@clisp.org>
72975
72976         * lib/gettext.h: Update from GNU gettext 0.14.2.
72977
72978 2005-02-23  Simon Josefsson  <jas@extundo.com>
72979
72980         * m4/iconvme.m4: New file.
72981
72982 2005-02-23  Jim Meyering  <jim@meyering.net>
72983
72984         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
72985         change.
72986         Thanks to Bruno Haible for catching it.
72987
72988 2005-02-22  Simon Josefsson  <jas@extundo.com>
72989
72990         * modules/iconvme: New file.
72991
72992         * MODULES.html.sh: Add iconvme.
72993
72994 2005-02-22  Simon Josefsson  <jas@extundo.com>
72995
72996         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
72997
72998 2005-02-22  Simon Josefsson  <jas@extundo.com>
72999
73000         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
73001
73002 2005-02-22  Jim Meyering  <jim@meyering.net>
73003
73004         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
73005         s/ifndef/ifdef/.
73006
73007 2005-02-20  Neil Conway  <neilc@samurai.com>
73008
73009         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
73010         returned by OSX/Darwin if the specified buffer is not large
73011         enough for the hostname.
73012
73013 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73014
73015         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
73016         pass it to _help, otherwise the latter coredumps trying to
73017         dereference state.root_argp.
73018
73019 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73020
73021         * modules/chdir-long (Depends-on): Add memrchr.
73022         * modules/memrchr (Files): Add lib/memrchr.h.
73023         (Include): "memrchr.h".
73024
73025 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73026
73027         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
73028
73029 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73030
73031         * lib/memrchr.h: New file.
73032         * lib/chdir-long.c: Include it.
73033         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
73034         Don't bother including stddef.h.
73035
73036 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
73037
73038         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
73039         inclusion.
73040         Include <sys/types.h>, for dev_t.
73041         (ME_DUMMY, ME_REMOTE): Move from here....
73042         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
73043         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
73044         Dmitry V. Levin.
73045         Include mountlist.h first, to test the interface.
73046
73047 2005-01-29  Bruno Haible  <bruno@clisp.org>
73048
73049         * lib/progname.c (program_name): Initialize.
73050         Needed when linking statically on MacOS X.
73051
73052 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
73053
73054         Sync from coreutils.
73055         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
73056         (Depends-on): Add c-strtod.
73057         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
73058
73059 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
73060
73061         Sync from coreutils.
73062         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
73063
73064         Remove files that are specific to coreutils.
73065         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
73066
73067 2005-01-28  Bruno Haible  <bruno@clisp.org>
73068
73069         * modules/javacomp: New file.
73070         * MODULES.html.sh (Java): Add javacomp.
73071
73072 2005-01-28  Bruno Haible  <bruno@clisp.org>
73073
73074         * m4/javacomp.m4: New file, from GNU gettext.
73075
73076 2005-01-28  Bruno Haible  <bruno@clisp.org>
73077
73078         * lib/javacomp.sh.in: New file, from GNU gettext.
73079         * lib/javacomp.h: New file, from GNU gettext.
73080         * lib/javacomp.c: New file, from GNU gettext.
73081
73082 2005-01-26  Simon Josefsson  <jas@extundo.com>
73083
73084         * lib/gai_strerror.c: Use GPL in header.
73085
73086 2005-01-26  Bruno Haible  <bruno@clisp.org>
73087
73088         * modules/javaexec: New file.
73089         * MODULES.html.sh (Java): Add javaexec.
73090
73091 2005-01-26  Bruno Haible  <bruno@clisp.org>
73092
73093         * m4/javaexec.m4: New file, from GNU gettext.
73094
73095 2005-01-26  Bruno Haible  <bruno@clisp.org>
73096
73097         * lib/javaexec.sh.in: New file, from GNU gettext.
73098         * lib/javaexec.h: New file, from GNU gettext.
73099         * lib/javaexec.c: New file, from GNU gettext.
73100
73101 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73102
73103         * modules/lchown (Depends-on): Remove lchown.h
73104
73105 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73106
73107         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
73108         must be defined if the header file was not found, in order
73109         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
73110
73111 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73112
73113         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
73114         initializers for struct pentry_state.
73115         (__argp_error): Check return value of __asprintf
73116         (__argp_failure): Translate error message
73117
73118         * lib/argp-parse.c: Removed braces around the expansion of N_()
73119
73120 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73121
73122         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
73123         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
73124         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
73125         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
73126         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
73127         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
73128         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
73129         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
73130         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
73131         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
73132         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
73133         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
73134         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
73135         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
73136         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
73137         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
73138         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
73139         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
73140         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
73141         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
73142         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
73143         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
73144         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
73145         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
73146         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
73147         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
73148         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
73149         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
73150         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
73151         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
73152         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
73153         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
73154         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
73155         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
73156         xstrtol.m4, xstrtoumax.m4, yesno.m4:
73157         Use an all-permissive copyright notice, recommended by RMS.
73158
73159 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
73160
73161         * modules/chdir-long (Depends-on): Remove mempcpy.
73162
73163 2005-01-21  Jim Meyering  <jim@meyering.net>
73164
73165         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
73166         same value as for Solaris 9.
73167
73168         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
73169         component length.  This included changing the parameter to be
73170         of type `char *' rather than `char const *'.
73171         * lib/chdir-long.h (chdir_long): Update prototype.
73172
73173         * lib/openat.c (fdopendir, fstatat): New functions.
73174         * lib/openat.h: Include headers required for use of DIR and struct
73175         stat.
73176         [AT_SYMLINK_NOFOLLOW]: Define.
73177         (fdopendir, fstatat): Add prototypes.
73178
73179 2005-01-21  Bruno Haible  <bruno@clisp.org>
73180
73181         * modules/classpath: New file.
73182         * MODULES.html.sh (Java): Add classpath.
73183
73184 2005-01-21  Bruno Haible  <bruno@clisp.org>
73185
73186         * lib/classpath.h: New file, from GNU gettext.
73187         * lib/classpath.c: New file, from GNU gettext.
73188
73189 2005-01-20  Simon Josefsson  <jas@extundo.com>
73190
73191         * modules/version-etc-fsf: New file.
73192
73193 2005-01-20  Simon Josefsson  <jas@extundo.com>
73194
73195         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
73196         * lib/version-etc.c: Remove version_etc_copyright.
73197         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
73198         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
73199
73200 2005-01-20  Simon Josefsson  <jas@extundo.com>
73201
73202         * lib/base64.h (isbase64): Add.
73203
73204         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
73205         using a unsigned prototype, don't inline.
73206         (base64_decode): Use it.
73207
73208 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73209
73210         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
73211         it.
73212
73213 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73214
73215         * lib/save-cwd.c (save_cwd): Remove code to support the case
73216         where fchdir is missing or flaky.
73217
73218 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73219
73220         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
73221
73222 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
73223
73224         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
73225         AC_LIBSOURCES now does this.
73226         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
73227         with new ullong_max module.
73228
73229 2005-01-19  Bruno Haible  <bruno@clisp.org>
73230
73231         * modules/sh-quote: New file.
73232         * MODULES.html.sh (Executing programs): Add sh-quote.
73233
73234 2005-01-19  Bruno Haible  <bruno@clisp.org>
73235
73236         * lib/sh-quote.h: New file, from GNU gettext.
73237         * lib/sh-quote.c: New file, from GNU gettext.
73238
73239 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
73240
73241         Merge from coreutils.
73242         * m4/ullong_max.m4: New file.
73243         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
73244         (gl_MACROS): Assume localeconv exists.
73245
73246 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
73247
73248         Merge changes from coreutils, as described below in several
73249         changelogs dated today.
73250
73251         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
73252         (O_DIRECTORY): Remove; not needed here, since "." must be
73253         a directory.  All uses removed.
73254         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
73255         universal on Suns, and we also need to test for IRIX.
73256         Revamp code to use 'if' rather than '#if'.
73257         Avoid unnecessary comparison of cwd->desc to 0.
73258
73259         * lib/utimens.c (futimens): Robustify the previous patch, by checking
73260         for known valid error numbers rather than observed invalid ones.
73261
73262 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
73263
73264         * modules/ullong_max: New file.
73265
73266         * modules/chdir-long, modules/openat: New files.
73267         * modules/save-cwd (Depends-on): Depend on chdir-long.
73268         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
73269
73270 2005-01-18  Jim Meyering  <jim@meyering.net>
73271
73272         Merge from coreutils.
73273         * m4/chdir-long.m4, m4/openat.m4: New files.
73274         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
73275         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
73276         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
73277         is sane and DOES follow symlinks.  Besides, testing 20 different
73278         systems found no broken chown implementations.
73279         Prompted by a change in rsync's copy of this macro.
73280         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
73281
73282         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
73283
73284         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
73285         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
73286         NULL-means-set-to-current-time semantics.
73287         Remove temporary file immediately, rather than waiting
73288         for configure's at-exit trap code to do it.
73289
73290 2005-01-18  Jim Meyering  <jim@meyering.net>
73291
73292         * lib/version-etc.c (version_etc_copyright): Update copyright date.
73293
73294         * lib/utimens.c (futimens): Account for the fact that futimes
73295         can also fail with errno == ENOSYS or errno == ENOENT.
73296         Patch from Dmitry V. Levin.
73297
73298         Change the name of the robust chdir function from chdir to chdir_long.
73299         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
73300         (restore_cwd): Use chdir_long, not chdir.
73301         * lib/chdir-long.c: Renamed from chdir.c.
73302         * lib/chdir-long.h: Renamed from chdir.h.
73303         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
73304         Hurd.
73305
73306 2005-01-18  Bruno Haible  <bruno@clisp.org>
73307
73308         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
73309         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
73310         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
73311         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
73312         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
73313         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
73314         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
73315         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
73316         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
73317         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
73318         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
73319         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
73320         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
73321         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
73322         Use an all-permissive copyright notice, recommended by RMS.
73323
73324 2005-01-18  Bob Proulx  <bob@proulx.com>
73325
73326         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
73327         simplify offsetof() macro construct to avoid compile failure with
73328         native HP-UX 11.0 ANSI C compiler.
73329
73330 2005-01-17  Bruno Haible  <bruno@clisp.org>
73331
73332         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
73333         redundant because stpncpy.m4 takes care of it.
73334
73335 2005-01-17  Bruno Haible  <bruno@clisp.org>
73336
73337         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
73338
73339 2005-01-17  Bruno Haible  <bruno@clisp.org>
73340
73341         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
73342         used.
73343
73344 2005-01-17  Bruno Haible  <bruno@clisp.org>
73345
73346         * lib/fwriteerror.h (fwriteerror): Change specification to include
73347         fclose.
73348         * lib/fwriteerror.c: Include <stdbool.h>.
73349         (fwriteerror): At the end, close the file stream. Record whether
73350         stdout was already closed.
73351
73352 2005-01-17  Bruno Haible  <bruno@clisp.org>
73353
73354         * lib/execute.c (environ): Declare if needed.
73355         * lib/pipe.c (environ): Likewise.
73356         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
73357
73358 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73359
73360         * modules/argp: Depend on vsnprintf
73361
73362 2005-01-10  Jim Meyering  <jim@meyering.net>
73363
73364         * modules/closeout (Depends-on): Add atexit.
73365
73366 2005-01-06  Bruno Haible  <bruno@clisp.org>
73367
73368         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
73369
73370 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73371
73372         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
73373         definitions to be after all include files, to avoid collisions.
73374         Problem reported by Bob Proulx.
73375
73376 2005-01-04  Jim Meyering  <jim@meyering.net>
73377
73378         Changes imported from coreutils.
73379         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
73380         as the mkstemp template, use a temporary directory and an
73381         8.3-friendly template to avoid trouble on systems like DJGPP.
73382         Reported by Juan M. Guerrero via Stepan Kasal.
73383         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
73384         close. Remove the temporary directory right away, rather than waiting
73385         for configure's at-exit trap code to do it.
73386         Suggestion from Stepan Kasal.
73387
73388 2005-01-01  Simon Josefsson  <jas@extundo.com>
73389
73390         * gnulib-tool: Print #include directives when --import'ing.
73391
73392 2004-12-28  Simon Josefsson  <jas@extundo.com>
73393
73394         * tests/test-base64.c: Include required header files.  Remove
73395         unused variables.
73396
73397 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
73398
73399         * modules/error (Depends-on): Remove gettext.
73400
73401 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
73402
73403         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
73404         not needed.  This removes a dependency on the gettext module.
73405         [defined _LIBC]: Do not include <libintl.h>; not needed.
73406
73407 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
73408
73409         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
73410         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
73411
73412 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
73413
73414         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
73415         HAVE_DECL_STRTOLD.
73416
73417 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
73418
73419         * modules/getdate (Depends-on): Remove alloca-opt.
73420
73421 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
73422
73423         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
73424
73425 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
73426
73427         * lib/argp-parse.c: Include <stddef.h>.
73428         (alignof, alignto): New macros.
73429         (parser_init): Don't assume that void * is aligned sufficiently
73430         for struct option.
73431
73432         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
73433         need to extend the stack.
73434         (YYINITDEPTH): New macro, so that the initial stack isn't overly
73435         large.
73436
73437 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73438
73439         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
73440
73441 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
73442
73443         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
73444         (2004-10-24) change.  Apparently this was a false alarm.
73445
73446         * modules/getdate: Depend on alloca-opt, not alloca.
73447
73448 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
73449
73450         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
73451         Remove now-obsolete comment about AIX.
73452         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
73453         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
73454         (YYMAXDEPTH): New macro.
73455
73456 2004-12-18  Simon Josefsson  <jas@extundo.com>
73457
73458         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
73459
73460 2004-12-18  Bruno Haible  <bruno@clisp.org>
73461
73462         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
73463
73464 2004-12-18  Bruno Haible  <bruno@clisp.org>
73465
73466         * lib/fatal-signal.c (fatal_signals): Make non-const.
73467         (init_fatal_signals): New function.
73468         (uninstall_handlers, install_handlers): Ignore signals that were set to
73469         SIG_IGN.
73470         (at_fatal_signal): Call init_fatal_signals.
73471         (init_fatal_signal_set): Likewise. Ignore signals that were set to
73472         SIG_IGN.
73473         Reported by Paul Eggert.
73474
73475 2004-12-18  Bruno Haible  <bruno@clisp.org>
73476
73477         * doc/alloca.texi: New file.
73478         * doc/alloca-opt.texi: New file.
73479
73480 2004-12-17  Jim Meyering  <jim@meyering.net>
73481
73482         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
73483         Otherwise, install-sh could exit with improper exit status when
73484         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
73485
73486 2004-12-16  Simon Josefsson  <jas@extundo.com>
73487
73488         * tests/test-base64.c: Add license.
73489
73490 2004-12-15  Stepan Kasal  <address@hidden>
73491
73492         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
73493
73494 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
73495
73496         * modules/getcwd (Files): Add m4/d-ino.m4.
73497         Suggested by Mark D. Baushke.
73498
73499 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
73500
73501         * lib/getdate.y (textint): New member "negative".
73502         (time_zone_hhmm): New function.
73503         Expect 14 shift-reduce conflicts, not 13.
73504         (o_colon_minutes): New rule.
73505         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
73506         (yylex): Set the "negative" member of signed numbers.
73507
73508 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
73509
73510         * doc/getdate.texi (Time of day items, Time zone items):
73511         Describe new formats +00:00, UTC+00:00.
73512
73513 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73514
73515         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
73516         spurious "-l"s.  Problem reported by Stepan Kasal.
73517
73518 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
73519
73520         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
73521         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
73522
73523 2004-12-04  Simon Josefsson  <jas@extundo.com>
73524
73525         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
73526         Vandoorselaere <yoann@prelude-ids.org>.
73527
73528 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
73529
73530         Changes imported from coreutils.
73531         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
73532         exist.
73533         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
73534
73535 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
73536
73537         Changes imported from coreutils.
73538         * lib/hard-locale.c: Assume <locale.h> exists.
73539         Include "strdup.h".
73540         (GLIBC_VERSION): New macro.
73541         (hard_locale): Assume setlocale exists.
73542         Rewrite to avoid #ifdef.
73543         Use strdup rather than malloc + strcpy.
73544         * lib/human.c: Assume <locale.h> exists.
73545         (human_readable): Assume localeconv exists.
73546
73547 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
73548
73549         * modules/hard-locale (Depends-on): Add strdup.
73550
73551 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
73552
73553         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
73554         convert T2, not T.  (Imported from libc.)
73555
73556 2004-11-30  Simon Josefsson  <jas@extundo.com>
73557
73558         * modules/restrict (License): Change to LGPL.
73559
73560 2004-11-30  Simon Josefsson  <jas@extundo.com>
73561
73562         * m4/restrict.m4: Add copyright and copying conditions.
73563
73564 2004-11-30  Simon Josefsson  <jas@extundo.com>
73565
73566         * m4/base64.m4: New file.
73567
73568 2004-11-30  Simon Josefsson  <jas@extundo.com>
73569
73570         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
73571         base64.
73572
73573         * tests/test-base64.c: New file.
73574
73575         * modules/base64: New file.
73576
73577 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
73578
73579         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
73580         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
73581
73582         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
73583
73584 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
73585
73586         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
73587         (__getcwd.c): Don't restore errno; glibc doesn't.
73588         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
73589         first, falling back to our code only if its results look suspicious.
73590         Ensure that the resulting buffer is only as large as necessary.
73591
73592         * lib/readutmp.c: Include readutmp.h first.
73593         Include <errno.h>, since readutmp.h no longer does that.
73594         * lib/readutmp.h: Don't include <errno.h>,
73595         <sys/param.h>, <time.h>; not needed to establish interface.
73596         (errno): Remove decl.
73597         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
73598         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
73599         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
73600
73601 2004-11-28  Simon Josefsson  <jas@extundo.com>
73602
73603         * lib/base64.h, base64.c: New file.
73604
73605 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
73606
73607         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
73608
73609 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
73610
73611         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
73612         (Depends-on): Remove pathmax, same.  Add mempcpy.
73613         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
73614         (Makefile.am): Append getcwd.h to lib_SOURCES.
73615         (Include): Add getcwd.h.
73616         (Maintainer): Change from Jim Meyering to "all, glibc",
73617         since getdate now uses intended-for-glibc code.
73618         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
73619         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
73620
73621 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73622
73623         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
73624         HP's ANSI C compiler.
73625         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
73626         Declaring int functions causes warnings on some modern systems and
73627         shouldn't be needed to compile on ancient ones.
73628         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
73629         defined.
73630
73631         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
73632         with the following changes.
73633         (__set_errno): Parenthesize properly.
73634         Include <stdbool.h>.
73635         (MIN, MAX, MATCHING_INO): New macros.
73636         (__getcwd): Define with prototype, not K&R form.
73637         Use heuristics to allocate default buffer on stack if possible.
73638         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
73639         behavior, and to avoid the PATH_MAX limit when computing
73640         ../../../../...
73641         Use MATCHING_INO to compare inode number to file.
73642         Check for arithmetic overflow in size calculations.
73643         Fix bug in reallocation of dot array that caused getcwd to fail
73644         on directories nested deeper than 75.
73645         Be more careful about saving errno on error.
73646         Do not use realloc; use only free+malloc, as this is a bit
73647         more flexible and avoids a needless copy operation.
73648         Do not inspect st_dev and st_ino for symbolic links; POSIX
73649         doesn't specify the latter.
73650         Check for closedir errors.
73651         Avoid needless casts.
73652         Use "#ifdef weak_alias" around weak_alias, to be like other
73653         glibc code.
73654         The following changes to getcwd.c have effect only when used in
73655         gnulib; they have no effect inside glibc proper.
73656         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
73657         as alloca isn't used.
73658         (alloca, __alloca): Likewise.
73659         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
73660         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
73661         unconditionally, as gnulib assumes C89 or better.
73662         Do not include <sys/param.h>.
73663         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
73664         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
73665         better.
73666         (NULL) [!defined NULL]: Remove; we assume C89 or better.
73667         Include <dirent.h> in a way that is compatible with modern Autoconf.
73668         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
73669         New macros, if not already defined.
73670         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
73671         Use "_LIBC", not "defined _LIBC", for consistency.
73672         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
73673         a mempcpy module.
73674         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
73675         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
73676         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
73677         credit only to Jim Meyering and adjust the copyright dates.
73678         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
73679         <stdlib.h>, <unistd.h>, "pathmax.h".
73680         Instead, include "xgetcwd.h" (first) and "getcwd.h".
73681         (INITIAL_BUFFER_SIZE): Remove.
73682         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
73683
73684 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73685
73686         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
73687         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
73688         Use the _ONCE methods, for efficiency.
73689         Check for fcntl.h.  In test program, include <errno.h>
73690         and <fcntl.h> if available.  Remove old K&R cruft from
73691         test program.  Check for common errors in GNU/Linux,
73692         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
73693         don't do AC_LIBOBJ, as that's getcwd.m4's job.
73694         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
73695         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
73696         name accordingly.
73697         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
73698         accommodate new getcwd.c.
73699         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
73700         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
73701         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
73702         that's all we need now.
73703
73704 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73705
73706         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
73707         argp-parse.c depends on getopt internals, that means we should
73708         always use our getopt, to be on the safe side.
73709         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
73710         order not to spoil the result of an eventual previous invocation
73711         of gl_GETOPT_SUBSTITUTE.
73712
73713 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73714
73715         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
73716         redefinition warnings. To avoid them, include the defines
73717         in `#if !defined __need_getopt ... #endif'. The only place
73718         where __getopt_argv_const is used is in definitions
73719         of getopt_long and getopt_long_only below, which are as well
73720         protected by `#ifndef __need_getopt'.
73721         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
73722         __need_getopt after including <stdio.h> and <unistd.h> These
73723         headers might have defined it.
73724
73725 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
73726
73727         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
73728
73729 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
73730
73731         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
73732         (futimens): New function, which uses futimes if available.
73733         (futimens, utimens): Support timespec==NULL, with same semantics
73734         as utime and utimens.
73735         * lib/utimens.h (futimens): New decl.
73736
73737 2004-11-23  Jim Meyering  <jim@meyering.net>
73738
73739         * lib/getopt_.h: Remove trailing blanks.
73740
73741 2004-11-23  Jim Meyering  <jim@meyering.net>
73742
73743         * lib/__fpending.c: Add comment.
73744
73745 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
73746
73747         * modules/canonicalize (Depends-on): Add xreadlink.
73748         Problem reported by James Youngman.
73749
73750 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
73751
73752         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
73753         New macros.
73754         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
73755         optopt): Use them instead of invoking ## directly; otherwise, the
73756         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
73757
73758 2004-11-19  Bruno Haible  <bruno@clisp.org>
73759
73760         * lib/strtok_r.c: Move comments from here...
73761         * lib/strtok_r.h: ... to here.
73762
73763 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73764
73765         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
73766         implementations that mishandle size_t overflow.
73767
73768 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73769
73770         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
73771         might fail.  Problem reported by Yoann Vandoorselaere.
73772         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
73773         implementations that mishandle size_t overflow.
73774
73775 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73776
73777         * modules/canon-host (Depends-on): Add strdup.
73778
73779 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73780
73781         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
73782
73783 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73784
73785         * lib/canon-host.c: Include "strdup.h".
73786         (canon_host): Use getaddrinfo if available, so that IPv6 works.
73787         Use strdup instead of malloc/strcpy to duplicate strings.
73788
73789         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
73790         (human_space_before_unit): New constant.
73791         * lib/human.c (human_readable): Support it.
73792
73793         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
73794         (xgetcwd): Set errno correctly when failing.
73795         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
73796         the failure is actually due to a PATH_MAX problem.
73797
73798         Further getopt changes to make it more likely that glibc will
73799         buy the changes back.
73800         * lib/getopt.c (POSIXLY_CORRECT): New constant.
73801         (getopt): Use it, so to preserve glibc semantic
73802         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
73803         when compiling for libc.
73804         * lib/getopt_.h (__getopt_argv_const): Bring it back.
73805         (getopt_long, getopt_long_only): Use it.
73806
73807         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
73808         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
73809         (getopt): Argv is now char * const *, as per standard.
73810         (_getopt_internal_r, _getopt_internal): Argv is now char **,
73811         not char *__getopt_argv_const *.
73812         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
73813         _getopt_long_only_r): Likewise.
73814         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
73815         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
73816         _getopt_long_r, _getopt_long_only_r): Likewise.
73817         * lib/getopt_.h (__getopt_argv_const): Remove.
73818         (getopt): Argv is now char * const *, as per standard.
73819
73820         * lib/getdate.y (tORDINAL): New token.
73821         (day, relunit): Allow it for relative times.
73822         (relative_time_table): Use tORDINAL for ordinals.
73823
73824 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73825
73826         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
73827         Document that "second" isn't allowed as an ordinal number.
73828
73829 2004-11-16  Jim Meyering  <jim@meyering.net>
73830
73831         * modules/closeout (Depends-on): Add fpending.
73832
73833 2004-11-15  Jim Meyering  <jim@meyering.net>
73834
73835         * lib/closeout.c: Include "__fpending.h" once again.
73836         Include <stdbool.h>.
73837         (close_stdout): Don't fail just because stdout was closed initially,
73838         since some programs don't write to stdout in the normal course of
73839         operation (other than --version and --help), and we don't want this
73840         function to make e.g. `touch file >&-' fail.
73841         But do fail if it was closed and someone has tried to write to it.
73842         E.g., `printf foo >&-' must fail.
73843
73844 2004-11-13  Jim Meyering  <jim@meyering.net>
73845
73846         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
73847
73848 2004-11-12  Simon Josefsson  <jas@extundo.com>
73849
73850         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
73851         small doc fix is still pending.
73852
73853 2004-11-11  Simon Josefsson  <jas@extundo.com>
73854
73855         * modules/strtok_r: New file.
73856
73857         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73858         strtok_r.
73859
73860 2004-11-11  Simon Josefsson  <jas@extundo.com>
73861
73862         * m4/strtok_r.m4: New file.
73863
73864         * m4/getopt.m4: Replace opterr.
73865
73866 2004-11-11  Simon Josefsson  <jas@extundo.com>
73867
73868         * lib/strtok_r.h, strtok_r.c: New file.
73869
73870 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
73871
73872         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
73873         of replacing opterr, getopt, etc.  This should handle the
73874         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
73875
73876 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
73877
73878         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
73879         we can stop lying to compilers about the constness of argv when we
73880         are compiled outside glibc.
73881         (getopt, getopt_long, getopt_long_only): Use it.
73882         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
73883         _getopt_internal, getopt): Likewise.
73884         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
73885         _getopt_long_only_r): Likewise.
73886         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
73887         _getopt_long_r, _getopt_long_only_r): Likewise.
73888
73889         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
73890         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
73891         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
73892         the other external symbols.
73893         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
73894         declaration, since the above renaming now works around collisions.
73895
73896 2004-11-11  Jim Meyering  <jim@meyering.net>
73897
73898         * lib/linebreak.c: Remove trailing blanks.
73899         * lib/alloca_.h: Likewise.
73900         * lib/acosl.c: Likewise.
73901         * lib/euidaccess.c: Likewise.
73902         * lib/allocsa.h: Likewise.
73903
73904 2004-11-10  Simon Josefsson  <jas@extundo.com>
73905
73906         * m4/getaddrinfo.m4: New file.
73907
73908 2004-11-10  Simon Josefsson  <jas@extundo.com>
73909
73910         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
73911
73912 2004-11-10  Simon Josefsson  <jas@extundo.com>
73913
73914         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73915         getaddrinfo.
73916
73917         * modules/getaddrinfo: New file.
73918
73919 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73920
73921         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
73922
73923 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73924
73925         * lib/mktime.c (SHR): New macro, which is a portable
73926         substitute for >> that should work even on Crays.
73927         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
73928         Problem reported by Mark D. Baushke in
73929         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
73930         * lib/getdate.y (SHR): Likewise.
73931         (tm_diff): Use it.
73932         * lib/strftime.c (SHR): Likewise.
73933         (tm_diff): Use it.
73934         * lib/quotearg.c (struct quoting_options): Use unsigned int for
73935         quote_these_too, so that right shifts are well defined.  All uses
73936         changed.
73937
73938 2004-11-10  Jim Meyering  <jim@meyering.net>
73939
73940         Ensure that no close failure goes unreported.
73941         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
73942         return early when it seems there's nothing to flush.
73943         Don't include __fpending.h.
73944
73945 2004-11-10  Jim Meyering  <jim@meyering.net>
73946
73947         * modules/closeout (Depends-on): Remove fpending.
73948
73949 2004-11-10  Jim Meyering  <jim@meyering.net>
73950
73951         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
73952
73953 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73954
73955         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
73956         gl_FUNC_STRFTIME.
73957         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
73958         and AC_REQUIRE when possible, to avoid duplicate checks.
73959         Check for <wchar.h>.
73960
73961 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73962
73963         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
73964
73965 2004-11-09  Bruno Haible  <bruno@clisp.org>
73966
73967         * m4/sockpfaf.m4: New file.
73968
73969 2004-11-05  Bruno Haible  <bruno@clisp.org>
73970
73971         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
73972         Reported by Mark D. Baushke <mdb@cvshome.org>.
73973
73974 2004-11-04  Bruno Haible  <bruno@clisp.org>
73975
73976         2004-09-11  Bruno Haible  <bruno@clisp.org>
73977                 * allocsa.valgrind: New file.
73978         2004-02-06  Bruno Haible  <bruno@clisp.org>
73979                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
73980                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
73981                 Reported by Christopher Seip <chris.seip@hp.com>.
73982
73983 2004-11-04  Bruno Haible  <bruno@clisp.org>
73984
73985         * modules/allocsa (Files): Add lib/allocsa.valgrind.
73986         (Makefile.am): Distribute it.
73987
73988 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
73989
73990         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
73991         with errno == ERANGE if the buffer is too small.
73992         Problem reported by Mark D. Baushke.
73993
73994 2004-11-03  Albert Chin  <china@thewrittenword.com>
73995             Paul Eggert  <eggert@cs.ucla.edu>
73996
73997         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
73998         equivalent, substitute $ac_type for equivalent type rather than
73999         blindly using uint32_t *always* which won't work if uint32_t is not
74000         available.  Define _UINT32_T to work around typedef of uint32_t if
74001         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
74002         2.5.1.
74003
74004 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
74005
74006         * m4/jm-macros.m4: Sync from coreutils.
74007         (gl_MACROS): Check for mbrlen, for pathchk.
74008         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
74009
74010 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
74011
74012         * lib/xreadlink.c (MAXSIZE): New macro.
74013         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
74014         size does not exceed MAXSIZE.  Avoid cast.
74015         As suggested by Mark D. Baushke in
74016         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
74017         if readlink fails with buffer size just under MAXSIZE, try again
74018         with MAXSIZE.
74019
74020 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
74021
74022         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
74023
74024 2004-11-02  Derek R. Price  <derek@ximbiot.com>
74025         and  Paul Eggert  <eggert@cs.ucla.edu>
74026
74027         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
74028         (get_date): Overparenthesize to avoid GCC warning.
74029
74030 2004-11-02  Bruno Haible  <bruno@clisp.org>
74031
74032         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
74033         returns void.
74034
74035 2004-11-02  Bruno Haible  <bruno@clisp.org>
74036
74037         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
74038         function returns void.
74039
74040 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
74041
74042         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
74043         fflush_unlocked, flockfile, funlockfile, funlockfile,
74044         fputs_unlocked, putc_unlocked.
74045
74046 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
74047
74048         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
74049         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
74050         already declared.
74051
74052 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
74053
74054         * modules/getdate (Files): Add doc/getdate.texi.
74055         (Depends-on): Add setenv, xalloc.
74056
74057 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
74058
74059         * lib/getdate.y: Add support for TZ="foo" within a date string.
74060         Fix some bugs near time_t boundaries.  Reject dates with
74061         out-of-range components, e.g., "Sept 31".
74062         Include <stdlib.h>, "setenv.h", "xalloc.h".
74063         (ISDIGIT_LOCALE): Remove; unused.
74064         Note that the TZ and time functions used here are not reentrant.
74065         (mktime_ok, get_tz): New functions.
74066         (TZBUFSIZE): New constant.
74067         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
74068         This requires that we sometimes generate our own TZ="XXX..." setting.
74069
74070 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
74071
74072         * doc/getdate.texi: New file, from coreutils with modifications for
74073         the new TZ parsing.
74074
74075 2004-10-27  Derek R. Price  <derek@ximbiot.com>
74076
74077         * lib/mktime.c (not_equal_tm): Remove redundant check.
74078
74079 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74080
74081         * modules/regex (lib_SOURCES): Add regex.c.
74082         Reported by James Youngman in
74083         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
74084
74085 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74086
74087         * lib/getdate.y: Use Bison 1.875 features, and some minor
74088         code cleanups.  This change does not affect semantics.
74089         Don't include <stdlib.h>; no longer needed.
74090         Don't include unlocked-io.h; only the "#if TEST" code uses
74091         stdio, and performance isn't crucial there.
74092         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
74093         Bison 1.875 features as described below.
74094         All uses of "PC." replaced by "pc->".
74095         (YYSTYPE): Add a forward declaration.
74096         (yylex, yyerror): Use full prototypes in forward decls.
74097         Use "%pure-parser" rather than obsolescent "%pure_parser".
74098         Use %parse-param and %lex-param instead of obsolescent
74099         YYPARSE_PARAM and YYLEX_PARAM.
74100         (meridian_table, month_and_day_table, time_units_table,
74101         relative_time_table, time_zone_table, military_table,
74102         lookup_zone, lookup_word, get_date):
74103         Use NULL instead of 0 where appropriate.
74104         (to_hour): Avoid abort (), to avoid a dependency on
74105         stdlib.h.
74106         (yyerror, yylex): Now accepts parser_control * arg.
74107         (main) [TEST]: Use '\0' rather than 0 for char.
74108
74109 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
74110
74111         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
74112
74113 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
74114
74115         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
74116         It's now the caller's responsibility to handle the case where
74117         !HAVE_GETPAGESIZE && !defined getpagesize.
74118
74119         * lib/mktime.c (leapyear): Arg is long int, not int.
74120
74121 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
74122
74123         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
74124
74125 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
74126
74127         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
74128         missing.  Problem reported by James Youngman.
74129
74130 2004-10-16  Simon Josefsson  <jas@extundo.com>
74131
74132         * gnulib-tool: Fix comments.  Fix parse problem.
74133         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
74134
74135 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
74136
74137         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
74138         implementation of getopt_long.  Problem reported by Alexander Taler in:
74139         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
74140
74141 2004-10-15  Bruno Haible  <bruno@clisp.org>
74142
74143         * gnulib-tool: Untabify. Initialize supplied_libname.
74144         (func_usage): More homogenous output.
74145         (func_modules_transitive_closure, func_modules_to_filelist,
74146         func_emit_lib_Makefile_am): New functions.
74147         (func_import): New function, extracted from big case statement. Use
74148         func_get_license, func_modules_transitive_closure,
74149         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
74150         opt_lgpl. Don't use test -a, as it's not portable.
74151         (func_create_testdir): Use func_modules_transitive_closure,
74152         func_modules_to_filelist, func_emit_lib_Makefile_am.
74153
74154 2004-10-15  Bruno Haible  <bruno@clisp.org>
74155
74156         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
74157
74158 2004-10-15  Bruno Haible  <bruno@clisp.org>
74159
74160         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
74161         the portions belonging to each module.
74162         Suggested by Derek Robert Price <derek@ximbiot.com>.
74163
74164 2004-10-12  Simon Josefsson  <jas@extundo.com>
74165
74166         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
74167         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
74168         to real functions.
74169
74170 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74171
74172         * modules/vsnprintf: New file.
74173
74174 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74175
74176         * m4/vsnprintf.m4: New file.
74177
74178 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74179
74180         * lib/vsnprintf.h: New file.
74181         * lib/vsnprintf.c: New file.
74182
74183 2004-10-11  Bruno Haible  <bruno@clisp.org>
74184
74185         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
74186         vsnprintf.
74187
74188 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74189
74190         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
74191
74192 2004-10-07  Bruno Haible  <bruno@clisp.org>
74193
74194         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
74195         fits into the provided buffer.
74196
74197 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74198
74199         * lib/diacrit.c, diacrit.h: Add GPL notice.
74200
74201         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
74202         notice.
74203         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
74204         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
74205         This avoids a potential constant-folding bug.
74206
74207 2004-10-05  Bruno Haible  <bruno@clisp.org>
74208
74209         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
74210         for the declaration of strsep.
74211
74212 2004-10-05  Bruno Haible  <bruno@clisp.org>
74213
74214         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
74215
74216 2004-10-04  Simon Josefsson  <jas@extundo.com>
74217
74218         * modules/memmem: New file.
74219         * tests/test-memmem.c: New file.
74220         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
74221
74222 2004-10-04  Simon Josefsson  <jas@extundo.com>
74223
74224         * m4/memmem.m4: New file.
74225
74226 2004-10-04  Simon Josefsson  <jas@extundo.com>
74227
74228         * lib/memmem.h: New file.
74229         * lib/memmem.c: New file, taken from glibc.
74230
74231 2004-10-04  Simon Josefsson  <jas@extundo.com>
74232
74233         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
74234         '#ifdef USE_UNLOCKED_IO'.
74235
74236 2004-10-04  Simon Josefsson  <jas@extundo.com>
74237
74238         * config/srclist.txt: Add memmem from glibc.
74239
74240 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
74241
74242         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
74243
74244         * modules/argmatch, modules/argp, modules/closeout, modules/error,
74245         modules/exclude, modules/getdate, modules/getline,
74246         modules/getndelim2, modules/getpass, modules/getpass-gnu,
74247         modules/getusershell, modules/linebuffer, modules/md5,
74248         modules/mountlist, modules/posixtm, modules/readtokens,
74249         modules/readutmp, modules/regex, modules/sha1,
74250         modules/version-etc, modules/yesno:
74251         Remove dependency on unlocked-io.
74252
74253 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
74254
74255         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
74256
74257         * m4/unlocked-io.m4: Add copyright notice.
74258         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
74259
74260 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
74261
74262         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
74263         * lib/xmalloc.c (xmemdup): Likewise.
74264         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
74265         XFREE): Remove these long-obsolescent macros.
74266         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
74267         * lib/xstrdup.c: Remove.
74268
74269         * lib/regex.c (re_comp): Cast gettext return value to char *,
74270         Problem reported by Martin Neitzel via Mark D. Baushke.
74271
74272 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
74273
74274         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
74275         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
74276         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
74277         regex.c, sha1.c, version-etc.c, yesno.c:
74278         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
74279         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
74280         the includer's responsibility.
74281
74282         Sync from coreutils.
74283
74284         * lib/modechange.c (mode_compile): Don't decrement a pointer that
74285         points to the start of a string, as the C Standard says the
74286         resulting behavior is undefined.
74287
74288         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
74289         simple -> simple_backups, numbered_existing ->
74290         numbered_existing_backups, numbered -> numbered_backups
74291         to avoid shadowing problems.  All uses changed.
74292         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
74293         * lib/backupfile.c (check_extension, numbered_backup):
74294         Rename locals to avoid shadowing 'basename'.
74295         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
74296         once.
74297
74298         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
74299         * lib/.cvsignore: Add getopt.h.
74300
74301 2004-10-04  Bruno Haible  <bruno@clisp.org>
74302
74303         * modules/README: New file.
74304         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
74305         not a module.
74306
74307 2004-10-02  Jim Meyering  <jim@meyering.net>
74308
74309         * lib/dirfd.h, getpagesize.h: Add copyright notice.
74310
74311 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74312
74313         * modules/strsep: New file.
74314
74315 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74316
74317         * m4/strsep.m4: New file.
74318
74319 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74320
74321         * lib/strsep.h: New file.
74322         * lib/strsep.c: New file.
74323
74324 2004-10-01  Simon Josefsson  <jas@extundo.com>
74325
74326         * lib/snprintf.c (snprintf): Handle size==0.
74327
74328 2004-10-01  Simon Josefsson  <jas@extundo.com>
74329             Bruno Haible  <bruno@clisp.org>
74330
74331         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
74332         (snprintf): Declare 'args'.
74333
74334 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
74335
74336         * lib/snprintf.c: Remove comments as to why each header is needed.
74337
74338 2004-10-01  Bruno Haible  <bruno@clisp.org>
74339
74340         * MODULES.html.sh: Add strsep.
74341
74342 2004-09-30  Simon Josefsson  <jas@extundo.com>
74343
74344         * modules/snprintf: New file.
74345
74346 2004-09-30  Simon Josefsson  <jas@extundo.com>
74347
74348         * m4/snprintf.m4: New file.
74349
74350 2004-09-30  Simon Josefsson  <jas@extundo.com>
74351
74352         * lib/snprintf.h, lib/snprintf.c: New files.
74353
74354 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74355
74356         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
74357         (hol_entry_help): Never translate an empty string.
74358         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
74359         * lib/argp.h (OPTION_NO_TRANS): New option.
74360
74361 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
74362
74363         * modules/argp (Maintainer): Replace Simon Josefsson
74364         by Sergey Poznyakoff.
74365
74366 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
74367
74368         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
74369         changes merged back into glibc.
74370
74371 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
74372
74373         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
74374
74375 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
74376
74377         * lib/xvasprintf.c: Include xalloc.h.
74378         (xvasprintf): Use xalloc_die, not xmalloc_die.
74379
74380 2004-09-29  Bruno Haible  <bruno@clisp.org>
74381
74382         * modules/alloca-opt: New file, derived from modules/alloca.
74383         * modules/allocsa: Depend on alloca-opt instead of alloca.
74384         * modules/setenv: Likewise.
74385         * modules/vasnprintf: Likewise.
74386         * MODULES.html.sh: Add alloca-opt.
74387
74388 2004-09-28  Simon Josefsson  <jas@extundo.com>
74389
74390         * gnulib-tool: New parameter --lgpl, to asseert that modules are
74391         LGPL, and to replace license template from GPL to LGPL.
74392
74393 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
74394
74395         * modules/dummy: Change license to LGPL.
74396
74397 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
74398
74399         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
74400
74401 2004-09-24  Simon Josefsson  <jas@extundo.com>
74402
74403         * modules/minmax (License): Change from GPL to LGPL.
74404
74405 2004-09-23  Simon Josefsson  <jas@extundo.com>
74406
74407         * gnulib-tool (--import): Typo.
74408
74409 2004-09-23  Simon Josefsson  <jas@extundo.com>
74410
74411         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
74412
74413 2004-09-22  Bruno Haible  <bruno@clisp.org>
74414
74415         * modules/*: Add 'License' field.
74416         * gnulib-tool: Accept --extract-license option.
74417         (func_get_license): New function.
74418
74419 2004-09-21  Bruno Haible  <bruno@clisp.org>
74420
74421         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
74422         Reported by Simon Josefsson.
74423
74424 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
74425
74426         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
74427         gl_AC_TYPE_LONG_LONG.
74428
74429 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
74430
74431         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
74432
74433 2004-09-18  Simon Josefsson  <jas@extundo.com>
74434         and  Paul Eggert  <eggert@cs.ucla.edu>
74435
74436         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
74437         calls with autoreconf.  Define GL_LIB.
74438
74439 2004-09-14  Karl Berry  <karl@gnu.org>
74440
74441         * config/srclist.txt: unsync setenv.c, sigh.
74442
74443 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74444
74445         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
74446         Problem reported by Bruno Haible in:
74447         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
74448
74449 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74450
74451         * config/srclist.txt: Comment out argp-pvh.c.
74452
74453 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
74454
74455         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
74456         in case some system header has #define'd it.  Problem reported by
74457         Soeren D. Schulze in
74458         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
74459
74460 2004-09-09  Karl Berry  <karl@gnu.org>
74461
74462         * regex.[ch]: delete from the root.  These were supposed to be
74463                 synced with emacs cvs, but this has not happened for about
74464                 a year, and anyway nothing else uses emacs regex.[ch].
74465                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
74466                 lib/regex[.ch] is untouched.
74467
74468 2004-09-09  Bruno Haible  <bruno@clisp.org>
74469
74470         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
74471
74472 2004-09-09  Bruno Haible  <bruno@clisp.org>
74473
74474         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
74475         modifications.
74476         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
74477
74478 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
74479
74480         * modules/xvasprintf: New file.
74481         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
74482
74483 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
74484
74485         * lib/xvasprintf.h: New file.
74486         * lib/xvasprintf.c: New file.
74487         * lib/xasprintf.c: New file.
74488
74489 2004-09-08  Bruno Haible  <bruno@clisp.org>
74490
74491         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
74492
74493 2004-09-08  Bruno Haible  <bruno@clisp.org>
74494
74495         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
74496         length is > INT_MAX.
74497         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
74498         more.
74499
74500 2004-09-08  Bruno Haible  <bruno@clisp.org>
74501
74502         * lib/stdint_.h: New file, taken from GNU clisp.
74503
74504 2004-09-08  Bruno Haible  <bruno@clisp.org>
74505             Oskar Liljeblad  <oskar@osk.mine.nu>
74506
74507         * modules/stdint: New file.
74508         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
74509
74510 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74511
74512         Import from coreutils.
74513         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
74514         strings on unbounded length.  alloca's performance benefits aren't
74515         that important here.
74516         (V_STRDUP): Remove.
74517         (parse_with_separator): New function, with most of the internals
74518         of the old parse_user_spec.  Allow user to omit both user and group,
74519         for compatibility with FreeBSD.
74520         Clone only the user name, not the entire spec.
74521         Do not set *uid, *gid unless entirely successful.
74522         Avoid memory leak in some failing cases.
74523         Fix regression for USER.GROUP reported by Dmitry V. Levin in
74524         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
74525         (parse_user_spec): Rewrite to use parse_with_separator.
74526
74527 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74528
74529         * modules/userspec: Don't depend on alloca.
74530
74531 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74532
74533         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
74534
74535 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74536
74537         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
74538         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
74539         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
74540
74541 2004-08-16  Simon Josefsson  <jas@extundo.com>
74542
74543         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
74544         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
74545         Add --dry-run for --import.
74546         Let user provided command line parameters override configure.ac
74547         settings.
74548
74549 2004-08-12  Simon Josefsson  <jas@extundo.com>
74550
74551         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
74552         as discussed with Paul Eggert in threads rooted at
74553         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
74554         and
74555         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
74556         Before, the test was empty, and relied on ELIDE_CODE in source
74557         code.)
74558         (gl_PREREQ_GETOPT): New macro.
74559         (gl_GETOPT): Use them.
74560
74561 2004-08-12  Simon Josefsson  <jas@extundo.com>
74562
74563         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
74564         * lib/getopt_.h: Renamed from getopt.h.
74565
74566 2004-08-12  Simon Josefsson  <jas@extundo.com>
74567
74568         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
74569         Change default library name from libfoo to libgnu.
74570         Now, if you have a configure.ac that says:
74571                 gl_SOURCE_BASE(gl)
74572                 gl_M4_BASE(gl/m4)
74573                 gl_MODULES(error getopt etcetera)
74574                 gl_INIT
74575         you can import all you need by running:
74576                 ../gnulib/gnulib-tool --import
74577
74578         * modules/getopt (Files): Rename getopt.h to getopt_.h.
74579         (Makefile.am): Rewrite, use logic from argz.
74580         (Include): Use <getopt.h> instead of "getopt.h".
74581
74582 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74583
74584         * modules/argp (Files): Add m4/unlocked-io.m4.
74585         (Depends-on): Add extensions.
74586
74587 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74588
74589         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
74590         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
74591         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
74592         Check for program_invocation_name, program_invocation_short_name,
74593         flockfile, funlockfile, features.h, _getopt_long_only_r.
74594
74595 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74596
74597         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
74598         its complicated substitute.
74599         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
74600         and program_invocation_name.
74601         (__argp_basename) [!_LIBC]: Remove; the only use was
74602         replaced by its body.
74603         (__argp_short_program_name): Change condition from
74604         !defined __argp_short_program_name to
74605         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
74606         to match argp-namefrob.h.
74607         (__argp_failure): Don't assume strerror_r returns char *.
74608         * lib/argp-parse.c (N_): Define unconditionally.
74609         (argp_default_options): Fill out initializers with 0 to avoid
74610         gcc warnings.
74611
74612 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74613
74614         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
74615         getopt1.c.
74616
74617 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74618
74619         Merge from coreutils.
74620
74621         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
74622
74623         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
74624         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
74625
74626 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74627
74628         Merge from coreutils.
74629
74630         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
74631         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
74632         for Reliant Unix 5.43.
74633
74634         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
74635         (union fooround): Use uintmax_t, not long int.
74636         The rest is a merge from libc:
74637         [defined _LIBC]: Include <shlib-compat.h>.
74638         (_obstack) [defined _LIBC]: Remove after 2.3.4.
74639
74640         * lib/settime.c (settime): Recode to avoid warning with
74641         Sun Forte C 6U2.
74642
74643         * lib/strverscmp.c: Convert to UTF-8.
74644
74645 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74646
74647         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
74648         m4/uintmax_t.m4.
74649
74650 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74651
74652         * modules/xalloc-die: New file.
74653         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
74654
74655         * modules/md5 (Files): Add m4/uint32_t.m4.
74656         * modules/sha1: Renamed from modules/sha.
74657         (Files):
74658         Rename lib/sha.h to lib/sha1.h.
74659         Rename lib/sha.c to lib/sha1.c.
74660         Rename m4/sha.m4 to m4/sha1.m4.
74661         (lib_SOURCES): Likewise.
74662         (configure.ac): Rename gl_SHA to gl_SHA1.
74663         (Include): sha.h -> sha1.h.
74664
74665 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74666
74667         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
74668         * m4/sha1.m4: Renamed from sha.m4.
74669         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
74670
74671 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74672
74673         * lib/obstack.h (obstack_empty_p):
74674         Don't assume that chunk->contents is suitably aligned.
74675         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
74676         Likewise. Problem reported by Benno in
74677         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
74678
74679         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
74680         readable.  This could be improved further but it'd take some work.
74681
74682 2004-08-08  Simon Josefsson  <jas@extundo.com>
74683
74684         * modules/xgethostname (Depends-on): Remove exit and error (not
74685         used).
74686
74687         * modules/getpass-gnu: Add getpass.h.
74688         (Depends-on): Add stdbool.
74689         * modules/getpass: Add getpass.h.
74690
74691 2004-08-08  Simon Josefsson  <jas@extundo.com>
74692
74693         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
74694         Check getpass declaration.
74695
74696 2004-08-08  Simon Josefsson  <jas@extundo.com>
74697
74698         * lib/xgethostname.c: Don't include error.h (not used).
74699
74700         * lib/getpass.h: Add.
74701         * lib/getpass.c: Include getpass.h first.
74702
74703 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
74704
74705         * lib/xalloc-die.c: New file.
74706         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
74707         All uses removed.
74708         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
74709         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
74710         xalloc-die.c.
74711         (_, N_, xalloc_die): Move to xalloc-die.c.
74712         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
74713         so that we needn't mess with xalloc_msg_memory_exhausted.
74714
74715         * lib/sha1.h: Renamed from sha.h.
74716         (SHA1_H): Renamed from _SHA_H.
74717         (sha1_ctx): Renamed from sha_ctx.
74718         (sha1_init_ctx): Renamed from sha_init_ctx.
74719         (sha1_process_block): Renamed from sha_process_block.
74720         (sha1_process_bytes): Renamed from sha_process_bytes.
74721         (sha1_finish_ctx): Renamed from sha_finish_ctx.
74722         (sha1_read_ctx): Renamed from sha_read_ctx.
74723         (sha1_stream): Renamed from sha_stream.
74724         (sha1_buffer): Renamed from sha_buffer.
74725         * lib/sha1.c: Likewise; renamed from sha.c.
74726         Do not include <sys/types.h>.
74727         Include <stddef.h> rather than <stdlib.h>.
74728
74729 2004-08-08  Bruno Haible  <bruno@clisp.org>
74730
74731         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
74732         FILESYSTEM_PREFIX_LEN.
74733         * lib/progreloc.c: Likewise.
74734         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
74735
74736 2004-08-06  Simon Josefsson  <jas@extundo.com>
74737
74738         * modules/progname (Depends-on): Don't depend on stdbool.
74739
74740 2004-08-06  Simon Josefsson  <jas@extundo.com>
74741
74742         * modules/getsubopt: New file.
74743         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74744         getsubopt.
74745
74746 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74747
74748         More merge from coreutils.
74749
74750         * m4/utimens.m4, m4/utimecmp.m4: New files.
74751         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
74752         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
74753         prereq.m4, sha.m4: Import changes from coreutils.
74754
74755 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74756
74757         More merge from coreutils.
74758         * modules/raise, modules/readtokens0, modules/utimens:
74759         * modules/utimecmp, module/xnanosleep: New files.
74760         * modules/strftime: Add lib/strftime.h.
74761         Change include from <time.h> to "strftime.h".
74762         * modules/yesno: Add lib/yesno.h.
74763         * modules/backupfile: Remove lib/addext.c.
74764         * modules/euidaccess: Add stat-macros.h.
74765         * modules/canonicalize, modules/euidaccess,
74766         modules/filemode, modules/lchown, modules/makepath,
74767         modules/rmdir, modules/stat: Likewise.
74768
74769 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74770
74771         Merge from tar.
74772         * lib/argp-help.c (make_hol, hol_append): Don't assume that
74773         SIZE_MAX is a valid preprocessor constant.
74774         (__argp_basename): Change from "#ifndef _LIBC"
74775         to "#ifndef __argp_short_program_name", so that
74776         we don't compile these functions for tar.
74777
74778         More merges from coreutils.
74779         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
74780         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
74781         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
74782         * lib/addext.c: Remove; no longer needed.
74783         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
74784         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
74785         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
74786         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
74787         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
74788         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
74789         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
74790         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
74791         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
74792         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
74793         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
74794         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
74795         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
74796         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
74797         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
74798         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
74799         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
74800         Import changes from coreutils.
74801
74802 2004-08-05  Simon Josefsson  <jas@extundo.com>
74803
74804         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
74805
74806 2004-08-05  Simon Josefsson  <jas@extundo.com>
74807
74808         * m4/getsubopt.m4: New file.
74809
74810 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74811
74812         Merge from coreutils.
74813
74814         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
74815         * m4/getcwd-path-max.m4: New files.
74816
74817         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
74818         FILESYSTEM_PREFIX_LEN ->
74819         FILE_SYSTEM_PREFIX_LEN.
74820         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
74821         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
74822         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
74823         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
74824
74825         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
74826         prerequisite modules now handle the DOS stuff.
74827         Don't check for unistd.h.
74828
74829 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74830
74831         Merge from coreutils.
74832
74833         * lib/.gdb-history: Remove; this doesn't belong here.
74834
74835         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
74836         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
74837         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
74838         * lib/getcwd.c: New files.
74839
74840         * lib/dirname.h: Include <stdbool.h>.
74841         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
74842         for consistency with POSIX terminology.  All uses changed.
74843         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
74844         (strip_trailing_slashes): Use bool for booleans.
74845         * lib/stripslash.c (strip_trailing_slashes): Likewise.
74846
74847         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
74848         sometimes returns a positive errno value even when it succeeds.
74849         (print_errno_message) [!LIBC]: Fall back on strerror if
74850         __strerror_r fails.
74851
74852         * lib/path-concat.c (mempcpy): Don't define if a system header defines
74853         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
74854         (longest_relative_suffix): New function.
74855         (path_concat): Use it.  Assume first argument is not NULL.
74856         Port to DOS.  Omit redundant separators.
74857         Report an error instead of returning NULL.
74858         Use mempcpy instead of memcpy.
74859         (xpath_concat): Remove: not declared or used.
74860
74861         * lib/same.h: Include <stdbool.h>
74862         (same_name): Return bool, not int.
74863         * lib/same.c (same_name): Likewise.
74864         (errno): Don't declare; we assume C89 or better now.
74865
74866         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
74867         if not already defined.
74868
74869         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
74870         * lib/dup-safer.c (errno): Likewise.
74871
74872 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74873
74874         Merge from coreutils.
74875         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
74876         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
74877         * modules/path-concat: Don't depend on strdup.
74878
74879 2004-08-03  Simon Josefsson  <jas@extundo.com>
74880
74881         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
74882         * lib/progname.h: Don't include stdbool.h.
74883
74884 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74885
74886         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
74887         * MODULES.html.sh (func_all_modules): Remove fatal.
74888
74889 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74890
74891         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
74892
74893 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74894
74895         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
74896         working.
74897
74898 2004-08-02  Simon Josefsson  <jas@extundo.com>
74899
74900         * lib/getsubopt.h: New file, with comments from Bruno Haible.
74901         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
74902         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
74903
74904 2004-08-01  Simon Josefsson  <jas@extundo.com>
74905
74906         * lib/xgetdomainname.c: Include stdlib.h, for free().
74907
74908 2004-07-19  Bruno Haible  <bruno@clisp.org>
74909
74910         * MODULES.html.sh (func_all_modules): Add dummy.
74911
74912 2004-07-16  Simon Josefsson  <jas@extundo.com>
74913
74914         * modules/dummy: New file.
74915
74916 2004-07-16  Simon Josefsson  <jas@extundo.com>
74917
74918         * lib/dummy.c: New file.
74919
74920 2004-07-16  Bruno Haible  <bruno@clisp.org>
74921
74922         * lib/backupfile.h: Add extern "C" for C++.
74923         * lib/closeout.h: Likewise.
74924         * lib/copy-file.h: Likewise.
74925         * lib/findprog.h: Likewise.
74926         * lib/full-write.h: Likewise.
74927         * lib/pathname.h: Likewise.
74928         * lib/progname.h: Likewise.
74929         * lib/stpcpy.h: Likewise.
74930         * lib/stpncpy.h: Likewise.
74931         * lib/strcase.h: Likewise.
74932         * lib/strstr.h: Likewise.
74933         * lib/xalloc.h: Likewise.
74934
74935         * lib/mbswidth.h: Add extern "C" for C++.
74936         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
74937
74938 2004-07-13  Robert Millan  <robertmh@gnu.org>
74939
74940         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
74941
74942 2004-07-09  Simon Josefsson  <jas@extundo.com>
74943
74944         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
74945         failed without this.)
74946
74947 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74948
74949         * modules/chown (Files): Add lib/fchown-stub.c, since
74950         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
74951
74952 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74953
74954         * lib/fchown-stub.c: New file.
74955
74956 2004-06-24  Jim Meyering  <jim@meyering.net>
74957
74958         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
74959
74960 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74961
74962         * modules/argz: Omit "#include".
74963
74964         * MODULES.html.sh (func_all_modules): Add calloc, to match
74965         2004-06-01 addition of calloc module.
74966
74967 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74968
74969         * m4/argz.m4: New file, which is autoupdated from libtool.
74970
74971 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74972
74973         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
74974         libtool.
74975
74976 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74977
74978         * config/srclist-update: Don't insist on "USA." before the
74979         close-comment, as libtool omits the period and puts the */ on a
74980         separate line.
74981         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
74982         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
74983
74984 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
74985
74986         * modules/argz: New file.
74987         * MODULES.html.sh (func_all_modules): Add argz.
74988
74989 2004-06-12  Jim Meyering  <jim@meyering.net>
74990         and  Paul Eggert  <eggert@cs.ucla.edu>
74991
74992         * modules/hash (Files): Add lib/xalloc.h.
74993         * modules/pipe (Depends-on): Add wait-process.
74994         * modules/stat (Depends-on): Add xalloc.
74995         * modules/userspec (Files): Add lib/userspec.h.
74996         * modules/xstrto
74997
74998         Upgrade from gettext-0.13.
74999         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
75000         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
75001         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
75002
75003 2004-06-10  Jim Meyering  <jim@meyering.net>
75004
75005         * lib/calloc.c: New file.
75006
75007 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
75008
75009         * lib/getdate.y (yylex): Allow space between sign and number.
75010         Problem reported by Dan Jacobson.
75011
75012 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
75013
75014         Merge from coreutils CVS.
75015
75016         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
75017         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
75018         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
75019         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
75020         xstrtol.m4: Fix copyright date and/or serial number.
75021
75022         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
75023         See if we need an fchown replacement.
75024         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
75025         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
75026         and use the replacement function if we detect either defect.
75027
75028         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
75029         gl_UTIMECMP.
75030
75031 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
75032         and  Jim Meyering  <jim@meyering.net>
75033
75034         Merge from coreutils CVS.
75035
75036         * lib/stat-macros.h: New file, with contents from file-type.h
75037         and coreutils' system.h.
75038         * lib/file-type.c: Include "stat-macros.h".
75039         * lib/file-type.h (file_type): Move all macro definitions to new file,
75040         stat-macros.h.
75041
75042         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
75043         Wrap old code with this conditional.
75044         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
75045         function that does not dereference symlinks.
75046         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
75047
75048         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
75049         dependency problems.
75050         (xreadlink): Accept new arg SIZE, for efficiency.
75051         All decls and uses changed.
75052         * lib/xreadlink.h: Include <stddef.h>, for size_t.
75053
75054         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
75055         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
75056
75057         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
75058         sysexits.h.
75059
75060 2004-06-01  Jim Meyering  <jim@meyering.net>
75061
75062         * m4/calloc.m4: New file.
75063
75064 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
75065
75066         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
75067         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
75068         Also, fix a typo in a diagnostic.
75069
75070 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
75071
75072         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
75073         or AC_FUNC_REALLOC.
75074
75075 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
75076
75077         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
75078         macros to be defined.
75079         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
75080         the allocator returns NULL because the requested size is zero.
75081
75082 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75083
75084         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
75085         var.  Add comment explaining why libc still defines it.  This
75086         merges the following patch from glibc:
75087         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
75088
75089 2004-05-20  Andreas Schwab  <schwab@suse.de>
75090
75091         * m4/free.m4: Replace free if it not known to work, not the other
75092         way round.
75093
75094 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
75095
75096         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
75097         present in glibc since revision 1.1 of this file.
75098         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
75099         obstack_alignment_mask, obstack_alloc, obstack_base,
75100         obstack_blank, obstack_blank_fast, obstack_chunk_size,
75101         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
75102         obstack_grow0, obstack_init, obstack_int_grow,
75103         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
75104         obstack_next_free, obstack_object_size, obstack_ptr_grow,
75105         obstack_ptr_grow_fast, obstack_room): Remove declarations of
75106         nonexistent functions.
75107
75108 2004-05-18  Karl Berry  <karl@gnu.org>
75109
75110         * config/srclist.txt: break link for vasnprintf.c.
75111
75112 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
75113
75114         Port obstack to the AS/400, where pointers are 16 bytes wide and
75115         you cannot cast an integer to a valid pointer.  This patch is
75116         currently waiting to be integrated into glibc; see
75117         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
75118
75119         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
75120         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
75121         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
75122         (struct obstack): temp member is now a union of a pointer and
75123         an integer, instead of an integer.  All integer uses changed.
75124         This does not affect the physical layout of struct obstack,
75125         except on hosts (like the AS/400) where the size or alignment of
75126         void * is greater than that of ptrdiff_t.
75127         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
75128         __STDC__)]: Store temporary in pointer member of union, not
75129         integer member.
75130         * lib/obstack.c: Include <stddef.h>, for offsetof.
75131         (struct fooalign): Remove; it doesn't need a name.
75132         (union fooround): Change double to long double, and add void *.
75133         (DEFAULT_ALIGNMENT): Use offsetof to compute.
75134         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
75135         not a macro.  Hence the values are always int; so remove all
75136         casts-to-int in uses.
75137
75138 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
75139
75140         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
75141         we can get this patch merged into glibc.
75142
75143 2004-05-17  Derek R. Price  <derek@ximbiot.com>
75144             Paul Eggert  <eggert@cs.ucla.edu>
75145
75146         * m4/argp: Depend on alloca.
75147
75148 2004-05-17  Derek R. Price  <derek@ximbiot.com>
75149             Paul Eggert  <eggert@cs.ucla.edu>
75150
75151         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
75152         freecoding.
75153
75154 2004-05-17  Bruno Haible  <bruno@clisp.org>
75155
75156         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
75157         precision that consists of a '.' followed by an empty digit string.
75158         Patch by Tor Lillqvist <tml@iki.fi>.
75159
75160 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
75161
75162         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
75163         for backward compatibility with older code.  We need our own
75164         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
75165         it under some other name, and our alloca.h will define it.
75166
75167 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
75168             Derek Price  <derek@ximbiot.com>
75169
75170         * lib/alloca.c: Include <alloca.h>, to get our interface.
75171         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
75172         include <alloca.h> first.  Use C89 prototype for alloca; this
75173         requires including <stddef.h> for size_t.  Use extern "C" if C++.
75174         Use #elif for simplicity, since we can assume C89 now.
75175         Don't try to source the system alloca.h since it will not be found
75176         and to prevent recursively including its replacement.
75177         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
75178         * lib/regex.c: Likewise.
75179
75180 2004-05-16  Derek Price  <derek@ximbiot.com>
75181             Paul Eggert  <eggert@cs.ucla.edu>
75182
75183         getline cleanup.  This changes the getndelim2 API: both order of
75184         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
75185         no delimiter).
75186
75187         * lib/getline.c: Don't include stddef.h or stdio.h, since our
75188         interface does that.
75189         (getline): Always use getdelim, so that we don't have two
75190         copies of this code.
75191         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
75192         if available.
75193         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
75194         (GETNDELIM2_MAXIMUM): New macro.
75195         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
75196         instead of the old practice of delim2==0.  All callers changed.
75197         Return -1 on overflow, instead of returning junk.
75198         Do not set *linesize unless allocation succeeds.
75199         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
75200         that we include sys/types.h.
75201         * lib/getnline.h: Likewise.
75202         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
75203         (getndelim2): Reorder arguments.
75204         * lib/getnline.c (getnline, getndelim):
75205         Don't discard the NMAX argument.
75206         (getnline): Invoke getndelim, to avoid code duplication.
75207         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
75208         of (size_t) -1 by callers of the getnline family.
75209
75210 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
75211
75212         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
75213         Check for gettimeofday.
75214         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
75215         Check for settimeofday, stime.
75216
75217 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
75218
75219         * lib/nanosleep.c (suspended): Change its type from int to
75220         sig_atomic_t volatile.
75221         (first_call): Make it private to rpl_nanosleep, and have it
75222         be zero initially as that's a bit faster.
75223         (my_usleep): Round up fractional times instead of truncating them,
75224         as this is the usual meaning for 'sleep'.
75225
75226         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
75227         doesn't work.
75228         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
75229         (ENOSYS): Define if not defined.
75230         (settime): Fall back on stime if it exists and settimeofday fails.
75231         But don't bother with fallbacks if a method fails with errno == EPERM.
75232
75233 2004-05-11  Jim Meyering  <jim@meyering.net>
75234
75235         Prior to this change, the save_cwd caller required read access to the
75236         current directory on most systems (ones with the fchdir function).
75237
75238         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
75239         fails, try write-only, and finally, resort to using xgetcwd.
75240
75241 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
75242
75243         * lib/obstack.c, obstack.h: Import changes from libc.
75244
75245 2004-04-28  Bruno Haible  <bruno@clisp.org>
75246
75247         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
75248         also implicitly appends .exe to executables.
75249         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
75250         accepts Windows pathnames.
75251         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
75252         Treat Cygwin like Windows, since it now accepts Windows pathnames.
75253         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
75254         Treat Cygwin like Windows, since it now accepts Windows pathnames.
75255         Reported by Derek Robert Price <derek@ximbiot.com>.
75256
75257 2004-04-21  Karl Berry  <karl@gnu.org>
75258
75259         * config/srclist.txt (localcharset.c): break sync.
75260
75261 2004-04-20  Paul Eggert  <eggert@twinsun.com>
75262
75263         * m4/host-os.m4: Add a copyright notice.
75264
75265 2004-04-20  Jim Meyering  <jim@meyering.net>
75266
75267         Change UTILS_ to gl_ in AC_DEFINE'd names.
75268         Change utils_- and jm_-prefixed variables, too.
75269         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
75270         UTILS_FUNC_MKDIR_TRAILING_SLASH.
75271         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
75272
75273         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
75274         Don't emit trailing blanks.
75275         Also rename jm_-prefixed variables to have gl_ prefix.
75276
75277         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
75278         Also rename jm_-prefixed variables to have gl_ prefix.
75279
75280         * m4/jm-macros.m4: Reflect the renamings.
75281         * m4/prereq.m4: Likewise.
75282
75283 2004-04-20  Jim Meyering  <jim@meyering.net>
75284
75285         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
75286         memory.
75287
75288 2004-04-20  Jim Meyering  <jim@meyering.net>
75289             Bruno Haible  <bruno@clisp.org>
75290
75291         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
75292         memory when realloc fails.
75293
75294 2004-04-19  Jim Meyering  <jim@meyering.net>
75295
75296         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
75297         now that readutmp.c may call `free (0)'.
75298
75299 2004-04-19  Bruno Haible  <bruno@clisp.org>
75300
75301         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
75302         * m4/inttypes_h.m4: Likewise.
75303         * m4/stdint_h.m4: Likewise.
75304         * m4/intmax_t.m4: Likewise.
75305         * m4/uintmax_t.m4: Likewise.
75306
75307 2004-04-18  Jim Meyering  <jim@meyering.net>
75308
75309         * m4/prereq.m4: Don't forbid jm_ prefix.
75310
75311         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
75312         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
75313         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
75314         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
75315         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
75316         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
75317         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
75318         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
75319         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
75320         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
75321         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
75322         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
75323         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
75324         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
75325         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
75326         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
75327         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
75328         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
75329         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
75330
75331 2004-04-18  Jim Meyering  <jim@meyering.net>
75332
75333         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
75334         failure, don't leak memory and do call END_UTMP_ENT.
75335
75336 2004-04-16  Jim Meyering  <jim@meyering.net>
75337
75338         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
75339         coreutils' stat program.
75340         (gl_PREREQ): Don't require jm_PREREQ_STAT.
75341
75342 2004-04-11  Paul Eggert  <eggert@twinsun.com>
75343
75344         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
75345         C89.
75346         (CHAR_BIT): Remove, since we assume C89.
75347         Include <stdint.h> if available, as per current Autoconf CVS advice.
75348
75349 2004-03-31  Jim Meyering  <jim@meyering.net>
75350
75351         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
75352         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
75353         * m4/xalloc.m4: Likewise.
75354
75355 2004-03-30  Paul Eggert  <eggert@twinsun.com>
75356
75357         Merge from coreutils.
75358
75359         * m4/inttostr.m4: New file.
75360         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
75361         Require AM_STDBOOL_H and gl_TIMESPEC instead.
75362         Require gl_CLOCK_TIME.
75363         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
75364
75365 2004-03-30  Paul Eggert  <eggert@twinsun.com>
75366
75367         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
75368         not bool, to be more consistent with Unix conventions.
75369         Suggested by Bruno Haible.
75370
75371         Merge from coreutils.
75372
75373         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
75374         * lib/umaxtostr.c: New files.
75375
75376         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
75377         the usual <time.h> dance.
75378         (get_date): Change signature to support fractional time stamps.
75379         All callers changed.
75380         * lib/getdate.y: Include "getdate.h" first, as we can now
75381         assume C89 and don't need to worry about 'const'.
75382         Similarly, include "unlocked-io.h" near start, not in middle.
75383         Include <limits.h>.
75384         (textint.value): Use long int rather than int.
75385         (textint.digits): Use size_t rather than int.
75386         (BILLION, LOG10_BILLION): New constants.
75387         (parser_control): New member rel_ns.  Members day_ordinal,
75388         time_zone, month, day, hour, minutes, rel_year, rel_month,
75389         rel_day, rel_hour, rel_minutes, rel_seconds
75390         are now long int, not int.  Member seconds is now struct timespec,
75391         not int.  New member timespec_seen.  Members dates_seen, days_seen,
75392         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
75393         not int.
75394         (%union.intval): Now long int, not int.
75395         New member timespec.
75396         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
75397         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
75398         (spec): Now is a timespec or an item list.
75399         (timespec, items): New nonterminals.
75400         (time, rel, relunit, number, get_date):
75401         Add support for fractional seconds.
75402         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
75403         (gmtime, localtime, mktime): Remove decls; not needed with C89.
75404         (to_hour): First arg is now long int, not int.
75405         (to_year): Returns long int, not int.
75406         Don't treat year -70 like 70.
75407         (tm_diff): Returns long int, not int.
75408         (lookup_word): Use bool instead of int when appropriate.
75409         (yylex): Use size_t for count, not int.
75410         Detect overflow when parsing large integer constants.
75411         Add support for fractions.
75412         (get_date): Make pointers 'const' if possible.
75413         Use more-portable code to detect integer overflow.
75414         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
75415         Don't use ctime; it's not reliable if the year has >4 digits.
75416
75417         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
75418         This is for compatibility with BSD.
75419
75420         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
75421         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
75422         From coreutils' system.h.
75423
75424         * lib/userspec.c: Don't include "posixver.h".
75425         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
75426         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
75427         compatible extension.  Simplify code by removing a boolean int
75428         that was always nonzero if a string was nonnull.
75429
75430 2004-03-30  Jim Meyering  <jim@meyering.net>
75431
75432         Merge from coreutils.
75433
75434         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
75435         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
75436         on some systems one must include <grp.h> before it.
75437         Reported by Christian Krackowizer.
75438
75439 2004-03-30  Jim Meyering  <jim@meyering.net>
75440
75441         Merge from coreutils.
75442
75443         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
75444
75445         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
75446         an empty input stream.
75447
75448         * lib/readtokens.c: Include <stdbool.h>.
75449         (readtoken): Use `size_t' rather than int/long.
75450         All callers adjusted.
75451         Use `bool' rather than `int' where appropriate.
75452         Use memset rather than an explicit loop.
75453         Use x2nrealloc rather than xrealloc.
75454         Allow the use of `\0' as a delimiter.
75455         (readtokens): Likewise.
75456         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
75457
75458 2004-03-30  Jim Meyering  <jim@meyering.net>
75459
75460         * m4/realloc.m4: Remove file, since now it does no more than
75461         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
75462         the `configure.ac' section of module/realloc.
75463         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
75464
75465 2004-03-30  Bruno Haible  <bruno@clisp.org>
75466
75467         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
75468         nonnull.
75469
75470 2004-03-29  Paul Eggert  <eggert@twinsun.com>
75471
75472         Merge changes to getloadavg.c from coreutils and Emacs.
75473
75474         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
75475         Define to an expression, not to the empty string.
75476         Include cloexec.h and xalloc.h.
75477         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
75478         Use set_cloexec_flag rather than rolling our own.
75479         * lib/cloexec.c, lib/cloexec.h: New files.
75480
75481 2004-03-29  Paul Eggert  <eggert@twinsun.com>
75482
75483         * m4/cloexec.m4: New file.
75484
75485 2004-03-18  Paul Eggert  <eggert@twinsun.com>
75486
75487         * lib/getopt.h: Sync with libc CVS.
75488
75489 2004-03-18  Paul Eggert  <eggert@twinsun.com>
75490             Bruno Haible  <bruno@clisp.org>
75491
75492         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
75493         mbswidth.
75494
75495 2004-03-18  Paul Eggert  <eggert@twinsun.com>
75496             Bruno Haible  <bruno@clisp.org>
75497
75498         * lib/mbswidth.h: Include <wchar.h> only if
75499         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
75500         <wchar.h>.
75501         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
75502
75503 2004-03-09  Paul Eggert  <eggert@twinsun.com>
75504
75505         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
75506         Sync with libc CVS.
75507         * lib/getopt_int.h: New file, also synced from libc.
75508
75509 2004-03-09  Paul Eggert  <eggert@twinsun.com>
75510
75511         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
75512         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
75513         Bring back getopt.c, getopt.h, getopt1.c.
75514
75515 2004-03-07  Paul Eggert  <eggert@twinsun.com>
75516
75517         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
75518         All uses changed.  Check for sa_sigaction member; this fixes
75519         a bug first reported by Jason Andrade in
75520         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
75521
75522 2004-03-07  Paul Eggert  <eggert@twinsun.com>
75523
75524         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
75525         '#if' expressions.  Unlike the code it replaces, it does not
75526         depend on (defined _SC_PAGESIZE).  However, it does depend on
75527         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
75528         first reported by Jason Andrade in
75529         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
75530
75531 2004-02-25  Simon Josefsson  <jas@extundo.com>
75532
75533         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
75534
75535 2004-02-25  Simon Josefsson  <jas@extundo.com>
75536
75537         * lib/strdup.h: New file.
75538         * lib/strdup.c: Include it.
75539         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
75540         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
75541
75542 2004-02-23  Karl Berry  <karl@gnu.org>
75543
75544         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
75545         (from fencepost.gnu.org:/gd/gnuorg).
75546
75547 2004-02-23  Karl Berry  <karl@gnu.org>
75548
75549         * config/srclistvars.sh (GNUORG) [karl]: redefine.
75550         * config/srclist.txt: add maintain/standards documents.
75551
75552 2004-02-18  Bruno Haible  <bruno@clisp.org>
75553
75554         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
75555         Reported by Derek Robert Price <derek@ximbiot.com>.
75556
75557 2004-02-16  Karl Berry  <karl@gnu.org>
75558
75559         * config/mkinstalldirs, install-sh: update from automake.
75560
75561 2004-02-06  Karl Berry  <karl@gnu.org>
75562
75563         * m4/po.m4: update from gettext 0.14.1.
75564
75565 2004-02-06  Karl Berry  <karl@gnu.org>
75566
75567         * lib/config.charset: update from gettext 0.14.1.
75568
75569 2004-02-05  Paul Eggert  <eggert@twinsun.com>
75570
75571         Add comments and code, prompted by suggestions from Bruno Haible
75572         for sh-quote.
75573         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
75574         describing the enum quoting_style values.
75575         * lib/quotearg.c (quotearg_alloc): New function.
75576         (quotearg_buffer_restyled): Treat lone { and } as special.
75577         Treat = as special.  Work around bug with older shells
75578         that "see" a '\' that is really the 2nd byte of a multibyte char.
75579         Quote empty string with shell_quoting_style.
75580
75581 2004-02-03  Bruno Haible  <bruno@clisp.org>
75582
75583         * m4/pipe.m4: New file, from GNU gettext.
75584
75585 2004-02-03  Bruno Haible  <bruno@clisp.org>
75586
75587         * lib/pipe.h: New file, from GNU gettext.
75588         * lib/pipe.c: New file, from GNU gettext.
75589
75590 2004-01-27  Bruno Haible  <bruno@clisp.org>
75591
75592         * m4/execute.m4: New file, from GNU gettext.
75593
75594 2004-01-27  Bruno Haible  <bruno@clisp.org>
75595
75596         * lib/execute.h: New file, from GNU gettext.
75597         * lib/execute.c: New file, from GNU gettext.
75598         * lib/w32spawn.h: New file, from GNU gettext.
75599
75600 2004-01-24  Paul Eggert  <eggert@twinsun.com>
75601
75602         Merge from diffutils.
75603
75604         * lib/file-type.c (file_type): Add typed memory objects.
75605         * lib/file-type.h (S_TYPEISTMO): New macro.
75606
75607         * lib/c-stack.h (c_stack_action): Remove argv argument.
75608         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
75609         (die): Don't calculate message unless segv_action returns.
75610         (get_stack_location, min_address_from_argv, max_address_from_argv,
75611         volatile stack_base, volatile_stack_size): Remove.
75612         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
75613         that every segmentation violation is a stack overflow.  (Ouch!)
75614         See Debian bug 136249 (still outstanding) for more info about why
75615         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
75616
75617 2004-01-24  Paul Eggert  <eggert@twinsun.com>
75618
75619         Exit-status fix from coreutils.
75620
75621         Use exit_failure consistently in place of EXIT_FAILURE,
75622         so that program exit statuses are consistent on failure.
75623
75624         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
75625         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
75626         * lib/argmatch.h: Comment fix to match the above.
75627         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
75628         Now a macro referring to exit_failure, instead of a separate
75629         variable.  Include "exitfail.h" to get it.
75630         * lib/xstrtol.h: Include "exitfail.h".
75631         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
75632
75633         * lib/long-options.c (parse_long_options): Use prototype
75634         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
75635         for clarity.
75636
75637 2004-01-21  Jim Meyering  <jim@meyering.net>
75638
75639         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
75640         so as not to conflict with a different-sized __mktime_internal
75641         function in GNU libc.
75642         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
75643         Problem building statically-linked `ls' reported by Michael Brunnbauer.
75644
75645 2004-01-20  Karl Berry  <karl@gnu.org>
75646
75647         * config/config.guess: update from config.
75648
75649         * config/srclistvars.sh: GNUWWWLICENSES for karl.
75650
75651 2004-01-20  Bruno Haible  <bruno@clisp.org>
75652
75653         Safer stack allocation.
75654         * lib/setenv.c: Include allocsa.h.
75655         (alloca): Remove fallback definition.
75656         (freea): Remove macro.
75657         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
75658         instead of freea.
75659
75660 2004-01-20  Bruno Haible  <bruno@clisp.org>
75661
75662         * m4/eealloc.m4: New file, from GNU gettext.
75663
75664 2004-01-20  Bruno Haible  <bruno@clisp.org>
75665
75666         * m4/allocsa.m4: New file, from GNU gettext.
75667
75668 2004-01-20  Bruno Haible  <bruno@clisp.org>
75669
75670         * lib/xallocsa.h: New file, from GNU gettext.
75671         * lib/xallocsa.c: New file, from GNU gettext.
75672
75673 2004-01-20  Bruno Haible  <bruno@clisp.org>
75674
75675         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
75676
75677 2004-01-20  Bruno Haible  <bruno@clisp.org>
75678
75679         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
75680         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
75681         specially.
75682
75683 2004-01-20  Bruno Haible  <bruno@clisp.org>
75684
75685         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
75686         patch.
75687
75688 2004-01-20  Bruno Haible  <bruno@clisp.org>
75689
75690         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
75691
75692 2004-01-20  Bruno Haible  <bruno@clisp.org>
75693
75694         * lib/eealloc.h: New file.
75695
75696 2004-01-20  Bruno Haible  <bruno@clisp.org>
75697
75698         * lib/binary-io.h: Avoid warnings on Cygwin.
75699
75700 2004-01-20  Bruno Haible  <bruno@clisp.org>
75701
75702         * lib/allocsa.h: New file, from GNU gettext.
75703         * lib/allocsa.c: New file, from GNU gettext.
75704
75705 2004-01-18  Karl Berry  <karl@gnu.org>
75706
75707         * doc/gpl.texi, doc/lgpl.texi: new files.
75708
75709 2004-01-18  Karl Berry  <karl@gnu.org>
75710
75711         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
75712         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
75713
75714 2004-01-15  Paul Eggert  <eggert@twinsun.com>
75715
75716         Merge from coreutils.
75717
75718         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
75719         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
75720         (gl_DEFAULT_POSIX2_VERSION): Move
75721         the documentation from 'configure' into 'config.hin',
75722         so that 'configure --help' isn't burdened by it and
75723         we don't have to worry about its formatting there.
75724         Reword the documentation so that it's more succinct
75725         and can be run together into a single paragraph.
75726         * m4/same.m4 (gl_SAME): Check for pathconf.
75727
75728 2004-01-15  Paul Eggert  <eggert@twinsun.com>
75729
75730         Merge from coreutils.
75731
75732         * lib/posixver.c: Include posixver.h.
75733
75734         * lib/same.c: Include <stdbool.h>, <limits.h>.
75735         (_POSIX_NAME_MAX): Define if not defined.
75736         (MIN): New macro.
75737         (same_name): If file names are silently truncated, report
75738         that the file names are the same if they are the same after
75739         the silent truncation.
75740
75741         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
75742         conversion function.
75743         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
75744         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
75745         longer needed.
75746
75747 2004-01-15  Jim Meyering  <jim@meyering.net>
75748
75749         Merge from coreutils.
75750
75751         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
75752         if no library is required.
75753         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
75754         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
75755         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
75756         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
75757         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
75758         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
75759         value, $ac_cv_search_crypt, if it's "none required".
75760         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
75761         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
75762         not gl_FUNC_GETLOADAVG.
75763         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
75764         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
75765
75766 2004-01-15  Jim Meyering  <jim@meyering.net>
75767
75768         Merge from coreutils.
75769
75770         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
75771         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
75772         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
75773
75774         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
75775         optional configure-time default.
75776
75777         * lib/version-etc.c (version_etc_copyright): Update copyright date.
75778
75779         * lib/xreadlink.c (xreadlink): Correct outdated comment.
75780
75781 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
75782
75783         Merge from coreutils.
75784
75785         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
75786         value, $ac_cv_search_nanosleep, if it's "none required".
75787
75788 2004-01-14  Paul Eggert  <eggert@twinsun.com>
75789
75790         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
75791         with like-named macro in fnmatch.c.
75792         (EXT): Use an internal constant instead.
75793
75794         Merge fnmatch patches from glibc.
75795         * lib/fnmatch.c (mbsinit): Remove define.
75796         Add libc_hidden_ver (__fnmatch, fnmatch).
75797         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
75798         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
75799
75800 2004-01-14  Karl Berry  <karl@gnu.org>
75801
75802         * config/install-sh: update from automake.
75803
75804 2004-01-13  Karl Berry  <karl@gnu.org>
75805
75806         * config/install-sh: update from automake.
75807
75808 2004-01-09  Karl Berry  <karl@gnu.org>
75809
75810         * config/install-sh: update from automake.
75811
75812 2004-01-05  Karl Berry  <karl@gnu.org>
75813
75814         * config/config.{sub,guess}: update from config.
75815
75816 2003-12-31  Karl Berry  <karl@gnu.org>
75817
75818         * config/depcomp: update from automake.
75819
75820 2003-12-14  Karl Berry  <karl@gnu.org>
75821
75822         * lib/config.charset: update from gettext-runtime.
75823
75824 2003-12-03  Paul Eggert  <eggert@twinsun.com>
75825
75826         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
75827         Bug reported by Alfred M. Szmidt.
75828
75829 2003-12-03  Bruno Haible  <bruno@clisp.org>
75830
75831         * m4/gettext.m4: Upgrade from gettext-0.13.
75832         * m4/po.m4: Upgrade from gettext-0.13.
75833         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
75834         * m4/intmax.m4: New file, from gettext-0.13.
75835         * m4/printf-posix.m4: New file, from gettext-0.13.
75836
75837 2003-11-29  Karl Berry  <karl@gnu.org>
75838
75839         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
75840
75841 2003-11-25  Paul Eggert  <eggert@twinsun.com>
75842             Bruno Haible  <bruno@clisp.org>
75843
75844         * lib/printf-parse.h: Don't include sys/types.h.
75845         (ARG_NONE): New macro.
75846         (char_directive): Change type of *arg_index fields to size_t.
75847         * lib/printf-parse.c: Don't include sys/types.h.
75848         (SSIZE_MAX): Remove macro.
75849         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
75850         Remove unnecessary overflow check.
75851         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
75852         fields.
75853
75854 2003-11-25  Bruno Haible  <bruno@clisp.org>
75855
75856         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
75857
75858 2003-11-25  Bruno Haible  <bruno@clisp.org>
75859
75860         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
75861         gt_TYPE_SSIZE_T.
75862
75863 2003-11-24  Paul Eggert  <eggert@twinsun.com>
75864
75865         * modules/alloca: Remove dependency on xalloc.
75866
75867 2003-11-24  Paul Eggert  <eggert@twinsun.com>
75868
75869         * lib/alloca.c: Remove dependency on xalloc module.
75870         (xalloc_die): Remove.
75871         (memory_full) [!defined emacs]: New macro.
75872         [!defined emacs]: Don't include xalloc.h.
75873         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
75874         address arithmetic overflows.  Change datatypes a bit to avoid
75875         unnecessary casts.
75876
75877 2003-11-22  Jim Meyering  <jim@meyering.net>
75878
75879         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
75880         s/size/size_t/.
75881
75882 2003-11-21  Karl Berry  <karl@gnu.org>
75883
75884         * config/config.{sub,guess}: update from config.
75885
75886 2003-11-18  Karl Berry  <karl@gnu.org>
75887
75888         * config/config.{sub,guess}: update from config.
75889
75890         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
75891
75892 2003-11-17  Paul Eggert  <eggert@twinsun.com>
75893
75894         * README: Mention that S+T cannot overflow if S is the size of
75895         an existing object and T is sufficiently small.
75896
75897 2003-11-17  Jim Meyering  <jim@meyering.net>
75898
75899         On systems without utime and without a utimes function capable of
75900         dealing with a NULL struct utimbuf* argument, this utime replacement
75901         could -- in unusual circumstances -- leak a file descriptor.
75902         * lib/utime.c: Include <unistd.h> and <errno.h>.
75903         (utime_null): Be sure to close `fd' and to preserve errno.
75904         Reported by Geoff Collyer via Arnold Robbins.
75905
75906 2003-11-17  Bruno Haible  <bruno@clisp.org>
75907
75908         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
75909         (Depends-on): Add xsize.
75910
75911 2003-11-17  Bruno Haible  <bruno@clisp.org>
75912
75913         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
75914
75915 2003-11-17  Bruno Haible  <bruno@clisp.org>
75916
75917         * lib/vasnprintf.c (alloca): Remove fallback definition.
75918         (freea): Remove definition.
75919         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
75920         Reported by Paul Eggert.
75921
75922 2003-11-16  Paul Eggert  <eggert@twinsun.com>
75923             Bruno Haible  <bruno@clisp.org>
75924
75925         Protect against address arithmetic overflow.
75926         * lib/printf-args.h: Include stddef.h.
75927         (arguments): Change type of field 'count' to size_t.
75928         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
75929         'unsigned int' where appropriate.
75930         * lib/printf-parse.h: Include sys/types.h.
75931         (char_directive): Change type of *arg_index fields to ssize_t.
75932         (char_directives): Change type of fields 'count', max_*_length to
75933         size_t.
75934         * lib/printf-parse.c: Include sys/types.h and xsize.h.
75935         (SSIZE_MAX): Define fallback value.
75936         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
75937         instead of 'int' where appropriate. Check a_allocated, d_allocated
75938         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
75939         * lib/vasnprintf.c: Include xsize.h.
75940         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
75941         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
75942         overflow. Avoid wraparound when converting a width or precision from
75943         decimal to binary.
75944
75945 2003-11-16  Bruno Haible  <bruno@clisp.org>
75946
75947         Update from GNU gettext.
75948         * lib/printf-parse.c: Generalize to it can be compiled for wide
75949         strings.
75950         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
75951         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
75952         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
75953         SNPRINTF): New macros.
75954         Don't include <alloca.h> if the file is used inside libintl.
75955         (local_wcslen): New function, for Solaris 2.5.1.
75956         (VASNPRINTF): Use it instead of wcslen.
75957
75958 2003-11-16  Bruno Haible  <bruno@clisp.org>
75959
75960         * lib/xsize.h (xmax): New function.
75961         (xsum, xsum3, xsum4): Declare as "pure" functions.
75962
75963 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75964
75965         * modules/xalloc (Files): Undo latest change, since xalloc.h
75966         no longer needs SIZE_MAX or PTRDIFF_MAX.
75967
75968 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75969
75970         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
75971         gl_PTRDIFF_MAX.
75972
75973 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75974
75975         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
75976         "return", to pacify some unknown compiler.  Problem reported
75977         by Joerg Schilling.
75978
75979 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75980
75981         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
75982         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
75983         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
75984         heuristic is just as accurate as far as we know, and it removes a
75985         dependency on size_max.m4 and ptrdiff_max.m4.
75986
75987 2003-11-11  Bruno Haible  <bruno@clisp.org>
75988
75989         * modules/xsize (Files): Add m4/size_max.m4.
75990         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
75991
75992 2003-11-11  Bruno Haible  <bruno@clisp.org>
75993
75994         * m4/size_max.m4: New file.
75995         * m4/ptrdiff_max.m4: New file.
75996         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
75997         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
75998         (gl_XALLOC): Invoke it.
75999
76000 2003-11-11  Bruno Haible  <bruno@clisp.org>
76001
76002         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
76003         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
76004         defined.
76005
76006 2003-11-10  Paul Eggert  <eggert@twinsun.com>
76007
76008         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
76009         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
76010         rejected some allocations of exactly SIZE_MAX - 2 bytes.
76011         From Bruno Haible.
76012         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
76013         not (size_t) -1, since it's defined here.
76014
76015 2003-11-09  Karl Berry  <karl@gnu.org>
76016
76017         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
76018
76019 2003-11-06  Paul Eggert  <eggert@twinsun.com>
76020
76021         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
76022         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
76023         Reject sizes of exactly SIZE_MAX bytes.
76024         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
76025         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
76026
76027 2003-11-05  Bruno Haible  <bruno@clisp.org>
76028
76029         * lib/xsize.h: Include limits.h, to avoid a possible collision with
76030         SIZE_MAX defined in <limits.h> on Solaris.
76031
76032 2003-11-04  Jim Meyering  <jim@meyering.net>
76033
76034         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
76035         variable names, rather than @VAR@.
76036         * modules/poll: Likewise.
76037
76038 2003-11-04  Bruno Haible  <bruno@clisp.org>
76039
76040         * modules/xsize: New file.
76041         * modules/linebreak: Depend on xsize.
76042         * MODULES.html.sh (func_all_modules): Add xsize.
76043
76044 2003-11-04  Bruno Haible  <bruno@clisp.org>
76045
76046         * m4/xsize.m4: New file.
76047
76048 2003-11-04  Bruno Haible  <bruno@clisp.org>
76049
76050         * lib/xsize.h: New file.
76051         * lib/linebreak.c: Include xsize.h.
76052         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
76053         argument for overflow.
76054         Suggested by Paul Eggert.
76055
76056 2003-11-03  Karl Berry  <karl@gnu.org>
76057
76058         * config/config.{guess,sub}: update from config.
76059
76060 2003-11-03  Jim Meyering  <jim@meyering.net>
76061
76062         * modules/userspec (lib_SOURCES): Add userspec.h.
76063         (Include): Add "userspec.h".
76064         Improve description.
76065
76066 2003-11-03  Jim Meyering  <jim@meyering.net>
76067
76068         * lib/userspec.c: Include "userspec.h".
76069         * lib/userspec.h: New file.
76070
76071 2003-11-03  Bruno Haible  <bruno@clisp.org>
76072
76073         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
76074
76075 2003-11-03  Bruno Haible  <bruno@clisp.org>
76076
76077         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
76078         available, to avoid (extremely rare) race condition.
76079         Suggested by Paul Eggert.
76080
76081 2003-11-02  Karl Berry  <karl@gnu.org>
76082
76083         * config/srclist.txt (vasprintf.c): sync broken, sigh.
76084
76085 2003-10-31  Paul Eggert  <eggert@twinsun.com>
76086
76087         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
76088         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
76089         (read_filesystem_list): Set and use me_type_malloced.
76090         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
76091         whatever the type happens to be), for brevity and consistency.
76092         Check for size calculation overflow on Alphas running OSF/1.
76093
76094 2003-10-31  Jim Meyering  <jim@meyering.net>
76095
76096         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
76097
76098         * lib/linebuffer.c: Include <string.h> for declaration of memset.
76099
76100 2003-10-30  Paul Eggert  <eggert@twinsun.com>
76101             Bruno Haible  <bruno@clisp.org>
76102
76103         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
76104         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
76105
76106 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
76107
76108         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
76109         netbsd*-gnu*.  Suggested by Robert Millan.
76110
76111 2003-10-29  Paul Eggert  <eggert@twinsun.com>
76112
76113         * modules/group-member: Depend on stdbool.
76114
76115 2003-10-29  Paul Eggert  <eggert@twinsun.com>
76116
76117         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
76118
76119 2003-10-29  Paul Eggert  <eggert@twinsun.com>
76120
76121         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
76122         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
76123         after the 'gnu' in these cases.  This fixes some bugs in the
76124         previous change, and is based on suggestions by Robert Millan.
76125
76126 2003-10-29  Paul Eggert  <eggert@twinsun.com>
76127
76128         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
76129         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
76130         no longer needed.
76131         * lib/quotearg.c (quotearg_n_options): Use it.
76132         * lib/group-member.c: Include <stdbool.h>.
76133         (free_group_info): Arg is now const *; don't free arg.
76134         (get_group_info): Now returns bool and accepts struct group_info *,
76135         rather than returning a malloc'ed struct group_info *.
76136         All uses changed.  Check for overflow in internal size calculation.
76137
76138         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
76139         rather than xmalloc/xrealloc.
76140         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
76141         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
76142         conformance bug: the old code used a pointer after freeing the
76143         storage that it addressed.
76144         * lib/hash.c (hash_initialize): Simplify the code by using
76145         xalloc_oversized rather than doing it by hand.
76146         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
76147         the buffer preserved.  Use free and xmalloc instead.
76148         * lib/quotearg.c (quotearg_n_options): Likewise.
76149         Use a simpler test for size overflow.  Don't use xalloc_oversized
76150         because unsigned int might be wider than size_t (!); this suggests
76151         that we should switch from unsigned int to size_t for slot numbers.
76152
76153 2003-10-28  Paul Eggert  <eggert@twinsun.com>
76154
76155         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
76156         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
76157         NetBSD kernels.  Requested by Richard Stallman.
76158
76159 2003-10-27  Paul Eggert  <eggert@twinsun.com>
76160
76161         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
76162         to allocate the returned structure.  Do not allocate a subarray,
76163         as x2nrealloc will do that.
76164         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
76165         instead of xnrealloc.
76166         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
76167
76168 2003-10-27  Bruno Haible  <bruno@clisp.org>
76169
76170         * lib/stdbool_.h: Better support for BeOS.
76171
76172 2003-10-26  Paul Eggert  <eggert@twinsun.com>
76173
76174         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
76175         now uses inline.
76176
76177 2003-10-26  Paul Eggert  <eggert@twinsun.com>
76178
76179         * lib/xalloc.h (xalloc_oversized): New static inline function, for
76180         callers that want to do their own size-overflow checking.  Include
76181         <stdbool.h>, since xalloc_oversized returns bool.
76182         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
76183         to use xalloc_oversized.
76184
76185         Add two functions x2realloc, x2nrealloc, for programs that grow
76186         arrays dynamically by doubling their sizes.
76187         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
76188         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
76189         New functions.
76190
76191         Port to C99 semantics for 'inline' of external functions.
76192         Bug reported by Bruno Haible.
76193         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
76194         with the old contents of xnmalloc.
76195         (xnmalloc, xmalloc): Use it.
76196         (xnrealloc_inline): New static inline function,
76197         with the old contents of xnrealloc.
76198         (xnrealloc, xrealloc): Use it.
76199
76200         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
76201         that.
76202
76203 2003-10-26  Karl Berry  <karl@gnu.org>
76204
76205         * config/srclist.txt (COPYING.DOC): no longer available from
76206         /gd/gnuorg; don't know where the ultimate source is.
76207
76208 2003-10-25  Paul Eggert  <eggert@twinsun.com>
76209
76210         Fix several address-calculation bugs in the hash modules,
76211         plus some minor code cleanup.
76212
76213         * lib/hash.h: Include <stdbool.h>, for bool.
76214         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
76215         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
76216         hash_get_n_entries, hash_get_max_bucket_length,
76217         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
76218         hash_rehash): Use size_t rather than unsigned.
76219         * lib/hash.c (struct hash_table, hash_get_n_buckets,
76220         hash_get_n_buckets_used, hash_get_n_entries,
76221         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
76222         hash_get_entries, hash_do_for_each, hash_string, is_prime,
76223         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
76224         Likewise.
76225         (SIZE_MAX): Define if not defined.
76226         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
76227         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
76228         hash_print):
76229         Use const * when possible.
76230         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
76231         (check_tuning): Fix bug: if tuning parameters were very close to
76232         0 or 1, rounding errors could have caused subscript violations.
76233         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
76234         (hash_initialize): Add 'fail:' label
76235         to free table and return NULL, and use it to simplify code.
76236         Use calloc rather than clearing the storage ourself.
76237         (hash_initialize, hash_rehash): Check for arithmetic overflow in
76238         buffer size calculations.
76239         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
76240         Include <stddef.h>, for size_t.
76241         * lib/hash-pjw.c (hash_pjw): Likewise.
76242         Switch to method described by Bruno Haible.
76243         Include <limits.h>, for CHAR_BIT.
76244         (SIZE_BITS): New macro.
76245
76246 2003-10-23  Paul Eggert  <eggert@twinsun.com>
76247
76248         * m4/getline.m4 (AM_FUNC_GETLINE):
76249         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
76250         hosts.  Problem reported by Derek Robert Price in
76251         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
76252         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
76253         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
76254
76255 2003-10-21  Paul Eggert  <eggert@twinsun.com>
76256
76257         * lib/getndelim2.c (getndelim2): When size calculation overflows,
76258         ceiling the allocation at NMAX bytes rather than silently
76259         discarding input bytes before NMAX is reached.  This makes
76260         a difference only if NMAX exceeds SIZE_MAX / 2.
76261
76262         * lib/obstack.c: Merge from glibc.
76263         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
76264         Add libc_hidden_def (_obstack_newchunk).
76265         (_obstack_free) [! defined _LIBC]: Remove.
76266         [defined _LIBC]: Make a strong alias from obstack_free, rather than
76267         a clone of the function body.
76268         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
76269         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
76270
76271         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
76272         glibc.
76273         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
76274         arg to memcpy.
76275
76276         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
76277         (obstack_ptr_grow_fast, obstack_int_grow_fast):
76278         Don't use lvalue casts, as GCC plans to remove support for them
76279         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
76280         was also present in the non-GCC version, indicating that this
76281         code had always been buggy and had never been widely used.
76282         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
76283         Use the fast variant of each macro, rather than copying the
76284         definiens of the fast variant; that way, we'll be more likely to
76285         catch future bugs in the fast variants.
76286
76287 2003-10-20  Bruno Haible  <bruno@clisp.org>
76288
76289         * modules/wait-process: New file.
76290         * MODULES.html.sh (func_all_modules): Add wait-process.
76291
76292 2003-10-20  Bruno Haible  <bruno@clisp.org>
76293
76294         * m4/wait-process.m4: New file.
76295
76296 2003-10-20  Bruno Haible  <bruno@clisp.org>
76297
76298         * lib/wait-process.h: New file, from GNU gettext.
76299         * lib/wait-process.c: New file, from GNU gettext.
76300
76301 2003-10-19  Jim Meyering  <jim@meyering.net>
76302
76303         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
76304         HPUX 10.20.
76305
76306 2003-10-18  Karl Berry  <karl@gnu.org>
76307
76308         * config/config.guess: update from config.
76309
76310 2003-10-16  Paul Eggert  <eggert@twinsun.com>
76311
76312         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
76313         (getgroups): First arg is int, not size_t.
76314         Don't let 'free' mangle errno.
76315
76316 2003-10-16  Paul Eggert  <eggert@twinsun.com>
76317
76318         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
76319
76320 2003-10-16  Karl Berry  <karl@gnu.org>
76321
76322         * config/config.{guess,sub}: update from config.
76323
76324 2003-10-16  Jim Meyering  <jim@meyering.net>
76325
76326         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
76327         memcpy.
76328
76329 2003-10-15  Paul Eggert  <eggert@twinsun.com>
76330
76331         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
76332         (SIZE_MAX): Remove.
76333         (new_exclude, add_exclude_file): Initial size no longer needs to
76334         be a power of 2.
76335         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
76336         our own address arithmetic overflow checking.
76337
76338         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
76339         (fnmatch): Do not alloca more than 2000 wide characters;
76340         instead, use malloc for large buffers.
76341         Check for address arithmetic overflow, and return -1
76342         with errno set to ENOMEM in that case.
76343         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
76344         (NEW_PATTERN): Do not alloca more than 8000 bytes;
76345         instead, return -1.  Check for address arithmetic overflow.
76346
76347 2003-10-14  Paul Eggert  <eggert@twinsun.com>
76348
76349         Handle invalid suffixes and overflow independently, so that
76350         callers can treat them independently as needed.  Fix some bugs in
76351         suffix handling, e.g., "100k@" was not diagnosed as an invalid
76352         suffix for a human-readable blocksize.  The major caller-visible
76353         change is the addition of a new
76354         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
76355         that both overflow and suffix chars were found.
76356
76357         * lib/human.c (humblock): Don't check separately for invalid suffix
76358         char; that is xstrtoumax's job (now that its bug is fixed).
76359         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
76360         INTMAX_MAX]: New macros.
76361         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
76362         TYPE_MAXIMUM): New macros.
76363         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
76364         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
76365         if overflow occurs, as it's what __strtol does and it's more useful
76366         in practice.
76367         (__xstrtol): If __strtol reports some error other than ERANGE,
76368         reflect it to the caller as LONGINT_INVALID.  If it reports
76369         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
76370         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
76371         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
76372         value.
76373         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
76374         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
76375         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
76376         [defined UINTMAX_MAX]: New macros.
76377
76378 2003-10-14  Bruno Haible  <bruno@clisp.org>
76379
76380         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
76381
76382 2003-10-14  Bruno Haible  <bruno@clisp.org>
76383
76384         * m4/sig_atomic_t: New file, from GNU gettext.
76385         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
76386
76387 2003-10-14  Bruno Haible  <bruno@clisp.org>
76388
76389         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
76390         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
76391         Also use volatile where needed.
76392
76393 2003-10-12  Paul Eggert  <eggert@twinsun.com>
76394
76395         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
76396         Change maintainer from Bruno Haible to 'all'.
76397
76398 2003-10-12  Paul Eggert  <eggert@twinsun.com>
76399
76400         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
76401
76402 2003-10-12  Paul Eggert  <eggert@twinsun.com>
76403
76404         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
76405         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
76406         and define in terms of the other primitives.
76407         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
76408         (SIZE_MAX): Define if not already defined.
76409         (array_size_overflow): New function.
76410         (xalloc_die): Abort instead of exiting if 'error' returns.
76411         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
76412         (xmalloc, xrealloc): Use them.
76413         (xcalloc): Check for address arithmetic overflow.
76414         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
76415         a bit faster than strcpy.
76416
76417 2003-10-10  Simon Josefsson  <jas@extundo.com>
76418
76419         * modules/argp (Depends-on): Add restrict and strcase.
76420
76421 2003-10-10  Simon Josefsson  <jas@extundo.com>
76422
76423         * m4/argp.m4: Add AC_C_INLINE.
76424
76425 2003-10-08  Paul Eggert  <eggert@twinsun.com>
76426
76427         Merge getpass from libc, plus a few fixes.
76428
76429         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
76430         Include <stdbool.h>.
76431         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
76432         __fsetlocking to empty.
76433         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
76434         do include <bits/libc-lock.h>.
76435         Do not include <fcntl.h>; not needed.
76436         [_LIBC]: Include <wchar.h>.
76437         (NOTCANCEL_MODE): New macro.
76438         (flockfile, funlockfile) [_LIBC]: New macros.
76439         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
76440         [!_LIBC]: New macros.
76441         (call_fclose): New function.
76442         (getpass): Use it.  Save tty stream separately; this simplifies the
76443         code and makes it more reliable if stdin happens to equal stdout.
76444         Invoke __fsetlocking on tty.
76445         Handle thread cancellation if needed.
76446         Namespace cleanup (use __tcgetattr, __getline).
76447         Use bool for Booleans.
76448         [USE_IN_LIBIO]: Handle wide streams.
76449         [!_LIBC]: Unconditionally do the fseek, since we don't know what
76450         stream might go where.
76451
76452         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
76453         doesn't have to include <stdio.h> before us.
76454         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
76455         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
76456         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
76457         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
76458         if not declared, so that we can use getpass.c code from libc without
76459         rewriting it.
76460         (flockfile, ftrylockfile, funlockfile): New macros.
76461
76462 2003-10-08  Paul Eggert  <eggert@twinsun.com>
76463
76464         * modules/getpass: Depend on stdbool.
76465
76466 2003-10-08  Paul Eggert  <eggert@twinsun.com>
76467
76468         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
76469
76470 2003-10-07  Karl Berry  <karl@gnu.org>
76471
76472         * config/config.{guess,sub}: update from config.
76473
76474 2003-10-06  Jim Meyering  <jim@meyering.net>
76475             Bruno Haible  <bruno@clisp.org>
76476
76477         This lets translators provide better translations for the
76478         "Written by ..." part of --version output.
76479         * lib/version-etc.h: Include stdarg.h.
76480         (version_etc_copyright): Declare as readonly.
76481         (version_etc): Make this function variadic with a NULL-terminated list
76482         of author name strings.
76483         (version_etc_va): New declaration.
76484         * lib/version-etc.c: Include stdarg.h, stdlib.h.
76485         (version_etc_copyright): Declare as readonly.
76486         (version_etc_va): New function. Provide a different translatable string
76487         for each possible number of authors < 10. Abbreviate when there are 10
76488         authors or more.
76489         (version_etc): Make this function variadic. Call version_etc_va.
76490         Suggestion from Gary V. Vaughan.
76491
76492         * lib/long-options.h (parse_long_options): Change prototype: the
76493         authors string is moved to the end and becomes variadic.
76494         * lib/long-options.c: Include stdarg.h.
76495         (parse_long_options): Make this function variadic, too.
76496         Call version_etc_va, not version_etc.
76497
76498 2003-10-06  Bruno Haible  <bruno@clisp.org>
76499
76500         * modules/version-etc-2: Remove file.
76501         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
76502
76503 2003-10-06  Bruno Haible  <bruno@clisp.org>
76504
76505         * modules/fatal-signal: New file.
76506         * MODULES.html.sh (func_all_modules): Add fatal-signal.
76507
76508 2003-10-06  Bruno Haible  <bruno@clisp.org>
76509
76510         * m4/fatal-signal.m4: New file.
76511         * m4/signalblocking.m4: New file, from GNU gettext.
76512
76513 2003-10-06  Bruno Haible  <bruno@clisp.org>
76514
76515         * lib/version-etc-2.h: Remove file.
76516         * lib/version-etc-2.c: Remove file.
76517
76518 2003-10-06  Bruno Haible  <bruno@clisp.org>
76519
76520         * lib/fatal-signal.h: New file, from GNU gettext.
76521         * lib/fatal-signal.c: New file, from GNU gettext.
76522
76523 2003-10-05  Paul Eggert  <eggert@twinsun.com>
76524
76525         * README: Rework advice for preventing empty .o files.
76526         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
76527         not <sys/types.h>.
76528
76529 2003-10-04  Karl Berry  <karl@gnu.org>
76530
76531         * lib/argp*: update from libc.
76532
76533 2003-10-04  Karl Berry  <karl@gnu.org>
76534
76535         * config/config.{guess,sub}: update from config.
76536
76537 2003-10-02  Bruno Haible  <bruno@clisp.org>
76538
76539         * modules/lchown (Include): Add lchown.h.
76540         * modules/time_r (Include): Use "..." syntax.
76541         * modules/xgetdomainname (Include): Add xgetdomainname.h.
76542
76543 2003-10-01  Simon Josefsson  <jas@extundo.com>
76544
76545         * MODULES.html.sh (func_all_modules): Move gethostname from section
76546         'based on' to section 'lacking' POSIX:2001.
76547
76548 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
76549
76550         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
76551         to output mode on the same stream.
76552
76553 2003-09-29  Paul Eggert  <eggert@twinsun.com>
76554
76555         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
76556         Fix arg typo in previous patch.
76557
76558 2003-09-28  Jim Meyering  <jim@meyering.net>
76559
76560         * lib/error.c: Correct cpp indentation.
76561
76562 2003-09-27  Paul Eggert  <eggert@twinsun.com>
76563
76564         * modules/free: New file.
76565
76566 2003-09-27  Paul Eggert  <eggert@twinsun.com>
76567
76568         * m4/free.m4: New file.
76569
76570 2003-09-27  Paul Eggert  <eggert@twinsun.com>
76571
76572         * lib/minmax.h (MIN, MAX)
76573         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
76574         Omit the special code that used __typeof__, since we worry that
76575         it could be more trouble than it's worth.  See:
76576         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
76577         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
76578
76579         * lib/free.c: New file.
76580
76581 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
76582
76583         Trivial fixes to Makefile.am parts of module listings.
76584         * modules/strstr: Append strstr.h to lib_SOURCES.
76585         * modules/strcase: Likewise, for strcase.h.
76586
76587 2003-09-27  Karl Berry  <karl@gnu.org>
76588
76589         * config/mkinstalldirs: update from automake.
76590
76591 2003-09-26  Paul Eggert  <eggert@twinsun.com>
76592
76593         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
76594         (error_tail): Do not loop, reallocating temporary buffer, since
76595         the output cannot contain more wide characters than the input
76596         contains bytes, the size must be big enough already.  This avoids
76597         one potential size overflow calculation.  Check for size overflow
76598         when calculating temporary buffer size.  Free temporary buffer
76599         when done, if it was allocated with malloc; this plugs a memory
76600         leak.  Remove casts from void * to pointers, that are no longer
76601         needed now that we're assuming C89 or better.
76602
76603         Merge error changes from glibc.
76604
76605         * lib/error.c, error.h: Update copyright notice header to match glibc.
76606         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
76607         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
76608         Disable cancellation while printing error.
76609         * lib/error.h: Prepend __ to parameter names.
76610
76611 2003-09-26  Jim Meyering  <jim@meyering.net>
76612
76613         * lib/error.c (error_tail): Move some declarations
76614         into inner scope where the local variables are used.
76615
76616 2003-09-26  Bruno Haible  <bruno@clisp.org>
76617
76618         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
76619         stpncpy().
76620         Don't define stpncpy through config.h; it's now done through stpncpy.h.
76621
76622 2003-09-26  Bruno Haible  <bruno@clisp.org>
76623
76624         * lib/stpncpy.h (gnu_stpncpy): New declaration.
76625         (stpncpy): Define as alias for gnu_stpncpy.
76626         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
76627
76628 2003-09-25  Simon Josefsson  <jas@extundo.com>
76629
76630         * lib/xgetdomainname.h: New file.
76631         * lib/xgetdomainname.c: New file.
76632
76633 2003-09-25  Simon Josefsson  <jas@extundo.com>
76634             Bruno Haible  <bruno@clisp.org>
76635
76636         * modules/getdomainname: New file.
76637         * modules/xgetdomainname: New file.
76638         * MODULES.html.sh (func_all_modules): Add getdomainname,
76639         xgetdomainname.
76640
76641 2003-09-25  Simon Josefsson  <jas@extundo.com>
76642             Bruno Haible  <bruno@clisp.org>
76643
76644         * m4/getdomainname.m4: New file.
76645
76646 2003-09-25  Simon Josefsson  <jas@extundo.com>
76647             Bruno Haible  <bruno@clisp.org>
76648
76649         * lib/getdomainname.h: New file.
76650         * lib/getdomainname.c: New file.
76651
76652 2003-09-25  Karl Berry  <karl@gnu.org>
76653
76654         * lib/argp-fmtstream.c, argp-help.c: update from libc.
76655
76656 2003-09-25  Karl Berry  <karl@gnu.org>
76657
76658         * config/install-sh: update from automake.
76659
76660 2003-09-25  Bruno Haible  <bruno@clisp.org>
76661
76662         * modules/version-etc-2: New file, from modules/version-etc with
76663         modifications.
76664         * MODULES.html.sh (func_all_modules): Add version-etc-2.
76665
76666 2003-09-25  Bruno Haible  <bruno@clisp.org>
76667
76668         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
76669         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
76670
76671 2003-09-24  Simon Josefsson  <jas@extundo.com>
76672
76673         * modules/xgethostname: Add xgethostname.h.
76674
76675 2003-09-24  Paul Eggert  <eggert@twinsun.com>
76676
76677         * lib/linebuffer.c (freebuffer): Don't free the argument, just
76678         the buffer associated with the argument.  Bug reported by
76679         Simon Josefsson.
76680
76681 2003-09-24  Paul Eggert  <eggert@twinsun.com>
76682
76683         * README: Document assumptions that 'int' is at least 32 bits
76684         wide, that integer arithmetic is 2's complement without overflow,
76685         that there are no holes in integer values, that adding sizes of
76686         two nonoverlapping objects can't overflow, and that all-bits-zero
76687         yields scalar zero.  Fix spelling and capitalization typos.
76688
76689 2003-09-19  Karl Berry  <karl@gnu.org>
76690
76691         * lib/argp.h: update from libc.
76692
76693 2003-09-17  Paul Eggert  <eggert@twinsun.com>
76694
76695         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
76696         to avoid spurious warnings like "AC_RUN_IFELSE was called before
76697         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
76698
76699 2003-09-17  Paul Eggert  <eggert@twinsun.com>
76700
76701         * gnulib-tool: Use "test -h", not "test -L", for portability
76702         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
76703         (tags_regexp): Remove, since \| doesn't conform to POSIX.
76704         (sed_extract_prog): Issue s commands one-by-one, rather than
76705         using \| in one s command.
76706
76707 2003-09-16  Paul Eggert  <eggert@twinsun.com>
76708
76709         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
76710         input error, instead of returning NULL the next time we are called
76711         (and therefore losing track of errno).
76712
76713 2003-09-16  Bruno Haible  <bruno@clisp.org>
76714
76715         * gnulib-tool (func_create_testdir): Warn about duplicated
76716         dependencies.
76717
76718 2003-09-15  Paul Eggert  <eggert@twinsun.com>
76719
76720         * modules/argmatch, modules/fatal, modules/obstack,
76721         modules/xalloc, modules/xgethostname: Sort dependencies by
76722         importance, not alphabetically.
76723
76724 2003-09-15  Paul Eggert  <eggert@twinsun.com>
76725
76726         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
76727         fails, so that the caller gets the proper errno.
76728
76729         * lib/readutmp.c (read_utmp): Likewise.
76730         Check for fstat error.  Close stream and free storage
76731         when failing.
76732
76733 2003-09-14  Karl Berry  <karl@gnu.org>
76734
76735         * config/srclist.txt (strdup.c): disable for c89 changes.
76736
76737 2003-09-14  Jim Meyering  <jim@meyering.net>
76738
76739         * lib/getloadavg.c: Correct cpp indentation.
76740         * lib/strdup.c: Likewise.
76741         * lib/vasnprintf.c: Likewise.
76742
76743 2003-09-14  Bruno Haible  <bruno@clisp.org>
76744
76745         * modules/fwriteerror: New file.
76746         * MODULES.html.sh (func_all_modules): Add fwriteerror.
76747
76748 2003-09-14  Bruno Haible  <bruno@clisp.org>
76749
76750         * lib/fwriteerror.h: New file.
76751         * lib/fwriteerror.c: New file.
76752
76753 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76754
76755         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
76756         modules/xgethostname, modules/xalloc: Depend on exit.
76757
76758 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76759
76760         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
76761
76762         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
76763         and AC_MINIX, too, so that their extensions are available.
76764
76765         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
76766         This macro has been superseded by gl_BACKUPFILE.
76767
76768         More patches to assume C89 or better.
76769
76770         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
76771
76772         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
76773         unconditionally.
76774         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
76775         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
76776         Include <string.h>, <stdlib.h> unconditionally.
76777         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
76778         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
76779         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
76780         headers or for string.h.
76781         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
76782         or strtoul.
76783
76784         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
76785         headers.
76786         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
76787         * m4/userspec.m4 (gl_USERSPEC): Likewise.
76788         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
76789         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
76790         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76791         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
76792         memcpy, memset.
76793         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
76794         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
76795         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
76796         strtol.
76797         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
76798         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
76799         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
76800         strtoul.
76801
76802 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76803
76804         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
76805         * lib/obstack.c [!defined _LIBC]: Likewise.
76806         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
76807         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
76808         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
76809
76810         More changes to assume C89 or better.
76811
76812         * lib/error.c (error_tail): Assume vprintf.
76813
76814         * lib/argmatch.c (getenv): Remove decl.
76815         * lib/progreloc.c (get_full_program_name): Define via prototype.
76816         * lib/setenv.c (clearenv): Likewise.
76817         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
76818         needed.
76819         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
76820         (malloc, memcpy): Remove decls.
76821         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
76822         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
76823         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
76824         (memcpy): Remove macro.
76825         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
76826         (__P): Remove.  All uses removed.
76827         (PTR): Remove.  All uses changed to void *.
76828         (CHAR_BIT, NULL): Remove.
76829         (spaces, zeros, memset_space, memset_zero)
76830         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
76831         Remove.
76832         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
76833         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
76834         Define with prototype.
76835         Remove now-unnecessary prototype decl.
76836         (extra_args_spec): Assume ANSI C.  All uses changed.
76837         (extra_args_spec_iso): Remove.
76838         (my_strftime, emacs_strftimeu): Define via prototype.
76839         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
76840         unconditionally.
76841         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
76842         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
76843         (strtoul, strtol): Remove decls.
76844         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
76845         LONG_MAX): Remove.
76846         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
76847         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
76848         (LOCALE_PARAM_PROTO): New macro.
76849         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
76850         (INTERNAL (strtol), strtol): Define with a prototype.
76851         (PARAMS): Remove.  All uses removed.
76852         * lib/tempname.c: Include <string.h> unconditionally.
76853         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
76854         * lib/xgethostname.c (main): Define with a prototype.
76855         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
76856         Include <stdlib.h> unconditionally.
76857         (calloc, malloc, realloc, free): Remove decls.
76858         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
76859         Include <stdlib.h> unconditionally.  Sort include file names.
76860         (strtod): Remove.
76861         (xstrtod): Define with a prototype.
76862         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
76863         (strtol, strtoul): Remove decls.
76864
76865 2003-09-11  Paul Eggert  <eggert@twinsun.com>
76866
76867         More patches to assume C89 or better.
76868         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
76869         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
76870         string.h, memchr, STDC_HEADERS.
76871
76872 2003-09-11  Paul Eggert  <eggert@twinsun.com>
76873
76874         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
76875         Include <stdlib.h>, <string.h> unconditionally.
76876         Remove now-unnecessary cast to char *.
76877         * lib/strnlen.c: Include <string.h> unconditionally.
76878         * lib/yesno.c (yesno): Define with a prototype.
76879
76880 2003-09-11  Bruno Haible  <bruno@clisp.org>
76881
76882         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
76883
76884 2003-09-10  Jim Meyering  <jim@meyering.net>
76885
76886         * lib/error.c: Correct indentation of cpp directives.
76887
76888 2003-09-10  Bruno Haible  <bruno@clisp.org>
76889
76890         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
76891         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
76892         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
76893         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
76894         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
76895         <stdlib.h> and <string.h> checks.
76896         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
76897         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
76898
76899 2003-09-10  Bruno Haible  <bruno@clisp.org>
76900
76901         * lib/strcspn.c: Include <string.h> unconditionally.
76902         * lib/strpbrk.c: Include <string.h> unconditionally.
76903         * lib/strstr.c: Include <string.h> unconditionally.
76904         * lib/unicodeio.c: Include <string.h> unconditionally.
76905         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
76906         * lib/unsetenv.c: Likewise.
76907         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
76908         * lib/yesno.c: Include <stdlib.h> unconditionally.
76909         (rpmatch): Add prototype.
76910
76911 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76912
76913         More patches to assume C89 or better.
76914         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
76915         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
76916         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
76917         or for string.h.
76918         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
76919         stdlib.h.
76920         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
76921         C headers.
76922         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
76923         string.h.
76924         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
76925         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
76926         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
76927         or for string.h.
76928         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
76929         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
76930         C headers.
76931         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
76932         memcpy.
76933         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
76934         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
76935         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
76936         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
76937         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
76938         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
76939         string.h, free.
76940         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
76941         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
76942         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
76943         C headers, or for string.h.
76944         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
76945         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
76946         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
76947         headers, memory.h, stdlib.h, string.h, strings.h.
76948         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
76949         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
76950         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
76951         strchr.
76952         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
76953         headers, memory.h, string.h.
76954         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
76955         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
76956         free.
76957         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
76958         headers.
76959         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
76960         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
76961         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
76962         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
76963         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
76964
76965 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76966
76967         More K&R removal.
76968
76969         * lib/acosl.c (main): Use a prototype.
76970         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
76971         tanl.c: Likewise.
76972
76973         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
76974
76975         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
76976         (getopt, etopt_long, getopt_long_only, _getopt_internal)
76977         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
76978         with a prototype.
76979         * lib/getopt.c (const): Remove macro.
76980         Include <string.h> unconditionally.
76981         (my_index): Remove; all uses changed to strchr.
76982         (strlen): Remove decl.
76983         (exchange): Remove forward decl; no longer needed.
76984         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
76985         Define with prototype.
76986         * lib/getopt1.c (const): Remove macro.
76987         (getopt_long, getopt_long_only, main): Define with prototype.
76988
76989         * lib/getugroups.c: Include <string.h> unconditionally.
76990
76991         * lib/getusershell.c: Include <stdlib.h> unconditionally.
76992         (getusershell, setusershell, endusershell, readname, main):
76993         Define with prototypes.
76994
76995         * lib/group-member.c: Include group-member.h first.
76996         Include <stdlib.h> unconditionally.
76997
76998         * lib/hard-locale.c: Include hard-locale.h first.
76999         Include <stdlib.h>, <string.h> unconditionally.
77000
77001         * lib/hash.c (free, malloc): Remove decls.
77002         Include <stdlib.h> unconditionally.
77003
77004         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
77005         (getenv): Do not declare.
77006
77007         * lib/idcache.c: Include <string.h> unconditionally.
77008
77009         * lib/long-options.c: Include long-options.h first, to test interface.
77010         Include <stdlib.h> unconditionally.
77011
77012         * lib/makepath.c: Include makepath.h first, to test interface.
77013         Include <stdlib.h> and <string.h> unconditionally.
77014
77015         * lib/linebuffer.c: Include <stdlib.h>.
77016         (free): Remove decl.
77017
77018         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
77019         stddef.h. rpl_malloc returns void *, not char *.
77020         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
77021         prototype.
77022
77023         * lib/md5.h: Include <limits.h> unconditionally.
77024         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
77025         (__P): Remove; all uses removed.
77026         * lib/md5.c: Include "md5.h" first.
77027         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
77028         md5_buffer, md5_process_bytes, md5_process_block):
77029         Define with prototypes.
77030         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
77031         * lib/sha.c: Include "sha.h" first.
77032         Include <stdlib.h>, <string.h> unconditionally.
77033
77034         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
77035         * lib/memcmp.c (__ptr_t): Likewise.
77036         * lib/memrchr.c (__ptr_t): Likewise.
77037         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
77038         Include <string.h> unconditionally.
77039         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
77040         * lib/memchr.c: Include <stdlib.h> unconditionally.
77041         * lib/memchr.c (LONG_MAX): Remove.
77042         * lib/memrchr.c (LONG_MAX): Likewise.
77043         * lib/memchr.c (__memchr): Define via a prototype.
77044         * lib/memrchr.c (__memrchr): Likewise.
77045         * lib/memcmp.c (__P): Remove, and remove all uses.
77046         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
77047         Remove forward decls; no longer needed.
77048         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
77049         Use types required by C89 in prototype.
77050
77051         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
77052         * lib/savedir.c: Likewise.
77053         * lib/mkdir.c (free): Remove decl.
77054         * lib/rmdir.c (rmdir): Define with a prototype.
77055         * lib/savedir.c: Include savedir.h first, to test interface.
77056
77057         * lib/mktime.c (STDC_HEADERS): Remove.
77058         Include <stdlib.h>, <string.h> unconditionally.
77059
77060         * lib/modechange.c: Include <stdlib.h> unconditionally.
77061         (malloc): Remove decl.
77062
77063         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
77064         (free): Remove decl.
77065
77066         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
77067         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
77068         (This type really should be intptr_t, but that's a C99ism.)
77069         (_obstack_memcpy): Remove: all uses changed to memcpy.
77070         Include <string.h> unconditionally.
77071         (struct obstack): Assume __STDC__ for types of members
77072         chunkfun, freefun, extra_arg.
77073         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
77074         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
77075         obstack_begin, obstack_specify_allocation,
77076         obstack_specify_allocation_with_arg, obstack_chunkfun,
77077         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
77078         Remove unprototyped decls and the macros that use them.
77079         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
77080         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
77081         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
77082         (defined __STDC__ && __STDC__)]:
77083         Remove nonprototyped code.
77084         Include <stdlib.h> unconditionally.
77085         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
77086         _obstack_allocated_p, _obstack_free, obstack_free,
77087         _obstack_memory_used, print_and_abort):
77088         Define using prototypes.
77089         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
77090         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
77091         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
77092         obstack_next_free, obstack_object_size, obstack_room) [0]:
77093         Remove unused, unprototyped code.
77094
77095         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
77096
77097         * lib/physmem.c (physmem_total, physmem_available, main): Define
77098         with prototypes.
77099
77100         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
77101         (main): Define with a prototype.
77102
77103         * lib/posixver.c (getenv): Remove decl.
77104
77105         * lib/putenv.c (malloc): Returns void *, not char *.
77106         Include <string.h> unconditionally.
77107         (strchr, memcpy, NULL): Do not define.
77108
77109         * lib/readtokens.c: Include readtokens.h first, to test interface.
77110         Include <stdlib.h>, <string.h> unconditionally.
77111         (init_tokenbuffer): Define with a prototype.
77112
77113         * lib/regex.c (PARAMS): Remove.  All uses removed.
77114         All uses of _RE_ARGS removed, too.
77115         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
77116         unconditionally.
77117         (bzero): Assume memset exists.
77118         (memcmp, memcpy, NULL): Remove.
77119         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
77120         char, or assignments to local vars of type signed char.
77121         (init_syntax_once, PREFIX(extract_number_and_incr),
77122         PREFIX(print_partial_compiled_pattern),
77123         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
77124         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
77125         PREFIX(regex_grow_registers), PREFIX(regex_compile),
77126         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
77127         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
77128         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
77129         wcs_compile_range, byte_compile_range, truncate_wchar,
77130         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
77131         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
77132         count_mbs_length, wcs_re_match_2_internal,
77133         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
77134         PREFIX(alt_match_null_string_p),
77135         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
77136         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
77137         regfree, PREFIX(extract_number)): Define with prototype.  Remove
77138         now-unnecessary declaration, if any.
77139         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
77140         regcomp, regexec):
77141         Remove now-unnecessary casts among pointer types.
77142         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
77143
77144         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
77145         (free): Remove decl.
77146
77147         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
77148
77149         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
77150         (free): Remove decl.
77151
77152         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
77153         * lib/xgetcwd.c: Likewise.
77154
77155         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
77156         (free): Remove decl.
77157
77158         * lib/strchrnul.c (strchrnul): Define with a prototype.
77159         Fix bug: c_in was not converted to char before searching.
77160
77161         The following changes are not K&R related:
77162
77163         * lib/group-member.h: Include <sys/types.h>, so that this file is
77164         self-contained.
77165         * lib/makepath.h: Likewise.
77166
77167         * lib/getusershell.c (readname, default_index, line_size, readname):
77168         Use size_t, not int, for sizes.
77169         (readname): If the size overflows, report an error instead of
77170         looping forever.
77171
77172 2003-09-09  Paul Eggert  <eggert@twinsun.com>
77173
77174         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
77175         libc.
77176
77177 2003-09-09  Paul Eggert  <eggert@twinsun.com>
77178
77179         * README: New section: portability guidelines.
77180
77181 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
77182
77183         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
77184         C89 spec.
77185
77186 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
77187
77188         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
77189
77190 2003-09-08  Paul Eggert  <eggert@twinsun.com>
77191
77192         Assume C89 or better; remove K&R cruft.
77193         A few of these changes were first proposed by Derek Robert Price
77194         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
77195
77196         * lib/addext.c: Include <string.h> unconditionally.
77197         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
77198         Don't declare getenv or malloc.
77199
77200         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
77201         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
77202         (NULL): Remove.
77203         (find_stack_direction, alloca): Use prototypes.
77204
77205         * lib/atexit.c (atexit): Define using a prototype.
77206
77207         * lib/basename.c, dirname.c, stripslash.c:
77208         Include <string.h> unconditionally.
77209
77210         * lib/bcopy.c: Include <stddef.h>.
77211         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
77212
77213         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
77214
77215         * lib/error.h (error, error_at_line, error_print_progname)
77216         [! (defined (__STDC__) && __STDC__)]: Remove decls.
77217         * lib/error.c: Include error.h first, to check interface.
77218         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
77219         (VA_START): Remove; all uses changeed to va_start.
77220         (exit, strerror): Remove decls.
77221         (error_print_progname): Prototype uncondionally.
77222         Don't include <errno.h>; no longer needed.
77223         (private_strerror): Remove.
77224         (error_tail): Always define.
77225         (error, error_at_line): Assume C89 or better; always use prototypes.
77226         * lib/fatal.c: Include "fatal.h" first, to test interface.
77227         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
77228         (VA_START): Remove; all uses changed to va_start.
77229         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
77230         this case.
77231         (exit): Remove decl.
77232         (fatal): Prototype unconditionally.  Assume va_start works.
77233         Abort at end, to pacify gcc.
77234
77235         * lib/euidaccess.c (main): Define with a prototype.
77236
77237         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
77238
77239         * lib/exitfail.c: Include <stdlib.h> unconditionally.
77240
77241         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
77242         prototypes.
77243         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
77244         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
77245         (getenv): Remove decl.
77246         (fnmatch): Define using a prototype.
77247         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
77248         (FCT): Define using a prototype.
77249
77250         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
77251
77252         * lib/gethostname.c: Include <stddef.h>.
77253         (gethostname): Define with prototype.  Length is size_t, not int.
77254
77255 2003-09-08  Paul Eggert  <eggert@twinsun.com>
77256
77257         Assume C89 or better; remove K&R cruft.
77258         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
77259         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
77260         string.h, getenv, malloc.
77261         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
77262         headers.
77263         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
77264         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
77265         do not check for strerror.
77266         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
77267         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
77268         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
77269         do not check for doprnt or vprintf.
77270         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
77271         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
77272
77273 2003-09-08  Paul Eggert  <eggert@twinsun.com>
77274
77275         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
77276         getversion.c should have been removed then, but was accidentally
77277         preserved.
77278
77279         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
77280         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
77281
77282 2003-09-08  Karl Berry  <karl@gnu.org>
77283
77284         * config/config.sub, config.guess, srclistvars.sh: update from savannah
77285                 config, forget about prep.
77286
77287         * config/depcomp, missing: update from automake.
77288
77289 2003-09-07  Paul Eggert  <eggert@twinsun.com>
77290
77291         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
77292         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
77293
77294 2003-09-07  Paul Eggert  <eggert@twinsun.com>
77295
77296         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
77297         copy_tm_result.  Bug reported by Simon Josefsson in
77298         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
77299
77300 2003-09-06  Paul Eggert  <eggert@twinsun.com>
77301
77302         * m4/time_r.m4: New file.
77303         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
77304         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
77305         is. Check for timegm declaration.
77306         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
77307         Do not check for gmtime_r.
77308         Replace mktime if __mktime_internal does not exist and if mktime
77309         hasn't been replaced already.
77310
77311 2003-09-06  Paul Eggert  <eggert@twinsun.com>
77312
77313         * lib/time_r.c, lib/time_r.h: New files.
77314
77315         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
77316         __localtime_r.
77317         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
77318         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
77319
77320         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
77321         __gmtime_r.
77322         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
77323         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
77324         Include <time_r.h>.
77325
77326         * lib/timegm.c: Switch to glibc implementation, with the following
77327         changes:
77328         [defined HAVE_CONFIG_H]: Include <config.h>.
77329         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
77330         (__mktime_internal) [!defined _LIBC]: New decl.
77331         (__gmtime_r) [!defined _LIBC]: New macro and function.
77332         (timegm): Use a prototype, since gnulib assumes C89.
77333         Do not bother declaring tmp to be const, as it's not really usefu.
77334         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
77335         (timegm): Declare only if HAVE_DECL_TIMEGM.
77336
77337 2003-09-06  Paul Eggert  <eggert@twinsun.com>
77338
77339         * MODULES.html.sh (func_all_modules): Add time_r.
77340         * modules/time_r: New file.
77341         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
77342         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
77343
77344 2003-09-03  Paul Eggert  <eggert@twinsun.com>
77345
77346         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
77347         Bug reported by Lute Kamstra in
77348         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
77349
77350         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
77351         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
77352         course with correspondingly smaller numbers for tomorrow and
77353         yesterday.  From Tadayoshi Funaba.  Originally installed into
77354         sh-utils on 1999-08-07, but the patch got lost (I guess during the
77355         coreutils merge?).
77356
77357 2003-08-31  Simon Josefsson  <jas@extundo.com>
77358
77359         * modules/timegm: New file.
77360         * MODULES.html.sh (func_all_modules): Add timegm.
77361
77362 2003-08-31  Simon Josefsson  <jas@extundo.com>
77363
77364         * m4/timegm.m4: New file.
77365
77366 2003-08-31  Simon Josefsson  <jas@extundo.com>
77367
77368         * lib/timegm.h: New file.
77369         * lib/timegm.c: New file.  Based on
77370         wget-1.8.2/src/http.c:mktime_from_utc.
77371
77372 2003-08-31  Karl Berry  <karl@gnu.org>
77373
77374         * lib/argp.h: update from libc.
77375
77376 2003-08-28  Bruno Haible  <bruno@clisp.org>
77377
77378         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
77379         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
77380         followed by '#define fnmatch fnmatch_posix' gives an error.
77381
77382 2003-08-28  Bruno Haible  <bruno@clisp.org>
77383
77384         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
77385         warning on QNX, which defines O_BINARY to 000000.
77386
77387 2003-08-27  Jim Meyering  <jim@meyering.net>
77388
77389         * m4/mkstemp.m4: Require that the system mkstemp be able to create
77390         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
77391         would fail after 32.  Reported by Danny Levinson.  Details here:
77392         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
77393
77394 2003-08-24  Bruno Haible  <bruno@clisp.org>
77395
77396         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
77397         MSVC7 <stdio.h> is included later.
77398
77399 2003-08-22  Simon Josefsson  <jas@extundo.com>
77400
77401         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
77402
77403 2003-08-20  Karl Berry  <karl@gnu.org>
77404
77405         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
77406
77407 2003-08-20  Bruno Haible  <bruno@clisp.org>
77408
77409         * modules/progname: New file.
77410         * MODULES.html.sh (func_all_modules): Add progname.
77411
77412 2003-08-20  Bruno Haible  <bruno@clisp.org>
77413
77414         * lib/progname.h: New file, from GNU gettext.
77415         * lib/progname.c: New file, from GNU gettext.
77416         * lib/progreloc.c: New file, from GNU gettext.
77417
77418 2003-08-19  Jim Meyering  <jim@meyering.net>
77419
77420         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
77421         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
77422
77423 2003-08-19  Bruno Haible  <bruno@clisp.org>
77424
77425         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
77426         more.
77427
77428 2003-08-19  Bruno Haible  <bruno@clisp.org>
77429
77430         * lib/xstrdup.c: Assume <string.h> exists.
77431
77432 2003-08-18  Paul Eggert  <eggert@twinsun.com>
77433
77434         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
77435         in makefile rules.
77436
77437 2003-08-18  Jim Meyering  <jim@meyering.net>
77438
77439         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
77440         * m4/lib-ld.m4: Likewise.
77441
77442 2003-08-18  Jim Meyering  <jim@meyering.net>
77443
77444         * lib/setenv.h: Indent nested cpp directive.
77445         * lib/vasnprintf.c: Remove trailing blanks.
77446
77447 2003-08-17  Simon Josefsson  <jas@extundo.com>
77448
77449         * modules/xstrndup: New file.
77450         * MODULES.html.sh (func_all_modules): Add xstrndup.
77451
77452 2003-08-17  Simon Josefsson  <jas@extundo.com>
77453
77454         * modules/argp: Fix autoconf macro name. Add more dependencies.
77455
77456 2003-08-17  Simon Josefsson  <jas@extundo.com>
77457
77458         * m4/xstrndup.m4: New file.
77459
77460 2003-08-17  Simon Josefsson  <jas@extundo.com>
77461
77462         * m4/argp.m4: New file.
77463
77464 2003-08-17  Simon Josefsson  <jas@extundo.com>
77465             Bruno Haible  <bruno@clisp.org>
77466
77467         * lib/xstrndup.h: New file.
77468         * lib/xstrndup.c: New file.
77469
77470 2003-08-17  Bruno Haible  <bruno@clisp.org>
77471
77472         * modules/strndup (Files, Include): Add lib/strndup.h.
77473
77474 2003-08-17  Bruno Haible  <bruno@clisp.org>
77475
77476         * modules/euidaccess (Files): Add lib/euidaccess.h.
77477
77478 2003-08-17  Bruno Haible  <bruno@clisp.org>
77479
77480         * lib/strndup.h: New file.
77481
77482 2003-08-17  Bruno Haible  <bruno@clisp.org>
77483
77484         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
77485         like AC_GNU_SOURCE.
77486         * modules/extensions (configure.ac): Comment out the invocation of
77487         gl_USE_SYSTEM_EXTENSIONS.
77488
77489 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77490
77491         Merges from coreutils, etc.
77492         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
77493         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
77494         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
77495         fixing a typo.
77496         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
77497         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
77498
77499 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77500
77501         Document merge from coreutils.
77502         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
77503         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
77504         * modules/utime: Add m4/utimes-null.m4.
77505
77506 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77507
77508         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
77509         space, undoing this 2003-08-12 change:
77510         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
77511
77512 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77513
77514         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
77515         strtoul.c from libc, undoing this 2003-08-12 change:
77516         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
77517
77518 2003-08-16  Jim Meyering  <jim@meyering.net>
77519
77520         Merges from coreutils.
77521         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
77522         prefix.  Adjust cache variables similarly.  Create 500 rather than
77523         just 300 files, to exercise bug on Darwin6.5, too.
77524         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
77525         $missing_dir.
77526         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
77527         AM_SYS_POSIX_TERMIOS.
77528         Reported by mkc@mathdogs.com.
77529         Also change use of $am_cv_sys_posix_termios
77530         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
77531         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
77532         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
77533         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
77534         in /proc/mounts until it finds one with matching device number.  This
77535         is unnecessary when the FILE argument *is* a mount point.  No stat call
77536         is necessary in that case.  So, disable the statvfs-testing code on
77537         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
77538         as RedHat bug# 84846.
77539         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
77540         to 1MB, so as not to render systems with no stack size limit (e.g.,
77541         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
77542         Include <unistd.h>.  On some systems,
77543         it is required for the definition of _SC_PAGESIZE.
77544
77545 2003-08-16  Jim Meyering  <jim@meyering.net>
77546
77547         Merge from coreutils.
77548         * lib/xstrtoimax.c: #else #if -> #elif.
77549         * lib/xstrtoumax.c: Likewise.
77550
77551 2003-08-16  Jim Meyering  <jim@meyering.net>
77552
77553         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
77554         * m4/utimes.m4: Removed.
77555         * m4/utimes-null.m4: Renamed from utimes.m4.
77556
77557         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
77558         to 1MB, so as not to render systems with no stack size limit (e.g.,
77559         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
77560         Include <unistd.h>.  On some systems,
77561         it is required for the definition of _SC_PAGESIZE.
77562
77563 2003-08-16  Jim Meyering  <jim@meyering.net>
77564         and Paul Eggert  <eggert@cs.ucla.edu>
77565
77566         Merges from coreutils, etc.
77567
77568         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
77569         using the latest version from cvs.  This avoids problems with #line
77570         directives using a vendor (Sun) compiler.
77571         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
77572         Don't set GETGROUPS_LIB here; now it's
77573         done via getgroups.m4's wrapper function.
77574         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
77575         rather than just in sh-util/configure.in, so that the
77576         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
77577         same.
77578         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
77579         AC_FUNC_GETLOADAVG where to find getloadavg.c.
77580         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
77581         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
77582         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
77583         Remove code that is now done by the newly-required macros.
77584         Append $(EXEEXT) to DF_PROG.
77585         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
77586         Do not invoke or require the following here,
77587         since prereq.m4 or some gnulib .m4 now does this for us:
77588         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
77589         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
77590         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
77591         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
77592         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
77593         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
77594         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
77595         AC_FUNC_OBSTACK.
77596         Do not replace the following functions, as this is now the job
77597         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
77598         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
77599         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
77600         atexit getpass, strdup, getpagesize.
77601         Replace 'raise'.
77602         Do not check for the following functions, as this is now the job
77603         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
77604         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
77605         setregid.
77606         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
77607         Check for sys/sysctl.h.
77608         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
77609         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
77610         of checking for ssize_t ourselves.
77611
77612         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
77613         Require every macro that gnulib/modules/* suggests for us.
77614         (jm_PREREQ_ADDEXT): New macro.
77615         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
77616         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
77617
77618         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
77619         (gl_PHYSMEM): Use it.
77620         Also check for `table' function.
77621         Check for new headers and functions.
77622         Add check for sys/sysmp.h.
77623         With suggestions from Kaveh Ghazi.
77624         Ignore headers that are present but cannot be compiled.  This
77625         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
77626         C 5.4.
77627
77628 2003-08-15  Paul Eggert  <eggert@twinsun.com>
77629
77630         Document merge from coreutils.
77631         * modules/userspec: Depend on posixver.
77632         * modules/strftime: Depend on tzset.
77633
77634 2003-08-15  Paul Eggert  <eggert@twinsun.com>
77635
77636         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
77637         rather than tab, after '#' in shell-script copyright notices.
77638         Suggested by Bruno Haible.
77639
77640 2003-08-15  Paul Eggert  <eggert@twinsun.com>
77641
77642         * config/srclist-update: Use three spaces, rather than tab, after '#'
77643         in shell-script copyright notices.  Suggested by Bruno Haible.
77644         Remove unnecessary parenthesization in regular expression.
77645
77646 2003-08-15  Jim Meyering  <jim@meyering.net>
77647
77648         Merge from coreutils.
77649         * lib/xgethostname.c: Include <stdlib.h>.
77650         (xghostname): Don't exit for anything other than memory-related
77651         failure; just return NULL.
77652         * lib/userspec.c: Include "posixver.h".
77653         (parse_user_spec): Accept `.' as a separator only
77654         in pre-POSIX-200112 mode.
77655         * lib/strtoimax.c: Use #elif rather than #else #if.
77656         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
77657         Remove function, now that we can rely on a working tzset function.
77658         [!_LIBC]: Ensure that the required autoconf test has been run.
77659         [!defined _NL_CURRENT && HAVE_STRFTIME]:
77660         Use underlying_strftime for %r.
77661         * lib/sha.c: Merge in some clean-up and optimization changes from
77662         glibc.
77663         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
77664         Ensure that it is a multiple of 64.
77665         Rearrange loop exit tests so as to avoid performing an
77666         additional fread after encountering an error or EOF.
77667         * lib/realloc.c: Update copyright date.
77668
77669 2003-08-15  Jim Meyering  <jim@meyering.net>
77670         and Paul Eggert  <eggert@twinsun.com>
77671
77672         Merge from coreutils.
77673         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
77674         member but strut utmpx does not.  Needed for AIX 4.3.3.
77675         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
77676
77677 2003-08-15  Jim Meyering  <jim@meyering.net>
77678         and Paul Eggert  <eggert@cs.ucla.edu>
77679
77680         Merges from coreutils, etc.
77681         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
77682         Require gl_FUNC_TZSET_CLOBBER.
77683         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
77684         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
77685         members.
77686
77687 2003-08-14  Paul Eggert  <eggert@twinsun.com>
77688
77689         Help the merge from coreutils.
77690         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
77691         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
77692         * m4/tzset.m4: Use it too.
77693
77694 2003-08-14  Paul Eggert  <eggert@twinsun.com>
77695
77696         * modules/tzset: New file.
77697
77698 2003-08-14  Jim Meyering  <jim@meyering.net>
77699
77700         Merges from coreutils.
77701         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
77702         variable names, rather than @FNMATCH_H@.
77703         * modules/alloca: Likewise for $(ALLOCA_H).
77704
77705         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
77706         the three copies of the literal target, `fnmatch.h'.
77707         * modules/alloca (alloca.h): Likewise.
77708
77709 2003-08-14  Jim Meyering  <jim@meyering.net>
77710
77711         Merge from coreutils.
77712         * m4/tzset.m4: New file.
77713         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
77714         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
77715         otherwise, AIX 5.1 systems would end up using the latter.
77716         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
77717         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
77718         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
77719         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
77720
77721 2003-08-14  Jim Meyering  <jim@meyering.net>
77722
77723         Merge from coreutils.
77724         * lib/obstack.h: Whitespace changes.
77725         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
77726         and xcalloc return values.
77727         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
77728         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
77729         hang on OSF/1 5.1 for DIR on both local and remote file systems.
77730         Reported by (and fix confirmed by) Nelson H. F. Beebe.
77731         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
77732         error from mntctl.
77733         Use mntctl's return value to drive the entry-processing loop, since
77734         we can't rely on the value of the vmt_length member in the last
77735         entry.  On some systems doing so could result in exhausting
77736         virtual memory.  Based in part on a patch from Mike Jetzer.
77737
77738 2003-08-14  Jim Meyering  <jim@meyering.net>
77739         and Paul Eggert  <eggert@twinsun.com>
77740
77741         Merges from coreutils, plus other fixes.
77742         * lib/physmem.c: Merge in portability changes from gcc/libiberty
77743         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
77744         for credits and details.  Thanks to Kaveh Ghazi for helping
77745         to keep these files in sync.
77746         (ARRAY_SIZE): Define it.
77747         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
77748         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
77749         (memcasecmp): Don't assume size_t fits in unsigned int.
77750         Remove casts and duplicate code.
77751         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
77752         (memcpy): Remove definition.
77753         Merge in some clean-up and optimization changes from glibc.
77754         [BLOCKSIZE]: Move definition to top of file.
77755         Ensure that it is a multiple of 64.
77756         Rearrange loop exit tests so as to avoid performing an
77757         additional fread after encountering an error or EOF.
77758         * lib/md5.h (md5_uintptr): Define.
77759         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
77760         return to the initial working directory.  Preserve errno
77761         for caller.
77762         * lib/idcache.c: Include "xalloc.h".
77763         (xmalloc, xrealloc): Remove decls.
77764         (getuser): Remove casts no longer required in C89.
77765         * lib/human.c: Include stdio.h, for sprintf.
77766         * lib/group-member.c: Include "xalloc.h".
77767         (xmalloc, xrealloc): Remove decls.
77768         (get_group_info): Remove casts no longer required in C89.
77769         * lib/getusershell.c (readname): Remove casts no longer required in
77770         C89.
77771         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
77772         * lib/getline.c: Whitespace fix, from coreutils.
77773
77774 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77775
77776         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
77777         Check for isascii.
77778
77779         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
77780         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
77781         Undo previous (whitespace-only) change.
77782
77783 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77784
77785         * lib/exclude.c: Include <ctype.h>
77786         (IN_CTYPE_DOMAIN): New macro.
77787         (is_space): New fn.
77788         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
77789         and empty lines.
77790
77791         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
77792         Undo previous (whitespace-only) change.
77793
77794 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77795
77796         * config/srclist-update: Change update back to the old behavior,
77797         leaving whitespace alone.  Use one 'sed' command rather than a
77798         pipeline.
77799         (fixlicense): Now a variable, not a function.
77800         (remove_trailing_blanks): Remove.
77801         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
77802         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
77803         Undo previous (whitespace-only) change.
77804
77805 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77806
77807         Merge from coreutils.
77808         * modules/euidaccess: Add lib_SOURCES, include for new
77809         file euidaccess.h
77810
77811 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77812
77813         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
77814         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
77815         Normalize leading white space and remove trailing white space.
77816
77817         Merge from coreutils
77818         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
77819
77820         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
77821         0.12.1.  These files are now being upgraded automatically by
77822         ../config/srclist-update.
77823
77824 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77825
77826         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
77827         Normalize leading white space and remove trailing white space.
77828         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
77829         notice, as per ../config/srclist-update.
77830
77831         Merge from coreutils.
77832         * lib/euidaccess.h: New file.
77833         * lib/euidaccess.c: Include it.
77834         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
77835         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
77836         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
77837
77838 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77839
77840         * config/srclist-update: Add copyright notice.
77841         (remove_id_lines, remove_trailing_blanks): New constants.
77842         (fixfile): Use them to normalize spacing a bit in copied files.
77843         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
77844         Normalize leading white space and remove trailing white space.
77845
77846         * config/texinfo.tex: Sync with texinfo.
77847
77848         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
77849         strtoul.c from libc, to merge coreutils whitespace changes.
77850
77851         * config/srclist.txt: Get the following m4 files from gettext:
77852         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
77853         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
77854         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
77855         wint_t.m4.
77856
77857 2003-08-12  Karl Berry  <karl@gnu.org>
77858
77859         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
77860         been made.
77861
77862 2003-08-11  Paul Eggert  <eggert@twinsun.com>
77863
77864         * modules/gnu-source, m4/gnu-source.m4:
77865         Remove; we're assuming Autoconf 2.54 or later now.
77866         Suggested by Bruno Haible.
77867         * MODULES.html.sh (func_all_modules): Remove gnu-source.
77868
77869 2003-08-11  Bruno Haible  <bruno@clisp.org>
77870
77871         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
77872
77873 2003-08-11  Bruno Haible  <bruno@clisp.org>
77874
77875         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
77876         (vasnprintf): Use it instead of wcslen.
77877
77878 2003-08-11  Bruno Haible  <bruno@clisp.org>
77879
77880         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
77881         value to ensure that _Bool promotes to int. Use #define for _Bool when
77882         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
77883
77884 2003-08-10  Karl Berry  <karl@gnu.org>
77885
77886         * lib/regex.h: update from libc (whitespace fix).
77887
77888 2003-08-09  Paul Eggert  <eggert@twinsun.com>
77889
77890         Merge some files from coreutils.  These changes were
77891         originally made by Jim Meyering.
77892         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
77893         many older Unixes require this.
77894         * lib/alloca.c (alloca): Remove cast to argument of free;
77895         no longer needed in C89.
77896         * lib/alloca_.h, regex.h: Fix white space to match
77897         what GNU indent does.
77898
77899 2003-08-09  Paul Eggert  <eggert@twinsun.com>
77900
77901         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
77902         apparently Emacs's Unicode mode got confused before my 2003-08-05
77903         checkin.
77904
77905 2003-08-08  Paul Eggert  <eggert@twinsun.com>
77906
77907         * m4/extensions.m4: New file.
77908         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
77909         Require gl_USE_SYSTEM_EXTENSIONS.
77910         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
77911         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
77912
77913 2003-08-08  Paul Eggert  <eggert@twinsun.com>
77914
77915         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
77916         * modules/extensions, modules/gnu-source: New files.
77917         * modules/timespec, modules/unlocked-io: Depend on extensions.
77918
77919 2003-08-07  Paul Eggert  <eggert@twinsun.com>
77920
77921         * modules/restrict: New file.
77922         * MODULES.html.sh (func_all_modules): Add restrict.
77923         * modules/regex: Depend on restrict.
77924
77925 2003-08-07  Paul Eggert  <eggert@twinsun.com>
77926
77927         * m4/restrict.m4: New file.
77928         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
77929
77930 2003-08-07  Bruno Haible  <bruno@clisp.org>
77931
77932         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
77933         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
77934
77935 2003-08-07  Bruno Haible  <bruno@clisp.org>
77936
77937         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
77938         makes the module 'getndelim2' compatible with the module 'getline'.
77939
77940 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77941
77942         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
77943         byte with "\201" to avoid glitches when editing that source file
77944         with multi-gnome-terminal.
77945
77946 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77947
77948         * lib/bumpalloc.h: Remove.
77949
77950 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77951
77952         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
77953         * modules/bumpalloc: Remove.
77954
77955 2003-08-04  Paul Eggert  <eggert@twinsun.com>
77956
77957         * lib/getloadavg.c: Change copyright notice and spacing to conform to
77958         GNU coding style.
77959
77960         Merge from coreutils.
77961         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
77962         1. From glibc.
77963         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
77964         from Karl Berry, implemented by Jim Meyering.
77965         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
77966         from Dmitry V. Levin.
77967         Remove anachronistic cast of xrealloc.
77968         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
77969         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
77970         type. Otherwise, it wouldn't compile with at least /bin/cc on
77971         ymp-cray-unicos9.0.2.X.
77972         Combine two mostly-identical uses of alloca into one.
77973         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
77974
77975 2003-08-04  Dave Love  <d.love@dl.ac.uk>
77976
77977         [From Emacs.]
77978
77979         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
77980         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
77981         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
77982         obsolete NLIST_NAME_UNION.
77983         [__GNU__]: Undef BSD and FSCALE.
77984         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
77985
77986 2003-08-03  Paul Eggert  <eggert@twinsun.com>
77987
77988         * lib/stdbool_.h (_Bool): Make it signed char, instead of
77989         an enum type, so that it's guaranteed to promote to int.  See:
77990         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
77991
77992 2003-08-03  Karl Berry  <karl@gnu.org>
77993
77994         * config/depcomp: update from automake.
77995
77996 2003-07-31  Paul Eggert  <eggert@twinsun.com>
77997
77998         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
77999         (strerror): Don't assume that a printable int fits in 14 bytes.
78000
78001 2003-07-31  Bruno Haible  <bruno@clisp.org>
78002
78003         * modules/getpass-gnu: New file.
78004         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
78005
78006 2003-07-31  Bruno Haible  <bruno@clisp.org>
78007
78008         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
78009
78010 2003-07-24  Karl Berry  <karl@gnu.org>
78011
78012         * config/missing: update from automake.
78013
78014 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
78015             Bruno Haible  <bruno@clisp.org>
78016
78017         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
78018         * lib/getline.c (getline, getdelim): Likewise.
78019         Remove _GNU_SOURCE define; now it's defined in config.h through
78020         m4/getline.m4.
78021
78022 2003-07-23  Karl Berry  <karl@gnu.org>
78023
78024         * config/config.sub: update from prep.
78025
78026 2003-07-22  Paul Eggert  <eggert@twinsun.com>
78027
78028         * modules/xalloc (Depends-on): Add exitfail.
78029         * modules/xmemcoll: Likewise.
78030
78031 2003-07-22  Paul Eggert  <eggert@twinsun.com>
78032
78033         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
78034         over-parenthesization in macros.
78035
78036         Sync with coreutils.
78037
78038         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
78039         required by C99.
78040
78041         Use `exit_failure' for xalloc and xmemcoll instead of their own
78042         private exit-failure variables.
78043         * lib/xalloc.h (xalloc_exit_failure): Remove.
78044         * lib/xmalloc.c: Likewise.  Include exitfail.h.
78045         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
78046         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
78047         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
78048         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
78049
78050 2003-07-20  Jim Meyering  <jim@meyering.net>
78051
78052         * modules/closeout (Depends-on): Add exitfail.
78053         Suggestion from Bruno Haible.
78054
78055 2003-07-19  Karl Berry  <karl@gnu.org>
78056
78057         * config/config.sub: update from prep.
78058
78059 2003-07-18  Paul Eggert  <eggert@twinsun.com>
78060
78061         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
78062         Remove.
78063         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
78064         to test that it can stand by itself.  Include "exitfail.h".
78065         Clients should set exit_failure instead.
78066         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
78067
78068 2003-07-18  Bruno Haible  <bruno@clisp.org>
78069
78070         * modules/getndelim2: New file.
78071         * modules/getline: Share files with module getndelim2.
78072         * modules/getnline: Depend on getndelim2 instead of sharing files with
78073         it. Add getnline.c to lib_SOURCES.
78074         * MODULES.html.sh (func_all_modules): Add getndelim2.
78075
78076 2003-07-18  Bruno Haible  <bruno@clisp.org>
78077
78078         * m4/getndelim2.m4: New file.
78079         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
78080         invoke gl_PREREQ_GETNDELIM2.
78081         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
78082         gl_PREREQ_GETNDELIM2.
78083         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
78084         gl_GETNDELIM2.
78085
78086 2003-07-18  Bruno Haible  <bruno@clisp.org>
78087
78088         * lib/getndelim2.h: New file.
78089         * lib/getndelim2.c: Make into a module of its own. Include config.h,
78090         getndelim2.h.
78091         (getndelim2): Make non-static. Change return type to ssize_t.
78092         * lib/getline.h: Change argument names.
78093         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
78094         * lib/getnline.c: Include getndelim2.h.
78095
78096 2003-07-18  Andreas Schwab  <schwab@suse.de>
78097
78098         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
78099
78100 2003-07-17  Karl Berry  <karl@gnu.org>
78101
78102         * config/config.sub: update from prep.
78103
78104 2003-07-17  Bruno Haible  <bruno@clisp.org>
78105
78106         * modules/getnline: New file.
78107         * modules/getline: Add lib/getndelim2.c to source file list.
78108         * MODULES.html.sh (func_all_modules): Add getnline.
78109
78110 2003-07-17  Bruno Haible  <bruno@clisp.org>
78111
78112         * m4/getnline.m4: New file.
78113
78114 2003-07-17  Bruno Haible  <bruno@clisp.org>
78115
78116         * m4/Makefile.am.in: Remove file.
78117         * m4/Makefile.am: Remove file.
78118         * m4/Makefile.in: Remove file.
78119
78120 2003-07-17  Bruno Haible  <bruno@clisp.org>
78121
78122         * lib/getnline.h: New file.
78123         * lib/getnline.c: New file.
78124         * lib/getndelim2.c: New file, extracted from getline.c.
78125         (getndelim2): Renamed from getdelim2, with added nmax argument.
78126         * lib/getline.c: Include getndelim2.c.
78127         (getdelim2): Moved out to getndelim2.c.
78128         (getline, getdelim): Update.
78129
78130 2003-07-17  Bruno Haible  <bruno@clisp.org>
78131
78132         * lib/Makefile.am: Remove file.
78133         * lib/Makefile.in: Remove file.
78134
78135 2003-07-17  Bruno Haible  <bruno@clisp.org>
78136
78137         * configure.in: Remove file.
78138         * Makefile.in: Remove file.
78139
78140 2003-07-17  Bruno Haible  <bruno@clisp.org>
78141
78142         * MODULES.html.sh: Put the </BODY> right before </HTML>.
78143
78144 2003-07-16  Karl Berry  <karl@gnu.org>
78145
78146         * config/srclist-update: was running fixlicense twice, which caused
78147                 texinfo.tex to be nullified for some reason.  Simplify,
78148                 $gplsrc is no longer needed as far as I can see?
78149
78150 2003-07-16  Jim Meyering  <jim@meyering.net>
78151
78152         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
78153
78154 2003-07-15  Paul Eggert  <eggert@twinsun.com>
78155
78156         * config/srclist.txt: Get the following files from gettext-runtime/intl
78157         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
78158         ref-del.sin.  From Bruno Haible.
78159         * config/srclist-update (fixfile): Change grep pattern again, since the
78160         previous fix didn't work (there was another trailing $).  Use
78161         '[$]' to escape the $s.
78162
78163 2003-07-15  Karl Berry  <karl@gnu.org>
78164
78165         * lib/vasnprintf.c: update from gettext.
78166
78167 2003-07-15  Karl Berry  <karl@gnu.org>
78168
78169         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
78170         gets expanded when surrounded by '$'.
78171
78172 2003-07-15  Jim Meyering  <jim@meyering.net>
78173
78174         * modules/save-cwd: Don't depend on error.  From Derek Price.
78175
78176 2003-07-15  Jim Meyering  <jim@meyering.net>
78177
78178         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
78179
78180 2003-07-14  Simon Josefsson  <jas@extundo.com>
78181
78182         * modules/mempcpy: New file.
78183         * MODULES.html.sh (func_all_modules): Add mempcpy.
78184
78185 2003-07-14  Simon Josefsson  <jas@extundo.com>
78186
78187         * m4/mempcpy.m4: New file.
78188
78189 2003-07-14  Simon Josefsson  <jas@extundo.com>
78190
78191         * lib/mempcpy.h: New file.
78192         * lib/mempcpy.c: New file.
78193
78194 2003-07-14  Paul Eggert  <eggert@twinsun.com>
78195
78196         * modules/getdate, modules/posixtm: Depend on mktime.
78197
78198 2003-07-14  Paul Eggert  <eggert@twinsun.com>
78199
78200         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
78201         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
78202         unicodeio.c, unicodeio.h, unlocked-io.h:
78203         Switch from LGPL to GPL.
78204
78205 2003-07-14  Paul Eggert  <eggert@twinsun.com>
78206
78207         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
78208         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
78209         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
78210         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
78211         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
78212         updated automatically by ../config/srclist-update.  This changes
78213         their license from LPGL to GPL.
78214
78215 2003-07-14  Paul Eggert  <eggert@twinsun.com>
78216
78217         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
78218         assumed to refer to the root of the most recent stable gettext version.
78219         * config/srclistvars.sh: Add defaults for eggert.
78220         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
78221         Match "This program" as well as "The program".  This is needed
78222         for gettext.
78223
78224 2003-07-14  Jim Meyering  <jim@meyering.net>
78225
78226         Don't emit diagnostics.  Let callers do that.
78227         * lib/save-cwd.c: Don't include "error.h".
78228         (save_cwd): Don't call error.  Ensure that errno is valid
78229         when returning nonzero.
78230
78231         * lib/save-cwd.h (restore_cwd): Update prototype.
78232         * lib/save-cwd.c (restore_cwd): Remove two parameters.
78233         Simplify.  Don't call error upon failure.  Let callers do that.
78234         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
78235         when auditing is enabled.  But don't bother updating the #if.
78236
78237 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
78238
78239         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
78240         it breaks C++ compilation.
78241         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
78242
78243 2003-07-10  Simon Josefsson  <jas@extundo.com>
78244
78245         * modules/strchrnul (Makefile.am): Add strchrnul.h.
78246
78247 2003-07-10  Jim Meyering  <jim@meyering.net>
78248
78249         * m4/clock_time.m4: Remove trailing blank.
78250         * m4/intmax_t.m4: Likewise.
78251
78252 2003-07-10  Jim Meyering  <jim@meyering.net>
78253
78254         * lib/vasnprintf.c: Remove trailing blanks.
78255         Make cpp indentation consistent.
78256
78257 2003-07-09  Paul Eggert  <eggert@twinsun.com>
78258
78259         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
78260         posixver.c, strftime.c, strnlen.c, strverscmp.c:
78261         Switch from LGPL to GPL.
78262
78263 2003-07-09  Paul Eggert  <eggert@twinsun.com>
78264
78265         * config/srclist.txt: Sort sublists.  Add
78266         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
78267         that differ from gnulib for one reason or another; we'd like this list
78268         to be smaller but for now let's document what we have.
78269
78270 2003-07-08  Paul Eggert  <eggert@twinsun.com>
78271
78272         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
78273         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
78274         and sweeter "eval x=$x".
78275         * config/srclist.txt: Get lib/argp* from glibc.
78276
78277 2003-07-07  Paul Eggert  <eggert@twinsun.com>
78278
78279         * lib/mktime.c: Fix some boundary cases and remove need for floating
78280         point.
78281
78282         Issue a compile-time diagnostic if time_t is floating point, or if
78283         two's complement arithmetic is not in effect, or if arithmetic
78284         right shift does not propagate the sign.  These assumptions were
78285         all in the original code but they weren't checked.
78286
78287         (TIME_T_MIDPOINT, verify): New macros.
78288         (__isleap): Remove; it has integer overflow problems.
78289         (leapyear): New function, without those problems.
78290         (ydhms_tm_diff): Remove; splitting into two parts.
78291         (ydhms_diff): New function, containing the arithmetic part of
78292         the old ydhms_tm_diff function.  Issue a compile-time
78293         diagnostic if we are not using C99 integer division.
78294         Avoid casts when possible.
78295         (guess_time_tm): New function, containing the checking part of
78296         the old ydhms_tm_diff function.  Return the new value, rather than
78297         the difference between it and the old.  Accept a new argument T
78298         so that *T specifies the old value.  Check for overflow in the result.
78299
78300         (__mktime_internal): Use a time_t offset, not a long int offset.
78301         This undoes the 2003-06-04 change, which is no longer needed now
78302         that we have better overflow checking.
78303         (localtime_offset): Likewise.
78304
78305         (__mktime_internal): Avoid harmful overflow on hosts where time_t
78306         and long are 64-bit but int is only 32-bit.
78307         (ydhms_diff): Use long int to store year1 and yday1.
78308         Issue a compile-time diagnostic if long int is not wide enough.
78309
78310         (__mktime_internal): Use long int to store adjusted year and yday.
78311         Use plain C rather than preprocessor commands, if that doesn't
78312         affect efficiency.
78313         Check for overflow (and try to repair) after each probe
78314         rather than checking only at the very end.  This avoids some bugs
78315         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
78316         does not equal GMT offset at maximum time).
78317         Use integer to check for overflow rather than floating point; this
78318         is more portable to non-IEEE hosts, and is a tad faster.
78319         When we detect that we are oscillating between two values,
78320         don't check whether tm_isdst has the requested value, since
78321         we already know the answer.  When tm_isdst has the wrong value,
78322         use a different heuristic to find the right one, based on the
78323         extreme values actually observed in practice in tz2003a,
78324         rather than the (overly optimistic) "previous 3 calendar quarters".
78325
78326         (not_equal_tm, print_tm, check_result): Use "const T" rather than
78327         "T const" to accommodate glibc style.
78328         (check_result): Use less-confusing report format.  "long" -> "long int.
78329         (main): Likewise.
78330         Don't loop if the iteration overflows time_t.
78331         Allow a negative step in the iteration.
78332
78333 2003-07-06  Karl Berry  <karl@gnu.org>
78334
78335         * config/depcomp: update from automake.
78336         * config/config.sub: update from prep.
78337
78338 2003-07-03  Karl Berry  <karl@gnu.org>
78339
78340         * config/config.guess: update from prep.
78341
78342 2003-07-01  Paul Eggert  <eggert@twinsun.com>
78343
78344         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
78345         xreadlink.c now includes it unconditionally.
78346
78347 2003-07-01  Paul Eggert  <eggert@twinsun.com>
78348
78349         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
78350         having it depend on HAVE_SYS_TYPES_H.
78351
78352 2003-07-01  Bruno Haible  <bruno@clisp.org>
78353
78354         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
78355         <sys/types.h> should be sufficient.
78356         Reported by Paul Eggert.
78357
78358 2003-06-26  Karl Berry  <karl@gnu.org>
78359
78360         * config/depcomp: update from automake.
78361
78362 2003-06-26  Bruno Haible  <bruno@clisp.org>
78363
78364         * modules/human: Depend on module stdbool.
78365
78366 2003-06-25  Bruno Haible  <bruno@clisp.org>
78367
78368         * modules/readlink: New file.
78369         * modules/xreadlink: Depend on it.
78370         * MODULES.html.sh (func_all_modules): Add readlink.
78371
78372 2003-06-25  Bruno Haible  <bruno@clisp.org>
78373
78374         * m4/readlink.m4: New file.
78375
78376 2003-06-25  Bruno Haible  <bruno@clisp.org>
78377
78378         * lib/readlink.c: New file.
78379
78380 2003-06-22  Karl Berry  <karl@gnu.org>
78381
78382         * config/srclist.txt: update mkinstalldirs from automake.
78383         * config/mkinstalldirs: update.
78384
78385 2003-06-22  Bruno Haible  <bruno@clisp.org>
78386
78387         Portability to mingw32.
78388         * m4/ssize_t.m4: New file, from GNU gettext.
78389         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
78390         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
78391
78392 2003-06-22  Bruno Haible  <bruno@clisp.org>
78393
78394         * modules/safe-read: Add m4/ssize_t.m4.
78395         * modules/xreadlink: Add m4/ssize_t.m4.
78396
78397 2003-06-20  Bruno Haible  <bruno@clisp.org>
78398
78399         Assume C89, so PARAMS isn't needed.
78400         * lib/unicodeio.h (PARAMS): Remove.
78401         * lib/unicodeio.c: Don't use PARAMS.
78402
78403 2003-06-18  Karl Berry  <karl@gnu.org>
78404
78405         * config/config.{guess,sub}: update from prep.
78406
78407 2003-06-18  Jim Meyering  <jim@meyering.net>
78408
78409         Merge changes from coreutils.
78410         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
78411         Remove explicit declarations of xmalloc and realloc.
78412         Include xalloc.h.
78413         (read_utmp): Remove anachronistic cast of xmalloc.
78414
78415 2003-06-17  Paul Eggert  <eggert@twinsun.com>
78416
78417         Assume C89, so PARAMS isn't needed.
78418         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
78419         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
78420         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
78421         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
78422         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
78423         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
78424         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
78425         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
78426         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
78427         lib/xstrtod.h, lib/xstrtol.h: Likewise.
78428         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
78429         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
78430         no longer needed. Anyway, config.h should always be included before any
78431         other file.
78432
78433 2003-06-11  Simon Josefsson  <jas@extundo.com>
78434
78435         * modules/sysexits: New file.
78436         * MODULES.html.sh (func_all_modules): Add sysexits.
78437
78438 2003-06-11  Simon Josefsson  <jas@extundo.com>
78439
78440         * lib/sysexit_.h: New file.
78441
78442 2003-06-11  Derek Price  <derek@ximbiot.com>
78443
78444         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
78445         necessary.
78446
78447 2003-06-11  Bruno Haible  <bruno@clisp.org>
78448
78449         * m4/sysexits.m4: New file.
78450
78451 2003-06-10  Simon Josefsson  <jas@extundo.com>
78452
78453         * lib/argp.h: New file, from glibc.
78454         * lib/argp-ba.c: New file, from glibc.
78455         * lib/argp-eexst.c: New file, from glibc.
78456         * lib/argp-fmtstream.c: New file, from glibc.
78457         * lib/argp-fmtstream.h: New file, from glibc.
78458         * lib/argp-fs-xinl.c: New file, from glibc.
78459         * lib/argp-help.c: New file, from glibc.
78460         * lib/argp-namefrob.h: New file, from glibc.
78461         * lib/argp-parse.c: New file, from glibc.
78462         * lib/argp-pv.c: New file, from glibc.
78463         * lib/argp-pvh.c: New file, from glibc.
78464         * lib/argp-xinl.c: New file, from glibc.
78465
78466 2003-06-10  Simon Josefsson  <jas@extundo.com>
78467
78468         * modules/strchrnul: New file.
78469
78470 2003-06-10  Simon Josefsson  <jas@extundo.com>
78471
78472         * modules/argp: New file.
78473
78474 2003-06-10  Simon Josefsson  <jas@extundo.com>
78475
78476         * m4/strchrnul.m4: New file.
78477
78478 2003-06-10  Simon Josefsson  <jas@extundo.com>
78479
78480         * lib/strchrnul.h: New file.
78481         * lib/strchrnul.c: New file.
78482
78483 2003-06-10  Bruno Haible  <bruno@clisp.org>
78484
78485         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
78486
78487 2003-06-07  Karl Berry  <karl@gnu.org>
78488
78489         * config/config.{guess,sub}: update from prep.
78490
78491 2003-06-07  Jim Meyering  <jim@meyering.net>
78492
78493         * modules/strtod: Use $(...) notation, not @...@ for
78494         AC_REPLACE'd variables.
78495         * modules/localcharset: Likewise.
78496
78497 2003-06-07  Jim Meyering  <jim@meyering.net>
78498
78499         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
78500         in place of my name in the copyright comment.
78501         Remove definition and uses of __P.
78502
78503         From coreutils.
78504         * lib/stat.c: Don't declare xmalloc explicitly.
78505         Instead, include "xalloc.h".
78506         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
78507         xrealloc, and xcalloc return values.
78508         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
78509         Improve comment.
78510         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
78511
78512 2003-06-07  Bruno Haible  <bruno@clisp.org>
78513
78514         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
78515         avoid AC_CONFIG_LINKS.
78516         * modules/fnmatch (Makefile.am): Use explicit creation rule for
78517         fnmatch.h, to avoid AC_CONFIG_LINKS.
78518         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
78519
78520 2003-06-07  Bruno Haible  <bruno@clisp.org>
78521
78522         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
78523         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
78524         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
78525         directory.
78526         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
78527         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
78528         directory.
78529
78530 2003-06-06  Jim Meyering  <jim@meyering.net>
78531
78532         Merge from coreutils.
78533         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
78534         Consolidate declarations and initializations of *_base* locals.
78535
78536         Merge from coreutils.
78537         This avoids a core dump on systems without GNU putenv,
78538         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
78539         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
78540         (unsetenv): New static function, from GNU libc.
78541         (rpl_putenv): Use it.
78542
78543         * lib/modechange.c: Remove trailing blanks.
78544
78545         Merge from coreutils.
78546         * lib/fsusage.c: Remove declaration of statfs.
78547         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
78548
78549         * lib/posixtm.c: Include <stdbool.h> unconditionally.
78550
78551 2003-06-06  Jim Meyering  <jim@meyering.net>
78552
78553         * lib/stdbool_.h: Renamed from stdbool.h.in.
78554
78555 2003-06-06  Jim Meyering  <jim@meyering.net>
78556             Bruno Haible  <bruno@clisp.org>
78557
78558         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
78559         Adjust Makefile.am snippet not to redirect directly to target.
78560         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
78561
78562 2003-06-05  Paul Eggert  <eggert@twinsun.com>
78563
78564         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
78565         mismatch, look in future quarters as well as past.  This fixes a
78566         bug when processing fall-backwards gaps immediately after a long
78567         period of daylight-saving time.
78568
78569         * lib/mktime.c: Assume freestanding C89 or better.
78570         (HAVE_LIMITS_H): Remove.  Assume it's 1.
78571         (__P): Remove; not used.
78572         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
78573         (mktime, not_equal_tm, print_tm, check_result,
78574         main): Use prototypes.  Use const * where appropriate.
78575         (main): Fix typo in testing code that uncovered by above changes.
78576         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
78577
78578 2003-06-04  Paul Eggert  <eggert@twinsun.com>
78579
78580         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
78581         locale.h, localeconv.  This merges changes from coreutils.
78582
78583         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
78584         It can be removed after the next Autoconf is released.
78585         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
78586         needed.
78587
78588 2003-06-04  Paul Eggert  <eggert@twinsun.com>
78589
78590         * lib/mktime.c: Fix Debian bug 177940
78591         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
78592         (localtime_offset): Now long int, not time_t, because we want it
78593         to be guaranteed to be signed.  All uses changed.
78594         (__mktime_internal): If overflow would occur when adding offset,
78595         don't add it.
78596
78597         Merge 'human' changes from coreutils.  Rewrite to support
78598         locale-specific notations like thousands separators.
78599         * lib/human.c: Simplify authorship notice.
78600         Include human.h immediately after config.h.
78601         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
78602         <limits.h>: Do not include, since human.h does.
78603         (SIZE_MAX, UINTMAX_MAX): New macros.
78604         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
78605         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
78606         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
78607         (power_letter): Renamed from suffixes.
78608         (generate_suffix_backwards): Remove.
78609         (adjust_value): Now takes int style (because of human.h changes)
78610         and long double value (for greater precision on some platforms).
78611         (group_number): New function.
78612         (human_readable): Use it.  Use integer options, not enum.
78613         Put the options before the sizes in the arg list.
78614         Support all the new options.
78615         The old human_readable function has been removed;
78616         use inttostr.h instead.
78617         (human_readable, default_block_size, humblock):
78618         Use uintmax_t, not int, for block sizes.
78619         (human_readable_inexact, block_size_types): Remove.
78620         (block_size_opts): New constant.
78621         (human_options): Renamed from human_block_size, with new signature
78622         that allows block sizes up to UINTMAX_MAX.  All callers changed.
78623         * lib/human.h: Add copyright and authorship notice.
78624         Include <limits.h> and <stdbool.h> unconditionally.
78625         (PARAMS): Remove.  All uses removed.
78626         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
78627         (enum human_inexact_style): Remove tag; now a nameless enum.
78628         (human_floor, human_ceiling, human_round_to_even): Now have
78629         values 2, 0, 1 rather than -1, 1, 0.
78630         (human_group_digits, human_suppress_point_zero, human_autoscale,
78631         human_base_1024, human_SI, human_B): New constants.
78632         (human_readable_inexact, human_block_size): Remove.
78633         (human_readable): Size args are now uintmax_t, not int.
78634         (human_options): New decl.
78635
78636         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
78637         unnecessary now that we assume C89 or better.  This change
78638         imported from coreutils.
78639
78640         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
78641         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
78642         in the 2003-05-30 sync from glibc.
78643
78644         .h files should stand alone, but we shouldn't include <sys/types.h>
78645         if we can get away with just <stddef.h>.
78646
78647         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
78648         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
78649         rather than <sys/types.h>, as we merely need size_t.
78650         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
78651         to get size_t.
78652         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
78653         Include <stdio.h>, to get FILE.
78654         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
78655         memcasecmp.h has included <stddef.h> and all we need is size_t.
78656         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
78657         our interface, instead of including <sys/types.h>
78658
78659 2003-06-04  Paul Eggert  <eggert@twinsun.com>
78660
78661         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
78662         now, as glibc mktime is buggy on non-glibc systems.
78663
78664 2003-06-03  Karl Berry  <karl@gnu.org>
78665
78666         * config/config.sub: update from prep.
78667
78668 2003-06-02  Paul Eggert  <eggert@twinsun.com>
78669
78670         [from coreutils]
78671         Fix some minor time-related bugs with POSIX time arguments.
78672         Some valid time stamps were being rejected (notably -1, and
78673         time stamps before 1900 on 64-bit hosts).  And some invalid
78674         time stamps were being accepted, e.g. September 31.
78675
78676         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
78677         that we can return (time_t) -1 successfully.
78678         * lib/posixtm.c: Likewise.
78679         [HAVE_STDBOOL_H]: Include <stdbool.h>.
78680         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
78681         (t): Remove static var.
78682         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
78683         of static var.  All uses changed.
78684         (year): Do not reject years before 1900; they can occur with
78685         64-bit time_t.
78686         (posix_time_parse): Do not check for out-of-range components;
78687         that is now the caller's responsibility, since our checks were
78688         only approximations.
78689         (posixtime): Use mktime to check for out-of-range components,
78690         since it knows them exactly.
78691         If mktime returns (time_t) -1, check whether an error actually occurred
78692         by invoking localtime on -1.
78693         (main) [TEST_POSIXTIME]: Check for input data errors, and report
78694         posixtime failures better.
78695         Improve the test data (in comments only).
78696
78697 2003-06-02  Karl Berry  <karl@gnu.org>
78698
78699         * config/mkinstalldirs (version): new variable.
78700         (--version): new option.
78701         (usage): improve message.
78702
78703 2003-05-30  Karl Berry  <karl@gnu.org>
78704
78705         * lib/mktime.c: update from libc.
78706
78707 2003-05-30  Bruno Haible  <bruno@clisp.org>
78708
78709         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
78710         * config/config.rpath: Upgrade to gettext-0.12.1.
78711
78712 2003-05-30  Bruno Haible  <bruno@clisp.org>
78713
78714         * m4/gettext.m4: Upgrade to gettext-0.12.1.
78715         * m4/nls.m4: New file, from gettext-0.12.1.
78716         * m4/po.m4: New file, from gettext-0.12.1.
78717         * m4/progtest.m4: Upgrade to gettext-0.12.1.
78718
78719 2003-05-30  Bruno Haible  <bruno@clisp.org>
78720
78721         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
78722         * lib/localcharset.h: Likewise.
78723         * lib/localcharset.c: Likewise.
78724
78725 2003-05-29  Karl Berry  <karl@gnu.org>
78726
78727         * config/config.rpath: update from gettext.
78728
78729 2003-05-28  Paul Eggert  <eggert@twinsun.com>
78730
78731         Assume the headers required for C89 freestanding compilers.
78732         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
78733         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
78734         * m4/human.m4 (gl_HUMAN): Likewise.
78735         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
78736         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
78737         * m4/userspec.m4 (gl_USERSPEC): Likewise.
78738         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
78739         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78740         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
78741
78742 2003-05-28  Paul Eggert  <eggert@twinsun.com>
78743
78744         Assume the headers required for C89 freestanding compilers.
78745         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
78746         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
78747         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
78748         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
78749         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
78750         define, since <limits.h> is guaranteed to do that.
78751         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
78752         * lib/exclude.c: Include <stdbool.h> unconditionally.
78753         * lib/tempname.c: Include <stddef.h> unconditionally.
78754         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
78755         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
78756         <stddef.h> does that.
78757         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
78758         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
78759         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
78760         needed.
78761         * lib/xstrtol.c: Likewise.
78762         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
78763         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
78764
78765         * lib/addext.c (addext): Use assignment rather than cast, to avoid
78766         warnings on some platforms.
78767
78768         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
78769         arbitrarily.
78770
78771 2003-05-26  Jim Meyering  <jim@meyering.net>
78772
78773         Merge in a change from coreutils:
78774         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
78775         that is guaranteed to be `no'.  Use `no_such_member' to indicate
78776         that condition, rather than `-1' which is slightly misleading.
78777         Change the name of the cache variable to have the gl_ prefix.
78778         Prompted by a patch from Richard Dawe for DJGPP.
78779
78780 2003-05-24  Karl Berry  <karl@gnu.org>
78781
78782         * config/config.guess: update from prep.
78783
78784 2003-05-22  Karl Berry  <karl@gnu.org>
78785
78786         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
78787
78788 2003-05-20  Karl Berry  <karl@gnu.org>
78789
78790         * config/config.guess: update from prep.
78791
78792 2003-05-18  Karl Berry  <karl@gnu.org>
78793
78794         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
78795         might actually be set by the user.
78796
78797         * config/depcomp, install-sh, mdate-sh: update from automake.
78798
78799 2003-05-17  Bruno Haible  <bruno@clisp.org>
78800
78801         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
78802         invalid expansion for AC_EGREP_CPP.
78803         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
78804         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
78805         Suggested by Akim Demaille <akim@epita.fr> in
78806         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
78807
78808 2003-05-12  Jim Meyering  <jim@meyering.net>
78809
78810         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
78811         the space-padded-by-default conversion specifiers, %e, %k, %l.
78812
78813 2003-05-12  Bruno Haible  <bruno@clisp.org>
78814
78815         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
78816         the string is longer than 4 KB.
78817
78818 2003-05-11  Karl Berry  <karl@gnu.org>
78819
78820         * config/config.{guess,sub}: update from prep.
78821
78822 2003-05-09  Bruno Haible  <bruno@clisp.org>
78823
78824         * modules/error: Add m4/strerror_r.m4 to file list.
78825
78826 2003-05-03  Bruno Haible  <bruno@clisp.org>
78827
78828         Upgrade to Unicode-4.0.
78829         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
78830         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
78831         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
78832         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
78833         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
78834         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
78835         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
78836         Change width of U+E0100..U+E01EF from 1 to 0.
78837
78838 2003-04-25  Jim Meyering  <jim@meyering.net>
78839
78840         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
78841         of type size_t, not int.
78842
78843 2003-04-25  Bruno Haible  <bruno@clisp.org>
78844
78845         * lib/copy-file.c: Include <stddef.h>, for size_t.
78846
78847 2003-04-21  Paul Eggert  <eggert@twinsun.com>
78848
78849         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
78850         code which expansion is under static control.  Patch imported from
78851         Akim Demaille's patch to Bison; see
78852         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
78853
78854 2003-04-14  Bruno Haible  <bruno@clisp.org>
78855
78856         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
78857
78858 2003-04-11  Jim Meyering  <jim@meyering.net>
78859
78860         Merge changes from Coreutils.
78861
78862         2003-03-22  Jim Meyering  <jim@meyering.net>
78863
78864         * lib/strftime.c (widen): Cast alloca return value to proper type.
78865
78866         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
78867
78868         From GNU libc.
78869         * lib/strftime.c (my_strftime): Handle very large width
78870         specifications for numeric values correctly.  Improve checks for
78871         overflow.
78872
78873         2003-01-19  Jim Meyering  <jim@meyering.net>
78874
78875         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
78876         definitions.
78877         (nl_get_alt_digit) [! defined my_strftime]: Define.
78878         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
78879         _nl_get_alt_digit and _nl_get_walt_digit.
78880
78881         * lib/strftime.c (my_strftime): Merge in locale-related changes from
78882         libc. These changes have no effect outside of _LIBC.
78883
78884 2003-04-10  Bruno Haible  <bruno@clisp.org>
78885
78886         * modules/findprog: New file.
78887         * MODULES.html.sh (func_all_modules): Add it.
78888
78889 2003-04-10  Bruno Haible  <bruno@clisp.org>
78890
78891         * m4/findprog.m4: New file.
78892         * m4/eaccess.m4: New file.
78893
78894 2003-04-10  Bruno Haible  <bruno@clisp.org>
78895
78896         * lib/findprog.h: New file, from GNU gettext.
78897         * lib/findprog.c: New file, from GNU gettext.
78898
78899 2003-04-05  Jim Meyering  <jim@meyering.net>
78900
78901         Merge changes from Coreutils.
78902
78903         * lib/exclude.h (PARAMS): Remove definition and uses.
78904         * lib/exclude.c: Remove uses of `PARAMS'.
78905
78906         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
78907         Add test-cases for DOS filenames. Declare program_name.
78908         (main): Set up program_name.  Patch by Rich Dawe.
78909
78910         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
78911         error from mntctl.
78912         Use mntctl's return value to drive the entry-processing loop, since
78913         we can't rely on the value of the vmt_length member in the last
78914         entry.  On some systems doing so could result in exhausting
78915         virtual memory.  Based in part on a patch from Mike Jetzer.
78916
78917 2003-04-04  Bruno Haible  <bruno@clisp.org>
78918
78919         * modules/linebreak: New file.
78920         * MODULES.html.sh (func_all_modules): Add it.
78921
78922 2003-04-04  Bruno Haible  <bruno@clisp.org>
78923
78924         * m4/linebreak.m4: New file.
78925
78926 2003-04-04  Bruno Haible  <bruno@clisp.org>
78927
78928         * lib/linebreak.h: New file, from GNU gettext.
78929         * lib/linebreak.c: New file, from GNU gettext with slight
78930         modifications.
78931         * lib/lbrkprop.h: New file, from GNU gettext.
78932
78933 2003-04-03  Bruno Haible  <bruno@clisp.org>
78934
78935         * modules/utf8-ucs4: New file.
78936         * modules/utf16-ucs4: New file.
78937         * modules/ucs4-utf8: New file.
78938         * modules/ucs4-utf16: New file.
78939         * MODULES.html.sh (func_all_modules): Add them.
78940
78941 2003-04-03  Bruno Haible  <bruno@clisp.org>
78942
78943         * m4/utf-ucs4.m4: New file.
78944         * m4/ucs4-utf.m4: New file.
78945
78946 2003-04-03  Bruno Haible  <bruno@clisp.org>
78947
78948         * lib/utf8-ucs4.h: New file, from GNU gettext.
78949         * lib/utf16-ucs4.h: New file, from GNU gettext.
78950         * lib/ucs4-utf8.h: New file, from GNU gettext.
78951         * lib/ucs4-utf16.h: New file, from GNU gettext.
78952
78953 2003-04-02  Bruno Haible  <bruno@clisp.org>
78954
78955         * modules/binary-io: New file.
78956         * MODULES.html.sh (func_all_modules): Add it.
78957
78958 2003-04-02  Bruno Haible  <bruno@clisp.org>
78959
78960         * lib/binary-io.h: New file, from GNU gettext.
78961
78962 2003-04-01  Bruno Haible  <bruno@clisp.org>
78963
78964         * modules/pathname: New file.
78965         * MODULES.html.sh (func_all_modules): Add it.
78966
78967 2003-04-01  Bruno Haible  <bruno@clisp.org>
78968
78969         * lib/pathname.h: New file, from GNU gettext.
78970         * lib/concatpath.c: New file, from GNU gettext.
78971
78972 2003-03-30  Bruno Haible  <bruno@clisp.org>
78973
78974         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
78975
78976 2003-03-30  Bruno Haible  <bruno@clisp.org>
78977
78978         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
78979         function chown() doesn't exist.
78980
78981 2003-03-28  Bruno Haible  <bruno@clisp.org>
78982
78983         * modules/copy-file: New file.
78984         * MODULES.html.sh (func_all_modules): Add it.
78985
78986 2003-03-28  Bruno Haible  <bruno@clisp.org>
78987
78988         * m4/copy-file.m4: New file.
78989
78990 2003-03-28  Bruno Haible  <bruno@clisp.org>
78991
78992         * lib/copy-file.h: New file, from GNU gettext.
78993         * lib/copy-file.c: New file, from GNU gettext.
78994
78995 2003-03-18  Jim Meyering  <jim@meyering.net>
78996
78997         * lib/quote.c (quote_n): Fix typo in comment.
78998
78999 2003-03-18  Bruno Haible  <bruno@clisp.org>
79000
79001         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
79002         checking.
79003         * m4/onceonly_2_57.m4: Likewise.
79004
79005 2003-03-17  Bruno Haible  <bruno@clisp.org>
79006
79007         * m4/onceonly.m4: Require autoconf 2.54 or newer.
79008         (m4_quote): Remove macro.
79009         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
79010
79011 2003-03-14  Jim Meyering  <jim@meyering.net>
79012
79013         Merge changes from Coreutils.
79014         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
79015         to be const, in order to avoid warnings.
79016         (obstack_room): Likewise.
79017         (obstack_empty_p): Likewise.
79018
79019 2003-03-14  Bruno Haible  <bruno@clisp.org>
79020
79021         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
79022         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
79023
79024 2003-03-13  Paul Eggert  <eggert@twinsun.com>
79025
79026         Merge changes from Bison.
79027         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
79028         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
79029         when compiling Bison 1.875's `bitset bset = obstack_alloc
79030         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
79031         * lib/hash.c: Include <stdbool.h> unconditionally.
79032
79033 2003-03-13  Paul Eggert  <eggert@twinsun.com>
79034
79035         * m4/onceonly.m4 (m4_quote): New macro.
79036         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
79037         Quote AC_FOREACH variable-expansions properly.
79038
79039 2003-03-13  Paul Eggert  <eggert@twinsun.com>
79040
79041         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
79042
79043 2003-03-09  Paul Eggert  <eggert@twinsun.com>
79044
79045         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
79046         Reported by Bruce Becker; see:
79047         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
79048
79049 2003-03-03  Paul Eggert  <eggert@twinsun.com>
79050             Bruno Haible  <bruno@clisp.org>
79051
79052         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
79053         Reported by John Hughes, see
79054         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
79055
79056 2003-02-20  Bruno Haible  <bruno@clisp.org>
79057
79058         * MODULES.html.sh (func_all_modules): Add poll.
79059
79060 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
79061
79062         * modules/poll: New file.
79063
79064 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
79065
79066         * lib/poll_.h: New file.
79067         * lib/poll.c: New file.
79068
79069 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
79070
79071         * m4/poll.m4: New file.
79072
79073 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
79074
79075         * modules/mathl: New file.
79076
79077 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
79078
79079         * lib/mathl.h: New file.
79080         * lib/acosl.c: New file.
79081         * lib/asinl.c: New file.
79082         * lib/atanl.c: New file.
79083         * lib/ceill.c: New file.
79084         * lib/cosl.c: New file.
79085         * lib/expl.c: New file.
79086         * lib/floorl.c: New file.
79087         * lib/frexpl.c: New file.
79088         * lib/ldexpl.c: New file.
79089         * lib/logl.c: New file.
79090         * lib/sincosl.c: New file.
79091         * lib/sinl.c: New file.
79092         * lib/sqrtl.c: New file.
79093         * lib/tanl.c: New file.
79094         * lib/trigl.c: New file.
79095         * lib/trigl.h: New file.
79096
79097 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
79098
79099         * m4/mathl.m4: New file.
79100
79101 2003-02-18  Bruno Haible  <bruno@clisp.org>
79102
79103         * MODULES.html.sh (func_all_modules): Add mathl.
79104
79105 2003-02-17  Bruno Haible  <bruno@clisp.org>
79106
79107         * modules/mkdtemp: New module.
79108         * MODULES.html.sh (func_all_modules): Add it.
79109
79110 2003-02-17  Bruno Haible  <bruno@clisp.org>
79111
79112         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
79113
79114 2003-02-17  Bruno Haible  <bruno@clisp.org>
79115
79116         * lib/mkdtemp.h: New file, from GNU gettext.
79117         * lib/mkdtemp.c: New file, from GNU gettext.
79118
79119 2003-02-02  Jim Meyering  <jim@meyering.net>
79120
79121         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
79122         e.g. glibc-2.2.93.
79123
79124 2003-01-31  Bruno Haible  <bruno@clisp.org>
79125
79126         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
79127         'rpl_rename'.
79128         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
79129         'rpl_strnlen'.
79130         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
79131         'rpl_strtod'.
79132         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
79133         'rpl_utime'.
79134
79135 2003-01-31  Bruno Haible  <bruno@clisp.org>
79136
79137         * lib/rename.c: #undef rename before defining rpl_rename.
79138         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
79139
79140 2003-01-30  Bruno Haible  <bruno@clisp.org>
79141
79142         * modules/vasnprintf, modules/vasprintf: New modules.
79143         * MODULES.html.sh (func_all_modules): Add them.
79144
79145 2003-01-30  Bruno Haible  <bruno@clisp.org>
79146
79147         * m4/signed.m4: New file, from GNU gettext.
79148         * m4/longdouble.m4: New file, from GNU gettext.
79149         * m4/wchar_t.m4: New file, from GNU gettext.
79150         * m4/wint_t.m4: New file, from GNU gettext.
79151         * m4/vasnprintf.m4: New file.
79152         * m4/vasprintf.m4: New file.
79153
79154 2003-01-30  Bruno Haible  <bruno@clisp.org>
79155
79156         * lib/printf-args.h: New file, from GNU gettext.
79157         * lib/printf-args.c: New file, from GNU gettext.
79158         * lib/printf-parse.h: New file, from GNU gettext.
79159         * lib/printf-parse.c: New file, from GNU gettext.
79160         * lib/vasnprintf.h: New file, from GNU gettext.
79161         * lib/vasnprintf.c: New file, from GNU gettext.
79162         * lib/asnprintf.c: New file, from GNU gettext.
79163         * lib/vasprintf.h: New file, from GNU gettext with modifications.
79164         * lib/vasprintf.c: New file, from GNU gettext.
79165         * lib/asprintf.c: New file, from GNU gettext.
79166
79167 2003-01-29  Bruno Haible  <bruno@clisp.org>
79168
79169         * modules/stpncpy: New module.
79170         * MODULES.html.sh (func_all_modules): Add it.
79171
79172 2003-01-29  Bruno Haible  <bruno@clisp.org>
79173
79174         * m4/stpncpy.m4: New file.
79175
79176 2003-01-29  Bruno Haible  <bruno@clisp.org>
79177
79178         * lib/stpncpy.h: New file, from GNU gettext with modifications.
79179         * lib/stpncpy.c: New file, from GNU gettext with modifications.
79180
79181 2003-01-28  Bruno Haible  <bruno@clisp.org>
79182
79183         * modules/c-ctype: New module.
79184         * MODULES.html.sh (func_all_modules): Add it.
79185
79186 2003-01-28  Bruno Haible  <bruno@clisp.org>
79187
79188         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
79189         Paul Eggert.
79190         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
79191         Paul Eggert.
79192
79193 2003-01-27  Bruno Haible  <bruno@clisp.org>
79194
79195         * modules/xsetenv: New module.
79196         * MODULES.html.sh (func_all_modules): Add it.
79197
79198 2003-01-27  Bruno Haible  <bruno@clisp.org>
79199
79200         * lib/xsetenv.h: New file, from GNU gettext.
79201         * lib/xsetenv.c: New file, from GNU gettext.
79202
79203 2003-01-23  Jim Meyering  <jim@meyering.net>
79204
79205         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
79206         from working on systems without dirfd (at least Irix and OSF1/Tru64).
79207
79208 2003-01-23  Bruno Haible  <bruno@clisp.org>
79209
79210         * modules/minmax: New module.
79211         * MODULES.html.sh (func_all_modules): Add it.
79212
79213 2003-01-23  Bruno Haible  <bruno@clisp.org>
79214
79215         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
79216         Eggert.
79217
79218 2003-01-22  Bruno Haible  <bruno@clisp.org>
79219
79220         * modules/exit: New module.
79221         * MODULES.html.sh (func_all_modules): Add it.
79222
79223 2003-01-22  Bruno Haible  <bruno@clisp.org>
79224
79225         * lib/exit.h: New file, from GNU gettext.
79226
79227 2003-01-19  Bruno Haible  <bruno@clisp.org>
79228
79229         * gnulib-tool: Recognize option --extract-maintainer.
79230         (func_get_maintainer): New function.
79231         * modules/*: Add Maintainer entry.
79232
79233 2003-01-16  Jim Meyering  <jim@meyering.net>
79234
79235         * m4/regex.m4: The `regex' struct is both input and output.
79236         Initialize it before each use.  Patch by Tim Waugh.
79237
79238 2003-01-16  Bruno Haible  <bruno@clisp.org>
79239
79240         * MODULES.html.sh: Add a table of contents. Add the module name as
79241         leftmost column. Add hyperlinks.
79242
79243 2003-01-15  Bruno Haible  <bruno@clisp.org>
79244
79245         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
79246
79247 2003-01-15  Bruno Haible  <bruno@clisp.org>
79248
79249         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
79250         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
79251         suffix.
79252
79253 2003-01-15  Bruno Haible  <bruno@clisp.org>
79254
79255         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
79256
79257 2003-01-15  Bruno Haible  <bruno@clisp.org>
79258
79259         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
79260         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
79261
79262 2003-01-14  Jim Meyering  <jim@meyering.net>
79263
79264         * lib/same.c (same_name): Tweak a comment.
79265
79266 2003-01-14  Bruno Haible  <bruno@clisp.org>
79267
79268         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
79269         when a string comparison is sufficient.
79270
79271 2003-01-14  Bruno Haible  <bruno@clisp.org>
79272
79273         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
79274         'unsigned int'.
79275
79276 2003-01-14  Bruno Haible  <bruno@clisp.org>
79277
79278         * lib/hash-pjw.c: Add comment about low quality of this function.
79279
79280 2003-01-13  Bruno Haible  <bruno@clisp.org>
79281
79282         * modules/stpcpy: Distribute lib/stpcpy.h.
79283         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
79284
79285 2003-01-13  Bruno Haible  <bruno@clisp.org>
79286
79287         * modules/*: Add a description.
79288         * modules/strpbrk: Fix Makefile.am snippet.
79289         * modules/strtoimax: Fix dependencies.
79290         * modules/strtoumax: Likewise.
79291
79292 2003-01-13  Bruno Haible  <bruno@clisp.org>
79293
79294         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
79295         * modules/alloca (Makefile.am): All object files depend on alloca.h.
79296         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
79297
79298 2003-01-13  Bruno Haible  <bruno@clisp.org>
79299
79300         * gnulib-tool (func_create_testdir): Store config/* files in the main
79301         directory.
79302         * config.rpath: Move to ...
79303         * config/config.rpath: ... here.
79304         * modules/gettext: Contains config/config.rpath, not config.rpath.
79305         * modules/iconv: Likewise.
79306
79307 2003-01-12  Paul Eggert  <eggert@twinsun.com>
79308
79309         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
79310         to avoid collisions with libcurses and libreadline.
79311
79312         * m4/getstr.m4: Remove.
79313         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
79314
79315 2003-01-12  Paul Eggert  <eggert@twinsun.com>
79316
79317         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
79318         to avoid collisions with libcurses and libreadline.
79319
79320         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
79321         * lib/getstr.h, getstr.c: Remove.
79322         * lib/getline.c: Include "getline.h", to check interface.
79323         Move body of old getstr.c here: this defines MIN_CHUNK and
79324         declares getdelim2, which is renamed from getstr.
79325         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
79326
79327         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
79328         All uses changed.
79329         * lib/linebuffer.h: Likewise.
79330         (readline): Remove backward-compatibility macro.
79331
79332 2003-01-12  Paul Eggert  <eggert@twinsun.com>
79333
79334         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
79335         to avoid collisions with libcurses and libreadline.
79336         * getstr: Remove.
79337         * MODULES.html.sh: Remove getstr.
79338         * modules/getline: Depend on unlocked-io, not getstr.
79339
79340 2003-01-12  Jim Meyering  <jim@meyering.net>
79341
79342         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
79343
79344 2003-01-10  Bruno Haible  <bruno@clisp.org>
79345
79346         * modules/alloca: Change Makefile.am requirements. Simplify Include
79347         requirements. Add lib/alloca_.h to file list.
79348
79349 2003-01-10  Bruno Haible  <bruno@clisp.org>
79350
79351         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
79352
79353 2003-01-10  Bruno Haible  <bruno@clisp.org>
79354
79355         * lib/alloca_.h: New file.
79356         * lib/getdate.y: Unconditionally include alloca.h.
79357         * lib/makepath.c: Likewise.
79358         * lib/setenv.c: Likewise.
79359         * lib/userspec.c: Likewise.
79360
79361 2003-01-09  Karl Berry  <karl@gnu.org>
79362
79363         * MODULES.html.sh: include `dirname $0` in PATH, to find
79364         gnulib-tool.
79365
79366 2003-01-09  Bruno Haible  <bruno@clisp.org>
79367
79368         * modules/stdbool: Change configure.ac, Makefile.am requirements.
79369         Simplify Include requirements. Add lib/stdbool.h.in to file list.
79370
79371 2003-01-09  Bruno Haible  <bruno@clisp.org>
79372
79373         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
79374
79375 2003-01-09  Bruno Haible  <bruno@clisp.org>
79376
79377         * lib/stdbool.h.in: New file.
79378
79379 2003-01-09  Bruno Haible  <bruno@clisp.org>
79380
79381         * gnulib-tool (func_all_modules): Ignore files ending in ~.
79382         * MODULES.html.sh: Likewise.
79383
79384 2003-01-08  Jim Meyering  <jim@meyering.net>
79385
79386         * lib/full-write.c: Undefine and define-away `const' after inclusion
79387         of errno.h, not before.  Suggestion from Bruno Haible.
79388
79389 2003-01-08  Bruno Haible  <bruno@clisp.org>
79390
79391         * modules/full-read: Depend on full-write.
79392
79393 2003-01-08  Bruno Haible  <bruno@clisp.org>
79394
79395         * lib/safe-read.c: Include specification header first, to ensure its
79396         selfcontainedness.
79397         * lib/full-write.c: Likewise.
79398
79399 2003-01-07  Jim Meyering  <jim@meyering.net>
79400
79401         * lib/full-write.c: Rework so that it may serve to define full_read,
79402         too.
79403         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
79404
79405 2003-01-07  Bruno Haible  <bruno@clisp.org>
79406
79407         * lib/strtoimax.c: Include <stdint.h> as an alternative to
79408         <inttypes.h>.
79409         * lib/xstrtol.h: Likewise.
79410         * lib/xstrtoimax.c: Likewise.
79411         * lib/xstrtoumax.c: Likewise.
79412         * lib/human.h: Likewise.
79413
79414         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
79415         on systems that have <inttypes.h> but not <stdint.h>.
79416
79417 2003-01-07  Bruno Haible  <bruno@clisp.org>
79418
79419         * MODULES.html.sh: Add copyright notice.
79420         (missed_files): Omit CVS directory entries.
79421         (func_module): Make it work with sed-3.02.
79422         * MODULES.txt: Remove file.
79423
79424 2003-01-06  Jim Meyering  <jim@meyering.net>
79425
79426         * lib/version-etc.c: Update year in translatable copyright string.
79427
79428 2003-01-03  Karl Berry  <karl@gnu.org>
79429
79430         * config/config.{guess,sub}: update from prep.
79431
79432 2003-01-02  Karl Berry  <karl@gnu.org>
79433
79434         * doc/COPYING.DOC: belatedly updated to 1.2.
79435
79436 2003-01-01  Karl Berry  <karl@gnu.org>
79437
79438         * gnulib-tool (func_verify_module): report module name $module in
79439         error message, not $1.
79440         * gnulib-tool (create-testdir): don't complain if destdir couldn't
79441         be created, only if it doesn't exist.
79442         * gnulib-tool (last_checkin_date): don't expand the $Date here.
79443
79444 2002-12-31  Paul Eggert  <eggert@twinsun.com>
79445
79446         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
79447
79448 2002-12-31  Paul Eggert  <eggert@twinsun.com>
79449
79450         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
79451         memcmp if strcoll doesn't work.
79452
79453 2002-12-31  Bruno Haible  <bruno@clisp.org>
79454
79455         * lib/utime.c (utime_null): No need to call ftruncate if the file was
79456         nonempty.
79457
79458 2002-12-31  Bruno Haible  <bruno@clisp.org>
79459
79460         * lib/memcoll.c (STRCOLL): New macro.
79461         (memcoll): Use it.
79462
79463 2002-12-31  Bruno Haible  <bruno@clisp.org>
79464
79465         * lib/localcharset.h: New file.
79466         * lib/localcharset.c: Include it.
79467         * lib/unicodeio.c: Likewise.
79468
79469 2002-12-31  Bruno Haible  <bruno@clisp.org>
79470
79471         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
79472         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
79473
79474 2002-12-31  Bruno Haible  <bruno@clisp.org>
79475
79476         * lib/getline.h: Include <stddef.h>, for size_t.
79477
79478         * lib/unicodeio.h: Include <stddef.h>, for size_t.
79479         * lib/unicodeio.c: Don't include <stddef.h>.
79480
79481 2002-12-31  Bruno Haible  <bruno@clisp.org>
79482
79483         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
79484         HAVE_TM_ZONE.
79485
79486 2002-12-24  Karl Berry  <karl@gnu.org>
79487
79488         * config/config.guess: update from prep.
79489
79490 2002-12-24  Bruno Haible  <bruno@clisp.org>
79491
79492         General infrasructure.
79493         * m4/README: Rewritten.
79494         * m4/onceonly.m4: New file.
79495         * m4/onceonly_2_57.m4: New file.
79496
79497         Module atexit.
79498         * m4/atexit.m4: New file.
79499
79500         Module strtod.
79501         * m4/strtod.m4: New file.
79502
79503         Module strtol.
79504         * m4/strtol.m4: New file.
79505
79506         Module strtoul.
79507         * m4/strtoul.m4: New file.
79508
79509         Module memchr.
79510         * m4/memchr.m4: New file.
79511
79512         Module memcmp.
79513         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
79514         (jm_FUNC_MEMCMP): Invoke it.
79515
79516         Module memcpy.
79517         * m4/memcpy.m4: New file.
79518
79519         Module memmove.
79520         * m4/memmove.m4: New file.
79521
79522         Module memset.
79523         * m4/memset.m4: New file.
79524
79525         Module strcspn.
79526         * m4/strcspn.m4: New file.
79527
79528         Module strpbrk.
79529         * m4/strpbrk.m4: New file.
79530
79531         Module strstr.
79532         * m4/strstr.m4: New file.
79533
79534         Module strerror.
79535         * m4/strerror.m4: New file.
79536
79537         Module mktime.
79538         * m4/mktime.m4: Renamed from jm-mktime.m4.
79539         (gl_PREREQ_MKTIME): New macro.
79540         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
79541
79542         Module malloc.
79543         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
79544         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
79545         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
79546
79547         Module realloc.
79548         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
79549         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
79550         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
79551
79552         Module strftime.
79553         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
79554         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
79555         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
79556         gl_TM_GMTOFF.
79557         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
79558
79559         Module xalloc.
79560         * m4/xalloc.m4: New file.
79561
79562         Module alloca.
79563         * m4/alloca.m4: New file.
79564
79565         Module putenv.
79566         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
79567         (jm_FUNC_PUTENV): Invoke it.
79568
79569         Module setenv.
79570         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
79571         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
79572         when invoked twice.
79573         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
79574         gt_FUNC_SETENV.
79575
79576         Module memrchr.
79577         * m4/memrchr.m4: New file.
79578
79579         Module stpcpy.
79580         * m4/stpcpy.m4: New file.
79581
79582         Module strcase.
79583         * m4/strcase.m4: New file.
79584
79585         Module strdup.
79586         * m4/strdup.m4: New file.
79587
79588         Module strnlen.
79589         * m4/strnlen.m4: New file.
79590
79591         Module strndup.
79592         * m4/strndup.m4: New file.
79593
79594         Module xstrtod.
79595         * m4/xstrtod.m4: New file.
79596
79597         Module xstrtol.
79598         * m4/xstrtol.m4: New file.
79599
79600         Module getdate.
79601         * m4/getdate.m4: New file.
79602
79603         Module unlocked-io.
79604         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
79605         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
79606         * m4/jm-glibc-io.m4n: Remove file.
79607
79608         Module long-options.
79609         * m4/long-options.m4: New file.
79610
79611         Module md5.
79612         * m4/md5.m4: New file.
79613
79614         Module sha.
79615         * m4/sha.m4: New file.
79616
79617         Module getstr.
79618         * m4/getstr.m4: New file.
79619
79620         Module getline.
79621         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
79622         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
79623         <sys/types.h>, for size_t. Use the function name gnu_getline, not
79624         simply getline. Infoke gl_PREREQ_GETLINE.
79625
79626         Module obstack.
79627         * m4/obstack.m4: New file.
79628
79629         Module hash.
79630         * m4/hash.m4: New file.
79631
79632         Module readtokens.
79633         * m4/readtokens.m4: New file.
79634
79635         Module strverscmp.
79636         * m4/strverscmp.m4: New file.
79637
79638         Module stdbool.
79639         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
79640         OSF/1.
79641
79642         Module strtoll.
79643         * m4/strtoll.m4: New file.
79644
79645         Module strtoull.
79646         * m4/strtoull.m4: New file.
79647
79648         Module strtoimax.
79649         * m4/strtoimax.m4: New file.
79650
79651         Module strtoumax.
79652         * m4/strtoumax.m4: New file.
79653
79654         Module xstrtoimax.
79655         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
79656         jm_AC_PREREQ_XSTRTOIMAX.
79657         Moved the strtol prerequisites to strtol.m4.
79658         Moved the strtoll prerequisites to strtoll.m4.
79659         Moved the strtoimax prerequisites to strtoimax.m4.
79660
79661         Module xstrtoumax.
79662         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
79663         jm_AC_PREREQ_XSTRTOUMAX.
79664         Moved the strtoul prerequisites to strtoul.m4.
79665         Moved the strtoull prerequisites to strtoull.m4.
79666         Moved the strtoumax prerequisites to strtoumax.m4.
79667
79668         Module chown.
79669         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
79670         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
79671
79672         Module dup2.
79673         * m4/dup2.m4: New file.
79674
79675         Module ftruncate.
79676         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
79677         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
79678
79679         Module getgroups.
79680         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
79681         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
79682
79683         Module gettimeofday.
79684         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
79685         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
79686         gl_PREREQ_GETTIMEOFDAY.
79687
79688         Module mkdir.
79689         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
79690         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
79691
79692         Module mkstemp.
79693         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
79694         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
79695         jm_AC_TYPE_UINTMAX_T.
79696         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
79697
79698         Module stat.
79699         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
79700         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
79701
79702         Module lstat.
79703         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
79704         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
79705
79706         Module timespec.
79707         * m4/timespec.m4 (gl_TIMESPEC): New macro.
79708         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
79709         * m4/st_mtim.m4: Indentation.
79710
79711         Module nanosleep.
79712         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
79713         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
79714         gl_PREREQ_NANOSLEEP.
79715
79716         Module regex.
79717         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
79718         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
79719         (gl_REGEX): New macro.
79720
79721         Module rename.
79722         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
79723         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
79724
79725         Module rmdir.
79726         * m4/rmdir.m4: New file.
79727
79728         Module utime.
79729         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
79730         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
79731         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
79732
79733         Module dirname.
79734         * m4/dirname.m4: New file.
79735
79736         Module getopt.
79737         * m4/getopt.m4: New file.
79738
79739         Module unistd-safer.
79740         * m4/unistd-safer.m4: New file.
79741
79742         Module fnmatch.
79743         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
79744         declaration.
79745         (gl_PREREQ_FNMATCH_EXTRA): New macro.
79746         (gl_FUNC_FNMATCH_POSIX): New macro.
79747         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
79748         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
79749         simply fnmatch.
79750
79751         Module exclude.
79752         * m4/exclude.m4: New file.
79753
79754         Module human.
79755         * m4/human.m4: New file.
79756
79757         Module acl.
79758         * m4/acl.m4: Nop.
79759
79760         Module backupfile.
79761         * m4/backupfile.m4: New file.
79762         * m4/d-ino.m4: Indentation.
79763
79764         Module fsusage.
79765         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
79766         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
79767         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
79768
79769         Module dirfd.
79770         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
79771         requirements.
79772
79773         Module euidaccess.
79774         * m4/euidaccess.m4: New file.
79775
79776         Module file-type.
79777         * m4/file-type.m4: New file.
79778
79779         Module fileblocks.
79780         * m4/fileblocks.m4: New file.
79781
79782         Module filemode.
79783         * m4/filemode.m4: New file.
79784
79785         Module isdir.
79786         * m4/isdir.m4: New file.
79787
79788         Module lchown.
79789         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
79790         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
79791
79792         Module makepath.
79793         * m4/makepath.m4: New file.
79794
79795         Module modechange.
79796         * m4/modechange.m4: New file.
79797
79798         Module mountlist.
79799         * m4/mountlist.m4: New file.
79800         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
79801         Indentation.
79802
79803         Module path-concat.
79804         * m4/path-concat.m4: New file.
79805
79806         Module pathmax.
79807         * m4/pathmax.m4: New file.
79808
79809         Module same.
79810         * m4/same.m4: New file.
79811
79812         Module save-cwd.
79813         * m4/save-cwd.m4: New file.
79814
79815         Module savedir.
79816         * m4/savedir.m4: New file.
79817
79818         Module xgetcwd.
79819         * m4/xgetcwd.m4: New file.
79820         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
79821
79822         Module xreadlink.
79823         * m4/xreadlink.m4: New file.
79824
79825         Module safe-read.
79826         * m4/safe-read.m4: New file.
79827
79828         Module safe-write.
79829         * m4/safe-write.m4: New file.
79830
79831         Module closeout.
79832         * m4/closeout.m4: New file.
79833
79834         Module stdio-safer.
79835         * m4/stdio-safer.m4: New file.
79836
79837         Module getpass.
79838         * m4/getpass.m4: New file.
79839
79840         Module getugroups.
79841         * m4/getugroups.m4: New file.
79842
79843         Module group-member.
79844         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
79845         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
79846
79847         Module idcache.
79848         * m4/idcache.m4: New file.
79849
79850         Module userspec.
79851         * m4/userspec.m4: New file.
79852
79853         Module gettime.
79854         * m4/clock_time.m4: New file.
79855         * m4/gettime.m4: New file.
79856
79857         Module settime.
79858         * m4/settime.m4: New file.
79859
79860         Module posixtm.
79861         * m4/posixtm.m4: New file.
79862
79863         Module gethostname.
79864         * m4/gethostname.m4: New file.
79865
79866         Module canon-host.
79867         * m4/canon-host.m4: New file.
79868
79869         Module gettext.
79870         * m4/codeset.m4: New file, from gettext-0.11.5.
79871         * m4/gettext.m4: New file, from gettext-0.11.5.
79872         * m4/glibc21.m4: New file, from gettext-0.11.5.
79873         * m4/iconv.m4: New file, from gettext-0.11.5.
79874         * m4/intdiv0.m4: New file, from gettext-0.11.5.
79875         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
79876         * m4/inttypes.m4: New file, from gettext-0.11.5.
79877         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
79878         * m4/isc-posix.m4: New file, from gettext-0.11.5.
79879         * m4/lcmessage.m4: New file, from gettext-0.11.5.
79880         * m4/lib-ld.m4: New file, from gettext-0.11.5.
79881         * m4/lib-link.m4: New file, from gettext-0.11.5.
79882         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
79883         * m4/progtest.m4: New file, from gettext-0.11.5.
79884         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
79885         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
79886         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
79887
79888         Module localcharset.
79889         * m4/localcharset.m4: New file.
79890
79891         Module hard-locale.
79892         * m4/hard-locale.m4: New file.
79893
79894         Module mbswidth.
79895         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
79896         onceonly macros.
79897         * m4/mbrtowc.m4: Add comment.
79898
79899         Module memcasecmp.
79900         * m4/memcasecmp.m4: New file.
79901
79902         Module memcoll.
79903         * m4/memcoll.m4: New file.
79904
79905         Module unicodeio.
79906         * m4/unicodeio.m4: New file.
79907
79908         Module rpmatch.
79909         * m4/rpmatch.m4: New file.
79910
79911         Module yesno.
79912         * m4/yesno.m4: New file.
79913
79914         Module exitfail.
79915         * m4/exitfail.m4: New file.
79916
79917         Module c-stack.
79918         * m4/c-stack.m4 (gl_C_STACK): New macro.
79919         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
79920
79921         Module error.
79922         * m4/error.m4 (gl_ERROR): New macro.
79923         (jm_PREREQ_ERROR): Use onceonly macros.
79924
79925         Module fatal.
79926         * m4/fatal.m4: New file.
79927
79928         Module getloadavg.
79929         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
79930         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
79931
79932         Module getpagesize.
79933         * m4/getpagesize.m4: New file.
79934
79935         Module getusershell.
79936         * m4/getusershell.m4: New file.
79937
79938         Module physmem.
79939         * m4/physmem.m4: New file.
79940
79941         Module posixver.
79942         * m4/posixver.m4: New file.
79943
79944         Module quotearg.
79945         * m4/quotearg.m4: New file.
79946
79947         Module quote.
79948         * m4/quote.m4: New file.
79949
79950         Module readutmp.
79951         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
79952
79953         Module sig2str.
79954         * m4/sig2str.m4: New file.
79955
79956         Other.
79957         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
79958         ulonglong.m4.
79959         * m4/intmax_t.m4: New file.
79960         * m4/d-type.m4: Indentation.
79961         * m4/jm-macros.m4: Update.
79962         * m4/prereq.m4 (jm_PREREQ): Update.
79963         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
79964         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
79965         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
79966         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
79967         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
79968         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
79969         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
79970         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
79971         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
79972         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
79973         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
79974         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
79975         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
79976         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
79977         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
79978         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
79979         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
79980         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
79981         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
79982
79983 2002-12-24  Bruno Haible  <bruno@clisp.org>
79984
79985         * MODULES.txt: Update according to m4/ changes.
79986
79987         Module gettext.
79988         * config.rpath: New file, from gettext-0.11.5.
79989
79990         * modules/*: New module descriptions.
79991         * gnulib-tool: New file.
79992         * MODULES.html.sh: New file.
79993
79994 2002-12-21  Karl Berry  <karl@gnu.org>
79995
79996         * doc/fdl.texi: update to version 1.2.
79997
79998 2002-12-19  Karl Berry  <karl@gnu.org>
79999
80000         * config/config.guess: update from prep.
80001
80002 2002-12-18  Bruno Haible  <bruno@clisp.org>
80003
80004         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
80005         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
80006
80007 2002-12-17  Bruno Haible  <bruno@clisp.org>
80008
80009         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
80010         stdlib.h, string.h.
80011
80012 2002-12-17  Bruno Haible  <bruno@clisp.org>
80013
80014         * lib/canon-host.c (strdup): Remove unused declaration.
80015
80016         * lib/fsusage.c: Include full_read.h.
80017         (get_fs_usage): Use full_read instead of safe_read.
80018
80019         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
80020
80021 2002-12-12  Karl Berry  <karl@gnu.org>
80022
80023         * config/config.guess: update from prep.
80024
80025 2002-12-11  Bruno Haible  <bruno@clisp.org>
80026
80027         * m4/setenv.m4: New file, from gettext-0.11.5.
80028
80029 2002-12-11  Bruno Haible  <bruno@clisp.org>
80030
80031         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
80032         not unsetenv().
80033         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
80034         modifications:
80035
80036         2002-12-11  Bruno Haible  <bruno@clisp.org>
80037
80038                 * setenv.c (alloca): Fall back to malloc.
80039                 (freea): New macro.
80040                 (setenv): Use freea() to free memory allocated with alloca().
80041
80042         2002-11-13  Bruno Haible  <bruno@clisp.org>
80043
80044                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
80045                 function declarations.
80046                 * unsetenv.c (unsetenv): Likewise.
80047
80048         2002-03-04  Bruno Haible  <bruno@clisp.org>
80049
80050                 Portability to AIX 4.3.3.
80051                 * unsetenv.c: New file, extracted from setenv.c.
80052                 * setenv.c: Move the unsetenv() function to unsetenv.c.
80053
80054         2001-12-20  Bruno Haible  <bruno@clisp.org>
80055
80056                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
80057                 use malloc instead. For SunOS 4.
80058
80059         2001-12-11  Bruno Haible  <bruno@clisp.org>
80060
80061                 * setenv.c: Declare alloca.
80062                 (compar_fn_t): New typedef.
80063                 (KNOWN_VALUE, STORE_VALUE): Use it.
80064
80065         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
80066         setenv.h.
80067
80068 2002-12-10  Paul Eggert  <eggert@twinsun.com>
80069
80070         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
80071         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
80072         Choose values that are less likely to collide with system fnmatch
80073         options.
80074         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
80075         defined (e.g., a pure POSIX system).
80076         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
80077         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
80078
80079 2002-12-06  Paul Eggert  <eggert@twinsun.com>
80080
80081         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
80082         a pain in practice to deal with generated m4 files.  This change
80083         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
80084
80085         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
80086         and jm-glibc-io.m4, as they are no longer a special case.
80087         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
80088         kludge and the auto-generation stuff.  Check only whether the
80089         functions are declared, not whether they exist, since older hosts
80090         that don't declare the functions can't use the optimization anyway.
80091
80092 2002-12-06  Jim Meyering  <jim@meyering.net>
80093
80094         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
80095
80096         Merge in changes from libc's misc/error.c, in preparation
80097         for the merge of gnulib's changes back into libc.
80098
80099         * lib/error.c (_): Define only if not already defined.
80100         Move definition to follow all #include directives.
80101         Include unlocked-io.h only if !_LIBC.
80102         [_LIBC]: Include <libio/libioP.h>.
80103         [USE_IN_LIBIO]: Include <libio/iolibio.h>
80104         (fflush): Tweak definition to use INTUSE.
80105         (putc): Define.
80106
80107 2002-12-05  Paul Eggert  <eggert@twinsun.com>
80108
80109         * lib/alloca.c [defined emacs]: Include "lisp.h".
80110         (xalloc_die) [defined emacs]: New macro.
80111         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
80112         [! defined emacs]: Include <xalloc.h>.
80113         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
80114         (pointer): Typedef to POINTER_TYPE *.
80115         (malloc): Remove decl; we now always use xmalloc.
80116         (alloca): Use old-style definition, since Emacs needs this.
80117         Check for arithmetic overflow when computing combined size.
80118
80119 2002-12-04  Paul Eggert  <eggert@twinsun.com>
80120
80121         Do not generate unlocked-io.h automatically, since it's easier to
80122         maintain it by hand.
80123
80124         * lib/unlocked-io.h: New file, from GNU diffutils,
80125         but with proper copyright notice and attribution.
80126         * lib/gen-uio: Remove.
80127         * lib/Makefile.am: Add copyright notice.
80128         (libfetish_a_SOURCES): Add unlocked-io.h.
80129         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
80130         (DISTCLEANFILES, io_functions): Remove macros.
80131         (EXTRA_DIST): Remove gen_uio.
80132         (unlocked-io.h): Remove rule.
80133
80134 2002-12-04  Jim Meyering  <jim@meyering.net>
80135
80136         Reflect the fact that stat.c and lstat.c are no longer generated.
80137         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
80138         (DISTCLEANFILES): Likewise.
80139         (EXTRA_DIST): Likewise.
80140         (all_local): Don't depend on stat.c or lstat.c.
80141         (stat.c, lstat.c): Remove rules.
80142         (EXTRA_DIST): Remove xstat.in.
80143
80144         * lib/xstat.in: Remove file.  Contents moved into stat.c.
80145         * lib/stat.c: New file.  Contents mostly from xstat.in.
80146         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
80147         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
80148
80149         * lib/safe-read.c: Rework so that it may serve to define safe_write,
80150         too.
80151         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
80152
80153 2002-12-03  Jim Meyering  <jim@meyering.net>
80154
80155         * lib/safe-read.c, safe-write.c: Change variable names and comments,
80156         but not semantics, to minimize the differences between these two files.
80157         (safe_read): Change comment to mention SAFE_READ_ERROR.
80158
80159         * lib/safe-read.c (IS_EINTR): Define.
80160         (safe_read): Use IS_EINTR in place of in-function cpp directives.
80161
80162 2002-12-02  Jim Meyering  <jim@meyering.net>
80163
80164         * lib/safe-read.c (EINTR): Define.
80165         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
80166         (INT_MAX): Provide fallback.
80167         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
80168
80169         * lib/safe-read.h (SAFE_READ_ERROR): Define.
80170
80171 2002-12-02  Bruno Haible  <bruno@clisp.org>
80172
80173         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
80174         Define, taken from safe-read.c.
80175         (INT_MAX): Provide fallback.
80176         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
80177         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
80178
80179         * lib/safe-read.c (EINTR): Remove definition.
80180         (safe_read): Don't use EINTR if it is absent.
80181
80182 2002-12-01  Jim Meyering  <jim@meyering.net>
80183
80184         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
80185         zero.
80186         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
80187
80188 2002-11-27  Paul Eggert  <eggert@twinsun.com>
80189
80190         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
80191         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
80192         with `if (! (value < limit)) abort ();', for readability.
80193
80194 2002-11-26  Karl Berry  <karl@gnu.org>
80195
80196         * lib/strdup.c: copy from libc again, with jim's ok.
80197         * lib/.cppi-disable: re-add strdup.c
80198
80199 2002-11-25  Karl Berry  <karl@gnu.org>
80200
80201         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
80202         instead of "strtol.c".
80203
80204 2002-11-25  Karl Berry  <karl@gnu.org>
80205
80206         * config/install-sh: update from automake for variable quoting, $0 in
80207         error msgs, etc.
80208
80209         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
80210         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
80211         entry.
80212
80213 2002-11-25  Jim Meyering  <jim@meyering.net>
80214
80215         * lib/mktime.c: Sync from libc, now that it has the latest fix.
80216
80217 2002-11-24  Karl Berry  <karl@gnu.org>
80218
80219         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
80220         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
80221
80222 2002-11-24  Jim Meyering  <jim@meyering.net>
80223
80224         Update from coreutils:
80225
80226         * lib/mktime.c: Merge in changes from libc.
80227
80228         Avoid a link-time failure on some Linux systems.
80229         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
80230         (otherwise).
80231         (__mon_yday): Declare with the STATIC attribute.
80232         (__mktime_internal): Likewise.
80233         Based on a report from Greg Schafer.
80234
80235 2002-11-23  Jim Meyering  <jim@meyering.net>
80236
80237         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
80238         Use `unsigned', not `int', as type of index.
80239
80240         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
80241
80242         * lib/fsusage.c: Remove unneeded parentheses around operands of
80243         `defined'.
80244
80245 2002-11-22  Paul Eggert  <eggert@twinsun.com>
80246
80247         * lib/quotearg.h: Allow multiple inclusion by surrounding with
80248         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
80249         so that we can be included first.
80250         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
80251         * lib/quotearg.c: Include quotearg.h immediately after config.h.
80252         No need to include stddef.h or sys/types.h any more.
80253         Surround local include files with "", not "<>".
80254         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
80255         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
80256         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
80257         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
80258         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
80259         (ISPRINT): Remove; no longer needed now that we assume C89.
80260
80261         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
80262         Preserve errno.
80263
80264         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
80265         quotearg_char): Use SIZE_MAX rather than
80266         (size_t) -1 when we are talking about "infinity".
80267
80268         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
80269
80270 2002-11-22  Paul Eggert  <eggert@twinsun.com>
80271
80272         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
80273         hint that one should use `if (! x) abort ();' rather than `assert
80274         (x);', and anyway it's one less thing to worry about configuring.
80275         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
80276         hash_rehash, hash_insert): Use abort rather than assert.
80277
80278 2002-11-22  Bruno Haible  <bruno@clisp.org>
80279
80280         * lib/safe-read.h: Assume C89. Add comments.
80281         (safe_read): Change return type to size_t.
80282         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
80283         byte counts > SSIZE_MAX correctly.
80284         * lib/safe-write.h: New file.
80285         * lib/safe-write.c: New file.
80286         * lib/full-read.h: New file.
80287         * lib/full-read.c: New file.
80288         * lib/full-write.h: Assume C89. Add comments.
80289         * lib/full-write.c: Include safe-write.h.
80290         (full_write): Rewritten to use safe_write.
80291         Suggested by Jim Meyering and Paul Eggert.
80292
80293 2002-11-21  Jim Meyering  <jim@meyering.net>
80294
80295         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
80296
80297         Merge in changes from the coreutils.
80298
80299         2002-09-25  Paul Eggert  <eggert@twinsun.com>
80300         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
80301         <stdint.h>.
80302         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
80303         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
80304         int.  Work more efficiently if X is the same width as uintmax_t.
80305         Do not compare X to -1, to avoid bogus compiler warning.
80306         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
80307         Don't assume that f_frsize and f_bsize are the same type.
80308
80309         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
80310         warning on FreeBSD.
80311
80312         * lib/makepath.c (make_path): Restore umask *before* creating the final
80313         component.
80314         (make_path): Minor reformatting.
80315
80316         * lib/xmalloc.c: Adjust to work with new autoconf macros,
80317         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
80318         HAVE_MALLOC/HAVE_REALLOC.
80319
80320         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
80321         dummy ones.  At least on GNU/Linux systems, `auto' means something
80322         else.
80323         From Michael Stone.
80324
80325 2002-11-21  Bruno Haible  <bruno@clisp.org>
80326
80327         Remove case insensitive option matching.
80328         * lib/argmatch.h (argcasematch): Remove declaration.
80329         (ARGCASEMATCH): Remove macro.
80330         (__xargmatch_internal): Remove case_sensitive argument.
80331         (XARGMATCH): Update.
80332         (XARGCASEMATCH): Remove macro.
80333         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
80334         case_sensitive argument.
80335         (argcasematch): Remove function.
80336         (__xargmatch_internal): Remove case_sensitive argument.
80337         (main): Use XARGMATCH instead of XARGCASEMATCH.
80338
80339         * lib/xmalloc.c: Change compile-time error message. Add comment about
80340         required autoconf version.
80341
80342 2002-11-20  Paul Eggert  <eggert@twinsun.com>
80343
80344         Merge argmatch cleanups from Bison.  Assume C89.
80345
80346         * lib/argmatch.c: Include config.h here, not in argmatch.h.
80347         Include stdlib.h, for EXIT_FAILURE.
80348         Always include <string.h>, since we assume C89.
80349         (EXIT_FAILURE): Remove pre-C89 bug workaround.
80350         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
80351         Include <stddef.h> instead, since it's all we need for size_t.
80352         (PARAMS): Remove.  All uses removed.
80353         (ARRAY_CARDINALITY): Do not bother to #undef.
80354         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
80355         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
80356         Remove unnecessary parentheses.
80357         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
80358         Insert necessary parentheses.
80359         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
80360         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
80361
80362 2002-11-19  Bruno Haible  <bruno@clisp.org>
80363
80364         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
80365         * lib/mbswidth.h: Include <stddef.h>, for size_t.
80366
80367         * lib/mbswidth.h (PARAMS): Remove macro.
80368         (mbswidth, mbsnwidth): Use ANSI C function declarations.
80369         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
80370
80371         * lib/gcd.h (PARAMS): Remove macro.
80372         (gcd): Use ANSI C function declarations.
80373         * lib/gcd.c (gcd): Likewise.
80374
80375 2002-11-15  Bruno Haible  <bruno@clisp.org>
80376
80377         * lib/strcspn.c: Include <stddef.h>.
80378         (strcspn): Use ANSI C function declaration. Change return type to
80379         size_t. Use NULL.
80380         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
80381         (strpbrk): Use NULL.
80382         * lib/strpbrk.h (PARAMS): Remove macro.
80383         (strpbrk): Use ANSI C function declaration.
80384         * lib/strstr.c: Don't include <sys/types.h>.
80385         * lib/strstr.h (PARAMS): Remove macro.
80386         (strstr): Use ANSI C function declarations.
80387
80388 2002-11-14  Karl Berry  <karl@gnu.org>
80389
80390         * config/mkinstalldirs: `do' on separate line, instead of
80391         `for var; do'.
80392
80393 2002-11-06  Bruno Haible  <bruno@clisp.org>
80394
80395         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
80396         * lib/gcd.c (gcd): Likewise.
80397
80398 2002-11-05  Bruno Haible  <bruno@clisp.org>
80399
80400         * lib/gcd.h: New file, from gettext-0.11.5.
80401         * lib/gcd.c: New file, from gettext-0.11.5.
80402
80403 2002-11-05  Bruno Haible  <bruno@clisp.org>
80404
80405         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
80406         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
80407         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
80408         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
80409
80410         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
80411         <libintl.h>.
80412         * lib/makepath.c: Include gettext.h instead of <locale.h> and
80413         <libintl.h>.
80414
80415         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
80416         * lib/human.c: Include gettext.h instead of <libintl.h>.
80417         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
80418         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
80419         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
80420         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
80421         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
80422         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
80423         (textdomain): Remove definition.
80424         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
80425
80426         * lib/long-options.c: Remove include of <libintl.h> and definition of
80427         _.
80428         * lib/same.c: Remove include of <libintl.h> and definition of _.
80429
80430 2002-11-04  Owen Taylor  <otaylor@redhat.com>
80431
80432         * lib/config.charset: A few additions for Solaris.
80433
80434 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
80435
80436         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
80437         * lib/localcharset.c (locale_charset): Declare as extern "C".
80438
80439 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
80440
80441         * lib/config.charset: msdos in uk_UA uses CP1125.
80442
80443 2002-11-04  Bruno Haible  <bruno@clisp.org>
80444
80445         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
80446         * lib/strcase.h: New file, from GNU gettext-0.11.5.
80447         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
80448         * lib/strstr.h: New file, from GNU gettext-0.11.5.
80449         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
80450
80451 2002-11-04  Bruno Haible  <bruno@clisp.org>
80452
80453         * lib/localcharset.c (locale_charset): Don't return an empty string.
80454
80455 2002-11-04  Bruno Haible  <bruno@clisp.org>
80456
80457         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
80458         aliases.
80459
80460 2002-11-04  Bruno Haible  <bruno@clisp.org>
80461
80462         * lib/config.charset: Update for newest glibc. Add canonical names
80463         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
80464
80465 2002-11-04  Bruno Haible  <bruno@clisp.org>
80466
80467         * lib/config.charset: Add support for NetBSD.
80468
80469 2002-11-04  Bruno Haible  <bruno@clisp.org>
80470
80471         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
80472
80473 2002-11-01  Bruno Haible  <bruno@clisp.org>
80474
80475         * configure.in: Add AC_CONFIG_AUX_DIR call.
80476         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
80477         test/Makefile.
80478         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
80479
80480 2002-09-28  Karl Berry  <karl@gnu.org>
80481
80482         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
80483         installed automake until the next release, since changes have been
80484         made.
80485
80486 2002-09-25  Karl Berry  <karl@gnu.org>
80487
80488         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
80489         * lib/getopt*: copy from libc/posix.
80490         * lib/gettext.h: copy from gettext.
80491         * lib/.cppi-disable: add strdup.c, gettext.h.
80492
80493 2002-09-25  Karl Berry  <karl@gnu.org>
80494
80495         * config/srclist.txt: enable gettext.h check.
80496         * config/config.{guess,sub}: update from prep.
80497         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
80498                 from automake 1.6.3.
80499         See srclist*.
80500
80501 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
80502
80503         * regex.c (PATFETCH): Remove the translating fetch.
80504         (PATFETCH_RAW): Rename to PATFETCH.
80505         (set_image_of_range): New fun.
80506         (SET_RANGE_TABLE_WORK_AREA): Use it.
80507         (regex_compile): Don't translate the pattern chars so eagerly.
80508         Only do it when inserting an `exactn' bytecode or when handling
80509         a char-range.
80510         (mutually_exclusive_p): Avoid empty statement.
80511
80512 2002-07-06  Jim Meyering  <meyering@lucent.com>
80513
80514         * m4/README: Don't mention Makefile.am.in.
80515         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
80516
80517 2002-07-01  Jim Meyering  <meyering@lucent.com>
80518
80519         * lib/c-stack.c: Include sys/time.h.
80520         From Volker Borchert.
80521
80522 2002-06-26  Paul Eggert  <eggert@twinsun.com>
80523
80524         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
80525
80526 2002-06-26  Paul Eggert  <eggert@twinsun.com>
80527
80528         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
80529         New macro.  Use it uniformly instead of
80530         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
80531         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
80532         reported by Vin Shelton.
80533
80534 2002-06-22  Paul Eggert  <eggert@twinsun.com>
80535
80536         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
80537         Do not assume SA_SIGINFO behavior.
80538         Bug reported by Jim Meyering on NetBSD 1.5.2.
80539
80540 2002-06-22  Jim Meyering  <meyering@lucent.com>
80541
80542         * m4/c-stack.m4: New file, from diffutils-2.8.2.
80543         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
80544
80545         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
80546         now that configure.ac uses AC_GNU_SOURCE.
80547         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
80548         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
80549
80550         Update to latest tools.  Suggestions from Paul Eggert.
80551         * m4/stdbool.m4: New file, from diffutils-2.8.2.
80552         * m4/gnu-source.m4: Update from diffutils-2.8.2.
80553         * m4/fnmatch.m4: Likewise.
80554         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
80555         to AC_HEADER_STDBOOL
80556
80557 2002-06-22  Jim Meyering  <meyering@lucent.com>
80558
80559         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
80560         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
80561
80562 2002-06-22  Jim Meyering  <meyering@lucent.com>
80563
80564         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
80565
80566         * lib/exitfail.c, exitfail.h: Likewise.
80567         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
80568
80569         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
80570         of fnmatch.h.
80571         (EXTRA_DIST): Add fnmatch_loop.c.
80572         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
80573
80574         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
80575         * lib/fnmatch.c: Update from diffutils-2.8.2.
80576         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
80577         * lib/fnmatch.h: Remove file.
80578
80579 2002-06-21  Jim Meyering  <meyering@lucent.com>
80580
80581         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
80582         * m4/mbrtowc.m4: Likewise.
80583
80584         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
80585         * m4/mbswidth.m4: Reflect name change:
80586         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
80587         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
80588
80589         * m4/lib-link.m4: Update from gettext-0.11.2.
80590         * m4/gettext.m4: Likewise.
80591
80592         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
80593         From Alfred M. Szmidt.
80594
80595 2002-06-18  Paul Eggert  <eggert@twinsun.com>
80596
80597         * lib/file-type.h: Report an error if neither S_ISREG nor
80598         S_IFREG is defined, instead of using a test specific to glibc
80599         2.2.  This should be safe, since POSIX requires S_ISREG and
80600         Unix Version 7 had S_IFREG.  We don't need to check for
80601         <sys/types.h> since we don't use any symbols that it defines.
80602
80603 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
80604
80605         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
80606         $@-t, so that each temporary file name is unique and valid in the first
80607         8 characters, for operation under DOS.
80608
80609 2002-06-15  Paul Eggert  <eggert@twinsun.com>
80610
80611         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
80612
80613 2002-06-15  Jim Meyering  <meyering@lucent.com>
80614
80615         Work even with DJGPP 2.03, which lacks support for symlinks.
80616         From Richard Dawe.
80617         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
80618         is defined.
80619         * lib/lchown.c (S_ISLNK): Likewise.
80620
80621 2002-06-15  Jim Meyering  <meyering@lucent.com>
80622
80623         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
80624         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
80625         have been included before this file.
80626
80627 2002-06-14  Jim Meyering  <meyering@lucent.com>
80628
80629         * lib/file-type.h: Use the version from diffutils-2.8.2.
80630         * lib/file-type.c: Likewise.
80631
80632 2002-06-07  Jim Meyering  <meyering@lucent.com>
80633
80634         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
80635         They're needed at least for NetBSD 1.5.2.
80636         ($statxfs_includes): Include those same headers.
80637         ($statxfs_includes): Include sys/vfs.h if available.
80638         ($statxfs_includes): Likewise for sys/statvfs.h.
80639         Check for the following members in both structs statfs and statvfs:
80640         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
80641
80642 2002-06-01  Jim Meyering  <meyering@lucent.com>
80643
80644         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
80645         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
80646
80647 2002-05-28  Jim Meyering  <meyering@lucent.com>
80648
80649         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
80650         Reported by Volker Borchert.
80651
80652 2002-05-27  Jim Meyering  <meyering@lucent.com>
80653
80654         Fix a problem seen only on nonconforming systems whereby ls.c's
80655         use of localtime, and then of gettimeofday would cause trouble:
80656         the localtime call used to initialize rpl_gettimeofday's save
80657         mechanism would clobber ls's current local time information so
80658         that in any long listing the first file would always be listed
80659         with date 1970-01-01.  Analysis by Volker Borchert.
80660
80661         * lib/gettimeofday.c (localtime): Undefine.
80662         (rpl_localtime): New function.
80663
80664 2002-05-27  Jim Meyering  <meyering@lucent.com>
80665
80666         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
80667         localtime.
80668
80669         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
80670         use the replacement function; it wouldn't resolve at link time.
80671         Reported by Volker Borchert.
80672
80673 2002-05-22  Jim Meyering  <meyering@lucent.com>
80674
80675         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
80676         file-type.h.
80677         * lib/file-type.h: New file.
80678         * lib/file-type.c (file_type): New file/function.  Extracted from
80679         diffutils.
80680
80681 2002-04-30  Jim Meyering  <meyering@lucent.com>
80682
80683         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
80684
80685 2002-04-29  Paul Eggert  <eggert@twinsun.com>
80686
80687         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
80688
80689 2002-04-29  Paul Eggert  <eggert@twinsun.com>
80690
80691         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
80692         Do not check for alloca.h (no longer used) or stdbool.h (was never
80693         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
80694
80695 2002-04-29  Paul Eggert  <eggert@twinsun.com>
80696
80697         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
80698
80699 2002-04-29  Jim Meyering  <meyering@lucent.com>
80700
80701         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
80702         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
80703         Use AC_FUNC_STRNLEN here instead.
80704
80705         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
80706         With autoconf-2.53a, it's part of AC_PROG_CC.
80707
80708 2002-04-28  Paul Eggert  <eggert@twinsun.com>
80709
80710         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
80711         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
80712
80713 2002-04-28  Paul Eggert  <eggert@twinsun.com>
80714
80715         * lib/sig2str.h, lib/sig2str.c: New files.
80716         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
80717
80718 2002-04-28  Paul Eggert  <eggert@twinsun.com>
80719
80720         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
80721         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
80722         of 127, since 64 is the largest conceivable number for ancient
80723         nonstandard hosts.
80724         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
80725
80726 2002-04-28  Jim Meyering  <meyering@lucent.com>
80727
80728         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
80729
80730 2002-04-24  Jim Meyering  <meyering@lucent.com>
80731
80732         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
80733         (jm_PREREQ): Use it.
80734
80735         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
80736         mach/mach.h fcntl.h.
80737         Check for this function: setlocale.
80738
80739 2002-04-24  Jim Meyering  <meyering@lucent.com>
80740
80741         * lib/gettext.h: New file, from Gettext.
80742         * lib/Makefile.am (INCLUDES): Remove -I../intl.
80743         (libfetish_a_SOURCES): Add gettext.h.
80744
80745 2002-04-16  Jim Meyering  <meyering@lucent.com>
80746
80747         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
80748         ut_pid, ut_id, ut_exit.
80749
80750 2002-04-16  Jim Meyering  <meyering@lucent.com>
80751
80752         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
80753         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
80754         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
80755
80756 2002-04-12  Jim Meyering  <meyering@lucent.com>
80757
80758         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
80759         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
80760         existence of the getmntinfo function.  Needed for Darwin 5.3.
80761
80762         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
80763         This is necessary at least on Darwin 5.3.
80764
80765         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
80766         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
80767         strnlen.o in the library, and that makes some versions of ranlib
80768         object.
80769
80770 2002-04-12  Jim Meyering  <meyering@lucent.com>
80771
80772         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
80773
80774 2002-04-09  Jim Meyering  <meyering@lucent.com>
80775
80776         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
80777         to be more precise.  Rather than saying we're checking whether the
80778         function `works', say what we're testing.
80779         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
80780         Reported by Bruno Haible.
80781
80782 2002-03-10  Jim Meyering  <meyering@lucent.com>
80783
80784         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
80785         Suggestion from Santiago Vila.
80786
80787 2002-03-08  Jim Meyering  <meyering@lucent.com>
80788
80789         * lib/rename.c: Mention that this wrapper is needed also on
80790         mips-dec-ultrix4.4 systems.
80791
80792 2002-03-02  Jim Meyering  <meyering@lucent.com>
80793
80794         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
80795         not HAVE_CLOCK_SETTIME.
80796
80797 2002-02-27  Paul Eggert  <eggert@twinsun.com>
80798
80799         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
80800         Check for clock_settime.
80801
80802 2002-02-27  Paul Eggert  <eggert@twinsun.com>
80803
80804         * lib/nanosleep.h: Rename to....
80805         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
80806
80807         * lib/gettime.c: New file.
80808         * lib/settime.c: New file.
80809         * lib/stime.c: Remove.
80810
80811         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
80812         timespec.h.  Remove nanosleep.h.
80813
80814 2002-02-25  Paul Eggert  <eggert@twinsun.com>
80815
80816         * m4/acl.m4: New file.
80817         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
80818         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
80819
80820 2002-02-25  Paul Eggert  <eggert@twinsun.com>
80821
80822         * lib/acl.c, lib/acl.h: New files.
80823         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
80824
80825 2002-02-24  Jim Meyering  <meyering@lucent.com>
80826
80827         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
80828         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
80829         cause trouble.  Reported by Nelson Beebe.
80830
80831 2002-02-23  Paul Eggert  <eggert@twinsun.com>
80832
80833         * lib/path-concat.c (xpath_concat): Reorder code to pacify
80834         compilers that don't know that xalloc_die never returns.
80835
80836 2002-02-20  Jim Meyering  <meyering@lucent.com>
80837
80838         * lib/getdate.c: Regenerate using bison-1.33.
80839
80840 2002-02-17  Jim Meyering  <meyering@lucent.com>
80841
80842         * config/config.guess (main): Don't use `head -1'; it's no longer
80843         portable. Use `sed 1q' instead.
80844
80845 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
80846
80847         * m4/codeset.m4: Upgrade to gettext-0.11.
80848         * m4/gettext.m4: Upgrade to gettext-0.11.
80849         * m4/glibc21.m4: Upgrade to gettext-0.11.
80850         * m4/iconv.m4: Upgrade to gettext-0.11.
80851         * m4/isc-posix.m4: Upgrade to gettext-0.11.
80852         * m4/lcmessage.m4: Upgrade to gettext-0.11.
80853         * m4/lib-ld.m4: New file, from gettext-0.11.
80854         * m4/lib-link.m4: New file, from gettext-0.11.
80855         * m4/lib-prefix.m4: New file, from gettext-0.11.
80856         * m4/progtest.m4: Upgrade to gettext-0.11.
80857
80858 2002-02-15  Paul Eggert  <eggert@twinsun.com>
80859
80860         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
80861         (jm_PREREQ): Use it.
80862
80863 2002-02-15  Paul Eggert  <eggert@twinsun.com>
80864
80865         * lib/posixver.c, lib/posixver.h: New files.
80866         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
80867
80868 2002-02-02  Paul Eggert  <eggert@twinsun.com>
80869             Bruno Haible  <bruno@clisp.org>
80870
80871         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
80872         (fwrite_success_callback): New declaration.
80873         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
80874         print_unicode_char. Call failure callback instead of error.
80875         (fwrite_success_callback): New function.
80876         (exit_failure_callback): New function.
80877         (fallback_failure_callback): New function.
80878         (print_unicode_char): Call unicode_to_mb.
80879
80880 2002-01-26  Jim Meyering  <meyering@lucent.com>
80881
80882         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
80883         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
80884
80885 2002-01-26  Jim Meyering  <meyering@lucent.com>
80886
80887         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
80888
80889 2002-01-22  Paul Eggert  <eggert@twinsun.com>
80890
80891         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
80892
80893 2002-01-22  Jim Meyering  <meyering@lucent.com>
80894
80895         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
80896         Otherwise, some versions of automake would omit the rule that makes
80897         Makefile from Makefile.in.
80898
80899 2002-01-21  Paul Eggert  <eggert@twinsun.com>
80900
80901         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
80902         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
80903         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
80904         (memcoll): Set errno to zero if there is no error.
80905
80906         * lib/quotearg.c (quotearg_buffer_restyled):
80907         Fix bug with quoting buffers containing NUL when backslashing escapes.
80908         This bug was exposed by the other changes in this patch.
80909         (quotearg_n_options): New arg ARGSIZE.
80910         All callers changed.
80911         (quoting_options_from_style): New function.
80912         (quotearg_n_style): Use it.
80913         (quotearg_n_style_mem): New function.
80914
80915         * lib/quotearg.h (quotearg_n_style_mem): New function.
80916
80917 2002-01-19  Jim Meyering  <meyering@lucent.com>
80918
80919         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
80920         Remove useless quotes: DF_PROG="df".
80921         * m4/strnlen.m4: New file.
80922
80923 2002-01-16  Paul Eggert  <eggert@twinsun.com>
80924
80925         * lib/backupfile.c (ISDIGIT): Comment fix.
80926         * lib/getdate.y (ISDIGIT): Likewise.
80927         * lib/posixtm.c (ISDIGIT, year): Likewise.
80928         * lib/strverscmp.c (ISDIGIT): Likewise.
80929         * lib/userspec.c (ISDIGIT): Likewise.
80930
80931 2002-01-16  Jim Meyering  <meyering@lucent.com>
80932
80933         * lib/getdate.y: Add three semicolons, each just before a closing
80934         brace. Bison (as of version 1.31) no longer papers over that mistake.
80935
80936 2002-01-05  Jim Meyering  <meyering@lucent.com>
80937
80938         * lib/version-etc.c (version_etc_copyright): Update copyright year.
80939
80940 2001-12-19  Paul Eggert  <eggert@twinsun.com>
80941
80942         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
80943         not silently exit merely because the output buffer happens to
80944         have nothing pending.
80945
80946 2001-12-18  Paul Eggert  <eggert@twinsun.com>
80947
80948         See the big note in ../ChangeLog.
80949         * lib/human.c (suffixes): Prefer K to k for 1024.
80950         (generate_suffix_backwards): New function.
80951         (human_readable_inexact): Use it.
80952         * lib/xstrtol.c (__xstrtol): If there is no number but there
80953         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
80954         Accept 'K' as well as 'k'.
80955
80956 2001-12-15  Jim Meyering  <meyering@lucent.com>
80957
80958         * lib/regex.h (__restrict_arr): Update from libc.
80959
80960         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
80961         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
80962         (STREQ): Define.
80963
80964 2001-12-14  Jim Meyering  <meyering@lucent.com>
80965
80966         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
80967         Suggestion from Bruno Haible.
80968
80969 2001-12-10  Jim Meyering  <meyering@lucent.com>
80970
80971         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
80972         xrealloc, Instead, include "xalloc.h".
80973         (initbuffer): Don't cast xmalloc return value to char*.
80974         (readline): Reword comment.
80975         Don't cast xrealloc return value to char*
80976         Return NULL, not 0.
80977
80978 2001-12-09  Jim Meyering  <meyering@lucent.com>
80979
80980         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
80981         about `signed and unsigned type in conditional expression'.
80982         * lib/posixtm.c (posix_time_parse): Likewise.
80983
80984         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
80985
80986         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
80987         to avoid a pedantic warning.
80988
80989         * lib/getstr.c: Don't include assert.h.
80990         (getstr): Remove warning-evoking assertions.
80991         Return -1 if offset parameter is out of bounds.
80992         Change the type of a local from int to size_t.
80993
80994         * lib/strftime.c (my_strftime_localtime_r): Include this function
80995         definition in the `#if ! HAVE_TM_GMTOFF' block.
80996
80997         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
80998         Include xalloc.h instead.
80999
81000 2001-12-02  Jim Meyering  <meyering@lucent.com>
81001
81002         * lib/tempname.c: Don't declare getenv, thus reverting the change of
81003         2001-11-18.  It's no longer necessary, now that stdlib.h is always
81004         included.
81005
81006         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
81007         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
81008
81009 2001-11-30  Akim Demaille  <akim@epita.fr>
81010
81011         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
81012         before being defined.
81013
81014 2001-11-27  Paul Eggert  <eggert@twinsun.com>
81015
81016         * lib/quotearg.h (quotearg_n, quotearg_n_style):
81017         First arg is int, not unsigned.
81018         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
81019         (SIZE_MAX, UINT_MAX): New macros.
81020         (quotearg_n_options): Abort if N is negative.
81021         Avoid overflow check on hosts where size_t is 64 bits and int
81022         is 32 bits, as overflow is impossible there.
81023         Fix off-by-one typo that caused unnecessary reallocation.
81024
81025 2001-11-27  Jim Meyering  <meyering@lucent.com>
81026
81027         * lib/tempname.c: Merge with version from libc.
81028         * lib/regex.c: Likewise.
81029
81030         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
81031         systems for which STDC_HEADERS is 0, it was not included, resulting in
81032         a warning about an integer-to-pointer conversion problem with getenv.
81033         Reported by Volker Borchert.
81034
81035 2001-11-26  Jim Meyering  <meyering@lucent.com>
81036
81037         * lib/gtod.h: Remove file.
81038         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
81039         * lib/gettimeofday.c: Don't include gtod.h.
81040         (GTOD_init): Remove function.
81041         (rpl_gettimeofday): Do its job here instead, rather than aborting.
81042         Suggestion from Volker Borchert.
81043
81044 2001-11-23  Jim Meyering  <meyering@lucent.com>
81045
81046         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
81047         it.
81048         * lib/hash.c (struct hash_table): Define it here instead.
81049
81050 2001-11-22  Jim Meyering  <meyering@lucent.com>
81051
81052         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
81053
81054 2001-11-20  Jim Meyering  <meyering@lucent.com>
81055
81056         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
81057         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
81058
81059 2001-11-19  Jim Meyering  <meyering@lucent.com>
81060
81061         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
81062         directory.  Use "conftestXXXXXX" as the template.
81063         Suggestion from Paul Eggert.
81064
81065         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
81066         immediately, so the test doesn't mistakenly hit the max-open-files
81067         limit.
81068
81069 2001-11-18  Paul Eggert  <eggert@twinsun.com>
81070
81071         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
81072         (TEMPORARIES): New macro.
81073         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
81074         removes an artificial limitation (e.g. HP-UX 10.20, where
81075         TMP_MAX is 17576).
81076
81077 2001-11-18  Jim Meyering  <meyering@lucent.com>
81078
81079         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
81080
81081 2001-11-18  Jim Meyering  <meyering@lucent.com>
81082
81083         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
81084         on SunOS 4.
81085
81086         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
81087         files will be created before anything else.
81088
81089 2001-11-17  Paul Eggert  <eggert@twinsun.com>
81090
81091         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
81092         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
81093
81094 2001-11-17  Jim Meyering  <meyering@lucent.com>
81095
81096         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
81097         Prompted by a report from Bob Proulx.
81098
81099         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
81100         Instead, require UTILS_FUNC_MKSTEMP.
81101
81102 2001-11-17  Jim Meyering  <meyering@lucent.com>
81103
81104         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
81105         Now, that's done as part of AC_FUNC_STRTOD.
81106
81107 2001-11-17  Jim Meyering  <meyering@lucent.com>
81108
81109         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
81110         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
81111         rather than group writable.  Patch by Juan F. Codagnone.
81112
81113         * lib/readtokens.c: Remove explicit declarations of xmalloc and
81114         xrealloc, Instead, include "xalloc.h".
81115
81116         * lib/mountlist.c: Include unlocked-io.h after all system headers.
81117         Remove explicit declarations of xmalloc, xrealloc,
81118         and xstrdup.  Instead, include "xalloc.h".
81119
81120         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
81121         unlocked-io.h.
81122         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
81123         Likewise.
81124         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
81125
81126         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
81127         Reported by Padraig Brady.
81128
81129         * lib/mkstemp.c: #undef mkstemp.
81130         Include config.h.
81131         (rpl_mkstemp): Rename from mkstemp.
81132         Protoize.
81133
81134 2001-11-16  Jim Meyering  <meyering@lucent.com>
81135
81136         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
81137         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
81138         determine the amount of total physical memory, use pstat_getstatic.
81139         HPUX-11 doesn't define _SC_PHYS_PAGES.
81140         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
81141         If sysconf couldn't be used to determine the amount of available
81142         physical memory, use both pstat_getstatic and pstat_getdynamic.
81143         Based on a patch from Bob Proulx.
81144
81145 2001-11-10  Jim Meyering  <meyering@lucent.com>
81146
81147         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
81148         (jm_PREREQ): Use it.
81149
81150 2001-11-09  Jim Meyering  <meyering@lucent.com>
81151
81152         * m4/jm-macros.m4: Require autoconf-2.52f.
81153         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
81154         Use these AC_-prefixed names, not the AM_-prefixed ones.
81155
81156         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
81157
81158 2001-11-05  Jim Meyering  <meyering@lucent.com>
81159
81160         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
81161
81162 2001-11-04  Jim Meyering  <meyering@lucent.com>
81163
81164         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
81165         $DEFS.
81166
81167 2001-11-03  Jim Meyering  <meyering@lucent.com>
81168
81169         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
81170         of AC_DEFUN.
81171
81172         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
81173         know the name of the variable in the macro definition.
81174
81175 2001-11-03  Jim Meyering  <meyering@lucent.com>
81176
81177         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
81178         in argmatch_to_argument call.
81179
81180         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
81181         argument.
81182
81183         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
81184         e.g., a fault due to an attempt to free a NULL pointer.
81185
81186 2001-11-01  Jim Meyering  <meyering@lucent.com>
81187
81188         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
81189         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
81190
81191 2001-11-01  Jim Meyering  <meyering@lucent.com>
81192
81193         * lib/dirfd.c, lib/dirfd.h: New files.
81194         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
81195
81196         * lib/hash.c (hash_print) [TESTING]: Clean up.
81197
81198 2001-10-22  Paul Eggert  <eggert@twinsun.com>
81199
81200         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
81201         to avoid a warning if -Wall.
81202
81203 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
81204
81205         * README: New file
81206         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
81207         (per RMS's instructions, this is now the canonical source)
81208         * lgpl/, gpl/: New directories.
81209
81210 2001-10-21  Paul Eggert  <eggert@twinsun.com>
81211
81212         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
81213
81214 2001-10-21  Jim Meyering  <meyering@lucent.com>
81215
81216         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
81217         this code would end up calling gettext even in packages built
81218         with --disable-nls.
81219         * lib/getopt.c (_): Likewise.
81220         * lib/regex.c (_): Likewise.
81221
81222 2001-10-20  Paul Eggert  <eggert@twinsun.com>
81223
81224         * m4/error.m4 (jm_PREREQ_ERROR):
81225         Do not invoke AC_CHECK_FUNCS with strerror_r, as
81226         AC_FUNC_STRERROR_R does that.
81227         Check for strerror declaration.
81228
81229         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
81230         are supposed to have them these days.
81231         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
81232         Merge changes from latest Autoconf CVS.
81233         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
81234         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
81235         POSIX decided to standardize on the int flavor of strerror_r.
81236
81237 2001-10-20  Paul Eggert  <eggert@twinsun.com>
81238
81239         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
81240         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
81241         Use strerror_r that is only a macro, even if it is not a function.
81242         (strerror): Check for HAVE_DECL_STRERROR before declaring.
81243         (private_strerror): Use prototypes, not old-style function definition.
81244         (print_errno_message): New function.
81245         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
81246         char*-flavored one.
81247         (error_tail, error, error_at_line): Use it.
81248
81249 2001-10-11  Jim Meyering  <meyering@lucent.com>
81250
81251         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
81252         and quote_n (1, ... to avoid clobbering a buffer.
81253
81254 2001-10-05  Jim Meyering  <meyering@lucent.com>
81255
81256         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
81257         hash-pjw.h.
81258         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
81259         * lib/hash-pjw.h: New file.
81260
81261 2001-09-30  Jim Meyering  <meyering@lucent.com>
81262
81263         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
81264         `struct fsstat' has the `f_fstypename' member.
81265         Use that to define FS_TYPE, which is now used to make
81266         the getfsstat link test tighter.
81267
81268 2001-09-30  Jim Meyering  <meyering@lucent.com>
81269
81270         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
81271         Include <sys/ucred.h>, for Apple Darwin.
81272         Include sys/mount.h and sys/fs_types.h only if available.
81273         (FS_TYPE): Define.
81274         (read_filesystem_list): Use FS_TYPE.
81275
81276 2001-09-29  Paul Eggert  <eggert@twinsun.com>
81277
81278         * lib/exclude.c (excluded_filename): 0 -> false, since it's
81279         a boolean context.
81280
81281 2001-09-29  Jim Meyering  <meyering@lucent.com>
81282
81283         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
81284         [one-argument getmntent function]): Include stdio.h before mntent.h.
81285         SunOS 4.1.x needs it for the declaration of `FILE'.
81286         Patch by Volker Borchert.
81287
81288         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
81289         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
81290         sys/fs_types.h, and make the link-test for getfsstat guard #include
81291         directives with appropriate #if HAVE_*_H tests so that we can
81292         detect getfsstat on Apple Darwin1.3.7 systems.
81293         Reported by Nelson Beebe.
81294         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
81295
81296 2001-09-28  Paul Eggert  <eggert@twinsun.com>
81297
81298         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
81299         #defines strtoimax.  Also treat the other strto* functions
81300         like strtoimax.
81301
81302         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
81303         Check for strtoul and strtoumax,
81304         as those declarations are made even in the signed case.
81305         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
81306         Likewise, for strtol and strtoimax.
81307
81308 2001-09-28  Paul Eggert  <eggert@twinsun.com>
81309
81310         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
81311         #defines strtoimax.  Also treat the other strto* functions
81312         like strtoimax.
81313
81314         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
81315         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
81316         (strtoimax, strtoumax): Do not declare if already defined as a macro.
81317
81318 2001-09-26  Jim Meyering  <meyering@lucent.com>
81319
81320         Most macros in unlocked-io.h had the wrong number of arguments.
81321         * lib/gen-uio: New script.
81322         (USE_UNLOCKED_IO): Define to 1 if not already defined.
81323         * lib/unlocked-io.hin: Remove file.
81324         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
81325         rather than trying to embed it here.
81326         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
81327         Reported by Padraig Brady.
81328
81329 2001-09-25  Volker Borchert  <bt@teknon.de>
81330
81331         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
81332         `result'.
81333
81334 2001-09-24  Jim Meyering  <meyering@lucent.com>
81335
81336         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
81337
81338 2001-09-23  Jim Meyering  <meyering@lucent.com>
81339
81340         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
81341         instead of the mere test for existence of mntent.h.  The latter
81342         would get a false-positive on AIX 3.4 systems.
81343         In the outer getmntent if-block, don't die if neither of the getmntent
81344         tests succeeds.  Instead, just fall through and continue with the
81345         remaining tests.
81346
81347 2001-09-23  Jim Meyering  <meyering@lucent.com>
81348
81349         * lib/mountlist.c: Remove useless parentheses in #if directives.
81350         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
81351         the deprecated MOUNTED symbol is no longer defined in mntent.h.
81352
81353 2001-09-22  Jim Meyering  <meyering@lucent.com>
81354
81355         * m4/gettext.m4: New file.  From gettext.
81356         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
81357         * m4/progtest.m4: Likewise
81358         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
81359         * m4/glibc21.m4: Likewise.
81360
81361         * m4/libintl.m4: Remove.  No longer used.
81362
81363 2001-09-22  Jim Meyering  <meyering@lucent.com>
81364
81365         * lib/localcharset.c: Update from latest gettext.
81366         * lib/config.charset: Likewise.
81367
81368 2001-09-20  Jim Meyering  <meyering@lucent.com>
81369
81370         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
81371         strtoimax.
81372         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
81373         strtoumax.
81374
81375 2001-09-20  Jim Meyering  <meyering@lucent.com>
81376
81377         * lib/xstrtol.c (strtoimax): Guard declaration with
81378         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
81379         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
81380         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
81381         (strtoumax): Likewise, for completeness (it wasn't necessary).
81382
81383 2001-09-17  Paul Eggert  <eggert@twinsun.com>
81384
81385         * lib/strtoimax.c (HAVE_LONG_LONG):
81386         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
81387         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
81388         to work around bug in IBM C compiler.
81389
81390 2001-09-17  Jim Meyering  <meyering@lucent.com>
81391
81392         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
81393         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
81394         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
81395         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
81396         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
81397         whenever the right hand side need not be expanded by the shell.
81398
81399 2001-09-16  Paul Eggert  <eggert@twinsun.com>
81400
81401         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
81402         library.  It's not correct, as some older glibcs are buggy.
81403         fnmatch wasn't fixed until glibc 2.2.
81404
81405         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
81406         special shell magic here.
81407
81408 2001-09-16  Jim Meyering  <meyering@lucent.com>
81409
81410         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
81411         * m4/jm-macros.m4: Require it.
81412
81413 2001-09-16  Jim Meyering  <meyering@lucent.com>
81414
81415         * lib/mkdir.c: New file.
81416
81417 2001-09-15  Jim Meyering  <meyering@lucent.com>
81418
81419         * m4/jm-macros.m4: Check for help2man.
81420
81421 2001-09-11  Jim Meyering  <meyering@lucent.com>
81422
81423         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
81424         The body, by Paul Eggert, was moved here from configure.in.
81425         * m4/jm-macros.m4: Require UTILS_HOST_OS.
81426
81427 2001-09-04  Paul Eggert  <eggert@twinsun.com>
81428
81429         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
81430         (jm_PREREQ): Use it.
81431
81432 2001-09-04  Paul Eggert  <eggert@twinsun.com>
81433
81434         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
81435         Use ssize_t, not int, to store result of readlink.
81436         Check for ssize_t overflow as well as size_t overflow,
81437         as POSIX says the result of readlink is implementation-defined
81438         when ssize_t overflows.
81439         Remove unnecessary cast to char*.
81440         Use free+malloc instead of realloc, as the storage doesn't need
81441         to be preserved and it's clearer and can be more efficient that way.
81442         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
81443         * lib/xreadlink.h (xreadlink): Update prototype.
81444
81445 2001-09-04  Paul Eggert  <eggert@twinsun.com>
81446
81447         * lib/xgetcwd.c: Revert some of the previous change; intead,
81448         fix the HAVE_GETCWD_NULL code to behave more like the
81449         !HAVE_GETCWD_NULL code used to.
81450
81451         Include "xalloc.h".
81452         (xgetcwd): Do not return NULL when memory is exhausted; instead,
81453         invoke xalloc_die.
81454
81455 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81456
81457         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
81458         sys/param.h, as pathmax.h includes them.
81459
81460 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81461
81462         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
81463         (jm_PREREQ_XGETCWD): New macro.
81464
81465         * m4/getcwd.m4: New file.
81466
81467 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81468
81469         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
81470         like the HAVE_GETCWD_NULL code.
81471         Include pathmax.h if not HAVE_GETCWD.
81472         Do not include xalloc.h.
81473         (INITIAL_BUFFER_SIZE): New symbol.
81474         Do not use xmalloc / xrealloc, since the caller is responsible for
81475         handling errors.  Preserve errno around `free' during failure.
81476         Do not overrun buffer when using getwd.
81477
81478 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81479
81480         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
81481         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
81482         getcwd (NULL, 0).
81483
81484 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81485
81486         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
81487         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
81488         spotted by Jim Meyering.
81489
81490 2001-09-03  Jim Meyering  <meyering@lucent.com>
81491
81492         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
81493         failure.
81494
81495 2001-09-02  Jim Meyering  <meyering@lucent.com>
81496
81497         * lib/error.c: Update from GNU libc.
81498
81499 2001-09-01  Jim Meyering  <meyering@lucent.com>
81500
81501         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
81502         Used by df.
81503
81504 2001-09-01  Jim Meyering  <meyering@lucent.com>
81505
81506         * lib/xreadlink.c: New file.
81507         * lib/xreadlink.h: New file.
81508         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
81509         xreadlink.h.
81510
81511         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
81512         doesn't conflict with sparc Solaris 7's definition in
81513         /usr/include/sys/int_types.h.
81514
81515         * lib/exclude.c: Use `""', not `<>' to #include non-system header
81516         files.
81517         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
81518         and strncasecmp as r-values.  Unixware didn't have declarations.
81519
81520 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81521
81522         * lib/xstrtol.h: Add copyright notice.
81523         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
81524         LONGINT_INVALID_SUFFIX_CHAR.
81525
81526 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81527
81528         * lib/xstrtol.c (strtoimax): New decl.
81529
81530 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81531
81532         * lib/xgetcwd.c: Don't include pathmax.h.
81533         Include stdlib.h and unistd.h if available.
81534         Include xalloc.h.
81535         (xmalloc, xstrdup, free): Remove decls.
81536         (xgetcwd): Don't assume sizes fit in unsigned.
81537         Check for overflow when computing sizes.
81538         Simplify reallocation code.
81539
81540 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81541
81542         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
81543         a directory's st_size can have an arbitrary value, so the old
81544         usage could waste an arbitrary amount of memory.  All uses
81545         changed.
81546         * lib/savedir.h: Update prototype.
81547
81548 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81549
81550         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
81551
81552         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
81553         old strtoimax.c.
81554
81555         Also, make the following further changes to make this file's
81556         configuration more similar to that of strtol.c:
81557         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
81558         (strtoumax, uintmax_t, strtoull, strtol): Remove.
81559         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
81560         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
81561         changed to signed values.
81562
81563         And make the following changes as well:
81564         Fix copyright notice, as 1999 was missing.
81565         (verify): New macro.
81566         (strtoimax): Check sizes at compile-time, not run-time.
81567         Prefer strtol to strtoll if both work.
81568         (main): Remove; it was not that useful and was a pain to maintain.
81569
81570         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
81571
81572 2001-08-31  Jim Meyering  <meyering@lucent.com>
81573
81574         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
81575         Use an initial, malloc'd, buffer of length 128 rather than
81576         a statically allocated one of length 1024.
81577
81578 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81579
81580         Simplify code, partly by assuming autoconf 2.52 semantics.
81581
81582         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
81583
81584         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
81585         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
81586         All uses removed.
81587         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
81588         Move AC_REQUIRE to next-to-top level, to avoid confusion.
81589         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
81590         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
81591         jm_AC_HEADER_INTTYPES_H.
81592         * m4/jm-macros.m4 (jm_MACROS): Likewise.
81593
81594         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
81595
81596         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
81597         Quote first arg of AC_DEFUN.
81598         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
81599         since they are needed to parse the include file even if we need
81600         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
81601         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
81602         but with opposite signedness.
81603
81604 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81605
81606         Merge 'exclude' changes from tar 1.13.22.
81607         This fixes one or two unlikely storage allocation overflow bugs,
81608         but doesn't change user-visible behavior otherwise.
81609
81610 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81611
81612         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
81613         (jm_PREREQ_EXCLUDE): New macro.
81614
81615 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81616
81617         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
81618         tm to be declared.
81619
81620 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81621
81622         * lib/hash.c: Remove '2001' from copyright notice.
81623
81624 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81625
81626         * lib/full-write.h: New file.
81627         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
81628         * lib/full-write.c: Correct credits, as cccp.c no longer
81629         exists and anyway it was so heavily changed from the old cccp
81630         code as to be unrecognizable.  Include full-write.h.
81631         (full_write): Return size_t, with short writes meaning failure.
81632         All callers changed.  This fixes a bug with large buffers
81633         on 64-bit hosts.
81634         * lib/utime.c: Include full-write.h.
81635
81636 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81637
81638         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
81639         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
81640         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
81641         Include if available.
81642         (<xalloc.h>): Include
81643         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
81644         (verify): New macro.  Use it to verify that EXCLUDE macros do not
81645         collide with FNM macros.
81646         (struct patopts): New struct.
81647         (struct exclude): Use it, as exclude patterns now come with options.
81648         (new_exclude): Support above changes.
81649         (new_exclude, add_exclude_file):
81650         Initial size must now be a power of two to simplify overflow checking.
81651         (free_exclude, fnmatch_no_wildcards): New function.
81652         (excluded_filename): No longer requires options arg, as the options
81653         are determined by add_exclude.  Now returns bool, not int.
81654         (excluded_filename, add_exclude):
81655         Add support for the fancy new exclusion options.
81656         (add_exclude, add_exclude_file): Now takes int options arg.
81657         Check for arithmetic overflow when computing sizes.
81658         (add_exclude_file): xrealloc might modify errno, so don't
81659         realloc until after errno might be used.
81660
81661         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
81662         New macros.
81663         (free_exclude): New decl.
81664         (add_exclude, add_exclude_file): Now takes int options arg.
81665         (excluded_filename): No longer requires options arg, as the options
81666         are determined by add_exclude.  Now returns bool, not int.
81667
81668 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81669
81670         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
81671
81672 2001-08-27  Jim Meyering  <meyering@lucent.com>
81673
81674         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
81675
81676         * lib/version-etc.c (N_): Remove definition.
81677         Revert most of last change.
81678         Instead, simply don't mark the `Copyright...' string for translation.
81679         Based on advice from Paul Eggert.
81680
81681         * lib/strtoxmax.c: Tweak comment.
81682
81683 2001-08-26  Jim Meyering  <meyering@lucent.com>
81684
81685         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
81686
81687         * m4/xstrtoimax.m4: New file.
81688         * m4/xstrtoumax.m4: Add comments explaining why we
81689         AC_REPLACE_FUNCS(strtol).
81690
81691 2001-08-26  Jim Meyering  <meyering@lucent.com>
81692
81693         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
81694         of copyright with `%s' so translators don't get an untranslated
81695         message in 2002.
81696         (COPYRIGHT_YEAR): Define.
81697         (version_etc): Use fprintf rather than fputs.
81698         Suggestion from Ulrich Drepper.
81699
81700         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
81701
81702         * lib/strtoll.c: New file, from GNU libc.
81703         * lib/xstrtoimax.c: New file.
81704
81705         * lib/xstrtol.h: Add xstrtoimax.
81706         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
81707         * lib/strtoimax.c: New file.  Likewise, but first define
81708         STRTOUXMAX_SIGNED.
81709
81710         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
81711         ...
81712         * lib/strtoxmax.c: ... then renamed to this.
81713
81714 2001-08-18  Paul Eggert  <eggert@twinsun.com>
81715
81716         * m4/inttypes.m4: Add AC_PREREQ(2.13).
81717         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
81718         (jm_AC_TYPE_INTMAX_T): New macro.
81719         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
81720
81721         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
81722
81723         * m4/longlong.m4: Renamed from ulonglong.m4.
81724         * m4/inttypes.m4: Renamed from inttypes_h.m4.
81725         * m4/uintmax_t.m4: Removed.
81726
81727 2001-08-13  Paul Eggert  <eggert@twinsun.com>
81728
81729         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
81730         Port to Solaris 8, where 'sed' requires a space after the 'r'
81731         command, and where sh dislikes "$/".  Clean up the spacing a bit.
81732         Redirect output to $tmp just once.
81733
81734 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
81735
81736         * lib/addext.c (<errno.h>): Include.
81737         (errno): Declare if not defined.
81738         (addext): Work correctly when pathconf returns -1 and leaves
81739         errno alone because there is no limit.  Also, work even if
81740         pathconf returns a value greater than SIZE_MAX.
81741
81742 2001-08-12  Jim Meyering  <meyering@lucent.com>
81743
81744         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
81745         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
81746         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
81747         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
81748         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
81749         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
81750         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
81751         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
81752         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
81753         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
81754         utime.m4, utimes.m4, xstrtoumax.m4:
81755         Quote the first argument in each use of AC_DEFUN.
81756
81757 2001-08-12  Jim Meyering  <meyering@lucent.com>
81758
81759         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
81760         Simply `return getcwd (NULL, 0);'.
81761         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
81762         Use 1300 as initial value for length, not PATH_MAX.
81763
81764         * lib/pathmax.h: Clean up cpp syntax.
81765
81766 2001-08-12  Jim Meyering  <meyering@lucent.com>
81767
81768         * lib/gettimeofday.c: New file.
81769         * lib/gtod.h: New file.
81770         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
81771
81772 2001-08-05  Jim Meyering  <meyering@lucent.com>
81773
81774         * m4/jm-macros.m4: Require autoconf-2.52.
81775
81776 2001-08-04  Jim Meyering  <meyering@lucent.com>
81777
81778         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
81779         stmt, to get in sync with glibc.
81780
81781 2001-08-03  Paul Eggert  <eggert@twinsun.com>
81782
81783         The following changes are from gettext 0.10.39 as maintained by
81784         Bruno Haible.
81785
81786         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
81787         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
81788         with inverted sense.  All uses changed.
81789
81790         * lib/mbswidth.c: Don't include <limits.h>.
81791         Include <stdlib.h> and <string.h> unconditionally.
81792         (iswcntrl, mbsinit, ISCNTRL): New macros.
81793         (mbsnwidth): Use K&R style function declarations.
81794         Don't bother checking for MB_LEN_MAX == 1, since the compiler
81795         can optimize it when MB_CUR_MAX == 1.
81796         The width of control characters is zero, not 1.
81797
81798 2001-08-03  Paul Eggert  <eggert@twinsun.com>
81799
81800         The following changes are from gettext 0.10.39 as maintained by
81801         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
81802
81803         * m4/codeset.m4: Upgrade to serial AM1.
81804         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
81805         all uses changed.  Quote first arg of AC_DEFUN.
81806         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
81807
81808         * m4/iconv.m4: Upgrade to serial AM2.
81809         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
81810         Add --with-libconv-prefix.
81811         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
81812         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
81813         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
81814         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
81815         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
81816
81817         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
81818         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
81819         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
81820         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
81821         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
81822         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
81823         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
81824         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
81825         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
81826
81827         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
81828         string.h any more.
81829
81830         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
81831         not the default value.
81832
81833         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
81834         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
81835         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
81836         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
81837         Also check for iswcntrl, used for wcwidth fallback.
81838         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
81839         to Autoconf 2.13.
81840
81841 2001-08-03  Jim Meyering  <meyering@lucent.com>
81842
81843         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
81844         as it was in the original.  Reported by Paul Eggert.
81845
81846 2001-07-16  Jim Meyering  <meyering@lucent.com>
81847
81848         * m4/gettimeofday.m4: New file.
81849         Prompted by a report from Bernhard Baehr.
81850
81851 2001-07-15  Jim Meyering  <meyering@lucent.com>
81852
81853         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
81854         stuff. Now it's in ../Makefile.cfg.
81855
81856 2001-07-15  Jim Meyering  <meyering@lucent.com>
81857
81858         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
81859         (BUILT_SOURCES): Add unlocked-io.h.
81860         (io_functions): Define.
81861         (unlocked-io.h): New rule.
81862         (DISTCLEANFILES): Add unlocked-io.h.
81863         (all-local): Depend on unlocked-io.h, to ensure it is created.
81864
81865         * lib/unlocked-io.hin: New file
81866
81867         * lib/regex.c: Update from glibc.
81868
81869 2001-07-05  Jim Meyering  <meyering@lucent.com>
81870
81871         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
81872         recommendation.
81873         (libfetish_a_SOURCES): Put all .h files here instead.
81874         Remove a thus-exposed (better checks in automake) duplicate and
81875         two unnecessary .h files.
81876
81877 2001-07-04  Jim Meyering  <meyering@lucent.com>
81878
81879         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
81880         that generates jm-glibc-io.m4 so that it doesn't trigger any make
81881         distcheck failure.
81882
81883 2001-07-02  Jim Meyering  <meyering@lucent.com>
81884
81885         The following changes were prompted by suggestions from Bruno Haible.
81886
81887         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
81888         is now generated.
81889         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
81890         definition of EXTRA_DIST.
81891         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
81892         ensure that the generated file is created/updated whenever the list
81893         of $(unlocked_functions) is changed.
81894         (jm-glibc-io.m4): New rule.
81895         (unlocked-io.h): New rule -- currently unused.
81896
81897 2001-06-24  Jim Meyering  <meyering@lucent.com>
81898
81899         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
81900         unmatched right bracket, rather than kludging it with an extra,
81901         falsely-matching quote in a comment.  Patch by Akim Demaille.
81902
81903 2001-06-11  Jim Meyering  <meyering@lucent.com>
81904
81905         * lib/regex.c: Update from GNU libc.
81906
81907 2001-05-27  Jim Meyering  <meyering@lucent.com>
81908
81909         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
81910         Check for ut_type in struct utmp.
81911
81912 2001-05-27  Jim Meyering  <meyering@lucent.com>
81913
81914         * lib/readutmp.h (UT_TYPE): Define.
81915
81916 2001-05-24  Jim Meyering  <meyering@lucent.com>
81917
81918         * lib/argmatch.c: Include "quote.h".
81919         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
81920         quote function.  Reported by Göran Uddeborg.
81921
81922 2001-05-22  Jim Meyering  <meyering@lucent.com>
81923
81924         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
81925         now that we use the package-supplied version unconditionally.
81926         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
81927
81928 2001-05-21  Jim Meyering  <meyering@lucent.com>
81929
81930         * m4/regex.m4: Change a couple backticks to single quotes to avoid
81931         shell syntax errors.
81932
81933 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
81934
81935         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
81936
81937 2001-05-20  Paul Eggert  <eggert@twinsun.com>
81938
81939         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
81940         Don't bother to check library strftime, since
81941         we'll be using our own my_strftime function anyway.
81942         Define my_strftime instead of strftime.
81943
81944 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
81945
81946         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
81947         which is not yet declared.
81948
81949 2001-05-15  Jim Meyering  <meyering@lucent.com>
81950
81951         * m4/regex.m4: Use proper quoting so brackets appear in the test
81952         program.
81953         Reported by, and with help from, Bruno Haible.
81954
81955 2001-05-13  Jim Meyering  <meyering@lucent.com>
81956
81957         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
81958         undefined.
81959
81960 2001-05-11  Paul Eggert  <eggert@twinsun.com>
81961
81962         dirname code cleanup.  base_name now behaves more compatibly
81963         with POSIX basename when given file names that have trailing
81964         slashes, and similarly for dir_name.  Add new primitives
81965         base_len and dir_len.  Put the directory-name-related decls
81966         into dirname.h.
81967
81968         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
81969         * lib/backupfile.c (base_name): Likewise.
81970         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
81971         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
81972         * lib/makepath.c (strip_trailing_slashes): Likewise.
81973         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
81974         ISSLASH): Likewise.
81975         * lib/rename.c (strip_trailing_slashes): Likewise.
81976         * lib/same.c (base_name): Likewise.
81977         * lib/stripslash.c (ISSLASH): Likewise.
81978
81979         * lib/addext.c: Include <dirname.h> after size_t is defined.
81980         * lib/backupfile.c: Likewise.
81981
81982         * lib/addext.c (addext): Use base_len to trim redundant
81983         trailing slashes instead of doing it ourselves.
81984         But do not trim the last slash if it is not redundant.
81985
81986         * lib/backupfile.c (find_backup_file_name,
81987         max_backup_version): Use base_len instead of rolling it ourselves.
81988         Handle the case of "" and (on DOS) "C:" correctly.
81989
81990         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
81991         needed. Include <string.h>, <dirname.h>.
81992         (base_name): Allow file names ending in slashes, other than names
81993         that are all slashes.  In this case, return the basename followed
81994         by the slashes.  This is more general, and can be used in places
81995         where the original base_name purposely had an assertion failure.
81996         (base_len): New function.
81997
81998         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
81999         Do not include <assert.h>; no longer needed.
82000         Include xalloc.h.
82001         (memrchr): Remove decl.
82002         (dir_name_r): Remove.
82003         (dir_len): Renamed from dirlen.  All callers changed.
82004         Rewrite in terms of base_name, for simplicity and consistency.
82005         (dir_name): Never return NULL.  All callers changed.
82006         Do not include <stdlib.h> in test program; no longer needed.
82007         return 0; is fine for test program.
82008
82009         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
82010         New macros.
82011         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
82012
82013         * lib/path-concat.c (path_concat): Use base_len to compute
82014         base length, not strlen; this means we cannot rely on memcpy
82015         to null-terminate.
82016
82017         * lib/same.c (STREQ): Remove.
82018         (same_name): Handle the case where the basename ends in trailing '/'.
82019
82020         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
82021         a slash was stripped.  Do not strip the last slash after a
82022         file system prefix.
82023
82024 2001-05-11  Paul Eggert  <eggert@twinsun.com>
82025
82026         * lib/Makefile.am (libfetish_a_SOURCES):
82027         Add strftime.c, since we now compile it on all hosts.
82028
82029         * lib/strftime.c (my_strftime):
82030         Define to nstrftime if emacs, but only if my_strftime is not defined.
82031         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
82032         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
82033         Add one more extra argument: a nanoseconds value.
82034         All uses changed.
82035         (ns): New macro.
82036         (my_strftime function): Add %N format.
82037         (emacs_strftimeu): Renamed from emacs_strftime,
82038         with extra ut argument.
82039
82040 2001-05-09  Paul Eggert  <eggert@twinsun.com>
82041
82042         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
82043
82044 2001-04-21  Jim Meyering  <meyering@lucent.com>
82045
82046         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
82047         doesn't interfere.
82048
82049 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
82050
82051         * m4/ftruncate.m4: Check for chsize.
82052         Link with ftruncate.o unconditionally if ftruncate is missing.
82053         This was required when cross-compiling to i586-mingw32msvc.
82054
82055 2001-04-08  Jim Meyering  <meyering@lucent.com>
82056
82057         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
82058         recomputed; that's necessary when the offset spans a DST transition.
82059         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
82060
82061 2001-04-02  Jim Meyering  <meyering@lucent.com>
82062
82063         * lib/regex.h, regex.c: Update from GNU libc.
82064
82065 2001-03-24  Jim Meyering  <meyering@lucent.com>
82066
82067         * m4/jm-macros.m4: Require autoconf-2.49d.
82068
82069 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
82070
82071         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
82072
82073 2001-03-19  Paul Eggert  <eggert@twinsun.com>
82074
82075         * lib/version-etc.c (version_etc_copyright): Update to 2001.
82076
82077 2001-03-17  Jim Meyering  <meyering@lucent.com>
82078
82079         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
82080         now that the version in autoconf is equivalent.
82081         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
82082
82083         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
82084         Suggestion from Akim Demaille.
82085
82086         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
82087         (jm_PREREQ_TEMPNAME): New function.
82088
82089 2001-03-16  Paul Eggert  <eggert@twinsun.com>
82090
82091         * lib/tempname.c (uint64_t): Define to uintmax_t if
82092         not defined, and if UINT64_MAX is not defined.
82093         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
82094         Reported by John David Anglin.
82095
82096 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
82097
82098         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
82099         resolve alias if codeset is empty.
82100         * lib/config.charset (BeOS): Use wildcard syntax.
82101
82102 2001-03-13  Jim Meyering  <meyering@lucent.com>
82103
82104         * lib/path-concat.c (path_concat)
82105         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
82106         concatenating e.g., `C:' and `foo'.
82107         From Bruno Haible.
82108
82109 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
82110
82111         * lib/localcharset.c (locale_charset): Don't use
82112         setlocale(LC_CTYPE,NULL). Don't return NULL.
82113         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
82114
82115 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
82116
82117         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
82118         support for DOS/DJGPP.
82119
82120 2001-03-01  Paul Eggert  <eggert@twinsun.com>
82121
82122         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
82123         lacks mkstemp.  Compile our own tempname.c if we compile our own
82124         mkstemp.c, as mkstemp relies on tempname.
82125
82126 2001-03-01  Jim Meyering  <meyering@lucent.com>
82127
82128         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
82129         AH_VERBATIM really does output its argument verbatim.
82130
82131 2001-02-28  Paul Eggert  <eggert@twinsun.com>
82132
82133         * lib/Makefile.am (libfetish_a_SOURCES):
82134         Add dup-safer.c, fopen-safer.c.
82135         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
82136
82137         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
82138         * lib/unistd-safer.h: New files.
82139
82140 2001-02-25  Paul Eggert  <eggert@twinsun.com>
82141
82142         The mkstemp replacement is taken from glibc 2.2.2, with some
82143         portability fixes for use outside glibc, as follows:
82144
82145         * lib/tempname.c (struct_stat64): New macro.
82146         (direxists, __gen_tempname): Use it.
82147         This avoids a portability problem with Solaris 8.
82148
82149         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
82150         (<stddef.h>, <stdint.h>, <string.h>):
82151         Include only if STDC_HEADERS || _LIBC.
82152         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
82153         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
82154         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
82155         (__set_errno): Define this macro if <errno.h> doesn't.
82156         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
82157         Define these macros if <stdio.h> doesn't.
82158         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
82159         Define these macros if <sys/stat.h>
82160         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
82161         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
82162         __xstat64): Define if not _LIBC.
82163         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
82164         (__gen_tempname): Invoke gettimeofday only if
82165         HAVE_GETTIMEOFDAY || _LIBC;
82166         otherwise, fall back on plain "time".
82167         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
82168
82169         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
82170
82171         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
82172
82173 2001-02-18  Paul Eggert  <eggert@twinsun.com>
82174
82175         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
82176
82177 2001-02-17  Paul Eggert  <eggert@twinsun.com>
82178
82179         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
82180         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
82181         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
82182         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
82183
82184 2001-02-17  Paul Eggert  <eggert@twinsun.com>
82185
82186         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
82187         Remove workaround macros for hosts that have mbrtowc but not
82188         mbstate_t, as we now insist on proper declarations for both
82189         before using mbrtowc.
82190
82191 2001-02-17  Jim Meyering  <meyering@lucent.com>
82192
82193         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
82194         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
82195         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
82196         UnixWare 7.1.1.
82197
82198         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
82199         rather than AC_CACHE_VAL.
82200
82201 2001-02-17  Jim Meyering  <meyering@lucent.com>
82202
82203         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
82204         around included file name.
82205
82206         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
82207
82208         * lib/strftime.c: Update from GNU libc (the only changes were to
82209         comments).
82210
82211 2001-02-17  Jim Meyering  <meyering@lucent.com>
82212
82213         * lib/regex.c: Update from libc.
82214
82215 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
82216
82217         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
82218         clash.
82219
82220 2001-02-16  Paul Eggert  <eggert@twinsun.com>
82221
82222         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
82223         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
82224         Reported by Mark Hounschell via Paul Eggert.
82225
82226 2001-02-07  Jim Meyering  <meyering@lucent.com>
82227
82228         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
82229
82230 2001-02-05  Jim Meyering  <meyering@lucent.com>
82231
82232         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
82233         it includes the patch required for `large file' support with at least
82234         HP-UX's 10.20 /bin/cc.
82235
82236 2001-02-03  Jim Meyering  <meyering@lucent.com>
82237
82238         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
82239         AS_IF, now that it works once again (mysteriously).
82240         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
82241
82242 2001-01-30  Jim Meyering  <meyering@lucent.com>
82243
82244         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
82245         * m4/chown.m4: Rename conftestchown to conftest.chown.
82246         * m4/rename.m4: s/conftestdir/conftest.d1/ and
82247         s/conftestdir2/conftest.d2/.
82248         * m4/utimes.m4: s/conftestdata/conftest.data/
82249         Inspired by Pavel Roskin's change in autoconf.
82250
82251 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
82252
82253         * lib/config.charset: Update for FreeBSD 4.2.
82254
82255 2001-01-27  Jim Meyering  <meyering@lucent.com>
82256
82257         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
82258         a use of AS_IF.
82259         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
82260
82261 2001-01-26  Jim Meyering  <meyering@lucent.com>
82262
82263         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
82264         quotearg.c includes it.
82265
82266 2001-01-26  Jim Meyering  <meyering@lucent.com>
82267
82268         * lib/quotearg.c: Include stddef.h.
82269         * lib/quote.c: Include stddef.h.
82270         Reported by Axel Kittenberger.
82271
82272         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
82273         line in double quotes so that it evokes a better diagnostic.
82274         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
82275         Reported by Axel Kittenberger.
82276
82277 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
82278
82279         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
82280         as if it was a `charset'.
82281
82282 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
82283
82284         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
82285         has const.
82286
82287 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
82288
82289         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
82290         to avoid a warning.  Add back 'const' to inptr.
82291
82292 2001-01-20  Jim Meyering  <meyering@lucent.com>
82293
82294         Be sure that headers are checked before used in code compiled
82295         for the type checks.
82296         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
82297         In place of that, invoke jm_CHECK_ALL_TYPES.
82298         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
82299         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
82300         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
82301         The check for ssize_t was mistakenly run before the test for unistd.h.
82302
82303         The configure-time check for stdbool.h was missing.
82304         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
82305         (jm_PREREQ_HASH): New function.
82306
82307 2001-01-17  Jim Meyering  <meyering@lucent.com>
82308
82309         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
82310         for autoconf-2.49c.
82311         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
82312
82313 2001-01-16  Jim Meyering  <meyering@lucent.com>
82314
82315         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
82316         From Bruno Haible.
82317
82318 2001-01-14  Jim Meyering  <meyering@lucent.com>
82319
82320         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
82321         foo and bar.  Create conftestdir/ in the script, not in the C code.
82322         Remove directories in the script, not in the C code.
82323         Remove conftestdir{,2} before trying to create the directory.
82324         Make the entire configure script fail if the mkdir fails.
82325
82326 2001-01-14  Jim Meyering  <meyering@lucent.com>
82327
82328         * lib/rename.c: New file.  From Volker Borchert.
82329         Include stdlib.h, string.h or strings.h, and xalloc.h.
82330         Use strip_trailing_slashes rather than open-coding it.
82331
82332 2001-01-03  Paul Eggert  <eggert@twinsun.com>
82333
82334         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
82335
82336 2001-01-03  Jim Meyering  <meyering@lucent.com>
82337
82338         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
82339         of local `inptr' to avoid warning with some system declarations of
82340         iconv.
82341
82342 2001-01-02  Volker Borchert  <bt@teknon.de>
82343
82344         * m4/rename.m4: New file.
82345         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
82346
82347 2001-01-01  Jim Meyering  <meyering@lucent.com>
82348
82349         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
82350         even on systems with utmpx.h.  It's necessary for the declaration of
82351         utmp's ut_user member.  Reported by Andreas Jaeger.
82352
82353         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
82354         available. They are required for the declarations of getgrgid and
82355         getpwuid resp.
82356         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
82357         Reported by Andreas Jaeger.
82358
82359 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
82360
82361         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
82362         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
82363         so `make install' also works in VPATH builds.
82364
82365 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
82366
82367         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
82368         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
82369         can be used in subdirectories.
82370
82371 2000-12-29  Paul Eggert  <eggert@twinsun.com>
82372
82373         * lib/modechange.c: Do not assume that mode_t uses the
82374         traditional octal encoding.  E.g. "chmod 1 FOO" should set
82375         the other-execute bit of FOO even if S_IXOTH != 1.
82376
82377         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
82378         WOTH, XOTH, ALLM): New macros.
82379         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
82380          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
82381         Use them.
82382         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
82383         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
82384         (mode_compile):
82385         No need to use uintmax_t; unsigned long is long enough.
82386         Don't bother to get suffix since we don't use it.
82387
82388 2000-12-26  Jim Meyering  <meyering@lucent.com>
82389
82390         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
82391         better with autoheader.
82392
82393 2000-12-24  Jim Meyering  <meyering@lucent.com>
82394
82395         * lib/hash.c (is_prime): Return explicit boolean values.
82396         (hash_get_first): Return NULL to appease Irix5.6's 89.
82397         Reported by Nelson Beebe.
82398
82399 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
82400
82401         * lib/localcharset.c (locale_charset): Add support for Win32.
82402
82403 2000-12-18  Paul Eggert  <eggert@twinsun.com>
82404
82405         * lib/physmem.h, lib/physmem.c: New files.
82406
82407         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
82408         (noinst_HEADERS): Add physmem.h.
82409
82410         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
82411         't' for compatibility with Solaris 8 sort.
82412
82413 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
82414
82415         * lib/config.charset: Add support for BeOS.
82416
82417 2000-12-17  Jim Meyering  <meyering@lucent.com>
82418
82419         * m4/dos.m4 (jm_AC_DOS): New file and macro.
82420         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
82421
82422 2000-12-16  Jim Meyering  <meyering@lucent.com>
82423
82424         This bug had a serious impact on chown: `chown N:M FILE' (for integer
82425         N and M) would have treated it like `chown N:N FILE'.
82426
82427         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
82428
82429 2000-12-16  Jim Meyering  <meyering@lucent.com>
82430
82431         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
82432         SHELLS_FILE to a file name that's useful on djgpp systems.
82433         Include stdlib.h.
82434         (ADDITIONAL_DEFAULT_SHELLS): Define.
82435         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
82436         Based mostly on a patch from Prashant TR.
82437
82438 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
82439
82440         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
82441         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
82442         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
82443
82444 2000-12-08  Andreas Schwab  <schwab@suse.de>
82445
82446         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
82447         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
82448
82449 2000-12-07  Jim Meyering  <meyering@lucent.com>
82450
82451         * lib/stripslash.c (ISSLASH): Define.
82452         (strip_trailing_slashes): Use ISSLASH rather than comparing against
82453         `/'.
82454         From Prashant TR.
82455
82456         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
82457         (dir_name_r): Declare this function as static.
82458         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
82459         manifest itself on a name containing a mix of slashes and
82460         backslashes.
82461         Make this function work with names starting with a DOS-style
82462         drive letter and colon prefix.
82463         (dir_name): Append `.' if necessary.
82464         Based mostly on patches from Prashant TR and Eli Zaretskii.
82465
82466         * lib/dirname.h (dir_name_r): Remove prototype.
82467
82468 2000-12-06  Paul Eggert  <eggert@twinsun.com>
82469
82470         * m4/off_t-format.m4: Remove this file.
82471         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
82472
82473 2000-12-06  Jim Meyering  <meyering@lucent.com>
82474
82475         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
82476         replacement strtoull, we may well need the replacement strtoul, too.
82477         Check for declarations of strtoul and strtoull.
82478         Check for strtol.  Mainly as a cue to cause automake to include
82479         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
82480         Check for limits.h -- strtol.c needs it.
82481
82482 2000-12-05  Jim Meyering  <meyering@lucent.com>
82483
82484         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
82485
82486 2000-12-04  Jim Meyering  <meyering@lucent.com>
82487
82488         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
82489         Also include memory.h, stdlib.h, unistd.h if appropriate.
82490         Reported by Andreas Jaeger (conflicting declaration of malloc).
82491
82492 2000-12-02  Jim Meyering  <meyering@lucent.com>
82493
82494         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
82495         * m4/jm-macros.m4 (jm_MACROS): require it.
82496
82497 2000-12-02  Jim Meyering  <meyering@lucent.com>
82498
82499         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
82500
82501 2000-12-01  Paul Eggert  <eggert@twinsun.com>
82502
82503         * lib/memrchr.c: Include <config.h> before any system include file.
82504
82505 2000-11-30  Jim Meyering  <meyering@lucent.com>
82506
82507         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
82508
82509 2000-11-30  Jim Meyering  <meyering@lucent.com>
82510
82511         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
82512
82513 2000-11-29  Paul Eggert  <eggert@twinsun.com>
82514
82515         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
82516
82517 2000-11-26  Jim Meyering  <meyering@lucent.com>
82518
82519         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
82520
82521 2000-11-22  Paul Eggert  <eggert@twinsun.com>
82522
82523         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
82524         size of (size_t) -1; it's not portable.
82525
82526 2000-11-17  Jim Meyering  <meyering@lucent.com>
82527
82528         * lib/strstr.c: Update from GNU libc.
82529
82530 2000-11-17  Akim Demaille  <akim@epita.fr>
82531
82532         * lib/obstack.h: Formatting changes.
82533         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
82534         prevent type checking.
82535         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
82536         cast the value to (void *): assigning a `foo *' to a `void *'
82537         variable is valid.
82538         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
82539
82540 2000-11-16  Jim Meyering  <meyering@lucent.com>
82541
82542         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
82543
82544 2000-11-11  Jim Meyering  <meyering@lucent.com>
82545
82546         * lib/error.c: Add a couple #includes, merging from GNU libc version.
82547
82548 2000-11-10  Jim Meyering  <meyering@lucent.com>
82549
82550         * lib/obstack.h: Update from GNU libc.
82551         * lib/obstack.c: Likewise.
82552
82553 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
82554
82555         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
82556
82557 2000-11-06  Paul Eggert  <eggert@twinsun.com>
82558
82559         * lib/getusershell.c (setusershell): Use rewind rather than
82560         fseek/fseeko, to avoid configuration hassles with fseeko.
82561         Don't bother opening SHELLS_FILE if shellstream is NULL;
82562         it's not necessary.
82563
82564 2000-11-05  Jim Meyering  <meyering@lucent.com>
82565
82566         * lib/makepath.h (make_dir): Declare.
82567         * lib/makepath.c (make_dir): Remove `static' attribute.
82568         Tweak a comment.
82569
82570 2000-11-04  Jim Meyering  <meyering@lucent.com>
82571
82572         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
82573
82574 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
82575
82576         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
82577         last one in a bucket, advance to the next bucket.
82578
82579 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
82580
82581         * lib/fnmatch.c: Do not comment out all the code if we are using
82582         the GNU C library, because in some cases we are replacing buggy
82583         code in the GNU C library itself.
82584
82585 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
82586
82587         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
82588         (regex_compile): Catch bogus \(\1\).
82589
82590 2000-10-30  Paul Eggert  <eggert@twinsun.com>
82591
82592         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
82593         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
82594         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
82595
82596 2000-10-30  Paul Eggert  <eggert@twinsun.com>
82597
82598         * lib/error.h, getline.h, modechange.h:
82599         Remove "2000" from Copyright line, as the file hasn't been
82600         changed this year other than in the copyright notice.
82601
82602         * lib/xalloc.h: Add "2000" to Copyright line, as this file
82603         was changed this year.
82604
82605 2000-10-29  Jim Meyering  <meyering@lucent.com>
82606
82607         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
82608         renaming.
82609         * m4/ls-mntd-fs.m4: Likewise
82610
82611 2000-10-29  Jim Meyering  <meyering@lucent.com>
82612
82613         * lib/xstat.in: Fix grammar in comment.
82614
82615 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
82616
82617         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
82618         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
82619         doesn't define __restrict_arr.
82620
82621 2000-10-28  Jim Meyering  <meyering@lucent.com>
82622
82623         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
82624         (jm_PREREQ_MEMCHR): New function.
82625
82626 2000-10-28  Jim Meyering  <meyering@lucent.com>
82627
82628         * lib/memchr.c: Update from libc.
82629         Adjust for portability:
82630         [HAVE_STDLIB_H]: Include stdlib.h.
82631         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
82632         Undef __memchr, too.
82633         [!weak_alias]: Define __memchr to memchr.
82634
82635         * lib/regex.c: Update from libc.
82636         * lib/regex.h: Likewise.
82637         * lib/getopt1.c: Likewise.
82638         * lib/memcmp.c: Likewise.
82639
82640         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
82641         Avoid using fseek, when possible -- it's broken by design.
82642         Patch by Ulrich Drepper.
82643
82644 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
82645
82646         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
82647         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
82648         Giving in to popular pressure to shut up the compiler with casts.
82649
82650 2000-10-26  Jim Meyering  <meyering@lucent.com>
82651
82652         * lib/strftime.c: Update from libc.
82653
82654 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
82655
82656         * regex.c: More `unsigned char' -> `re_char' changes.
82657         Also change several `int' into `re_wchar_t'.
82658         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
82659         (PUSH_FAILURE_POINTER): Don't cast any more.
82660         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
82661         We want GCC to complain, since this piece of code makes
82662         re_match non-reentrant, which *should* be fixed.
82663         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
82664         (EXTEND_BUFFER): Use RETALLOC.
82665         (SET_LIST_BIT): Don't cast.
82666         (re_wchar_t): New type.
82667         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
82668         that those two functions will always properly return.
82669         (IMMEDIATE_QUIT_CHECK): Cast to void.
82670         (analyse_first): Use recursion rather than an explicit stack.
82671         (re_compile_fastmap): Can't fail anymore.
82672         (re_search_2): Don't check re_compile_fastmap for failure.
82673         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
82674         Now also sets the new value (passed in a new argument).
82675         (re_match_2_internal): Use it.
82676         Also, use a new var `reg' of type size_t when looping through regs
82677         rather than reuse the inappropriate `mcnt'.
82678
82679 2000-10-25  Jim Meyering  <meyering@lucent.com>
82680
82681         * lib/obstack.c: Update from libc.
82682
82683 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
82684
82685         * regex.c (regex_compile): Change the way of handling a range from
82686         a char less than 256 to a char not less than 256.
82687
82688 2000-10-24  Andrew Innes  <andrewi@gnu.org>
82689
82690         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
82691         NT-Emacs only.
82692         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
82693         so that re_search functions only quit when callers expect them to.
82694
82695 2000-10-23  Jim Meyering  <meyering@lucent.com>
82696
82697         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
82698         wrong.  That set_locale call must not have any side effects.
82699         From Paul Eggert.
82700
82701 2000-10-22  Jim Meyering  <meyering@lucent.com>
82702
82703         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
82704         [CYCLIC]: Remove now-unused definition.
82705
82706         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
82707         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
82708         Suggestion from Ulrich Drepper.
82709
82710 2000-10-21  Jim Meyering  <meyering@lucent.com>
82711
82712         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
82713         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
82714         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
82715
82716 2000-10-21  Jim Meyering  <meyering@lucent.com>
82717
82718         * lib/dirname.c (memrchr): Declare if necessary.
82719         (dir_name): Remove the restriction that there be no
82720         trailing slashes.  Now, this code skips past them, effectively
82721         ignoring them.
82722         [TEST_DIRNAME] (main): New unit tests.
82723
82724         * lib/memrchr.c: New file from GNU libc.
82725         Undef __memrchr, too.
82726         [!weak_alias]: Define __memrchr to memrchr.
82727         Guard weak_alias use with `#ifdef weak_alias'.
82728
82729 2000-10-21  Jim Meyering  <meyering@lucent.com>
82730
82731         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
82732         (dir_name): Use dir_name_r.
82733         * lib/dirname.h (dir_name_r): Declare it.
82734
82735 2000-10-17  Jim Meyering  <meyering@lucent.com>
82736
82737         * lib/quote.h (PARAMS): Define and use.
82738         Reported by Akim Demaille.
82739
82740         * lib/getopt.c: Update from libc.
82741
82742 2000-10-16  Jim Meyering  <meyering@lucent.com>
82743
82744         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
82745         setlocale.
82746         From Jan Fedak.
82747
82748 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
82749
82750         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
82751
82752 2000-09-25  Jim Meyering  <meyering@lucent.com>
82753
82754         * lib/md5.h (rol): Define (from GnuPG).
82755
82756         * lib/sha.c: Give credit (GnuPG) where due.
82757         (M): Use rol rather than open-coding it.
82758         Add a FIXME comment.
82759
82760 2000-09-21  Jim Meyering  <meyering@lucent.com>
82761
82762         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
82763         Reported by Michael Stone.
82764
82765 2000-09-20  Jim Meyering  <meyering@lucent.com>
82766
82767         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
82768         (noinst_HEADERS): Add sha.h.
82769         Based on code from Scott G. Miller and from GnuPG.
82770
82771 2000-09-18  Jim Meyering  <meyering@lucent.com>
82772
82773         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
82774         LIBS. Otherwise, everyone ends up linking with -lelf for some
82775         configurations.
82776         Reported by Mike Stone.
82777
82778 2000-09-15  Jim Meyering  <meyering@lucent.com>
82779
82780         * lib/regex.c: Update from libc.
82781
82782 2000-09-10  Jim Meyering  <meyering@lucent.com>
82783
82784         * lib/getopt.c (_getopt_internal): Update from glibc.
82785
82786 2000-09-09  Jim Meyering  <meyering@lucent.com>
82787
82788         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
82789         think it should be used as a general replacement for isascii.
82790         * lib/fnmatch.c: Likewise.
82791         * lib/mbswidth.c: Likewise
82792         * lib/regex.c: Likewise.
82793
82794         Don't use atoi.
82795         * lib/userspec.c: Include sys/param.h and limits.h.
82796         Include xstrtol.h.
82797         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
82798         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
82799         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
82800         UID, GID.  Check range.
82801
82802 2000-09-06  Jim Meyering  <meyering@lucent.com>
82803
82804         * lib/getopt.c (_getopt_internal): Update from glibc.
82805
82806 2000-08-30  Jim Meyering  <meyering@lucent.com>
82807
82808         * lib/strftime.c: Merge in changes from GNU libc.
82809
82810 2000-08-26  Jim Meyering  <meyering@lucent.com>
82811
82812         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
82813         * m4/fpending.m4: New file.
82814
82815 2000-08-26  Jim Meyering  <meyering@lucent.com>
82816
82817         * lib/closeout.c: Include "__fpending.h".
82818         (close_stdout_status): Return right away if there's nothing to flush.
82819
82820         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
82821         * lib/__fpending.c: New file.
82822         * lib/__fpending.h: New file.
82823
82824 2000-08-20  Jim Meyering  <meyering@lucent.com>
82825
82826         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
82827         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
82828         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
82829
82830 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
82831
82832         Improve fileutils installation on systems where running
82833         programs (like install) can't be unlinked.
82834         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
82835         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
82836
82837 2000-08-07  Paul Eggert  <eggert@twinsun.com>
82838
82839         Standardize on "memory exhausted" instead of "Memory exhausted"
82840         or "virtual memory exhausted".
82841         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
82842         "virtual memory exhausted".
82843         * lib/same.c (same_name): Invoke xalloc_die instead of printing
82844         our own message.
82845         * lib/userspec.c (parse_user_spec): Likewise.
82846         * lib/bumpalloc.h: comment fix
82847         * lib/same.c, userspec.c: Include xalloc.h.
82848
82849         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
82850         not char *const and pointing to a constant array.
82851         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
82852         (xrealloc): Comment fix.
82853
82854         * lib/userspec.c (parse_user_spec):
82855         Don't translate a message until just before returning,
82856         to avoid unnecessary translation.
82857
82858 2000-08-07  Jim Meyering  <meyering@lucent.com>
82859
82860         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
82861         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
82862         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
82863         getgroups.c, gethostname.c, getopt.h, group-member.c,
82864         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
82865         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
82866         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
82867         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
82868         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
82869         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
82870         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
82871         yesno.c: Back out Copyright date changes for each file with no change
82872         this year.  This eases coordination with other programs using the same
82873         source code modules.  From Paul Eggert.
82874
82875 2000-08-06  Paul Eggert  <eggert@twinsun.com>
82876
82877         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
82878         not char, for compatibility with glibc 2.1.3 strftime.c.
82879
82880 2000-08-03  Greg McGary  <greg@mcgary.org>
82881
82882         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
82883         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
82884         (EXTEND_BUFFER): Use them.
82885
82886 2000-08-01  Jim Meyering  <meyering@lucent.com>
82887
82888         * lib/dirname.c (ISSLASH): Define.
82889         (BACKSLASH_IS_PATH_SEPARATOR): Define.
82890         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
82891         both `\' and `/' may be use as path separators.
82892         Based on a patch from Prashant TR.
82893
82894 2000-07-31  Paul Eggert  <eggert@twinsun.com>
82895
82896         * lib/quotearg.c (quotearg_n_options): Don't make the initial
82897         slot vector a constant, since it might get modified.
82898
82899 2000-07-31  Jim Meyering  <meyering@lucent.com>
82900
82901         * lib/xmalloc.c: Use `virtual memory exhausted', not
82902         `Memory exhausted'.
82903         * lib/obstack.c (print_and_abort): Likewise.
82904
82905 2000-07-30  Paul Eggert  <eggert@twinsun.com>
82906
82907         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
82908         buffer, so that the caller can always quote one small
82909         component of a "memory exhausted" message in slot 0.
82910         From a suggestion by Jim Meyering.
82911
82912 2000-07-30  Jim Meyering  <meyering@lucent.com>
82913
82914         * lib/makepath.c (make_path): Quote the other instance, too.
82915
82916         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
82917         (STATIC_BUF_SIZE): Define.
82918         (quotearg_n_options): Use only statically allocated storage when
82919         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
82920         than STATIC_BUF_SIZE.
82921
82922 2000-07-29  Jim Meyering  <meyering@lucent.com>
82923
82924         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
82925         * lib/dirname.c (dir_name): Likewise.
82926
82927         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
82928         `/'.
82929
82930         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
82931         (dir_name): Assert that there are no trailing slashes.
82932
82933 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
82934
82935         * lib/mbswidth.h (mbswidth): Add a flags argument.
82936         (mbswidth): New declaration.
82937         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
82938         * lib/mbswidth.c (mbswidth): Add a flags argument.
82939         (mbsnwidth): New function.
82940
82941 2000-07-24  Jim Meyering  <meyering@lucent.com>
82942
82943         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
82944
82945 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82946
82947         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
82948
82949 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82950
82951         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
82952         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
82953         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
82954         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
82955         invoke multibyte primitives.
82956
82957 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82958
82959         * lib/quotearg.c:
82960         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
82961         so that mbstate_t is always defined.
82962
82963         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
82964         be 1 in at least one GCC installation, and this configuration
82965         error is likely to be common.  Ignoring MB_LEN_MAX hurts
82966         performance on hosts that have mbrtowc but have only unibyte
82967         locales, but I assume these hosts are rare.
82968
82969 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82970
82971         * lib/mbswidth.c (_XOPEN_SOURCE):
82972         Don't define; this causes problems on Solaris 7.
82973         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
82974
82975 2000-07-23  Jim Meyering  <meyering@lucent.com>
82976
82977         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
82978         too: getgrgid, getpwuid, getuid.
82979
82980 2000-07-23  Jim Meyering  <meyering@lucent.com>
82981
82982         * lib/basename.c (base_name): Add an assertion.
82983
82984 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
82985
82986         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
82987         shadow its mbsinit function.
82988
82989 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
82990
82991         * lib/mbswidth.h: New file.
82992         * lib/mbswidth.c: New file.
82993         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
82994         (noinst_HEADERS): Add mbswidth.h.
82995
82996 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
82997
82998         * lib/config.charset: Add support for FreeBSD. Improve support for
82999         HP-UX and IRIX 6.
83000
83001 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
83002
83003         * m4/mbswidth.m4: New file.
83004         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
83005
83006 2000-07-15  Jim Meyering  <meyering@lucent.com>
83007
83008         * lib/makepath.c: Include quote.h.
83009         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
83010         corresponding argument in a `quote (...)' call.
83011         Give better diagnostics.
83012
83013         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
83014         (noinst_HEADERS): Add quote.h.
83015
83016         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
83017         from tar's src/misc.c.
83018         * lib/quote.h: New file.  Prototypes for same.
83019
83020 2000-07-14  Paul Eggert  <eggert@twinsun.com>
83021
83022         From a suggestion by Bruno Haible.
83023         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
83024         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
83025         to decide whether to define the BeOS workaround macro;
83026         this adjusts to the change to AC_MBSTATE_T.
83027
83028 2000-07-14  Jim Meyering  <meyering@lucent.com>
83029
83030         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
83031         jm_AC_TYPE_UINTMAX_T.
83032
83033 2000-07-13  Paul Eggert  <eggert@twinsun.com>
83034
83035         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
83036
83037         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
83038         quotearg_buffer_restyled): Add support for
83039         clocale_quoting_style.  Undo previous change to
83040         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
83041         and "{RIGHT QUOTATION MARK}" msgids.
83042
83043 2000-07-10  Paul Eggert  <eggert@twinsun.com>
83044
83045         From a suggestion by Bruno Haible.
83046         * m4/mbstate_t.m4 (AC_MBSTATE_T):
83047         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
83048         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
83049         and mbstate_t, to a single-part test that simply defines mbstate_t.
83050         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
83051         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
83052
83053 2000-07-10  Jim Meyering  <meyering@lucent.com>
83054
83055         * m4/strerror_r.m4: Mirror the correction made in autoconf.
83056
83057         * m4/gnu-source.m4: Output to confdefs.h directly.
83058         Suggestion from Akim Demaille.
83059
83060 2000-07-09  Paul Eggert  <eggert@twinsun.com>
83061
83062         The old behavior of quoting `like this' doesn't look good with
83063         newer, ISO-style fonts.  See:
83064         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
83065
83066         Instead, quote "like this" by default.  Let the translator
83067         tailor the locale-specific quoting behavior by providing
83068         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
83069
83070         * lib/quotearg.c (N_): New macro.
83071         (gettext_default): New function.
83072         (quotearg_buffer_restyled): Use
83073         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
83074         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
83075
83076 2000-07-09  Jim Meyering  <meyering@lucent.com>
83077
83078         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
83079         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
83080
83081         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
83082         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
83083
83084 2000-07-09  Jim Meyering  <meyering@lucent.com>
83085
83086         * lib/Most files: Update copyright dates to include 2000.
83087
83088 2000-07-08  Jim Meyering  <meyering@lucent.com>
83089
83090         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
83091         if not defined.
83092         (xgethostname): Remove now-unnecessary #ifdef.
83093         Move declaration of `err' into loop where it's used.
83094
83095 2000-07-05  Paul Eggert  <eggert@twinsun.com>
83096         and Bruno Haible  <haible@clisp.cons.org>
83097
83098         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
83099         only if the test for an object-type mbstate_t fails.  This
83100         prevents us from mistakenly reporting that mbstate_t is a
83101         system object type after we "#define mbstate_t int" to work
83102         around its lack.
83103
83104 2000-07-05  Paul Eggert  <eggert@twinsun.com>
83105         and Bruno Haible  <haible@clisp.cons.org>
83106
83107         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
83108
83109 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
83110
83111         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
83112         to strerror_r.
83113         Include <ctype.h> for use of isalpha.
83114
83115 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
83116
83117         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
83118         by allocating a larger buffer. Test the gethostname return value for
83119         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
83120         returns an error and ENAMETOOLONG isn't defined.
83121
83122 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
83123
83124         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
83125         dimension.
83126
83127 2000-07-04  Jim Meyering  <meyering@lucent.com>
83128
83129         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
83130         of the deprecated AC_CHECKING.
83131
83132 2000-07-04  Jim Meyering  <meyering@lucent.com>
83133
83134         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
83135         Reported by Bruno Haible.
83136
83137 2000-07-04  Jim Meyering  <meyering@lucent.com>
83138
83139         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
83140         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
83141         lacks mbrtowc.
83142
83143 2000-07-03  Paul Eggert  <eggert@twinsun.com>
83144
83145         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
83146         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
83147
83148 2000-07-03  Paul Eggert  <eggert@twinsun.com>
83149         and Bruno Haible  <haible@clisp.cons.org>
83150
83151         * lib/quotearg.c (mbrtowc):
83152         Assign to *pwc, and return 1 only if result is nonzero.
83153         (iswprint): Use ISPRINT when substituting our own mbrtowc.
83154
83155 2000-07-03  Jim Meyering  <meyering@lucent.com>
83156
83157         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
83158
83159 2000-07-03  Jim Meyering  <meyering@lucent.com>
83160
83161         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
83162         This is necessary to get a definition of e.g., UTMP_FILE on
83163         HP-UX 10.20.
83164         From Bob Proulx.
83165
83166 2000-07-02  Jim Meyering  <meyering@lucent.com>
83167
83168         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
83169
83170         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
83171         AC_LIBOBJ(function_name).
83172         * m4/chown.m4: Likewise.
83173         * m4/fnmatch.m4: Likewise.
83174         * m4/ftruncate.m4: Likewise.
83175         * m4/getgroups.m4: Likewise.
83176         * m4/getline.m4: Likewise.
83177         * m4/group-member.m4: Likewise.
83178         * m4/jm-macros.m4: Likewise.
83179         * m4/lstat.m4: Likewise.
83180         * m4/malloc.m4: Likewise.
83181         * m4/memcmp.m4: Likewise.
83182         * m4/nanosleep.m4: Likewise.
83183         * m4/putenv.m4: Likewise.
83184         * m4/realloc.m4: Likewise.
83185         * m4/regex.m4: Likewise.
83186         * m4/stat.m4: Likewise.
83187         * m4/strftime.m4: Likewise.
83188
83189 2000-07-02  Jim Meyering  <meyering@lucent.com>
83190
83191         * lib/quotearg.c (mbstate_t): Don't define here.
83192
83193 2000-07-02  Jim Meyering  <meyering@lucent.com>
83194
83195         * lib/nanosleep.c (SIGCONT): Define if not already defined.
83196
83197 2000-07-01  Jim Meyering  <meyering@lucent.com>
83198
83199         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
83200
83201 2000-07-01  Jim Meyering  <meyering@lucent.com>
83202
83203         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
83204         problem.
83205
83206 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
83207
83208         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
83209         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
83210
83211 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
83212
83213         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
83214         per change in ../m4/ls-mntd-fs.m4.
83215         (read_filesystem_list): Ignore symbolic links.
83216
83217 2000-06-29  Jim Meyering  <meyering@lucent.com>
83218
83219         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
83220         for declaration of strcmp.
83221
83222         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
83223
83224         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
83225         Avoid warning by casting result to `char *' to remove `const'.
83226
83227 2000-06-28  Jim Meyering  <meyering@lucent.com>
83228
83229         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
83230         included by quotearg.c, for which we perform this test.  From
83231         Bruno Haible.
83232
83233 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
83234
83235         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
83236         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
83237         <utmpx.h> exists, put readutmp.o into LIBOBJS.
83238
83239 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
83240
83241         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
83242
83243 2000-06-26  Paul Eggert  <eggert@twinsun.com>
83244
83245         savedir now sets errno on failure and invokes xmalloc to get memory.
83246         Fix a couple of other minor bugs while we're at it.
83247
83248         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
83249         (NAMLEN): Remove macro.
83250         (malloc, realloc): Remove decls.
83251         (stpcpy): Likewise.
83252         ("xalloc.h"): Include.
83253         (NAME_SIZE_DEFAULT): New macro.
83254         (savedir): Use xmalloc / xrealloc to allocate memory.
83255         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
83256         Skip "" directory entries.
83257         Use strlen to calculate directory entry length, since the old method
83258         is rarely used these days and isn't worth supporting.
83259         Don't use a pointer after freeing it.
83260         Check for integer overflow when calculating allocation size.
83261         Use memcpy to copy entries, instead of stpcpy.
83262         Set errno properly when returning NULL.
83263         Check for readdir error.
83264
83265 2000-06-26  Jim Meyering  <meyering@lucent.com>
83266
83267         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
83268
83269 2000-06-25  Jim Meyering  <meyering@lucent.com>
83270
83271         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
83272         Linux header bug when _XOPEN_SOURCE is defined to 500.
83273
83274 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
83275
83276         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
83277         deficiency.
83278
83279 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
83280
83281         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
83282         Include xalloc.h.
83283         Don't include <stdlib.h>.  Don't declare malloc, realloc.
83284
83285 2000-06-24  Jim Meyering  <meyering@lucent.com>
83286
83287         * m4/strerror_r.m4: Revive this file -- to try out an experimental
83288         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
83289         for which strerror does return char*, but which lacks a conveniently
83290         accessible declaration of the function.  If the compile-test says
83291         strerror_r doesn't work, then resort to a `run'-test that works on
83292         BeOS and segfaults on DEC Unix.
83293
83294 2000-06-24  Jim Meyering  <meyering@lucent.com>
83295
83296         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
83297
83298 2000-06-23  Paul Eggert  <eggert@twinsun.com>
83299
83300         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
83301         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
83302
83303 2000-06-23  Paul Eggert  <eggert@twinsun.com>
83304
83305         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
83306         (mbrtowc, mbstate_t): Define substitutes if
83307         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
83308         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
83309         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
83310
83311 2000-06-23  Jim Meyering  <meyering@lucent.com>
83312
83313         * m4/afs.m4: Add missing AC_MSG_RESULT.
83314         Reported by Bruno Haible.
83315
83316         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
83317         Suggestion from Bruno Haible.
83318
83319 2000-06-23  Jim Meyering  <meyering@lucent.com>
83320
83321         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
83322
83323 2000-06-21  Jim Meyering  <meyering@lucent.com>
83324
83325         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
83326
83327 2000-06-21  Jim Meyering  <meyering@lucent.com>
83328
83329         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
83330         (noinst_HEADERS): Add getstr.h.
83331
83332         * lib/getline.c (getstr): Move into a separate file.
83333         * lib/getstr.c (getstr): New file, extracted from getline.c, with
83334         the following changes: new parameter, delim2; both delim[12]
83335         parameters have type `int', not `char'.  The latter would lose
83336         with 8-bit delimiters.
83337         * lib/getstr.h: New file.
83338
83339 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
83340
83341         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
83342         than 1024, return a memory chunk of least possible size, instead
83343         of size PATH_MAX + 2. In the loop, increment the size proportionally.
83344         Use free/xmalloc instead of xrealloc to avoid copying for very long
83345         paths.
83346
83347 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
83348
83349         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
83350         the empty string.
83351
83352 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
83353
83354         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
83355         address, not strdup.  Include <stdlib.h> and don't declare free().
83356
83357 2000-06-19  Jim Meyering  <meyering@lucent.com>
83358
83359         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
83360
83361 2000-06-18  Jim Meyering  <meyering@lucent.com>
83362
83363         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
83364
83365         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
83366         `checking whether...' message to be consistent with that of the
83367         lstat test.
83368
83369 2000-06-18  Jim Meyering  <meyering@lucent.com>
83370
83371         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
83372         Besides, these days every porting target provides a mkdir function.
83373
83374         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
83375         needed. (this snippet comes from src/system.h).
83376
83377 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
83378
83379         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
83380
83381 2000-06-15  Paul Eggert  <eggert@twinsun.com>
83382
83383         * lib/human.c (adjust_value): New function.
83384         (human_readable_inexact): Apply rounding style even when
83385         printing approximate values.
83386
83387 2000-06-14  Paul Eggert  <eggert@twinsun.com>
83388
83389         * lib/human.c (human_readable_inexact): Allow an input block
83390         size that is not a multiple of the output block size, and vice versa.
83391         Reported by Piergiorgio Sartor.
83392
83393 2000-06-14  Paul Eggert  <eggert@twinsun.com>
83394
83395         * lib/getdate.y (get_date): Apply relative times after time
83396         zone indicator, not before.  Reported by Todd A. Jacobs.
83397
83398 2000-06-13  Jim Meyering  <meyering@lucent.com>
83399
83400         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
83401
83402         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
83403
83404 2000-06-12  Paul Eggert  <eggert@twinsun.com>
83405
83406         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
83407
83408 2000-06-12  Jim Meyering  <meyering@lucent.com>
83409
83410         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
83411         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
83412         optional argument.
83413         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
83414         the optional argument, `lib'.
83415
83416 2000-06-08  Jim Meyering  <meyering@lucent.com>
83417
83418         * m4/largefile.m4: Remove file (now that it's part of autoconf).
83419
83420 2000-06-04  Paul Eggert  <eggert@twinsun.com>
83421
83422         Rewrite largefile configuration so that we don't need to run
83423         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
83424         AC_CANONICAL_HOST in configure.in -- jmm]
83425
83426         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
83427         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
83428         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
83429         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
83430         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
83431         All uses changed.
83432         Instead of inspecting the output of getconf, try to compile the
83433         test program without and with the macro definition.
83434         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
83435         for getconf.  Instead, check for the needed flags by compiling
83436         test programs.
83437
83438 2000-06-04  Paul Eggert  <eggert@twinsun.com>
83439
83440         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
83441
83442 2000-06-04  Jim Meyering  <meyering@lucent.com>
83443
83444         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
83445         SunOS 4.1.4 for which gid_t is an unsigned type.
83446
83447 2000-06-03  Jim Meyering  <meyering@lucent.com>
83448
83449         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
83450         now that autoconf requires that.
83451
83452         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
83453         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
83454         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
83455
83456 2000-06-03  Jim Meyering  <meyering@lucent.com>
83457
83458         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
83459
83460 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
83461
83462         * m4/glibc21.m4: New file.
83463         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
83464
83465 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
83466
83467         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
83468         newer, don't install charset.alias.
83469         * lib/config.charset: Change the Linux/glibc rules so they become empty
83470         on glibc-2.1 or newer.
83471
83472 2000-06-02  Jim Meyering  <meyering@lucent.com>
83473
83474         * lib/mountlist.c: Back out last change.  Instead, do this...
83475         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
83476         me_dummy member using the same `ignore'-testing code.
83477         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
83478         fs_type strings.
83479         From Mark D. Roth.
83480
83481 2000-05-29  Jim Meyering  <meyering@lucent.com>
83482
83483         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
83484         mounts with the `ignore' attribute.  Based on a patch from
83485         Mark D. Roth.
83486
83487 2000-05-28  Jim Meyering  <meyering@lucent.com>
83488
83489         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
83490         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83491         * m4/stat.m4: Likewise.
83492         * m4/lstat.m4: Likewise.
83493         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
83494
83495         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
83496         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
83497
83498 2000-05-26  Jim Meyering  <meyering@lucent.com>
83499
83500         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
83501
83502 2000-05-24  Jim Meyering  <meyering@lucent.com>
83503
83504         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
83505         autoconf requires that.
83506         * m4/lib-check.m4: Likewise.
83507         * m4/jm-macros.m4: Likewise.
83508         * m4/strftime.m4: Likewise.
83509
83510         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
83511         AC_CHECK_DECLS, now that autoconf requires that.
83512
83513 2000-05-22  Jim Meyering  <meyering@lucent.com>
83514
83515         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83516         * m4/lstat.m4: Likewise.
83517
83518 2000-05-22  Jim Meyering  <meyering@lucent.com>
83519
83520         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
83521
83522 2000-05-20  Jim Meyering  <meyering@lucent.com>
83523
83524         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
83525         (jm_PREREQ): Use it.
83526
83527 2000-05-18  Jim Meyering  <meyering@lucent.com>
83528
83529         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
83530         back, too, since it may have been modified by allocate_entry.
83531         (hash_delete): Rewrite to use neither the assignment operator
83532         nor the comma operator in an if-expression.
83533
83534 2000-05-15  Paul Eggert  <eggert@twinsun.com>
83535
83536         * lib/closeout.c:
83537         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
83538         Remove; no longer needed.
83539         "quotearg.h": Add include.
83540         (file_name): Do not bother to explicitly initialize to NULL; it's less
83541         efficient on some hosts.
83542         (close_stdout_status): Remove test as to whether stdout was already
83543         closed; it breaks for the case "echo x | sort >&-".
83544         Quote file name colons.
83545         Do not assume that _("write error") lacks format strings.
83546
83547 2000-05-15  Jim Meyering  <meyering@lucent.com>
83548
83549         * lib/version-etc.c (version_etc_copyright): Update the copyright
83550         string used in all --version output.
83551
83552 2000-05-14  Jim Meyering  <meyering@lucent.com>
83553
83554         * lib/closeout.c (close_stdout_set_file_name): New function.
83555         (close_stdout_status): Use new file-scoped global.
83556         Return right away if fstat says the stdout file descriptor is invalid.
83557         * lib/closeout.h (close_stdout_set_file_name): Declare.
83558
83559 2000-05-10  Jim Meyering  <meyering@lucent.com>
83560
83561         * lib/closeout.c [default_exit_status]: New file-scoped variable.
83562         (close_stdout_set_status): New function.
83563         * lib/closeout.h (close_stdout_set_status): Declare.
83564
83565 2000-05-09  Jim Meyering  <meyering@lucent.com>
83566
83567         * m4/gettext.m4: Rename this...
83568         * m4/libintl.m4: ...to this.
83569
83570 2000-05-08  Jim Meyering  <meyering@lucent.com>
83571
83572         * lib/long-options.c: Don't include closeout.h.
83573         (parse_long_options): Don't call close_stdout for --version.
83574
83575 2000-05-06  Paul Eggert  <eggert@twinsun.com>
83576
83577         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
83578         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
83579         2.1.3 bug.  This avoids a clash when files like regex.c define
83580         _GNU_SOURCE.
83581
83582 2000-05-06  Jim Meyering  <meyering@lucent.com>
83583
83584         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
83585         (AC_REPLACE_FUNCS): Add strnlen.
83586
83587         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
83588         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
83589
83590         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
83591         AC_SEARCH_LIBS call for nanosleep.
83592         (LIB_NANOSLEEP): Set and AC_SUBST.
83593
83594 2000-05-06  Jim Meyering  <meyering@lucent.com>
83595
83596         * lib/strnlen.c: Undefine __strnlen and strnlen.
83597         [!weak_alias]: Define __strnlen to strnlen.
83598
83599         * lib/atexit.c: New file, from libiberty.
83600
83601 2000-05-06  Jim Meyering  <meyering@lucent.com>
83602
83603         * lib/closeout.c (close_stdout_status): Also check for errors on the
83604         stderr stream.
83605
83606 2000-05-05  Jim Meyering  <meyering@lucent.com>
83607
83608         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
83609         AC_SEARCH_LIBS call for clock_gettime.
83610         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
83611
83612         * m4/search-libs.m4: Update from autoconf.
83613
83614         su doesn't work on Solaris 2.6.
83615         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
83616         <shadow.h>.  Reported by Dragos Harabor.
83617
83618 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
83619
83620         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
83621         memcpy instead of xmalloc, xrealloc, path_concat.
83622         (locale_charset): Treat empty environment variables as absent.
83623         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
83624
83625 2000-05-04  Jim Meyering  <meyering@lucent.com>
83626
83627         * lib/getopt.c: Update from glibc.
83628         * lib/obstack.c: Likewise.
83629         * lib/obstack.h: Likewise.
83630         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
83631         file
83632
83633         * lib/regex.h: Likewise.
83634         * lib/strndup.c: Likewise.
83635         * lib/strnlen.c: New file, from glibc.
83636
83637 2000-05-03  Jim Meyering  <meyering@lucent.com>
83638
83639         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
83640
83641 2000-05-02  Paul Eggert  <eggert@twinsun.com>
83642
83643         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
83644         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
83645         compile-time test, rather than inspecting host and OS, to
83646         decide whether to define _LARGEFILE_SOURCE.
83647
83648 2000-05-01  Jim Meyering  <meyering@lucent.com>
83649
83650         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
83651
83652         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
83653         Based on a patch from Bruno Haible.
83654
83655 2000-05-01  Jim Meyering  <meyering@lucent.com>
83656
83657         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
83658
83659 2000-04-29  Jim Meyering  <meyering@lucent.com>
83660
83661         * lib/path-concat.c: Declare strdup only if it's not defined.
83662         * lib/canon-host.c: Likewise.
83663
83664 2000-04-28  Jim Meyering  <meyering@lucent.com>
83665
83666         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
83667         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
83668         is included first, then limits.h is included by locale.h by libintl.h.
83669         From John David Anglin.
83670
83671 2000-04-25  Jim Meyering  <meyering@lucent.com>
83672
83673         * lib/makepath.c (S_IRWXUGO): Define.
83674         (make_path): Always perform explicit chmod if MODE specifies any
83675         of the `special' permission bits.  Prompted by a bug report against
83676         install from Mate Wierdl and Joost van Baal.
83677
83678 2000-04-18  Jim Meyering  <meyering@lucent.com>
83679
83680         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
83681         (jm_PREREQ): Use it.
83682
83683 2000-04-18  Jim Meyering  <meyering@lucent.com>
83684
83685         * lib/README: New file.
83686
83687         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
83688         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
83689
83690 2000-04-17  Jim Meyering  <meyering@lucent.com>
83691
83692         Get it right :-)
83693         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
83694         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
83695         Suggestion from Akim Demaille.
83696
83697 2000-04-17  Jim Meyering  <meyering@lucent.com>
83698
83699         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
83700         the definition of it to rpl_strftime also defined-away the system's
83701         declaration.
83702
83703 2000-04-15  Jim Meyering  <meyering@lucent.com>
83704
83705         Use `C' to denote so-called `contiguous' files, the same way
83706         that tar does.
83707         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
83708         (ftypelet): Use S_ISCTG.
83709         From Michael Deutschmann.
83710
83711 2000-04-14  Jim Meyering  <meyering@lucent.com>
83712
83713         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
83714         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
83715         clobbered.
83716
83717 2000-04-14  Jim Meyering  <meyering@lucent.com>
83718
83719         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
83720
83721 2000-04-13  Jim Meyering  <meyering@lucent.com>
83722
83723         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
83724         AH_VERBATIM to insert required #ifndef into config.h.in.
83725         Suggestion from Akim Demaille.
83726
83727 2000-04-12  Jim Meyering  <meyering@lucent.com>
83728
83729         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
83730         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
83731         Christian Krackowizer.
83732
83733         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
83734         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
83735         (AC_SYS_LARGEFILE): Require.
83736         (AM_C_PROTOTYPES): Require.
83737
83738 2000-04-08  Jim Meyering  <meyering@lucent.com>
83739
83740         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
83741         names don't conflict.  Reported by Eli Zaretskii.
83742
83743 2000-04-07  Jim Meyering  <meyering@lucent.com>
83744
83745         * lib/putenv.c: Move inclusion of errno.h so it follows that of
83746         sys/types.h, to work around system header problems on AIX 3.2.5.
83747         From Bruno Haible.
83748
83749 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
83750
83751         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
83752         bug.  Deal with the different error behavior of Irix iconv.
83753
83754 2000-04-05  Paul Eggert  <eggert@twinsun.com>
83755
83756         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
83757         IRIX if the installer said otherwise.
83758
83759 2000-04-05  Jim Meyering  <meyering@lucent.com>
83760
83761         Portability tweaks required for ultrix4.3.
83762         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
83763         (jm_CHECK_DECLS): Add getutent to the list of functions.
83764         (_jm_DECL_HEADERS): Add utmpx.h.
83765         From John David Anglin.
83766
83767         * m4/strftime.m4: Back out the 2000-04-02 change.
83768         Instead of that change, simply undefine putenv in the test program.
83769
83770 2000-04-05  Jim Meyering  <meyering@lucent.com>
83771
83772         Portability tweaks required for ultrix4.3.
83773         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
83774         getutent.
83775         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
83776         * lib/canon-host.c: Declare strdup.
83777         * lib/path-concat.c: Likewise.
83778         From John David Anglin.
83779
83780 2000-04-04  Jim Meyering  <meyering@lucent.com>
83781
83782         Be more DOS 8.3-friendly.
83783         * lib/ref-add.sin: Renamed from ref-add.sed.in.
83784         * lib/ref-del.sin: Renamed from ref-del.sed.in.
83785         * lib/Makefile.am: Reflect renaming.
83786         Reported by Eli Zaretskii.
83787
83788         Use a temporary file name that won't clash with `charset.alias'
83789         in the DOS 8.3 name space.
83790         * lib/Makefile.am (charset_tmp): Define.
83791         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
83792         (uninstall-local): Likewise.
83793         Reported by Eli Zaretskii.
83794
83795 2000-04-03  Jim Meyering  <meyering@lucent.com>
83796
83797         * m4/gettext.m4: Fix typo in comment.
83798
83799         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
83800         textutils/configure.in).  Suggestion from Paul Eggert.
83801         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
83802
83803 2000-04-02  Paul Eggert  <eggert@twinsun.com>
83804
83805         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
83806         variable in the shell rather than using putenv, which isn't
83807         portable.  This avoids the configure-time inter-test dependency
83808         on the potentially-renamed putenv function.
83809
83810 2000-03-30  Paul Eggert  <eggert@twinsun.com>
83811
83812         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
83813         before checking struct stat.st_blksize, so that
83814         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
83815
83816 2000-03-29  Paul Eggert  <eggert@twinsun.com>
83817
83818         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
83819         since strftime.c uses HAVE_STRFTIME to decide whether to use
83820         the underlying strftime.
83821
83822 2000-03-29  Paul Eggert  <eggert@twinsun.com>
83823
83824         * lib/time/strftime.c (my_strftime): Make sure we call the system
83825         strftime, not ourselves, when invoking the underlying strftime.
83826
83827 2000-03-24  Jim Meyering  <meyering@lucent.com>
83828
83829         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
83830         (charset_alias): Define.
83831         (install-exec-local): Factor out common code.
83832         (uninstall-local): Split lines longer than 80.
83833         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
83834         (SUFFIXES): Define.
83835         (.sed.in.sed): New rule.  Don't redirect directly to $@.
83836         (CLEANFILES): Add ref-add.sed and ref-del.sed.
83837
83838 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
83839
83840         * lib/config.charset: Output a line containing "Packages using this
83841         file".
83842         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
83843         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
83844         ref-del.sed): New rules.
83845
83846 2000-03-17  Jim Meyering  <meyering@lucent.com>
83847
83848         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
83849         Otherwise, include <strings.h>
83850
83851 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
83852
83853         * lib/unicodeio.c (utf8_wctomb): New function.
83854         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
83855         format instead of in UCS-4 with platform dependent endianness.
83856
83857 2000-03-10  Jim Meyering  <meyering@lucent.com>
83858
83859         * m4/lib-check.m4: Look for getspnam in -lgen, too.
83860         From Marco Franzen.
83861
83862 2000-03-07  Paul Eggert  <eggert@twinsun.com>
83863
83864         * lib/savedir.c (savedir): Work even if directory size is
83865         negative; this can happen with some screwy NFS configurations.
83866
83867 2000-03-06  Jim Meyering  <meyering@lucent.com>
83868
83869         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
83870         if it's NULL (because we ran out of memory).  From Bruno Haible.
83871
83872 2000-03-05  Jim Meyering  <meyering@lucent.com>
83873
83874         * lib/localcharset.c ("path-concat.h"): Include.
83875         (get_charset_aliases): Use path_concat instead of ANSI string
83876         concatenation.
83877
83878         * lib/unicodeio.h (PARAMS): Define.
83879         Use it to guard prototype.
83880
83881 2000-03-04  Jim Meyering  <meyering@lucent.com>
83882
83883         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
83884         for lib/localcharset.c.
83885
83886 2000-03-04  Jim Meyering  <meyering@lucent.com>
83887
83888         * lib/Makefile.am (install-exec-local): Create $(libdir) before
83889         installing into it.
83890         (uninstall-local): Uncomment this rule so `make distcheck' works
83891         once again.
83892
83893         * lib/unicodeio.c (<errno.h>): Include it.
83894         (errno): Declare if not defined.
83895
83896         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
83897
83898         * lib/config.charset: New version, incorporating remarks from a linux
83899         i18n mailing list.  From Bruno Haible.
83900
83901 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
83902
83903         * m4/codeset.m4: New file.
83904         * m4/iconv.m4: New file.
83905         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
83906
83907 2000-03-03  Jim Meyering  <meyering@lucent.com>
83908
83909         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
83910
83911 2000-03-02  Jim Meyering  <meyering@lucent.com>
83912
83913         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
83914         the messages come out on separate lines.
83915
83916         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
83917         rather than jm_CHECK_DECLARATIONS.
83918         * m4/decl.m4: Remove now-unused file.
83919
83920         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
83921         geteuid.
83922
83923 2000-03-02  Jim Meyering  <meyering@lucent.com>
83924
83925         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
83926
83927 2000-03-01  Jim Meyering  <meyering@lucent.com>
83928
83929         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
83930         * lib/unicodeio.c: Likewise.
83931
83932 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
83933
83934         * lib/config.charset: New file.
83935         * lib/localcharset.c: New file.
83936         * lib/unicodeio.h, lib/unicodeio.c: New files.
83937         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
83938         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
83939         (noinst_HEADERS): Add unicodeio.h.
83940         (all-local, install-exec-local, charset.alias): New targets.
83941
83942 2000-02-28  Paul Eggert  <eggert@twinsun.com>
83943
83944         * lib/quotearg.c (ALERT_CHAR): New macro.
83945         (quotearg_buffer_restyled): Use it.
83946
83947 2000-02-27  Jim Meyering  <meyering@lucent.com>
83948
83949         * m4/check-decl.m4: Add getenv to the list.
83950
83951 2000-02-27  Jim Meyering  <meyering@lucent.com>
83952
83953         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
83954         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
83955
83956         * lib/backupfile.c: Guard inclusion of stdlib.h with
83957         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
83958         Declare malloc if needed.
83959
83960         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
83961         `#ifndef HAVE_DECL..'
83962         now that autoconf always defines the HAVE_DECL_ symbols.
83963         * lib/human.c: Likewise.
83964         * lib/same.c: Likewise.
83965         * lib/strtoumax.c: Likewise.
83966
83967         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
83968         declaration check was not run.
83969         * lib/hash.c: Likewise.
83970         * lib/human.c: Likewise.
83971         * lib/same.c: Likewise.
83972         * lib/strtoumax.c: Likewise.
83973
83974         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
83975         `.', then first look up the entire `.'-containing string as a login
83976         name.
83977
83978 2000-02-23  Jim Meyering  <meyering@lucent.com>
83979
83980         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
83981         in place of my hack.
83982
83983 2000-02-18  Paul Eggert  <eggert@twinsun.com>
83984
83985         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
83986         (textint): New typedef.
83987         (parser_control): Member year changed from int to textint.
83988         All uses changed.
83989         (YYSTYPE): Removed; replaced by %union with int and textint members.
83990         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
83991         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
83992         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
83993         (tSNUMBER, tUNUMBER): Now of type <textintval>.
83994         (date, number, to_year): Use width of number in digits, not its value,
83995         to determine whether it's a 2-digit year, or a 2-digit time.
83996         (yylex): Store number of digits of numeric tokens.
83997         Reported by John Kendall.
83998
83999         (parser_control): Changed from struct parser_control to typedef (for
84000         consistency).  All uses changed.
84001
84002         (tID): Removed; not used.
84003         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
84004
84005 2000-02-14  Paul Eggert  <eggert@twinsun.com>
84006
84007         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
84008         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
84009
84010 2000-02-12  Jim Meyering  <meyering@lucent.com>
84011
84012         * lib/userspec.c (ISDIGIT): Define it.
84013         (isdigit): Remove definition.
84014         (is_number): Use ISDIGIT, not isdigit.
84015         <libintl.h>: Include.
84016         (_ and N_): Define.
84017         (parse_user_spec): Mark translatable strings.
84018
84019 2000-02-10  Jim Meyering  <meyering@lucent.com>
84020
84021         With these changes, nanosleep.[ch] are finally enough like the other
84022         lib/* replacement files to compile on a few more losing systems.
84023
84024         * lib/nanosleep.h: Don't include config.h.
84025         Remove prototype from declaration of nanosleep.
84026         (PARAMS): Remove now-unneeded definition.
84027         * lib/nanosleep.c: #undef nanosleep.
84028         (rpl_nanosleep): Rename from nanosleep.
84029
84030 2000-02-10  Jim Meyering  <meyering@lucent.com>
84031
84032         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
84033         gnu_nanosleep to rpl_nanosleep.
84034
84035 2000-02-09  Jim Meyering  <meyering@lucent.com>
84036
84037         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
84038         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
84039
84040 2000-02-08  Akim Demaille  <akim@epita.fr>
84041
84042         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
84043         `[' and `]' and remove uses of `changequote'.
84044         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
84045         (AC_SYS_LARGEFILE): Likewise.
84046         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
84047         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
84048         of changequote.
84049         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
84050         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
84051         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
84052         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
84053
84054 2000-02-05  Jim Meyering  <meyering@lucent.com>
84055
84056         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
84057         Remove explicit use of AC_HEADER_TIME.  It is required by
84058         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
84059         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
84060         in autoconf whereby the expansion of the latter ended up preceding
84061         the expansion of its prerequisite, AC_HEADER_TIME.
84062         Reported by Volker Borchert.
84063
84064 2000-02-03  Jim Meyering  <meyering@lucent.com>
84065
84066         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
84067
84068 2000-02-03  Jim Meyering  <meyering@lucent.com>
84069
84070         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
84071         rather than with `#if HAVE_UTMPNAME'.
84072
84073 2000-02-02  Jim Meyering  <meyering@lucent.com>
84074
84075         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
84076         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
84077         Reported by Eli Zaretskii.
84078
84079 2000-02-01  Jim Meyering  <meyering@lucent.com>
84080
84081         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
84082
84083 2000-01-31  Jim Meyering  <meyering@lucent.com>
84084
84085         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
84086         functions.  Add the time.h and sys/time.h headers along with the
84087         AC_REQUIRE'ment of AC_HEADER_TIME.
84088
84089 2000-01-31  Jim Meyering  <meyering@lucent.com>
84090
84091         * lib/nanosleep.h (nanosleep): Guard declaration with
84092         `#if ! HAVE_DECL_NANOSLEEP'.
84093         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
84094         the declaration in that vendor's sys/timers.h.
84095         Reported by Christian Krackowizer.
84096
84097         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
84098         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
84099         (ISPRINT): Likewise.
84100         Reported by Tom Tromey.
84101
84102 2000-01-30  Jim Meyering  <meyering@lucent.com>
84103
84104         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
84105
84106         * m4/prereq.m4 (utmp_includes): Define.
84107         Check for ut_user and ut_name members in both struct utmpx
84108         and struct utmp.
84109
84110 2000-01-30  Jim Meyering  <meyering@lucent.com>
84111
84112         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
84113         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
84114         header files where only utmpx.ut_user is declared.
84115
84116         * lib/readutmp.h (UT_USER): Define.
84117
84118 2000-01-29  Jim Meyering  <meyering@lucent.com>
84119
84120         * m4/lib-check.m4: New file containing library-related checks from
84121         fileutils and sh-utils (textutils had none).
84122
84123 2000-01-28  Jim Meyering  <meyering@lucent.com>
84124
84125         * m4/perl.m4: Change format of warning message to look more like that
84126         from the missing script.  Suggestion from François Pinard.
84127
84128 2000-01-25  Jim Meyering  <meyering@lucent.com>
84129
84130         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
84131         well as time.h in the compile check.
84132         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
84133         Fix typo in cross-compiling case: s/yes/no/.
84134
84135 2000-01-23  Jim Meyering  <meyering@lucent.com>
84136
84137         * m4/jm-macros.m4: Move df-related tests here from
84138         fileutils/configure.in
84139
84140         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
84141         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
84142
84143         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
84144         s/space/ac_fsusage_space/.
84145         (jm_FILE_SYSTEM_USAGE): Take two parameters.
84146
84147         * m4/ftruncate.m4: New file (derived from part of
84148         fileutils/configure.in).
84149         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
84150         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
84151
84152         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
84153         AC_SUBST these here, rather than just in sh-util/configure.in, so
84154         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
84155         all the same.
84156         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
84157         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
84158         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
84159         (AC_SUBST(POW_LIBM)): Likewise.
84160         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
84161
84162 2000-01-23  Jim Meyering  <meyering@lucent.com>
84163
84164         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
84165         obstack.c.
84166
84167 2000-01-22  Jim Meyering  <meyering@lucent.com>
84168
84169         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
84170
84171         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
84172
84173         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
84174         configure.in
84175         (AC_CHECK_HEADERS): Likewise for sh-utils.
84176         (AC_CHECK_HEADERS): Likewise for textutils.
84177         Merge the three lists of headers.
84178
84179         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
84180         from fileutils' configure.in.
84181
84182         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
84183         code. Moved tests into their own function (_jm_DECL_HEADERS) in
84184         check-decl.m4.
84185
84186         * m4/check-decl.m4: Use #if rather than #ifdef.
84187         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
84188         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
84189         (_jm_DECL_HEADERS): Define new function.
84190         (jm_CHECK_DECLARATIONS): Require it.
84191
84192 2000-01-22  Jim Meyering  <meyering@lucent.com>
84193
84194         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
84195         [! HAVE_DECL_STRTOULL]: Declare strtoull.
84196         Required for some AIX systems.  Reported by Christian Krackowizer.
84197         [TESTING] (main): New function.
84198
84199         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
84200         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
84201         letters.
84202
84203         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
84204         iswprint.
84205
84206         * lib/strverscmp.c (ISDIGIT): Define.
84207         (strverscmp): Use ISDIGIT, not isdigit.
84208
84209 2000-01-19  Jim Meyering  <meyering@lucent.com>
84210
84211         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
84212         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
84213         defines `struct timespec' in <sys/time.h>
84214
84215         * m4/c-bs-a.m4: Remove uses of changequote altogether.
84216         Thanks to Akim for explaining.
84217
84218 2000-01-17  Paul Eggert  <eggert@twinsun.com>
84219
84220         * lib/nanosleep.c (nanosleep):
84221         Don't use SA_INTERRUPT to decide whether to call sigaction, as
84222         POSIX.1 doesn't require SA_INTERRUPT and some systems
84223         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
84224         it's been part of POSIX.1 since day 1 (in 1988).
84225
84226 2000-01-17  Jim Meyering  <meyering@lucent.com>
84227
84228         * lib/interlock: Remove unused file.  Reported by François Pinard.
84229
84230 2000-01-16  Paul Eggert  <eggert@twinsun.com>
84231
84232         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
84233         alert, backslash, formfeed, and vertical tab unnecessarily in
84234         shell quoting style.
84235
84236 2000-01-16  Jim Meyering  <meyering@lucent.com>
84237
84238         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
84239         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
84240         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
84241         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
84242
84243 2000-01-16  Jim Meyering  <meyering@lucent.com>
84244
84245         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
84246         because the latter didn't work.
84247
84248 2000-01-15  Jim Meyering  <meyering@lucent.com>
84249
84250         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
84251         (AC_REPLACE_FUNCS): Add memcpy and memset.
84252         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
84253         Add strpbrk.
84254         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
84255
84256 2000-01-12  Jim Meyering  <meyering@lucent.com>
84257
84258         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
84259         (jm_PREREQ): Use it.
84260         (jm_PREREQ_READUTMP): New macro.
84261         (jm_PREREQ): Use it.
84262
84263 2000-01-11  Paul Eggert  <eggert@twinsun.com>
84264
84265         Quote multibyte characters correctly.
84266         * m4/c-bs-a.m4: New file.
84267         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
84268         (jm_PREREQ): Use it.
84269
84270 2000-01-11  Paul Eggert  <eggert@twinsun.com>
84271
84272         * m4/uintmax_t.m4: Port to autoconf 2.13.
84273
84274 2000-01-08  Jim Meyering  <meyering@ascend.com>
84275
84276         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
84277         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
84278
84279 2000-01-04  Jim Meyering  <meyering@ascend.com>
84280
84281         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
84282         jm_STRUCT_DIRENT_D_TYPE.
84283         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
84284         jm_STRUCT_DIRENT_D_INO.
84285         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
84286         jm_STRUCT_UTIMBUF.
84287         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
84288         renamings.
84289         * m4/utime.m4: Likewise.
84290
84291         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
84292         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
84293
84294 2000-01-03  Paul Eggert  <eggert@twinsun.com>
84295
84296         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
84297         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
84298
84299 2000-01-02  Jim Meyering  <meyering@ascend.com>
84300
84301         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
84302         remember if this is necessary.
84303
84304 1999-12-26  Jim Meyering  <meyering@ascend.com>
84305
84306         * m4/jm-macros.m4: Use it here.
84307         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
84308
84309 1999-12-23  Jim Meyering  <meyering@ascend.com>
84310
84311         * m4/jm-macros.m4: Check for clock_gettime (moved from
84312         fileutils/configure.in)
84313         Check for gettimeofday.
84314
84315 1999-12-20  Jim Meyering  <meyering@ascend.com>
84316
84317         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
84318         autoconf-2.14a-1999-12-20.
84319
84320 1999-12-19  Jim Meyering  <meyering@ascend.com>
84321
84322         * m4/lstat-slash.m4: New file.
84323         * m4/jm-macros.m4: Use the new macro:
84324         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84325
84326 1999-12-07  Jim Meyering  <meyering@ascend.com>
84327
84328         * m4/perl.m4: Require that File::Compare be available, too.
84329         Too many systems seem to lack it.
84330
84331         * m4/strftime.m4: Add checks for most of the cpp macros tested in
84332         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
84333
84334 1999-11-18  Paul Eggert  <eggert@twinsun.com>
84335
84336         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
84337         problem with the QNX 4.25 shell, which doesn't propagate exit
84338         status of failed commands inside shell assignments.
84339
84340 1999-11-17  Jim Meyering  <meyering@ascend.com>
84341
84342         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
84343
84344 1999-11-07  Jim Meyering  <meyering@ascend.com>
84345
84346         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
84347
84348 1999-11-06  Jim Meyering  <meyering@ascend.com>
84349
84350         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
84351         * m4/jm-macros.m4 (jm_MACROS): Use it here.
84352
84353 1999-11-05  Jim Meyering  <meyering@ascend.com>
84354
84355         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
84356         configure.in of textutils, fileutils, and sh-utils into this one
84357         (shared between those packages) file.
84358         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
84359         AC_STRUCT_ST_BLKSIZE.
84360
84361 1999-11-03  Jim Meyering  <meyering@ascend.com>
84362
84363         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
84364         of AC_CHECK_TYPE checks includes unistd.h.
84365         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
84366         Suggestion from Akim Demaille.
84367
84368 1999-10-30  Jim Meyering  <meyering@ascend.com>
84369
84370         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
84371         m4-quoted string.
84372         * m4/ls-mntd-fs.m4: Likewise.
84373         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
84374         * m4/jm-winsz1.m4: Likewise.
84375
84376         * m4/const.m4: Remove file, since the fix made it into the experimental
84377         version of autoconf.
84378         * m4/mktime.m4: Likewise.
84379
84380         * m4/check-type.m4: Remove file, now that the latest version of
84381         AC_CHECK_TYPE takes a third arg to specify additional #includes.
84382
84383         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
84384         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
84385         AC_CHECK_TYPE.
84386
84387 1999-10-04  Jim Meyering  <meyering@ascend.com>
84388
84389         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
84390
84391 1999-09-22  Paul Eggert  <eggert@twinsun.com>
84392
84393         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
84394         2.95.1 bug with HP-UX 10.20.
84395
84396 1999-09-17  Jim Meyering  <meyering@ascend.com>
84397
84398         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
84399         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
84400         due to missing strdup (against sh-utils-2.0).
84401
84402 1999-08-29  Jim Meyering  <meyering@ascend.com>
84403
84404         * m4/jm-macros.m4: Require jm_BISON.
84405         * m4/bison.m4: New file.
84406
84407 1999-08-17  Paul Eggert  <eggert@twinsun.com>
84408
84409         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
84410         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
84411
84412 1999-08-05  Jim Meyering  <meyering@ascend.com>
84413
84414         * m4/getline.m4: Rename test file from conftestdata to conftest.data
84415         to avoid conflicts with `conftest' on 8+3 filesystems.
84416         Suggestion from Eli Zaretskii.
84417
84418 1999-08-04  Jim Meyering  <meyering@ascend.com>
84419
84420         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
84421         fileutils and sh-utils (textutils's getline test was inadequate).
84422         (AM_FUNC_GETLINE): Run this test.
84423         (AC_CHECK_FUNCS): Check for getdelim.
84424         Reported by Bob Proulx.
84425
84426 1999-08-02  Jim Meyering  <meyering@ascend.com>
84427
84428         * m4/jm-macros.m4: Add a comment.
84429
84430 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84431
84432         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
84433         <inttypes.h> defines strtoumax as a macro (and not as a
84434         function).
84435
84436 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84437
84438         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
84439         that we can shift, multiply and divide unsigned long long
84440         values; Ultrix cc can't do it.
84441
84442 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84443
84444         * m4/mktime.m4: New file, which is a preview of what should appear
84445         in the next public autoconf release.
84446
84447 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84448
84449         * m4/lfs.m4: Remove this file.
84450         * m4/largefile.m4: New file.  It contains the old contents of
84451         lfs.m4, except that all names with prefix AC_LFS have been
84452         changed to use the prefix AC_SYS_LARGEFILE instead, to be
84453         compatible with future autoconf versions.  Also, some minor m4
84454         quoting problems have been fixed.
84455
84456 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84457
84458         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
84459         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
84460         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
84461         and simplify the shell code.
84462
84463 1999-08-01  Jim Meyering  <meyering@ascend.com>
84464
84465         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
84466         m4.
84467
84468 1999-07-20  Jim Meyering  <meyering@ascend.com>
84469
84470         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
84471
84472 1999-07-15  Jim Meyering  <meyering@ascend.com>
84473
84474         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
84475
84476 1999-05-22  Jim Meyering  <meyering@ascend.com>
84477
84478         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
84479
84480 1999-05-20  Jim Meyering  <meyering@ascend.com>
84481
84482         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
84483         Add a colon after each `then' in case $4 is empty.
84484
84485 1999-05-16  Jim Meyering  <meyering@ascend.com>
84486
84487         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
84488
84489 1999-05-10  Jim Meyering  <meyering@ascend.com>
84490
84491         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
84492
84493         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
84494         AC_FUNC_MKTIME.
84495
84496 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
84497
84498         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
84499
84500 1999-05-04  Paul Eggert  <eggert@twinsun.com>
84501
84502         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
84503         not CPPFLAGS, so that linking works correctly in IRIX.
84504
84505 1999-04-30  Paul Eggert  <eggert@twinsun.com>
84506
84507         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
84508
84509 1999-04-20  Paul Eggert  <eggert@twinsun.com>
84510
84511         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
84512         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
84513         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
84514         jm_AC_TYPE_UNSIGNED_LONG_LONG.
84515         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
84516
84517         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
84518
84519 1999-04-20  Jim Meyering  <meyering@ascend.com>
84520
84521         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
84522         AC_REPLACE xstroull if necessary.  From Paul Eggert.
84523         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
84524
84525 1999-04-18  Jim Meyering  <meyering@ascend.com>
84526
84527         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
84528         * m4/jm-macros.m4: Use it.
84529
84530 1999-04-06  Jim Meyering  <meyering@ascend.com>
84531
84532         * m4/strftime.m4: Remove test for %f.
84533
84534 1999-03-29  Jim Meyering  <meyering@ascend.com>
84535
84536         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
84537         superset of the AC_TYPE_* checks in the textutils, fileutils,
84538         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
84539         AC_TYPE_PID_T.
84540
84541 1999-03-28  Jim Meyering  <meyering@ascend.com>
84542
84543         * m4/jm-macros.m4: Define GNU_PACKAGE here.
84544         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
84545         replaced e.g., in the *.sh files of the sh-utils.
84546
84547 1999-03-20  Jim Meyering  <meyering@ascend.com>
84548
84549         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
84550         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
84551         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
84552
84553 1999-03-19  Jim Meyering  <meyering@ascend.com>
84554
84555         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
84556
84557 1999-03-12  Jim Meyering  <meyering@ascend.com>
84558
84559         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
84560
84561 1999-03-07  Jim Meyering  <meyering@ascend.com>
84562
84563         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
84564         declared.
84565
84566 1999-02-17  Jim Meyering  <meyering@ascend.com>
84567
84568         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
84569         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
84570
84571 1999-02-07  Jim Meyering  <meyering@ascend.com>
84572
84573         * m4/group-member.m4: New file -- extracted from sh-utils'
84574         configure.in.
84575
84576         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
84577         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
84578
84579 1999-02-06  Jim Meyering  <meyering@ascend.com>
84580
84581         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
84582         * m4/fnmatch.m4: Likewise.
84583         * m4/getgroups.m4: Likewise.
84584         * m4/lstat.m4: Likewise.
84585         * m4/malloc.m4: Likewise.
84586         * m4/putenv.m4: Likewise.
84587         * m4/realloc.m4: Likewise.
84588         * m4/regex.m4: Likewise.
84589         * m4/stat.m4: Likewise.
84590         * m4/strftime.m4: Likewise.
84591         Suggestion from Alain Magloire.
84592
84593         * m4/chown.m4: Use `.$ac_objext', not `.o'.
84594         * m4/fnmatch.m4: Likewise.
84595         * m4/getgroups.m4: Likewise.
84596         * m4/getline.m4: Likewise.
84597         * m4/lstat.m4: Likewise.
84598         * m4/malloc.m4: Likewise.
84599         * m4/memcmp.m4: Likewise.
84600         * m4/putenv.m4: Likewise.
84601         * m4/realloc.m4: Likewise.
84602         * m4/regex.m4: Likewise.
84603         * m4/stat.m4: Likewise.
84604         * m4/strftime.m4: Likewise.
84605         Suggestion from Alain Magloire.
84606
84607         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
84608         an argument.
84609
84610         * m4/regex.m4: Add a run-time Test for proper operation of
84611         re_compile_pattern.
84612
84613 1999-01-31  Jim Meyering  <meyering@ascend.com>
84614
84615         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
84616
84617 1999-01-30  Jim Meyering  <meyering@ascend.com>
84618
84619         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
84620
84621         * m4/jm-mktime.m4: Make this a wrapper around the official
84622         AM_FUNC_MKTIME rather than my private copy, now that the official one
84623         is up to date.
84624         * m4/mktime.m4: Remove file.
84625
84626         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
84627         * m4/uptime.m4: Likewise.
84628         * m4/uintmax_t.m4: Likewise.
84629
84630 1999-01-28  Jim Meyering  <meyering@ascend.com>
84631
84632         * m4/jm-macros.m4: Use jm_AFS.
84633         * m4/afs.m4: New file (from fileutils' configure.in).
84634
84635         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
84636         * m4/chown.m4: Likewise.
84637         * m4/d-ino.m4: Likewise.
84638         * m4/d-type.m4: Likewise.
84639         * m4/fnmatch.m4: Likewise.
84640         * m4/getgroups.m4: Likewise.
84641         * m4/gettext.m4: Likewise.
84642         * m4/jm-mktime.m4: Likewise.
84643         * m4/jm-winsz2.m4: Likewise.
84644         * m4/lcmessage.m4: Likewise.
84645         * m4/ls-mntd-fs.m4: Likewise.
84646         * m4/malloc.m4: Likewise.
84647         * m4/memcmp.m4: Likewise.
84648         * m4/putenv.m4: Likewise.
84649         * m4/realloc.m4: Likewise.
84650         * m4/st_mtim.m4: Likewise.
84651         * m4/strftime.m4: Likewise.
84652
84653 1999-01-16  Jim Meyering  <meyering@ascend.com>
84654
84655         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
84656         (ARGMATCH_DIE_DECL): Define.
84657
84658 1999-01-12  Jim Meyering  <meyering@ascend.com>
84659
84660         * m4/Makefile.am.in: Rewrite to avoid using fmt.
84661         Reported by Lars Hecking.
84662
84663 1999-01-10  Jim Meyering  <meyering@ascend.com>
84664
84665         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
84666         gross kludge.
84667         * m4/inttypes_h.m4: Likewise.
84668         * m4/lstat.m4: Likewise.
84669         * m4/malloc.m4: Likewise.
84670         * m4/readdir.m4: Likewise.
84671         * m4/realloc.m4: Likewise.
84672         * m4/st_dm_mode.m4: Likewise.
84673         * m4/stat.m4: Likewise.
84674         * m4/utimbuf.m4: Likewise.
84675         * m4/utimes.m4: Likewise.
84676
84677         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
84678         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
84679         comments in config.h.in are meaningful.
84680
84681         * m4/jm-macros.m4: Require autoconf-2.13 here.
84682
84683         * m4/regex.m4: By default, don't use the included regex.c on systems
84684         with glibc 2.  Suggestion from Uli Drepper.
84685
84686 1999-01-02  Jim Meyering  <meyering@ascend.com>
84687
84688         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
84689
84690 1998-12-18  Jim Meyering  <meyering@ascend.com>
84691
84692         * m4/Makefile.am.in (Makefile.am): Simplify rule.
84693         Based on a suggestion from Lars Hecking.
84694
84695 1998-11-16  Paul Eggert  <eggert@twinsun.com>
84696
84697         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
84698
84699 1998-11-16  Jim Meyering  <meyering@ascend.com>
84700
84701         * m4/lfs.m4: Double-quote the `uname...` expression.
84702
84703 1998-11-14  Jim Meyering  <meyering@ascend.com>
84704
84705         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
84706         * m4/stat.m4: Likewise.
84707
84708 1998-11-03  Jim Meyering  <meyering@ascend.com>
84709
84710         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
84711         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
84712
84713 1998-10-18  Jim Meyering  <meyering@ascend.com>
84714
84715         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
84716
84717 1998-10-17  Jim Meyering  <meyering@ascend.com>
84718
84719         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
84720         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
84721         calls for those previously hard-coded headers.  Instead, take a new
84722         parameter.
84723         (jm_CHECK_DECLARATIONS): Reflect interface change.
84724         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
84725         (jm_CHECK_DECL_LOCALTIME_R): New macro.
84726
84727         * m4/mktime.m4: Test for spring-forward gap before long-running test.
84728
84729 1998-10-14  Jim Meyering  <meyering@ascend.com>
84730
84731         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
84732         instead of "TZ=America/Vancouver".  From Paul Eggert.
84733
84734 1998-10-11  Jim Meyering  <meyering@ascend.com>
84735
84736         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
84737         This adds a test for a recently added compatibility fix for mktime.c.
84738         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
84739
84740 1998-09-27  Jim Meyering  <meyering@ascend.com>
84741
84742         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
84743
84744         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
84745         ../configure.in, including a change from Gordon Matzigkeit to allow
84746         cross-compiling for the Hurd.
84747
84748         * m4/glibc.m4: New file/macro to test for the GNU C Library
84749         versions 1 and 2.  From Gordon Matzigkeit.
84750         Indent.
84751
84752 1998-09-21  Jim Meyering  <meyering@ascend.com>
84753
84754         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
84755
84756 1998-08-18  Paul Eggert  <eggert@twinsun.com>
84757
84758         Port nanosecond-resolution times to UnixWare 2.1.2 and
84759         pedantic Solaris 2.6.
84760
84761         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
84762         AC_STRUCT_ST_MTIM.
84763         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
84764         Generate name of ns member, instead of just 1 or undef.
84765         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
84766
84767 1998-08-15  Jim Meyering  <meyering@ascend.com>
84768
84769         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
84770         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
84771         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
84772         instead of jm_TYPE_SSIZE_T.
84773
84774 1998-08-12  Jim Meyering  <meyering@ascend.com>
84775
84776         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
84777
84778 1998-08-02  Jim Meyering  <meyering@ascend.com>
84779
84780         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
84781         in acconfig.h manually.
84782
84783 1998-07-31  Paul Eggert  <eggert@twinsun.com>
84784
84785         * m4/st_mtim.m4: New file.
84786
84787 1998-07-28  Jim Meyering  <meyering@ascend.com>
84788
84789         * m4/utimes.m4: Undef stat.
84790
84791 1998-07-25  Jim Meyering  <meyering@ascend.com>
84792
84793         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
84794         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
84795
84796 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
84797
84798         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
84799         uid and gid actually remain unchanged.
84800
84801 1998-07-07  Jim Meyering  <meyering@ascend.com>
84802
84803         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
84804
84805 1998-07-04  Jim Meyering  <meyering@ascend.com>
84806
84807         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
84808         to prove that this macro can be used in packages without regex.c.
84809
84810 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
84811
84812         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
84813         is to be used.
84814
84815 1998-07-03  Jim Meyering  <meyering@ascend.com>
84816
84817         * m4/gettext.m4: Add -lintl if it's found to be necessary.
84818
84819         * m4/gettext.m4: New file -- from gettext-0.10.35.
84820         * m4/lcmessage.m4: Likewise.
84821         * m4/progtest.m4: Likewise.
84822
84823         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
84824         * m4/jm-macros.m4: Require the new macro.
84825
84826 1998-06-29  Jim Meyering  <meyering@ascend.com>
84827
84828         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
84829         for the definition of NGROUPS (used in a system header included
84830         by sys/mount.h).
84831
84832 1998-06-28  Jim Meyering  <meyering@ascend.com>
84833
84834         * m4/ls-mntd-fs.m4: New file.
84835         * m4/fstypename.m4: New file.
84836
84837         * m4/jm-macros.m4: Require the new macro.
84838         * m4/jm-glibc-io.m4: New file.
84839
84840 1998-05-19  Jim Meyering  <meyering@ascend.com>
84841
84842         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
84843         * m4/lchown.m4: New file.
84844
84845         * m4/Makefile.am.in: New file.
84846         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
84847
84848 1998-05-14  Jim Meyering  <meyering@ascend.com>
84849
84850         * m4/Makefile.am (EXTRA_DIST): Add them.
84851         * m4/jm-macros.m4: New file.
84852         * m4/utimbuf.m4: New file.
84853
84854 1998-05-12  Jim Meyering  <meyering@ascend.com>
84855
84856         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
84857
84858 1998-05-11  Jim Meyering  <meyering@ascend.com>
84859
84860         * m4/isc-posix.m4: New file.
84861
84862 1998-05-10  Jim Meyering  <meyering@ascend.com>
84863
84864         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
84865
84866 1998-05-09  Jim Meyering  <meyering@ascend.com>
84867
84868         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
84869         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
84870         with automake.
84871
84872         * m4/ssize_t.m4: New file.
84873         * m4/mktime.m4: Remove file -- the new automake has this now.
84874
84875 1998-04-26  Jim Meyering  <meyering@ascend.com>
84876
84877         * m4/assert.m4: New file.
84878         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
84879
84880 1998-04-05  Jim Meyering  <meyering@ascend.com>
84881
84882         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
84883         (jm_PREREQ): Use it here.
84884
84885 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
84886
84887         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
84888         in acconfig.h.
84889
84890 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
84891
84892         * m4/prereq.m4: New file.
84893         * m4/error.m4: New file.
84894         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
84895
84896 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
84897
84898         * m4/getline.m4: Don't set am_cv_func_working_getline before the
84899         cache-check for the same variable -- that defeated the purpose of
84900         the test; the test program was never run.  This was a problem only
84901         on systems with losing getline functions -- HP-UX 10.20 is one.
84902         Reported by Bjorn Helgaas.
84903
84904 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
84905
84906         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
84907
84908 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
84909
84910         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
84911
84912         * m4/const.m4: New file.  Use an initializer in this declaration
84913         typedef int charset[2]; const charset x;
84914         Reported by Bob Glickstein.
84915
84916 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
84917
84918         * m4/chown.m4: Fix reversed types on -1 args to chown.
84919         From Kaveh Ghazi.
84920
84921 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
84922
84923         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
84924         Add lseek and memchr.
84925
84926         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
84927         T.E.Dickey <dickey@clark.net> said that some older preprocessors
84928         have a 20-character limit on names.
84929
84930 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
84931
84932         * m4/inttypes_h.m4: New file.
84933         * m4/uintmax_t.m4: New file.
84934         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
84935
84936
84937         -----
84938
84939         Local Variables:
84940         coding: utf-8
84941         End:
84942
84943         Copyright (C) 1997-2011 Free Software Foundation, Inc.
84944
84945         Copying and distribution of this file, with or without
84946         modification, are permitted provided the copyright notice
84947         and this notice are preserved.