wctype-h: Fix last change.
[gnulib.git] / ChangeLog
1 2011-08-01  Bruno Haible  <bruno@clisp.org>
2
3         wctype-h: Fix last change.
4         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
5         REPLACE_TOWLOWER to 0.
6         Reported by Sam Steingold <sds@gnu.org>.
7
8 2011-07-31  Bruno Haible  <bruno@clisp.org>
9
10         frexpl: Update autoconf test.
11         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
12         according to changes of 2011-06-20.
13
14 2011-07-31  Bruno Haible  <bruno@clisp.org>
15
16         sys_utsname: Add support for Minix.
17         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
18         <sys/utsname.h>.
19         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
21
22 2011-07-31  Bruno Haible  <bruno@clisp.org>
23
24         strings: Add support for Minix.
25         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
26         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
27         * doc/posix-headers/strings.texi: Document the Minix problem.
28
29 2011-07-31  Bruno Haible  <bruno@clisp.org>
30
31         wctype-h: Add support for Minix.
32         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
33         REPLACE_TOWLOWER.
34         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
35         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
36         REPLACE_ISWCNTRL.
37
38 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
39
40         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
41         This is a performance improvement for 64-bit hosts: it causes the
42         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
43
44 2011-07-31  Bruno Haible  <bruno@clisp.org>
45
46         stdioext: Add support for Minix.
47         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
48         * lib/fpurge.c (fpurge): Likewise.
49         * lib/freadahead.c (freadahead): Likewise.
50         * lib/freadable.c (freadable): Likewise.
51         * lib/freading.c (freading): Likewise.
52         * lib/freadptr.c (freadptr): Likewise.
53         * lib/freadseek.c (freadptrinc): Likewise.
54         * lib/fseeko.c (rpl_fseeko): Likewise.
55         * lib/fseterr.c (fseterr): Likewise.
56         * lib/fwritable.c (fwritable): Likewise.
57         * lib/fwriting.c (fwriting): Likewise.
58         * lib/fflush.c (clear_ungetc_buffer): Update comment.
59         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
60
61 2011-07-31  Bruno Haible  <bruno@clisp.org>
62
63         errno: Port to Minix.
64         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
65         ECONNABORTED are defined.
66         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
67         GNULIB_defined_ECONNABORTED): New macros.
68         * lib/strerror-override.h (strerror_override): Test also
69         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
70         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
71         ECONNABORTED.
72         * doc/posix-headers/errno.texi: Mention the Minix problem.
73
74 2011-07-31  Bruno Haible  <bruno@clisp.org>
75
76         Work around declaration collisions on Minix.
77         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
78         defined, set REPLACE_MBSINIT.
79         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
80         defined, set REPLACE_MBRTOWC.
81         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
82         set REPLACE_MBRLEN.
83         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
84         defined, set REPLACE_MBSRTOWCS.
85         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
86         defined, set REPLACE_WCRTOMB.
87         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
88         defined, set REPLACE_WCSRTOMBS.
89
90 2011-07-31  Bruno Haible  <bruno@clisp.org>
91
92         Add support for Minix with ACK compiler.
93         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
94         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
95         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
96
97 2011-07-31  Bruno Haible  <bruno@clisp.org>
98
99         Documentation about Minix.
100         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
101         * doc/glibc-headers/*.texi: Likewise.
102         * doc/posix-functions/*.texi: Likewise.
103         * doc/glibc-functions/*.texi: Likewise.
104
105 2011-07-31  Bruno Haible  <bruno@clisp.org>
106
107         snippet/warn-on-use: Fix indentation.
108         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
109
110 2011-07-25  Jim Meyering  <meyering@redhat.com>
111
112         tests: test-update-copyright.sh: remove unnecessary "rm" commands
113         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
114         commands.
115
116 2011-07-27  Jim Meyering  <meyering@redhat.com>
117
118         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
119         * top/maint.mk (gl_extract_significant_defines_): Now that
120         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
121         gnulib/lib/signal.in.h, and now that we recommend to
122         define-if-undefined those two symbols in application code,
123         we must filter them out of the "significant" list.
124         This avoids a "make syntax-check" failure in coreutils.
125
126 2011-07-26  Eric Blake  <eblake@redhat.com>
127
128         warnings: add comments about previous patch
129         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
130         * m4/include_next.m4: Likewise.
131         * m4/warn-on-use.m4: Likewise.
132         * m4/warnings.m4: Likewise, and simplify use.
133         Suggested by Stefano Lattarini.
134
135         include-next, warnings: support older autoconf
136         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
137         AS_VAR_PUSHDEF in a way that works with older autoconf.
138         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
139         Reported by Daniel P. Berrange.
140
141 2011-07-25  Bruno Haible  <bruno@clisp.org>
142
143         fseek, ftell: Fix doc.
144         * doc/posix-functions/fseek.texi: Reword statement about
145         AC_SYS_LARGEFILE.
146         * doc/posix-functions/ftell.texi: Likewise.
147
148 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
149             Bruno Haible  <bruno@clisp.org>
150
151         Add dependencies to the 'largefile' module.
152         * modules/fopen (Depends-on): Add 'largefile'.
153         * modules/freopen (Depends-on): Likewise.
154         * modules/fseeko (Depends-on): Likewise.
155         * modules/ftello (Depends-on): Likewise.
156         * modules/glob (Depends-on): Likewise.
157         * modules/lseek (Depends-on): Likewise.
158         * modules/lstat (Depends-on): Likewise.
159         * modules/mkostemp (Depends-on): Likewise.
160         * modules/mkostemps (Depends-on): Likewise.
161         * modules/mkstemp (Depends-on): Likewise.
162         * modules/mkstemps (Depends-on): Likewise.
163         * modules/open (Depends-on): Likewise.
164         * modules/openat (Depends-on): Likewise.
165         * modules/pread (Depends-on): Likewise.
166         * modules/pwrite (Depends-on): Likewise.
167         * modules/scandir (Depends-on): Likewise.
168         * modules/stat (Depends-on): Likewise.
169         * modules/tmpfile (Depends-on): Likewise.
170         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
171         since the containing module now depends on the largefile module.
172         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
173         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
174         off_t is fixed by gnulib.
175         * doc/posix-functions/freopen.texi: Likewise.
176         * doc/posix-functions/fseeko.texi: Likewise.
177         * doc/posix-functions/fstatat.texi: Likewise.
178         * doc/posix-functions/ftello.texi: Likewise.
179         * doc/posix-functions/glob.texi: Likewise.
180         * doc/posix-functions/lseek.texi: Likewise.
181         * doc/posix-functions/lstat.texi: Likewise.
182         * doc/posix-functions/mkstemp.texi: Likewise.
183         * doc/posix-functions/open.texi: Likewise.
184         * doc/posix-functions/openat.texi: Likewise.
185         * doc/posix-functions/pread.texi: Likewise.
186         * doc/posix-functions/pwrite.texi: Likewise.
187         * doc/posix-functions/scandir.texi: Likewise.
188         * doc/posix-functions/stat.texi: Likewise.
189         * doc/posix-functions/tmpfile.texi: Likewise.
190         * doc/glibc-functions/mkostemp.texi: Likewise.
191         * doc/glibc-functions/mkostemps.texi: Likewise.
192         * doc/glibc-functions/mkstemps.texi: Likewise.
193
194 2011-07-25  Bruno Haible  <bruno@clisp.org>
195
196         fcntl: Move AC_LIBOBJ invocation to module description.
197         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
198         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
199
200         fcntl: Remove call-in from fchdir.m4.
201         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
202         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
203
204         dup3: Remove potential call-in from fchdir.m4.
205         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
206         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
207
208         dup2: Move AC_LIBOBJ invocation to module description.
209         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
210         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
211         Don't invoke AC_LIBOBJ.
212         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
213
214         dup2: Remove call-in from fchdir.m4.
215         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
216         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
217
218         fclose: Move AC_LIBOBJ invocation to module description.
219         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
220         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
221         to 1.
222         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
223
224         fclose: Remove call-in from close.m4.
225         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
226         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
227
228         close: Move AC_LIBOBJ invocation to module description.
229         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
230         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
231         1.
232         * modules/close (configure.ac): Invoke AC_LIBOBJ.
233
234         close: Remove call-in from fchdir.m4.
235         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
236         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
237
238         open: Move AC_LIBOBJ invocation to module description.
239         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
240         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
241         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
242
243         open: Remove call-in from fchdir.m4.
244         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
245         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
246
247         fchdir: Start to remove gl_REPLACE_* idiom.
248         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
249         (gl_FUNC_FCHDIR): Invoke it.
250
251 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
252
253         * lib/ftell.c (ftell): Comment out cast.
254
255         close: use gl_REPLACE_FCLOSE only if defined
256         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
257         is defined.  The close module doesn't depend on the fclose module
258         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
259         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
260         I reproduced the problem with "./gnulib-tool --test close sys_socket".
261
262 2011-07-24  Jim Meyering  <meyering@redhat.com>
263
264         test-select.h: avoid warning when using gcc's -Wmissing-declarations
265         * tests/test-select.h (test_function): Declare as "static".
266
267 2011-07-24  Bruno Haible  <bruno@clisp.org>
268
269         doc: Mention the effects of AC_SYS_LARGEFILE.
270         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
271         on this function.
272         * doc/posix-functions/aio_error.texi: Likewise.
273         * doc/posix-functions/aio_fsync.texi: Likewise.
274         * doc/posix-functions/aio_read.texi: Likewise.
275         * doc/posix-functions/aio_return.texi: Likewise.
276         * doc/posix-functions/aio_suspend.texi: Likewise.
277         * doc/posix-functions/aio_write.texi: Likewise.
278         * doc/posix-functions/fgetpos.texi: Likewise.
279         * doc/posix-functions/fopen.texi: Likewise.
280         * doc/posix-functions/freopen.texi: Likewise.
281         * doc/posix-functions/fsetpos.texi: Likewise.
282         * doc/posix-functions/fstatvfs.texi: Likewise.
283         * doc/posix-functions/ftruncate.texi: Likewise.
284         * doc/posix-functions/ftw.texi: Likewise.
285         * doc/posix-functions/getrlimit.texi: Likewise.
286         * doc/posix-functions/glob.texi: Likewise.
287         * doc/posix-functions/lio_listio.texi: Likewise.
288         * doc/posix-functions/lockf.texi: Likewise.
289         * doc/posix-functions/mkstemp.texi: Likewise.
290         * doc/posix-functions/mmap.texi: Likewise.
291         * doc/posix-functions/nftw.texi: Likewise.
292         * doc/posix-functions/openat.texi: Likewise.
293         * doc/posix-functions/opendir.texi: Likewise.
294         * doc/posix-functions/posix_fadvise.texi: Likewise.
295         * doc/posix-functions/posix_fallocate.texi: Likewise.
296         * doc/posix-functions/pread.texi: Likewise.
297         * doc/posix-functions/pwrite.texi: Likewise.
298         * doc/posix-functions/readdir.texi: Likewise.
299         * doc/posix-functions/readdir_r.texi: Likewise.
300         * doc/posix-functions/rewinddir.texi: Likewise.
301         * doc/posix-functions/scandir.texi: Likewise.
302         * doc/posix-functions/seekdir.texi: Likewise.
303         * doc/posix-functions/setrlimit.texi: Likewise.
304         * doc/posix-functions/statvfs.texi: Likewise.
305         * doc/posix-functions/telldir.texi: Likewise.
306         * doc/posix-functions/tmpfile.texi: Likewise.
307         * doc/posix-functions/truncate.texi: Likewise.
308         * doc/glibc-functions/fallocate.texi: Likewise.
309         * doc/glibc-functions/fstatfs.texi: Likewise.
310         * doc/glibc-functions/fts_children.texi: Likewise.
311         * doc/glibc-functions/fts_read.texi: Likewise.
312         * doc/glibc-functions/getdirentries.texi: Likewise.
313         * doc/glibc-functions/mkostemp.texi: Likewise.
314         * doc/glibc-functions/mkostemps.texi: Likewise.
315         * doc/glibc-functions/mkstemps.texi: Likewise.
316         * doc/glibc-functions/preadv.texi: Likewise.
317         * doc/glibc-functions/pwritev.texi: Likewise.
318         * doc/glibc-functions/sendfile.texi: Likewise.
319         * doc/glibc-functions/statfs.texi: Likewise.
320
321 2011-07-24  Bruno Haible  <bruno@clisp.org>
322
323         doc: Fix typo.
324         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
325
326 2011-07-24  Bruno Haible  <bruno@clisp.org>
327
328         doc: Mention fsusage.
329         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
330
331 2011-07-24  Bruno Haible  <bruno@clisp.org>
332
333         doc: Mention new glibc headers and functions.
334         * doc/glibc-headers/gshadow.texi: New file.
335         * doc/glibc-functions/endsgent.texi: New file.
336         * doc/glibc-functions/fgetsgent.texi: New file.
337         * doc/glibc-functions/fgetsgent_r.texi: New file.
338         * doc/glibc-functions/getsgent.texi: New file.
339         * doc/glibc-functions/getsgent_r.texi: New file.
340         * doc/glibc-functions/getsgnam.texi: New file.
341         * doc/glibc-functions/getsgnam_r.texi: New file.
342         * doc/glibc-functions/putsgent.texi: New file.
343         * doc/glibc-functions/setsgent.texi: New file.
344         * doc/glibc-functions/sgetsgent.texi: New file.
345         * doc/glibc-functions/sgetsgent_r.texi: New file.
346         * doc/glibc-functions/malloc_info.texi: New file.
347         * doc/glibc-functions/preadv.texi: New file.
348         * doc/glibc-functions/pwritev.texi: New file.
349         * doc/glibc-functions/register_printf_modifier.texi: New file.
350         * doc/glibc-functions/register_printf_specifier.texi: New file.
351         * doc/glibc-functions/register_printf_type.texi: New file.
352         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
353         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
354         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
355         * doc/glibc-functions/pthread_getname_np.texi: New file.
356         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
357         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
358         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
359         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
360         * doc/glibc-functions/pthread_setname_np.texi: New file.
361         * doc/glibc-functions/pthread_sigqueue.texi: New file.
362         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
363         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
364         * doc/glibc-functions/qsort_r.texi: New file.
365         * doc/glibc-functions/quick_exit.texi: New file.
366         * doc/glibc-functions/syncfs.texi: New file.
367         * doc/gnulib.texi: Include them.
368         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
369         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
370         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
371         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
372         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
373         * doc/glibc-functions/execvpe.texi: Likewise.
374
375 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
376
377         ftell: don't include <unistd.h>
378         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
379         guaranteed to define off_t, and the ftell module depends on the
380         stdio module.
381
382         ftell: do not assume wraparound signed arithmetic
383         * lib/ftell.c: Include <limits.h>.
384         (ftell): Don't assume wraparound signed arithmetic.
385
386 2011-07-24  Bruno Haible  <bruno@clisp.org>
387
388         close: No longer depend on module 'fclose'.
389         * modules/close (Depends-on): Remove fclose.
390         * NEWS: Mention the change.
391         Suggested by Sam Steingold <sds@gnu.org>.
392
393 2011-07-24  Bruno Haible  <bruno@clisp.org>
394
395         fsusage: Enable large volume support on AIX >= 5.2.
396         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
397         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
398         instead of STAT_STATVFS.
399         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
400
401         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
402         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
403         f_blocks field only on MacOS X.
404
405         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
406         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
407         * modules/fsusage (Depends-on): Add largefile.
408
409 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
410
411         * README: Modernize discussion of signed integers.
412         Assuming overflow wraparound is no longer safe.
413         Mention ones' complement and signed magnitude.
414
415 2011-07-22  Bruno Haible  <bruno@clisp.org>
416
417         select tests, pselect tests: Refactor.
418         * tests/test-select.h: New file, extracted from tests/test-select.c.
419         (select_fn): New type.
420         (test, do_select, do_select_nowait, do_select_wait, test_tty,
421         test_connect_first, test_accept_first, test_pair, test_socket_pair,
422         test_pipe): Add my_select argument.
423         (test_function): Renamed from main. Add my_select argument.
424         * tests/test-select.c: Move most code to tests/test-select.h. Include
425         test-select.h.
426         * modules/select-tests (Files): Add tests/test-select.h.
427         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
428         (my_select, main): New functions.
429         * modules/pselect-tests (Files): Add tests/test-select.h,
430         tests/macros.h, tests/signature.h.
431         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
432         (configure.ac): Check for <sys/wait.h>.
433
434 2011-07-22  Bruno Haible  <bruno@clisp.org>
435
436         sys_select tests: Check the signature of FD_*.
437         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
438         signature tests from here...
439         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
440         here.
441         * modules/sys_select-tests (Files): Add tests/signature.h.
442
443 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
444
445         largefile: new module, replacing large-inode
446         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
447         * MODULES.html.sh: Add largefile, remove large-inode.
448         * modules/largefile, m4/largefile.m4: New files.
449         * modules/large-inode, m4/large-inode.m4: Remove.
450
451         fsusage: port to MacOS X 10.7 with 4 TiB file systems
452         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
453         implementations that use only 32 bits to count blocks.
454         On typical hosts with 1024-byte blocks, this fails with file
455         systems as small as 4 TiB.  Problem reported by Herb Wartens
456         <http://debbugs.gnu.org/9140> and this should also fix a similar
457         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
458
459         large-inode: New module
460         * MODULES.html.sh: Add it.
461         * modules/large-inode, m4/large-inode.m4: New files.
462
463         extensions: Enable extensions on MacOS X 10.5 and later.
464         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
465
466 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
467
468         file-has-acl: use acl_extended_file_nofollow if available
469         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
470         (acl_extended_file): New macro.
471         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
472         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
473
474 2011-07-21  Bruno Haible  <bruno@clisp.org>
475
476         Declare system functions in a way that works with C++.
477         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
478         declare fdopendir as extern "C".
479         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
480         declare frexpl as extern "C".
481         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
482         declare gai_strerror as extern "C".
483         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
484         programs, declare gai_strerror as extern "C".
485         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
486         declare getlogin_r as extern "C".
487         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
488         as extern "C".
489         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
490         declare ldexpl as extern "C".
491         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
492         as extern "C".
493         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
494         program, declare getmntinfo as extern "C".
495         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
496         stpncpy as extern "C".
497         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
498         program, declare __xpg_strerror_r as extern "C".
499         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
500         strndup as extern "C".
501         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
502         declare memset and bzero as extern "C".
503         Reported by Sam Steingold <sds@gnu.org>.
504
505 2011-07-12  Jim Meyering  <meyering@redhat.com>
506
507         maint.mk: prohibit inclusion of "verify.h" without use
508         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
509
510 2011-07-19  Pádraig Brady  <P@draigBrady.com>
511
512         timer-time: A new module to check for timer_settime()
513         * m4/timer_time.m4: Check for the posix function.
514         * modules/timer-time: Add the new module.
515         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
516         Mention it.
517
518 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
519             Bruno Haible  <bruno@clisp.org>
520
521         pthread_sigmask: assume POSIX threads if --avoid=threadlib
522         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
523         not defined, assume POSIX threads and look for pthread_sigmask in
524         $LIBS, without changing $CPPFLAGS.
525
526 2011-07-19  Bruno Haible  <bruno@clisp.org>
527
528         strstr: Update cross-compilation guess.
529         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
530         CPUs, guess no, in view of glibc
531         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
532         Suggested by Eric Blake. Reported by Reuben Thomas.
533
534 2011-07-19  Pádraig Brady  <P@draigBrady.com>
535
536         getopt-gnu: suppress core dumps from detection code
537         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
538         to suppress core dumps that may well occur on glibc systems.
539         * modules/getopt-gnu: Depend on nocrash.
540
541 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
542
543         pthread_sigmask: ensure usleep is declared
544         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
545         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
546
547 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
548
549         doc: Document NonStop portability issues.
550         * doc/posix-functions/sigaction.texi (sigaction):
551         * doc/posix-headers/signal.texi (signal.h):
552         Document NonStop.  See Joachim Schmitz in
553         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
554
555 2011-07-15  Bruno Haible  <bruno@clisp.org>
556
557         ffsl, ffsll: Avoid unportable behaviour.
558         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
559
560 2011-07-15  Bruno Haible  <bruno@clisp.org>
561
562         ffs: More tests.
563         * tests/test-ffs.c (NBITS): New macro.
564         (main): Add more tests.
565         * tests/test-ffsl.c (NBITS): New macro.
566         (main): Add more tests.
567         * tests/test-ffsll.c (NBITS): New macro.
568         (main): Add more tests.
569
570 2011-07-15  Eric Blake  <eblake@redhat.com>
571
572         ffsl, ffsll: new modules
573         * modules/ffsl: New file.
574         * modules/ffsll: Likewise.
575         * m4/ffsl.m4: Likewise.
576         * m4/ffsll.m4: Likewise.
577         * lib/ffsl.c: Likewise.
578         * lib/ffsl.h: Likewise.
579         * lib/ffsll.c: Likewise.
580         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
581         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
582         * modules/string (Makefile.am): Substitute witnesses.
583         * lib/strings.in.h (ffsl, ffsll): Declare.
584         * modules/ffsl-tests: New test file.
585         * modules/ffsll-tests: Likewise.
586         * tests/test-ffsl.c: Likewise.
587         * tests/test-ffsll.c: Likewise.
588         * MODULES.html.sh (Integer arithmetic functions): Mention it.
589         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
590         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
591
592         ffs: fix m4 prerequisite
593         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
594
595         ffs: avoid undefined behavior
596         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
597         * tests/test-ffs.c (naive, main): Avoid signed shifts.
598         Reported by Bruno Haible.
599
600 2011-07-12  Bruno Haible  <bruno@clisp.org>
601
602         pthread_sigmask: Rely on module 'threadlib'.
603         * modules/pthread_sigmask (Depends-on): Add threadlib.
604         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
605         is defined.
606
607 2011-07-12  Bruno Haible  <bruno@clisp.org>
608
609         regex: Depend on module 'strcase'.
610         * modules/regex (Depends-on): Add strcase, for strcasecmp().
611
612 2011-07-12  Jim Meyering  <meyering@redhat.com>
613
614         warn-on-use: fix typo in file name
615         * modules/snippet/warn-on-use (Files): Correct file name:
616         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
617
618 2011-07-12  Bruno Haible  <bruno@clisp.org>
619
620         strings: Document module.
621         * doc/posix-headers/strings.texi: Mention module 'strings'.
622
623 2011-07-12  Bruno Haible  <bruno@clisp.org>
624
625         Rename module '_Noreturn' to 'snippet/_Noreturn'.
626         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
627         (Files, Makefile.am): Update.
628         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
629         * modules/stdlib (Depends-on): Update.
630
631 2011-07-12  Bruno Haible  <bruno@clisp.org>
632
633         * NEWS: Mention the changes.
634
635         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
636         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
637         (Files, Makefile.am): Update.
638         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
639         * modules/arpa_inet (Depends-on): Update.
640         * modules/ctype (Depends-on): Update.
641         * modules/dirent (Depends-on): Update.
642         * modules/fcntl-h (Depends-on): Update.
643         * modules/glob (Depends-on): Update.
644         * modules/iconv-h (Depends-on): Update.
645         * modules/inttypes-incomplete (Depends-on): Update.
646         * modules/langinfo (Depends-on): Update.
647         * modules/locale (Depends-on): Update.
648         * modules/math (Depends-on): Update.
649         * modules/netdb (Depends-on): Update.
650         * modules/poll-h (Depends-on): Update.
651         * modules/pty (Depends-on): Update.
652         * modules/search (Depends-on): Update.
653         * modules/signal (Depends-on): Update.
654         * modules/spawn (Depends-on): Update.
655         * modules/stdio (Depends-on): Update.
656         * modules/stdlib (Depends-on): Update.
657         * modules/string (Depends-on): Update.
658         * modules/strings (Depends-on): Update.
659         * modules/sys_file (Depends-on): Update.
660         * modules/sys_ioctl (Depends-on): Update.
661         * modules/sys_select (Depends-on): Update.
662         * modules/sys_socket (Depends-on): Update.
663         * modules/sys_stat (Depends-on): Update.
664         * modules/sys_time (Depends-on): Update.
665         * modules/sys_times (Depends-on): Update.
666         * modules/sys_utsname (Depends-on): Update.
667         * modules/sys_wait (Depends-on): Update.
668         * modules/termios (Depends-on): Update.
669         * modules/time (Depends-on): Update.
670         * modules/unistd (Depends-on): Update.
671         * modules/wchar (Depends-on): Update.
672         * modules/wctype-h (Depends-on): Update.
673         * MODULES.html.sh (Support for building libraries and executables):
674         Update.
675
676         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
677         * modules/snippet/unused-parameter: Renamed from
678         modules/unused-parameter.
679         (Files, Makefile.am): Update.
680         * build-aux/snippet/unused-parameter.h: Renamed from
681         build-aux/unused-parameter.h.
682         * modules/selinux-h (Depends-on): Update.
683         * modules/unistr/base (Depends-on): Update.
684         * MODULES.html.sh (Core language properties): Update.
685
686         Rename module 'link-warning' to 'snippet/link-warning'.
687         * modules/snippet/link-warning: Renamed from modules/link-warning.
688         (Files, Makefile.am): Update.
689         * build-aux/snippet/link-warning.h: Renamed from
690         build-aux/link-warning.h.
691         * MODULES.html.sh (Support for building libraries and executables):
692         Update.
693
694         Rename module 'c++defs' to 'snippet/c++defs'.
695         * modules/snippet/c++defs: Renamed from modules/c++defs.
696         (Files, Makefile.am): Update.
697         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
698         * modules/arpa_inet (Depends-on): Update.
699         * modules/ctype (Depends-on): Update.
700         * modules/dirent (Depends-on): Update.
701         * modules/fcntl-h (Depends-on): Update.
702         * modules/glob (Depends-on): Update.
703         * modules/iconv-h (Depends-on): Update.
704         * modules/langinfo (Depends-on): Update.
705         * modules/locale (Depends-on): Update.
706         * modules/math (Depends-on): Update.
707         * modules/netdb (Depends-on): Update.
708         * modules/poll-h (Depends-on): Update.
709         * modules/pty (Depends-on): Update.
710         * modules/search (Depends-on): Update.
711         * modules/signal (Depends-on): Update.
712         * modules/spawn (Depends-on): Update.
713         * modules/stdio (Depends-on): Update.
714         * modules/stdlib (Depends-on): Update.
715         * modules/string (Depends-on): Update.
716         * modules/strings (Depends-on): Update.
717         * modules/sys_ioctl (Depends-on): Update.
718         * modules/sys_select (Depends-on): Update.
719         * modules/sys_socket (Depends-on): Update.
720         * modules/sys_stat (Depends-on): Update.
721         * modules/sys_time (Depends-on): Update.
722         * modules/sys_wait (Depends-on): Update.
723         * modules/termios (Depends-on): Update.
724         * modules/time (Depends-on): Update.
725         * modules/unistd (Depends-on): Update.
726         * modules/wchar (Depends-on): Update.
727         * modules/wctype-h (Depends-on): Update.
728
729         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
730         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
731         (Files, Makefile.am): Update.
732         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
733         * modules/argv-iter (Depends-on): Update.
734         * modules/arpa_inet (Depends-on): Update.
735         * modules/dirent (Depends-on): Update.
736         * modules/fcntl-h (Depends-on): Update.
737         * modules/fnmatch (Depends-on): Update.
738         * modules/getopt-posix (Depends-on): Update.
739         * modules/glob (Depends-on): Update.
740         * modules/iconv-h (Depends-on): Update.
741         * modules/inttypes-incomplete (Depends-on): Update.
742         * modules/locale (Depends-on): Update.
743         * modules/math (Depends-on): Update.
744         * modules/netdb (Depends-on): Update.
745         * modules/search (Depends-on): Update.
746         * modules/signal (Depends-on): Update.
747         * modules/spawn (Depends-on): Update.
748         * modules/stdio (Depends-on): Update.
749         * modules/stdlib (Depends-on): Update.
750         * modules/string (Depends-on): Update.
751         * modules/strings (Depends-on): Update.
752         * modules/sys_socket (Depends-on): Update.
753         * modules/sys_stat (Depends-on): Update.
754         * modules/sys_time (Depends-on): Update.
755         * modules/sys_times (Depends-on): Update.
756         * modules/sys_utsname (Depends-on): Update.
757         * modules/time (Depends-on): Update.
758         * modules/unistd (Depends-on): Update.
759         * modules/wchar (Depends-on): Update.
760         * MODULES.html.sh (Support for building libraries and executables):
761         Update.
762
763 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
764
765         Improvements on _Noreturn and related modules.
766
767         modules/_Exit-tests: test _Noreturn too
768         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
769         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
770         (main): Use them.
771
772         stdnoreturn, stdnoreturn-tests: remove modules
773         They're not needed here and a bit premature for use elsewhere.  See
774         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
775         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
776         * tests/test-stdnoreturn.c: Remove files.
777         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
778         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
779         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
780         and using noreturn.
781         * modules/openat, modules/sigpipe-die, modules/xalloc:
782         * modules/xmemdup0, modules/xstrtol:
783         Remove dependency on stdnoreturn.
784
785         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
786         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
787         Reparenthesize to avoid GCC warning.
788         Support Microsoft's syntax.
789         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
790
791         _Noreturn-tests: remove module
792         * modules/_Noreturn-tests: Remove.
793         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
794         * tests/test-_Noreturn.c: Remove.
795         * tests/test-stdnoreturn.c: Merge from the old
796         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
797
798 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
799
800         _Noreturn, stdnoreturn, and related modules.
801
802         * top/maint.mk: Adjust to new noreturn support.
803         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
804         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
805
806         xalloc: use stdnoreturn.h
807         * lib/xalloc.h: Include <stdnoreturn.h>.
808         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
809         * modules/xalloc (Depends-on): Add stdnoreturn.
810
811         xstrtol: use stdnoreturn.h
812         * lib/xstrtol.h: Include <stdnoreturn.h>.
813         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
814         * modules/xstrtol (Depends-on): Add stdnoreturn.
815
816         xmemdup0: use stdnoreturn.h
817         * lib/xmemdup0.h: Include <stdnoreturn.h>.
818         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
819         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
820
821         sigpipe-die: use stdnoreturn.h
822         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
823         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
824         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
825
826         openat: use stdnoreturn.h
827         * lib/openat.h: Include <stdnoreturn.h>.
828         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
829         * modules/openat (Depends-on): Add stdnoreturn.
830
831         * lib/openat-die.c (openat_save_fail): Modernize comment.
832
833         * lib/xalloc-die.c (xalloc_die): Modernize comment.
834
835         * lib/glthread/thread.h: Modernize comment.
836
837         obstack: use _Noreturn
838         * lib/obstack.c (__attribute__): Remove macro.
839         (print_and_abort): Use _Noreturn.
840
841         c-stack: use _Noreturn
842         * lib/c-stack.c (die, overflow_handler, segv_handler):
843         Use _Noreturn rather than __attribute__((noreturn)).
844
845         argmatch-tests, exclude_tests: use _Noreturn
846         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
847         Remove.
848         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
849
850         stdlib: use _Noreturn
851         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
852         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
853         * modules/stdlib (Depends-on): Add _Noreturn.
854         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
855
856         stdnoreturn-tests: new module
857         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
858
859         stdnoreturn: new module
860         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
861         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
862
863         _Noreturn-tests: new module
864         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
865
866         _Noreturn: new module
867         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
868         New section, mentioning it.
869         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
870
871         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
872
873 2011-07-11  Eric Blake  <eblake@redhat.com>
874
875         ffs: new module
876         * modules/ffs: New file.
877         * m4/ffs.m4: Likewise.
878         * lib/ffs.c: Likewise.
879         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
880         * modules/strings (Makefile.am): Substitute witness.
881         (Depends-on): Add c++defs.
882         * lib/strings.in.h (ffs): Declare.
883         * modules/ffs-tests: New test file.
884         * tests/test-ffs.c: Test new module.
885         * MODULES.html.sh (Integer arithmetic functions): Mention it.
886         * doc/posix-functions/ffs.texi (ffs): Likewise.
887
888         regex: avoid compiler warning
889         * lib/regex.c (includes): Include <strings.h>, for use of
890         strcasecmp in regcomp.c.
891         Reported by Joachim Schmitz.
892
893 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
894
895         stdint: respect system's intmax_t if INTMAX_MAX
896         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
897         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
898         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
899         long but int64_t is long long, and where we will clash with the
900         system intmax_t if we override it.  See
901         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
902         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
903         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
904         similarly for UINTMAX_C.
905
906 2011-07-08  Bruno Haible  <bruno@clisp.org>
907
908         pthread_sigmask tests: Avoid a compiler warning.
909         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
910         non-zero.
911
912         sigprocmask tests: A better way to avoid a compiler warning.
913         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
914         (main): Complain if system() returns non-zero.
915         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
916
917 2011-07-08  Bruno Haible  <bruno@clisp.org>
918
919         pthread_sigmask: Work around IRIX bug.
920         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
921         bug.
922         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
923         there may be unblocked pending signals.
924         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
925
926 2011-07-08  Bruno Haible  <bruno@clisp.org>
927
928         pthread_sigmask: Work around Cygwin bug.
929         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
930         bug.
931         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
932         the system's pthread_sigmask function.
933         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
934
935 2011-07-08  Bruno Haible  <bruno@clisp.org>
936
937         pthread_sigmask: Work around bug in single-threaded implementation.
938         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
939         FreeBSD, HP-UX, Solaris bug.
940         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
941         * lib/pthread_sigmask.c: Include <stddef.h>.
942         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
943         the system's pthread_sigmask function.
944         * modules/pthread_sigmask (configure.ac): Invoke
945         gl_PREREQ_PTHREAD_SIGMASK.
946         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
947         HP-UX, Solaris.
948
949 2011-07-08  Eric Blake  <eblake@redhat.com>
950
951         test-sigprocmask: avoid compiler warning
952         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
953         * tests/test-sigprocmask.c (main): Use it to silence warning.
954         Reported by Jim Meyering.
955
956         test-snprintf: avoid compiler warning
957         * tests/test-snprintf.c (main): Avoid shadowed declaration.
958         * tests/test-vsnprintf.c (main): Likewise.
959         Reported by Jim Meyering.
960
961 2011-07-08  Bruno Haible  <bruno@clisp.org>
962
963         Tests for module 'pthread_sigmask'.
964         * modules/pthread_sigmask-tests: New file.
965         * tests/test-pthread_sigmask1.c: New file, based on
966         tests/test-sigprocmask.c.
967         * tests/test-pthread_sigmask2.c: New file.
968
969 2011-07-08  Jim Meyering  <meyering@redhat.com>
970
971         test-getopt.h: avoid warning about an unused variable
972         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
973
974 2011-07-07  Jim Meyering  <meyering@redhat.com>
975
976         maint: reduce list of files exempt from sc_prohibit_leading_TABs
977         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
978         now that it no longer contains leading TABs.
979         Remove unused "url=FIXME" statement.
980
981 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
982
983         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
984         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
985         When gl_THREADLIB is not in use, assume that the POSIX sematics
986         are desired.  This is better for Emacs, which uses POSIX semantics
987         on GNUish and/or POSIXish platforms, and does not use threads at
988         all otherwise.
989
990         pthread_sigmask: fix typo when testing for libraries
991         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
992         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
993
994 2011-07-08  Eric Blake  <eblake@redhat.com>
995
996         fts: introduce FTS_NOATIME
997         * lib/fts_.h (FTS_NOATIME): New bit flag.
998         (FTS_OPTIONMASK): Adjust.
999         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
1000         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
1001
1002 2011-07-08  Bruno Haible  <bruno@clisp.org>
1003
1004         Tests for module 'thread'.
1005         * modules/thread-tests: New file.
1006         * tests/test-thread_self.c: New file.
1007         * tests/test-thread_create.cc: New file.
1008
1009 2011-07-08  Bruno Haible  <bruno@clisp.org>
1010
1011         thread: Avoid gcc warnings when using gl_thread_self().
1012         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
1013         'void *'.
1014         (gl_thread_self_pointer): Update.
1015
1016 2011-07-07  Bruno Haible  <bruno@clisp.org>
1017
1018         signal-c++-tests: Check declaration of pthread_sigmask.
1019         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
1020         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
1021         $(LIB_PTHREAD_SIGMASK).
1022
1023 2011-07-07  Bruno Haible  <bruno@clisp.org>
1024
1025         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
1026         * lib/signal.in.h (pthread_sigmask): Override if
1027         REPLACE_PTHREAD_SIGMASK is 1.
1028         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
1029         REPLACE_PTHREAD_SIGMASK.
1030         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
1031         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
1032         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
1033         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
1034         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
1035
1036 2011-07-07  Bruno Haible  <bruno@clisp.org>
1037
1038         pthread_sigmask: Ensure declaration in <signal.h>.
1039         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
1040         include <pthread.h>.
1041         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
1042         problem.
1043
1044 2011-07-07  Bruno Haible  <bruno@clisp.org>
1045
1046         pthread_sigmask: Document the module.
1047         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
1048
1049 2011-07-07  Bruno Haible  <bruno@clisp.org>
1050
1051         pthread_sigmask: Follow gnulib conventions.
1052         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
1053         gl_PTHREAD_SIGMASK.
1054         * modules/pthread_sigmask (configure.ac): Update.
1055
1056 2011-07-07  Bruno Haible  <bruno@clisp.org>
1057
1058         pthread_sigmask: Make declaration C++ safe.
1059         * lib/signal.in.h: In two special conditions, just do an #include_next.
1060         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
1061         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
1062         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
1063         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
1064         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
1065         not REPLACE_PTHREAD_MASK.
1066         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
1067         not REPLACE_PTHREAD_MASK.
1068         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
1069
1070 2011-07-07  Bruno Haible  <bruno@clisp.org>
1071
1072         pthread_sigmask: Fix return value.
1073         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
1074         * lib/pthread_sigmask.c: New file.
1075         * modules/pthread_sigmask (Files): Add it.
1076         (configure.ac): Invoke AC_LIBOBJ.
1077
1078 2011-07-07  Eric Blake  <eblake@redhat.com>
1079
1080         getopt: more portable argv creation
1081         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
1082         const, use char arrays rather than strings.
1083         Suggested by Paul Eggert.
1084
1085 2011-07-07  Bruno Haible  <bruno@clisp.org>
1086
1087         Tests for module 'sigprocmask'.
1088         * modules/sigprocmask-tests: New file.
1089         * tests/test-sigprocmask.c: New file.
1090
1091 2011-07-07  Bruno Haible  <bruno@clisp.org>
1092
1093         float tests: Tweak.
1094         * tests/test-float.c (main): Tweak skip message.
1095
1096 2011-07-07  Eric Blake  <eblake@redhat.com>
1097
1098         getopt: avoid compiler warning during configure
1099         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
1100         assigning string literals to non-const pointer.
1101
1102         getopt-gnu: avoid crash in glibc getopt
1103         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
1104         * tests/test-getopt.h (test_getopt): Enhance test.
1105         * tests/test-getopt_long.h (test_getopt_long): Likewise.
1106         * doc/posix-functions/getopt.texi (getopt): Document it.
1107         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
1108         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
1109         Likewise.
1110
1111 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
1112
1113         getopt: handle W; without long options in getopt [BZ #12922]
1114         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
1115         but no long options are defined, just return 'W'.
1116
1117 2011-07-07  Bruno Haible  <bruno@clisp.org>
1118
1119         Avoid literal tabs.
1120         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
1121         variable containing a tab instead of a literal tab.
1122         Reported by Jim Meyering.
1123
1124 2011-07-07  Bruno Haible  <bruno@clisp.org>
1125
1126         Comments.
1127         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
1128
1129 2011-07-06  Bruno Haible  <bruno@clisp.org>
1130
1131         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
1132         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
1133         <winsock2.h>.
1134         (rpl_fd_isset, FD_ISSET): New definitions, copied from
1135         lib/sys_socket.in.h.
1136         (close, gethostname): Hide declarations from <winsock2.h>.
1137         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
1138         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
1139         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
1140         (select): Don't override if gnulib's <sys/select.h> was already
1141         included.
1142         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
1143         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
1144         setsockopt, shutdown, select): Tweak indentation.
1145
1146 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1147
1148         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
1149         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
1150         in an application that does not use the sys_select module.
1151
1152 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
1153
1154         poll: do not return 0 on timeout=-1
1155         * lib/poll.c: Loop with yield if no events occured
1156
1157 2011-07-06  Eric Blake  <eblake@redhat.com>
1158
1159         pthread_sigmask: always replace when not using pthread
1160         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
1161         replacement when using some threading other than pthread.  Fix
1162         logic bug.
1163
1164 2011-07-06  Bruno Haible  <bruno@clisp.org>
1165
1166         Comments.
1167         * m4/printf.m4: Update comments about mingw.
1168
1169 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1170
1171         sys_select: define sigset_t more portably
1172         * lib/sys_select.in.h: Always include <sys/types.h>, since
1173         we now need sigset_t and mingw defines it there.
1174         Include <signal.h> before split inclusion guard, to avoid
1175         mishaps on Solaris, whose <signal.h> eventually includes us.
1176         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
1177         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
1178         which come from ...
1179         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
1180         gl_CHECK_TYPE_SIGSET_T.
1181         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
1182         does the real work.
1183         * modules/sys_select (Depends-on): Add 'signal'.
1184
1185         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
1186         Suggested by Bruno Haible.
1187
1188         pselect: Use pthread_sigmask, not sigprocmask.
1189         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
1190         multithreaded apps better than sigprocmask does.
1191         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
1192         sigprocmask directly.
1193
1194 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
1195
1196         * lib/pselect.c (pselect): Use plain name, without "rpl_".
1197         Don't #undef,  since we don't need any underlying pselect.
1198         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
1199         (Depends-on): Add select.
1200         (Link): Add $(LIBSOCKET).
1201         These changes suggested by Bruno Haible.
1202
1203         pselect: document better
1204         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
1205         * doc/posix-functions/pselect.texi (pselect): Document new module.
1206
1207         pthread_sigmask: new module
1208         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
1209         * doc/posix-functions/pthread_sigmask.texi: Document new module.
1210         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
1211         This is done only as a macro; I don't know how well that'll
1212         work for C++.  Move <sys/types.h> include before the include_next,
1213         to avoid mishap on Solaris.
1214         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
1215         * modules/signal (Makefile.am): Substitute the check's results.
1216         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
1217
1218         test-pselect: new module
1219         * modules/pselect-tests, tests/test-pselect.c: New files.
1220         * tests/test-select.c, tests/test-sys_select-c++.cc:
1221         If TEST_PSELECT is defined, test pselect instead of testing select.
1222
1223         * tests/test-sys_select.c (sigset_t): Test for it, too.
1224         Suggested by Bruno Haible.
1225
1226 2011-07-05  Eric Blake  <eblake@redhat.com>
1227
1228         snprintf: guarantee %1$d, for libintl
1229         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
1230         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
1231         * doc/posix-functions/snprintf.texi (snprintf): Update.
1232         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
1233         * tests/test-snprintf.c (main): Enhance test.
1234         * tests/test-vsnprintf.c (main): Likewise.
1235
1236 2011-07-05  Jim Meyering  <meyering@redhat.com>
1237
1238         maint: exempt stdio-read.c and stdio-write.c from the cppi check
1239         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
1240         per Bruno's request, to accommodate this idiom (no space after "#")
1241         even when the function is inside an #if block:
1242         char *
1243         gets (char *s)
1244         #undef gets
1245         {
1246           ...
1247         }
1248
1249 2011-07-04  Jim Meyering  <meyering@redhat.com>
1250
1251         maint: indent with spaces, not TABs, and add a rule to check this
1252         * tests/test-userspec.c: Indent with spaces, not TABs.
1253         * tests/test-argp.c: Likewise.
1254         * tests/test-c-stack2.sh: Likewise.
1255         * tests/test-parse-duration.sh: Likewise
1256         * m4/strtod.m4: Likewise.
1257         * m4/alloca.m4: Likewise.
1258         * m4/pselect.m4: Likewise.
1259         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
1260
1261 2011-07-03  Jim Meyering  <meyering@redhat.com>
1262
1263         maint.mk: correct omissions in prohibit_argmatch_without_use check
1264         This rule would mistakenly report that argmatch.h is included without
1265         use even when both the argmatch and invalid_arg macro were used.
1266         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
1267         of argmatch and invalid_arg.
1268
1269 2011-07-03  Bruno Haible  <bruno@clisp.org>
1270
1271         Comments about EINTR.
1272         * lib/safe-read.h: Explain the purpose of this module.
1273         * lib/safe-write.h: Likewise.
1274         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
1275         module.
1276         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
1277         module.
1278         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1279
1280 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
1281
1282         xnanosleep: Rewrite to use new dtotimespec module.
1283         It has the conversion code that used to be in xnanosleep.
1284         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
1285         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
1286         (TIME_T_MAX): Remove.
1287         (xnanosleep): Rewrite in terms of dtotimespec.
1288         * modules/xnanosleep (Depends-on): Add dtotimespec.
1289         Remove intprops, stdbool.
1290
1291         timespec-add, timespec-sub: new modules
1292         * lib/timespec.h (timespec_add, timespec_sub): New decls.
1293         * lib/timespec-add.c, lib/timespec-sub.c:
1294         * modules/timespec-add, modules/timespec-sub: New files.
1295
1296         dtotimespec: new module
1297         * lib/timespec.h (dtotimespec): New decl.
1298         * lib/dtotimespec.c, modules/dtotimespec: New files.
1299
1300         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
1301
1302         pselect: new module
1303         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
1304         (pselect): New decls.
1305         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
1306         since the standard pselect decl uses 'restrict'.
1307         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
1308         HAVE_PSELECT, REPLACE_PSELECT.
1309         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
1310         HAVE_PSELECT, REPLACE_PSELECT.
1311         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
1312
1313         sys_select: don't depend on sys_socket
1314         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
1315         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
1316         This fix works on GNU and GNU-like platforms, but has not been tested
1317         on native Windows.
1318         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
1319         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
1320         gl_HEADER_SYS_SOCKET.
1321         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
1322         gl_PREREQ_SYS_H_WINSOCK2.
1323
1324 2011-06-29  Eric Blake  <eblake@redhat.com>
1325
1326         pipe2: fix C89 compile problem
1327         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
1328         Reported by Bruno Haible.
1329
1330         pipe, pipe2: don't corrupt fd on error
1331         * lib/pipe.c (pipe): Leave fd unchanged on error.
1332         * lib/pipe2.c (pipe2): Likewise.
1333         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
1334         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
1335
1336 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
1337
1338         mmap-anon: do not use regular expressions inadvertently
1339         * m4/mmap-anon.m4: Remove trailing period from strings sought
1340         in the output.
1341
1342 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
1343
1344         nanosleep: fix integer overflow problem
1345         * lib/nanosleep.c (my_usleep): Don't assume signed integer
1346         arithmetic wraps around on overflow.
1347
1348         nanosleep: simplify carrying
1349         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
1350         first call to the underyling nanosleep, not for the last one.
1351         This doesn't fix any bugs, but it simplifies the computation of
1352         the remaining delay.  Found while auditing integer overflow issues.
1353
1354         dup2: remove test for existence of fcntl
1355         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
1356         "#if HAVE_FCNTL", in the configure-time test program.
1357         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
1358         and therefore speeds up "configure" a bit.  Found while
1359         adding the dup2 module to Emacs.
1360
1361 2011-06-24  Eric Blake  <eblake@redhat.com>
1362
1363         maint.mk: enhance useless header checks
1364         * top/maint.mk (_sc_header_without_use): Check both include
1365         styles.
1366         (sc_prohibit_assert_without_use)
1367         (sc_prohibit_close_stream_without_use)
1368         (sc_prohibit_getopt_without_use)
1369         (sc_prohibit_quotearg_without_use)
1370         (sc_prohibit_quote_without_use)
1371         (sc_prohibit_long_options_without_use)
1372         (sc_prohibit_inttostr_without_use)
1373         (sc_prohibit_ignore_value_without_use)
1374         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
1375         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
1376         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
1377         (sc_prohibit_hash_pjw_without_use)
1378         (sc_prohibit_safe_read_without_use)
1379         (sc_prohibit_argmatch_without_use)
1380         (sc_prohibit_canonicalize_without_use)
1381         (sc_prohibit_root_dev_ino_without_use)
1382         (sc_prohibit_openat_without_use)
1383         (sc_prohibit_c_ctype_without_use)
1384         (sc_prohibit_signal_without_use)
1385         (sc_prohibit_stdio--_without_use)
1386         (sc_prohibit_stdio-safer_without_use)
1387         (sc_prohibit_strings_without_use)
1388         (sc_prohibit_intprops_without_use)
1389         (sc_prohibit_stddef_without_use)
1390         (sc_prohibit_xfreopen_without_use): Update clients.
1391
1392 2011-06-24  Jim Meyering  <meyering@redhat.com>
1393
1394         syntax-check: keep one maint.mk rule in sync with its header
1395         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
1396         of the bug Eric has just fixed, with today's commit 25e4c2ec.
1397         I prefer to avoid temporary files here, so use <(...), but that
1398         is not supported by /bin/sh, so...
1399         (SHELL): Define to /bin/bash.
1400
1401 2011-06-24  Eric Blake  <eblake@redhat.com>
1402
1403         maint.mk: update sc_prohibit_intprops_without_use
1404         * top/maint.mk (_intprops_names): Match recent changes.
1405
1406 2011-06-24  Bruno Haible  <bruno@clisp.org>
1407
1408         strerror-override: No-op tweak.
1409         * lib/strerror-override.h (strerror_override): Reorder conditions,
1410         for consistency with lib/strerror-override.c.
1411
1412 2011-06-23  Eric Blake  <eblake@redhat.com>
1413
1414         maint.mk: test further PATH_MAX issues
1415         * top/maint.mk (sc_prohibit_path_max_array): Rename...
1416         (sc_prohibit_path_max_allocation): ...and also test alloca.
1417         Suggested by Jim Meyering.
1418
1419 2011-06-22  Eric Blake  <eblake@redhat.com>
1420
1421         maint.mk: add syntax-check to avoid char[PATH_MAX]
1422         * top/maint.mk (sc_prohibit_path_max_array): New rule.
1423
1424         stat: be robust to PATH_MAX definition
1425         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
1426         * modules/stat (Depends-on): Add verify.
1427
1428         link: work around IRIX bug
1429         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
1430         * lib/link.c (rpl_link): Work around it.
1431         * tests/test-link.h (test_link): Enhance test.
1432         * doc/posix-functions/link.texi (link): Document the bug.
1433
1434         getopt: silence clang warning
1435         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
1436         dereference.
1437         Reported by Gustavo Martin Domato.
1438
1439 2011-06-22  Jim Meyering  <meyering@redhat.com>
1440
1441         bootstrap: do not insert a blank line into each .gitignore file
1442         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
1443
1444 2011-06-21  Eric Blake  <eblake@redhat.com>
1445
1446         perror: test for output mismatch
1447         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
1448         perror on IRIX.
1449
1450         strerror_r: fix OpenBSD behavior on out-of-range
1451         * lib/strerror_r.c (strerror_r): Always use maximal string.
1452         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1453
1454         strerror_r: fix OpenBSD behavior on 0
1455         * lib/strerror-override.c (strerror_override): Also override 0
1456         when needed.
1457         * lib/strerror-override.h (strerror_override): Likewise.
1458         * lib/strerror.c (strerror): Simplify, now that 0 override is done
1459         earlier.
1460         * lib/strerror_r.c (strerror_r): Likewise.
1461         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
1462         behavior...
1463         (gl_FUNC_STRERROR_0): ...into new macro.
1464         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
1465         is overridden.
1466         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
1467         * modules/strerror-override (Files): Add strerror.m4.
1468         (configure.ac): Also provide override for 0 when needed.
1469         * doc/posix-functions/strerror.texi (strerror): Document this.
1470         * doc/posix-functions/perror.texi (perror): Likewise.
1471
1472         perror: adjust array size
1473         * modules/perror (Depends-on): Add strerror-override.
1474         * lib/perror.c (perror): Use it to avoid magic number.
1475
1476         strerror-override: reduce size
1477         * lib/strerror-override.c (strerror_override): Use fewer lines.
1478
1479 2011-06-20  Bruno Haible  <bruno@clisp.org>
1480
1481         pathmax: Ensure correct value for PATH_MAX on HP-UX.
1482         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
1483
1484 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
1485
1486         alloca: port to compilers that can optimize like GCC 4.6.0
1487         * lib/alloca.c (find_stack_direction): New signature, taken from
1488         Autoconf git.  This works with GCC 4.6.0.  This code should never
1489         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
1490         be used with other compilers that optimize as well as GCC 4.6.0 does.
1491         (alloca): Adjust to new signature.
1492         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
1493         New macro, which patches Autoconf in a similar way.
1494
1495         c-stack: stop worrying about stack direction
1496         * lib/c-stack.c (find_stack_direction): Remove.
1497         (segv_handler): Don't worry about stack direction growth, as it's
1498         too much of a pain to configure this correctly, given how compilers
1499         are optimizing-away our stack-growth detection code.  Instead, assume
1500         that any access to just before or just after the stack is OK.
1501         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
1502         Don't require AC_FUNC_ALLOCA; no longer needed.
1503
1504 2011-06-20  Eric Blake  <eblake@redhat.com>
1505
1506         test-stat: don't allocate PATH_MAX bytes
1507         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
1508         PATH_MAX-sized buffer.
1509         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
1510         * modules/stat-tests (Depends-on): Likewise.
1511         * tests/test-fstatat.c (includes): Drop pathmax.h.
1512         * tests/test-stat.c (includes): Likewise.
1513         Reported by Bruno Haible.
1514
1515 2011-06-20  Bruno Haible  <bruno@clisp.org>
1516
1517         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
1518         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
1519         * lib/float.c: New file.
1520         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
1521         REPLACE_FLOAT_LDBL.
1522         * modules/float (Files): Add lib/float.c.
1523         (configure.ac): Invoke AC_LIBOBJ.
1524         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
1525
1526 2011-06-20  Bruno Haible  <bruno@clisp.org>
1527
1528         Tests for module 'float'.
1529         * modules/float-tests: New file.
1530         * tests/test-float.c: New file.
1531
1532 2011-06-19  Bruno Haible  <bruno@clisp.org>
1533
1534         isinf: Coding style.
1535         * lib/isinf.c: Use GNU coding style.
1536
1537 2011-06-19  Bruno Haible  <bruno@clisp.org>
1538
1539         linkat test: Avoid test failure on AIX 7.1.
1540         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
1541         * tests/test-link.h (test_link): Likewise.
1542
1543 2011-06-19  Bruno Haible  <bruno@clisp.org>
1544
1545         pread test: Avoid test failure on OpenBSD 4.9.
1546         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
1547
1548 2011-06-19  Bruno Haible  <bruno@clisp.org>
1549
1550         sprintf-posix: Fix test failure on AIX 7.1.
1551         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
1552         * doc/posix-functions/dprintf.texi: Mention limited precision problem
1553         on AIX.
1554         * doc/posix-functions/fprintf.texi: Likewise.
1555         * doc/posix-functions/printf.texi: Likewise.
1556         * doc/posix-functions/snprintf.texi: Likewise.
1557         * doc/posix-functions/sprintf.texi: Likewise.
1558         * doc/posix-functions/vdprintf.texi: Likewise.
1559         * doc/posix-functions/vfprintf.texi: Likewise.
1560         * doc/posix-functions/vprintf.texi: Likewise.
1561         * doc/posix-functions/vsnprintf.texi: Likewise.
1562         * doc/posix-functions/vsprintf.texi: Likewise.
1563
1564 2011-06-19  Bruno Haible  <bruno@clisp.org>
1565
1566         roundl-ieee: Fix test failure on AIX 7.1.
1567         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
1568         * doc/posix-functions/roundl.texi: Mention problem with negative
1569         arguments.
1570
1571 2011-06-19  Bruno Haible  <bruno@clisp.org>
1572
1573         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
1574         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
1575         * doc/posix-functions/round.texi: Mention problem with negative
1576         arguments.
1577         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
1578
1579 2011-06-19  Bruno Haible  <bruno@clisp.org>
1580
1581         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
1582         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
1583         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
1584         * doc/posix-functions/roundf.texi: Mention problem with negative
1585         arguments.
1586         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
1587
1588 2011-06-19  Bruno Haible  <bruno@clisp.org>
1589
1590         ceilf-ieee: Work around bug on MacOS X 10.5.
1591         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
1592
1593         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
1594         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
1595         IEEE compliant, avoid compiler optimizations.
1596         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
1597         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
1598         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
1599         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
1600         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
1601         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
1602         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
1603         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
1604         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
1605         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
1606
1607 2011-06-19  Bruno Haible  <bruno@clisp.org>
1608
1609         ceilf-ieee: Work around bug on AIX 7.1.
1610         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
1611         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
1612
1613 2011-06-19  Bruno Haible  <bruno@clisp.org>
1614
1615         ceil-ieee: Work around bug on AIX 7.1.
1616         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
1617         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
1618
1619 2011-06-18  Bruno Haible  <bruno@clisp.org>
1620
1621         fsync test: Avoid test failure on MacOS X and AIX.
1622         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
1623         EINVAL.
1624
1625 2011-06-18  Bruno Haible  <bruno@clisp.org>
1626
1627         openat, fdopendir tests: Fix link errors.
1628         * modules/openat-tests (Depends-on): Add progname.
1629         * modules/fdopendir-tests (Depends-on): Likewise.
1630         * tests/test-fchownat.c: Include progname.h.
1631         (main): Call set_program_name.
1632         * tests/test-fstatat.c: Include progname.h.
1633         (main): Call set_program_name.
1634         * tests/test-mkdirat.c: Include progname.h.
1635         (main): Call set_program_name.
1636         * tests/test-openat.c: Include progname.h.
1637         (main): Call set_program_name.
1638         * tests/test-unlinkat.c: Include progname.h.
1639         (main): Call set_program_name.
1640         * tests/test-fdopendir.c: Include progname.h.
1641         (main): Call set_program_name.
1642
1643 2011-06-18  Bruno Haible  <bruno@clisp.org>
1644
1645         Doc update.
1646         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
1647         HP-UX.
1648         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
1649
1650 2011-06-18  Bruno Haible  <bruno@clisp.org>
1651
1652         getcwd tests: Avoid compilation error on HP-UX 11.31.
1653         * modules/getcwd-tests (Depends-on): Add pathmax.
1654         * tests/test-getcwd.c: Include pathmax.h.
1655
1656 2011-06-18  Bruno Haible  <bruno@clisp.org>
1657
1658         isfinite, isinf: Fix link error on AIX 6 and 7.
1659         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
1660         needed, also test the macro with a 'float' argument.
1661         * m4/isinf.m4 (gl_ISINF): Likewise.
1662
1663 2011-06-18  Bruno Haible  <bruno@clisp.org>
1664
1665         getloadavg: Don't clobber LIBS. Regression from previous commit.
1666         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
1667         AC_CHECK_LIB from here...
1668         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
1669         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
1670         gl_func_getloadavg_done.
1671         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1672
1673 2011-06-18  Bruno Haible  <bruno@clisp.org>
1674
1675         clean-temp: Improve documentation.
1676         * lib/clean-temp.h: Explain better how to use this module.
1677         Reported by John Darrington <john@darrington.wattle.id.au>.
1678
1679 2011-06-17  Bruno Haible  <bruno@clisp.org>
1680
1681         pread, pwrite: Avoid cc warning on AIX.
1682         * lib/unistd.in.h (pread): Undefine before defining as a macro.
1683         (pwrite): Likewise.
1684
1685 2011-06-17  Bruno Haible  <bruno@clisp.org>
1686
1687         spawn-pipe tests: Fix link error.
1688         * tests/test-spawn-pipe-child.c: Undefine fprintf.
1689         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1690
1691 2011-06-17  Bruno Haible  <bruno@clisp.org>
1692
1693         Tests: Remove unnecessary dependency.
1694         * modules/canonicalize-tests (Depends-on): Remove progname.
1695         * modules/chown-tests (Depends-on): Likewise.
1696         * modules/dirname-tests (Depends-on): Likewise.
1697         * modules/fdopendir-tests (Depends-on): Likewise.
1698         * modules/fdutimensat-tests (Depends-on): Likewise.
1699         * modules/hash-tests (Depends-on): Likewise.
1700         * modules/lchown-tests (Depends-on): Likewise.
1701         * modules/linkat-tests (Depends-on): Likewise.
1702         * modules/renameat-tests (Depends-on): Likewise.
1703         * modules/spawn-pipe-tests (Depends-on): Likewise.
1704         * modules/utimensat-tests (Depends-on): Likewise.
1705
1706 2011-06-17  Bruno Haible  <bruno@clisp.org>
1707
1708         spawn-pipe tests: Fix link error.
1709         * tests/test-spawn-pipe-child.c: Undefine fflush.
1710
1711 2011-06-17  Bruno Haible  <bruno@clisp.org>
1712
1713         Fix tests link errors.
1714         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
1715         * modules/chown-tests (Makefile.am): Don't link test-chown with
1716         LIBINTL.
1717         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
1718         LIBINTL.
1719         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
1720         LIBINTL.
1721         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
1722         LIBINTL.
1723
1724 2011-06-16  Bruno Haible  <bruno@clisp.org>
1725
1726         crypto/gc-sha1: Fix recent regression.
1727         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
1728         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
1729
1730         crypto/gc-md5: Fix recent regression.
1731         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
1732
1733         crypto/gc-md4: Fix recent regression.
1734         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
1735         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
1736
1737         crypto/gc-arctwo: Fix recent regression.
1738         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
1739         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
1740
1741         crypto/gc-rijndael: Fix recent regression.
1742         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
1743         (configure.ac): Invoke AC_LIBOBJ here.
1744         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
1745         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1746
1747         crypto/gc-hmac-sha1: Fix recent regression.
1748         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
1749         (configure.ac): Invoke AC_LIBOBJ here.
1750         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
1751         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1752
1753         crypto/gc-hmac-md5: Fix recent regression.
1754         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
1755         (configure.ac): Invoke AC_LIBOBJ here.
1756         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
1757         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1758
1759         crypto/gc-des: Fix recent regression.
1760         * modules/crypto/gc-des (Files): Remove m4/des.m4.
1761         (configure.ac): Invoke AC_LIBOBJ here.
1762         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
1763         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1764
1765         crypto/gc-arcfour: Fix recent regression.
1766         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
1767         (configure.ac): Invoke AC_LIBOBJ here.
1768         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
1769         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1770
1771 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
1772
1773         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
1774         After the 2011-05-21 change, this macro requires
1775         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
1776         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
1777
1778 2011-06-16  Bruno Haible  <bruno@clisp.org>
1779
1780         fprintftime: Move AC_LIBOBJ invocations to module description.
1781         * m4/fprintftime.m4: Remove file.
1782         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
1783         (configure.ac): Remove gl_FPRINTFTIME call.
1784         (Makefile.am): Augment lib_SOURCES.
1785         Reported by Jim Meyering.
1786
1787 2011-06-16  Bruno Haible  <bruno@clisp.org>
1788
1789         tmpfile-safer: Finish 2011-05-23 commit.
1790         * m4/stdio-safer.m4: Really remove file.
1791         Reported by Jim Meyering.
1792
1793 2011-06-16  Bruno Haible  <bruno@clisp.org>
1794
1795         syntax-check: Fix typo.
1796         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
1797         printf-posix.m4.
1798         Reported by Jim Meyering.
1799
1800 2011-06-13  Jim Meyering  <meyering@redhat.com>
1801
1802         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
1803         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
1804
1805 2011-05-23  Bruno Haible  <bruno@clisp.org>
1806
1807         yesno: Move AC_LIBOBJ invocations to module description.
1808         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
1809         * modules/yesno (Makefile.am): Augment lib_SOURCES.
1810
1811 2011-05-23  Bruno Haible  <bruno@clisp.org>
1812
1813         xstrtol: Move AC_LIBOBJ invocations to module description.
1814         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
1815         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
1816
1817 2011-05-23  Bruno Haible  <bruno@clisp.org>
1818
1819         xstrtold: Move AC_LIBOBJ invocations to module description.
1820         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
1821         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
1822
1823 2011-05-23  Bruno Haible  <bruno@clisp.org>
1824
1825         xstrtod: Move AC_LIBOBJ invocations to module description.
1826         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
1827         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
1828
1829 2011-05-23  Bruno Haible  <bruno@clisp.org>
1830
1831         xnanosleep: Move AC_LIBOBJ invocations to module description.
1832         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
1833         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
1834
1835 2011-05-23  Bruno Haible  <bruno@clisp.org>
1836
1837         xgetcwd: Move AC_LIBOBJ invocations to module description.
1838         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
1839         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
1840
1841 2011-05-23  Bruno Haible  <bruno@clisp.org>
1842
1843         xalloc: Move AC_LIBOBJ invocations to module description.
1844         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
1845         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
1846
1847 2011-05-23  Bruno Haible  <bruno@clisp.org>
1848
1849         write-any-file: Move AC_LIBOBJ invocations to module description.
1850         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
1851         invocation.
1852         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
1853
1854 2011-05-23  Bruno Haible  <bruno@clisp.org>
1855
1856         utimens: Move AC_LIBOBJ invocations to module description.
1857         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
1858         * modules/utimens (Makefile.am): Augment lib_SOURCES.
1859
1860 2011-05-23  Bruno Haible  <bruno@clisp.org>
1861
1862         utimecmp: Move AC_LIBOBJ invocations to module description.
1863         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
1864         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
1865
1866 2011-05-23  Bruno Haible  <bruno@clisp.org>
1867
1868         userspec: Move AC_LIBOBJ invocations to module description.
1869         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
1870         * modules/userspec (Makefile.am): Augment lib_SOURCES.
1871
1872 2011-05-23  Bruno Haible  <bruno@clisp.org>
1873
1874         unlinkdir: Move AC_LIBOBJ invocations to module description.
1875         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
1876         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
1877
1878 2011-05-23  Bruno Haible  <bruno@clisp.org>
1879
1880         unistd-safer: Move AC_LIBOBJ invocations to module description.
1881         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
1882         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
1883
1884 2011-05-23  Bruno Haible  <bruno@clisp.org>
1885
1886         tempname: Move AC_LIBOBJ invocations to module description.
1887         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
1888         * modules/tempname (Makefile.am): Augment lib_SOURCES.
1889
1890 2011-05-23  Bruno Haible  <bruno@clisp.org>
1891
1892         strftime: Move AC_LIBOBJ invocations to module description.
1893         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
1894         * modules/strftime (Makefile.am): Augment lib_SOURCES.
1895
1896 2011-05-23  Bruno Haible  <bruno@clisp.org>
1897
1898         stdlib-safer: Move AC_LIBOBJ invocations to module description.
1899         * m4/stdlib-safer.m4: Remove file.
1900         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
1901         (configure.ac): Remove gl_STDLIB_SAFER call.
1902         (Makefile.am): Augment lib_SOURCES.
1903
1904 2011-05-23  Bruno Haible  <bruno@clisp.org>
1905
1906         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
1907         * m4/stdio-safer.m4: Remove file.
1908         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
1909         (configure.ac): Remove gl_TMPFILE_SAFER call.
1910         (Makefile.am): Augment lib_SOURCES.
1911
1912 2011-05-23  Bruno Haible  <bruno@clisp.org>
1913
1914         popen-safer: Move AC_LIBOBJ invocations to module description.
1915         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
1916         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
1917         (configure.ac): Remove gl_POPEN_SAFER call.
1918         (Makefile.am): Augment lib_SOURCES.
1919
1920 2011-05-23  Bruno Haible  <bruno@clisp.org>
1921
1922         freopen-safer: Move AC_LIBOBJ invocations to module description.
1923         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
1924         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
1925         (configure.ac): Remove gl_FREOPEN_SAFER call.
1926         (Makefile.am): Augment lib_SOURCES.
1927
1928 2011-05-23  Bruno Haible  <bruno@clisp.org>
1929
1930         fopen-safer: Move AC_LIBOBJ invocations to module description.
1931         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
1932         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
1933         (configure.ac): Remove gl_FOPEN_SAFER call.
1934         (Makefile.am): Augment lib_SOURCES.
1935
1936 2011-05-23  Bruno Haible  <bruno@clisp.org>
1937
1938         crypto/sha512: Move AC_LIBOBJ invocations to module description.
1939         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
1940         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
1941
1942 2011-05-23  Bruno Haible  <bruno@clisp.org>
1943
1944         crypto/sha256: Move AC_LIBOBJ invocations to module description.
1945         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
1946         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
1947
1948 2011-05-23  Bruno Haible  <bruno@clisp.org>
1949
1950         crypto/sha1: Move AC_LIBOBJ invocations to module description.
1951         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
1952         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
1953
1954 2011-05-23  Bruno Haible  <bruno@clisp.org>
1955
1956         settime: Move AC_LIBOBJ invocations to module description.
1957         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
1958         * modules/settime (Makefile.am): Augment lib_SOURCES.
1959
1960 2011-05-23  Bruno Haible  <bruno@clisp.org>
1961
1962         savedir: Move AC_LIBOBJ invocations to module description.
1963         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
1964         * modules/savedir (Makefile.am): Augment lib_SOURCES.
1965
1966 2011-05-23  Bruno Haible  <bruno@clisp.org>
1967
1968         save-cwd: Move AC_LIBOBJ invocations to module description.
1969         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
1970         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
1971
1972 2011-05-23  Bruno Haible  <bruno@clisp.org>
1973
1974         same: Move AC_LIBOBJ invocations to module description.
1975         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
1976         * modules/same (Makefile.am): Augment lib_SOURCES.
1977
1978 2011-05-23  Bruno Haible  <bruno@clisp.org>
1979
1980         safe-write: Move AC_LIBOBJ invocations to module description.
1981         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
1982         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
1983         instead of gl_SAFE_WRITE.
1984         (Makefile.am): Augment lib_SOURCES.
1985
1986 2011-05-23  Bruno Haible  <bruno@clisp.org>
1987
1988         safe-read: Move AC_LIBOBJ invocations to module description.
1989         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
1990         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
1991         of gl_SAFE_READ.
1992         (Makefile.am): Augment lib_SOURCES.
1993
1994 2011-05-23  Bruno Haible  <bruno@clisp.org>
1995
1996         safe-alloc: Move AC_LIBOBJ invocations to module description.
1997         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
1998         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
1999
2000 2011-05-23  Bruno Haible  <bruno@clisp.org>
2001
2002         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
2003         * m4/rijndael.m4: Remove file.
2004         * modules/crypto/rijndael (Files): Remove it.
2005         (configure.ac): Remove gl_RIJNDAEL call.
2006         (Makefile.am): Augment lib_SOURCES.
2007
2008 2011-05-23  Bruno Haible  <bruno@clisp.org>
2009
2010         readtokens: Move AC_LIBOBJ invocations to module description.
2011         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
2012         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
2013
2014 2011-05-23  Bruno Haible  <bruno@clisp.org>
2015
2016         read-file: Move AC_LIBOBJ invocations to module description.
2017         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
2018         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
2019         of gl_FUNC_READ_FILE.
2020         (Makefile.am): Augment lib_SOURCES.
2021
2022 2011-05-23  Bruno Haible  <bruno@clisp.org>
2023
2024         quotearg: Move AC_LIBOBJ invocations to module description.
2025         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
2026         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
2027
2028 2011-05-23  Bruno Haible  <bruno@clisp.org>
2029
2030         quote: Move AC_LIBOBJ invocations to module description.
2031         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
2032         * modules/quote (Makefile.am): Augment lib_SOURCES.
2033
2034 2011-05-23  Bruno Haible  <bruno@clisp.org>
2035
2036         posixver: Move AC_LIBOBJ invocations to module description.
2037         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
2038         * modules/posixver (Makefile.am): Augment lib_SOURCES.
2039
2040 2011-05-23  Bruno Haible  <bruno@clisp.org>
2041
2042         posixtm: Move AC_LIBOBJ invocations to module description.
2043         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
2044         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
2045
2046 2011-05-23  Bruno Haible  <bruno@clisp.org>
2047
2048         physmem: Move AC_LIBOBJ invocations to module description.
2049         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
2050         * modules/physmem (Makefile.am): Augment lib_SOURCES.
2051
2052 2011-05-23  Bruno Haible  <bruno@clisp.org>
2053
2054         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
2055         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
2056         invocation.
2057         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
2058
2059 2011-05-23  Bruno Haible  <bruno@clisp.org>
2060
2061         mpsort: Move AC_LIBOBJ invocations to module description.
2062         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
2063         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
2064
2065 2011-05-23  Bruno Haible  <bruno@clisp.org>
2066
2067         modechange: Move AC_LIBOBJ invocations to module description.
2068         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
2069         * modules/modechange (Makefile.am): Augment lib_SOURCES.
2070
2071 2011-05-23  Bruno Haible  <bruno@clisp.org>
2072
2073         mkdir-p: Move AC_LIBOBJ invocations to module description.
2074         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
2075         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
2076
2077 2011-05-23  Bruno Haible  <bruno@clisp.org>
2078
2079         mkancesdirs: Move AC_LIBOBJ invocations to module description.
2080         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
2081         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
2082
2083 2011-05-23  Bruno Haible  <bruno@clisp.org>
2084
2085         mgetgroups: Move AC_LIBOBJ invocations to module description.
2086         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
2087         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
2088
2089 2011-05-23  Bruno Haible  <bruno@clisp.org>
2090
2091         memxor: Move AC_LIBOBJ invocations to module description.
2092         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
2093         * modules/memxor (Makefile.am): Augment lib_SOURCES.
2094
2095 2011-05-23  Bruno Haible  <bruno@clisp.org>
2096
2097         memcoll: Move AC_LIBOBJ invocations to module description.
2098         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
2099         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
2100
2101 2011-05-23  Bruno Haible  <bruno@clisp.org>
2102
2103         memcasecmp: Move AC_LIBOBJ invocations to module description.
2104         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
2105         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
2106
2107 2011-05-23  Bruno Haible  <bruno@clisp.org>
2108
2109         crypto/md5: Move AC_LIBOBJ invocations to module description.
2110         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
2111         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
2112
2113 2011-05-23  Bruno Haible  <bruno@clisp.org>
2114
2115         crypto/md4: Move AC_LIBOBJ invocations to module description.
2116         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
2117         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
2118
2119 2011-05-23  Bruno Haible  <bruno@clisp.org>
2120
2121         crypto/md2: Move AC_LIBOBJ invocations to module description.
2122         * m4/md2.m4: Remove file.
2123         * modules/crypto/md2 (Files): Remove it.
2124         (configure.ac): Remove gl_MD2 call.
2125         (Makefile.am): Augment lib_SOURCES.
2126
2127 2011-05-23  Bruno Haible  <bruno@clisp.org>
2128
2129         long-options: Move AC_LIBOBJ invocations to module description.
2130         * m4/long-options.m4: Remove file.
2131         * modules/long-options (Files): Remove it.
2132         (configure.ac): Remove gl_LONG_OPTIONS call.
2133         (Makefile.am): Augment lib_SOURCES.
2134
2135 2011-05-23  Bruno Haible  <bruno@clisp.org>
2136
2137         i-ring: Move AC_LIBOBJ invocations to module description.
2138         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
2139         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
2140
2141 2011-05-23  Bruno Haible  <bruno@clisp.org>
2142
2143         idcache: Move AC_LIBOBJ invocations to module description.
2144         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
2145         * modules/idcache (Makefile.am): Augment lib_SOURCES.
2146
2147 2011-05-23  Bruno Haible  <bruno@clisp.org>
2148
2149         human: Move AC_LIBOBJ invocations to module description.
2150         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
2151         * modules/human (Makefile.am): Augment lib_SOURCES.
2152
2153 2011-05-23  Bruno Haible  <bruno@clisp.org>
2154
2155         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
2156         * m4/hmac-sha1.m4: Remove file.
2157         * modules/crypto/hmac-sha1 (Files): Remove it.
2158         (configure.ac): Remove gl_HMAC_SHA1 call.
2159         (Makefile.am): Augment lib_SOURCES.
2160
2161 2011-05-23  Bruno Haible  <bruno@clisp.org>
2162
2163         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
2164         * m4/hmac-md5.m4: Remove file.
2165         * modules/crypto/hmac-md5 (Files): Remove it.
2166         (configure.ac): Remove gl_HMAC_MD5 call.
2167         (Makefile.am): Augment lib_SOURCES.
2168
2169 2011-05-23  Bruno Haible  <bruno@clisp.org>
2170
2171         hash: Move AC_LIBOBJ invocations to module description.
2172         * m4/hash.m4: Remove file.
2173         * modules/hash (Files): Remove it.
2174         (configure.ac): Remove gl_HASH call.
2175         (Makefile.am): Augment lib_SOURCES.
2176
2177 2011-05-23  Bruno Haible  <bruno@clisp.org>
2178
2179         hard-locale: Move AC_LIBOBJ invocations to module description.
2180         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
2181         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
2182
2183 2011-05-23  Bruno Haible  <bruno@clisp.org>
2184
2185         getugroups: Move AC_LIBOBJ invocations to module description.
2186         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
2187         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
2188
2189 2011-05-23  Bruno Haible  <bruno@clisp.org>
2190
2191         gettime: Move AC_LIBOBJ invocations to module description.
2192         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
2193         * modules/gettime (Makefile.am): Augment lib_SOURCES.
2194
2195 2011-05-23  Bruno Haible  <bruno@clisp.org>
2196
2197         getndelim2: Move AC_LIBOBJ invocations to module description.
2198         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
2199         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
2200
2201 2011-05-23  Bruno Haible  <bruno@clisp.org>
2202
2203         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
2204         * m4/gc-pbkdf2-sha1.m4: Remove file.
2205         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
2206         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
2207         (Makefile.am): Augment lib_SOURCES.
2208
2209 2011-05-23  Bruno Haible  <bruno@clisp.org>
2210
2211         fts: Move AC_LIBOBJ invocations to module description.
2212         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
2213         * modules/fts (configure.ac): ... to here.
2214
2215 2011-05-23  Bruno Haible  <bruno@clisp.org>
2216
2217         file-type: Move AC_LIBOBJ invocations to module description.
2218         * m4/file-type.m4: Remove file.
2219         * modules/file-type (Files): Remove it.
2220         (configure.ac): Remove gl_FILE_TYPE call.
2221         (Makefile.am): Augment lib_SOURCES.
2222
2223 2011-05-23  Bruno Haible  <bruno@clisp.org>
2224
2225         filenamecat*: Respect rules for use of AC_LIBOBJ.
2226         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
2227         Remove AC_LIBOBJ invocation.
2228         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
2229         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
2230
2231 2011-05-23  Bruno Haible  <bruno@clisp.org>
2232
2233         filemode: Move AC_LIBOBJ invocations to module description.
2234         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
2235         * modules/filemode (Makefile.am): Augment lib_SOURCES.
2236
2237 2011-05-23  Bruno Haible  <bruno@clisp.org>
2238
2239         openat-safer: Move AC_LIBOBJ invocations to module description.
2240         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
2241         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
2242
2243 2011-05-23  Bruno Haible  <bruno@clisp.org>
2244
2245         fcntl-safer: Move AC_LIBOBJ invocations to module description.
2246         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
2247         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
2248
2249 2011-05-23  Bruno Haible  <bruno@clisp.org>
2250
2251         exclude: Move AC_LIBOBJ invocations to module description.
2252         * m4/exclude.m4: Remove file.
2253         * modules/exclude (Files): Remove it.
2254         (configure.ac): Remove gl_EXCLUDE call.
2255         (Makefile.am): Augment lib_SOURCES.
2256
2257 2011-05-23  Bruno Haible  <bruno@clisp.org>
2258
2259         dirname*: Respect rules for use of AC_LIBOBJ.
2260         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
2261         invocations.
2262         * modules/dirname (Makefile.am): Augment lib_SOURCES.
2263         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
2264
2265 2011-05-23  Bruno Haible  <bruno@clisp.org>
2266
2267         dirent-safer: Move AC_LIBOBJ invocations to module description.
2268         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
2269         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
2270
2271 2011-05-23  Bruno Haible  <bruno@clisp.org>
2272
2273         crypto/des: Move AC_LIBOBJ invocations to module description.
2274         * m4/des.m4: Remove file.
2275         * modules/crypto/des (Files): Remove it.
2276         (configure.ac): Remove gl_DES call.
2277         (Makefile.am): Augment lib_SOURCES.
2278
2279 2011-05-23  Bruno Haible  <bruno@clisp.org>
2280
2281         cycle-check: Move AC_LIBOBJ invocations to module description.
2282         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
2283         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
2284
2285 2011-05-23  Bruno Haible  <bruno@clisp.org>
2286
2287         c-strtold: Move AC_LIBOBJ invocations to module description.
2288         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
2289         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
2290
2291 2011-05-23  Bruno Haible  <bruno@clisp.org>
2292
2293         c-strtod: Move AC_LIBOBJ invocations to module description.
2294         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
2295         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
2296
2297 2011-05-23  Bruno Haible  <bruno@clisp.org>
2298
2299         crc: Move AC_LIBOBJ invocations to module description.
2300         * m4/crc.m4: Remove file.
2301         * modules/crc (Files): Remove it.
2302         (configure.ac): Remove gl_CRC call.
2303         (Makefile.am): Augment lib_SOURCES.
2304
2305 2011-05-23  Bruno Haible  <bruno@clisp.org>
2306
2307         close-stream: Move AC_LIBOBJ invocations to module description.
2308         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
2309         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
2310
2311 2011-05-23  Bruno Haible  <bruno@clisp.org>
2312
2313         closeout: Move AC_LIBOBJ invocations to module description.
2314         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
2315         * modules/closeout (Makefile.am): Augment lib_SOURCES.
2316
2317 2011-05-23  Bruno Haible  <bruno@clisp.org>
2318
2319         closein: Move AC_LIBOBJ invocations to module description.
2320         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
2321         * modules/closein (Makefile.am): Augment lib_SOURCES.
2322
2323 2011-05-23  Bruno Haible  <bruno@clisp.org>
2324
2325         cloexec: Move AC_LIBOBJ invocations to module description.
2326         * m4/cloexec.m4: Remove file.
2327         * modules/cloexec (Files): Remove it.
2328         (configure.ac): Remove gl_CLOEXEC call.
2329         (Makefile.am): Augment lib_SOURCES.
2330
2331 2011-05-23  Bruno Haible  <bruno@clisp.org>
2332
2333         check-version: Move AC_LIBOBJ invocations to module description.
2334         * m4/check-version.m4: Remove file.
2335         * modules/check-version (Files): Remove it.
2336         (configure.ac): Remove gl_CHECK_VERSION call.
2337         (Makefile.am): Augment lib_SOURCES.
2338
2339 2011-05-23  Bruno Haible  <bruno@clisp.org>
2340
2341         chdir-safer: Move AC_LIBOBJ invocations to module description.
2342         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
2343         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
2344
2345 2011-05-23  Bruno Haible  <bruno@clisp.org>
2346
2347         canonicalize: Move AC_LIBOBJ invocations to module description.
2348         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
2349         AC_LIBOBJ invocation.
2350         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
2351
2352 2011-05-23  Bruno Haible  <bruno@clisp.org>
2353
2354         canon-host: Move AC_LIBOBJ invocations to module description.
2355         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
2356         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
2357         instead of gl_CANON_HOST.
2358         (Makefile.am): Augment lib_SOURCES.
2359
2360 2011-05-23  Bruno Haible  <bruno@clisp.org>
2361
2362         backupfile: Move AC_LIBOBJ invocations to module description.
2363         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
2364         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
2365
2366 2011-05-23  Bruno Haible  <bruno@clisp.org>
2367
2368         argmatch: Move AC_LIBOBJ invocations to module description.
2369         * m4/argmatch.m4: Remove file.
2370         * modules/argmatch (Files): Remove it.
2371         (configure.ac): Remove gl_ARGMATCH call.
2372         (Makefile.am): Augment lib_SOURCES.
2373
2374 2011-05-23  Bruno Haible  <bruno@clisp.org>
2375
2376         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
2377         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
2378         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
2379
2380 2011-05-23  Bruno Haible  <bruno@clisp.org>
2381
2382         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
2383         * m4/arcfour.m4: Remove file.
2384         * modules/crypto/arcfour (Files): Remove it.
2385         (configure.ac): Remove gl_ARCFOUR call.
2386         (Makefile.am): Augment lib_SOURCES.
2387
2388 2011-05-22  Bruno Haible  <bruno@clisp.org>
2389
2390         write: Move AC_LIBOBJ invocations to module description.
2391         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
2392         * modules/write (configure.ac): ... to here.
2393
2394 2011-05-22  Bruno Haible  <bruno@clisp.org>
2395
2396         wmemset: Move AC_LIBOBJ invocations to module description.
2397         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
2398         here...
2399         * modules/wmemset (configure.ac): ... to here.
2400
2401 2011-05-22  Bruno Haible  <bruno@clisp.org>
2402
2403         wmemmove: Move AC_LIBOBJ invocations to module description.
2404         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
2405         here...
2406         * modules/wmemmove (configure.ac): ... to here.
2407
2408 2011-05-22  Bruno Haible  <bruno@clisp.org>
2409
2410         wmemcpy: Move AC_LIBOBJ invocations to module description.
2411         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
2412         here...
2413         * modules/wmemcpy (configure.ac): ... to here.
2414
2415 2011-05-22  Bruno Haible  <bruno@clisp.org>
2416
2417         wmemcmp: Move AC_LIBOBJ invocations to module description.
2418         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
2419         here...
2420         * modules/wmemcmp (configure.ac): ... to here.
2421
2422 2011-05-22  Bruno Haible  <bruno@clisp.org>
2423
2424         wmemchr: Move AC_LIBOBJ invocations to module description.
2425         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
2426         here...
2427         * modules/wmemchr (configure.ac): ... to here.
2428
2429 2011-05-22  Bruno Haible  <bruno@clisp.org>
2430
2431         wcswidth: Move AC_LIBOBJ invocations to module description.
2432         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
2433         here...
2434         * modules/wcswidth (configure.ac): ... to here.
2435
2436 2011-05-22  Bruno Haible  <bruno@clisp.org>
2437
2438         wcwidth: Respect rules for use of AC_LIBOBJ.
2439         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
2440         invocation from here...
2441         * modules/wcwidth (configure.ac): ... to here.
2442         (Depends-on): Update conditions.
2443
2444 2011-05-22  Bruno Haible  <bruno@clisp.org>
2445
2446         wctype: Move AC_LIBOBJ invocations to module description.
2447         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
2448         invocation from here...
2449         * modules/wctype (configure.ac): ... to here.
2450         (Depends-on): Update conditions.
2451
2452 2011-05-22  Bruno Haible  <bruno@clisp.org>
2453
2454         wctrans: Move AC_LIBOBJ invocations to module description.
2455         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
2456         invocation from here...
2457         * modules/wctrans (configure.ac): ... to here.
2458
2459 2011-05-22  Bruno Haible  <bruno@clisp.org>
2460
2461         wctomb: Move AC_LIBOBJ invocations to module description.
2462         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
2463         invocations from here...
2464         * modules/wctomb (configure.ac): ... to here.
2465
2466 2011-05-22  Bruno Haible  <bruno@clisp.org>
2467
2468         wctob: Move AC_LIBOBJ invocations to module description.
2469         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
2470         gl_PREREQ_WCTOB invocations from here...
2471         * modules/wctob (configure.ac): ... to here.
2472         (Depends-on): Update conditions.
2473
2474 2011-05-22  Bruno Haible  <bruno@clisp.org>
2475
2476         wcsxfrm: Move AC_LIBOBJ invocations to module description.
2477         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
2478         here...
2479         * modules/wcsxfrm (configure.ac): ... to here.
2480
2481 2011-05-22  Bruno Haible  <bruno@clisp.org>
2482
2483         wcstok: Move AC_LIBOBJ invocations to module description.
2484         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
2485         * modules/wcstok (configure.ac): ... to here.
2486
2487 2011-05-22  Bruno Haible  <bruno@clisp.org>
2488
2489         wcsstr: Move AC_LIBOBJ invocations to module description.
2490         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
2491         * modules/wcsstr (configure.ac): ... to here.
2492
2493 2011-05-22  Bruno Haible  <bruno@clisp.org>
2494
2495         wcsspn: Move AC_LIBOBJ invocations to module description.
2496         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
2497         * modules/wcsspn (configure.ac): ... to here.
2498
2499 2011-05-22  Bruno Haible  <bruno@clisp.org>
2500
2501         wcsrtombs: Move AC_LIBOBJ invocations to module description.
2502         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
2503         gl_PREREQ_WCSRTOMBS invocations from here...
2504         * modules/wcsrtombs (configure.ac): ... to here.
2505
2506 2011-05-22  Bruno Haible  <bruno@clisp.org>
2507
2508         wcsrchr: Move AC_LIBOBJ invocations to module description.
2509         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
2510         here...
2511         * modules/wcsrchr (configure.ac): ... to here.
2512
2513 2011-05-22  Bruno Haible  <bruno@clisp.org>
2514
2515         wcspbrk: Move AC_LIBOBJ invocations to module description.
2516         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
2517         here...
2518         * modules/wcspbrk (configure.ac): ... to here.
2519
2520 2011-05-22  Bruno Haible  <bruno@clisp.org>
2521
2522         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
2523         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
2524         gl_PREREQ_WCSNRTOMBS invocations from here...
2525         * modules/wcsnrtombs (configure.ac): ... to here.
2526
2527 2011-05-22  Bruno Haible  <bruno@clisp.org>
2528
2529         wcsnlen: Move AC_LIBOBJ invocations to module description.
2530         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
2531         here...
2532         * modules/wcsnlen (configure.ac): ... to here.
2533
2534 2011-05-22  Bruno Haible  <bruno@clisp.org>
2535
2536         wcsncpy: Move AC_LIBOBJ invocations to module description.
2537         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
2538         here...
2539         * modules/wcsncpy (configure.ac): ... to here.
2540
2541 2011-05-22  Bruno Haible  <bruno@clisp.org>
2542
2543         wcsncmp: Move AC_LIBOBJ invocations to module description.
2544         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
2545         here...
2546         * modules/wcsncmp (configure.ac): ... to here.
2547
2548 2011-05-22  Bruno Haible  <bruno@clisp.org>
2549
2550         wcsncat: Move AC_LIBOBJ invocations to module description.
2551         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
2552         here...
2553         * modules/wcsncat (configure.ac): ... to here.
2554
2555 2011-05-22  Bruno Haible  <bruno@clisp.org>
2556
2557         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
2558         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
2559         from here...
2560         * modules/wcsncasecmp (configure.ac): ... to here.
2561
2562 2011-05-22  Bruno Haible  <bruno@clisp.org>
2563
2564         wcslen: Move AC_LIBOBJ invocations to module description.
2565         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
2566         * modules/wcslen (configure.ac): ... to here.
2567
2568 2011-05-22  Bruno Haible  <bruno@clisp.org>
2569
2570         wcsdup: Move AC_LIBOBJ invocations to module description.
2571         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
2572         * modules/wcsdup (configure.ac): ... to here.
2573
2574 2011-05-22  Bruno Haible  <bruno@clisp.org>
2575
2576         wcscspn: Move AC_LIBOBJ invocations to module description.
2577         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
2578         here...
2579         * modules/wcscspn (configure.ac): ... to here.
2580
2581 2011-05-22  Bruno Haible  <bruno@clisp.org>
2582
2583         wcscpy: Move AC_LIBOBJ invocations to module description.
2584         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
2585         * modules/wcscpy (configure.ac): ... to here.
2586
2587 2011-05-22  Bruno Haible  <bruno@clisp.org>
2588
2589         wcscoll: Move AC_LIBOBJ invocations to module description.
2590         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
2591         here...
2592         * modules/wcscoll (configure.ac): ... to here.
2593
2594 2011-05-22  Bruno Haible  <bruno@clisp.org>
2595
2596         wcscmp: Move AC_LIBOBJ invocations to module description.
2597         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
2598         * modules/wcscmp (configure.ac): ... to here.
2599
2600 2011-05-22  Bruno Haible  <bruno@clisp.org>
2601
2602         wcschr: Move AC_LIBOBJ invocations to module description.
2603         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
2604         * modules/wcschr (configure.ac): ... to here.
2605
2606 2011-05-22  Bruno Haible  <bruno@clisp.org>
2607
2608         wcscat: Move AC_LIBOBJ invocations to module description.
2609         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
2610         * modules/wcscat (configure.ac): ... to here.
2611
2612 2011-05-22  Bruno Haible  <bruno@clisp.org>
2613
2614         wcscasecmp: Move AC_LIBOBJ invocations to module description.
2615         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
2616         here...
2617         * modules/wcscasecmp (configure.ac): ... to here.
2618
2619 2011-05-22  Bruno Haible  <bruno@clisp.org>
2620
2621         wcrtomb: Move AC_LIBOBJ invocations to module description.
2622         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
2623         invocations from here...
2624         * modules/wcrtomb (configure.ac): ... to here.
2625
2626 2011-05-22  Bruno Haible  <bruno@clisp.org>
2627
2628         wcpncpy: Move AC_LIBOBJ invocations to module description.
2629         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
2630         here...
2631         * modules/wcpncpy (configure.ac): ... to here.
2632
2633 2011-05-22  Bruno Haible  <bruno@clisp.org>
2634
2635         wcpcpy: Move AC_LIBOBJ invocations to module description.
2636         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
2637         * modules/wcpcpy (configure.ac): ... to here.
2638
2639 2011-05-22  Bruno Haible  <bruno@clisp.org>
2640
2641         waitpid: Move AC_LIBOBJ invocations to module description.
2642         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
2643         invocation from here...
2644         * modules/waitpid (configure.ac): ... to here.
2645
2646 2011-05-22  Bruno Haible  <bruno@clisp.org>
2647
2648         utimensat: Move AC_LIBOBJ invocations to module description.
2649         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
2650         here...
2651         * modules/utimensat (configure.ac): ... to here.
2652
2653 2011-05-22  Bruno Haible  <bruno@clisp.org>
2654
2655         usleep: Move AC_LIBOBJ invocations to module description.
2656         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
2657         here...
2658         * modules/usleep (configure.ac): ... to here.
2659
2660 2011-05-22  Bruno Haible  <bruno@clisp.org>
2661
2662         unlockpt: Move AC_LIBOBJ invocations to module description.
2663         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
2664         gl_PREREQ_UNLOCKPT invocations from here...
2665         * modules/unlockpt (configure.ac): ... to here.
2666
2667 2011-05-22  Bruno Haible  <bruno@clisp.org>
2668
2669         unlink: Respect rules for use of AC_LIBOBJ.
2670         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
2671         * modules/unlink (configure.ac): ... to here.
2672
2673 2011-05-22  Bruno Haible  <bruno@clisp.org>
2674
2675         uname: Move AC_LIBOBJ invocations to module description.
2676         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
2677         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
2678         here...
2679         * modules/uname (configure.ac): ... to here.
2680
2681 2011-05-22  Bruno Haible  <bruno@clisp.org>
2682
2683         ttyname_r: Move AC_LIBOBJ invocations to module description.
2684         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
2685         gl_PREREQ_TTYNAME_R invocations from here...
2686         * modules/ttyname_r (configure.ac): ... to here.
2687
2688 2011-05-22  Bruno Haible  <bruno@clisp.org>
2689
2690         tsearch: Move AC_LIBOBJ invocations to module description.
2691         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
2692         invocations from here...
2693         * modules/tsearch (configure.ac): ... to here.
2694
2695 2011-05-22  Bruno Haible  <bruno@clisp.org>
2696
2697         towctrans: Move AC_LIBOBJ invocations to module description.
2698         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
2699         AC_LIBOBJ invocation from here...
2700         * modules/towctrans (configure.ac): ... to here.
2701
2702 2011-05-22  Bruno Haible  <bruno@clisp.org>
2703
2704         tmpfile: Move AC_LIBOBJ invocations to module description.
2705         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
2706         invocations from here...
2707         * modules/tmpfile (configure.ac): ... to here.
2708
2709 2011-05-22  Bruno Haible  <bruno@clisp.org>
2710
2711         times: Move AC_LIBOBJ invocations to module description.
2712         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
2713         * modules/times (configure.ac): ... to here.
2714
2715 2011-05-22  Bruno Haible  <bruno@clisp.org>
2716
2717         time_r: Move AC_LIBOBJ invocations to module description.
2718         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
2719         invocations from here...
2720         * modules/time_r (configure.ac): ... to here.
2721
2722 2011-05-22  Bruno Haible  <bruno@clisp.org>
2723
2724         timegm: Move AC_LIBOBJ invocations to module description.
2725         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
2726         invocations from here...
2727         * modules/timegm (configure.ac): ... to here.
2728
2729 2011-05-22  Bruno Haible  <bruno@clisp.org>
2730
2731         tcgetsid: Move AC_LIBOBJ invocations to module description.
2732         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
2733         and gl_PREREQ_TCGETSID invocations from here...
2734         * modules/tcgetsid (configure.ac): ... to here.
2735         (Depends-on): Update conditions.
2736
2737 2011-05-22  Bruno Haible  <bruno@clisp.org>
2738
2739         symlinkat: Move AC_LIBOBJ invocations to module description.
2740         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
2741         here...
2742         * modules/symlinkat (configure.ac): ... to here.
2743
2744 2011-05-22  Bruno Haible  <bruno@clisp.org>
2745
2746         symlink: Move AC_LIBOBJ invocations to module description.
2747         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
2748         here...
2749         * modules/symlink (configure.ac): ... to here.
2750
2751 2011-05-22  Bruno Haible  <bruno@clisp.org>
2752
2753         strverscmp: Move AC_LIBOBJ invocations to module description.
2754         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
2755         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
2756         from here...
2757         * modules/strverscmp (configure.ac): ... to here.
2758
2759 2011-05-22  Bruno Haible  <bruno@clisp.org>
2760
2761         strtok_r: Move AC_LIBOBJ invocations to module description.
2762         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
2763         and gl_PREREQ_STRTOK_R invocations from here...
2764         * modules/strtok_r (configure.ac): ... to here.
2765         (Depends-on): Update conditions.
2766
2767 2011-05-22  Bruno Haible  <bruno@clisp.org>
2768
2769         strtoumax: Move AC_LIBOBJ invocations to module description.
2770         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
2771         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
2772         from here...
2773         * modules/strtoumax (configure.ac): ... to here.
2774
2775 2011-05-22  Bruno Haible  <bruno@clisp.org>
2776
2777         strtoimax: Move AC_LIBOBJ invocations to module description.
2778         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
2779         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
2780         from here...
2781         * modules/strtoimax (configure.ac): ... to here.
2782
2783 2011-05-22  Bruno Haible  <bruno@clisp.org>
2784
2785         strtoull: Move AC_LIBOBJ invocations to module description.
2786         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
2787         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
2788         from here...
2789         * modules/strtoull (configure.ac): ... to here.
2790
2791 2011-05-22  Bruno Haible  <bruno@clisp.org>
2792
2793         strtoll: Move AC_LIBOBJ invocations to module description.
2794         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
2795         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
2796         here...
2797         * modules/strtoll (configure.ac): ... to here.
2798
2799 2011-05-22  Bruno Haible  <bruno@clisp.org>
2800
2801         strtoul: Move AC_LIBOBJ invocations to module description.
2802         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
2803         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
2804         * modules/strtoul (configure.ac): ... to here.
2805
2806 2011-05-22  Bruno Haible  <bruno@clisp.org>
2807
2808         strtol: Move AC_LIBOBJ invocations to module description.
2809         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
2810         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
2811         * modules/strtol (configure.ac): ... to here.
2812
2813 2011-05-22  Bruno Haible  <bruno@clisp.org>
2814
2815         strtod: Move AC_LIBOBJ invocations to module description.
2816         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
2817         invocations from here...
2818         * modules/strtod (configure.ac): ... to here.
2819
2820 2011-05-22  Bruno Haible  <bruno@clisp.org>
2821
2822         strstr*: Move AC_LIBOBJ invocations to module description.
2823         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
2824         invocations from here...
2825         * modules/strstr-simple (configure.ac): ... to here.
2826         * modules/strstr (configure.ac): ... and here.
2827
2828 2011-05-22  Bruno Haible  <bruno@clisp.org>
2829
2830         strsignal: Move AC_LIBOBJ invocations to module description.
2831         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
2832         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
2833         * modules/strsignal (configure.ac): ... to here.
2834         (Depends-on): Update conditions.
2835
2836 2011-05-22  Bruno Haible  <bruno@clisp.org>
2837
2838         strsep: Move AC_LIBOBJ invocations to module description.
2839         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
2840         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
2841         here...
2842         * modules/strsep (configure.ac): ... to here.
2843
2844 2011-05-22  Bruno Haible  <bruno@clisp.org>
2845
2846         strptime: Move AC_LIBOBJ invocations to module description.
2847         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
2848         gl_PREREQ_STRPTIME invocations from here...
2849         * modules/strptime (configure.ac): ... to here.
2850
2851 2011-05-22  Bruno Haible  <bruno@clisp.org>
2852
2853         strpbrk: Move AC_LIBOBJ invocations to module description.
2854         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
2855         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
2856         here...
2857         * modules/strpbrk (configure.ac): ... to here.
2858
2859 2011-05-22  Bruno Haible  <bruno@clisp.org>
2860
2861         strnlen: Move AC_LIBOBJ invocations to module description.
2862         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
2863         invocations from here...
2864         * modules/strnlen (configure.ac): ... to here.
2865
2866 2011-05-22  Bruno Haible  <bruno@clisp.org>
2867
2868         strndup: Move AC_LIBOBJ invocations to module description.
2869         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
2870         invocations from here...
2871         * modules/strndup (configure.ac): ... to here.
2872         (Depends-on): Update conditions.
2873
2874 2011-05-22  Bruno Haible  <bruno@clisp.org>
2875
2876         strncat: Move AC_LIBOBJ invocations to module description.
2877         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
2878         invocations from here...
2879         * modules/strncat (configure.ac): ... to here.
2880
2881 2011-05-22  Bruno Haible  <bruno@clisp.org>
2882
2883         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
2884         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
2885         invocations from here...
2886         * modules/strdup (configure.ac): ... to here.
2887         * modules/strdup-posix (configure.ac): ... and here.
2888
2889 2011-05-22  Bruno Haible  <bruno@clisp.org>
2890
2891         strcspn: Move AC_LIBOBJ invocations to module description.
2892         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
2893         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
2894         here...
2895         * modules/strcspn (configure.ac): ... to here.
2896
2897 2011-05-22  Bruno Haible  <bruno@clisp.org>
2898
2899         strchrnul: Move AC_LIBOBJ invocations to module description.
2900         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
2901         gl_PREREQ_STRCHRNUL invocations from here...
2902         * modules/strchrnul (configure.ac): ... to here.
2903
2904 2011-05-22  Bruno Haible  <bruno@clisp.org>
2905
2906         strcasestr*: Move AC_LIBOBJ invocations to module description.
2907         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
2908         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
2909         * modules/strcasestr-simple (configure.ac): ... to here.
2910         * modules/strcasestr (configure.ac): ... and here.
2911
2912 2011-05-22  Bruno Haible  <bruno@clisp.org>
2913
2914         strcase: Move AC_LIBOBJ invocations to module description.
2915         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
2916         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
2917         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
2918         gl_PREREQ_STRNCASECMP invocations from here...
2919         * modules/strcase (configure.ac): ... to here.
2920
2921 2011-05-22  Bruno Haible  <bruno@clisp.org>
2922
2923         stpncpy: Move AC_LIBOBJ invocations to module description.
2924         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
2925         here...
2926         * modules/stpncpy (configure.ac): ... to here.
2927
2928 2011-05-22  Bruno Haible  <bruno@clisp.org>
2929
2930         stpcpy: Move AC_LIBOBJ invocations to module description.
2931         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
2932         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
2933         here...
2934         * modules/stpcpy (configure.ac): ... to here.
2935
2936 2011-05-21  Bruno Haible  <bruno@clisp.org>
2937
2938         stat: Move AC_LIBOBJ invocations to module description.
2939         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
2940         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
2941         here...
2942         * modules/stat (configure.ac): ... to here.
2943
2944 2011-05-21  Bruno Haible  <bruno@clisp.org>
2945
2946         sleep: Move AC_LIBOBJ invocations to module description.
2947         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
2948         * modules/sleep (configure.ac): ... to here.
2949
2950 2011-05-21  Bruno Haible  <bruno@clisp.org>
2951
2952         signbit: Move AC_LIBOBJ invocations to module description.
2953         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
2954         * modules/signbit (configure.ac): ... to here.
2955
2956 2011-05-21  Bruno Haible  <bruno@clisp.org>
2957
2958         sigprocmask: Move AC_LIBOBJ invocations to module description.
2959         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
2960         gl_PREREQ_SIGPROMASK invocations from here...
2961         * modules/sigprocmask (configure.ac): ... to here.
2962
2963 2011-05-21  Bruno Haible  <bruno@clisp.org>
2964
2965         sigaction: Move AC_LIBOBJ invocations to module description.
2966         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
2967         gl_PREREQ_SIGACTION invocations from here...
2968         * modules/sigaction (configure.ac): ... to here.
2969
2970 2011-05-21  Bruno Haible  <bruno@clisp.org>
2971
2972         sig2str: Move AC_LIBOBJ invocations to module description.
2973         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
2974         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
2975         here...
2976         * modules/sig2str (configure.ac): ... to here.
2977
2978 2011-05-21  Bruno Haible  <bruno@clisp.org>
2979
2980         setlocale: Move AC_LIBOBJ invocations to module description.
2981         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
2982         gl_PREREQ_SETLOCALE invocations from here...
2983         * modules/setlocale (configure.ac): ... to here.
2984
2985 2011-05-21  Bruno Haible  <bruno@clisp.org>
2986
2987         unsetenv: Move AC_LIBOBJ invocations to module description.
2988         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
2989         and gl_PREREQ_UNSETENV invocations from here...
2990         * modules/unsetenv (configure.ac): ... to here.
2991         (Depends-on): Update.
2992
2993 2011-05-21  Bruno Haible  <bruno@clisp.org>
2994
2995         setenv: Move AC_LIBOBJ invocations to module description.
2996         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
2997         here...
2998         * modules/setenv (configure.ac): ... to here.
2999
3000 2011-05-21  Bruno Haible  <bruno@clisp.org>
3001
3002         selinux-h: Move AC_LIBOBJ invocations to module description.
3003         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
3004         AC_LIBOBJ invocation from here...
3005         * modules/selinux-h (configure.ac): ... to here.
3006
3007 2011-05-21  Bruno Haible  <bruno@clisp.org>
3008
3009         select: Respect rules for use of AC_LIBOBJ.
3010         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
3011         here...
3012         * modules/select (configure.ac): ... to here.
3013
3014 2011-05-21  Bruno Haible  <bruno@clisp.org>
3015
3016         scandir: Move AC_LIBOBJ invocations to module description.
3017         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
3018         invocations from here...
3019         * modules/scandir (configure.ac): ... to here.
3020
3021 2011-05-21  Bruno Haible  <bruno@clisp.org>
3022
3023         rpmatch: Move AC_LIBOBJ invocations to module description.
3024         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
3025         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
3026         here...
3027         * modules/rpmatch (configure.ac): ... to here.
3028
3029 2011-05-21  Bruno Haible  <bruno@clisp.org>
3030
3031         rmdir: Respect rules for use of AC_LIBOBJ.
3032         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
3033         * modules/rmdir (configure.ac): ... to here.
3034
3035 2011-05-21  Bruno Haible  <bruno@clisp.org>
3036
3037         renameat: Move AC_LIBOBJ invocations to module description.
3038         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
3039         here...
3040         * modules/renameat (configure.ac): ... to here.
3041
3042 2011-05-21  Bruno Haible  <bruno@clisp.org>
3043
3044         rename: Respect rules for use of AC_LIBOBJ.
3045         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
3046         here...
3047         * modules/rename (configure.ac): ... to here.
3048
3049 2011-05-21  Bruno Haible  <bruno@clisp.org>
3050
3051         remove: Move AC_LIBOBJ invocations to module description.
3052         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
3053         here...
3054         * modules/remove (configure.ac): ... to here.
3055
3056 2011-05-21  Bruno Haible  <bruno@clisp.org>
3057
3058         relocatable-lib: Move AC_LIBOBJ invocations to module description.
3059         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
3060         macro.
3061         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
3062         * modules/relocatable-lib (configure.ac): ... to here.
3063         * modules/relocatable-prog-wrapper (configure.ac): Invoke
3064         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
3065
3066 2011-05-21  Bruno Haible  <bruno@clisp.org>
3067
3068         relocatable-prog: Move AC_LIBOBJ invocations to module description.
3069         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
3070         here...
3071         * modules/relocatable-prog (configure.ac): ... to here.
3072
3073 2011-05-21  Bruno Haible  <bruno@clisp.org>
3074
3075         regex: Move AC_LIBOBJ invocations to module description.
3076         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
3077         invocations from here...
3078         * modules/regex (configure.ac): ... to here.
3079
3080 2011-05-21  Bruno Haible  <bruno@clisp.org>
3081
3082         realloc-*: Move AC_LIBOBJ invocations to module description.
3083         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
3084         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
3085         AC_LIBOBJ invocations from here...
3086         * modules/realloc-gnu (configure.ac): ... to here.
3087         * modules/realloc-posix (configure.ac): ... and here.
3088
3089 2011-05-21  Bruno Haible  <bruno@clisp.org>
3090
3091         readutmp: Move AC_LIBOBJ invocations to module description.
3092         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
3093         * modules/readutmp (configure.ac): ... to here.
3094
3095 2011-05-21  Bruno Haible  <bruno@clisp.org>
3096
3097         readlinkat: Move AC_LIBOBJ invocations to module description.
3098         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
3099         here...
3100         * modules/readlinkat (configure.ac): ... to here.
3101
3102 2011-05-21  Bruno Haible  <bruno@clisp.org>
3103
3104         readlink: Move AC_LIBOBJ invocations to module description.
3105         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
3106         gl_PREREQ_READLINK invocations from here...
3107         * modules/readlink (configure.ac): ... to here.
3108
3109 2011-05-21  Bruno Haible  <bruno@clisp.org>
3110
3111         readline: Move AC_LIBOBJ invocations to module description.
3112         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
3113         gl_PREREQ_READLINE invocations from here...
3114         * modules/readline (configure.ac): ... to here.
3115
3116 2011-05-21  Bruno Haible  <bruno@clisp.org>
3117
3118         read: Move AC_LIBOBJ invocations to module description.
3119         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
3120         * modules/read (configure.ac): ... to here.
3121
3122 2011-05-21  Bruno Haible  <bruno@clisp.org>
3123
3124         rawmemchr: Move AC_LIBOBJ invocations to module description.
3125         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
3126         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
3127         from here...
3128         * modules/rawmemchr (configure.ac): ... to here.
3129
3130 2011-05-21  Bruno Haible  <bruno@clisp.org>
3131
3132         random_r: Move AC_LIBOBJ invocations to module description.
3133         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
3134         gl_PREREQ_RANDOM_R invocations from here...
3135         * modules/random_r (configure.ac): ... to here.
3136
3137 2011-05-21  Bruno Haible  <bruno@clisp.org>
3138
3139         pwrite: Move AC_LIBOBJ invocations to module description.
3140         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
3141         * modules/pwrite (configure.ac): ... to here.
3142
3143 2011-05-21  Bruno Haible  <bruno@clisp.org>
3144
3145         putenv: Move AC_LIBOBJ invocations to module description.
3146         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
3147         * modules/putenv (configure.ac): ... to here.
3148
3149 2011-05-21  Bruno Haible  <bruno@clisp.org>
3150
3151         login_tty: Move AC_LIBOBJ invocations to module description.
3152         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
3153         * modules/login_tty (configure.ac): ... to here.
3154
3155 2011-05-21  Bruno Haible  <bruno@clisp.org>
3156
3157         openpty: Move AC_LIBOBJ invocations to module description.
3158         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
3159         * modules/openpty (configure.ac): ... to here.
3160
3161 2011-05-21  Bruno Haible  <bruno@clisp.org>
3162
3163         forkpty: Move AC_LIBOBJ invocations to module description.
3164         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
3165         * modules/forkpty (configure.ac): ... to here.
3166
3167 2011-05-21  Bruno Haible  <bruno@clisp.org>
3168
3169         ptsname: Move AC_LIBOBJ invocations to module description.
3170         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
3171         invocations from here...
3172         * modules/ptsname (configure.ac): ... to here.
3173
3174 2011-05-21  Bruno Haible  <bruno@clisp.org>
3175
3176         pread: Move AC_LIBOBJ invocations to module description.
3177         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
3178         * modules/pread (configure.ac): ... to here.
3179
3180 2011-05-21  Bruno Haible  <bruno@clisp.org>
3181
3182         posix_spawn*: Move AC_LIBOBJ invocations to module description.
3183         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
3184         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
3185         * modules/posix_spawn (configure.ac): ... to here.
3186         * modules/posix_spawnp (configure.ac): ... and here.
3187
3188 2011-05-21  Bruno Haible  <bruno@clisp.org>
3189
3190         popen: Move AC_LIBOBJ invocations to module description.
3191         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
3192         invocations from here...
3193         * modules/popen (configure.ac): ... to here.
3194
3195 2011-05-21  Bruno Haible  <bruno@clisp.org>
3196
3197         poll: Move AC_LIBOBJ invocations to module description.
3198         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
3199         invocations from here...
3200         * modules/poll (configure.ac): ... to here.
3201
3202 2011-05-21  Bruno Haible  <bruno@clisp.org>
3203
3204         pipe-posix: Move AC_LIBOBJ invocations to module description.
3205         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
3206         * modules/pipe-posix (configure.ac): ... to here.
3207
3208 2011-05-21  Bruno Haible  <bruno@clisp.org>
3209
3210         openat: Respect rules for use of AC_LIBOBJ.
3211         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
3212         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
3213         * modules/openat (configure.ac): ... to here.
3214
3215 2011-05-21  Bruno Haible  <bruno@clisp.org>
3216
3217         obstack-printf*: Move AC_LIBOBJ invocations to module description.
3218         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
3219         invocation from here...
3220         * modules/obstack-printf (configure.ac): ... to here.
3221         * modules/obstack-printf-posix (configure.ac): ... and here.
3222
3223 2011-05-21  Bruno Haible  <bruno@clisp.org>
3224
3225         nl_langinfo: Move AC_LIBOBJ invocations to module description.
3226         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
3227         from here...
3228         * modules/nl_langinfo (configure.ac): ... to here.
3229
3230 2011-05-21  Bruno Haible  <bruno@clisp.org>
3231
3232         nanosleep: Move AC_LIBOBJ invocations to module description.
3233         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
3234         gl_PREREQ_NANOSLEEP invocations from here...
3235         * modules/nanosleep (configure.ac): ... to here.
3236
3237 2011-05-21  Bruno Haible  <bruno@clisp.org>
3238
3239         mountlist: Move AC_LIBOBJ invocations to module description.
3240         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
3241         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
3242         * modules/mountlist (configure.ac): ... to here.
3243
3244 2011-05-21  Bruno Haible  <bruno@clisp.org>
3245
3246         mktime: Respect rules for use of AC_LIBOBJ.
3247         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
3248         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
3249         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
3250         (gl_FUNC_MKTIME_INTERNAL): ... and here...
3251         * modules/mktime (configure.ac): ... to here.
3252         * modules/mktime-internal (configure.ac): ... and here.
3253         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
3254
3255 2011-05-21  Bruno Haible  <bruno@clisp.org>
3256
3257         mkstemps: Move AC_LIBOBJ invocations to module description.
3258         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
3259         here...
3260         * modules/mkstemps (configure.ac): ... to here.
3261
3262 2011-05-21  Bruno Haible  <bruno@clisp.org>
3263
3264         mkstemp: Move AC_LIBOBJ invocations to module description.
3265         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
3266         gl_PREREQ_MKSTEMP invocations from here...
3267         * modules/mkstemp (configure.ac): ... to here.
3268
3269 2011-05-21  Bruno Haible  <bruno@clisp.org>
3270
3271         mkostemps: Move AC_LIBOBJ invocations to module description.
3272         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
3273         here...
3274         * modules/mkostemps (configure.ac): ... to here.
3275
3276 2011-05-21  Bruno Haible  <bruno@clisp.org>
3277
3278         mkostemp: Move AC_LIBOBJ invocations to module description.
3279         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
3280         gl_PREREQ_MKOSTEMP invocations from here...
3281         * modules/mkostemp (configure.ac): ... to here.
3282
3283 2011-05-21  Bruno Haible  <bruno@clisp.org>
3284
3285         mknod: Move AC_LIBOBJ invocations to module description.
3286         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
3287         * modules/mknod (configure.ac): ... to here.
3288
3289 2011-05-21  Bruno Haible  <bruno@clisp.org>
3290
3291         mkfifoat: Move AC_LIBOBJ invocations to module description.
3292         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
3293         here...
3294         * modules/mkfifoat (configure.ac): ... to here.
3295
3296 2011-05-21  Bruno Haible  <bruno@clisp.org>
3297
3298         mkfifo: Respect rules for use of AC_LIBOBJ.
3299         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
3300         here...
3301         * modules/mkfifo (configure.ac): ... to here.
3302
3303 2011-05-21  Bruno Haible  <bruno@clisp.org>
3304
3305         mkdtemp: Move AC_LIBOBJ invocations to module description.
3306         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
3307         invocations from here...
3308         * modules/mkdtemp (configure.ac): ... to here.
3309
3310 2011-05-21  Bruno Haible  <bruno@clisp.org>
3311
3312         mkdir: Move AC_LIBOBJ invocations to module description.
3313         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
3314         * modules/mkdir (configure.ac): ... to here.
3315
3316 2011-05-21  Bruno Haible  <bruno@clisp.org>
3317
3318         memset: Move AC_LIBOBJ invocations to module description.
3319         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
3320         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
3321         here...
3322         * modules/memset (configure.ac): ... to here.
3323
3324 2011-05-21  Bruno Haible  <bruno@clisp.org>
3325
3326         memrchr: Move AC_LIBOBJ invocations to module description.
3327         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
3328         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
3329         here...
3330         * modules/memrchr (configure.ac): ... to here.
3331
3332 2011-05-21  Bruno Haible  <bruno@clisp.org>
3333
3334         mempcpy: Move AC_LIBOBJ invocations to module description.
3335         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
3336         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
3337         here...
3338         * modules/mempcpy (configure.ac): ... to here.
3339
3340 2011-05-21  Bruno Haible  <bruno@clisp.org>
3341
3342         memmove: Move AC_LIBOBJ invocations to module description.
3343         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
3344         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
3345         here...
3346         * modules/memmove (configure.ac): ... to here.
3347
3348 2011-05-21  Bruno Haible  <bruno@clisp.org>
3349
3350         memmem*: Move AC_LIBOBJ invocations to module description.
3351         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
3352         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
3353         here...
3354         (gl_FUNC_MEMMEM): ... and here...
3355         * modules/memmem-simple (configure.ac): ... to here.
3356         * modules/memmem (configure.ac): ... and here.
3357
3358 2011-05-21  Bruno Haible  <bruno@clisp.org>
3359
3360         memcpy: Move AC_LIBOBJ invocations to module description.
3361         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
3362         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
3363         here...
3364         * modules/memcpy (configure.ac): ... to here.
3365
3366 2011-05-21  Bruno Haible  <bruno@clisp.org>
3367
3368         memcmp: Simplify autoconf macro.
3369         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
3370         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
3371         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
3372
3373 2011-05-21  Bruno Haible  <bruno@clisp.org>
3374
3375         memcmp: Move AC_LIBOBJ invocations to module description.
3376         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
3377         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
3378         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
3379         * modules/memcmp (configure.ac): ... to here.
3380         (Depends-on): Update conditions.
3381
3382 2011-05-21  Bruno Haible  <bruno@clisp.org>
3383
3384         memchr: Respect rules for use of AC_LIBOBJ.
3385         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
3386         invocations from here...
3387         * modules/memchr (configure.ac): ... to here.
3388
3389 2011-05-21  Bruno Haible  <bruno@clisp.org>
3390
3391         mbtowc: Move AC_LIBOBJ invocations to module description.
3392         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
3393         invocations from here...
3394         * modules/mbtowc (configure.ac): ... to here.
3395
3396 2011-05-21  Bruno Haible  <bruno@clisp.org>
3397
3398         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
3399         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
3400         gl_PREREQ_MBSRTOWCS invocations from here...
3401         * modules/mbsrtowcs (configure.ac): ... to here.
3402
3403 2011-05-21  Bruno Haible  <bruno@clisp.org>
3404
3405         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
3406         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
3407         gl_PREREQ_MBSNRTOWCS invocations from here...
3408         * modules/mbsnrtowcs (configure.ac): ... to here.
3409
3410 2011-05-21  Bruno Haible  <bruno@clisp.org>
3411
3412         mbsinit: Move AC_LIBOBJ invocations to module description.
3413         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
3414         invocations from here...
3415         * modules/mbsinit (configure.ac): ... to here.
3416
3417 2011-05-21  Bruno Haible  <bruno@clisp.org>
3418
3419         mbrlen: Move AC_LIBOBJ invocations to module description.
3420         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
3421         invocations from here...
3422         * modules/mbrlen (configure.ac): ... to here.
3423
3424 2011-05-21  Bruno Haible  <bruno@clisp.org>
3425
3426         mbrtowc: Respect rules for use of AC_LIBOBJ.
3427         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
3428         invocations from here...
3429         * modules/mbrtowc (configure.ac): ... to here.
3430
3431 2011-05-21  Bruno Haible  <bruno@clisp.org>
3432
3433         malloc-*: Move AC_LIBOBJ invocations to module description.
3434         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
3435         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
3436         AC_LIBOBJ invocations from here...
3437         * modules/malloc-gnu (configure.ac): ... to here.
3438         * modules/malloc-posix (configure.ac): ... and here.
3439
3440 2011-05-21  Bruno Haible  <bruno@clisp.org>
3441
3442         lstat, openat: Respect rules for use of AC_LIBOBJ.
3443         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
3444         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
3445         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
3446         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
3447         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
3448         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
3449         here.
3450         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
3451
3452 2011-05-21  Bruno Haible  <bruno@clisp.org>
3453
3454         lseek: Move AC_LIBOBJ invocations to module description.
3455         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
3456         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
3457         * modules/lseek (configure.ac): ... to here.
3458
3459 2011-05-21  Bruno Haible  <bruno@clisp.org>
3460
3461         linkat: Move AC_LIBOBJ invocations to module description.
3462         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
3463         here...
3464         * modules/linkat (configure.ac): ... to here.
3465
3466 2011-05-21  Bruno Haible  <bruno@clisp.org>
3467
3468         link: Respect rules for use of AC_LIBOBJ.
3469         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
3470         * modules/link (configure.ac): ... to here.
3471
3472 2011-05-21  Bruno Haible  <bruno@clisp.org>
3473
3474         lchown: Move AC_LIBOBJ invocations to module description.
3475         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
3476         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
3477         * modules/lchown (configure.ac): ... to here.
3478
3479 2011-05-21  Bruno Haible  <bruno@clisp.org>
3480
3481         iswctype: Move AC_LIBOBJ invocations to module description.
3482         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
3483         here...
3484         * modules/iswctype (configure.ac): ... to here.
3485
3486 2011-05-21  Bruno Haible  <bruno@clisp.org>
3487
3488         iswblank: Move AC_LIBOBJ invocations to module description.
3489         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
3490         here...
3491         * modules/iswblank (configure.ac): ... to here.
3492
3493 2011-05-21  Bruno Haible  <bruno@clisp.org>
3494
3495         atanl: Move AC_LIBOBJ invocations to module description.
3496         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
3497         * modules/atanl (configure.ac): ... to here.
3498
3499 2011-05-21  Bruno Haible  <bruno@clisp.org>
3500
3501         acosl: Move AC_LIBOBJ invocations to module description.
3502         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
3503         * modules/acosl (configure.ac): ... to here.
3504
3505 2011-05-21  Bruno Haible  <bruno@clisp.org>
3506
3507         asinl: Respect rules for use of AC_LIBOBJ.
3508         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
3509         * modules/asinl (configure.ac): ... to here.
3510
3511 2011-05-21  Bruno Haible  <bruno@clisp.org>
3512
3513         tanl: Move AC_LIBOBJ invocations to module description.
3514         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
3515         * modules/tanl (configure.ac): ... to here.
3516
3517 2011-05-21  Bruno Haible  <bruno@clisp.org>
3518
3519         cosl: Move AC_LIBOBJ invocations to module description.
3520         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
3521         * modules/cosl (configure.ac): ... to here.
3522
3523 2011-05-21  Bruno Haible  <bruno@clisp.org>
3524
3525         sinl: Move AC_LIBOBJ invocations to module description.
3526         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
3527         * modules/sinl (configure.ac): ... to here.
3528
3529 2011-05-21  Bruno Haible  <bruno@clisp.org>
3530
3531         logl: Move AC_LIBOBJ invocations to module description.
3532         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
3533         * modules/logl (configure.ac): ... to here.
3534
3535 2011-05-21  Bruno Haible  <bruno@clisp.org>
3536
3537         expl: Move AC_LIBOBJ invocations to module description.
3538         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
3539         * modules/expl (configure.ac): ... to here.
3540
3541 2011-05-21  Bruno Haible  <bruno@clisp.org>
3542
3543         roundl: Move AC_LIBOBJ invocations to module description.
3544         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
3545         * modules/roundl (configure.ac): ... to here.
3546
3547 2011-05-21  Bruno Haible  <bruno@clisp.org>
3548
3549         round: Move AC_LIBOBJ invocations to module description.
3550         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
3551         * modules/round (configure.ac): ... to here.
3552
3553 2011-05-21  Bruno Haible  <bruno@clisp.org>
3554
3555         roundf: Move AC_LIBOBJ invocations to module description.
3556         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
3557         * modules/roundf (configure.ac): ... to here.
3558
3559 2011-05-21  Bruno Haible  <bruno@clisp.org>
3560
3561         truncl: Move AC_LIBOBJ invocations to module description.
3562         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
3563         * modules/truncl (configure.ac): ... to here.
3564
3565 2011-05-21  Bruno Haible  <bruno@clisp.org>
3566
3567         trunc: Move AC_LIBOBJ invocations to module description.
3568         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
3569         * modules/trunc (configure.ac): ... to here.
3570
3571 2011-05-21  Bruno Haible  <bruno@clisp.org>
3572
3573         truncf: Move AC_LIBOBJ invocations to module description.
3574         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
3575         * modules/truncf (configure.ac): ... to here.
3576
3577 2011-05-21  Bruno Haible  <bruno@clisp.org>
3578
3579         ceill: Move AC_LIBOBJ invocations to module description.
3580         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
3581         * modules/ceill (configure.ac): ... to here.
3582
3583 2011-05-21  Bruno Haible  <bruno@clisp.org>
3584
3585         ceil: Move AC_LIBOBJ invocations to module description.
3586         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
3587         * modules/ceil (configure.ac): ... to here.
3588
3589 2011-05-21  Bruno Haible  <bruno@clisp.org>
3590
3591         ceilf: Move AC_LIBOBJ invocations to module description.
3592         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
3593         * modules/ceilf (configure.ac): ... to here.
3594
3595 2011-05-21  Bruno Haible  <bruno@clisp.org>
3596
3597         floorl: Respect rules for use of AC_LIBOBJ.
3598         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
3599         * modules/floorl (configure.ac): ... to here.
3600
3601 2011-05-21  Bruno Haible  <bruno@clisp.org>
3602
3603         floor: Respect rules for use of AC_LIBOBJ.
3604         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
3605         * modules/floor (configure.ac): ... to here.
3606
3607 2011-05-21  Bruno Haible  <bruno@clisp.org>
3608
3609         floorf: Move AC_LIBOBJ invocations to module description.
3610         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
3611         * modules/floorf (configure.ac): ... to here.
3612
3613 2011-05-20  Bruno Haible  <bruno@clisp.org>
3614
3615         sqrtl: Respect rules for use of AC_LIBOBJ.
3616         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
3617         * modules/sqrtl (configure.ac): ... to here.
3618
3619 2011-05-20  Bruno Haible  <bruno@clisp.org>
3620
3621         ldexpl: Respect rules for use of AC_LIBOBJ.
3622         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
3623         * modules/ldexpl (configure.ac): ... to here.
3624
3625 2011-05-20  Bruno Haible  <bruno@clisp.org>
3626
3627         frexpl*: Respect rules for use of AC_LIBOBJ.
3628         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
3629         invocation from here...
3630         * modules/frexpl (configure.ac): ... to here.
3631         * modules/frexpl-nolibm (configure.ac): ... and here.
3632
3633 2011-05-20  Bruno Haible  <bruno@clisp.org>
3634
3635         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
3636         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
3637         invocation from here...
3638         * modules/frexp (configure.ac): ... to here.
3639         * modules/frexp-nolibm (configure.ac): ... and here.
3640
3641 2011-05-20  Bruno Haible  <bruno@clisp.org>
3642
3643         isnan: Respect rules for use of AC_LIBOBJ.
3644         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
3645         invocations here.
3646         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
3647         REPLACE_ISNAN.
3648         * modules/isnand (configure.ac): Likewise.
3649         * modules/isnanl (configure.ac): Likewise.
3650
3651 2011-05-20  Bruno Haible  <bruno@clisp.org>
3652
3653         isnanl*: Respect rules for use of AC_LIBOBJ.
3654         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
3655         invocation from here...
3656         * modules/isnanl (configure.ac): ... to here.
3657         * modules/isnanl-nolibm (configure.ac): ... and here.
3658
3659 2011-05-20  Bruno Haible  <bruno@clisp.org>
3660
3661         isnand*: Move AC_LIBOBJ invocations to module description.
3662         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
3663         invocation from here...
3664         * modules/isnand (configure.ac): ... to here.
3665         * modules/isnand-nolibm (configure.ac): ... and here.
3666
3667 2011-05-20  Bruno Haible  <bruno@clisp.org>
3668
3669         isnanf*: Move AC_LIBOBJ invocations to module description.
3670         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
3671         invocation from here...
3672         * modules/isnanf (configure.ac): ... to here.
3673         * modules/isnanf-nolibm (configure.ac): ... and here.
3674
3675 2011-05-20  Bruno Haible  <bruno@clisp.org>
3676
3677         isnan*: Separate the AC_LIBOBJ invocations.
3678         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
3679         AC_LIBOBJ invocation.
3680         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
3681         here.
3682         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
3683         AC_LIBOBJ invocation.
3684         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
3685         here.
3686         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
3687         AC_LIBOBJ invocation.
3688         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
3689         here.
3690         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
3691
3692 2011-05-08  Bruno Haible  <bruno@clisp.org>
3693
3694         isinf: Move AC_LIBOBJ invocations to module description.
3695         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
3696         * modules/isinf (configure.ac): ... to here.
3697
3698 2011-05-08  Bruno Haible  <bruno@clisp.org>
3699
3700         isfinite: Move AC_LIBOBJ invocations to module description.
3701         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
3702         * modules/isfinite (configure.ac): ... to here.
3703
3704 2011-05-08  Bruno Haible  <bruno@clisp.org>
3705
3706         isblank: Move AC_LIBOBJ invocations to module description.
3707         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
3708         here...
3709         * modules/isblank (configure.ac): ... to here.
3710
3711 2011-05-08  Bruno Haible  <bruno@clisp.org>
3712
3713         isapipe: Move AC_LIBOBJ invocations to module description.
3714         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
3715         gl_PREREQ_ISAPIPE invocations from here...
3716         * modules/isapipe (configure.ac): ... to here.
3717         (Depends-on): Update condition.
3718
3719 2011-05-08  Bruno Haible  <bruno@clisp.org>
3720
3721         ioctl: Move AC_LIBOBJ invocations to module description.
3722         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
3723         invocations from here...
3724         * modules/ioctl (configure.ac): ... to here.
3725         (Depends-on): Update condition.
3726
3727 2011-05-08  Bruno Haible  <bruno@clisp.org>
3728
3729         imaxdiv: Move AC_LIBOBJ invocations to module description.
3730         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
3731         invocations from here...
3732         * modules/imaxdiv (configure.ac): ... to here.
3733
3734 2011-05-08  Bruno Haible  <bruno@clisp.org>
3735
3736         imaxabs: Move AC_LIBOBJ invocations to module description.
3737         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
3738         invocations from here...
3739         * modules/imaxabs (configure.ac): ... to here.
3740
3741 2011-05-08  Bruno Haible  <bruno@clisp.org>
3742
3743         getaddrinfo: Move AC_LIBOBJ invocations to module description.
3744         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
3745         AC_LIBOBJ invocations from here...
3746         * modules/getaddrinfo (configure.ac): ... to here.
3747         (Depends-on): Add conditions.
3748
3749 2011-05-08  Bruno Haible  <bruno@clisp.org>
3750
3751         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
3752         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
3753         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
3754         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
3755         (gl_PREREQ_INET_PTON): ... from here.
3756         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
3757         gl_PREREQ_INET_PTON here.
3758         (Depends-on): Update condition.
3759
3760 2011-05-08  Bruno Haible  <bruno@clisp.org>
3761
3762         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
3763         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
3764         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
3765         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
3766         (gl_PREREQ_INET_NTOP): ... from here.
3767         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
3768         gl_PREREQ_INET_NTOP here.
3769         (Depends-on): Update condition.
3770
3771 2011-05-08  Bruno Haible  <bruno@clisp.org>
3772
3773         iconv_open: Move AC_LIBOBJ invocations to module description.
3774         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
3775         AC_LIBOBJ invocations from here...
3776         * modules/iconv_open (configure.ac): ... to here.
3777
3778 2011-05-08  Bruno Haible  <bruno@clisp.org>
3779
3780         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
3781         If module 'iconv_open' is among the main modules and module
3782         'iconv_open-utf' is among the tests dependencies, then
3783         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
3784         return the special iconv_t values. Therefore iconv() and iconv_close()
3785         must support these special iconv_t values, already in lib, not only in
3786         tests.
3787         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
3788         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
3789         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
3790         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
3791         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
3792         (Depends-on): Add the dependencies of iconv_open-utf.
3793         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
3794         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
3795         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
3796
3797 2011-05-08  Bruno Haible  <bruno@clisp.org>
3798
3799         group-member: Move AC_LIBOBJ invocations to module description.
3800         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
3801         gl_PREREQ_GROUP_MEMBER invocations from here...
3802         * modules/group-member (configure.ac): ... to here.
3803
3804 2011-05-08  Bruno Haible  <bruno@clisp.org>
3805
3806         grantpt: Move AC_LIBOBJ invocations to module description.
3807         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
3808         invocations from here...
3809         * modules/grantpt (configure.ac): ... to here.
3810
3811 2011-05-08  Bruno Haible  <bruno@clisp.org>
3812
3813         glob: Move AC_LIBOBJ invocations to module description.
3814         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
3815         from here...
3816         * modules/glob (configure.ac): ... to here.
3817
3818 2011-05-08  Bruno Haible  <bruno@clisp.org>
3819
3820         getusershell: Move AC_LIBOBJ invocations to module description.
3821         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
3822         Move AC_LIBOBJ invocation from here...
3823         * modules/getusershell (configure.ac): ... to here.
3824         (Depends-on): Update condition.
3825
3826 2011-05-08  Bruno Haible  <bruno@clisp.org>
3827
3828         gettimeofday: Move AC_LIBOBJ invocations to module description.
3829         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
3830         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
3831         gl_PREREQ_GETTIMEOFDAY invocations from here...
3832         * modules/gettimeofday (configure.ac): ... to here.
3833
3834 2011-05-08  Bruno Haible  <bruno@clisp.org>
3835
3836         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
3837         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
3838         just gl_FUNC_TZSET.
3839         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
3840         (gl_FUNC_TZSET_CLOBBER): Remove actions.
3841         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
3842         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
3843
3844 2011-05-08  Bruno Haible  <bruno@clisp.org>
3845
3846         getsubopt: Move AC_LIBOBJ invocations to module description.
3847         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
3848         gl_PREREQ_GETSUBOPT invocations from here...
3849         * modules/getsubopt (configure.ac): ... to here.
3850
3851 2011-05-08  Bruno Haible  <bruno@clisp.org>
3852
3853         getpass-gnu: Move AC_LIBOBJ invocations to module description.
3854         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
3855         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
3856         * modules/getpass-gnu (configure.ac): ... to here.
3857
3858 2011-05-08  Bruno Haible  <bruno@clisp.org>
3859
3860         getpass: Move AC_LIBOBJ invocations to module description.
3861         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
3862         gl_PREREQ_GETPASS invocations from here...
3863         * modules/getpass (configure.ac): ... to here.
3864
3865 2011-05-08  Bruno Haible  <bruno@clisp.org>
3866
3867         getpagesize: Move AC_LIBOBJ invocations to module description.
3868         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
3869         from here...
3870         * modules/getpagesize (configure.ac): ... to here.
3871
3872 2011-05-08  Bruno Haible  <bruno@clisp.org>
3873
3874         getopt: Move AC_LIBOBJ invocations to module description.
3875         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
3876         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
3877         invocations from here...
3878         * modules/getopt-gnu (configure.ac): ... to here.
3879         * modules/getopt-posix (configure.ac): ... and here.
3880         (Depends-on): Update condition.
3881
3882 2011-05-08  Bruno Haible  <bruno@clisp.org>
3883
3884         getopt, argp: Respect rules for use of AC_LIBOBJ.
3885         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
3886         (gl_REPLACE_GETOPT_ALWAYS): New macro.
3887         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
3888         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
3889
3890 2011-05-08  Bruno Haible  <bruno@clisp.org>
3891
3892         getlogin_r: Move AC_LIBOBJ invocations to module description.
3893         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
3894         gl_PREREQ_GETLOGIN_R invocations from here...
3895         * modules/getlogin_r (configure.ac): ... to here.
3896
3897 2011-05-08  Bruno Haible  <bruno@clisp.org>
3898
3899         getlogin: Move AC_LIBOBJ invocations to module description.
3900         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
3901         here...
3902         * modules/getlogin (configure.ac): ... to here.
3903
3904 2011-05-08  Bruno Haible  <bruno@clisp.org>
3905
3906         getloadavg: Move AC_LIBOBJ invocations to module description.
3907         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
3908         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
3909         * modules/getloadavg (configure.ac): ... to here.
3910
3911 2011-05-08  Bruno Haible  <bruno@clisp.org>
3912
3913         gethrxtime: Move AC_LIBOBJ invocations to module description.
3914         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
3915         LIB_GETHRXTIME from here...
3916         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
3917         invocations from here...
3918         * modules/gethrxtime (configure.ac): ... to here.
3919
3920 2011-05-08  Bruno Haible  <bruno@clisp.org>
3921
3922         gethostname: Move AC_LIBOBJ invocations to module description.
3923         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
3924         gl_PREREQ_GETHOSTNAME invocations from here...
3925         * modules/gethostname (configure.ac): ... to here.
3926
3927 2011-05-08  Bruno Haible  <bruno@clisp.org>
3928
3929         getgroups: Move AC_LIBOBJ invocations to module description.
3930         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
3931         here...
3932         * modules/getgroups (configure.ac): ... to here.
3933
3934 2011-05-08  Bruno Haible  <bruno@clisp.org>
3935
3936         getdtablesize: Move AC_LIBOBJ invocations to module description.
3937         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
3938         invocation from here...
3939         * modules/getdtablesize (configure.ac): ... to here.
3940
3941 2011-05-08  Bruno Haible  <bruno@clisp.org>
3942
3943         getdomainname: Move AC_LIBOBJ invocations to module description.
3944         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
3945         gl_PREREQ_GETDOMAINNAME invocations from here...
3946         * modules/getdomainname (configure.ac): ... to here.
3947
3948 2011-05-08  Bruno Haible  <bruno@clisp.org>
3949
3950         getline: Move AC_LIBOBJ invocations to module description.
3951         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
3952         invocations from here...
3953         * modules/getline (configure.ac): ... to here.
3954
3955 2011-05-08  Bruno Haible  <bruno@clisp.org>
3956
3957         getline: Simplify.
3958         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
3959         It's already handled through the module dependency.
3960
3961 2011-05-08  Bruno Haible  <bruno@clisp.org>
3962
3963         getdelim: Move AC_LIBOBJ invocations to module description.
3964         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
3965         and gl_PREREQ_GETDELIM invocations from here...
3966         * modules/getdelim (configure.ac): ... to here.
3967         (Depends-on): Fix condition.
3968
3969 2011-05-08  Bruno Haible  <bruno@clisp.org>
3970
3971         getcwd: Move AC_LIBOBJ invocations to module description.
3972         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
3973         invocations from here...
3974         * modules/getcwd (configure.ac): ... to here.
3975
3976 2011-05-08  Bruno Haible  <bruno@clisp.org>
3977
3978         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
3979         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
3980         here...
3981         * modules/getcwd-lgpl (configure.ac): ... to here.
3982
3983 2011-05-07  Bruno Haible  <bruno@clisp.org>
3984
3985         crypto/gc: Move AC_LIBOBJ invocations to module description.
3986         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
3987         * modules/crypto/gc (configure.ac): ... to here.
3988
3989 2011-05-07  Bruno Haible  <bruno@clisp.org>
3990
3991         fwriting: Move AC_LIBOBJ invocations to module description.
3992         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
3993         here...
3994         * modules/fwriting (configure.ac): ... to here.
3995
3996 2011-05-07  Bruno Haible  <bruno@clisp.org>
3997
3998         fwritable: Move AC_LIBOBJ invocations to module description.
3999         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
4000         here...
4001         * modules/fwritable (configure.ac): ... to here.
4002
4003 2011-05-07  Bruno Haible  <bruno@clisp.org>
4004
4005         futimens: Move AC_LIBOBJ invocations to module description.
4006         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
4007         here...
4008         * modules/futimens (configure.ac): ... to here.
4009
4010 2011-05-07  Bruno Haible  <bruno@clisp.org>
4011
4012         ftruncate: Move AC_LIBOBJ invocations to module description.
4013         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
4014         gl_PREREQ_FTRUNCATE invocations from here...
4015         * modules/ftruncate (configure.ac): ... to here.
4016
4017 2011-05-07  Bruno Haible  <bruno@clisp.org>
4018
4019         fsync: Move AC_LIBOBJ invocations to module description.
4020         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
4021         invocations from here...
4022         * modules/fsync (configure.ac): ... to here.
4023
4024 2011-05-07  Bruno Haible  <bruno@clisp.org>
4025
4026         fsusage: Move AC_LIBOBJ invocations to module description.
4027         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
4028         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
4029         * modules/fsusage (configure.ac): ... to here.
4030
4031 2011-05-07  Bruno Haible  <bruno@clisp.org>
4032
4033         freopen: Move AC_LIBOBJ invocations to module description.
4034         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
4035         invocations from here...
4036         * modules/freopen (configure.ac): ... to here.
4037
4038 2011-05-07  Bruno Haible  <bruno@clisp.org>
4039
4040         free: Move AC_LIBOBJ invocations to module description.
4041         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
4042         invocations from here...
4043         * modules/free (configure.ac): ... to here.
4044
4045 2011-05-07  Bruno Haible  <bruno@clisp.org>
4046
4047         freadable: Move AC_LIBOBJ invocations to module description.
4048         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
4049         here...
4050         * modules/freadable (configure.ac): ... to here.
4051
4052 2011-05-07  Bruno Haible  <bruno@clisp.org>
4053
4054         fpurge: Move AC_LIBOBJ invocations to module description.
4055         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
4056         invocations from here...
4057         * modules/fpurge (configure.ac): ... to here.
4058
4059 2011-05-07  Bruno Haible  <bruno@clisp.org>
4060
4061         fpending: Move AC_LIBOBJ invocations to module description.
4062         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
4063         gl_FUNC_FPENDING.
4064         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
4065         invocations from here...
4066         * modules/fpending (configure.ac): ... to here.
4067
4068 2011-05-07  Bruno Haible  <bruno@clisp.org>
4069
4070         fopen: Move AC_LIBOBJ invocations to module description.
4071         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
4072         invocations from here...
4073         * modules/fopen (configure.ac): ... to here.
4074
4075 2011-05-07  Bruno Haible  <bruno@clisp.org>
4076
4077         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
4078         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
4079         gl_FUNC_FNMATCH_POSIX.
4080         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
4081         invocations from here...
4082         * modules/fnmatch (configure.ac): ... to here.
4083         * modules/fnmatch-gnu (configure.ac): ... and here.
4084
4085 2011-05-07  Bruno Haible  <bruno@clisp.org>
4086
4087         flock: Move AC_LIBOBJ invocations to module description.
4088         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
4089         invocations from here...
4090         * modules/flock (configure.ac): ... to here.
4091
4092 2011-05-07  Bruno Haible  <bruno@clisp.org>
4093
4094         fileblocks: Move AC_LIBOBJ invocations to module description.
4095         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
4096         gl_PREREQ_FILEBLOCKS invocations from here...
4097         * modules/fileblocks (configure.ac): ... to here.
4098
4099 2011-05-06  Bruno Haible  <bruno@clisp.org>
4100
4101         fflush: Move AC_LIBOBJ invocations to module description.
4102         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
4103         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
4104         invocations from here...
4105         * modules/fflush (configure.ac): ... to here.
4106
4107 2011-05-06  Bruno Haible  <bruno@clisp.org>
4108
4109         fdopendir: Move AC_LIBOBJ invocations to module description.
4110         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
4111         here...
4112         * modules/fdopendir (configure.ac): ... to here.
4113         (Depends-on): Improve conditions.
4114
4115 2011-05-06  Bruno Haible  <bruno@clisp.org>
4116
4117         _Exit: Move AC_LIBOBJ invocations to module description.
4118         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
4119         invocations from here...
4120         * modules/_Exit (configure.ac): ... to here.
4121
4122 2011-05-21  Bruno Haible  <bruno@clisp.org>
4123
4124         euidaccess: Respect rules for use of AC_LIBOBJ.
4125         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
4126         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
4127         from here...
4128         * modules/euidaccess (configure.ac): ... to here.
4129
4130 2011-05-06  Bruno Haible  <bruno@clisp.org>
4131
4132         error: Move AC_LIBOBJ invocations to module description.
4133         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
4134         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
4135         invocations from here...
4136         * modules/error (configure.ac): ... to here.
4137
4138 2011-05-06  Bruno Haible  <bruno@clisp.org>
4139
4140         duplocale: Move AC_LIBOBJ invocations to module description.
4141         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
4142         gl_PREREQ_DUPLOCALE invocations from here...
4143         * modules/duplocale (configure.ac): ... to here.
4144
4145 2011-05-05  Bruno Haible  <bruno@clisp.org>
4146
4147         dirfd: Move AC_LIBOBJ invocations to module description.
4148         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
4149         gl_FUNC_DIRFD.
4150         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
4151         here...
4152         * modules/dirfd (configure.ac): ... to here.
4153         (Depends-on): Fix condition.
4154
4155 2011-05-05  Bruno Haible  <bruno@clisp.org>
4156
4157         chown: Respect rules for use of AC_LIBOBJ.
4158         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
4159         * modules/chown (configure.ac): ... to here.
4160
4161 2011-05-05  Bruno Haible  <bruno@clisp.org>
4162
4163         chdir-long: Move AC_LIBOBJ invocations to module description.
4164         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
4165         gl_PREREQ_CHDIR_LONG invocations from here...
4166         * modules/chdir-long (configure.ac): ... to here.
4167
4168 2011-05-05  Bruno Haible  <bruno@clisp.org>
4169
4170         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
4171         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
4172         from here...
4173         * modules/canonicalize-lgpl (configure.ac): ... to here.
4174
4175 2011-05-05  Bruno Haible  <bruno@clisp.org>
4176
4177         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
4178         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
4179         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
4180         REPLACE_CALLOC.
4181         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
4182         * modules/calloc-gnu (configure.ac): Likewise.
4183
4184 2011-05-05  Bruno Haible  <bruno@clisp.org>
4185
4186         btowc: Move AC_LIBOBJ invocations to module description.
4187         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
4188         invocations from here...
4189         * modules/btowc (configure.ac): ... to here.
4190
4191 2011-05-21  Bruno Haible  <bruno@clisp.org>
4192
4193         atexit: Move AC_LIBOBJ invocations to module description.
4194         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
4195         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
4196         here...
4197         * modules/atexit (configure.ac): ... to here.
4198
4199 2011-05-05  Bruno Haible  <bruno@clisp.org>
4200
4201         atoll: Move AC_LIBOBJ invocations to module description.
4202         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
4203         invocations from here...
4204         * modules/atoll (configure.ac): ... to here.
4205
4206 2011-05-05  Bruno Haible  <bruno@clisp.org>
4207
4208         argz: Move AC_LIBOBJ invocations to module description.
4209         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
4210         * modules/argz (configure.ac): ... to here.
4211
4212 2011-05-05  Bruno Haible  <bruno@clisp.org>
4213
4214         alphasort: Move AC_LIBOBJ invocations to module description.
4215         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
4216         gl_PREREQ_ALPHASORT invocations from here...
4217         * modules/alphasort (configure.ac): ... to here.
4218
4219 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
4220
4221         verify: new macro verify_expr; verify_true deprecated
4222         * NEWS: Mention this.
4223         * doc/verify.texi (Compile-time Assertions): Document this.
4224         * lib/verify.h (verify_true): Deprecate.
4225         (verify_expr): New macro.
4226         * tests/test-verify.c (function): Test verify_expr.
4227
4228 2011-06-14  Jim Meyering  <meyering@redhat.com>
4229
4230         init.sh: give more portable redirection-related advice in a comment
4231         * tests/init.sh (stderr_fileno_): Update the advice in comments.
4232         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
4233         for lots of discussion.  Stefano Lattarini suggested the solution
4234         of putting "9>&2" after the command.  Reported by Bruno Haible.
4235
4236 2011-06-13  Bruno Haible  <bruno@clisp.org>
4237
4238         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
4239         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
4240         'none'.
4241
4242 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
4243
4244         ftoastr: use strtof only if HAVE_STRTOF
4245         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
4246         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
4247         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
4248         * modules/ftoastr (configure.ac): Check for strtof.
4249
4250 2011-06-13  Bruno Haible  <bruno@clisp.org>
4251
4252         gnulib-tool: Addendum to 2011-06-08 commit.
4253         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
4254         and --witness-c-macro have been given, augment AM_CPPFLAGS.
4255
4256 2011-06-13  Bruno Haible  <bruno@clisp.org>
4257
4258         fseeko: Provide a non-inline replacement of fseek().
4259         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
4260         * modules/fseeko (Depends-on): Add fseek.
4261         * modules/fseek (License): Change to LGPLv2+.
4262
4263 2011-06-13  Bruno Haible  <bruno@clisp.org>
4264
4265         ftello: Provide a non-inline replacement of ftell().
4266         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
4267         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
4268         not have ftello() (such as on mingw).
4269         * modules/ftello (Depends-on): Add ftell.
4270         * modules/ftell (License): Change to LGPLv2+.
4271
4272 2011-05-07  Bruno Haible  <bruno@clisp.org>
4273
4274         ftell: Move AC_LIBOBJ invocations to module description.
4275         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
4276         * modules/ftell (configure.ac): ... to here.
4277
4278 2011-05-07  Bruno Haible  <bruno@clisp.org>
4279
4280         ftello: Respect rules for use of AC_LIBOBJ.
4281         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
4282         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
4283         here...
4284         * modules/ftello (configure.ac): ... to here.
4285
4286 2011-05-07  Bruno Haible  <bruno@clisp.org>
4287
4288         fseeko: Simplify.
4289         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
4290         (gl_FUNC_FSEEKO): Inline it here.
4291
4292 2011-05-07  Bruno Haible  <bruno@clisp.org>
4293
4294         fseek: Move AC_LIBOBJ invocations to module description.
4295         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
4296         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
4297         * modules/fseek (configure.ac): ... to here.
4298
4299 2011-05-07  Bruno Haible  <bruno@clisp.org>
4300
4301         fseek: Respect rules for use of AC_LIBOBJ.
4302         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
4303         here...
4304         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
4305
4306 2011-05-07  Bruno Haible  <bruno@clisp.org>
4307
4308         fseeko: Respect rules for use of AC_LIBOBJ.
4309         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
4310         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
4311         here...
4312         * modules/fseeko (configure.ac): ... to here.
4313
4314 2011-06-13  Bruno Haible  <bruno@clisp.org>
4315
4316         gnulib-tool: Allow comments in the 'Depends-on' section.
4317         * doc/gnulib.texi (Module description): Mention comment syntax in the
4318         Depends-on section.
4319         * gnulib-tool (func_get_dependencies): Filter out comment lines.
4320
4321 2011-06-13  Bruno Haible  <bruno@clisp.org>
4322
4323         file-set.h: guard __attibute__ use, now that it's not always defined
4324         * lib/file-set.h (record_file): Use __attribute__ only with compiler
4325         versions that support it.  This fixes a coreutils build failure with
4326         the vendor cc on HP-UX 11.31.
4327
4328 2011-06-12  Bruno Haible  <bruno@clisp.org>
4329
4330         acl: Add support for HP-UX >= 11.11 JFS ACLs.
4331         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
4332         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
4333         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
4334         (acl, aclsort): New declarations.
4335         (aclv_nontrivial): New declaration.
4336         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
4337         (file_has_acl): Read also the second kind of HP-UX ACLs.
4338         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
4339         kind of HP-UX ACLs if the first kind fails.
4340         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
4341         second kind of HP-UX ACLs.
4342         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
4343         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
4344         agree.
4345         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
4346         hpuxjfs.
4347         Handle hpuxjfs.
4348         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
4349         hpuxjfs.
4350         Handle hpuxjfs.
4351         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
4352         (func_test_same_acls): Use both lsacl and getacl.
4353         Handle hpuxjfs.
4354         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
4355         (func_test_same_acls): Use both lsacl and getacl.
4356         Handle hpuxjfs.
4357
4358 2011-06-12  Bruno Haible  <bruno@clisp.org>
4359
4360         acl: Complete the 2010-08-10 fix.
4361         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
4362         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
4363         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
4364         explicitly.
4365         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
4366         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
4367
4368 2011-06-12  Bruno Haible  <bruno@clisp.org>
4369
4370         spawn-pipe tests: Comments.
4371         * tests/test-spawn-pipe-child.c (main): Update comment.
4372         Reported by James Youngman <jay@gnu.org>.
4373
4374 2011-06-11  James Youngman  <jay@gnu.org>
4375
4376         New module 'stat-size'.
4377         * modules/stat-size: New module.  Provides macros for accessing
4378         file size information in instances of struct stat.  Depends on the
4379         fileblocks module because it calls st_blocks.
4380         * lib/stat-size.h: New file, adapted from coreutils' system.h.
4381         * doc/gnulib.texi: Include stat-size.texi.
4382         * doc/stat-size.texi: Documentation for this module.
4383         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
4384         * m4/fileblocks.m4: Mention that stat-size depends on the call to
4385         AC_STRUCT_ST_BLOCKS.
4386
4387 2011-06-09  Bruno Haible  <bruno@clisp.org>
4388
4389         thread: Support pthreads-win32.
4390         * lib/glthread/thread.h (gl_thread_self): Define differently on
4391         pthreads-win32.
4392         (gl_null_thread): New declaration.
4393         (gl_thread_self_pointer): New macro.
4394         * lib/glthread/thread.c (gl_null_thread): New constant.
4395         * tests/test-lock.c: Use gl_thread_self_pointer instead of
4396         gl_thread_self.
4397         * tests/test-tls.c: Likewise.
4398         Suggested by Paul Eggert. Reported by Eric Blake.
4399
4400 2011-06-09  Bruno Haible  <bruno@clisp.org>
4401
4402         thread: Fix confusion between NULL and 0.
4403         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
4404         Reported by Paul Eggert.
4405
4406 2011-06-09  Bruno Haible  <bruno@clisp.org>
4407
4408         spawn-pipe tests: Avoid test failure on HP-UX 11.
4409         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
4410         is closed.
4411
4412 2011-06-09  Bruno Haible  <bruno@clisp.org>
4413
4414         acl tests: Fix compilation error on HP-UX 11.
4415         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
4416
4417 2011-06-09  Bruno Haible  <bruno@clisp.org>
4418
4419         rmdir: Avoid test failure on HP-UX 10.20.
4420         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
4421         EEXIST.
4422
4423 2011-06-08  Eric Blake  <eblake@redhat.com>
4424
4425         perror: fix test on mingw
4426         * modules/perror-tests (Depends-on): Add dup2.
4427
4428         strerror_r-posix: fix on MacOS
4429         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
4430         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
4431         logic bug.
4432         * lib/strerror_r.c (strerror_r): Fix the bug.
4433         * lib/strerror.c (strerror): Likewise.
4434         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
4435         problem.
4436         * doc/posix-functions/strerror.texi (strerror): Likewise.
4437         * doc/posix-functions/perror.texi (perror): Likewise.
4438         * tests/test-strerror.c (main): Enhance test.
4439         * tests/test-strerror_r.c (main): Likewise.
4440
4441 2011-06-08  Bruno Haible  <bruno@clisp.org>
4442
4443         gnulib-tool: Better isolation between different gnulib-tool invocations.
4444         * gnulib-tool: New option --witness-c-macro.
4445         (witness_c_macro): New variable.
4446         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
4447         AM_CPPFLAGS define it as a C macro.
4448         (func_emit_tests_Makefile_am): Likewise.
4449         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
4450         read it from there.
4451         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
4452         m4_define, not AC_DEFUN.
4453         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
4454         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
4455         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
4456         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
4457         s|...|...|, to substitute the values of the GNULIB_* module indicator
4458         variables.
4459         * modules/dirent (Makefile.am): Likewise.
4460         * modules/fcntl-h (Makefile.am): Likewise.
4461         * modules/iconv-h (Makefile.am): Likewise.
4462         * modules/langinfo (Makefile.am): Likewise.
4463         * modules/locale (Makefile.am): Likewise.
4464         * modules/math (Makefile.am): Likewise.
4465         * modules/netdb (Makefile.am): Likewise.
4466         * modules/poll-h (Makefile.am): Likewise.
4467         * modules/pty (Makefile.am): Likewise.
4468         * modules/search (Makefile.am): Likewise.
4469         * modules/signal (Makefile.am): Likewise.
4470         * modules/spawn (Makefile.am): Likewise.
4471         * modules/stdio (Makefile.am): Likewise.
4472         * modules/stdlib (Makefile.am): Likewise.
4473         * modules/string (Makefile.am): Likewise.
4474         * modules/sys_ioctl (Makefile.am): Likewise.
4475         * modules/sys_select (Makefile.am): Likewise.
4476         * modules/sys_socket (Makefile.am): Likewise.
4477         * modules/sys_stat (Makefile.am): Likewise.
4478         * modules/sys_times (Makefile.am): Likewise.
4479         * modules/sys_utsname (Makefile.am): Likewise.
4480         * modules/sys_wait (Makefile.am): Likewise.
4481         * modules/termios (Makefile.am): Likewise.
4482         * modules/time (Makefile.am): Likewise.
4483         * modules/unistd (Makefile.am): Likewise.
4484         * modules/wchar (Makefile.am): Likewise.
4485
4486 2011-06-08  Eric Blake  <eblake@redhat.com>
4487
4488         strerror: simplify replacement
4489         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
4490         * modules/strerror (configure.ac): No prereqs needed here...
4491         * modules/strerror-override (configure.ac): ...but this needs it.
4492         (Files): Add file for needed prereq macro.
4493
4494 2011-06-08  Bruno Haible  <bruno@clisp.org>
4495
4496         strerror_r-posix: Tweaks.
4497         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
4498         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
4499         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
4500         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
4501         (gl_FUNC_STRERROR_R): ... to here.
4502         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
4503
4504 2011-06-07  Eric Blake  <eblake@redhat.com>
4505
4506         perror: document fixed bugs
4507         * doc/posix-functions/perror.texi (perror): Document recent
4508         patches.
4509
4510 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
4511
4512         stat-time: get_stat_birthtime failure is better-defined
4513         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
4514         return a timestamp whose tv_sec and tv_nsec values are both -1.
4515         Previously, the spec said only that the tv_nsec value was negative.
4516         This upward-compatible change simplifies GNU tar a bit.
4517
4518 2011-06-07  Eric Blake  <eblake@redhat.com>
4519
4520         strerror_r-posix: work around cygwin 1.7.9
4521         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
4522         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
4523         bug without replacing strerror_r.
4524         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
4525         strerror_r is buggy, but without requiring strerror_r compilation.
4526         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
4527
4528         test-perror: relax test to ignore cygwin bug
4529         * tests/test-perror2.c (main): Relax test on requiring detection
4530         of stream errors, and use unbuffered stream.
4531         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
4532         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
4533         * doc/posix-functions/fputc.texi (fputc): Likewise.
4534         * doc/posix-functions/fputs.texi (fputs): Likewise.
4535         * doc/posix-functions/fputws.texi (fputws): Likewise.
4536         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
4537         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
4538         * doc/posix-functions/getopt.texi (getopt): Likewise.
4539         * doc/posix-functions/perror.texi (perror): Likewise.
4540         * doc/posix-functions/printf.texi (printf): Likewise.
4541         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
4542         * doc/posix-functions/psignal.texi (psignal): Likewise.
4543         * doc/posix-functions/putc.texi (putc): Likewise.
4544         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
4545         Likewise.
4546         * doc/posix-functions/putchar.texi (putchar): Likewise.
4547         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
4548         Likewise.
4549         * doc/posix-functions/puts.texi (puts): Likewise.
4550         * doc/posix-functions/putwc.texi (putwc): Likewise.
4551         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
4552         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
4553         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
4554         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
4555         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
4556         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
4557         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
4558         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
4559
4560 2011-05-22  Bruno Haible  <bruno@clisp.org>
4561
4562         strerror: Move AC_LIBOBJ invocations to module description.
4563         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
4564         gl_PREREQ_STRERROR invocations from here...
4565         * modules/strerror (configure.ac): ... to here.
4566
4567 2011-05-21  Bruno Haible  <bruno@clisp.org>
4568
4569         perror: Use common idiom.
4570         * modules/perror (configure.ac): Reorder statements.
4571
4572 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
4573
4574         tests: fix usage message in 'mktempd_'
4575         * tests/init.sh (mktempd_): In the usage message, use literal
4576         'mktempd_', not '$ME' (which is even undefined), as the name of
4577         the subroutine.
4578
4579 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
4580
4581         tests init: new function 'fatal_', for hard errors
4582         Before this patch, the only way offered by tests/init.sh to
4583         properly signal a hard error was the `framework_failure_'
4584         function.  But the error message issued by that function,
4585         as its name would suggest, refers to a set-up failure in the
4586         testsuite, while hard errors can obviously also be due to
4587         other reasons.  The best way to fix this inconsistency is to
4588         introduce a new function with a more general error message.
4589         * tests/init.sh (fatal_): New function.
4590
4591 2011-06-06  Eric Blake  <eblake@redhat.com>
4592
4593         canonicalize-lgpl: use common idiom
4594         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
4595         over newer POSIX -Rf.
4596         Reported by Bruno Haible.
4597
4598         canonicalize-lgpl: work around AIX realpath bug
4599         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
4600         * doc/posix-functions/realpath.texi (realpath): Document it.
4601         Reported by Bruno Haible.
4602
4603         strerror: work around FreeBSD bug
4604         * lib/strerror.c (strerror): Special case 0.
4605         Reported by Bruno Haible.
4606
4607         strerror-override: avoid bloating errno module
4608         * modules/errno (Files, configure.ac): Move replacement strings...
4609         * modules/strerror-override: ...to new module.
4610         * modules/strerror (Depends-on): Add strerror-override.
4611         * modules/strerror_r-posix (Depends-on): Likewise.
4612         * MODULES.html.sh: Document new module.
4613         Reported by Bruno Haible.
4614
4615 2011-06-06  Bruno Haible  <bruno@clisp.org>
4616
4617         spawn-pipe tests: Rename program.
4618         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
4619         * tests/test-spawn-pipe-child.c: Update comment.
4620         * tests/test-spawn-pipe.sh: Update.
4621         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
4622
4623         spawn-pipe tests: Link the child program only against libc.
4624         * tests/test-spawn-pipe-child.c: New file, extracted from
4625         tests/test-spawn-pipe.c.
4626         (main): Expect only one argument.
4627         (is_open): New function, copied from tests/test-pipe.c.
4628         * tests/test-spawn-pipe.c: Don't include <errno.h>.
4629         (child_main): Remove function.
4630         (test_pipe): Pass only one argument to the child program.
4631         (main): Remove child process code. Expect the child program's name as
4632         first argument.
4633         * tests/test-spawn-pipe.sh: Pass the child program's name as first
4634         argument.
4635         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
4636         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
4637         test-spawn-pipe-child against no libraries.
4638
4639 2011-06-06  Bruno Haible  <bruno@clisp.org>
4640
4641         careadlinkat: Avoid mismatch between ssize_t and int.
4642         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
4643         * lib/careadlinkat.c (careadlinkatcwd): Define always.
4644
4645 2011-06-06  Jim Meyering  <meyering@redhat.com>
4646
4647         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
4648         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
4649         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
4650
4651 2011-06-05  Bruno Haible  <bruno@clisp.org>
4652
4653         ansi-c++-opt: Interoperability with libtool.
4654         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
4655         set the variable to "no", not to ":".
4656         * NEWS: Mention the change.
4657
4658 2011-06-05  Bruno Haible  <bruno@clisp.org>
4659
4660         acl: Fix test failure on AIX 7.
4661         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
4662         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
4663
4664 2011-06-05  Bruno Haible  <bruno@clisp.org>
4665
4666         pipe-filter-ii: Fix test failure on AIX and IRIX.
4667         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
4668         with EAGAIN, retry with a smaller buffer size.
4669
4670 2011-06-05  Bruno Haible  <bruno@clisp.org>
4671
4672         localename: Fix link dependencies.
4673         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
4674         * modules/localename-tests (Makefile.am): Link test-localename with
4675         $(LIBTHREAD).
4676
4677 2011-06-05  Bruno Haible  <bruno@clisp.org>
4678
4679         error: Avoid gcc warning.
4680         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
4681
4682 2011-06-05  Bruno Haible  <bruno@clisp.org>
4683
4684         unsetenv: Avoid gcc warning.
4685         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
4686
4687 2011-06-05  Bruno Haible  <bruno@clisp.org>
4688
4689         setenv: Avoid gcc warning.
4690         * lib/setenv.c (setenv): Provide declaration if system lacks it.
4691
4692 2011-06-05  Bruno Haible  <bruno@clisp.org>
4693
4694         sys_select: Ensure memset is declared also on AIX 7.
4695         * lib/sys_select.in.h: Include <string.h> also on AIX.
4696         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
4697         self-contained also on AIX 7.1.
4698
4699 2011-06-04  Jim Meyering  <meyering@redhat.com>
4700
4701         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
4702         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
4703         function name, "error".
4704         (_gl_translatable_diag_func_re): New configurable variable.
4705
4706 2011-06-04  Bruno Haible  <bruno@clisp.org>
4707
4708         getopt: Avoid gcc warning.
4709         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
4710
4711 2011-06-04  Bruno Haible  <bruno@clisp.org>
4712
4713         strerror_r: Fix comments.
4714         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
4715         commit.
4716
4717 2011-06-04  Bruno Haible  <bruno@clisp.org>
4718
4719         perror: Fix compilation error.
4720         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
4721         Undefine fprintf, not sprintf.
4722         * modules/perror (Depends-on): Remove intprops, verify.
4723
4724 2011-06-04  Bruno Haible  <bruno@clisp.org>
4725
4726         setlocale: Enable replacement on Cygwin 1.5.
4727         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
4728         Cygwin 1.5.x.
4729         * doc/posix-functions/setlocale.texi: Mention that the problem with the
4730         LC_CTYPE category also exists on Cygwin 1.5.x.
4731
4732 2011-06-04  Bruno Haible  <bruno@clisp.org>
4733
4734         strerror-override: Don't disable symbol renamings.
4735         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
4736         * lib/strerror-override.c: Include config.h.
4737         (strerror_override): Don't undefine.
4738
4739 2011-06-03  Bruno Haible  <bruno@clisp.org>
4740
4741         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
4742         * lib/localename.h: Update copyright header.
4743         * lib/localename.c: Likewise.
4744         * lib/relocatable.h: Likewise.
4745         * lib/relocatable.c: Likewise.
4746
4747 2011-06-02  Bruno Haible  <bruno@clisp.org>
4748
4749         doc: Fix a module name.
4750         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
4751
4752 2011-06-02  Bruno Haible  <bruno@clisp.org>
4753
4754         pipe2: Remove dependency on 'nonblocking' module.
4755         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
4756         O_NONBLOCK is defined by gnulib.
4757         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
4758         is zero.
4759         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
4760         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
4761         defined by gnulib.
4762         (get_nonblocking_flag): New function.
4763         (main): Test O_NONBLOCK flag only if it is nonzero.
4764         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
4765
4766 2011-06-03  Jim Meyering  <meyering@redhat.com>
4767
4768         maint: three new prohibit-header-without-use rules
4769         Prohibit use of cloexec.h, posixver.h, same.h without use.
4770         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
4771         (sc_prohibit_posixver_without_use): Likewise.
4772         (sc_prohibit_same_without_use): Likewise.
4773
4774 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
4775
4776         allocator: 'die' routine is now given requested size
4777         * lib/allocator.h (struct allocator.die): New size arg.
4778         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
4779         If the actual problem is an ssize_t limitation, not a size_t or
4780         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
4781
4782 2011-06-01  Eric Blake  <eblake@redhat.com>
4783
4784         strerror: drop strerror_r dependency
4785         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
4786         * lib/strerror-override.c (strerror_override): ...to new file.
4787         * lib/strerror-override.h: Add prototype.
4788         * lib/strerror-impl.h: Delete.
4789         * lib/strerror.c (strerror): New implementation.
4790         * modules/errno (Files): Add new files.
4791         (configure.ac): Compile new file as appropriate.
4792         * modules/strerror (Files): Drop unused file.
4793         (Depends-on): Drop strerror_r-posix.
4794         * MODULES.html.sh: Document strerror_r-posix.
4795         Requested by Sam Steingold.
4796
4797         perror: call strerror_r directly
4798         * modules/perror (Files): Drop strerror-impl.h.
4799         * lib/perror.c (perror): Use our own stack buffer, rather than
4800         calling a wrapper that uses static storage.
4801         * doc/posix-functions/perror.texi (perror): Document a limitation
4802         of our replacement.
4803
4804         strerror_r: fix includes for FreeBSD
4805         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
4806         since we use abort on some platforms.
4807         Reported by Matthias Bolte.
4808
4809 2011-05-31  Bruno Haible  <bruno@clisp.org>
4810
4811         Fix link errors in tests: openat-die uses gettext-h.
4812         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
4813         against $(LIBINTL).
4814         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
4815         against $(LIBINTL).
4816         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
4817         $(LIBINTL).
4818         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
4819         against $(LIBINTL).
4820         * modules/linkat-tests (Makefile.am): Link test-linkat against
4821         $(LIBINTL).
4822         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
4823         $(LIBINTL).
4824         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
4825         against $(LIBINTL).
4826         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
4827         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
4828         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
4829         $(LIBINTL).
4830         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
4831         $(LIBINTL).
4832         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
4833         $(LIBINTL).
4834         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4835
4836 2011-05-31  Bruno Haible  <bruno@clisp.org>
4837
4838         Fix link errors in tests: wait-process uses gettext-h.
4839         * modules/nonblocking-pipe-tests (Makefile.am): Set
4840         test_nonblocking_pipe_main_LDADD.
4841         * modules/nonblocking-socket-tests (Makefile.am): Link
4842         test-nonblocking-socket-main against $(LIBINTL).
4843         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4844
4845 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
4846
4847         assert-h: work around 'verify' incompatibility
4848         * lib/verify.h: Use @...@ directives, not ifdef.
4849         * modules/assert-h (assert.h): Implement the directives.
4850         (assert.h): Substitute the symbol-prefix more consistently.
4851
4852 2011-05-29  Jim Meyering  <meyering@redhat.com>
4853
4854         trim: remove three superfluous assignments
4855         * lib/trim.c (trim2): Remove three superfluous assignments
4856         and correct brace positioning.
4857
4858 2011-05-29  Bruno Haible  <bruno@clisp.org>
4859
4860         wctype-h: Avoid namespace pollution on Solaris 2.6.
4861         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
4862         identifiers.
4863         * doc/posix-headers/wctype.texi: Mention the problem.
4864         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4865
4866 2011-05-28  Jim Meyering  <meyering@redhat.com>
4867
4868         parse-datetime.y: accommodate -Wstrict-overflow
4869         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
4870         placate -Wstrict-overflow.
4871
4872         trim: avoid a warning from -O2 -Wstrict-overflow
4873         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
4874
4875 2011-05-29  Bruno Haible  <bruno@clisp.org>
4876
4877         gnulib-tool: Fix bug in yesterday's commit.
4878         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
4879         twice.
4880
4881 2011-05-29  Bruno Haible  <bruno@clisp.org>
4882
4883         Allow multiple gnulib generated include files to be combined.
4884         * gnulib-tool (func_compute_include_guard_prefix): New function.
4885         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
4886         ${gl_include_guard_prefix} references.
4887         (func_import, func_create_testdir): Invoke
4888         func_compute_include_guard_prefix.
4889         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
4890         * lib/ctype.in.h: Likewise.
4891         * lib/dirent.in.h: Likewise.
4892         * lib/errno.in.h: Likewise.
4893         * lib/fcntl.in.h: Likewise.
4894         * lib/float.in.h: Likewise.
4895         * lib/getopt.in.h: Likewise.
4896         * lib/iconv.in.h: Likewise.
4897         * lib/langinfo.in.h: Likewise.
4898         * lib/locale.in.h: Likewise.
4899         * lib/math.in.h: Likewise.
4900         * lib/netdb.in.h: Likewise.
4901         * lib/netinet_in.in.h: Likewise.
4902         * lib/poll.in.h: Likewise.
4903         * lib/pthread.in.h: Likewise.
4904         * lib/pty.in.h: Likewise.
4905         * lib/sched.in.h: Likewise.
4906         * lib/se-selinux.in.h: Likewise.
4907         * lib/search.in.h: Likewise.
4908         * lib/signal.in.h: Likewise.
4909         * lib/spawn.in.h: Likewise.
4910         * lib/stdarg.in.h: Likewise.
4911         * lib/stddef.in.h: Likewise.
4912         * lib/stdint.in.h: Likewise.
4913         * lib/stdio.in.h: Likewise.
4914         * lib/stdlib.in.h: Likewise.
4915         * lib/string.in.h: Likewise.
4916         * lib/strings.in.h: Likewise.
4917         * lib/sys_file.in.h: Likewise.
4918         * lib/sys_ioctl.in.h: Likewise.
4919         * lib/sys_select.in.h: Likewise.
4920         * lib/sys_socket.in.h: Likewise.
4921         * lib/sys_stat.in.h: Likewise.
4922         * lib/sys_time.in.h: Likewise.
4923         * lib/sys_times.in.h: Likewise.
4924         * lib/sys_uio.in.h: Likewise.
4925         * lib/sys_utsname.in.h: Likewise.
4926         * lib/sys_wait.in.h: Likewise.
4927         * lib/sysexits.in.h: Likewise.
4928         * lib/termios.in.h: Likewise.
4929         * lib/time.in.h: Likewise.
4930         * lib/unistd.in.h: Likewise.
4931         * lib/wchar.in.h: Likewise.
4932         * lib/wctype.in.h: Likewise.
4933         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
4934         * modules/ctype (Makefile.am): Likewise.
4935         * modules/dirent (Makefile.am): Likewise.
4936         * modules/errno (Makefile.am): Likewise.
4937         * modules/fcntl-h (Makefile.am): Likewise.
4938         * modules/float (Makefile.am): Likewise.
4939         * modules/getopt-posix (Makefile.am): Likewise.
4940         * modules/iconv-h (Makefile.am): Likewise.
4941         * modules/langinfo (Makefile.am): Likewise.
4942         * modules/locale (Makefile.am): Likewise.
4943         * modules/math (Makefile.am): Likewise.
4944         * modules/netdb (Makefile.am): Likewise.
4945         * modules/netinet_in (Makefile.am): Likewise.
4946         * modules/poll-h (Makefile.am): Likewise.
4947         * modules/pthread (Makefile.am): Likewise.
4948         * modules/pty (Makefile.am): Likewise.
4949         * modules/sched (Makefile.am): Likewise.
4950         * modules/search (Makefile.am): Likewise.
4951         * modules/selinux-h (Makefile.am): Likewise.
4952         * modules/signal (Makefile.am): Likewise.
4953         * modules/spawn (Makefile.am): Likewise.
4954         * modules/stdarg (Makefile.am): Likewise.
4955         * modules/stddef (Makefile.am): Likewise.
4956         * modules/stdint (Makefile.am): Likewise.
4957         * modules/stdio (Makefile.am): Likewise.
4958         * modules/stdlib (Makefile.am): Likewise.
4959         * modules/string (Makefile.am): Likewise.
4960         * modules/strings (Makefile.am): Likewise.
4961         * modules/sys_file (Makefile.am): Likewise.
4962         * modules/sys_ioctl (Makefile.am): Likewise.
4963         * modules/sys_select (Makefile.am): Likewise.
4964         * modules/sys_socket (Makefile.am): Likewise.
4965         * modules/sys_stat (Makefile.am): Likewise.
4966         * modules/sys_time (Makefile.am): Likewise.
4967         * modules/sys_times (Makefile.am): Likewise.
4968         * modules/sys_uio (Makefile.am): Likewise.
4969         * modules/sys_utsname (Makefile.am): Likewise.
4970         * modules/sys_wait (Makefile.am): Likewise.
4971         * modules/sysexits (Makefile.am): Likewise.
4972         * modules/termios (Makefile.am): Likewise.
4973         * modules/time (Makefile.am): Likewise.
4974         * modules/unistd (Makefile.am): Likewise.
4975         * modules/wchar (Makefile.am): Likewise.
4976         * modules/wctype-h (Makefile.am): Likewise.
4977         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
4978
4979 2011-05-29  Bruno Haible  <bruno@clisp.org>
4980
4981         assert-h: Allow multiple gnulib generated replacements to coexist.
4982         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
4983
4984 2011-05-29  Bruno Haible  <bruno@clisp.org>
4985
4986         argp: Allow coexistence with strerror_r-posix module.
4987         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
4988         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
4989         by gnulib's <string.h> replacement), assume it has the POSIX signature,
4990         not the glibc signature.
4991
4992 2011-05-28  Bruno Haible  <bruno@clisp.org>
4993
4994         gnulib-tool: Alternative structure of testdirs, similar to --import.
4995         * gnulib-tool: New option --single-configure.
4996         (func_usage): Document it.
4997         (single_configure): New variable.
4998         (func_modules_transitive_closure_separately,
4999         func_modules_transitive_closure_separately,
5000         func_determine_use_libtests, func_modules_add_dummy_separately,
5001         func_modules_to_filelist_separately): New functions, extracted from
5002         func_import.
5003         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
5004         (func_import): Use the new functions.
5005         (func_create_testdir): Set final_modules. Handle $single_configure =
5006         true case.
5007
5008 2011-05-28  Bruno Haible  <bruno@clisp.org>
5009
5010         getloadavg: Remove an unreliable safety check.
5011         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
5012         getloadavg.c is in place.
5013         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
5014         Reported by Sam Steingold <sds@gnu.org>.
5015
5016 2011-05-28  Bruno Haible  <bruno@clisp.org>
5017
5018         doc: Cleanup yet another file produced by texinfo.tex.
5019         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
5020
5021 2011-05-28  Bruno Haible  <bruno@clisp.org>
5022
5023         Finish the conditional dependencies mechanism.
5024         * gnulib-tool: New option --no-conditional-dependencies.
5025         (func_usage): Document it. Don't mark --conditional-dependencies as
5026         experimental.
5027         (cond_dependencies): The possible values can now be true, false, empty.
5028         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
5029         (func_import): Store setting in gnulib-cache.m4 and read it from there.
5030         * doc/gnulib-tool.texi (Conditional dependencies): New section.
5031
5032 2011-05-28  Bruno Haible  <bruno@clisp.org>
5033
5034         doc: Use a recent texinfo.tex.
5035         * doc/Makefile (tex_opts): New variable.
5036         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
5037
5038 2011-05-28  Jim Meyering  <meyering@redhat.com>
5039
5040         intprops.h: adjust comment to match code change
5041         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
5042         only once, it *may* have side effects.  Also fix an unrelated typo.
5043         (_GL_INT_SIGNED): Likewise.
5044
5045 2011-05-26  Simon Josefsson  <simon@josefsson.org>
5046
5047         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
5048
5049 2011-05-26  Bruno Haible  <bruno@clisp.org>
5050
5051         mbsrchr: Avoid collision with system function on Interix.
5052         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
5053         Reported by Markus Duft <mduft@gentoo.org>.
5054
5055 2011-05-15  James Youngman  <jay@gnu.org>
5056
5057         getopt: for ambiguous options, enumerate the possibilities.
5058         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
5059         the ambiguous options when an ambiguous prefix is given. This was
5060         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
5061         glibc change was
5062         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
5063
5064 2011-05-25  Eric Blake  <eblake@redhat.com>
5065
5066         getcwd: work around mingw bug
5067         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
5068         * doc/posix-functions/getcwd.texi (getcwd): Document it.
5069         Reported by Matthias Bolte.
5070
5071 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
5072
5073         test-intprops: disable -Wtype-limits diagnostics
5074         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
5075         diagnostics.  Otherwise, the integer overflow macros generate many
5076         diagnostics.  Reported by Jim Meyering in
5077         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
5078
5079         intprops: shorten, to pacify gcc -Woverlength-strings
5080         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
5081         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
5082         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
5083         likely to run afoul of C compiler limits for string constant lengths.
5084         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
5085
5086 2011-05-24  Eric Blake  <eblake@redhat.com>
5087
5088         docs: document recently fixed glibc printf bug
5089         * doc/posix-functions/fprintf.texi (fprintf): Document it.
5090         * doc/posix-functions/printf.texi (printf): Likewise.
5091         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
5092         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
5093
5094         closein-tests: convert to init.sh
5095         * modules/closein-tests (Files): Add init.sh
5096         * tests/test-closein.sh Use it.
5097
5098         yesno-tests: convert to init.sh
5099         * modules/yesno-tests (Files): Add init.sh.
5100         * tests/test-yesno.sh: Use it.
5101
5102         atexit-tests: ensure reliable exit status
5103         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
5104         Reported by Bruno Haible.
5105
5106 2011-05-24  Bruno Haible  <bruno@clisp.org>
5107
5108         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
5109         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
5110         gl_PREREQ_STRERROR_R invocations from here...
5111         * modules/strerror_r-posix (configure.ac): ... to here.
5112
5113 2011-05-24  Eric Blake  <eblake@redhat.com>
5114
5115         strerror_r: fix missing header
5116         * lib/strerror_r.c: Avoid compiler warning about snprintf.
5117
5118         strerror_r: fix AIX test failures
5119         * lib/strerror_r.c (strerror_r): Convert silent truncation to
5120         ERANGE failure.
5121
5122         strerror_r: fix Solaris test failures
5123         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
5124         failures.
5125         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
5126
5127         strerror_r: enforce POSIX recommendations
5128         * lib/strerror_r.c (safe_copy): New helper method.
5129         (strerror_r): Guarantee a non-empty string.
5130         * tests/test-strerror_r.c (main): Enhance tests to incorporate
5131         recent POSIX rulings and to match our strerror guarantees.
5132         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
5133
5134 2011-05-24  Jim Meyering  <meyering@redhat.com>
5135
5136         test-perror2.c: avoid warning about unused variable
5137         * tests/test-perror2.c (main): Remove declaration of unused "fp".
5138
5139 2011-05-24  Eric Blake  <eblake@redhat.com>
5140
5141         perror: avoid spurious test failure on HP-UX
5142         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
5143
5144         tests: fix logic bug in init.sh
5145         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
5146         shell.
5147
5148 2011-05-24  Jim Meyering  <meyering@redhat.com>
5149
5150         utimensat: do not reference an out-of-scope buffer
5151         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
5152         declared in an inner scope, yet "times" would be dereferenced outside
5153         the scope in which "ts" was valid.
5154         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
5155         of ts[2] "out/up", so that the use of aliased "times" (via
5156         "times = ts;") does not end up referencing an out-of-scope "ts"
5157
5158         opendir-safer.c: don't clobber errno; don't close negative FD
5159         * lib/opendir-safer.c (opendir_safer):
5160         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
5161         file descriptor, and more importantly, don't clobber the
5162         offending errno value with EINVAL.  Before, upon failure
5163         of dup_safer, we would pass the negative file descriptor to
5164         fdopendir, which would clobber errno.
5165
5166 2011-05-23  Bruno Haible  <bruno@clisp.org>
5167
5168         idcache: Fix module description.
5169         * modules/idcache (Include): Set to "idcache.h".
5170
5171 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5172
5173         gnulib-tool: fix portability problem with MacOS sed
5174         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
5175         before the "}".  Problem reported by Leo in
5176         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
5177         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
5178         sed_extract_condition1, sed_extract_condition2.
5179
5180 2011-05-23  Bruno Haible  <bruno@clisp.org>
5181
5182         hash: Simplify autoconf macro.
5183         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
5184
5185 2011-05-23  Bruno Haible  <bruno@clisp.org>
5186
5187         getugroups: Fix module description.
5188         * modules/getugroups (Include): Set to "getugroups.h".
5189
5190 2011-05-23  Bruno Haible  <bruno@clisp.org>
5191
5192         linkat: Simplify autoconf macro.
5193         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
5194
5195 2011-05-23  Bruno Haible  <bruno@clisp.org>
5196             Eric Blake  <eblake@redhat.com>
5197
5198         linkat, renameat: Update dependencies.
5199         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
5200         * modules/linkat (Depends-on): Likewise. Remove also readlink,
5201         symlinkat.
5202
5203 2011-05-23  Jim Meyering  <meyering@redhat.com>
5204
5205         maint.mk: more tight_scope improvements
5206         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
5207         (_gl_TS_headers): Define only in if-0'd block.
5208         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
5209         sometimes we must *not* use it.  Adjust uses accordingly.
5210         (sc_tight_scope): Use much simpler grep-based test to determine
5211         whether we skip this rule.
5212
5213         maint.mk: generalize/improve the tight-scope rule
5214         * top/maint.mk: Emit a warning when the test is skipped.
5215         (_gl_TS_dir): Add $(srcdir)/ prefix.
5216         (_gl_TS_function_match): Simplify, rather than trying
5217         to enumerate common types.  Otherwise, it would fail to match an
5218         "extern unsigned char const *" declaration in idutils.
5219         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
5220         a way to support use of that type of macro.
5221         (_gl_TS_var_match): Simplify regexp.
5222         (_gl_TS_obj_files): New configurable variable.
5223         (_gl_TS_headers): Likewise.
5224
5225 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
5226
5227         verify: fix bug when gnulib <assert.h> is also included
5228         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
5229         is defined, not if _GL_STATIC_ASSERT_H is not defined.
5230         Perhaps there's a better way, but this fixes the immediate problem.
5231         Problem reported by Bruno Haible in
5232         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
5233
5234 2011-05-22  Bruno Haible  <bruno@clisp.org>
5235
5236         xgetcwd: Simplify autoconf macro.
5237         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
5238
5239 2011-05-22  Bruno Haible  <bruno@clisp.org>
5240
5241         New module 'mktime-internal'.
5242         * modules/mktime-internal: New file.
5243         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
5244         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
5245         mktime_internal as a C macro if libc has __mktime_internal.
5246         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
5247         conditions.
5248         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
5249
5250 2011-05-22  Bruno Haible  <bruno@clisp.org>
5251
5252         timegm: Correct mktime replacement statements.
5253         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
5254         defining mktime as a C macro. This completes a 2009-07-28 commit.
5255
5256 2011-05-22  Bruno Haible  <bruno@clisp.org>
5257
5258         timegm: Simplify autoconf macro.
5259         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
5260
5261 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
5262
5263         clock-time: change to LGPLv2+.
5264         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
5265         BSD-like but we have no mark for that; this is good enough for now.
5266
5267 2011-05-21  Bruno Haible  <bruno@clisp.org>
5268
5269         strerror_r: Fix comments.
5270         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
5271
5272 2011-05-21  Bruno Haible  <bruno@clisp.org>
5273
5274         relocatable-prog-wrapper: Fix possible link error.
5275         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
5276         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
5277         (gl_FUNC_SETENV): ... to here.
5278         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
5279         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
5280
5281 2011-05-21  Bruno Haible  <bruno@clisp.org>
5282
5283         relocatable-prog-wrapper: Assume strerror() exists.
5284         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
5285         m4/strerror.m4.
5286         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
5287         * lib/relocwrapper.c: Remove mention of strerror module.
5288         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
5289         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
5290         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
5291         C macro.
5292
5293 2011-05-21  Bruno Haible  <bruno@clisp.org>
5294
5295         select: Simplify replacement idiom.
5296         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
5297         Win32 platforms.
5298         * lib/sys_select.in.h (select): Simplify accordingly.
5299         * modules/select (Depends-on): Likewise.
5300
5301 2011-05-21  Bruno Haible  <bruno@clisp.org>
5302
5303         mkdir-p: Simplify autoconf macro.
5304         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
5305         gl_FUNC_LCHOWN.
5306
5307 2011-05-21  Eric Blake  <eblake@redhat.com>
5308
5309         strerror_r: avoid clobbering strerror on cygwin
5310         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
5311         fall back instead to sys_errlist.
5312         * modules/strerror (configure.ac): Add witness.
5313         * tests/test-strerror_r.c (main): Enhance test.
5314         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
5315         * tests/test-perror2.c (main): Free memory before exit.
5316
5317 2011-05-21  Bruno Haible  <bruno@clisp.org>
5318
5319         mkdtemp: Use gnulib naming conventions.
5320         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
5321         * modules/mkdtemp (configure.ac): Update.
5322
5323 2011-05-20  Eric Blake  <eblake@redhat.com>
5324
5325         strerror_r: avoid corrupting errno on Solaris
5326         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
5327         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
5328
5329         strerror_r: avoid compiler warning
5330         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
5331
5332         strerror_r: simplify AIX code
5333         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
5334
5335         test-perror: avoid spurious failure on FreeBSD
5336         * modules/perror-tests (Depends-on): Add strerror, now that
5337         strerror_r no longer pulls it in.
5338
5339 2011-05-20  Bruno Haible  <bruno@clisp.org>
5340
5341         strerror_r-posix: Remove unused dependencies.
5342         * modules/strerror_r-posix (Depends-on): Remove strerror.
5343         Reported by Eric Blake.
5344
5345 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
5346
5347         intprops: remove assumption about A|B representation
5348         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
5349         is a valid integer if both A and B are.  Although this is true for
5350         all known practical hosts, the C standard doesn't guarantee it,
5351         and the code need not assume it.  Also, this change may work around
5352         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
5353         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
5354
5355 2011-05-20  Eric Blake  <eblake@redhat.com>
5356
5357         perror: work around FreeBSD bug
5358         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
5359         is broken.  Move AC_LIBOBJ...
5360         * modules/perror (configure.ac): Here.
5361         * doc/posix-functions/perror.texi (perror): Document this.
5362         * tests/test-perror2.c (main): Enhance test.
5363
5364         test-perror: check for strerror interactions
5365         * tests/macros.h (STREQ): Add macro.
5366         * modules/perror-tests (Files): Add second test.
5367         * tests/test-perror2.c (main): New file.
5368         * doc/posix-functions/perror.texi (perror): Document glibc bug.
5369
5370         test-perror: rewrite to use init script
5371         * modules/perror-tests (Files): Add init.sh.
5372         * tests/test-perror.sh: Use temporary directory.
5373
5374 2011-05-20  Jim Meyering  <meyering@redhat.com>
5375
5376         maint: replace misused "a" with "an"
5377         * doc/intprops.texi: "a integer"
5378         * doc/regex.texi: "a explanation"
5379         * lib/alignof.h: "a object"
5380         * lib/argmatch.h: "a explanation"
5381         * lib/argp-help.c: "a option" and "a OPTION_DOC"
5382         * lib/stdint.in.h: "a integer"
5383         * lib/userspec.c: "a owner"
5384         * doc/gnulib.texi: Fix "a idea", and reword.
5385
5386 2011-05-19  Jim Meyering  <meyering@redhat.com>
5387
5388         maint: correct misuse of "a" and "an"
5389         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
5390         * lib/argp-help.c: "an docum...": s/an/a/
5391         * lib/argp-parse.c: "An vector": s/An/A/
5392         * lib/execute.c: "an native": s/an/a/
5393         * lib/spawn-pipe.c: Likewise.
5394         * lib/gc.h: "an Gc_rc": s/an/a/
5395         * lib/unigbrk.in.h: "an grapheme": s/an/a/
5396         * lib/fts.c: "an stat.st_dev": s/an/a/
5397
5398 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
5399
5400         intprops-tests: work around HP-UX 11.23 cc bug with constants
5401         * tests/test-intprops.c (VERIFY): New macro.
5402         (main): Use it, instead of verify, to work around the compiler bug; see
5403         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
5404
5405         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
5406         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
5407         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
5408         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
5409         (_GL_REMAINDER_OVERFLOW): Use it.
5410
5411         intprops-tests: revert unsigned part of previous change
5412         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
5413         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
5414         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
5415         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
5416
5417 2011-05-19  Bruno Haible  <bruno@clisp.org>
5418
5419         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
5420         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
5421         strerror_r() returned without filling the buffer.
5422         Reported by Eric Blake.
5423
5424 2011-05-19  Eric Blake  <eblake@redhat.com>
5425
5426         strerror_r: guarantee unchanged errno
5427         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
5428         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
5429         failure.
5430         * tests/test-strerror_r.c (main): Enhance test.
5431
5432 2011-05-19  Bruno Haible  <bruno@clisp.org>
5433
5434         strerror_r: Reorder #if blocks.
5435         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
5436         for consistency with the previous commit.
5437
5438 2011-05-19  Bruno Haible  <bruno@clisp.org>
5439
5440         perror: Avoid clobbering the strerror buffer when possible.
5441         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
5442         * lib/strerror.c: Include it.
5443         * modules/strerror (Files): Add lib/strerror-impl.h.
5444         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
5445         (my_strerror): New function, defined through lib/strerror-impl.h.
5446         (perror): Use it instead of strerror.
5447         * modules/perror (Files): Add lib/strerror-impl.h.
5448         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
5449
5450 2011-05-19  Eric Blake  <eblake@redhat.com>
5451
5452         strerror_r: fix on newer cygwin
5453         * lib/strerror_r.c (strerror_r): Cygwin now has
5454         __xpg_strerror_r, use it.
5455
5456 2011-05-19  Bruno Haible  <bruno@clisp.org>
5457
5458         strerror_r: Avoid clobbering the strerror buffer when possible.
5459         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
5460         (sys_nerr, sys_errlist): New declarations.
5461         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
5462         HP-UX, native Win32, IRIX, and 32-bit Solaris.
5463         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
5464
5465 2011-05-19  Bruno Haible  <bruno@clisp.org>
5466
5467         strerror_r: Fix test failure on mingw.
5468         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
5469         EXTEND_STRERROR_R.
5470         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
5471         macros from errno.in.h instead.
5472
5473 2011-05-19  Eric Blake  <eblake@redhat.com>
5474
5475         strerror: relax test for Solaris
5476         * tests/test-strerror.c (main): Permit Solaris behavior.
5477         * tests/test-strerror_r.c (main): Likewise.
5478
5479         strerror: enforce POSIX ruling on strerror(0)
5480         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
5481         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
5482         * lib/strerror_r.c (rpl_strerror_r): Work around it.
5483         * doc/posix-functions/strerror.texi (strerror): Document it.
5484         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
5485         * tests/test-strerror.c (main): Strengthen test.
5486         * tests/test-strerror_r.c (main): Likewise.
5487
5488 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
5489
5490         intprop-tests: port to older and more-pedantic compilers
5491         * modules/intprops-tests (Files): Add tests/macros.h.
5492         * tests/test-intprops.c: Include macros.h.
5493         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
5494         it's no longer documented to expand to an integer constant expression.
5495         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
5496         argument is floating point, as it's no longer documented to expand
5497         to an integer constant expression in that case.
5498         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
5499         compiler bugs reported by Bruno Haible.  See
5500         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
5501         (U0, U1): New constants, to work around the same bugs.  Also,
5502         in tests, use e.g., "(unsigned int) 39" rather than "39u".
5503
5504         intprops: work around C compiler bugs
5505         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
5506         bug in Sun C 5.11 2010/08/13 and other compilers; see
5507         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
5508
5509         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
5510         * doc/intprops.texi (Integer Type Determination): Fix
5511         documentation for TYPE_IS_INTEGER: it returns an constant
5512         expression, not an integer constant expression.  Fix doc for
5513         TYPE_SIGNED: it returns an integer constant expression only if its
5514         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
5515         hardly worth documented that way....)
5516
5517 2011-05-18  Bruno Haible  <bruno@clisp.org>
5518
5519         strerror_r: Avoid clobbering the strerror buffer when possible.
5520         * lib/strerror_r.c (strerror_r): Merge the three implementations.
5521         Handle gnulib defined errno values here. When strerror() returns NULL
5522         or an empty string, return EINVAL.
5523         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
5524         gnulib defined errno values here.
5525         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
5526
5527 2011-05-18  Eric Blake  <eblake@redhat.com>
5528
5529         fnmatch: avoid compiler warning
5530         * lib/fnmatch_loop.c (FCT): Use correct type.
5531         Reported by Matthias Bolte.
5532
5533 2011-05-13  Jim Meyering  <meyering@redhat.com>
5534
5535         maint.mk: three new prohibit_<HDR>_without_use rules
5536         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
5537         (sc_prohibit_stdio-safer_without_use): Likewise.
5538         (sc_prohibit_xfreopen_without_use): Likewise.
5539
5540 2011-05-17  Jim Meyering  <meyering@redhat.com>
5541
5542         announce-gen: fail if the NEWS delta is empty
5543         If there's nothing noteworthy in NEWS, then either you forgot
5544         or you shouldn't be releasing.
5545         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
5546
5547 2011-05-17  Pádraig Brady <P@draigBrady.com>
5548
5549         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
5550         reserved symbols starting with double underscore from the check.
5551
5552 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
5553
5554         intprops: add doc
5555         * doc/intprops.texi: New file, documenting intprops.
5556         * doc/gnulib.texi (Particular Modules): Include it.
5557
5558         verify: add doc to gnulib manual and fix example
5559         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
5560         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
5561         (Compile-time Assertions): Fix example so it can't overflow.
5562
5563 2011-05-17  Jim Meyering  <meyering@redhat.com>
5564
5565         warnings.m4: don't usurp save_CPPFLAGS variable name
5566         * m4/warnings.m4: Prefix local temporary variable name with gl_.
5567
5568         doc: fix typo
5569         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
5570
5571 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
5572             Bruno Haible  <bruno@clisp.org>
5573
5574         doc: Tweak recent change.
5575         * README (Portability guidelines): Tweak new text.
5576         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
5577         Interix 6.1.
5578
5579 2011-05-16  Eric Blake  <eblake@redhat.com>
5580
5581         inttypes: avoid autoconf warning
5582         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
5583         * m4/stdint.m4 (gl_STDINT_H): Likewise.
5584
5585 2011-05-16  Sam Steingold <sds@gnu.org>
5586         and Eric Blake  <eblake@redhat.com>
5587
5588         vc-list-files: accept multiple directory operands
5589         * build-aux/vc-list-files: Iterate over all remaining operands.
5590
5591 2011-05-16  Bruno Haible  <bruno@clisp.org>
5592
5593         Fix confusion regarding deprecated modules.
5594         * modules/calloc (Status, Notice): Mark module as deprecated, not
5595         obsolete.
5596         * modules/fnmatch-posix (Status, Notice): Likewise.
5597         * modules/getdate (Status, Notice): Likewise.
5598         * modules/getopt (Status, Notice): Likewise.
5599         * modules/malloc (Status, Notice): Likewise.
5600         * modules/pipe (Status, Notice): Likewise.
5601         * modules/realloc (Status, Notice): Likewise.
5602         * modules/rename-dest-slash (Status, Notice): Likewise.
5603         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
5604         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
5605         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
5606         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
5607         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
5608
5609 2011-05-16  Bruno Haible  <bruno@clisp.org>
5610
5611         doc: List the target platforms.
5612         * doc/gnulib-intro.texi (Target Platforms): New section.
5613         * doc/gnulib.texi (Introduction): Update menu.
5614         * README (Portability guidelines): Refer to the new section. Update
5615         statement about oldest supported environment. Remove rationale why
5616         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
5617         unportable C89 function.
5618         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
5619         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
5620
5621 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
5622
5623         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
5624
5625 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
5626
5627         intprops-tests: new module
5628         * modules/intprops-tests, tests/test-intprops.c: New files.
5629
5630         intprops: add safe, portable integer overflow checking
5631         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
5632         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
5633         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
5634         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
5635         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
5636         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
5637         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
5638         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
5639         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
5640         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
5641         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
5642
5643 2011-05-12  James Youngman  <jay@gnu.org>
5644
5645         Add a test for glibc's Bugzilla bug #12378.
5646         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
5647         doesn't allow the literal matching of a lone "[" (which is
5648         required by POSIX).
5649         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
5650
5651 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
5652
5653         Sync glibc change fixing Bugzilla bug #12378.
5654         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
5655         beginning and fall back to matching as normal character if the
5656         string ends before the matching ']' is found.  This is what POSIX
5657         requires.
5658
5659 2011-05-13  Eric Blake  <eblake@redhat.com>
5660
5661         getcwd-lgpl: relax test for FreeBSD
5662         * doc/posix-functions/getcwd.texi (getcwd): Document portability
5663         issue.
5664         * tests/test-getcwd-lgpl.c (main): Relax test.
5665         Reported by Matthias Bolte.
5666
5667 2011-05-11  Eric Blake  <eblake@redhat.com>
5668
5669         test-fflush: silence compiler warning
5670         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
5671
5672 2011-05-11  Bruno Haible  <bruno@clisp.org>
5673
5674         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
5675         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
5676         * modules/canonicalize (Depends-on): Add 'nocrash'.
5677         * modules/canonicalize-lgpl (Depends-on): Likewise.
5678         * doc/posix-functions/realpath.texi: Update platforms list.
5679         Reported by Ryan Schmidt <ryandesign@macports.org>.
5680
5681 2011-05-11  Bruno Haible  <bruno@clisp.org>
5682
5683         group-member: Declare function in <unistd.h>.
5684         * lib/unistd.in.h (group_member): New declaration.
5685         * lib/group-member.h: Remove file.
5686         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
5687         * tests/test-unistd-c++.cc: Check signature of group_member.
5688         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
5689         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
5690         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
5691         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
5692         HAVE_GROUP_MEMBER.
5693         * modules/group-member (Files): Remove lib/group-member.h.
5694         (Depends-on): Add unistd. Specify conditions.
5695         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5696         (Include): Change to <unistd.h>.
5697         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
5698         HAVE_GROUP_MEMBER.
5699         * NEWS: Mention the change.
5700         * lib/euidaccess.c: Don't include group-member.h.
5701
5702 2011-05-11  Bruno Haible  <bruno@clisp.org>
5703
5704         group-member: Document module.
5705         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
5706         module.
5707
5708 2011-05-11  Bruno Haible  <bruno@clisp.org>
5709
5710         fclose: Fix mistake earlier today.
5711         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
5712
5713 2011-05-11  Eric Blake  <eblake@redhat.com>
5714
5715         fclose: preserve fflush errors
5716         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
5717         Reported by Jim Meyering.
5718
5719         bootstrap: support a prereq of 'rpcgen -' on RHEL5
5720         * build-aux/bootstrap (check_versions): When no specific version
5721         is required, merely check that the app produces an exit status
5722         that indicates its existence.
5723
5724         maint.mk: drop redundant check
5725         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
5726         the same but better.
5727
5728 2011-05-11  Bruno Haible  <bruno@clisp.org>
5729
5730         fclose: Fix possible link error.
5731         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
5732         unregister_shadow_fd. Improve comments.
5733         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
5734         Eric Blake.
5735
5736 2011-05-11  Jim Meyering  <meyering@redhat.com>
5737
5738         maint.mk: improve "can not" detection and generalize rule name
5739         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
5740         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
5741         Use the same technique as in sc_prohibit_doubled_word, so that
5742         we recognize "can not" also when the words are separated by a newline.
5743         Suggested by Eric Blake.
5744         (perl_filename_lineno_text_): Define.  Factored out of...
5745         (prohibit_doubled_word_): ...here.  Use the new definition.
5746         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
5747         (prohibit_undesirable_word_seq_RE_): New overridable variable.
5748         (ignore_undesirable_word_sequence_RE_): New overridable variable.
5749
5750 2011-05-10  Eric Blake  <eblake@redhat.com>
5751
5752         fclose: avoid double close race when possible
5753         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
5754         all but WINDOWS_SOCKETS.
5755
5756 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
5757
5758         openat: correct new comment
5759         * lib/openat-proc.c (openat_proc_name): Correct the comment.
5760
5761 2011-05-10  Jim Meyering  <meyering@redhat.com>
5762
5763         openat: add comments
5764         * lib/openat-proc.c (openat_proc_name): Add comments,
5765         mostly from Eric Blake.
5766
5767 2011-05-09  Eric Blake  <eblake@redhat.com>
5768
5769         openat: reduce syscalls in first probe of /proc
5770         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
5771         be a directory.  Simplify the probe for .. bugs.
5772         * modules/openat (Depends-on): Drop same-inode.
5773         Reported by Bastien ROUCARIES.
5774
5775 2011-05-09  Jim Meyering  <meyering@redhat.com>
5776
5777         maint.mk: change semantics/name of tight_scope variables
5778         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
5779         Rename variables to align with semantics that make them more useful.
5780
5781         maint.mk: tweak new rule's name not to impinge
5782         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
5783         (sc_tight_scope): Use new rule name rather than $@-0.
5784
5785         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
5786         * top/maint.mk (sc_tight_scope): New rule.
5787         (sc_tight_scope-0): New rule, ifdef'd out.
5788         (_gl_TS_dir): Default.
5789         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
5790         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
5791
5792 2011-05-09  Simon Josefsson  <simon@josefsson.org>
5793
5794         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
5795         Haible <bruno@clisp.org>.
5796
5797 2011-05-08  Bruno Haible  <bruno@clisp.org>
5798
5799         Comments.
5800         * m4/isnanf.m4: Add comment.
5801         * m4/isnanl.m4: Likewise.
5802
5803 2011-05-08  Bruno Haible  <bruno@clisp.org>
5804
5805         glob: Remove obsolete macro.
5806         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
5807
5808 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
5809
5810         intprops: Sun C 5.11 supports __typeof__
5811         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
5812         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
5813         which is new.
5814         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
5815
5816         intprops: switch to usual gnulib indenting and naming
5817         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
5818         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
5819
5820         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
5821
5822 2011-05-08  Jim Meyering  <meyering@redhat.com>
5823
5824         maint.mk: suppress "Entering/Leaving directory" diag in announcement
5825         * top/maint.mk (release-prep): Use make's --no-print-directory
5826         option when generating the announcement.  This eliminates the
5827         pesky "make[2]: Entering/Leaving directory" diagnostics in the
5828         generated announcement template.
5829
5830 2011-05-08  Bruno Haible  <bruno@clisp.org>
5831
5832         tzset: Fix gettimeofday wrapper on Solaris 2.6.
5833         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
5834         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
5835
5836 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
5837
5838         ignore-value, verify: Omit include files from lib_SOURCES.
5839         * modules/ignore-value, modules/verify (Makefile.am):
5840         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
5841         that leads Automake to duplicate use of am__objects_... variables
5842         in Makefile.in.  See
5843         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
5844
5845 2011-05-07  Bruno Haible  <bruno@clisp.org>
5846
5847         fclose: Simplify autoconf macro.
5848         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
5849         defined.
5850
5851 2011-05-07  Bruno Haible  <bruno@clisp.org>
5852
5853         canonicalize-lgpl: Fix autoconf macro ordering bug.
5854         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
5855         gl_STDLIB_H_DEFAULTS.
5856
5857 2011-05-06  Eric Blake  <eblake@redhat.com>
5858
5859         maintainer-makefile: make sc_po_check easier to tune
5860         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
5861         to probe for strings, such as an alternate location for gnulib.
5862
5863         fclose: guarantee behavior on seekable stdin
5864         * modules/fclose (Depends-on): Add fflush.
5865         * doc/posix-functions/fclose.texi (fclose): Document this.
5866         * tests/test-fclose.c (main): Make test for this unconditional.
5867
5868 2011-05-06  Bruno Haible  <bruno@clisp.org>
5869
5870         fflush, fpurge: Relicense under LGPLv2+.
5871         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
5872         * modules/fpurge (License): Likewise.
5873         With permission from Eric Blake and Jim Meyering.
5874         Suggested by Eric Blake.
5875
5876 2011-05-06  Karl Berry  <karl@gnu.org>
5877
5878         * MODULES.html.sh (func_all_modules): remove exit.
5879
5880 2011-05-06  Jim Meyering  <meyering@redhat.com>
5881
5882         maint.mk: use info-gnu@ as the default only for a stable release
5883         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
5884         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
5885         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
5886         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
5887
5888 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
5889
5890         assert-h: new module, which supports C1X-style static_assert
5891         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
5892         * lib/verify.h: Revamp so that this can be copied into assert.h,
5893         while retaining the ability to use it standalone as before.
5894         Rename private identifiers so as not to encroach on the
5895         standard C namespace, since this is now used by assert.h.
5896         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
5897         the old verify_true.
5898         (_GL_VERIFY_TRUE): New macro, with much of the contents of
5899         the old verify_true.  Use _GL_VERIFY_TYPE.
5900         (_GL_VERIFY): New macro, with much of the contents of the old verify.
5901         (static_assert): New macro, if _GL_STATIC_ASSERT_H
5902         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
5903         defined when this file is copied into the replacement assert.h.
5904         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
5905         and _Static_assert is not built in.
5906         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
5907         defined, and use the new macros mentioned above.
5908         * doc/posix-headers/assert.texi: Document this.
5909
5910 2011-05-05  Bruno Haible  <bruno@clisp.org>
5911
5912         fclose, fflush: Respect rules for use of AC_LIBOBJ.
5913         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
5914         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
5915         gl_REPLACE_FCLOSE here.
5916         * modules/fflush (Depends-on): Remove fclose.
5917         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
5918         combination with module 'fclose'.
5919
5920 2011-05-05  Bruno Haible  <bruno@clisp.org>
5921
5922         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
5923         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
5924         gl_FUNC_FFLUSH.
5925         (gl_FUNC_FFLUSH): Use it.
5926         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
5927         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
5928         gl_REPLACE_FSEEKO here.
5929
5930 2011-05-05  Bruno Haible  <bruno@clisp.org>
5931
5932         tzset: Relicense under LGPL.
5933         * modules/tzset (License): Change to LGPL.
5934         No agreement needed; it's a no-op.
5935
5936         strtoimax, strtoumax: Relicense under LGPL.
5937         * modules/strtoimax (License): Change to LGPL.
5938         * modules/strtoumax (License): Likewise.
5939         With permission from Jim Meyering, Paul Eggert:
5940         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
5941         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
5942
5943         getgroups: Relicense under LGPL.
5944         * modules/getgroups (License): Change to LGPL.
5945         With permission from Jim Meyering, Paul Eggert, Eric Blake:
5946         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
5947         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
5948         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5949
5950         nanosleep: Relicense under LGPL.
5951         * modules/nanosleep (License): Change to LGPL.
5952         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
5953         Haible:
5954         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
5955         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
5956         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5957         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
5958
5959         futimens: Relicense under LGPL.
5960         * modules/futimens (License): Change to LGPL.
5961         With permission from Eric Blake:
5962         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5963
5964         fflush: Relicense under LGPL.
5965         * modules/fflush (License): Change to LGPL.
5966         With permission from Eric Blake, Bruno Haible, Jim Meyering:
5967         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5968         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
5969         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
5970
5971         tmpfile: Relicense under LGPL.
5972         * modules/tmpfile (License): Change to LGPL.
5973         With permission from Ben Pfaff:
5974         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
5975
5976         isfinite: Relicense under LGPL.
5977         * modules/isfinite (License): Change to LGPL.
5978         With permission from Ben Pfaff, Bruno Haible:
5979         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
5980         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
5981
5982         acosl..tanl: Relicense under LGPL.
5983         * modules/acosl (License): Change to LGPL.
5984         * modules/asinl (License): Likewise.
5985         * modules/atanl (License): Likewise.
5986         * modules/cosl (License): Likewise.
5987         * modules/expl (License): Likewise.
5988         * modules/logl (License): Likewise.
5989         * modules/sinl (License): Likewise.
5990         * modules/sqrtl (License): Likewise.
5991         * modules/tanl (License): Likewise.
5992         Source code originally from glibc and Paolo Bonzini. Agreements:
5993         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
5994         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
5995
5996 2011-05-05  Bruno Haible  <bruno@clisp.org>
5997
5998         signal: Define sighandler_t.
5999         * lib/signal.in.h (sighandler_t): New type.
6000         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
6001         whether sighandler_t is defined.
6002         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
6003         * modules/signal (Depends-on): Add extensions.
6004         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
6005         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
6006         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
6007
6008 2011-05-05  Eric Blake  <eblake@redhat.com>
6009
6010         maint: remove useless REPLACE_*_H macros
6011         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
6012         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
6013         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
6014         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
6015         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
6016         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
6017         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
6018         * m4/btowc.m4: Update callers.
6019         * m4/dirfd.m4: Likewise.
6020         * m4/duplocale.m4: Likewise.
6021         * m4/fchdir.m4: Likewise.
6022         * m4/fdopendir.m4: Likewise.
6023         * m4/inet_ntop.m4: Likewise.
6024         * m4/inet_pton.m4: Likewise.
6025         * m4/ioctl.m4: Likewise.
6026         * m4/mbrlen.m4: Likewise.
6027         * m4/mbrtowc.m4: Likewise.
6028         * m4/mbsinit.m4: Likewise.
6029         * m4/mbsnrtowcs.m4: Likewise.
6030         * m4/mbsrtowcs.m4: Likewise.
6031         * m4/poll.m4: Likewise.
6032         * m4/setlocale.m4: Likewise.
6033         * m4/wcrtomb.m4: Likewise.
6034         * m4/wcsnrtombs.m4: Likewise.
6035         * m4/wcsrtombs.m4: Likewise.
6036         * m4/wctob.m4: Likewise.
6037         * m4/wcwidth.m4: Likewise.
6038         * modules/posix_spawn: Likewise.
6039         * modules/posix_spawn_file_actions_addclose: Likewise.
6040         * modules/posix_spawn_file_actions_adddup2: Likewise.
6041         * modules/posix_spawn_file_actions_addopen: Likewise.
6042         * modules/posix_spawn_file_actions_destroy: Likewise.
6043         * modules/posix_spawn_file_actions_init: Likewise.
6044         * modules/posix_spawnattr_destroy: Likewise.
6045         * modules/posix_spawnattr_getflags: Likewise.
6046         * modules/posix_spawnattr_getpgroup: Likewise.
6047         * modules/posix_spawnattr_getschedparam: Likewise.
6048         * modules/posix_spawnattr_getschedpolicy: Likewise.
6049         * modules/posix_spawnattr_getsigdefault: Likewise.
6050         * modules/posix_spawnattr_getsigmask: Likewise.
6051         * modules/posix_spawnattr_init: Likewise.
6052         * modules/posix_spawnattr_setflags: Likewise.
6053         * modules/posix_spawnattr_setpgroup: Likewise.
6054         * modules/posix_spawnattr_setschedparam: Likewise.
6055         * modules/posix_spawnattr_setschedpolicy: Likewise.
6056         * modules/posix_spawnattr_setsigdefault: Likewise.
6057         * modules/posix_spawnattr_setsigmask: Likewise.
6058         * modules/posix_spawnp: Likewise.
6059
6060 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
6061
6062         Add option to do-release-commit-and-tag to specify branch.
6063         * build-aux/do-release-commit-and-tag: Add --branch.
6064
6065 2011-05-03  Bruno Haible  <bruno@clisp.org>
6066
6067         Avoid unnecessary compilation units, through conditional dependencies.
6068         * modules/accept (Depends-on): Add conditions to the dependencies.
6069         * modules/acosl (Depends-on): Likewise.
6070         * modules/argz (Depends-on): Likewise.
6071         * modules/asinl (Depends-on): Likewise.
6072         * modules/atanl (Depends-on): Likewise.
6073         * modules/atoll (Depends-on): Likewise.
6074         * modules/bind (Depends-on): Likewise.
6075         * modules/btowc (Depends-on): Likewise.
6076         * modules/canonicalize-lgpl (Depends-on): Likewise.
6077         * modules/ceil (Depends-on): Likewise.
6078         * modules/ceilf (Depends-on): Likewise.
6079         * modules/ceill (Depends-on): Likewise.
6080         * modules/chdir-long (Depends-on): Likewise.
6081         * modules/chown (Depends-on): Likewise.
6082         * modules/close (Depends-on): Likewise.
6083         * modules/connect (Depends-on): Likewise.
6084         * modules/cosl (Depends-on): Likewise.
6085         * modules/dirfd (Depends-on): Likewise.
6086         * modules/dprintf (Depends-on): Likewise.
6087         * modules/dprintf-posix (Depends-on): Likewise.
6088         * modules/error (Depends-on): Likewise.
6089         * modules/euidaccess (Depends-on): Likewise.
6090         * modules/expl (Depends-on): Likewise.
6091         * modules/faccessat (Depends-on): Likewise.
6092         * modules/fchdir (Depends-on): Likewise.
6093         * modules/fclose (Depends-on): Likewise.
6094         * modules/fcntl (Depends-on): Likewise.
6095         * modules/fdopendir (Depends-on): Likewise.
6096         * modules/fflush (Depends-on): Likewise.
6097         * modules/floor (Depends-on): Likewise.
6098         * modules/floorf (Depends-on): Likewise.
6099         * modules/floorl (Depends-on): Likewise.
6100         * modules/fnmatch (Depends-on): Likewise.
6101         * modules/fopen (Depends-on): Likewise.
6102         * modules/fprintf-posix (Depends-on): Likewise.
6103         * modules/frexp (Depends-on): Likewise.
6104         * modules/frexp-nolibm (Depends-on): Likewise.
6105         * modules/frexpl (Depends-on): Likewise.
6106         * modules/frexpl-nolibm (Depends-on): Likewise.
6107         * modules/fseek (Depends-on): Likewise.
6108         * modules/fsusage (Depends-on): Likewise.
6109         * modules/ftell (Depends-on): Likewise.
6110         * modules/ftello (Depends-on): Likewise.
6111         * modules/futimens (Depends-on): Likewise.
6112         * modules/getcwd (Depends-on): Likewise.
6113         * modules/getcwd-lgpl (Depends-on): Likewise.
6114         * modules/getdelim (Depends-on): Likewise.
6115         * modules/getdomainname (Depends-on): Likewise.
6116         * modules/getgroups (Depends-on): Likewise.
6117         * modules/gethostname (Depends-on): Likewise.
6118         * modules/getline (Depends-on): Likewise.
6119         * modules/getlogin_r (Depends-on): Likewise.
6120         * modules/getopt-posix (Depends-on): Likewise.
6121         * modules/getpeername (Depends-on): Likewise.
6122         * modules/getsockname (Depends-on): Likewise.
6123         * modules/getsockopt (Depends-on): Likewise.
6124         * modules/getsubopt (Depends-on): Likewise.
6125         * modules/getusershell (Depends-on): Likewise.
6126         * modules/glob (Depends-on): Likewise.
6127         * modules/grantpt (Depends-on): Likewise.
6128         * modules/iconv_open (Depends-on): Likewise.
6129         * modules/iconv_open-utf (Depends-on): Likewise.
6130         * modules/inet_ntop (Depends-on): Likewise.
6131         * modules/inet_pton (Depends-on): Likewise.
6132         * modules/ioctl (Depends-on): Likewise.
6133         * modules/isapipe (Depends-on): Likewise.
6134         * modules/isfinite (Depends-on): Likewise.
6135         * modules/isinf (Depends-on): Likewise.
6136         * modules/lchown (Depends-on): Likewise.
6137         * modules/ldexpl (Depends-on): Likewise.
6138         * modules/link (Depends-on): Likewise.
6139         * modules/linkat (Depends-on): Likewise.
6140         * modules/listen (Depends-on): Likewise.
6141         * modules/logl (Depends-on): Likewise.
6142         * modules/lstat (Depends-on): Likewise.
6143         * modules/mbrlen (Depends-on): Likewise.
6144         * modules/mbrtowc (Depends-on): Likewise.
6145         * modules/mbsinit (Depends-on): Likewise.
6146         * modules/mbsnrtowcs (Depends-on): Likewise.
6147         * modules/mbsrtowcs (Depends-on): Likewise.
6148         * modules/mbtowc (Depends-on): Likewise.
6149         * modules/memcmp (Depends-on): Likewise.
6150         * modules/mkdir (Depends-on): Likewise.
6151         * modules/mkdtemp (Depends-on): Likewise.
6152         * modules/mkfifo (Depends-on): Likewise.
6153         * modules/mkfifoat (Depends-on): Likewise.
6154         * modules/mknod (Depends-on): Likewise.
6155         * modules/mkostemp (Depends-on): Likewise.
6156         * modules/mkostemps (Depends-on): Likewise.
6157         * modules/mkstemp (Depends-on): Likewise.
6158         * modules/mkstemps (Depends-on): Likewise.
6159         * modules/mktime (Depends-on): Likewise.
6160         * modules/nanosleep (Depends-on): Likewise.
6161         * modules/open (Depends-on): Likewise.
6162         * modules/openat (Depends-on): Likewise.
6163         * modules/perror (Depends-on): Likewise.
6164         * modules/poll (Depends-on): Likewise.
6165         * modules/popen (Depends-on): Likewise.
6166         * modules/posix_spawn (Depends-on): Likewise.
6167         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
6168         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
6169         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
6170         * modules/posix_spawnp (Depends-on): Likewise.
6171         * modules/pread (Depends-on): Likewise.
6172         * modules/printf-posix (Depends-on): Likewise.
6173         * modules/ptsname (Depends-on): Likewise.
6174         * modules/putenv (Depends-on): Likewise.
6175         * modules/pwrite (Depends-on): Likewise.
6176         * modules/readline (Depends-on): Likewise.
6177         * modules/readlink (Depends-on): Likewise.
6178         * modules/readlinkat (Depends-on): Likewise.
6179         * modules/recv (Depends-on): Likewise.
6180         * modules/recvfrom (Depends-on): Likewise.
6181         * modules/regex (Depends-on): Likewise.
6182         * modules/remove (Depends-on): Likewise.
6183         * modules/rename (Depends-on): Likewise.
6184         * modules/renameat (Depends-on): Likewise.
6185         * modules/rmdir (Depends-on): Likewise.
6186         * modules/round (Depends-on): Likewise.
6187         * modules/roundf (Depends-on): Likewise.
6188         * modules/roundl (Depends-on): Likewise.
6189         * modules/rpmatch (Depends-on): Likewise.
6190         * modules/select (Depends-on): Likewise.
6191         * modules/send (Depends-on): Likewise.
6192         * modules/sendto (Depends-on): Likewise.
6193         * modules/setenv (Depends-on): Likewise.
6194         * modules/setlocale (Depends-on): Likewise.
6195         * modules/setsockopt (Depends-on): Likewise.
6196         * modules/shutdown (Depends-on): Likewise.
6197         * modules/sigaction (Depends-on): Likewise.
6198         * modules/signbit (Depends-on): Likewise.
6199         * modules/sigprocmask (Depends-on): Likewise.
6200         * modules/sinl (Depends-on): Likewise.
6201         * modules/sleep (Depends-on): Likewise.
6202         * modules/snprintf (Depends-on): Likewise.
6203         * modules/snprintf-posix (Depends-on): Likewise.
6204         * modules/socket (Depends-on): Likewise.
6205         * modules/sprintf-posix (Depends-on): Likewise.
6206         * modules/sqrtl (Depends-on): Likewise.
6207         * modules/stat (Depends-on): Likewise.
6208         * modules/strchrnul (Depends-on): Likewise.
6209         * modules/strdup-posix (Depends-on): Likewise.
6210         * modules/strerror (Depends-on): Likewise.
6211         * modules/strerror_r-posix (Depends-on): Likewise.
6212         * modules/strndup (Depends-on): Likewise.
6213         * modules/strnlen (Depends-on): Likewise.
6214         * modules/strptime (Depends-on): Likewise.
6215         * modules/strsep (Depends-on): Likewise.
6216         * modules/strsignal (Depends-on): Likewise.
6217         * modules/strstr-simple (Depends-on): Likewise.
6218         * modules/strtod (Depends-on): Likewise.
6219         * modules/strtoimax (Depends-on): Likewise.
6220         * modules/strtok_r (Depends-on): Likewise.
6221         * modules/strtoumax (Depends-on): Likewise.
6222         * modules/symlink (Depends-on): Likewise.
6223         * modules/symlinkat (Depends-on): Likewise.
6224         * modules/tanl (Depends-on): Likewise.
6225         * modules/tcgetsid (Depends-on): Likewise.
6226         * modules/tmpfile (Depends-on): Likewise.
6227         * modules/trunc (Depends-on): Likewise.
6228         * modules/truncf (Depends-on): Likewise.
6229         * modules/truncl (Depends-on): Likewise.
6230         * modules/uname (Depends-on): Likewise.
6231         * modules/unlink (Depends-on): Likewise.
6232         * modules/unlockpt (Depends-on): Likewise.
6233         * modules/unsetenv (Depends-on): Likewise.
6234         * modules/usleep (Depends-on): Likewise.
6235         * modules/utimensat (Depends-on): Likewise.
6236         * modules/vasprintf (Depends-on): Likewise.
6237         * modules/vdprintf (Depends-on): Likewise.
6238         * modules/vdprintf-posix (Depends-on): Likewise.
6239         * modules/vfprintf-posix (Depends-on): Likewise.
6240         * modules/vprintf-posix (Depends-on): Likewise.
6241         * modules/vsnprintf (Depends-on): Likewise.
6242         * modules/vsnprintf-posix (Depends-on): Likewise.
6243         * modules/vsprintf-posix (Depends-on): Likewise.
6244         * modules/wcrtomb (Depends-on): Likewise.
6245         * modules/wcscasecmp (Depends-on): Likewise.
6246         * modules/wcscspn (Depends-on): Likewise.
6247         * modules/wcsdup (Depends-on): Likewise.
6248         * modules/wcsncasecmp (Depends-on): Likewise.
6249         * modules/wcsnrtombs (Depends-on): Likewise.
6250         * modules/wcspbrk (Depends-on): Likewise.
6251         * modules/wcsrtombs (Depends-on): Likewise.
6252         * modules/wcsspn (Depends-on): Likewise.
6253         * modules/wcsstr (Depends-on): Likewise.
6254         * modules/wcstok (Depends-on): Likewise.
6255         * modules/wcswidth (Depends-on): Likewise.
6256         * modules/wctob (Depends-on): Likewise.
6257         * modules/wctomb (Depends-on): Likewise.
6258         * modules/wctype (Depends-on): Likewise.
6259         * modules/wcwidth (Depends-on): Likewise.
6260         * modules/write (Depends-on): Likewise.
6261
6262 2011-05-03  Bruno Haible  <bruno@clisp.org>
6263
6264         Support for conditional dependencies.
6265         * doc/gnulib.texi (Module description): Document the syntax of
6266         conditional dependencies.
6267         * gnulib-tool: New option --conditional-dependencies.
6268         (func_usage): Document it.
6269         (cond_dependencies): New variable.
6270         (func_get_automake_snippet_conditional,
6271         func_get_automake_snippet_unconditional): New functions, extracted from
6272         func_get_automake_snippet.
6273         (func_get_automake_snippet): Use them.
6274         (sed_first_32_chars): New variable.
6275         (func_module_shellfunc_name): New function.
6276         (func_module_shellvar_name): New function.
6277         (func_module_conditional_name): New function.
6278         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
6279         func_cond_module_condition): New functions.
6280         (func_modules_transitive_closure): Add support for conditional
6281         dependencies.
6282         (func_emit_lib_Makefile_am): For a conditional module, enclose the
6283         conditional automake snippet in an automake conditional.
6284         (func_emit_autoconf_snippets): Emit shell functions that contain the
6285         code for conditional modules.
6286         (func_import, func_create_testdir): Update specification.
6287
6288 2011-05-03  Eric Blake  <eblake@redhat.com>
6289
6290         test-getaddrinfo: report error information
6291         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
6292
6293 2011-05-03  Jim Meyering  <meyering@redhat.com>
6294
6295         bootstrap: avoid build failure when $GZIP is set
6296         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
6297         program name.  If defined at all, it is supposed to list gzip options.
6298         Reported by Alan Curry in http://debbugs.gnu.org/8609
6299
6300 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
6301
6302         readme-release: new module with release instructions
6303         * modules/readme-release: New module.
6304         * top/README-release: New file, from coreutils, grep, diffutils.
6305         * MODULES.html.sh (Support for maintaining and releasing): Add it.
6306
6307 2011-05-02  Eric Blake  <eblake@redhat.com>
6308
6309         fflush: also replace fclose when fixing fflush
6310         * modules/fflush (Depends-on): Add fclose.
6311         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
6312         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
6313         memstreams with no backing fd.
6314         * doc/posix-functions/fclose.texi (fclose): Document the use of
6315         fflush module to fix the bug.
6316         * tests/test-fclose.c (main): Relax test when fclose is used in
6317         isolation.
6318
6319         fclose: add some tests
6320         * modules/fclose-tests: New test module.
6321         * tests/test-fclose.c: New file.
6322         * doc/posix-functions/fclose.texi (fclose): Document the bug.
6323
6324         fclose: reduced dependencies
6325         * modules/fclose (Depends-on): Switch from fflush/fseeko to
6326         simpler lseek.
6327         * lib/fclose.c (rpl_fclose): Likewise.
6328         Reported by Simon Josefsson.
6329
6330         exit: drop remaining clients
6331         * modules/argmatch (Depends-on): Replace exit with stdlib.
6332         * modules/copy-file (Depends-on): Likewise.
6333         * modules/execute (Depends-on): Likewise.
6334         * modules/exitfail (Depends-on): Likewise.
6335         * modules/obstack (Depends-on): Likewise.
6336         * modules/pagealign_alloc (Depends-on): Likewise.
6337         * modules/pipe-filter-gi (Depends-on): Likewise.
6338         * modules/pipe-filter-ii (Depends-on): Likewise.
6339         * modules/savewd (Depends-on): Likewise.
6340         * modules/spawn-pipe (Depends-on): Likewise.
6341         * modules/wait-process (Depends-on): Likewise.
6342         * modules/xsetenv (Depends-on): Likewise.
6343         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
6344         * modules/git-merge-changelog (Depends-on): Likewise.
6345         * modules/long-options (Depends-on): Likewise.
6346         * modules/pt_chown (Depends-on): Likewise.
6347         * modules/sysexits (Depends-on): Likewise.
6348
6349         freading: relax license from LGPLv3+ to LGPLv2+
6350         * modules/freading (License): Relax LGPL version.
6351
6352 2011-05-02  Bruno Haible  <bruno@clisp.org>
6353
6354         fchdir: Remove unused dependencies.
6355         * modules/fchdir (Depends-on): Remove include_next.
6356
6357 2011-05-02  Bruno Haible  <bruno@clisp.org>
6358
6359         gnulib-tool: Refactor.
6360         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
6361         from func_emit_autoconf_snippets.
6362         (func_emit_autoconf_snippets): Use it.
6363
6364 2011-05-02  Simon Josefsson  <simon@josefsson.org>
6365
6366         * NEWS: Document removal of 'exit'.
6367         * modules/exit: Remove file.
6368
6369 2011-05-01  Bruno Haible  <bruno@clisp.org>
6370
6371         Update DEPENDENCIES.
6372         * DEPENDENCIES (gettext): Recommend the newest release.
6373         Reported by Simon Josefsson.
6374
6375 2011-05-01  Bruno Haible  <bruno@clisp.org>
6376
6377         gnulib-tool: Reduce code duplication.
6378         * gnulib-tool (func_emit_autoconf_snippets): New function.
6379         (func_import, func_create_testdir): Use it.
6380
6381 2011-04-30  Eric Blake  <eblake@redhat.com>
6382
6383         fclose: don't fail on non-seekable input stream
6384         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
6385         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
6386         since fflush is allowed to fail in that case.
6387
6388 2011-04-30  Bruno Haible  <bruno@clisp.org>
6389
6390         dup3: cleanup
6391         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
6392
6393 2011-04-30  Bruno Haible  <bruno@clisp.org>
6394
6395         netdb: Make it work in C++ mode.
6396         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
6397         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
6398         module.
6399         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
6400         gl_MODULE_INDICATOR_FOR_TESTS.
6401         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
6402         * modules/netdb-c++-tests: New file.
6403         * tests/test-netdb-c++.cc: New file.
6404
6405 2011-04-30  Bruno Haible  <bruno@clisp.org>
6406
6407         New modules 'vfscanf', 'vscanf'.
6408         * modules/vfscanf: New file.
6409         * modules/vscanf: New file.
6410         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
6411         here.
6412         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
6413         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
6414
6415 2011-04-30  Bruno Haible  <bruno@clisp.org>
6416
6417         passfd: Add comments.
6418         * lib/passfd.c: Add comments about platforms.
6419
6420 2011-04-30  Bruno Haible  <bruno@clisp.org>
6421
6422         sys_uio: Make <sys/uio.h> self-contained.
6423         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
6424         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
6425
6426 2011-04-30  Bruno Haible  <bruno@clisp.org>
6427
6428         sys_socket: Ensure 'struct iovec' definition.
6429         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
6430         <sys/socket.h>.
6431         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
6432
6433 2011-04-30  Bruno Haible  <bruno@clisp.org>
6434
6435         sys_uio: Protect definition of 'struct iovec'.
6436         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
6437         it as a C struct.
6438
6439 2011-04-30  Bruno Haible  <bruno@clisp.org>
6440
6441         manywarnings: fix indentation
6442         * m4/manywarnings.m4: Indent by 2 spaces consistently.
6443
6444 2011-04-30  Pádraig Brady <P@draigBrady.com>
6445
6446         manywarnings: add -Wno-missing-field-initializers if needed.
6447         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
6448         option if it's needed to allow initialization with { 0, }
6449
6450 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
6451
6452         announce-gen: cosmetic improvement
6453         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
6454
6455 2011-04-29  Jim Meyering  <meyering@redhat.com>
6456
6457         vc-list-files: indent with spaces, not TABs
6458         * build-aux/vc-list-files: Convert leading TABs to spaces,
6459         to match the style of most other files in gnulib.
6460
6461         announce-gen: indent with spaces, not TABs
6462         * build-aux/announce-gen: Convert all TABs to spaces, to match
6463         the style of most other files in gnulib.
6464
6465 2011-04-29  Eric Blake  <eblake@redhat.com>
6466
6467         quotearg: avoid uninitialized variable use
6468         * lib/quotearg.c (quoting_options_from_style): Initialize
6469         remaining fields, and ensure that custom styles are only used via
6470         quoting_options rather than quoting_style.
6471
6472 2011-04-29  Jim Meyering  <meyering@redhat.com>
6473
6474         maint.mk: remove unused VC-tag variable
6475         * top/maint.mk (VC-tag): Remove unused variable.
6476
6477 2011-04-29  Bruno Haible  <bruno@clisp.org>
6478
6479         netdb: fix gai_strerror replacements
6480         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
6481         * modules/netdb: Substitute it.
6482
6483 2011-04-29  Jim Meyering  <meyering@redhat.com>
6484
6485         test-getcwd.c: avoid new set-but-not-used warning
6486         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
6487         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
6488         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
6489         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
6490
6491         test-hash.c: avoid a new shadowing warning
6492         * tests/test-hash.c (main): Don't shadow "dup".
6493
6494 2011-04-28  Eric Blake  <eblake@redhat.com>
6495
6496         getaddrinfo: fix gai_strerror signature
6497         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
6498         and work around mingw with UNICODE defined.
6499         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
6500         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
6501         * modules/netdb (Makefile.am): Substitute it.
6502         * lib/netdb.in.h (gai_strerror): Declare replacement.
6503         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
6504         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
6505         the fix.
6506
6507         getsockopt: avoid compiler warning
6508         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
6509         Reported by Matthias Bolte.
6510
6511         tests: drop unused link dependency
6512         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
6513         * modules/dirent-safer-tests (Makefile.am): Likewise.
6514         * modules/fdopendir-tests (Makefile.am): Likewise.
6515         * modules/mkfifoat-tests (Makefile.am): Likewise.
6516         * modules/openat-safer-tests (Makefile.am): Likewise.
6517         * modules/openat-tests (Makefile.am): Likewise.
6518         * modules/readlinkat-tests (Makefile.am): Likewise.
6519         * modules/symlinkat-tests (Makefile.am): Likewise.
6520         * modules/linkat-tests (Makefile.am): Likewise.
6521         (Depends-on): Switch to filenamecat-lgpl.
6522         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
6523         LIBINTL.
6524         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
6525         * tests/test-linkat.c (main): Don't require xalloc.
6526
6527         hash, mgetgroups: drop xalloc dependency
6528         * lib/hash.c (includes): Adjust includes.
6529         * lib/mgetgroups.c (includes): Likewise.
6530         (xgetgroups): Move...
6531         * lib/xgetgroups.c: ...to new file.
6532         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
6533         * modules/xgetgroups: New file, split from...
6534         * modules/mgetgroups: ...here.
6535         (Depends-on): Add xalloc-oversized.
6536         * modules/hash (Depends-on): Likewise.
6537         * modules/hash-tests (Depends-on): Drop xalloc.
6538         (test_hash_LDADD): Drop unused library.
6539         * tests/test-hash.c (main): Break xalloc dependency.
6540         (includes): Drop unused include.
6541
6542         xalloc-oversized: new module
6543         * modules/xalloc-oversized: New module.
6544         * modules/xalloc (Depends-on): Add it.
6545         * lib/xalloc.h (xalloc_oversized): Move...
6546         * lib/xalloc-oversized.h: ...into new file.
6547
6548         utimecmp: drop dependency on xmalloc
6549         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
6550         due to memory pressure.
6551         * modules/utimecmp (Depends-on): Drop xalloc.
6552
6553 2011-04-27  Eric Blake  <eblake@redhat.com>
6554
6555         getcwd: fix mingw bugs
6556         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
6557         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
6558         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
6559
6560 2011-04-27  Bruno Haible  <bruno@clisp.org>
6561
6562         mkstemps: Ensure declaration on MacOS X 10.5.
6563         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
6564         * doc/glibc-functions/mkstemps.texi: Document header file problem on
6565         MacOS X.
6566
6567 2011-04-27  Bruno Haible  <bruno@clisp.org>
6568
6569         mkstemp: More documentation.
6570         * doc/posix-functions/mkstemp.texi: Document header file problem on
6571         MacOS X.
6572
6573 2011-04-27  Bruno Haible  <bruno@clisp.org>
6574
6575         mkstemp: Tweak configure message when cross-compiling.
6576         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
6577         result as a guess.
6578
6579 2011-04-27  Bruno Haible  <bruno@clisp.org>
6580
6581         clean-temp: Clarify what it does.
6582         * lib/clean-temp.h: Add more comments.
6583         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
6584         module.
6585         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
6586         * doc/glibc-functions/mkstemps.texi: Likewise.
6587         * doc/glibc-functions/mkostemps.texi: Likewise.
6588
6589 2011-04-27  Eric Blake  <eblake@redhat.com>
6590
6591         fchdir: avoid extra chdir and fix test
6592         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
6593         getcwd-lgpl.
6594         * lib/fchdir.c (get_name): Any absolute name will do; it does not
6595         have to be canonical.
6596         (canonicalize_file_name): Drop unused macro.
6597         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
6598
6599         filenamecat-lgpl: fix licence
6600         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
6601         when it was first created.
6602
6603         linkat, renameat: add missing dependency
6604         * modules/linkat (Depends-on): Require getcwd-lgpl.
6605         * modules/renameat (Depends-on): Likewise.
6606
6607         tests: reduce dependencies
6608         * tests/test-linkat.c (main): Use lighter-weight getcwd.
6609         * tests/test-renameat.c (main): Likewise.
6610         * modules/linkat-tests (Depends-on): Relax dependency.
6611         * modules/renameat-tests (Depends-on): Likewise.
6612         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
6613         dependency explicit.
6614
6615         save-cwd: reduce default dependency
6616         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
6617         * lib/save-cwd.c: Update comments.
6618         * NEWS: Document the semantic change.
6619
6620         getcwd: enhance tests
6621         * tests/test-getcwd-lgpl.c: New file, taken from...
6622         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
6623         repeat long path stress tests from m4 probe.
6624         * modules/getcwd-lgpl-tests: New module.
6625         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
6626         * m4/getcwd-abort-bug.m4: Update comment.
6627         * m4/getcwd-path-max.m4: Likewise.
6628
6629         getcwd-lgpl: new module
6630         * modules/getcwd-lgpl: New module.
6631         * lib/getcwd-lgpl.c: New file.
6632         * doc/posix-functions/getcwd.texi (getcwd): Document it.
6633         * MODULES.html.sh (lacking POSIX:2008): Likewise.
6634         * modules/getcwd (configure.ac): Set C witness.
6635         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
6636
6637         getcwd: tweak comments
6638         * m4/getcwd-abort-bug.m4: Fix comments.
6639         * m4/getcwd-path-max.m4: Likewise.
6640         * m4/getcwd.m4: Likewise.
6641
6642 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
6643         and Eric Blake  <eblake@redhat.com>
6644
6645         mkstemp: replace if system version uses wrong permissions
6646         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
6647         read/write mode bits set in file created by mkstemp.
6648         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
6649
6650 2011-04-27  Eric Blake  <eblake@redhat.com>
6651
6652         passfd: avoid compiler warning
6653         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
6654         Reported by Laine Stump.
6655
6656 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
6657
6658         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
6659         required by the NetBSD (and perhaps other 4.4BSD derived) join.
6660
6661 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
6662         and Eric Blake  <eblake@redhat.com>
6663
6664         mkstemp: mention clean-temp module
6665         * lib/mkstemp.c: Add comment.
6666         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
6667
6668 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
6669
6670         inttypes: also provide default values for 32-bit tests
6671         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
6672         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
6673
6674 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
6675
6676         strtoumax: remove dependency on strtoimax
6677         This is like the strtoull change of yesterday.
6678         * modules/strtoumax (Files): Add lib/strtoimax.c.
6679         (Depends-on): Remove strtoimax and add verify.
6680
6681         inttypes-incomplete: new module
6682         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
6683         all but the PRI* and SCN* parts of gl_INTTYPES_H.
6684         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
6685         of gl_INTTYPES_H.
6686         (gl_INTTYPES_H): Rewrite in terms of these new macros.
6687         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
6688         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
6689         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
6690         * modules/strtoumax, modules/xstrtol (Depends-on):
6691         Depend on inttypes-incomplete, not inttypes.
6692         * modules/inttypes-incomplete: New module, containing the contents
6693         of the old modules/inttypes module, except that the Files: section
6694         omits m4/inttypes-pri.m4, and the configure.ac section invokes
6695         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
6696         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
6697         (Depends-on): Depend only on inttypes-incomplete.
6698         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
6699
6700         inttypes: omit now-redundant strtoimax and strtoumax work
6701         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
6702         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
6703
6704         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
6705         This supports apps that need pointers to strtoimax and strtoumax,
6706         and ports to HP-UX 11.00 64.bit, which has macros that expand to
6707         nonexistent functions.  See
6708         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
6709         et seq.
6710         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
6711         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
6712         a macro.
6713         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
6714
6715 2011-04-25  Simon Josefsson  <simon@josefsson.org>
6716
6717         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
6718
6719 2011-04-25  Bruno Haible  <bruno@clisp.org>
6720
6721         strtol, strtoul: Mark modules as obsolete.
6722         * modules/strtol (Status, Notice): New sections.
6723         * modules/strtoul (Status, Notice): New sections.
6724
6725 2011-04-25  Bruno Haible  <bruno@clisp.org>
6726
6727         strtod: Remove check for strtod, unless supporting old platforms.
6728         * modules/strtod-obsolete: New file.
6729         * m4/strtod-obsolete.m4: New file.
6730         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
6731         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
6732         * modules/strtod (Depends-on): Add strtod-obsolete.
6733         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
6734
6735 2011-04-25  Bruno Haible  <bruno@clisp.org>
6736
6737         strcase: Make module obsolete.
6738         * modules/strcase (Status, Notice): New sections.
6739
6740 2011-04-25  Bruno Haible  <bruno@clisp.org>
6741
6742         dup2: Remove check for dup2, unless supporting old obsolete platforms.
6743         * modules/dup2-obsolete: New file.
6744         * m4/dup2-obsolete.m4: New file.
6745         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
6746         gl_FUNC_DUP2_OBSOLETE is not also defined.
6747         * modules/dup2 (Depends-on): Add dup2-obsolete.
6748         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
6749
6750 2011-04-25  Bruno Haible  <bruno@clisp.org>
6751
6752         strnlen: Avoid memchr related link error on old obsolete platforms.
6753         * modules/memchr-obsolete: New file.
6754         * m4/memchr-obsolete.m4: New file.
6755         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
6756         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
6757         * modules/memchr (Depends-on): Add memchr-obsolete.
6758         * modules/strnlen (Depends-on): Likewise.
6759         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
6760
6761 2011-04-25  Jim Meyering  <meyering@redhat.com>
6762
6763         maint.mk: makefile_at_at_check extend and clean up
6764         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
6765         in addition to */Makefile.am.
6766         Exempt legitimate uses of @VAR@ notation, e.g.,
6767         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
6768         Remove obsolete coreutils-specific comment.
6769         Prompted by discussion here:
6770         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
6771
6772 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
6773
6774         strtoul: remove dependency on strtol
6775         This is so that 'configure' need not check for strtol merely because
6776         the application needs strtoul.
6777         * modules/strtoul (Files): Add lib/strtol.c.
6778         (Depends-on): Remove strtol.
6779
6780         strtoull: remove dependency on strtoul
6781         This is like the strtoll change.
6782         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
6783         (Depends-on): Remove strtoul.
6784
6785         strtoll: remove dependency on strtol
6786         This is so that 'configure' need not check for strtol merely because
6787         the application needs strtoll.
6788         * modules/strtoll (Files): Add lib/strtol.c.
6789         (Depends-on): Remove strtol.
6790
6791 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6792
6793         inttypes: Move some configure check to module 'imaxdiv'.
6794         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
6795         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
6796         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
6797
6798 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6799
6800         inttypes: Move some configure check to module 'imaxabs'.
6801         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
6802         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
6803         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
6804
6805 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6806
6807         inttypes: Remove configure tests that are not needed since 2009-12-31.
6808         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
6809         gl_cv_header_working_inttypes_h.
6810
6811 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6812
6813         * modules/strnlen (Depends-on): Remove memchr.
6814         The strnlen implementation doesn't need the memchr module's fixes; see
6815         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
6816
6817         strtol: remove dependency on wchar
6818         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
6819         * modules/strtol (Depends-on): Remove wchar.
6820
6821 2011-04-21  Eric Blake  <eblake@redhat.com>
6822
6823         passfd: fix test regression on Linux
6824         * modules/passfd-tests (configure.ac): Correct socketpair check.
6825
6826         passfd: speed up configure and drop unused code
6827         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
6828         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
6829         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
6830         Instead of probing at configure for unix_scm_rights_bsd44_way,
6831         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
6832         check to a struct member probe.
6833         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
6834         (sendfd, recvfd): Update preprocessor checks.
6835         * modules/passfd (Files): Reflect rename, and drop unused file.
6836         (Depends-on): Drop unused dependency.
6837
6838         passfd: allow compilation on mingw
6839         * modules/sys_socket (Depends-on): Add sys_uio.
6840         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
6841         iovec and a minimal struct msghdr.
6842         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
6843         * tests/test-sys_socket.c (main): Enhance test.
6844         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
6845         guaranteed to provide what we need.
6846         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
6847         * modules/passfd-tests (Depends-on): Add sys_wait.
6848         * tests/test-passfd.c (main): Skip test on mingw, for now.
6849         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
6850         partial 'struct msghdr' implementation.
6851
6852         sys_uio: new module
6853         * modules/sys_uio: New module.
6854         * modules/sys_uio-tests: Likewise.
6855         * lib/sys_uio.in.h: New file.
6856         * m4/sys_uio_h.m4: Likewise.
6857         * tests/test-sys_uio.c: Likewise.
6858         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
6859         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
6860
6861 2011-04-20  Jim Meyering  <meyering@redhat.com>
6862
6863         useless-if-before-free: avoid false-positive
6864         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
6865         disjunct so that it too requires a terminating ";".  Without that,
6866         this script would identify as useless one statement from gcc that
6867         was not:
6868           if (aligned_ptr)
6869             free (((void **) aligned_ptr) [-1]);
6870
6871 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
6872
6873         doc: update users.txt.
6874         * users.txt: Add barcode.
6875
6876 2011-04-19  Bruno Haible  <bruno@clisp.org>
6877
6878         ioctl: Remove link dependency on native Windows.
6879         * lib/fd-hook.h: Renamed from lib/close-hook.h.
6880         (gl_close_fn, gl_ioctl_fn): New types.
6881         (struct fd_hook): Renamed from struct close_hook. Change type of
6882         private_close_fn field. Add private_ioctl_fn field.
6883         (close_hook_fn): Add parameter for primary close method.
6884         (execute_close_hooks, execute_all_close_hooks): Likewise.
6885         (ioctl_hook_fn): New type.
6886         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
6887         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
6888         argument.
6889         (unregister_fd_hook): Renamed from unregister_close_hook.
6890         * lib/fd-hook.c: Renamed from lib/close-hook.c.
6891         Don't include <unistd.h>.
6892         (close): Remove undef.
6893         (anchor): Update.
6894         (execute_close_hooks): Add argument for primary close method.
6895         (execute_all_close_hooks): Likewise.
6896         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
6897         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
6898         argument. Allow each argument to be NULL.
6899         (unregister_fd_hook): Renamed from unregister_close_hook.
6900         * lib/close.c (rpl_close): Pass 'close' function pointer to
6901         execute_all_close_hooks.
6902         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
6903         (primary_ioctl): New function.
6904         (ioctl): Don't call ioctlsocket here. Instead, call
6905         execute_all_ioctl_hooks.
6906         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
6907         close method.
6908         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
6909         (fd_sockets_hook): Renamed from close_sockets_hook.
6910         (gl_sockets_startup, gl_sockets_cleanup): Update.
6911         * modules/fd-hook: Renamed from modules/close-hook. Update.
6912         * modules/close (Depends-on): Add fd-hook, remove close-hook.
6913         * modules/sockets (Depends-on): Likewise.
6914         * modules/ioctl (Depends-on): Add fd-hook.
6915         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
6916         GNULIB_SOCKET.
6917
6918 2011-04-19  Bruno Haible  <bruno@clisp.org>
6919
6920         Move the support of O_NONBLOCK in open() to the 'open' module.
6921         * modules/nonblocking (Depends-on): Remove 'open'.
6922         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
6923         gl_cv_have_open_O_NONBLOCK.
6924         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
6925         O_NONBLOCK support.
6926         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
6927
6928 2011-04-17  Bruno Haible  <bruno@clisp.org>
6929
6930         pipe2: Simplify code.
6931         * lib/pipe2.c (pipe2): Reduce code duplication.
6932
6933 2011-04-17  Bruno Haible  <bruno@clisp.org>
6934
6935         nonblocking: Add comment.
6936         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
6937
6938 2011-04-17  Bruno Haible  <bruno@clisp.org>
6939
6940         nonblocking: Add tests for sockets.
6941         * tests/test-nonblocking-socket.sh: New file.
6942         * tests/test-nonblocking-socket-main.c: New file.
6943         * tests/test-nonblocking-socket-child.c: New file.
6944         * tests/test-nonblocking-socket.h: New file.
6945         * tests/socket-server.h: New file.
6946         * tests/socket-client.h: New file.
6947         * modules/nonblocking-socket-tests: New file.
6948         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
6949
6950 2011-04-17  Bruno Haible  <bruno@clisp.org>
6951
6952         nonblocking: Add tests for pipes.
6953         * tests/test-nonblocking-pipe.sh: New file.
6954         * tests/test-nonblocking-pipe-main.c: New file.
6955         * tests/test-nonblocking-pipe-child.c: New file.
6956         * tests/test-nonblocking-pipe.h: New file.
6957         * tests/test-nonblocking-writer.h: New file.
6958         * tests/test-nonblocking-reader.h: New file.
6959         * tests/test-nonblocking-misc.h: New file.
6960         * modules/nonblocking-pipe-tests: New file.
6961         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
6962
6963 2011-04-16  Bruno Haible  <bruno@clisp.org>
6964
6965         gettext: Clarify the needed programmer actions.
6966         * modules/gettext (Notice): New field.
6967         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
6968
6969 2011-04-16  Bruno Haible  <bruno@clisp.org>
6970
6971         strchrnul: Tweak last commit.
6972         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
6973         bug.
6974         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
6975         as in _GL_FUNCDECL_SYS.
6976         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
6977         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
6978
6979 2011-04-15  Eric Blake  <eblake@redhat.com>
6980
6981         strchrnul: work around cygwin bug
6982         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
6983         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
6984         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
6985         * modules/string (Makefile.am): Substitute it.
6986         * lib/string.in.h (strchrnul): Use it.
6987
6988 2011-04-15  Bruno Haible  <bruno@clisp.org>
6989
6990         Don't require lib/stdio-write.c when only module 'stdio' is used.
6991         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
6992         invocation.
6993         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
6994
6995 2011-04-14  Bruno Haible  <bruno@clisp.org>
6996
6997         Support non-blocking pipe I/O in read() on native Windows.
6998         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
6999         (read): New declaration.
7000         * lib/read.c: New file.
7001         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
7002         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
7003         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
7004         vscanf): New declarations.
7005         * lib/stdio-read.c: New file.
7006         * m4/read.m4: New file.
7007         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
7008         REPLACE_READ.
7009         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
7010         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
7011         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
7012         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
7013         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
7014         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
7015         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
7016         * modules/read: New file.
7017         * modules/nonblocking (Files): Add lib/stdio-read.c.
7018         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
7019         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
7020         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
7021         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
7022         * modules/pread (Depends-on): Add read.
7023         * modules/safe-read (Depends-on): Likewise.
7024         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
7025         gets, scanf, vfscanf, vscanf): Verify signatures.
7026         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
7027         problem with non-blocking pipes.
7028         * doc/posix-functions/fgetc.texi: Likewise.
7029         * doc/posix-functions/fgets.texi: Likewise.
7030         * doc/posix-functions/fread.texi: Likewise.
7031         * doc/posix-functions/fscanf.texi: Likewise.
7032         * doc/posix-functions/getc.texi: Likewise.
7033         * doc/posix-functions/getchar.texi: Likewise.
7034         * doc/posix-functions/gets.texi: Likewise.
7035         * doc/posix-functions/scanf.texi: Likewise.
7036         * doc/posix-functions/vfscanf.texi: Likewise.
7037         * doc/posix-functions/vscanf.texi: Likewise.
7038
7039 2011-04-14  Bruno Haible  <bruno@clisp.org>
7040
7041         Support non-blocking pipe I/O in write() on native Windows.
7042         * lib/write.c (rpl_write): Split a write request that failed merely
7043         because the byte count was larger than the pipe buffer's size.
7044         * doc/posix-functions/write.texi: Mention the problem with large byte
7045         counts.
7046
7047 2011-04-14  Bruno Haible  <bruno@clisp.org>
7048
7049         wchar: Ensure that wchar_t gets defined on uClibc.
7050         * lib/wchar.in.h: On uClibc, include <stddef.h>.
7051         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
7052
7053 2011-04-13  Bruno Haible  <bruno@clisp.org>
7054
7055         safe-write, full-read: Avoid unnecessary compilation units.
7056         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
7057         (Depends-on): Remove safe-read. Add ssize_t.
7058         * modules/full-read (Files): Add lib/full-write.c.
7059         (Depends-on): Add full-write.
7060
7061 2011-04-13  Bruno Haible  <bruno@clisp.org>
7062
7063         Support non-blocking pipe I/O and SIGPIPE in pwrite().
7064         * modules/pwrite (Depends-on): Add 'write'.
7065
7066 2011-04-13  Bruno Haible  <bruno@clisp.org>
7067
7068         Support non-blocking pipe I/O in write() on native Windows.
7069         * lib/unistd.in.h (write): Enable replacement also if
7070         GNULIB_UNISTD_H_NONBLOCKING is 1.
7071         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
7072         (rpl_write): When failing to write on a non-blocking pipe, change
7073         errno from ENOSPC to EAGAIN.
7074         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
7075         putchar, puts, vfprintf, vprintf): Enable replacement also if
7076         GNULIB_STDIO_H_NONBLOCKING is 1.
7077         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
7078         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
7079         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
7080         CALL_WITH_SIGPIPE_EMULATION.
7081         (CALL_WITH_SIGPIPE_EMULATION): Use them.
7082         * m4/nonblocking.m4: New file.
7083         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
7084         for non-blocking I/O support.
7085         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7086         GNULIB_UNISTD_H_NONBLOCKING.
7087         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
7088         required for non-blocking I/O support.
7089         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
7090         * modules/nonblocking (Files): Add m4/nonblocking.m4,
7091         lib/stdio-write.c, m4/asm-underscore.m4.
7092         (Depends-on): Add stdio, unistd.
7093         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
7094         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
7095         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
7096         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
7097         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
7098         problem with non-blocking pipes.
7099         * doc/posix-functions/fputc.texi: Likewise.
7100         * doc/posix-functions/fputs.texi: Likewise.
7101         * doc/posix-functions/fwrite.texi: Likewise.
7102         * doc/posix-functions/printf.texi: Likewise.
7103         * doc/posix-functions/putc.texi: Likewise.
7104         * doc/posix-functions/putchar.texi: Likewise.
7105         * doc/posix-functions/puts.texi: Likewise.
7106         * doc/posix-functions/vfprintf.texi: Likewise.
7107         * doc/posix-functions/vprintf.texi: Likewise.
7108         * doc/posix-functions/write.texi: Likewise.
7109
7110 2011-04-10  Jim Meyering  <meyering@redhat.com>
7111
7112         maint.mk: prohibit doubled words
7113         Detect them also when they're separated by a newline.
7114         There are 3 ways to customize it:
7115           - disable the test on a per file basis, as usual with rules using
7116             $(VC_LIST_EXCEPT)
7117           - replace the default doubled-word-selecting regexp (affects all files)
7118           - ignore a particular file-vs-doubled-word match
7119         I nearly used that last one to ignore the "is is" match in
7120         coreutils' NEWS file, since the text was "ls -is is ..."
7121         To do that, I would have added this line to cfg.mk:
7122           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
7123         but it would have ignored any "is is" match in NEWS.
7124         Low probability, but still...
7125         Instead, I changed the text, slightly:
7126           -  ls -is is now consistent with ls -lis in ignoring values returned
7127           +  "ls -is" is now consistent with ls -lis in ignoring values returned
7128         * top/maint.mk (prohibit_double_word_RE_): Provide default.
7129         (prohibit_doubled_word_): Define.
7130         (sc_prohibit_doubled_word): New rule.
7131         (sc_prohibit_the_the): Remove.  Subsumed by the above.
7132
7133 2011-04-10  Jim Meyering  <meyering@redhat.com>
7134
7135         maint: fix doubled-word typo in comment
7136         * m4/gethostname.m4: s/is is/it is/
7137         * m4/getdomainname.m4: Likewise.
7138
7139 2011-04-10  Jim Meyering  <meyering@redhat.com>
7140
7141         maint: remove doubled word: s/it it/it/
7142         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
7143
7144 2011-04-10  Jim Meyering  <meyering@redhat.com>
7145
7146         maint.mk: remove useless semicolon and backslash
7147         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
7148         semicolon and backslash.
7149
7150 2011-04-10  Bruno Haible  <bruno@clisp.org>
7151
7152         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
7153         * modules/stdint-tests (Depends-on): Add wchar.
7154
7155 2011-04-10  Jim Meyering  <meyering@redhat.com>
7156
7157         maint: remove doubled words in comments, e.g., s/a a/a/
7158         * lib/strptime.c (day_of_the_week): s/the the/the/
7159         * tests/test-chown.h (test_chown): s/a a/a/
7160
7161         test-chown.h: correct a cast
7162         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
7163         when the destination is a stat.st_gid.
7164
7165 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
7166
7167         getaddrinfo: Fix test for sa_len member.
7168         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
7169         include <sys/types.h> before <sys/socket.h>.
7170
7171 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
7172
7173         maint: change "can not" to "cannot"
7174         * doc/posix-functions/iconv.texi (iconv): This one crossed line
7175         boundaries.
7176
7177 2011-04-09  Jim Meyering  <meyering@redhat.com>
7178
7179         maint: change "a a" to "a"
7180         * tests/test-lchown.h (test_lchown): s/a a/a/
7181
7182         maint.mk: prohibit \<the the\>
7183         * top/maint.mk (sc_prohibit_the_the): New rule.
7184
7185         maint: fix "the the" in comment
7186         * lib/count-one-bits.h: s/the the/the/
7187
7188         maint: change "can not" to "cannot"
7189         But do not change the occurrences in maintain.texi or in
7190         build-aux/po/Makefile.in.in, which I presume comes from gettext.
7191         * doc/gnulib-tool.texi: s/can not/cannot/
7192         * doc/posix-functions/accept.texi (accept): Likewise.
7193         * doc/posix-functions/socket.texi (socket): Likewise.
7194         * lib/mbrtowc.c: Likewise.
7195
7196         maint.mk: prohibit use of "can not"
7197         * top/maint.mk (sc_prohibit_can_not): New rule.
7198         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
7199
7200 2011-04-09  Bruno Haible  <bruno@clisp.org>
7201
7202         careadlinkat: Guard against misuse of careadlinkatcwd.
7203         * lib/careadlinkat.c: Include <stdlib.h>.
7204         (careadlinkatcwd): Check that the fd argument is as expected.
7205
7206 2011-04-09  Bruno Haible  <bruno@clisp.org>
7207
7208         careadlinkat: Use common coding style.
7209         * lib/careadlinkat.c: Move gnulib includes after system includes.
7210
7211 2011-04-09  Bruno Haible  <bruno@clisp.org>
7212
7213         careadlinkat: Clarify specification.
7214         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
7215         (careadlinkatcwd): Add comment.
7216         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
7217
7218 2011-04-09  Bruno Haible  <bruno@clisp.org>
7219
7220         areadlinkat: Avoid link error on many platforms.
7221         * modules/areadlinkat (Depends-on): Add areadlink.
7222
7223 2011-04-09  Bruno Haible  <bruno@clisp.org>
7224
7225         allocator, careadlinkat: Fix double-inclusion guard.
7226         * lib/allocator.h: Fix double-inclusion guard.
7227         * lib/careadlinkat.h: Likewise.
7228
7229 2011-04-09  Bruno Haible  <bruno@clisp.org>
7230
7231         relocatable-prog-wrapper: Update after module 'areadlink' changed.
7232         * lib/relocwrapper.c: Update dependencies hierarchy.
7233         * build-aux/install-reloc: Update list of files to be compiled.
7234         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
7235         lib/allocator.[hc].
7236
7237 2011-04-08  Eric Blake  <eblake@redhat.com>
7238
7239         strftime: silence gnulib-tool warning
7240         * modules/strftime-tests (Depends-on): Drop automatic dependency.
7241
7242 2011-04-08  Bruno Haible  <bruno@clisp.org>
7243
7244         verify: Fix syntax error with GCC 4.6 in C++ mode.
7245         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
7246         (HAVE_STATIC_ASSERT): New macro.
7247         (verify_true, verify): Use 'static_assert' if it is supported and
7248         '_Static_assert' is not supported.
7249
7250 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
7251
7252         allocator: New module.
7253         * modules/allocator, lib/allocator.c: New files.
7254         * lib/allocator.h (stdlib_allocator): New decl.
7255         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
7256         Remove.  Do not include <stdlib.h>.
7257         (careadlinkat): Use stdlib_allocator instead of rolling our own.
7258         * modules/careadlinkat (Files): Remove lib/allocator.h.
7259         (Depends-on): Add allocator.
7260
7261         stdlib: let modules use system malloc, realloc
7262         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
7263         if !_GL_USE_STDLIB_ALLOC.
7264         (malloc, realloc): Limit this change to a smaller scope.
7265
7266         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
7267         (malloc, realloc): Don't #undef; no longer needed.
7268         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7269         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7270         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
7271         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7272         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7273         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7274         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7275         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
7276
7277         careadlinkat: rename members to avoid problem
7278         * lib/allocator.h (struct allocator): Rename members from
7279         malloc/realloc to allocate/reallocate, to avoid problems if malloc
7280         and realloc are #define'd.  Reported by Eric Blake in
7281         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
7282         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
7283
7284 2011-04-08  Eric Blake  <eblake@redhat.com>
7285
7286         nonblocking: reduce dependency
7287         * tests/test-nonblocking.c: Only test sockets when in use.
7288         * modules/nonblocking-tests (Depends-on): Drop socket.
7289         (Makefile.am): Link even if sockets are not present.
7290         * modules/pipe2-tests (Makefile.am): Likewise.
7291         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
7292
7293         pipe2: fix O_NONBLOCK support on mingw
7294         * modules/pipe2 (Depends-on): Add nonblocking.
7295         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
7296         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
7297         * tests/test-nonblocking.c (main): Likewise.
7298         * modules/pipe2-tests (Makefile.am): Avoid link failure.
7299
7300         fcntl-h: fix O_ACCMODE on cygwin
7301         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
7302         * lib/fcntl.in.h (O_ACCMODE): Fix it.
7303
7304         pipe-filter: drop O_NONBLOCK workarounds
7305         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
7306         * modules/pipe-filter-ii (Depends-on): Likewise.
7307         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
7308
7309         nonblocking: provide O_NONBLOCK for mingw
7310         * modules/nonblocking (Depends-on): Add open.
7311         (configure.ac): Set new witness macro.
7312         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
7313         * modules/fcntl-h (Makefile.am): Substitute it.
7314         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
7315         nonblocking module is in use.
7316         * lib/nonblocking.c: Adjust portability test.
7317         * lib/open.c (open): Don't let native open see gnulib flag.
7318         * tests/test-fcntl-h.c (main): Enhance test.
7319         * tests/test-open.h (test_open): Likewise.
7320         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
7321
7322         careadlinkat: fix compilation error on mingw
7323         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
7324         within struct allocator.
7325
7326 2011-04-06  Eric Blake  <eblake@redhat.com>
7327
7328         binary-io: relicense under LGPLv2+
7329         * modules/binary-io (License): Relax to LGPLv2+.
7330         Requested for libvirt, and required by pipe2.
7331
7332 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
7333
7334         verify: use _Static_assert if available
7335         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
7336         (verify_true, verify): Use it if available.  This generates better
7337         diagnostics with GCC 4.6.0 and later.
7338
7339 2011-04-05  Bruno Haible  <bruno@clisp.org>
7340
7341         Remove leftover generated .h files after config.status changed.
7342
7343         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
7344         GL_GENERATE_ALLOCA_H.
7345         * modules/alloca-opt (Makefile.am): Remove alloca.h if
7346         GL_GENERATE_ALLOCA_H evaluates to false.
7347
7348         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
7349         GL_GENERATE_ARGZ_H.
7350         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
7351         evaluates to false.
7352
7353         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
7354         GL_GENERATE_BYTESWAP_H.
7355         * modules/byteswap (Makefile.am): Remove byteswap.h if
7356         GL_GENERATE_BYTESWAP_H evaluates to false.
7357
7358         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
7359         GL_GENERATE_ERRNO_H.
7360         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
7361         evaluates to false.
7362
7363         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
7364         GL_GENERATE_FLOAT_H.
7365         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
7366         evaluates to false.
7367
7368         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
7369         GL_GENERATE_FNMATCH_H.
7370         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
7371         GL_GENERATE_FNMATCH_H evaluates to false.
7372
7373         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
7374         GL_GENERATE_GLOB_H.
7375         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
7376         evaluates to false.
7377
7378         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
7379         automake conditional GL_GENERATE_ICONV_H.
7380         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
7381         evaluates to false.
7382
7383         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
7384         GL_GENERATE_NETINET_IN_H.
7385         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
7386         GL_GENERATE_NETINET_IN_H evaluates to false.
7387
7388         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
7389         conditional GL_GENERATE_PTHREAD_H.
7390         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
7391         * modules/pthread (Makefile.am): Remove pthread.h if
7392         GL_GENERATE_PTHREAD_H evaluates to false.
7393
7394         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
7395         GL_GENERATE_SCHED_H.
7396         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
7397         evaluates to false.
7398
7399         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
7400         conditional GL_GENERATE_SELINUX_CONTEXT_H.
7401         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
7402         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
7403
7404         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
7405         GL_GENERATE_STDARG_H.
7406         * modules/stdarg (Makefile.am): Remove stdarg.h if
7407         GL_GENERATE_STDARG_H evaluates to false.
7408
7409         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
7410         GL_GENERATE_STDBOOL_H.
7411         * modules/stdbool (Makefile.am): Remove stdbool.h if
7412         GL_GENERATE_STDBOOL_H evaluates to false.
7413
7414         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
7415         conditional GL_GENERATE_STDDEF_H.
7416         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
7417         * modules/stddef (Makefile.am): Remove stddef.h if
7418         GL_GENERATE_STDDEF_H evaluates to false.
7419
7420         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
7421         GL_GENERATE_STDINT_H.
7422         * modules/stdint (Makefile.am): Remove stdint.h if
7423         GL_GENERATE_STDINT_H evaluates to false.
7424
7425         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
7426         GL_GENERATE_SYSEXITS_H.
7427         * modules/sysexits (Makefile.am): Remove sysexits.h if
7428         GL_GENERATE_SYSEXITS_H evaluates to false.
7429
7430         Reported by Karl Berry and Ralf Wildenhues.
7431
7432 2011-04-05  Bruno Haible  <bruno@clisp.org>
7433
7434         Ensure to rebuild generated .h files when config.status has changed.
7435         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
7436         config.status.
7437         * modules/ctype (Makefile.am): Likewise.
7438         * modules/dirent (Makefile.am): Likewise.
7439         * modules/errno (Makefile.am): Likewise.
7440         * modules/fcntl-h (Makefile.am): Likewise.
7441         * modules/float (Makefile.am): Likewise.
7442         * modules/getopt-posix (Makefile.am): Likewise.
7443         * modules/glob (Makefile.am): Likewise.
7444         * modules/iconv-h (Makefile.am): Likewise.
7445         * modules/inttypes (Makefile.am): Likewise.
7446         * modules/langinfo (Makefile.am): Likewise.
7447         * modules/locale (Makefile.am): Likewise.
7448         * modules/math (Makefile.am): Likewise.
7449         * modules/netdb (Makefile.am): Likewise.
7450         * modules/netinet_in (Makefile.am): Likewise.
7451         * modules/poll-h (Makefile.am): Likewise.
7452         * modules/pthread (Makefile.am): Likewise.
7453         * modules/pty (Makefile.am): Likewise.
7454         * modules/sched (Makefile.am): Likewise.
7455         * modules/search (Makefile.am): Likewise.
7456         * modules/selinux-h (Makefile.am): Likewise.
7457         * modules/signal (Makefile.am): Likewise.
7458         * modules/spawn (Makefile.am): Likewise.
7459         * modules/stdarg (Makefile.am): Likewise.
7460         * modules/stdbool (Makefile.am): Likewise.
7461         * modules/stddef (Makefile.am): Likewise.
7462         * modules/stdint (Makefile.am): Likewise.
7463         * modules/stdio (Makefile.am): Likewise.
7464         * modules/stdlib (Makefile.am): Likewise.
7465         * modules/string (Makefile.am): Likewise.
7466         * modules/strings (Makefile.am): Likewise.
7467         * modules/sys_file (Makefile.am): Likewise.
7468         * modules/sys_ioctl (Makefile.am): Likewise.
7469         * modules/sys_select (Makefile.am): Likewise.
7470         * modules/sys_socket (Makefile.am): Likewise.
7471         * modules/sys_stat (Makefile.am): Likewise.
7472         * modules/sys_time (Makefile.am): Likewise.
7473         * modules/sys_times (Makefile.am): Likewise.
7474         * modules/sys_utsname (Makefile.am): Likewise.
7475         * modules/sys_wait (Makefile.am): Likewise.
7476         * modules/sysexits (Makefile.am): Likewise.
7477         * modules/termios (Makefile.am): Likewise.
7478         * modules/time (Makefile.am): Likewise.
7479         * modules/unistd (Makefile.am): Likewise.
7480         * modules/wchar (Makefile.am): Likewise.
7481         * modules/wctype-h (Makefile.am): Likewise.
7482         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
7483
7484 2011-04-05  Bruno Haible  <bruno@clisp.org>
7485
7486         pipe2: Relicense under LGPLv2+.
7487         * modules/pipe2 (License): Change to LGPLv2+.
7488         Requested by Eric Blake, for libvirt.
7489
7490 2011-04-05  Bruce Korb  <bkorb@gnu.org>
7491
7492         bootstrap: compute gnulib_extra_files after updating build_aux
7493         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
7494         change build_aux or also supply gnulib_extra_files.  Handle correctly.
7495
7496 2011-04-05  Eric Blake  <eblake@redhat.com>
7497
7498         bootstrap: preserve git whitelist item sorting
7499         * build-aux/bootstrap (sort_patterns): New function.
7500         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
7501
7502 2011-04-05  Simon Josefsson  <simon@josefsson.org>
7503
7504         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
7505         sc_space_tab check.
7506
7507 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
7508
7509         areadlink, areadlinkat: rewrite in terms of careadlinkat
7510         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
7511         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
7512         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
7513         (malloc, realloc): Remove #undefs.
7514         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
7515         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
7516         readlink, ssize_t, stdint, unistd.
7517         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
7518         areadlink, stdint.
7519
7520         careadlinkat: new module
7521         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
7522         * modules/careadlinkat: New files, written by me with
7523         a review and feedback from Ben Pfaff in
7524         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
7525
7526 2011-04-01  Bruno Haible  <bruno@clisp.org>
7527
7528         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
7529         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
7530         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
7531         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
7532         Reported by Bruce Korb <bruce.korb@gmail.com>.
7533
7534 2011-04-01  Bruno Haible  <bruno@clisp.org>
7535
7536         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
7537         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
7538         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
7539         * modules/wcpcpy (Depends-on): Add extensions.
7540         * modules/wcpncpy (Depends-on): Likewise.
7541         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
7542         systems.
7543         * doc/posix-functions/wcpncpy.texi: Likewise.
7544         * doc/posix-functions/wcwidth.texi: Likewise.
7545
7546 2011-03-31  Eric Blake  <eblake@redhat.com>
7547
7548         nonblocking: fix mingw test failures
7549         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
7550         non-blocking flag on regular file.
7551         (get_nonblocking_flag): Set errno on invalid fd.
7552         * tests/test-nonblocking.c (main): Avoid test failure on
7553         directories if fchdir is not active.
7554         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
7555
7556 2011-03-31  Bruno Haible  <bruno@clisp.org>
7557
7558         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
7559         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
7560         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
7561         Reported by Simon Josefsson <simon@josefsson.org>.
7562
7563 2011-03-31  Bruno Haible  <bruno@clisp.org>
7564         and Eric Blake  <eblake@redhat.com>
7565
7566         nonblocking: new module
7567         * modules/nonblocking: New module.
7568         * modules/nonblocking-tests: Likewise.
7569         * lib/nonblocking.h: New file.
7570         * lib/nonblocking.c: Likewise.
7571         * tests/test-nonblocking.c: New test.
7572         * lib/ioctl.c (ioctl) [mingw]: Update comment.
7573
7574 2011-03-30  Bruno Haible  <bruno@clisp.org>
7575
7576         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
7577         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
7578         instead of 'printf' format for GCC >= 4.4.
7579         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
7580         (fprintf, printf, vfprintf, vprintf): Declare with
7581         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
7582         the system's vfprintf() function.
7583         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
7584
7585 2011-03-30  Eric Blake  <eblake@redhat.com>
7586
7587         passfd: fix scoping bug
7588         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
7589         before sendmsg/recvmsg.
7590
7591         passfd: standardize coding conventions
7592         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
7593         can be learned at compile time.
7594         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
7595         ifdefs.
7596         (sendfd, recvfd): Follow gnulib code conventions.
7597
7598         passfd: fix incorrect sendmsg arguments
7599         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
7600         incorrect msg_controllen value.
7601         * modules/passfd-tests (Depends-on): Check for alarm.
7602         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
7603         Reported by Bastien ROUCARIES.
7604
7605 2011-03-30  Bruno Haible  <bruno@clisp.org>
7606
7607         c-strcasestr: Relicense under LGPLv2+.
7608         * modules/c-strcasestr (License): Change to LGPLv2+.
7609         Requested by Eric Blake, for libvirt.
7610
7611 2011-03-30  Simon Josefsson  <simon@josefsson.org>
7612
7613         * users.txt: Add libidn2.  Fix libtasn1 link.
7614
7615 2011-03-30  Jim Meyering  <meyering@redhat.com>
7616
7617         tests: readlink* ("",... fails with EINVAL on newer kernels
7618         readlink and readlinkat have typically failed with ENOENT for
7619         the invalid, empty file name,  "".  However, with the advent
7620         of linux-2.6.39, they fail with EINVAL.
7621         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
7622         when operating on the empty file name.
7623         * tests/test-readlink.h (test_readlink): Likewise.
7624
7625 2011-03-29  Bruno Haible  <bruno@clisp.org>
7626
7627         Relicense some modules under LGPLv2+, for libidn2.
7628         * modules/array-mergesort (License): Change to LGPLv2+.
7629         * modules/c-strcaseeq (License): Likewise.
7630         * modules/striconveh (License): Likewise.
7631         * modules/striconveha (License): Likewise.
7632         * modules/uniconv/base (License): Likewise.
7633         * modules/uniconv/u8-conv-from-enc (License): Likewise.
7634         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
7635         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
7636         * modules/unictype/base (License): Likewise.
7637         * modules/unictype/bidiclass-of (License): Likewise.
7638         * modules/unictype/category-M (License): Likewise.
7639         * modules/unictype/category-none (License): Likewise.
7640         * modules/unictype/category-of (License): Likewise.
7641         * modules/unictype/category-test (License): Likewise.
7642         * modules/unictype/category-test-withtable (License): Likewise.
7643         * modules/unictype/combining-class (License): Likewise.
7644         * modules/unictype/joiningtype-of (License): Likewise.
7645         * modules/unictype/scripts (License): Likewise.
7646         * modules/uninorm/base (License): Likewise.
7647         * modules/uninorm/canonical-decomposition (License): Likewise.
7648         * modules/uninorm/composition (License): Likewise.
7649         * modules/uninorm/decompose-internal (License): Likewise.
7650         * modules/uninorm/decomposition-table (License): Likewise.
7651         * modules/uninorm/nfc (License): Likewise.
7652         * modules/uninorm/nfd (License): Likewise.
7653         * modules/uninorm/u32-normalize (License): Likewise.
7654         * modules/unistr/base (License): Likewise.
7655         * modules/unistr/u32-cpy (License): Likewise.
7656         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
7657         * modules/unistr/u32-to-u8 (License): Likewise.
7658         * modules/unistr/u32-uctomb (License): Likewise.
7659         * modules/unistr/u8-check (License): Likewise.
7660         * modules/unistr/u8-mblen (License): Likewise.
7661         * modules/unistr/u8-mbtouc (License): Likewise.
7662         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
7663         * modules/unistr/u8-mbtoucr (License): Likewise.
7664         * modules/unistr/u8-prev (License): Likewise.
7665         * modules/unistr/u8-strlen (License): Likewise.
7666         * modules/unistr/u8-to-u32 (License): Likewise.
7667         * modules/unistr/u8-uctomb (License): Likewise.
7668         * modules/unitypes (License): Likewise.
7669         Requested by Simon Josefsson.
7670
7671 2011-03-29  Simon Josefsson  <simon@josefsson.org>
7672
7673         lib-symbol-visibility: Add a notice.
7674         * modules/lib-symbol-visibility (Notice): New field.
7675
7676 2011-03-29  Bruno Haible  <bruno@clisp.org>
7677
7678         getaddrinfo: Doc fix.
7679         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
7680         section "fixed in Gnulib".
7681
7682 2011-03-28  Simon Josefsson  <simon@josefsson.org>
7683
7684         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
7685         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
7686
7687 2011-03-26  Bruno Haible  <bruno@clisp.org>
7688
7689         unictype/property-byname: Reduce the number of load-time relocations.
7690         * lib/unictype/pr_byname.c: Include <stdlib.h>.
7691         (UC_PROPERTY_INDEX_*): New enumeration values.
7692         (uc_property_byname): Convert an index from the lookup table to an
7693         uc_property_t.
7694         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
7695         values.
7696
7697 2011-03-26  Bruno Haible  <bruno@clisp.org>
7698
7699         unictype/property-byname: Allow omitted word separators and aliases.
7700         * lib/unictype/pr_byname.gperf: Add property names without word
7701         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
7702         for 'space'.
7703
7704 2011-03-26  Bruno Haible  <bruno@clisp.org>
7705
7706         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
7707         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
7708         also hyphens to space.
7709         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
7710         without spaces.
7711         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
7712
7713 2011-03-26  Bruno Haible  <bruno@clisp.org>
7714
7715         unictype/joiningtype-byname: Recognize long names as well.
7716         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
7717         a long name.
7718         * lib/unictype/joiningtype_byname.c: Include <string.h>,
7719         unictype/joiningtype_byname.h.
7720         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
7721         * lib/unictype/joiningtype_byname.gperf: New file.
7722         * modules/unictype/joiningtype-byname (Files): Add
7723         lib/unictype/joiningtype_byname.gperf.
7724         (Depends-on): Add gperf.
7725         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
7726         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
7727         long names.
7728
7729         Tests for module 'unictype/joiningtype-longname'.
7730         * modules/unictype/joiningtype-longname-tests: New file.
7731         * tests/unictype/test-joiningtype_longname.c: New file.
7732
7733         New module 'unictype/joiningtype-longname'.
7734         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
7735         * lib/unictype/joiningtype_longname.c: New file.
7736         * modules/unictype/joiningtype-longname: New file.
7737         * modules/unictype/joiningtype-all (Depends-on): Add
7738         unictype/joiningtype-longname.
7739
7740 2011-03-26  Bruno Haible  <bruno@clisp.org>
7741
7742         unictype/bidiclass-byname: Recognize long names as well.
7743         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
7744         name.
7745         * lib/unictype/bidi_byname.c: Include <string.h>,
7746         unictype/bidi_byname.h.
7747         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
7748         * lib/unictype/bidi_byname.gperf: New file.
7749         * modules/unictype/bidiclass-byname (Files): Add
7750         lib/unictype/bidi_byname.gperf.
7751         (Depends-on): Add gperf.
7752         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
7753         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
7754         long names.
7755
7756         Tests for module 'unictype/bidiclass-longname'.
7757         * modules/unictype/bidiclass-longname-tests: New file.
7758         * tests/unictype/test-bidi_longname.c: New file.
7759
7760         New module 'unictype/bidiclass-longname'.
7761         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
7762         * lib/unictype/bidi_longname.c: New file.
7763         * modules/unictype/bidiclass-longname: New file.
7764         * modules/unictype/bidiclass-all (Depends-on): Add
7765         unictype/bidiclass-longname.
7766
7767 2011-03-26  Bruno Haible  <bruno@clisp.org>
7768
7769         unictype/bidi*: Rename modules.
7770         * modules/unictype/bidiclass-all: Renamed from
7771         modules/unictype/bidicategory-all.
7772         * modules/unictype/bidiclass-name: Renamed from
7773         modules/unictype/bidiclass-name.
7774         (Description): Update.
7775         * modules/unictype/bidiclass-name-tests: Renamed from
7776         modules/unictype/bidicategory-name-tests.
7777         * modules/unictype/bidiclass-byname: Renamed from
7778         modules/unictype/bidicategory-byname.
7779         (Description): Update.
7780         * modules/unictype/bidiclass-byname-tests: Renamed from
7781         modules/unictype/bidicategory-byname-tests.
7782         * modules/unictype/bidiclass-of: Renamed from
7783         modules/unictype/bidicategory-of.
7784         (Description): Update.
7785         * modules/unictype/bidiclass-of-tests: Renamed from
7786         modules/unictype/bidicategory-of-tests.
7787         * modules/unictype/bidiclass-test: Renamed from
7788         modules/unictype/bidicategory-test.
7789         (Description): Update.
7790         * modules/unictype/bidiclass-test-tests: Renamed from
7791         modules/unictype/bidicategory-test-tests.
7792         * modules/unictype/bidicategory-all: New file, a simple redirection.
7793         * modules/unictype/bidicategory-name: Likewise.
7794         * modules/unictype/bidicategory-byname: Likewise.
7795         * modules/unictype/bidicategory-of: Likewise.
7796         * modules/unictype/bidicategory-test: Likewise.
7797         * modules/unictype/property-bidi-* (Dependencies): Update.
7798         * lib/unictype/bidi_*.c: Update comment.
7799
7800 2011-03-26  Bruno Haible  <bruno@clisp.org>
7801
7802         unictype/bidi*: Rename functions, part 2.
7803         * modules/unictype/bidicategory-name (configure.ac): Update required
7804         libunistring version.
7805         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
7806
7807 2011-03-25  Bruno Haible  <bruno@clisp.org>
7808
7809         New module 'unictype/combining-class-all'.
7810         * modules/unictype/combining-class-all: New file.
7811
7812         Tests for module 'unictype/combining-class-byname'.
7813         * modules/unictype/combining-class-byname-tests: New file.
7814         * tests/unictype/test-combiningclass_byname.c: New file.
7815
7816         New module 'unictype/combining-class-byname'.
7817         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
7818         * lib/unictype/combiningclass_byname.c: New file.
7819         * lib/unictype/combiningclass_byname.gperf: New file.
7820         * modules/unictype/combining-class-byname: New file.
7821
7822         Tests for module 'unictype/combining-class-longname'.
7823         * modules/unictype/combining-class-longname-tests: New file.
7824         * tests/unictype/test-combiningclass_longname.c: New file.
7825
7826         New module 'unictype/combining-class-longname'.
7827         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
7828         * lib/unictype/combiningclass_longname.c: New file.
7829         * modules/unictype/combining-class-longname: New file.
7830
7831         Tests for module 'unictype/combining-class-name'.
7832         * modules/unictype/combining-class-name-tests: New file.
7833         * tests/unictype/test-combiningclass_name.c: New file.
7834
7835         New module 'unictype/combining-class-name'.
7836         * lib/unictype.in.h (uc_combining_class_name): New declaration.
7837         * lib/unictype/combiningclass_name.c: New file.
7838         * modules/unictype/combining-class-name: New file.
7839
7840 2011-03-25  Bruno Haible  <bruno@clisp.org>
7841
7842         unictype/combining-class: Rename source files.
7843         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
7844         of unictype/combining.h.
7845         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
7846         Update.
7847         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
7848         * modules/unictype/combining-class (Description): Fix.
7849         (Files, Makefile.am): Update.
7850         * tests/unictype/test-combiningclass.c: Renamed from
7851         tests/unictype/test-combining.c.
7852         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
7853
7854 2011-03-25  Bruno Haible  <bruno@clisp.org>
7855
7856         unictype: Update list of canonical combining classes.
7857         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
7858
7859 2011-03-25  Bruno Haible  <bruno@clisp.org>
7860
7861         unictype/category-byname: Recognize long names as well.
7862         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
7863         a long name.
7864         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
7865         unictype/categ_byname.h.
7866         (UC_CATEGORY_INDEX_*): New enumeration values.
7867         (uc_general_category_byname): Use uc_general_category_lookup and
7868         convert from index to value.
7869         * lib/unictype/categ_byname.gperf: New file.
7870         * modules/unictype/category-byname (Files): Add
7871         lib/unictype/categ_byname.gperf.
7872         (Depends-on): Add gperf.
7873         (Makefile.am): Add rule for generating unictype/categ_byname.h.
7874         * tests/unictype/test-categ_byname.c (main): Test the recognition of
7875         long names.
7876
7877         Tests for module 'unictype/category-longname'.
7878         * modules/unictype/category-longname-tests: New file.
7879         * tests/unictype/test-categ_longname.c: New file.
7880
7881         New module 'unictype/category-longname'.
7882         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
7883         * lib/unictype/categ_longname.c: New file.
7884         * modules/unictype/category-longname: New file.
7885         * modules/unictype/category-all (Depends-on): Add it.
7886
7887 2011-03-25  Bruno Haible  <bruno@clisp.org>
7888
7889         Tests for module 'unictype/category-LC'.
7890         * modules/unictype/category-LC-tests: New file.
7891         * tests/unictype/test-categ_LC.c: New file, automatically generated.
7892
7893         New module 'unictype/category-LC'.
7894         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
7895         (UC_CATEGORY_LC): New declaration.
7896         (UC_CASED_LETTER): New macro.
7897         * lib/gen-uni-tables.c (is_category_LC): New function.
7898         (output_categories): Also handle category LC.
7899         (UC_CATEGORY_MASK_LC): New enumeration value.
7900         (general_category_byname): Also handle category LC.
7901         * lib/unictype/categ_LC.c: New file.
7902         * lib/unictype/categ_LC.h: New file, automatically generated.
7903         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
7904         category LC.
7905         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
7906         * modules/unictype/category-LC: New file.
7907         * modules/unictype/category-byname (Depends-on): Add
7908         unictype/category-LC.
7909         * modules/unictype/category-all (Depends-on): Likewise.
7910
7911 2011-03-25  Eric Blake  <eblake@redhat.com>
7912
7913         xmalloc: revert yesterday's regression
7914         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
7915         realloc's underlying behavior (allowing allocation of zero-size
7916         objects, especially if malloc-gnu is also in use).
7917
7918 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
7919
7920         maint.mk: add missing version to VC-tag
7921         * top/maint.mk: git tag was missing actual tag name; add it.
7922
7923         valgrind: do leak checking, and exit with code 1 on error (not 0)
7924         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
7925         to VALGRIND.
7926
7927 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
7928
7929         posix-modules: say what it does.
7930         * posix-modules: Add a line to the --help output saying what it does.
7931
7932 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
7933
7934         xmalloc: Do not leak if underlying realloc is C99 compatible.
7935         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
7936         This avoids a leak on C99-based systems.  See
7937         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
7938
7939 2011-03-24  Eric Blake  <eblake@redhat.com>
7940
7941         realloc: document portability problem
7942         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
7943         passing 0 size to realloc.
7944
7945 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
7946
7947         doc: update users.txt
7948         * users.txt: Add cvsps, tmpwatch
7949
7950 2011-03-23  Matt Rice  <ratmice@gmail.com>
7951
7952         doc: update users.txt
7953         * users.txt: Add gdb.
7954
7955 2011-03-23  Jim Meyering  <meyering@redhat.com>
7956
7957         doc: update users.txt
7958         Looking through matches up to the following URL (there are still
7959         several more pages), I found several projects that use gnulib:
7960         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
7961         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
7962         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
7963
7964 2011-03-22  Bruno Haible  <bruno@clisp.org>
7965
7966         unictype/bidi*: Rename functions.
7967         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
7968         uc_bidi_class, uc_is_bidi_class): New declarations.
7969         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
7970         uc_bidi_category_byname.
7971         (uc_bidi_category_byname): New function.
7972         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
7973         u_bidi_category_name.
7974         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
7975         (uc_bidi_category_name): New function.
7976         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
7977         uc_bidi_category.
7978         (uc_bidi_category): New function.
7979         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
7980         uc_is_bidi_category. Invoke uc_bidi_class.
7981         (uc_is_bidi_category): New function.
7982         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
7983         instead of uc_bidi_category_byname.
7984         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
7985         instead of uc_bidi_category_name.
7986         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
7987         uc_bidi_category.
7988         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
7989         instead of uc_is_bidi_category.
7990
7991 2011-03-21  Bruno Haible  <bruno@clisp.org>
7992
7993         New module 'unictype/joininggroup-all'.
7994         * modules/unictype/joininggroup-all: New file.
7995
7996         Tests for module 'unictype/joininggroup-of'.
7997         * modules/unictype/joininggroup-of-tests: New file.
7998         * tests/unictype/test-joininggroup_of.c: New file.
7999         * tests/unictype/test-joininggroup_of.h: New file, automatically
8000         generated by gen-uni-tables.
8001
8002         New module 'unictype/joininggroup-of'.
8003         * modules/unictype/joininggroup-of: New file.
8004         * lib/unictype/joininggroup_of.c: New file.
8005         * lib/unictype/joininggroup_of.h: New file, automatically generated by
8006         gen-uni-tables.
8007
8008         Tests for module 'unictype/joininggroup-byname'.
8009         * modules/unictype/joininggroup-byname-tests: New file.
8010         * tests/unictype/test-joininggroup_byname.c: New file.
8011
8012         New module 'unictype/joininggroup-byname'.
8013         * modules/unictype/joininggroup-byname: New file.
8014         * lib/unictype/joininggroup_byname.c: New file.
8015         * lib/unictype/joininggroup_byname.gperf: New file.
8016
8017         Tests for module 'unictype/joininggroup-name'.
8018         * modules/unictype/joininggroup-name-tests: New file.
8019         * tests/unictype/test-joininggroup_name.c: New file.
8020
8021         New module 'unictype/joininggroup-name'.
8022         * modules/unictype/joininggroup-name: New file.
8023         * lib/unictype/joininggroup_name.c: New file.
8024         * lib/unictype/joininggroup_name.h: New file.
8025
8026         New module 'unictype/joiningtype-all'.
8027         * modules/unictype/joiningtype-all: New file.
8028
8029         Tests for module 'unictype/joiningtype-of'.
8030         * modules/unictype/joiningtype-of-tests: New file.
8031         * tests/unictype/test-joiningtype_of.c: New file.
8032         * tests/unictype/test-joiningtype_of.h: New file, automatically
8033         generated by gen-uni-tables.
8034
8035         New module 'unictype/joiningtype-of'.
8036         * modules/unictype/joiningtype-of: New file.
8037         * lib/unictype/joiningtype_of.c: New file.
8038         * lib/unictype/joiningtype_of.h: New file, automatically generated by
8039         gen-uni-tables.
8040
8041         Tests for module 'unictype/joiningtype-byname'.
8042         * modules/unictype/joiningtype-byname-tests: New file.
8043         * tests/unictype/test-joiningtype_byname.c: New file.
8044
8045         New module 'unictype/joiningtype-byname'.
8046         * modules/unictype/joiningtype-byname: New file.
8047         * lib/unictype/joiningtype_byname.c: New file.
8048
8049         Tests for module 'unictype/joiningtype-name'.
8050         * modules/unictype/joiningtype-name-tests: New file.
8051         * tests/unictype/test-joiningtype_name.c: New file.
8052
8053         New module 'unictype/joiningtype-name'.
8054         * modules/unictype/joiningtype-name: New file.
8055         * lib/unictype/joiningtype_name.c: New file.
8056
8057         unictype: Add support for Arabic shaping properties.
8058         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
8059         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
8060         declarations.
8061         (UC_JOINING_GROUP_*): New enumeration values.
8062         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
8063         declarations.
8064         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
8065         (unicode_joining_type): New variable.
8066         (UC_JOINING_GROUP_*): New enumeration values.
8067         (unicode_joining_group): New variable.
8068         (fill_arabicshaping, joining_type_as_c_identifier,
8069         output_joining_type_test, output_joining_type,
8070         joining_group_as_c_identifier, output_joining_group_test,
8071         output_joining_group): New functions.
8072         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
8073         fill_arabicshaping and output_joining_type_test, output_joining_type,
8074         output_joining_group_test, output_joining_group.
8075         Reported by Simon Josefsson.
8076
8077 2011-03-21  Jim Meyering  <meyering@redhat.com>
8078
8079         strftime: fix a bug in yesterday's change
8080         * lib/strftime.c (add): Accommodate width's initial value of -1.
8081         Otherwise, nstrftime would copy uninitialized data into
8082         the result buffer.
8083
8084 2011-03-21  Jim Meyering  <meyering@redhat.com>
8085
8086         tests: add strftime-tests module
8087         * tests/test-strftime.c: New file.
8088         * modules/strftime-tests: New module.
8089
8090 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
8091
8092         strftime: don't assume a byte count fits in 'int'
8093         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
8094         found this problem by static analysis, using gcc -Wstrict-overflow
8095         (GCC 4.5.2, x86-64).  This reported an optimization that depended
8096         on an integer overflow having undefined behavior, but it turns out
8097         that the argument is a size, which might not fit in 'int' anyway,
8098
8099 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
8100
8101         stdio: don't require ignore_value around fwrite
8102
8103         This patch works around libc bug 11959
8104         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
8105         Without this patch, applications must often write
8106         ignore_value (fwrite (...)) even though the ignore_value is
8107         not helpful here.  It's common to write many objects, using
8108         fwrite/printf/etc., and then use ferror to detect output error.
8109
8110         I considered making this patch optional, but decided against it,
8111         because libc is obviously being inconsistent here: there is no
8112         reason libc should insist that user code must inspect fwrite
8113         return's value without also insisting that it inspect printf's,
8114         putchar's, etc.  If user code wants to have a strict style where
8115         all these functions' values are checked (so that ferror need not
8116         be checked), we could add support for that style in a new gnulib
8117         module, but in the meantime it's better to be consistent and to
8118         support common usage.
8119
8120         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
8121         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
8122         that we are compiling in checking mode, and if not C++, and
8123         if not already wrapping fwrite for some other reason.
8124         (fwrite): #define to rpl_fwrite if the latter is defined.
8125
8126 2011-03-20  Bruno Haible  <bruno@clisp.org>
8127
8128         verror: Fix compilation error introduced on 2011-02-13.
8129         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
8130         instead of __attribute__.
8131         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8132
8133 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
8134             Bruno Haible  <bruno@clisp.org>
8135
8136         socklen: do not depend on sys_socket
8137         While trying to modify Emacs to use gnulib's socklen module,
8138         I discovered a circular dependency: socklen depends on sys_socket
8139         and vice versa.  Emacs can use socklen, but it does not need
8140         sys_socket because it has its own substitute for sys/socket.h.
8141         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
8142         gl_TYPE_SOCKLEN_T.
8143         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
8144         gl_PREREQ_SYS_H_SOCKET.
8145         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
8146         gl_PREREQ_SYS_H_SOCKET.
8147         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
8148         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
8149         * modules/socklen (Depends-on): Do not depend on sys_socket.
8150         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
8151
8152 2011-03-20  Jim Meyering  <meyering@redhat.com>
8153
8154         maint.mk: sort file names *after* new transformation
8155         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
8156         prefix would have led to an unwarranted failure in GNU parted.
8157         Sort after that transformation.
8158
8159 2011-03-19  Jim Meyering  <meyering@redhat.com>
8160
8161         maint.mk: fix po-file syntax-check rule
8162         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
8163         Patch by Bruno Haible.
8164
8165 2011-03-19  Bruno Haible  <bruno@clisp.org>
8166
8167         socklen: Update comment.
8168         * m4/socklen.m4: Update comment about platforms.
8169
8170 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
8171             Bruno Haible  <bruno@clisp.org>
8172
8173         inet_ntop, inet_pton: Simplify.
8174         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
8175         documented to provide socklen_t and we already depend on sys_socket.
8176         * modules/inet_pton (Depends-on): Likewise.
8177         * lib/arpa_inet.in.h: Adjust comment.
8178
8179 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
8180             Bruno Haible  <bruno@clisp.org>
8181
8182         netdb: Simplify.
8183         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
8184         documented to provide socklen_t and we already depend on sys_socket.
8185         * lib/netdb.in.h: Adjust comment.
8186
8187 2011-03-19  Bruno Haible  <bruno@clisp.org>
8188
8189         sys_socket, netdb: Document problem with socklen_t.
8190         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
8191         platforms.
8192         * doc/posix-headers/netdb.texi: Likewise.
8193
8194 2011-03-18  Eric Blake  <eblake@redhat.com>
8195
8196         maint.mk: let po check work in VPATH build
8197         * top/maint.mk (po_file): Allow cfg.mk override.
8198         (sc_po_check): Allow VPATH use.
8199         Reported by Jiri Denemark.
8200
8201 2011-03-16  Jim Meyering  <meyering@redhat.com>
8202
8203         maint.mk: allow fine-grained syntax-check exclusion via Make variables
8204         Before, you would have had to create one .x-sc_ file per rule in order
8205         to exempt offending files.  Now, you may instead use a Make variable --
8206         usually defined in cfg.mk -- whose name identifies the affected rule.
8207         * top/maint.mk (_sc_excl): Define.
8208         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
8209         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
8210
8211 2011-03-13  Bruno Haible  <bruno@clisp.org>
8212
8213         ignore-value tests: Avoid warnings.
8214         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
8215         empty for gcc < 3.4.
8216
8217 2011-03-13  Bruno Haible  <bruno@clisp.org>
8218
8219         passfd: Fix link error on Solaris.
8220         * modules/passfd (Description): Correct.
8221         (Depends-on): Add socketlib.
8222         (Link): New section.
8223         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
8224
8225 2011-03-13  Bruno Haible  <bruno@clisp.org>
8226
8227         passfd: Fix link error on AIX 5.2.
8228         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
8229
8230 2011-03-13  Bruno Haible  <bruno@clisp.org>
8231
8232         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
8233         * lib/sys_socket.in.h: Include <stddef.h>.
8234         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
8235         CMSG_FIRSTHDR. Remove unused variable.
8236
8237 2011-03-13  Bruno Haible  <bruno@clisp.org>
8238
8239         passfd: Fix compilation error on OpenBSD.
8240         * lib/passfd.c: Include <sys/uio.h>.
8241
8242 2011-03-13  Bruno Haible  <bruno@clisp.org>
8243
8244         passfd test: Fix warnings.
8245         * tests/test-passfd.c: Include <sys/wait.h>.
8246         (main): Fix typo.
8247
8248 2011-03-13  Bruno Haible  <bruno@clisp.org>
8249
8250         passfd module, part 4, tweaks.
8251         * tests/test-passfd.c: Reorder includes.
8252         (main): Fix perror and printf calls.
8253
8254 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
8255
8256         passfd module, part 4.
8257         * modules/passfd-tests: New file.
8258         * tests/test-passfd.c: New file.
8259
8260 2011-03-13  Jim Meyering  <meyering@redhat.com>
8261
8262         Makefile: rely on GNU make; derive syntax-check rule names
8263         Rather than requiring that each sc_ rule be listed as a dependent
8264         of "check", use features of GNU make to derive the list.
8265         * Makefile (syntax-check-rules): Define.
8266         (check): Depend on the new variable, not the hard-coded list.
8267
8268 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
8269             Bruno Haible  <bruno@clisp.org>
8270
8271         passfd module, part 3.
8272         * lib/passfd.h (recvfd): Add a flags argument.
8273         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
8274         (recvfd): Add a flags argument.
8275         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
8276         exists.
8277         * modules/passfd (Depends-on): Add cloexec.
8278         Suggested by Eric Blake.
8279
8280 2011-03-13  Bruno Haible  <bruno@clisp.org>
8281
8282         passfd module, part 2, tweaks.
8283         * modules/passfd (Files): Reorder.
8284         (Depends-on): Remove errno.
8285         (Include): Remove <sys/socket.h>, <sys/un.h>.
8286         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
8287         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
8288         specification header. Include <sys/socket.h> always. Don't include
8289         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
8290         (sendfd): Clarify that it sets errno when it fails.
8291         (recvfd): Fix specification.
8292
8293 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
8294
8295         passfd module, part 2.
8296         * modules/passfd: New file.
8297         * lib/passfd.h: New file.
8298         * lib/passfd.c: New file.
8299
8300 2011-03-12  Bruno Haible  <bruno@clisp.org>
8301
8302         wcswidth, mbswidth: Avoid integer overflow.
8303         * lib/wcswidth.c: Include <limits.h>.
8304         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
8305         * lib/mbswidth.c: Include <limits.h>.
8306         (mbsnwidth): Avoid 'int' overflow.
8307         Reported by Jim Meyering.
8308
8309 2011-03-12  Bruno Haible  <bruno@clisp.org>
8310
8311         futimens, utimensat: Avoid endless recursion on Solaris 10.
8312         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
8313         Solaris.
8314         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
8315         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
8316
8317 2011-03-11  Jim Meyering  <meyering@redhat.com>
8318
8319         maint.mk: relax a regexp to accommodate other formatting styles
8320         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
8321         between "ngettext" and the following "(".
8322
8323 2011-03-11  Pádraig Brady <P@draigBrady.com>
8324
8325         maint.mk: suppress a false positive warning
8326         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
8327         diagnostics are marked with ngettext.
8328
8329 2011-03-10  Eric Blake  <eblake@redhat.com>
8330
8331         wchar: add explicit dependencies, for Tru64
8332         * modules/mbmemcasecoll (Depends-on): Add wchar.
8333         * modules/mbtowc (Depends-on): Likewise.
8334         * modules/vasnprintf (Depends-on): Likewise.
8335         * modules/unistdio/u-printf-args (Depends-on): Likewise.
8336         * modules/wctomb (Depends-on): Likewise.
8337         Reported by Peter O'Gorman.
8338
8339 2011-03-08  Bruno Haible  <bruno@clisp.org>
8340
8341         passfd module, part 1, tweaks.
8342         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
8343         Improve indentation. Improve AC_MSG_CHECKING messages.
8344         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
8345         gl_SOCKET_FAMILIES.
8346
8347 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
8348
8349         passfd module, part 1.
8350         * m4/afunix.m4: New file.
8351         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
8352         sockets.
8353
8354 2011-03-08  Bruno Haible  <bruno@clisp.org>
8355
8356         regex-quote: New API.
8357         * lib/regex-quote.h: Include <stdbool.h>.
8358         (struct regex_quote_spec): New type.
8359         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
8360         New declarations.
8361         (regex_quote_length, regex_quote_copy, regex_quote): Take a
8362         'const struct regex_quote_spec *' argument.
8363         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
8364         (pcre_special): New constant.
8365         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
8366         New functions.
8367         (regex_quote_length, regex_quote_copy, regex_quote): Take a
8368         'const struct regex_quote_spec *' argument.
8369         * modules/regex-quote (Depends-on): Add stdbool.
8370         * tests/test-regex-quote.c (check): Update for new API. Add test for
8371         anchored results.
8372         * NEWS: Mention the API change.
8373         Reported by Reuben Thomas and Eric Blake.
8374
8375 2011-03-06  Bruno Haible  <bruno@clisp.org>
8376
8377         regex-quote: Fix creation of POSIX extended regular expressions.
8378         * lib/regex-quote.c (ere_special): Add grouping and alternation
8379         operators.
8380
8381 2011-03-05  Bruno Haible  <bruno@clisp.org>
8382
8383         doc: Improve doc regarding autopoint vs. gnulib.
8384         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
8385         disable autopoint while running autoreconf.
8386         Suggested by Ralf Wildenhues.
8387
8388 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8389
8390         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
8391         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
8392
8393 2011-03-03  Bruce Korb  <bkorb@gnu.org>
8394
8395         parse-duration: remove xalloc.h dependency
8396         * lib/parse-duration.c (parse_period): handle NULL return from
8397         strdup instead of calling xstrdup().
8398         * modules/parse-duration: remove "xalloc" dependency
8399
8400 2011-03-03  Matthew Booth  <mbooth@redhat.com>
8401
8402         bootstrap: honor m4_base when running aclocal
8403         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
8404
8405 2011-03-02  Jim Meyering  <meyering@redhat.com>
8406
8407         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
8408         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
8409         on request from Matt Booth.
8410
8411 2011-03-01  Eric Blake  <eblake@redhat.com>
8412
8413         test-link: work on Hurd
8414         * tests/test-link.h (test_link): Hurd rejects linking directories
8415         with EISDIR instead of the POSIX-mandated EPERM.
8416
8417 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
8418
8419         stdio: simplify by moving files to printf-posix, sigpipe
8420         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
8421         since this symbol is needed only if printf is replaced.
8422         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
8423         Require gl_ASM_SYMBOL_PREFIX.
8424         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
8425         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
8426         (Depends-on): Add 'raise'.
8427         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
8428         * modules/stdio (Files): Remove lib/stdio-write.c,
8429         m4/asm-underscore.m4.
8430         (Depends-on): Remove 'raise'.
8431
8432         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
8433         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
8434         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
8435         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
8436
8437 2011-02-28  Bruno Haible  <bruno@clisp.org>
8438
8439         localcharset: Assume ANSI C behaviour of free().
8440         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
8441         calling free().
8442         Suggested by Simon Josefsson <simon@josefsson.org>.
8443
8444 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
8445             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
8446             Bruno Haible  <bruno@clisp.org>  (tiny change)
8447
8448         On Cygwin, use /proc file system instead of win32 API.
8449         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
8450         Win32 file names.
8451         (DllMain): Simplify by removing Cygwin specific code.
8452         (find_shared_library_fullname): Use Linux specific implementation also
8453         for Cygwin.
8454         (get_shared_library_fullname): Update accordingly.
8455         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
8456         Win32 file names.
8457         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
8458         Cygwin specific code.
8459
8460 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
8461             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
8462
8463         Fix OpenMP flag detection for various Fortran compilers.
8464         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
8465         OpenMP-conditional compilation construct, to force compile
8466         failure with missing OpenMP flag.
8467         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
8468
8469 2011-02-25  Eric Blake  <eblake@redhat.com>
8470
8471         strstr: expand test coverage
8472         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
8473         compilation.
8474         * tests/test-memmem.c (main): Duplicate tests.
8475         * tests/test-strcasestr.c (main): Likewise.
8476         * tests/test-c-strcasestr.c (main): Likewise.
8477
8478 2011-02-25  Jim Meyering  <meyering@redhat.com>
8479
8480         maint.mk: detect missing-NL-at-EOF, too
8481         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
8482         it also detects when a file lacks a newline at EOF.
8483         (require_exactly_one_NL_at_EOF_): Renamed from
8484         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
8485         since people may well have .x-sc_... file names tied to the
8486         existing name.  Suggested by Eric Blake.
8487
8488 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
8489
8490         dirname: move m4/dos.m4 functionality into lib/dosname.h
8491
8492         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
8493         extracts symbols from it, puts them into config.h; but it's much
8494         easier to use the symbols directly.  filename.h already does this,
8495         but it disagrees with dos.m4 in some respects.  This patch
8496         introduces a different include file dosname.h that packages up
8497         dos.m4, and then later we can work on merging filename.h and
8498         dosname.h.  Applications that need only the easy-to-configure
8499         symbols should consider including dosname.h rather than dirname.h.
8500         * NEWS: Mention incompatible changes.
8501         * m4/dos.m4: Remove.
8502         * lib/dosname.h, modules/dosname: New files.
8503         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
8504         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
8505         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
8506         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
8507         Include dosname.h, not dirname.h.
8508         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
8509         Include dosname.h, for definitions of symbols like ISSLASH
8510         that used to be in config.h.
8511         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
8512         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
8513         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8514         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
8515         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
8516         * modules/rmdir (Files): Likewise.
8517         * modules/stat (Files): Likewise.
8518         * modules/unlink (Files): Likewise.
8519         * modules/dirname-lgpl (Depends-on): Add dosname.
8520         * modules/lstat (Depends-on): Likewise.
8521         * modules/openat (Depends-on): Likewise.
8522         * modules/rmdir (Depends-on): Likewise.
8523         * modules/savewd (Depends-on): Likewise.
8524         * modules/stat (Depends-on): Likewise.
8525         * modules/unlink (Depends-on): Likewise.
8526         * modules/openat (Depends-on): Remove dirname-lgpl.
8527         * modules/savewd (Depends-on): Likewise.
8528         * tests/test-dirname.c: Do not use removed symbols like
8529         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
8530         the remaining symbols, e.g., ISSLASH ('\\').
8531
8532 2011-02-25  Eric Blake  <eblake@redhat.com>
8533
8534         strstr: revert patches that introduced bug and pessimization
8535         * lib/str-two-way.h: Add another reference.
8536         (two_way_short_needle, two_way_long_needle): Revert changes from
8537         2011-02-24; they pessimize search speed.
8538         (critical_factorization): Partially revert changes from
8539         2010-06-22; they violate the requirement that the left half of the
8540         needle be smaller than the period of the needle.
8541
8542 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
8543
8544         filenamecat: remove unnecessary dependency on dirname-lgpl
8545         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
8546         is no direct dependency, just an indirect one via filenamecat-lgpl.
8547
8548         remove: remove unnecessary use of m4/dos.m4
8549         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
8550         * modules/remove (FILES): Remove m4/dos.m4.
8551
8552         * lib/openat-proc.c: Don't include dirname.h; not needed.
8553
8554         backupfile: remove unnecessary use of m4/dos.m4
8555         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
8556         of its symbols are used by the backupfile code.  backupfile.c does
8557         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
8558         for the rare case of programs that want all their backup file
8559         names to live within 8+3 limits, and dos.m4 doesn't address that.
8560         * modules/backupfile (Files): Remove m4/dos.m4.
8561
8562 2011-02-24  Jim Meyering  <meyering@redhat.com>
8563
8564         strstr: fix a bug whereby strstr would mistakenly return NULL
8565         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
8566         in period calculation.
8567         (two_way_long_needle): Likewise.
8568         The original problem was reported by Mike Stump in
8569         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
8570         Ralf Wildenhues provided the short needle and haystack.
8571         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
8572         Add a more involved test to trigger the bug in two_way_long_needle.
8573
8574 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
8575
8576         gnulib-tool: remove use of bold display in help screen
8577         * gnulib-tool (func_usage): Do not use bold display anymore in the
8578         help screen.  That was just meant to be a temporary emphasis for a
8579         backward-incompatible change.
8580
8581 2011-02-23  Bruno Haible  <bruno@clisp.org>
8582
8583         Fix misindentation of preprocessor directives.
8584         * lib/argp-namefrob.h: Reindent preprocessor directives.
8585         * lib/getopt_int.h (struct _getopt_data): Likewise.
8586         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
8587         * lib/vasnprintf.c (decode_long_double): Likewise.
8588         * tests/test-argmatch.c: Insert blank lines, for clarity.
8589         * tests/test-exclude.c: Likewise.
8590
8591 2011-02-22  Bruno Haible  <bruno@clisp.org>
8592
8593         ioctl: Fix for MacOS X in 64-bit mode.
8594         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
8595         value.
8596         Suggested by Eric Blake.
8597         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
8598
8599 2011-02-22  Jim Meyering  <meyering@redhat.com>
8600
8601         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
8602         * Makefile (sc_cpp_indent_check): Don't limit the check to files
8603         in lib/.
8604
8605 2011-02-22  Eric Blake  <eblake@redhat.com>
8606
8607         maint: avoid any CDPATH issue
8608         * Makefile (sc_cpp_indent_check): Anchor cd argument.
8609
8610         maint: adjust cpp indentation for my modules, as well
8611         * Makefile (sc_cpp_indent_check): Add my name.
8612         * lib/fbufmode.c: Filter through cppi.
8613         * lib/fpurge.c: Likewise.
8614         * lib/freadable.c: Likewise.
8615         * lib/freading.c: Likewise.
8616         * lib/fwritable.c: Likewise.
8617         * lib/fwriting.c: Likewise.
8618         * lib/sigaction.c: Likewise.
8619
8620 2011-02-22  Jim Meyering  <meyering@redhat.com>
8621
8622         maint: adjust cpp indentation to reflect nesting depth
8623         I.e., in a block of code that begins with an unnested "#if",
8624         put one space between the "#" in column 1 and following token.
8625         For example,
8626         -#include <sys/vfs.h>
8627         +# include <sys/vfs.h>
8628         Do this only in .c files that are part of a module I maintain.
8629         * lib/linkat.c: Filter through cppi.
8630         * lib/nanosleep.c: Likewise.
8631         * lib/openat.c: Likewise.
8632         * lib/openat-die.c: Likewise.
8633         * lib/dup3.c: Likewise.
8634         * lib/fchownat.c: Likewise.
8635         * lib/flock.c: Likewise.
8636         * lib/fsync.c: Likewise.
8637         * lib/fts.c: Likewise.
8638         * lib/getpass.c: Likewise.
8639         * lib/gettimeofday.c: Likewise.
8640         * lib/userspec.c: Likewise.
8641         * Makefile (sc_cpp_indent_check): New rule, to check this.
8642
8643 2011-02-22  Bruno Haible  <bruno@clisp.org>
8644
8645         New module 'wctomb'.
8646         * lib/stdlib.in.h (wctomb): New declaration.
8647         * lib/wctomb.c: New file.
8648         * lib/wctomb-impl.h: New file.
8649         * m4/wctomb.m4: New file.
8650         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
8651         REPLACE_WCTOMB.
8652         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
8653         REPLACE_WCTOMB.
8654         * modules/wctomb: New file.
8655         * tests/test-stdlib-c++.cc: Test signature of wctomb.
8656         * doc/posix-functions/wctomb.texi: Mention the new module.
8657         * modules/wctob (Depends-on): Add wctomb.
8658
8659 2011-02-22  Bruno Haible  <bruno@clisp.org>
8660
8661         New module 'mbtowc'.
8662         * lib/stdlib.in.h (mbtowc): New declaration.
8663         * lib/mbtowc.c: New file.
8664         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
8665         * m4/mbtowc.m4: New file.
8666         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
8667         REPLACE_MBTOWC.
8668         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
8669         REPLACE_MBTOWC.
8670         * modules/mbtowc: New file.
8671         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
8672         * doc/posix-functions/mbtowc.texi: Mention the new module.
8673         * modules/btowc (Depends-on): Add mbtowc.
8674
8675 2011-02-22  Bruno Haible  <bruno@clisp.org>
8676
8677         wcrtomb: Add more tests for native Windows platforms.
8678         * tests/test-wcrtomb-w32-1.sh: New file.
8679         * tests/test-wcrtomb-w32-2.sh: New file.
8680         * tests/test-wcrtomb-w32-3.sh: New file.
8681         * tests/test-wcrtomb-w32-4.sh: New file.
8682         * tests/test-wcrtomb-w32-5.sh: New file.
8683         * tests/test-wcrtomb-w32.c: New file.
8684         * modules/wcrtomb-tests (Files): Add them.
8685         (Makefile.am): Arrange to run these tests.
8686         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
8687         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
8688
8689 2011-02-20  Bruno Haible  <bruno@clisp.org>
8690
8691         wcrtomb: Enhance test.
8692         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
8693
8694 2011-02-20  Bruno Haible  <bruno@clisp.org>
8695
8696         mbrtowc: Tiny optimization.
8697         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
8698
8699 2011-02-20  Jim Meyering  <meyering@redhat.com>
8700
8701         test-exclude.c: remove unmatched #endif
8702         * tests/test-exclude.c: Remove stray #endif, left over from
8703         the change of a week ago.
8704
8705 2011-02-19  Jim Meyering  <meyering@redhat.com>
8706
8707         git-version-gen: skip "-dirty" check when appropriate
8708         * build-aux/git-version-gen: Don't run any git commands when the
8709         version string comes from .tarball-version.  Prior to this, we
8710         would run git update-index --refresh even from a just-unpacked
8711         tarball directory, and that could affect a .git/ directory in a
8712         parent of the build directory.  Reported by Mike Frysinger.
8713
8714 2011-02-19  Bruno Haible  <bruno@clisp.org>
8715
8716         unictype/property-byname: Reduce the size of the 'data' segment.
8717         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
8718
8719 2011-02-19  Bruno Haible  <bruno@clisp.org>
8720
8721         unictype/scripts: Reduce the size of the 'data' segment.
8722         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
8723         '%pic'.
8724         * lib/unictype/scripts_byname.gperf: Regenerated.
8725
8726 2011-02-19  Bruno Haible  <bruno@clisp.org>
8727
8728         stdint: Update documentation.
8729         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
8730
8731 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
8732
8733         stdint: omit redundant check for wchar.h
8734         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
8735         always tests whether wchar.h exists, so remove the now-redundant test.
8736
8737 2011-02-18  Bruno Haible  <bruno@clisp.org>
8738
8739         stdint: Cut dependency to module 'wchar'.
8740         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
8741         include the necessary prerequisites.
8742         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
8743         * modules/stdint (Depends-on): Remove wchar.
8744         (Makefile.am): Substitute HAVE_WCHAR_H.
8745         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
8746
8747 2011-02-18  Eric Blake  <eblake@redhat.com>
8748
8749         longlong: skip, rather than fail, on cross-compilation
8750         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
8751         when cross-compiling; regression from 2011-02-16.
8752
8753 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
8754
8755         * NEWS: Mention 2011-02-08 change to stdlib.
8756
8757 2011-02-17  Bruno Haible  <bruno@clisp.org>
8758
8759         getloadavg: Add comments about platforms.
8760         * m4/getloadavg.m4: Add comment.
8761         * lib/getloadavg.c: Likewise.
8762
8763 2011-02-17  Bruno Haible  <bruno@clisp.org>
8764
8765         getloadavg: Fix link error on Solaris 2.6.
8766         * modules/getloadavg (Link): New section.
8767         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
8768         linking test-getloadavg.
8769         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
8770         getloadavg.
8771
8772 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
8773
8774         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
8775         It was 'int', but this doesn't match the IRIX 6.5 manual.
8776         Suggested by Bruno Haible in
8777         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
8778
8779 2011-02-17  Bruno Haible  <bruno@clisp.org>
8780
8781         havelib: Fix comments.
8782         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
8783         change.
8784
8785 2011-02-17  Bruno Haible  <bruno@clisp.org>
8786
8787         havelib: Update config.rpath.
8788         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
8789
8790 2011-02-17  Bruno Haible  <bruno@clisp.org>
8791
8792         getloadavg test: Add some plausibility checks.
8793         * tests/test-getloadavg.c (check_avg): Print a warning when the value
8794         is improbable.
8795
8796 2011-02-16  Eric Blake  <eblake@redhat.com>
8797
8798         maintainer-makefile: make syntax-check a no-op from tarballs
8799         * top/maint.mk (no-vc-detected): New rule.
8800         (local-checks-available): Use it to avoid hanging if someone tries
8801         'make syntax-check' from a tarball.  Also append to any non-syntax
8802         checks already defined in cfg.mk.
8803
8804 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
8805
8806         longlong: tune, particularly for common case of c99
8807
8808         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
8809         or running anything if c99, or if unsigned long long int does not
8810         work.  In either case, we know the answer without further tests.
8811         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
8812         it at most once, and use its results for both long long int and
8813         unsigned long long int.  This is more likely to be efficient in
8814         the common case where the program wants to check for both long
8815         long int and unsigned long long int.
8816         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
8817         since the answer is already known.
8818
8819 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
8820
8821         getloadavg: set errno
8822         * lib/getloadavg.c: Set errno when returning -1.  If no other
8823         error number looks appropriate, set it to ENOSYS if the getloadavg
8824         looks like it can't possibly ever work, ENOTSUP otherwise.
8825         Suggested by Bruno Haible in
8826         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
8827
8828         getloadavg: trim unused parts and speed up 'configure'
8829         * NEWS: Document this.
8830         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
8831         always compiled if getloadavg is absent.
8832         Move test code to ...
8833         * tests/test-getloadavg.c: New file, containing previous
8834         contents of test from lib/getloadavg.c.  It also contains
8835         suggestions by Bruno Haible in
8836         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
8837         * modules/getloadavg-tests: New file.
8838         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
8839         Do tests in the same order as they're needed for getloadavg.c.
8840         Omit setgid-related tests that generate symbols KMEM_GROUP,
8841         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
8842         Do only the tests that are needed to see whether the system has
8843         getloadavg, moving the other tests into ...
8844         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
8845         NLIST_NAME_UNION; nobody should be using it.  Do not define
8846         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
8847         relevant, as the user of this module shouldn't care how getloadavg
8848         is implemented.
8849
8850         getloadavg: omit unused var
8851         * lib/getloadavg.c (getloadavg): Omit unused local variable.
8852
8853 2011-02-15  Jim Meyering  <meyering@redhat.com>
8854
8855         doc: update users.txt
8856         * users.txt: Update iwhd's URL.
8857
8858 2011-02-13  Bruno Haible  <bruno@clisp.org>
8859
8860         Consistent macro naming for macros that use GCC __attribute__.
8861         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
8862         _ATTRIBUTE_NONNULL_.
8863         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
8864         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
8865         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
8866         ATTRIBUTE_DEPRECATED.
8867         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
8868         ATTRIBUTE_NORETURN.
8869         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8870         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8871         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8872         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8873         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
8874         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
8875         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
8876         ATTRIBUTE_SENTINEL.
8877         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
8878         ATTRIBUTE_RETURN_CHECK.
8879         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
8880         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
8881         ATTRIBUTE_NORETURN.
8882         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
8883         Reported by Paul Eggert.
8884
8885 2011-02-13  Bruno Haible  <bruno@clisp.org>
8886
8887         Don't interfere with a program's definition of __attribute__.
8888         * lib/argp.h (__attribute__): Remove definition.
8889         (_GL_ATTRIBUTE_FORMAT): New macro.
8890         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
8891         * lib/argp-fmtstream.h (__attribute__): Remove definition.
8892         (_GL_ATTRIBUTE_FORMAT): New macro.
8893         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
8894         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
8895         GCC 3 or newer.
8896         * lib/error.h (__attribute__): Remove definition.
8897         (_GL_ATTRIBUTE_FORMAT): New macro.
8898         (error, error_at_line): Use it.
8899         * lib/hash.h (__attribute__): Remove definition.
8900         (ATTRIBUTE_WUR): Update definition. Define always.
8901         * lib/openat.h (__attribute__): Remove definition.
8902         (ATTRIBUTE_NORETURN): Update definition. Define always.
8903         * lib/sigpipe-die.h (__attribute__): Remove definition.
8904         (ATTRIBUTE_NORETURN): Update definition. Define always.
8905         * lib/vasnprintf.h (__attribute__): Remove definition.
8906         (_GL_ATTRIBUTE_FORMAT): New macro.
8907         (asnprintf, vasnprintf): Use it.
8908         * lib/xalloc.h (__attribute__): Remove definition.
8909         (ATTRIBUTE_NORETURN): Update definition. Define always.
8910         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
8911         * lib/xmemdup0.h (__attribute__): Remove definition.
8912         (ATTRIBUTE_NORETURN): Update definition. Define always.
8913         * lib/xprintf.h (__attribute__): Remove definition.
8914         (_GL_ATTRIBUTE_FORMAT): New macro.
8915         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
8916         * lib/xstrtol.h (__attribute__): Remove definition.
8917         (ATTRIBUTE_NORETURN): Update definition. Define always.
8918         * lib/xvasprintf.h (__attribute__): Remove definition.
8919         (_GL_ATTRIBUTE_FORMAT): New macro.
8920         (xasprintf, xvasprintf): Use it.
8921         * tests/test-argmatch.c (__attribute__): Remove definition.
8922         (ATTRIBUTE_NORETURN): Update definition. Define always.
8923         * tests/test-exclude.c (__attribute__): Remove definition.
8924         (ATTRIBUTE_NORETURN): Update definition. Define always.
8925         Reported by Paul Eggert.
8926
8927 2011-02-13  Bruno Haible  <bruno@clisp.org>
8928
8929         mbrtowc: Add more tests for native Windows platforms.
8930         * tests/test-mbrtowc-w32-1.sh: New file.
8931         * tests/test-mbrtowc-w32-2.sh: New file.
8932         * tests/test-mbrtowc-w32-3.sh: New file.
8933         * tests/test-mbrtowc-w32-4.sh: New file.
8934         * tests/test-mbrtowc-w32-5.sh: New file.
8935         * tests/test-mbrtowc-w32.c: New file.
8936         * modules/mbrtowc-tests (Files): Add them.
8937         (Makefile.am): Arrange to run these tests.
8938         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
8939         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
8940
8941 2011-02-13  Bruno Haible  <bruno@clisp.org>
8942
8943         mbrtowc: Work around native Windows bug.
8944         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
8945         guess when no suitable locale for testing was found.
8946         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
8947
8948 2011-02-13  Bruno Haible  <bruno@clisp.org>
8949
8950         mbsinit: Work around mingw bug.
8951         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
8952         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
8953         Windows.
8954         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
8955
8956 2011-02-13  Bruno Haible  <bruno@clisp.org>
8957
8958         mbsinit: Don't crash for a NULL argument.
8959         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
8960         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
8961
8962 2011-02-13  Bruno Haible  <bruno@clisp.org>
8963
8964         Don't interfere with a program's definition of __attribute__.
8965         * lib/stdio.in.h (__attribute__): Remove definition.
8966         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
8967         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
8968         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
8969         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
8970         * lib/string.in.h (__attribute__): Remove definition.
8971         Reported by Paul Eggert.
8972
8973 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8974
8975         stdlib: don't get in the way of non-GCC __attribute__
8976         See thread starting at
8977         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
8978         Revert previous stdlib change, installing the following instead:
8979         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
8980         to get in the way of a non-GCC compiler that supports __attribute__.
8981         (_GL_ATTRIBUTE_RETURN): New macro.
8982         (_Exit): Use it instead of __attribute__.
8983
8984 2011-02-12  Bruno Haible  <bruno@clisp.org>
8985
8986         quotearg test: Avoid test failure on mingw.
8987         * tests/test-quotearg.sh: Convert the locale identifier from native
8988         Windows syntax to Unix syntax.
8989
8990 2011-02-12  Bruno Haible  <bruno@clisp.org>
8991
8992         setlocale: Prefer gnulib's override over libintl's override.
8993         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
8994         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
8995         GNULIB_defined_setlocale is set.
8996
8997 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8998
8999         stdlib: support non-GCC __attribute__
9000
9001         Fix a serious and tricky problem encountered when attempting to
9002         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
9003         5.5, but it crashed due to memory corruption on Solaris 10 with
9004         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
9005         bits that are otherwise zero.  This tagging is optional inside
9006         Emacs but is preferred and is used when __attribute__ ((__aligned
9007         (8))) works, as it does with both recent-enough GCC and with Sun C
9008         5.11.  However, Sun C 5.11 is not GCC and does not #define
9009         __GNUC__ and __GNUC_MINOR__.
9010
9011         When I added the getloadavg module to Emacs, it brought in
9012         stdlib.in.h, which contained this fragment:
9013
9014            #ifndef __attribute__
9015            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
9016            #  define __attribute__(Spec)   /* empty */
9017            # endif
9018            #endif
9019
9020         When files that include <stdlib.h> were compiled with Sun C 5.11,
9021         the above code disabled __attribute__ ((__aligned (8))), which
9022         caused variables to not be properly aligned, which eventually led
9023         to the pointer corruption mentioned above.  (This was a bit hard
9024         to diagnose, unfortunately.)
9025
9026         Several "#define __attribute__(X) /* empty */" code snippets need
9027         to be eradicated from Gnulib to work with non-GCC compilers that
9028         support __attribute__.  The Autoconf way to do this is to test for
9029         each kind of attribute that we want support for, and selectively
9030         enable that in source code.
9031
9032         Fix this problem just for stdlib.h, by adding a test for the
9033         __noreturn__ attribute, and change stdlib.in.h to use that test
9034         when needed.  This technique can be easily generalized to the
9035         other *.in.h files and attributes, and a similar technique can be
9036         used for *.h and *.c files.  This patch is enough to solve the
9037         problem for Emacs + getloadavg, and I thought I'd publish it for
9038         feedback before undertaking further, similar fixes in other
9039         modules.
9040
9041         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
9042         because it's not needed for stdlib.h.  It merely substitutes the
9043         value directly into stdlib.h.  We may well need to #define it, or
9044         similar symbols, for other modules, but it's nice to also have an
9045         option to not #define it for applications like Emacs that do not
9046         need it.
9047
9048         * lib/stdlib.in.h (__attribute__): Do not #define.
9049         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
9050         be defined only if the _Exit module is also used.
9051         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
9052         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
9053         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
9054         platforms.
9055         * modules/_Exit (Files): Add m4/attribute.m4.
9056         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
9057         * m4/attribute.m4: New file.
9058
9059 2011-02-12  Bruno Haible  <bruno@clisp.org>
9060
9061         wcsrtombs: Work around bug on native Windows.
9062         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
9063         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
9064         instead of len.
9065         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
9066
9067 2011-02-12  Bruno Haible  <bruno@clisp.org>
9068
9069         mbsrtowcs: Work around bug on native Windows.
9070         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
9071         against mingw bug.
9072         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
9073
9074 2011-02-12  Bruno Haible  <bruno@clisp.org>
9075
9076         Avoid setlocale bugs in tests.
9077         * modules/btowc (Dependencies): Add setlocale.
9078         * modules/c-strcase (Dependencies): Likewise.
9079         * modules/mbmemcasecmp (Dependencies): Likewise.
9080         * modules/mbmemcasecoll (Dependencies): Likewise.
9081         * modules/mbrtowc (Dependencies): Likewise.
9082         * modules/mbscasecmp (Dependencies): Likewise.
9083         * modules/mbscasestr (Dependencies): Likewise.
9084         * modules/mbschr (Dependencies): Likewise.
9085         * modules/mbscspn (Dependencies): Likewise.
9086         * modules/mbsinit (Dependencies): Likewise.
9087         * modules/mbsncasecmp (Dependencies): Likewise.
9088         * modules/mbsnrtowcs (Dependencies): Likewise.
9089         * modules/mbspbrk (Dependencies): Likewise.
9090         * modules/mbspcasecmp (Dependencies): Likewise.
9091         * modules/mbsrchr (Dependencies): Likewise.
9092         * modules/mbsrtowcs (Dependencies): Likewise.
9093         * modules/mbsspn (Dependencies): Likewise.
9094         * modules/mbsstr (Dependencies): Likewise.
9095         * modules/nl_langinfo (Dependencies): Likewise.
9096         * modules/quotearg (Dependencies): Likewise.
9097         * modules/unicase/locale-language (Dependencies): Likewise.
9098         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
9099         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
9100         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
9101         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
9102         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
9103         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
9104         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
9105         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
9106         * modules/vasnprintf-posix (Dependencies): Likewise.
9107         * modules/wcrtomb (Dependencies): Likewise.
9108         * modules/wcsnrtombs (Dependencies): Likewise.
9109         * modules/wcsrtombs (Dependencies): Likewise.
9110
9111 2011-02-12  Bruno Haible  <bruno@clisp.org>
9112
9113         setlocale: Workaround native Windows bug.
9114         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
9115         succeeds but sets LC_CTYPE to "C", report a failure.
9116         * tests/test-setlocale2.sh: New file.
9117         * tests/test-setlocale2.c: New file.
9118         * modules/setlocale-tests (Files): Add the new files.
9119         (Makefile.am): Enable test-setlocale2.sh test.
9120         * doc/posix-functions/setlocale.texi: Mention workaround.
9121
9122 2011-02-11  Bruno Haible  <bruno@clisp.org>
9123
9124         Tests for module 'setlocale'.
9125         * modules/setlocale-tests: New file.
9126         * tests/test-setlocale1.sh: New file.
9127         * tests/test-setlocale1.c: New file.
9128
9129         New module 'setlocale'.
9130         * lib/locale.in.h (setlocale): New declaration.
9131         * lib/setlocale.c: New file, based on
9132         gettext/gettext-runtime/intl/setlocale.c.
9133         * m4/setlocale.m4: New file.
9134         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
9135         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
9136         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
9137         REPLACE_SETLOCALE.
9138         * modules/setlocale: New file.
9139         * tests/test-locale-c++.cc: Test the declaration of setlocale.
9140         * doc/posix-functions/setlocale.texi: Mention the new module.
9141
9142 2011-02-11  Bruno Haible  <bruno@clisp.org>
9143
9144         Prepare for locale dependent tests on mingw.
9145         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
9146         because it has the wrong locale encoding.
9147         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
9148         French_France.1252 instead of "fr".
9149         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
9150         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
9151         because it has the wrong locale encoding.
9152         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
9153         native Windows, try Turkish_Turkey.65001.
9154         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
9155         Chinese_China.54936.
9156
9157         Prepare for locale dependent tests on mingw.
9158         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
9159         differently.
9160         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
9161         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
9162         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
9163         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
9164
9165 2011-02-11  Eric Blake  <eblake@redhat.com>
9166
9167         strptime: avoid compiler warnings
9168         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
9169         compiler warnings about dead code.
9170         Reported by Daniel P. Berrange.
9171
9172 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
9173
9174         doc: update users.txt
9175         * users.txt: Add rcs.
9176
9177 2011-02-10  John W. Eaton  <jwe@gnu.org>
9178
9179         doc: update users.txt
9180         * users.txt: Add octave.
9181
9182 2011-02-10  Jim Meyering  <meyering@redhat.com>
9183
9184         doc: update users.txt
9185         * users.txt: Add iwhd.
9186
9187 2011-02-09  Bruno Haible  <bruno@clisp.org>
9188
9189         gnulib-tool: Make copyright notice adjustment more robust.
9190         * gnulib-tool (func_import): In sed_transform_main_lib_file,
9191         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
9192         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
9193         License".
9194         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
9195
9196 2011-02-06  Bruno Haible  <bruno@clisp.org>
9197
9198         New module 'towctrans'.
9199         * modules/towctrans: New file.
9200         * lib/wctype.in.h (towctrans): New declaration.
9201         * lib/towctrans.c: New file.
9202         * lib/towctrans-impl.h: New file.
9203         * m4/towctrans.m4: New file.
9204         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
9205         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
9206         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
9207         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
9208         * doc/posix-functions/towctrans.texi: Mention the new module.
9209
9210 2011-02-06  Bruno Haible  <bruno@clisp.org>
9211
9212         New module 'wctrans'.
9213         * modules/wctrans: New file.
9214         * lib/wctype.in.h (wctrans): New declaration.
9215         * lib/wctrans.c: New file.
9216         * lib/wctrans-impl.h: New file.
9217         * m4/wctrans.m4: New file.
9218         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
9219         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
9220         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
9221         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
9222         * doc/posix-functions/wctrans.texi: Mention the new module.
9223
9224 2011-02-06  Bruno Haible  <bruno@clisp.org>
9225
9226         New module 'iswctype'.
9227         * modules/iswctype: New file.
9228         * lib/wctype.in.h (iswctype): New declaration.
9229         * lib/iswctype.c: New file.
9230         * lib/iswctype-impl.h: New file.
9231         * m4/iswctype.m4: New file.
9232         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
9233         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
9234         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
9235         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
9236         * doc/posix-functions/iswctype.texi: Mention the new module and the
9237         HP-UX 11.00 problem.
9238
9239 2011-02-06  Bruno Haible  <bruno@clisp.org>
9240
9241         New module 'wctype'.
9242         * modules/wctype: Change to represent the wctype() substitute.
9243         * lib/wctype.in.h (wctype): New declaration.
9244         * lib/wctype.c: New file.
9245         * lib/wctype-impl.h: New file.
9246         * m4/wctype.m4: New file.
9247         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
9248         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
9249         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
9250         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
9251         * doc/posix-functions/wctype.texi: Mention the new module and the
9252         HP-UX 11.00 problem.
9253
9254 2011-02-06  Bruno Haible  <bruno@clisp.org>
9255
9256         wctype-h: Ensure wctype_t and wctrans_t are defined.
9257         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
9258         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
9259         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
9260         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
9261         HAVE_WCTRANS_T.
9262         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
9263
9264 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
9265
9266         flock: fix license typo
9267
9268         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
9269         omitted.
9270
9271 2011-02-08  Bruno Haible  <bruno@clisp.org>
9272
9273         Split large sed scripts, for HP-UX sed.
9274         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
9275         to avoid HP-UX limit of 99 commands, in the near future.
9276         * modules/stdlib (Makefile.am): Likewise.
9277         * modules/unistd (Makefile.am): Likewise.
9278         * modules/wchar (Makefile.am): Likewise.
9279         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
9280         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
9281         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
9282
9283 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
9284             Bruno Haible  <bruno@clisp.org>
9285
9286         stdlib: improve random_r modularization
9287         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
9288         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
9289         you also need the random_r module to get this material right.
9290         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
9291         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
9292         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
9293
9294 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
9295
9296         stdlib: don't depend on stdint
9297         * lib/stdlib.in.h: Don't include <stdint.h> merely because
9298         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
9299         be independent of whether stdint.h is needed.
9300         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
9301         here, instead of ...
9302         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
9303         struct random_data should be using the random_r module, not just
9304         the stdlib module (which wouldn't make sense: what package needs
9305         just struct random_data without also needing random_r?).
9306         * modules/stdlib (Depends-on): Remove stdint.
9307
9308         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
9309         See the thread rooted at
9310         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
9311         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
9312         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
9313         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
9314         __VMS)); previously it was always included (via fcntl--.h).
9315         (getloadavg): Do not use c_strtod.  Instead, approximate it by
9316         hand; this is good enough for load averages.  Also, do not use
9317         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
9318         flags directly if available and don't bother otherwise.  (Packages
9319         that need the extra reliability should use the modules that define
9320         these flags on older platforms that lack them.)
9321         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
9322         fcntl-safer.
9323
9324 2011-02-08  Jim Meyering  <meyering@redhat.com>
9325
9326         di-set.h, ino-map.h: add multiple-inclusion guard
9327         Technically, the guard is required only for ino-map.h, due to its
9328         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
9329         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
9330         * lib/ino-map.h: Likewise.
9331
9332 2011-02-06  Bruno Haible  <bruno@clisp.org>
9333
9334         iswblank: Ensure declaration on glibc systems.
9335         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
9336         * modules/iswblank (Dependencies): Add 'extensions'.
9337         * doc/posix-functions/iswblank.texi: Document the glibc problem.
9338
9339 2011-02-06  Bruno Haible  <bruno@clisp.org>
9340
9341         New module 'iswblank'.
9342         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
9343         * modules/iswblank: New file.
9344         * modules/wctype-h (Files): Remove lib/iswblank.c.
9345         (Makefile.am): Substitute GNULIB_ISWBLANK.
9346         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
9347         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
9348         (gl_WCTYPE_H_DEFAULTS): New macro.
9349         (gl_WCTYPE_H): Require it. Remove iswblank related code.
9350         * modules/iswblank-tests: New file.
9351         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
9352         * tests/test-wctype-h.c (main): Remove iswblank tests.
9353         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
9354         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
9355         of 'wctype-h'.
9356         * NEWS: Mention the change.
9357         * modules/mbchar (Depends-on): Add iswblank.
9358
9359 2011-02-08  Bruno Haible  <bruno@clisp.org>
9360
9361         di-set tests: Refactor.
9362         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
9363         unnecessary includes.
9364         (ASSERT): Remove macro.
9365         (main): Make C90 compliant by avoiding variable declaration after
9366         statement.
9367         * modules/di-set-tests (Files): Add tests/macros.h.
9368
9369 2011-02-08  Bruno Haible  <bruno@clisp.org>
9370
9371         ino-map tests: Refactor.
9372         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
9373         unnecessary includes.
9374         (ASSERT): Remove macro.
9375         (main): Make C90 compliant by avoiding variable declaration after
9376         statement.
9377         * modules/ino-map-tests (Files): Add tests/macros.h.
9378
9379 2011-02-08  Jim Meyering  <meyering@redhat.com>
9380
9381         di-set: add "const" to a cast
9382         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
9383         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
9384
9385 2011-02-06  Bruno Haible  <bruno@clisp.org>
9386
9387         Rename module 'wctype' to 'wctype-h'.
9388         * modules/wctype-h: Renamed from modules/wctype.
9389         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
9390         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
9391         (Files, Depends-on, Makefile.am): Update.
9392         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
9393         (Files, Makefile.am): Update.
9394         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
9395         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
9396         * doc/posix-headers/wctype.texi: Update.
9397         * doc/posix-functions/iswalnum.texi: Update.
9398         * doc/posix-functions/iswalpha.texi: Update.
9399         * doc/posix-functions/iswblank.texi: Update.
9400         * doc/posix-functions/iswcntrl.texi: Update.
9401         * doc/posix-functions/iswdigit.texi: Update.
9402         * doc/posix-functions/iswgraph.texi: Update.
9403         * doc/posix-functions/iswlower.texi: Update.
9404         * doc/posix-functions/iswprint.texi: Update.
9405         * doc/posix-functions/iswpunct.texi: Update.
9406         * doc/posix-functions/iswspace.texi: Update.
9407         * doc/posix-functions/iswupper.texi: Update.
9408         * doc/posix-functions/iswxdigit.texi: Update.
9409         * doc/posix-functions/towlower.texi: Update.
9410         * doc/posix-functions/towupper.texi: Update.
9411         * NEWS: Mention the change.
9412         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
9413         * modules/mbchar (Dependencies): Likewise.
9414         * modules/mbswidth (Dependencies): Likewise.
9415         * modules/quotearg (Dependencies): Likewise.
9416         * modules/regex (Dependencies): Likewise.
9417         * modules/wcscasecmp (Dependencies): Likewise.
9418         * modules/wcsncasecmp (Dependencies): Likewise.
9419         * modules/wcwidth (Dependencies): Likewise.
9420
9421 2011-02-06  Bruno Haible  <bruno@clisp.org>
9422
9423         New module 'wcswidth'.
9424         * modules/wcswidth: New file.
9425         * lib/wchar.in.h (wcswidth): New declaration.
9426         * lib/wcswidth.c: New file.
9427         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
9428         * m4/wcswidth.m4: New file.
9429         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
9430         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
9431         REPLACE_WCSWIDTH.
9432         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
9433         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
9434         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
9435         * doc/posix-functions/wcswidth.texi: Mention the new module.
9436
9437 2011-02-06  Bruno Haible  <bruno@clisp.org>
9438
9439         New module 'wcstok'.
9440         * modules/wcstok: New file.
9441         * lib/wchar.in.h (wcstok): New declaration.
9442         * lib/wcstok.c: New file.
9443         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
9444         * m4/wcstok.m4: New file.
9445         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
9446         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
9447         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
9448         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
9449         * doc/posix-functions/wcstok.texi: Mention the new module.
9450
9451 2011-02-06  Bruno Haible  <bruno@clisp.org>
9452
9453         New module 'wcsstr'.
9454         * modules/wcsstr: New file.
9455         * lib/wchar.in.h (wcsstr): New declaration.
9456         * lib/wcsstr.c: New file.
9457         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
9458         * m4/wcsstr.m4: New file.
9459         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
9460         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
9461         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
9462         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
9463         * doc/posix-functions/wcsstr.texi: Mention the new module.
9464
9465 2011-02-06  Bruno Haible  <bruno@clisp.org>
9466
9467         New module 'wcspbrk'.
9468         * modules/wcspbrk: New file.
9469         * lib/wchar.in.h (wcspbrk): New declaration.
9470         * lib/wcspbrk.c: New file.
9471         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
9472         * m4/wcspbrk.m4: New file.
9473         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
9474         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
9475         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
9476         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
9477         * doc/posix-functions/wcspbrk.texi: Mention the new module.
9478
9479 2011-02-06  Bruno Haible  <bruno@clisp.org>
9480
9481         New module 'wcsspn'.
9482         * modules/wcsspn: New file.
9483         * lib/wchar.in.h (wcsspn): New declaration.
9484         * lib/wcsspn.c: New file.
9485         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
9486         * m4/wcsspn.m4: New file.
9487         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
9488         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
9489         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
9490         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
9491         * doc/posix-functions/wcsspn.texi: Mention the new module.
9492
9493 2011-02-06  Bruno Haible  <bruno@clisp.org>
9494
9495         New module 'wcscspn'.
9496         * modules/wcscspn: New file.
9497         * lib/wchar.in.h (wcscspn): New declaration.
9498         * lib/wcscspn.c: New file.
9499         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
9500         * m4/wcscspn.m4: New file.
9501         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
9502         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
9503         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
9504         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
9505         * doc/posix-functions/wcscspn.texi: Mention the new module.
9506
9507 2011-02-06  Bruno Haible  <bruno@clisp.org>
9508
9509         New module 'wcsrchr'.
9510         * modules/wcsrchr: New file.
9511         * lib/wchar.in.h (wcsrchr): New declaration.
9512         * lib/wcsrchr.c: New file.
9513         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
9514         * m4/wcsrchr.m4: New file.
9515         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
9516         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
9517         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
9518         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
9519         * doc/posix-functions/wcsrchr.texi: Mention the new module.
9520
9521 2011-02-06  Bruno Haible  <bruno@clisp.org>
9522
9523         New module 'wcschr'.
9524         * modules/wcschr: New file.
9525         * lib/wchar.in.h (wcschr): New declaration.
9526         * lib/wcschr.c: New file.
9527         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
9528         * m4/wcschr.m4: New file.
9529         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
9530         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
9531         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
9532         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
9533         * doc/posix-functions/wcschr.texi: Mention the new module.
9534
9535 2011-02-06  Bruno Haible  <bruno@clisp.org>
9536
9537         New module 'wcsdup'.
9538         * modules/wcsdup: New file.
9539         * lib/wchar.in.h (wcsdup): New declaration.
9540         * lib/wcsdup.c: New file.
9541         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
9542         * m4/wcsdup.m4: New file.
9543         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
9544         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
9545         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
9546         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
9547         * doc/posix-functions/wcsdup.texi: Mention the new module.
9548
9549 2011-02-06  Bruno Haible  <bruno@clisp.org>
9550
9551         New module 'wcsxfrm'.
9552         * modules/wcsxfrm: New file.
9553         * lib/wchar.in.h (wcsxfrm): New declaration.
9554         * lib/wcsxfrm.c: New file.
9555         * lib/wcsxfrm-impl.h: New file.
9556         * m4/wcsxfrm.m4: New file.
9557         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
9558         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
9559         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
9560         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
9561         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
9562
9563 2011-02-06  Bruno Haible  <bruno@clisp.org>
9564
9565         New module 'wcscoll'.
9566         * modules/wcscoll: New file.
9567         * lib/wchar.in.h (wcscoll): New declaration.
9568         * lib/wcscoll.c: New file.
9569         * lib/wcscoll-impl.h: New file.
9570         * m4/wcscoll.m4: New file.
9571         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
9572         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
9573         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
9574         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
9575         * doc/posix-functions/wcscoll.texi: Mention the new module.
9576
9577 2011-02-06  Bruno Haible  <bruno@clisp.org>
9578
9579         New module 'wcsncasecmp'.
9580         * modules/wcsncasecmp: New file.
9581         * lib/wchar.in.h (wcsncasecmp): New declaration.
9582         * lib/wcsncasecmp.c: New file.
9583         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
9584         * m4/wcsncasecmp.m4: New file.
9585         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
9586         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
9587         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
9588         HAVE_WCSNCASECMP.
9589         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
9590         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
9591
9592 2011-02-06  Bruno Haible  <bruno@clisp.org>
9593
9594         New module 'wcscasecmp'.
9595         * modules/wcscasecmp: New file.
9596         * lib/wchar.in.h (wcscasecmp): New declaration.
9597         * lib/wcscasecmp.c: New file.
9598         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
9599         * m4/wcscasecmp.m4: New file.
9600         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
9601         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
9602         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
9603         HAVE_WCSCASECMP.
9604         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
9605         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
9606
9607 2011-02-05  Bruno Haible  <bruno@clisp.org>
9608
9609         New module 'wcsncmp'.
9610         * modules/wcsncmp: New file.
9611         * lib/wchar.in.h (wcsncmp): New declaration.
9612         * lib/wcsncmp.c: New file.
9613         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
9614         * m4/wcsncmp.m4: New file.
9615         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
9616         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
9617         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
9618         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
9619         * doc/posix-functions/wcsncmp.texi: Mention the new module.
9620
9621 2011-02-05  Bruno Haible  <bruno@clisp.org>
9622
9623         New module 'wcscmp'.
9624         * modules/wcscmp: New file.
9625         * lib/wchar.in.h (wcscmp): New declaration.
9626         * lib/wcscmp.c: New file.
9627         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
9628         * m4/wcscmp.m4: New file.
9629         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
9630         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
9631         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
9632         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
9633         * doc/posix-functions/wcscmp.texi: Mention the new module.
9634
9635 2011-02-05  Bruno Haible  <bruno@clisp.org>
9636
9637         New module 'wcsncat'.
9638         * modules/wcsncat: New file.
9639         * lib/wchar.in.h (wcsncat): New declaration.
9640         * lib/wcsncat.c: New file.
9641         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
9642         * m4/wcsncat.m4: New file.
9643         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
9644         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
9645         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
9646         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
9647         * doc/posix-functions/wcsncat.texi: Mention the new module.
9648
9649 2011-02-05  Bruno Haible  <bruno@clisp.org>
9650
9651         New module 'wcscat'.
9652         * modules/wcscat: New file.
9653         * lib/wchar.in.h (wcscat): New declaration.
9654         * lib/wcscat.c: New file.
9655         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
9656         * m4/wcscat.m4: New file.
9657         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
9658         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
9659         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
9660         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
9661         * doc/posix-functions/wcscat.texi: Mention the new module.
9662
9663 2011-02-05  Bruno Haible  <bruno@clisp.org>
9664
9665         New module 'wcpncpy'.
9666         * modules/wcpncpy: New file.
9667         * lib/wchar.in.h (wcpncpy): New declaration.
9668         * lib/wcpncpy.c: New file.
9669         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
9670         * m4/wcpncpy.m4: New file.
9671         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
9672         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
9673         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
9674         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
9675         * doc/posix-functions/wcpncpy.texi: Mention the new module.
9676
9677 2011-02-05  Bruno Haible  <bruno@clisp.org>
9678
9679         New module 'wcsncpy'.
9680         * modules/wcsncpy: New file.
9681         * lib/wchar.in.h (wcsncpy): New declaration.
9682         * lib/wcsncpy.c: New file.
9683         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
9684         * m4/wcsncpy.m4: New file.
9685         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
9686         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
9687         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
9688         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
9689         * doc/posix-functions/wcsncpy.texi: Mention the new module.
9690
9691 2011-02-05  Bruno Haible  <bruno@clisp.org>
9692
9693         New module 'wcpcpy'.
9694         * modules/wcpcpy: New file.
9695         * lib/wchar.in.h (wcpcpy): New declaration.
9696         * lib/wcpcpy.c: New file.
9697         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
9698         * m4/wcpcpy.m4: New file.
9699         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
9700         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
9701         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
9702         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
9703         * doc/posix-functions/wcpcpy.texi: Mention the new module.
9704
9705 2011-02-05  Bruno Haible  <bruno@clisp.org>
9706
9707         New module 'wcscpy'.
9708         * modules/wcscpy: New file.
9709         * lib/wchar.in.h (wcscpy): New declaration.
9710         * lib/wcscpy.c: New file.
9711         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
9712         * m4/wcscpy.m4: New file.
9713         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
9714         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
9715         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
9716         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
9717         * doc/posix-functions/wcscpy.texi: Mention the new module.
9718
9719 2011-02-05  Bruno Haible  <bruno@clisp.org>
9720
9721         New module 'wcsnlen'.
9722         * modules/wcsnlen: New file.
9723         * lib/wchar.in.h (wcsnlen): New declaration.
9724         * lib/wcsnlen.c: New file.
9725         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
9726         * m4/wcsnlen.m4: New file.
9727         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
9728         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
9729         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
9730         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
9731         * doc/posix-functions/wcsnlen.texi: Mention the new module.
9732
9733 2011-02-05  Bruno Haible  <bruno@clisp.org>
9734
9735         New module 'wcslen'.
9736         * modules/wcslen: New file.
9737         * lib/wchar.in.h (wcslen): New declaration.
9738         * lib/wcslen.c: New file.
9739         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
9740         * m4/wcslen.m4: New file.
9741         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
9742         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
9743         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
9744         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
9745         * doc/posix-functions/wcslen.texi: Mention the new module.
9746
9747 2011-02-05  Bruno Haible  <bruno@clisp.org>
9748
9749         New module 'wmemset'.
9750         * modules/wmemset: New file.
9751         * lib/wchar.in.h (wmemset): New declaration.
9752         * lib/wmemset.c: New file.
9753         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
9754         * m4/wmemset.m4: New file.
9755         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
9756         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
9757         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
9758         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
9759         * doc/posix-functions/wmemset.texi: Mention the new module.
9760
9761 2011-02-05  Bruno Haible  <bruno@clisp.org>
9762
9763         New module 'wmemmove'.
9764         * modules/wmemmove: New file.
9765         * lib/wchar.in.h (wmemmove): New declaration.
9766         * lib/wmemmove.c: New file.
9767         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
9768         * m4/wmemmove.m4: New file.
9769         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
9770         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
9771         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
9772         HAVE_WMEMMOVE.
9773         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
9774         * doc/posix-functions/wmemmove.texi: Mention the new module.
9775
9776 2011-02-05  Bruno Haible  <bruno@clisp.org>
9777
9778         New module 'wmemcpy'.
9779         * modules/wmemcpy: New file.
9780         * lib/wchar.in.h (wmemcpy): New declaration.
9781         * lib/wmemcpy.c: New file.
9782         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
9783         * m4/wmemcpy.m4: New file.
9784         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
9785         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
9786         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
9787         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
9788         * doc/posix-functions/wmemcpy.texi: Mention the new module.
9789
9790 2011-02-05  Bruno Haible  <bruno@clisp.org>
9791
9792         New module 'wmemcmp'.
9793         * modules/wmemcmp: New file.
9794         * lib/wchar.in.h (wmemcmp): New declaration.
9795         * lib/wmemcmp.c: New file.
9796         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
9797         * m4/wmemcmp.m4: New file.
9798         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
9799         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
9800         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
9801         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
9802         * doc/posix-functions/wmemcmp.texi: Mention the new module.
9803
9804 2011-02-07  Jim Meyering  <meyering@redhat.com>
9805
9806         di-set, ino-map: new modules, from coreutils
9807         * lib/di-set.c: New file.
9808         * lib/di-set.h: Likewise.
9809         * lib/ino-map.c: Likewise.
9810         * lib/ino-map.h: Likewise.
9811         * modules/di-set: Likewise.
9812         * modules/di-set-tests: Likewise.
9813         * modules/ino-map: Likewise.
9814         * modules/ino-map-tests: Likewise.
9815         * tests/test-di-set.c: Likewise.
9816         * tests/test-ino-map.c: Likewise.
9817
9818 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
9819
9820         getloadavg: merge minor changes from Emacs
9821
9822         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
9823         (getloadavg): Use memset, not bzero.
9824
9825         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
9826         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
9827         clash (bug#86).
9828
9829 2010-11-14  Bruno Haible  <bruno@clisp.org>
9830
9831         Allow multiple gnulib generated replacements to coexist.
9832         * lib/getopt.in.h (struct option): Avoid identical redefinition.
9833         * lib/inttypes.in.h (imaxdiv_t): Likewise.
9834         * lib/langinfo.in.h (nl_item): Likewise.
9835         * lib/math.in.h (_NaN, NAN): Likewise.
9836         * lib/netdb.in.h (struct addrinfo): Likewise.
9837         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
9838         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
9839         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
9840         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
9841         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
9842         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
9843         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
9844         pthread_mutexattr_init, pthread_mutexattr_settype,
9845         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
9846         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
9847         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
9848         pthread_spin_trylock, pthread_spin_unlock): Likewise.
9849         * lib/sched.in.h (struct sched_param): Likewise.
9850         * lib/se-selinux.in.h (security_class_t, security_context_t,
9851         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
9852         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
9853         lsetfilecon, fsetfilecon, security_check_context,
9854         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
9855         Likewise.
9856         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
9857         Likewise.
9858         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
9859         _gl_function_taking_int_returning_void_t, union sigval,
9860         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
9861         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
9862         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
9863         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
9864         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
9865         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
9866         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
9867         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
9868         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
9869         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
9870         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
9871         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
9872         socklen_t, rpl_fd_isset): Likewise.
9873         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
9874         * lib/sys_time.in.h (struct timeval): Likewise.
9875         * lib/sys_times.in.h (struct tms): Likewise.
9876         * lib/sys_utsname.in.h (struct utsname):
9877         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
9878         * lib/unistd.in.h (getpagesize): Likewise.
9879         * lib/wchar.in.h (mbstate_t): Likewise.
9880         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
9881         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
9882         towlower, towupper): Likewise.
9883         Reported by Sam Steingold <sds@gnu.org>.
9884
9885 2011-02-05  Eric Blake  <eblake@redhat.com>
9886
9887         unsetenv: work around Haiku issues
9888         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
9889         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
9890
9891 2010-12-30  Bruce Korb  <bkorb@gnu.org>
9892
9893         libposix: avoid calling error() within libposix
9894         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
9895         is defined.
9896
9897 2011-02-05  Eric Blake  <eblake@redhat.com>
9898
9899         strerror_r-posix: port to cygwin
9900         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
9901         implementation.
9902         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
9903         * tests/test-strerror_r.c (main): Fix test.
9904         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9905         issue.
9906
9907 2011-02-05  Bruno Haible  <bruno@clisp.org>
9908
9909         New module 'wmemchr'.
9910         * modules/wmemchr: New file.
9911         * lib/wchar.in.h (wmemchr): New declaration.
9912         * lib/wmemchr.c: New file.
9913         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
9914         * m4/wmemchr.m4: New file.
9915         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
9916         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
9917         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
9918         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
9919         * doc/posix-functions/wmemchr.texi: Mention the new module.
9920
9921 2011-02-04  Eric Blake  <eblake@redhat.com>
9922
9923         fdopendir: detect FreeBSD bug
9924         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
9925         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
9926
9927 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
9928
9929         stdbool: do not define HAVE_STDBOOL_H
9930         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
9931         AC_HEADER_STDBOOL.  All uses changed.  Do not define
9932         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
9933         imported from the latest Autoconf git.  It was motivated by Emacs,
9934         which uses gnulib but does not need HAVE_STDBOOL_H.
9935
9936 2011-02-04  Bruno Haible  <bruno@clisp.org>
9937
9938         wcsnrtombs: Prepare for new module wwcsnrtombs.
9939         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
9940         * lib/wcsnrtombs.c: Include it.
9941         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
9942
9943         wcsrtombs: Prepare for new module wwcsrtombs.
9944         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
9945         * lib/wcsrtombs.c: Include it.
9946         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
9947
9948         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
9949         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
9950         * lib/mbsnrtowcs.c: Include it.
9951         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
9952
9953         mbsrtowcs: Prepare for new module mbsrtowwcs.
9954         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
9955         * lib/mbsrtowcs.c: Include it.
9956         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
9957
9958 2011-02-04  Bruno Haible  <bruno@clisp.org>
9959
9960         vasnprintf: Reduce use of malloc for small format strings.
9961         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
9962         (arguments): Add room for the first 7 arguments.
9963         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
9964         (char_directives, u8_directives, u16_directives, u32_directives): Add
9965         room for the first 7 directives.
9966         * lib/printf-parse.c: Include <string.h>.
9967         (PRINTF_PARSE): Change memory handling code so that it uses the first
9968         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
9969         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
9970         Reported by Pádraig Brady <P@draigbrady.com>.
9971
9972 2011-01-31  Eric Blake  <eblake@redhat.com>
9973
9974         dup2: work around Haiku bug
9975         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
9976         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
9977         * doc/posix-functions/dup2.texi (dup2): Document the bug.
9978         * tests/test-dup2.c (main): Enhance test.
9979
9980 2011-01-31  Simon Josefsson  <simon@josefsson.org>
9981
9982         doc: off_t is not available in eglibc 2.11.2 stdio.h.
9983         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
9984         declared by eglibc 2.11.2.
9985         * lib/stdio.in.h: Likewise.
9986
9987 2011-01-31  Eric Blake  <eblake@redhat.com>
9988
9989         ignore-value: add missing test dependency
9990         * tests/test-ignore-value.c: Revert previous change; stdio.h
9991         provides off_t.
9992         * modules/ignore-value-tests (Depends-on): Add missing dependency.
9993
9994 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
9995
9996         mktime: clarify long_int width checking
9997         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
9998         the top level, to make it clearer that the assumption about
9999         long_int width is being checked.  See
10000         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
10001
10002 2011-01-30  Simon Josefsson  <simon@josefsson.org>
10003
10004         ignore-value: Fix self-test.
10005         * tests/test-ignore-value.c: Include sys/types.h for off_t.
10006
10007 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
10008
10009         TYPE_MAXIMUM: avoid theoretically undefined behavior
10010         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
10011         negative number, which the C Standard says has undefined behavior.
10012         In practice this is not a problem, but might as well do it by the book.
10013         Reported by Rich Felker and Eric Blake; see
10014         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
10015         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
10016         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
10017         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
10018         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
10019         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10020         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
10021
10022         mktime: #undef mktime before #defining it
10023         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
10024
10025         mktime: systematically normalize tm_isdst comparisons
10026         * lib/mktime.c (isdst_differ): New function.
10027         (__mktime_internal): Use it systematically for all isdst comparisons.
10028         This completes the fix for libc BZ #6723, and removes the need for
10029         normalizing tm_isdst.  See
10030         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
10031         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
10032
10033         mktime: fix some integer overflow issues and sidestep the rest
10034
10035         This was prompted by a bug report by Benjamin Lindner for MinGW
10036         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
10037         His bug is due to signed integer overflow (0 - INT_MIN), and I
10038         I scanned through mktime.c looking for other integer overflow
10039         problems, fixing all the bugs I found.
10040
10041         Although the C Standard says the resulting code is still not safe
10042         in the presence of integer overflow, in practice it should be good
10043         enough for all real-world two's-complement implementations, except
10044         for debugging environments that deliberately trap on integer
10045         overflow (e.g., gcc -ftrapv).
10046
10047         * lib/mktime.c (WRAPV): New macro.
10048         (SHR): Also check that long_int and time_t shift right in the
10049         usual way, before using the fast-but-unportable method.
10050         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
10051         used.  The code already assumed two's complement, so there's
10052         no need to test for alternatives.  All uses removed.
10053         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
10054         the C standard.  Problem reported by Rich Felker in
10055         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
10056         (twos_complement_arithmetic): Also check long_int and time_t.
10057         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
10058         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
10059         (__mktime_internal): Avoid integer overflow with unary subtraction
10060         in two instances where -1 - X is an adequate replacement for -X,
10061         since the calculations are approximate.
10062
10063 2011-01-29  Eric Blake  <eblake@redhat.com>
10064
10065         mktime: avoid infinite loop
10066         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
10067         type; behavior is still undefined but portable to all known targets.
10068         Reported by Rich Felker.
10069
10070 2011-01-29  Simon Josefsson  <simon@josefsson.org>
10071
10072         rename, unlink, same-inode: Relicense.
10073         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
10074         * modules/unlink (License): Likewise.
10075         * modules/same-inode (License): Likewise.
10076
10077 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
10078
10079         mktime: avoid problems on NetBSD 5 / i386
10080         * lib/mktime.c (long_int): New type.  This works around a problem
10081         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
10082         but time_t is 64 bits, and where I expect the existing code is
10083         wrong in some cases.
10084         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
10085         (ydhms_diff): Bring back the compile-time check for wide-enough
10086         year and yday.
10087
10088         mktime: fix misspelling in comment
10089         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
10090         This merges all recent glibc changes of importance.
10091
10092 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10093
10094         move-if-change: cope with concurrent mv of identical file.
10095         * build-aux/move-if-change (CMPPROG): Accept environment
10096         variable as an override for `cmp'.
10097         (usage): Document CMPPROG.
10098         Adjust comparison to drop stdout.  Cope with failure of mv if
10099         the target file exists and is identical to the source, for
10100         parallel builds.
10101         Report from H.J. Lu against binutils in PR binutils/12283.
10102
10103 2011-01-28  Bruce Korb  <bkorb@gnu.org>
10104
10105         * users.txt: Mention sharutils.
10106
10107 2011-01-28  Simon Josefsson  <simon@josefsson.org>
10108
10109         * users.txt: Mention OATH Toolkit.
10110
10111 2011-01-27  Bruno Haible  <bruno@clisp.org>
10112
10113         Prepare for supporting FreeBSD 10.
10114         * build-aux/config.libpath: Remove handling of freebsd1*.
10115
10116 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
10117
10118         Prepare for supporting FreeBSD 10.
10119         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
10120         match FreeBSD 10.0.
10121
10122 2011-01-27  Bruno Haible  <bruno@clisp.org>
10123
10124         vma-iter, get-rusage-as: Add OpenBSD support.
10125         * modules/vma-iter (configure.ac): Test for mquery.
10126         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
10127         * lib/vma-iter.c: Include <sys/mman.h>.
10128         (vma_iterate): Add an implementation based on mquery().
10129         * lib/resource-ext.h (get_rusage_as): Update comments.
10130         * lib/get-rusage-as.c: Likewise.
10131         * lib/get-rusage-data.c: Likewise.
10132
10133 2011-01-26  Karl Berry  <karl@gnu.org>
10134
10135         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
10136         variables to make it easier to override the makeinfo program used.
10137
10138 2011-01-26  Eric Blake  <eblake@redhat.com>
10139
10140         fcntl: work around Haiku F_DUPFD bugs
10141         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
10142         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
10143         cloexec bit on duplication.
10144         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
10145
10146 2011-01-26  Bruno Haible  <bruno@clisp.org>
10147
10148         Enable memory leak tests on AIX.
10149         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
10150         * tests/test-fprintf-posix3.c (main): Likewise.
10151
10152 2011-01-26  Bruno Haible  <bruno@clisp.org>
10153
10154         Tests for module 'get-rusage-data'.
10155         * modules/get-rusage-data-tests: New file.
10156         * tests/test-get-rusage-data.c: New file.
10157
10158         New module 'get-rusage-data'.
10159         * lib/resource-ext.h (get_rusage_data): New declaration.
10160         * lib/get-rusage-data.c: New file.
10161         * modules/get-rusage-data: New file.
10162
10163 2011-01-25  Bruno Haible  <bruno@clisp.org>
10164
10165         get-rusage-as: Allow for easier testing.
10166         * lib/resource-ext.h (get_rusage_as): Add comment.
10167         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
10168         (main): New function for interactive testing.
10169
10170 2011-01-25  Bruno Haible  <bruno@clisp.org>
10171
10172         vma-iter: Treat Haiku like BeOS.
10173         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
10174         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
10175
10176 2011-01-25  Eric Blake  <eblake@redhat.com>
10177
10178         c-stack: fix regression on cygwin when libsigsegv is present
10179         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
10180
10181 2011-01-24  Bruno Haible  <bruno@clisp.org>
10182
10183         vma-iter: Avoid empty intervals.
10184         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
10185         on an empty interval.
10186
10187 2011-01-24  Jim Meyering  <meyering@redhat.com>
10188
10189         u64: remove unnecessary #include
10190         * lib/u64.h: Don't include <stddef.h>.  It was not used.
10191
10192 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
10193
10194         Allow the user to avoid the HAVE_RAW_DECL_* macros.
10195         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
10196
10197 2011-01-23  Bruno Haible  <bruno@clisp.org>
10198
10199         New module 'vma-iter'.
10200         * lib/vma-iter.h: New file.
10201         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
10202         * modules/vma-iter: New file.
10203         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
10204         for get_rusage_as_via_iterator.
10205         (vma_iterate_callback): New function.
10206         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
10207         * modules/get-rusage-as (Depends-on): Add vma-iter.
10208
10209 2011-01-23  Bruno Haible  <bruno@clisp.org>
10210
10211         uninorm: Tweak includes.
10212         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
10213         Reported by Jim Meyering.
10214
10215 2011-01-23  Bruno Haible  <bruno@clisp.org>
10216
10217         get-rusage-as: Improve on NetBSD.
10218         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
10219         /proc, like on FreeBSD.
10220
10221 2011-01-23  Jim Meyering  <meyering@redhat.com>
10222
10223         xreadlink.h: remove unnecessary #include
10224         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
10225
10226         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
10227         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
10228
10229 2011-01-23  Bruno Haible  <bruno@clisp.org>
10230
10231         get-rusage-as: Fix bug.
10232         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
10233         original limit when aborting the first loop.
10234
10235 2011-01-23  Bruno Haible  <bruno@clisp.org>
10236
10237         wctype: Ensure valid C syntax.
10238         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
10239         unconditionally, instead of gl_NEXT_HEADERS conditionally.
10240
10241 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
10242
10243         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
10244         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
10245         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
10246         as they are needed only for configure's test case.
10247         This removes two unnecessary symbols from config.h.
10248
10249         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
10250         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
10251         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
10252         AC_CHECK_HEADERS_ONCE on a header that we also invoke
10253         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
10254         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
10255         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
10256         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
10257         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
10258         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10259         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
10260         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10261         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10262         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10263         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
10264         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10265         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
10266         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
10267
10268 2011-01-21  Eric Blake  <eblake@redhat.com>
10269
10270         maintainer-makefile: work with older git for submodule check
10271         * top/maint.mk (public-submodule-commit): Rewrite to avoid
10272         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
10273         Reported by Matthias Bolte.
10274
10275         bootstrap: minor portability fixes
10276         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
10277         (usage): Omit leading capital and trailing . on help phrases, per
10278         GNU Coding Standards.
10279         (check_versions, top level): Prefix messages with script name.
10280
10281 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
10282
10283         bootstrap: support --no-git option
10284         * build-aux/bootstrap: Add --no-git option, to be used when
10285         --gnulib-srcdir points to the exact desired checkout.
10286
10287 2011-01-21  Eric Blake  <eblake@redhat.com>
10288
10289         strerror_r-posix: work with glibc 2.13
10290         * lib/strerror_r.c (strerror_r): Fix return type.
10291
10292 2011-01-21  Pádraig Brady  <P@draigBrady.com>
10293             Bruno Haible  <bruno@clisp.org>
10294
10295         uN_strstr: New unit tests.
10296         * modules/unistr/u8-strstr-tests: New file.
10297         * modules/unistr/u16-strstr-tests: New file.
10298         * modules/unistr/u32-strstr-tests: New file.
10299         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
10300         * tests/unistr/test-u8-strstr.c: New file.
10301         * tests/unistr/test-u16-strstr.c: New file.
10302         * tests/unistr/test-u32-strstr.c: New file.
10303
10304 2011-01-21  Pádraig Brady  <P@draigBrady.com>
10305             Bruno Haible  <bruno@clisp.org>
10306
10307         Make uN_strstr functions O(n) worst-case.
10308         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
10309         16-bit and 32-bit unit cases, use the unibyte algorithm from
10310         lib/mbsstr.c.
10311         * lib/unistr/u8-strstr.c: Include <string.h>.
10312         (UNIT_IS_UINT8_T): New macro.
10313         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
10314         (U_STRLEN, U_STRNLEN): New macros.
10315         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
10316         (U_STRLEN, U_STRNLEN): New macros.
10317         * modules/unistr/u8-strstr (Depends-on): Add strstr.
10318         (configure.ac): Update required libunistring version.
10319         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
10320         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
10321         malloca.
10322         (configure.ac): Update required libunistring version.
10323         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
10324         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
10325         malloca.
10326         (configure.ac): Update required libunistring version.
10327
10328 2011-01-21  Pádraig Brady  <P@draigBrady.com>
10329             Bruno Haible  <bruno@clisp.org>
10330
10331         Prepare for faster uN_strstr functions.
10332         * lib/str-kmp.h: Support definable UNITs.
10333         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
10334         needle_len argument.
10335         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
10336         * lib/mbscasestr.c (mbscasestr): Likewise.
10337
10338 2011-01-21  Pádraig Brady <P@draigBrady.com>
10339
10340         malloca-tests: make faster by unsetting MALLOC_PERTURB_
10341         * tests/test-malloca.c (main): Unset the environment variable
10342         to greatly speed up the test.
10343         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
10344         * modules/malloca-tests: Depend on unsetenv.
10345
10346 2011-01-21  Pádraig Brady <P@draigBrady.com>
10347
10348         ignore-value: remove stdint dependency
10349         * lib/ignore-value.h: Remove <stdint.h>
10350         * modules/ignore-value: Remove stdint dependency.
10351
10352 2011-01-21  Jim Meyering  <meyering@redhat.com>
10353
10354         maint.mk: adjust variable name to be consistent with other gl_ vars
10355         * top/maint.mk (gl_public_submodule_commit): Rename the variable
10356         to be lower case.
10357
10358 2011-01-20  Jim Meyering  <meyering@redhat.com>
10359
10360         maint.mk: make "check" depend on public-submodule-commit by default
10361         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
10362
10363 2011-01-20  Bruno Haible  <bruno@clisp.org>
10364
10365         mbfile, mbiter: Complete change from 2008-12-21.
10366         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
10367         * m4/mbiter.m4 (gl_MBITER): Likewise.
10368
10369 2011-01-20  Jim Meyering  <meyering@redhat.com>
10370
10371         init.sh: insert space between each function name and "()"
10372         * tests/init.sh: Make it a little easier to see that a function's
10373         name is "warn_", and not "warn" when looking at the first part of
10374         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
10375
10376 2011-01-20  Jim Meyering  <meyering@redhat.com>
10377
10378         mountlist: clean up code formatting
10379         * lib/mountlist.c (read_file_system_list): Split a long line,
10380         correct bracing style, use NULL in place of "(struct statfs *)0",
10381         don't parenthesize return value, add spaces around "=" and after
10382         ";-in-for-stmt".
10383
10384 2011-01-14  Markus Duft <mduft@gentoo.org>
10385
10386         mountlist: add support for Interix
10387         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
10388         Apply statvfs to all entries of /dev/fs.
10389         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
10390         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
10391
10392 2011-01-20  Jim Meyering  <meyering@redhat.com>
10393
10394         maint.mk: improve the public-submodule-commit rule
10395         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
10396         to suppress printing of its commands... unless V=1.
10397         Add git submodule's --quiet option to suppress printing of e.g.,
10398         "Entering gnulib" output.
10399         "cd" into $(srcdir) before running git submodule.
10400
10401 2011-01-20  Bruno Haible  <bruno@clisp.org>
10402
10403         include_next: Fix bug introduced on 2011-01-18.
10404         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
10405         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
10406         ac_cv_header_... variable if the second argument is not 'check'.
10407         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
10408         gl_NEXT_HEADERS_INTERNAL.
10409
10410 2011-01-20  Bruno Haible  <bruno@clisp.org>
10411
10412         Allow the user to avoid the GNULIB_TEST_* macros.
10413         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
10414         Suggested by Paul Eggert.
10415
10416 2011-01-14  Jim Meyering  <meyering@redhat.com>
10417
10418         bootstrap: avoid failure when there is no .gitmodules file
10419         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
10420         has been assigned to, even when its value is the empty string.
10421         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
10422         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
10423         Reported by John W. Eaton <jwe@gnu.org>.
10424
10425 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
10426
10427         assume <ctype.h>, ..., <time.h> exist
10428         For years gnulib has been assuming the existence of the headers
10429         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
10430         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
10431         them, since they don't appear to be needed.
10432         * README (Portability guidelines): Document this.
10433         * lib/flock.c: Assume <fcntl.h> exists.
10434         * lib/regex_internal.h: Assume <locale.h> exists.
10435         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
10436         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
10437         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
10438         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
10439         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
10440         * m4/regex.m4 (gl_REGEX): Likewise.
10441         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
10442         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
10443         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
10444         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
10445         * tests/test-argp.c: Likewise.
10446         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
10447
10448         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
10449         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
10450         AA_APPLE_UNIVERSAL_BUILD.  See
10451         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
10452         * NEWS: Document this.
10453
10454 2011-01-19  Eric Blake  <eblake@redhat.com>
10455
10456         c-stack: assume stack overflow if SA_SIGINFO unsupported
10457         * lib/c-stack.c (SIGACTION_WORKS): Rename...
10458         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
10459         sigaction will work.
10460         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
10461         behavior match Linux.
10462         * tests/test-c-stack.c (main): Prefer NULL for pointers.
10463
10464         stdbool-tests: accomodate Haiku
10465         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
10466
10467         binary-io: fix O_TEXT on Haiku
10468         * modules/binary-io (Depends-on): Add fcntl-h.
10469         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
10470         than blindly undefining O_TEXT.
10471         Reported by Scott McCreary.
10472
10473 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
10474
10475         include_next: do not check for standard headers like stddef.h
10476
10477         I found this problem when modifying Emacs to use gnulib.
10478         I noticed that it added HAVE_STDDEF_H to config.h, even though
10479         gnulib always assumes <stddef.h> exists as per README and this
10480         symbol is unnecessary.
10481         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
10482         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
10483         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
10484         faster for headers like stddef.h that are known to exist.
10485         (gl_CHECK_NEXT_HEADERS): Use it.
10486         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
10487         rather than gl_CHECK_NEXT_HEADERS.
10488         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
10489         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
10490
10491 2011-01-18  Eric Blake  <eblake@redhat.com>
10492
10493         ansi-c++-opt: skip C++ dependency style if C++ is unused
10494         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
10495         tests when we know C++ compilation is not desired.
10496         Reported by Scott McCreary.
10497
10498 2011-01-18  Bruno Haible  <bruno@clisp.org>
10499
10500         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
10501         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
10502         (main): Perform test also when getrlimit and setrlimit don't exist or
10503         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
10504         limiting the address space size using setrlimit, compare the address
10505         space size before and after the the test.
10506         * tests/test-dprintf-posix2.c: Likewise.
10507         * tests/test-fprintf-posix3.sh: Update skip messages.
10508         * tests/test-dprintf-posix2.sh: Likewise.
10509         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
10510         * modules/dprintf-posix-tests (Depends-on): Likewise.
10511         Reported by Bruce Korb <bkorb@gnu.org> and
10512         Gary V. Vaughan <gary@gnu.org>.
10513
10514 2011-01-18  Bruno Haible  <bruno@clisp.org>
10515
10516         get-rusage-as: Improvement for Cygwin.
10517         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
10518         areas that are merely reserved.
10519
10520 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
10521
10522         strftime: remove dependencies on multibyte modules
10523
10524         strftime depended on mbrlen, mbsinit, and wchar, but these modules
10525         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
10526         only if __osf__ is defined, and I suspect OSF doesn't need these
10527         other modules.  If my guess is wrong, we'll need to come up with a
10528         variant of strftime that doesn't need the multibyte modules.
10529
10530         I discovered this problem when attempting modify Emacs to use the
10531         strftime module.  With the previous gnulib, this caused Emacs to
10532         need 31 new files, ranging from lib/config.charset to
10533         m4/wint_t.m4.  This was overkill and I expect would be offputting
10534         to the Emacs maintainers.  After this change, only 6 new files are
10535         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
10536         stdbool.m4, and tm_gmtoff.m4.
10537
10538         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
10539         Suggested by Bruno Haible in
10540         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
10541         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
10542         and do not check for wchar.h.
10543         * modules/strftime (Files): Remove m4/mbstate_t.m4.
10544         (Depends-on): Remove mbrlen, mbsinit, wchar.
10545
10546 2011-01-18  Bruno Haible  <bruno@clisp.org>
10547
10548         Tests for module 'get-rusage-as'.
10549         * modules/get-rusage-as-tests: New file.
10550         * tests/test-get-rusage-as.c: New file.
10551
10552         New module 'get-rusage-as'.
10553         * modules/get-rusage-as: New file.
10554         * lib/resource-ext.h: New file.
10555         * lib/get-rusage-as.c: New file.
10556
10557 2011-01-17  Eric Blake  <eblake@redhat.com>
10558
10559         sigaction: relax license from LGPLv3+ to LGPLv2+
10560         * modules/sigaction (License): Relax to LGPLv2+.
10561
10562 2011-01-14  Bruno Haible  <bruno@clisp.org>
10563
10564         filemode: Make function declarations usable in C++ mode.
10565         * lib/filemode.h: Enclose function declarations in extern "C" block.
10566         Reported by John W. Eaton <jwe@gnu.org>.
10567
10568 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
10569
10570         save-cwd: no longer include "xgetcwd.h"
10571         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
10572         This avoids a compilation failure in projects that use save-cwd
10573         without also using the xgetcwd module.
10574
10575 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
10576
10577         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
10578         This is so that a program like Emacs, which needs only dtoastr,
10579         does not have to bother with distributing and compiling ftoastr
10580         and ldtoastr.
10581         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
10582         * modules/dtoastr, modules/ldtoastr: New files.
10583         * modules/ftoastr: Now works just for 'float'.
10584         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
10585         (Makefile.am): Remove ftoastr.h (not needed and no effect),
10586         dtoastr.c, ldtoastr.c.
10587
10588 2011-01-11  Jim Meyering  <meyering@redhat.com>
10589
10590         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
10591         There is no need to work around the lack of the fchdir function,
10592         since gnulib can now provide a replacement when required.
10593         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
10594         * modules/save-cwd (Depends-on): Add fchdir.
10595
10596 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
10597
10598         openat, save-cwd: avoid xmalloc
10599
10600         This removes a direct (but undocumented) dependency of openat on
10601         xalloc, along with an indirect dependency via save-cwd.  It also
10602         removes a dependency of save-cwd on xgetcwd, and thereby
10603         indirectly on xalloc.  This change causes the openat substitute
10604         to fall back on save_cwd when memory is tight, and for save_cwd to
10605         fail instead of dying when memory is tight, but that's good enough.
10606         Problem and initial idea for fix reported by Bastien Roucaries in
10607         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
10608
10609         * lib/openat-proc.c: Include stdlib.h (for malloc), not
10610         xalloc.h (for xmalloc).
10611         (openat_proc_name): Use malloc, not xmalloc.
10612         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
10613         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
10614
10615         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
10616         This avoids heap allocation for file names whose lengths are in
10617         the range 512..1023, with the upper bound increasing to at most
10618         4031 depending on the platform's PATH_MAX.  (We do not want
10619         pathmax.h here as it might supply a non-constant PATH_MAX.)
10620         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
10621         Perhaps they should be moved to malloca.h?
10622         (OPENAT_BUFFER_SIZE): Use them.
10623
10624 2011-01-10  Bruno Haible  <bruno@clisp.org>
10625
10626         doc: Update users.txt.
10627         * users.txt: Add recutils.
10628
10629 2011-01-09  Karl Berry  <karl@gnu.org>
10630
10631         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
10632
10633         * doc/configmake.texi: New file.
10634         * doc/gnulib.texi: Include it.
10635         * modules/configmake: Move documentation from here.
10636
10637 2011-01-09  Bruno Haible  <bruno@clisp.org>
10638
10639         Update to Unicode 6.0.0.
10640         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
10641         (get_lbp): Update for Unicode 6.0.0.
10642         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
10643         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
10644         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
10645         U+11001, U+11038..U+11046. Remove U+06DE.
10646         (uc_width): Fix bounds of planes.
10647         * tests/uniwidth/test-uc_width2.sh: Same updates as in
10648         lib/uniwidth/width.c.
10649         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
10650         trailing whitespace removed.
10651         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
10652         without comments, but with the original copyright notice.
10653         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
10654         * lib/unicase/ignorable.h: Likewise.
10655         * lib/unicase/tocasefold.h: Likewise.
10656         * lib/unicase/tolower.h: Likewise.
10657         * lib/unicase/totitle.h: Likewise.
10658         * lib/unicase/toupper.h: Likewise.
10659         * lib/unictype/bidi_of.h: Likewise.
10660         * lib/unictype/blocks.h: Likewise.
10661         * lib/unictype/categ_C.h: Likewise.
10662         * lib/unictype/categ_Cn.h: Likewise.
10663         * lib/unictype/categ_L.h: Likewise.
10664         * lib/unictype/categ_Ll.h: Likewise.
10665         * lib/unictype/categ_Lm.h: Likewise.
10666         * lib/unictype/categ_Lo.h: Likewise.
10667         * lib/unictype/categ_Lu.h: Likewise.
10668         * lib/unictype/categ_M.h: Likewise.
10669         * lib/unictype/categ_Mc.h: Likewise.
10670         * lib/unictype/categ_Me.h: Likewise.
10671         * lib/unictype/categ_Mn.h: Likewise.
10672         * lib/unictype/categ_N.h: Likewise.
10673         * lib/unictype/categ_Nd.h: Likewise.
10674         * lib/unictype/categ_No.h: Likewise.
10675         * lib/unictype/categ_P.h: Likewise.
10676         * lib/unictype/categ_Po.h: Likewise.
10677         * lib/unictype/categ_S.h: Likewise.
10678         * lib/unictype/categ_Sc.h: Likewise.
10679         * lib/unictype/categ_Sk.h: Likewise.
10680         * lib/unictype/categ_Sm.h: Likewise.
10681         * lib/unictype/categ_So.h: Likewise.
10682         * lib/unictype/categ_of.h: Likewise.
10683         * lib/unictype/combining.h: Likewise.
10684         * lib/unictype/ctype_alnum.h: Likewise.
10685         * lib/unictype/ctype_alpha.h: Likewise.
10686         * lib/unictype/ctype_graph.h: Likewise.
10687         * lib/unictype/ctype_lower.h: Likewise.
10688         * lib/unictype/ctype_print.h: Likewise.
10689         * lib/unictype/ctype_punct.h: Likewise.
10690         * lib/unictype/ctype_upper.h: Likewise.
10691         * lib/unictype/decdigit.h: Likewise.
10692         * lib/unictype/digit.h: Likewise.
10693         * lib/unictype/numeric.h: Likewise.
10694         * lib/unictype/pr_alphabetic.h: Likewise.
10695         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
10696         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
10697         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
10698         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
10699         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
10700         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
10701         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
10702         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
10703         * lib/unictype/pr_case_ignorable.h: Likewise.
10704         * lib/unictype/pr_cased.h: Likewise.
10705         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
10706         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
10707         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
10708         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
10709         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
10710         * lib/unictype/pr_combining.h: Likewise.
10711         * lib/unictype/pr_composite.h: Likewise.
10712         * lib/unictype/pr_currency_symbol.h: Likewise.
10713         * lib/unictype/pr_decimal_digit.h: Likewise.
10714         * lib/unictype/pr_deprecated.h: Likewise.
10715         * lib/unictype/pr_format_control.h: Likewise.
10716         * lib/unictype/pr_grapheme_base.h: Likewise.
10717         * lib/unictype/pr_grapheme_extend.h: Likewise.
10718         * lib/unictype/pr_grapheme_link.h: Likewise.
10719         * lib/unictype/pr_id_continue.h: Likewise.
10720         * lib/unictype/pr_id_start.h: Likewise.
10721         * lib/unictype/pr_ideographic.h: Likewise.
10722         * lib/unictype/pr_lowercase.h: Likewise.
10723         * lib/unictype/pr_math.h: Likewise.
10724         * lib/unictype/pr_numeric.h: Likewise.
10725         * lib/unictype/pr_other_alphabetic.h: Likewise.
10726         * lib/unictype/pr_other_id_continue.h: Likewise.
10727         * lib/unictype/pr_other_math.h: Likewise.
10728         * lib/unictype/pr_punctuation.h: Likewise.
10729         * lib/unictype/pr_sentence_terminal.h: Likewise.
10730         * lib/unictype/pr_terminal_punctuation.h: Likewise.
10731         * lib/unictype/pr_unassigned_code_value.h: Likewise.
10732         * lib/unictype/pr_unified_ideograph.h: Likewise.
10733         * lib/unictype/pr_uppercase.h: Likewise.
10734         * lib/unictype/pr_xid_continue.h: Likewise.
10735         * lib/unictype/pr_xid_start.h: Likewise.
10736         * lib/unictype/scripts.h: Likewise.
10737         * lib/unictype/scripts_byname.gperf: Likewise.
10738         * lib/unictype/sy_java_ident.h: Likewise.
10739         * lib/unigbrk/gbrkprop.h: Likewise.
10740         * lib/unilbrk/lbrkprop1.h: Likewise.
10741         * lib/unilbrk/lbrkprop2.h: Likewise.
10742         * lib/uninorm/decomposition-table2.h: Likewise.
10743         * lib/uniwbrk/wbrkprop.h: Likewise.
10744         * tests/unicase/test-cased.c: Likewise.
10745         * tests/unicase/test-ignorable.c: Likewise.
10746         * tests/unicase/test-uc_tolower.c: Likewise.
10747         * tests/unicase/test-uc_totitle.c: Likewise.
10748         * tests/unicase/test-uc_toupper.c: Likewise.
10749         * tests/unictype/test-categ_C.c: Likewise.
10750         * tests/unictype/test-categ_Cn.c: Likewise.
10751         * tests/unictype/test-categ_L.c: Likewise.
10752         * tests/unictype/test-categ_Ll.c: Likewise.
10753         * tests/unictype/test-categ_Lm.c: Likewise.
10754         * tests/unictype/test-categ_Lo.c: Likewise.
10755         * tests/unictype/test-categ_Lu.c: Likewise.
10756         * tests/unictype/test-categ_M.c: Likewise.
10757         * tests/unictype/test-categ_Mc.c: Likewise.
10758         * tests/unictype/test-categ_Me.c: Likewise.
10759         * tests/unictype/test-categ_Mn.c: Likewise.
10760         * tests/unictype/test-categ_N.c: Likewise.
10761         * tests/unictype/test-categ_Nd.c: Likewise.
10762         * tests/unictype/test-categ_No.c: Likewise.
10763         * tests/unictype/test-categ_P.c: Likewise.
10764         * tests/unictype/test-categ_Po.c: Likewise.
10765         * tests/unictype/test-categ_S.c: Likewise.
10766         * tests/unictype/test-categ_Sc.c: Likewise.
10767         * tests/unictype/test-categ_Sk.c: Likewise.
10768         * tests/unictype/test-categ_Sm.c: Likewise.
10769         * tests/unictype/test-categ_So.c: Likewise.
10770         * tests/unictype/test-ctype_alnum.c: Likewise.
10771         * tests/unictype/test-ctype_alpha.c: Likewise.
10772         * tests/unictype/test-ctype_graph.c: Likewise.
10773         * tests/unictype/test-ctype_lower.c: Likewise.
10774         * tests/unictype/test-ctype_print.c: Likewise.
10775         * tests/unictype/test-ctype_punct.c: Likewise.
10776         * tests/unictype/test-ctype_upper.c: Likewise.
10777         * tests/unictype/test-decdigit.h: Likewise.
10778         * tests/unictype/test-digit.h: Likewise.
10779         * tests/unictype/test-numeric.h: Likewise.
10780         * tests/unictype/test-pr_alphabetic.c: Likewise.
10781         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
10782         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
10783         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
10784         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
10785         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
10786         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
10787         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
10788         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
10789         * tests/unictype/test-pr_case_ignorable.c: Likewise.
10790         * tests/unictype/test-pr_cased.c: Likewise.
10791         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
10792         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
10793         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
10794         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
10795         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
10796         * tests/unictype/test-pr_combining.c: Likewise.
10797         * tests/unictype/test-pr_composite.c: Likewise.
10798         * tests/unictype/test-pr_currency_symbol.c: Likewise.
10799         * tests/unictype/test-pr_decimal_digit.c: Likewise.
10800         * tests/unictype/test-pr_deprecated.c: Likewise.
10801         * tests/unictype/test-pr_format_control.c: Likewise.
10802         * tests/unictype/test-pr_grapheme_base.c: Likewise.
10803         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
10804         * tests/unictype/test-pr_grapheme_link.c: Likewise.
10805         * tests/unictype/test-pr_id_continue.c: Likewise.
10806         * tests/unictype/test-pr_id_start.c: Likewise.
10807         * tests/unictype/test-pr_ideographic.c: Likewise.
10808         * tests/unictype/test-pr_lowercase.c: Likewise.
10809         * tests/unictype/test-pr_math.c: Likewise.
10810         * tests/unictype/test-pr_numeric.c: Likewise.
10811         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
10812         * tests/unictype/test-pr_other_id_continue.c: Likewise.
10813         * tests/unictype/test-pr_other_math.c: Likewise.
10814         * tests/unictype/test-pr_punctuation.c: Likewise.
10815         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
10816         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
10817         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
10818         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
10819         * tests/unictype/test-pr_uppercase.c: Likewise.
10820         * tests/unictype/test-pr_xid_continue.c: Likewise.
10821         * tests/unictype/test-pr_xid_start.c: Likewise.
10822         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
10823         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
10824         changes.
10825         * lib/unictype/categ_Cc.h: Likewise.
10826         * lib/unictype/categ_Cf.h: Likewise.
10827         * lib/unictype/categ_Co.h: Likewise.
10828         * lib/unictype/categ_Cs.h: Likewise.
10829         * lib/unictype/categ_Lt.h: Likewise.
10830         * lib/unictype/categ_Nl.h: Likewise.
10831         * lib/unictype/categ_Pc.h: Likewise.
10832         * lib/unictype/categ_Pd.h: Likewise.
10833         * lib/unictype/categ_Pe.h: Likewise.
10834         * lib/unictype/categ_Pf.h: Likewise.
10835         * lib/unictype/categ_Pi.h: Likewise.
10836         * lib/unictype/categ_Ps.h: Likewise.
10837         * lib/unictype/categ_Z.h: Likewise.
10838         * lib/unictype/categ_Zl.h: Likewise.
10839         * lib/unictype/categ_Zp.h: Likewise.
10840         * lib/unictype/categ_Zs.h: Likewise.
10841         * lib/unictype/ctype_blank.h: Likewise.
10842         * lib/unictype/ctype_cntrl.h: Likewise.
10843         * lib/unictype/ctype_digit.h: Likewise.
10844         * lib/unictype/ctype_space.h: Likewise.
10845         * lib/unictype/ctype_xdigit.h: Likewise.
10846         * lib/unictype/mirror.h: Likewise.
10847         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
10848         * lib/unictype/pr_bidi_block_separator.h: Likewise.
10849         * lib/unictype/pr_bidi_common_separator.h: Likewise.
10850         * lib/unictype/pr_bidi_control.h: Likewise.
10851         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
10852         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
10853         * lib/unictype/pr_bidi_european_digit.h: Likewise.
10854         * lib/unictype/pr_bidi_pdf.h: Likewise.
10855         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
10856         * lib/unictype/pr_bidi_whitespace.h: Likewise.
10857         * lib/unictype/pr_dash.h: Likewise.
10858         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
10859         * lib/unictype/pr_diacritic.h: Likewise.
10860         * lib/unictype/pr_extender.h: Likewise.
10861         * lib/unictype/pr_hex_digit.h: Likewise.
10862         * lib/unictype/pr_hyphen.h: Likewise.
10863         * lib/unictype/pr_ids_binary_operator.h: Likewise.
10864         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
10865         * lib/unictype/pr_ignorable_control.h: Likewise.
10866         * lib/unictype/pr_iso_control.h: Likewise.
10867         * lib/unictype/pr_join_control.h: Likewise.
10868         * lib/unictype/pr_left_of_pair.h: Likewise.
10869         * lib/unictype/pr_line_separator.h: Likewise.
10870         * lib/unictype/pr_logical_order_exception.h: Likewise.
10871         * lib/unictype/pr_non_break.h: Likewise.
10872         * lib/unictype/pr_not_a_character.h: Likewise.
10873         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
10874         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
10875         * lib/unictype/pr_other_id_start.h: Likewise.
10876         * lib/unictype/pr_other_lowercase.h: Likewise.
10877         * lib/unictype/pr_other_uppercase.h: Likewise.
10878         * lib/unictype/pr_paired_punctuation.h: Likewise.
10879         * lib/unictype/pr_paragraph_separator.h: Likewise.
10880         * lib/unictype/pr_pattern_syntax.h: Likewise.
10881         * lib/unictype/pr_pattern_white_space.h: Likewise.
10882         * lib/unictype/pr_private_use.h: Likewise.
10883         * lib/unictype/pr_quotation_mark.h: Likewise.
10884         * lib/unictype/pr_radical.h: Likewise.
10885         * lib/unictype/pr_soft_dotted.h: Likewise.
10886         * lib/unictype/pr_space.h: Likewise.
10887         * lib/unictype/pr_titlecase.h: Likewise.
10888         * lib/unictype/pr_variation_selector.h: Likewise.
10889         * lib/unictype/pr_white_space.h: Likewise.
10890         * lib/unictype/pr_zero_width.h: Likewise.
10891         * lib/unictype/sy_c_ident.h: Likewise.
10892         * lib/unictype/sy_c_whitespace.h: Likewise.
10893         * lib/unictype/sy_java_whitespace.h: Likewise.
10894         * lib/uninorm/composition-table.gperf: Likewise.
10895         * lib/uninorm/decomposition-table1.h: Likewise.
10896         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
10897         LB8.
10898         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
10899         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
10900         * modules/unictype/*: Bump version number of expected libunistring
10901         version.
10902
10903 2011-01-09  Bruno Haible  <bruno@clisp.org>
10904
10905         Update to Unicode 5.2.0.
10906         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
10907         trailing whitespace removed.
10908
10909 2011-01-09  Bruno Haible  <bruno@clisp.org>
10910
10911         New Unicode character properties, from Unicode 5.2.0.
10912         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
10913         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
10914         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
10915         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
10916         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
10917         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
10918         uc_is_property_cased, uc_is_property_case_ignorable,
10919         uc_is_property_changes_when_lowercased,
10920         uc_is_property_changes_when_uppercased,
10921         uc_is_property_changes_when_titlecased,
10922         uc_is_property_changes_when_casefolded,
10923         uc_is_property_changes_when_casemapped): New declarations.
10924         * lib/unictype/pr_byname.gperf: Add the new properties.
10925         * modules/unictype/property-byname (Depends-on): Depend on the new
10926         properties modules.
10927         * modules/unictype/property-all (Depends-on): Likewise.
10928         * MODULES.html.sh (Unicode string functions): Add
10929         unictype/property-case-ignorable, unictype/property-cased,
10930         unictype/property-changes-when-casefolded,
10931         unictype/property-changes-when-casemapped,
10932         unictype/property-changes-when-lowercased,
10933         unictype/property-changes-when-titlecased,
10934         unictype/property-changes-when-uppercased.
10935
10936         New module 'unictype/property-changes-when-casemapped'.
10937         * modules/unictype/property-changes-when-casemapped: New file.
10938         * lib/unictype/pr_changes_when_casemapped.c: New file.
10939         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
10940         generated by gen-uni-tables.
10941         * modules/unictype/property-changes-when-casemapped-tests: New file.
10942         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
10943         automatically generated by gen-uni-tables.
10944
10945         New module 'unictype/property-changes-when-casefolded'.
10946         * modules/unictype/property-changes-when-casefolded: New file.
10947         * lib/unictype/pr_changes_when_casefolded.c: New file.
10948         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
10949         generated by gen-uni-tables.
10950         * modules/unictype/property-changes-when-casefolded-tests: New file.
10951         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
10952         automatically generated by gen-uni-tables.
10953
10954         New module 'unictype/property-changes-when-titlecased'.
10955         * modules/unictype/property-changes-when-titlecased: New file.
10956         * lib/unictype/pr_changes_when_titlecased.c: New file.
10957         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
10958         generated by gen-uni-tables.
10959         * modules/unictype/property-changes-when-titlecased-tests: New file.
10960         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
10961         automatically generated by gen-uni-tables.
10962
10963         New module 'unictype/property-changes-when-uppercased'.
10964         * modules/unictype/property-changes-when-uppercased: New file.
10965         * lib/unictype/pr_changes_when_uppercased.c: New file.
10966         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
10967         generated by gen-uni-tables.
10968         * modules/unictype/property-changes-when-uppercased-tests: New file.
10969         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
10970         automatically generated by gen-uni-tables.
10971
10972         New module 'unictype/property-changes-when-lowercased'.
10973         * modules/unictype/property-changes-when-lowercased: New file.
10974         * lib/unictype/pr_changes_when_lowercased.c: New file.
10975         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
10976         generated by gen-uni-tables.
10977         * modules/unictype/property-changes-when-lowercased-tests: New file.
10978         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
10979         automatically generated by gen-uni-tables.
10980
10981         New module 'unictype/property-case-ignorable'.
10982         * modules/unictype/property-case-ignorable: New file.
10983         * lib/unictype/pr_case_ignorable.c: New file.
10984         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
10985         by gen-uni-tables.
10986         * modules/unictype/property-case-ignorable-tests: New file.
10987         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
10988         generated by gen-uni-tables.
10989
10990         New module 'unictype/property-cased'.
10991         * modules/unictype/property-cased: New file.
10992         * lib/unictype/pr_cased.c: New file.
10993         * lib/unictype/pr_cased.h: New file, automatically generated by
10994         gen-uni-tables.
10995         * modules/unictype/property-cased-tests: New file.
10996         * tests/unictype/test-pr_cased.c: New file, automatically generated by
10997         gen-uni-tables.
10998
10999 2011-01-09  Bruno Haible  <bruno@clisp.org>
11000
11001         Update to Unicode 5.2.0.
11002         * lib/gen-uni-tables.c (output_predicate, output_category,
11003         output_combclass, output_bidi_category, output_decimal_digit_test,
11004         output_decimal_digit, output_digit_test, output_digit,
11005         output_numeric_test, output_numeric, output_mirror, output_scripts,
11006         output_scripts_byname, output_blocks, output_ident_category): Fix
11007         comment header.
11008         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
11009         get_wbp.
11010         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
11011         items.
11012         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
11013         Changes_When_Lowercased, Changes_When_Uppercased,
11014         Changes_When_Titlecased, Changes_When_Casefolded,
11015         Changes_When_Casemapped.
11016         (is_property_alphabetic, is_property_default_ignorable_code_point):
11017         Update for Unicode 5.2.0.
11018         (is_property_cased, is_property_case_ignorable,
11019         is_property_changes_when_lowercased,
11020         is_property_changes_when_uppercased,
11021         is_property_changes_when_titlecased,
11022         is_property_changes_when_casefolded,
11023         is_property_changes_when_casemapped): New functions.
11024         (output_properties): Output also the properties cased, case_ignorable,
11025         changes_when_lowercased, changes_when_uppercased,
11026         changes_when_titlecased, changes_when_casefolded,
11027         changes_when_casemapped.
11028         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
11029         Unicode TR#11 revision 17 -> 19.
11030         (LBP_CP): New enumeration value.
11031         (LBP_*): Adjust values accordingly.
11032         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
11033         TR#14 revision 22 -> 24.
11034         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
11035         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
11036         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
11037         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
11038         is_WBP_MIDLETTER.
11039         (output_composition_tables): Allow for 24 bits instead of 16 bits in
11040         the code1 and code2 of each composition rule.
11041         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
11042         * lib/unicase/ignorable.h: Likewise.
11043         * lib/unicase/tocasefold.h: Likewise.
11044         * lib/unicase/tolower.h: Likewise.
11045         * lib/unicase/totitle.h: Likewise.
11046         * lib/unicase/toupper.h: Likewise.
11047         * lib/unictype/bidi_of.h: Likewise.
11048         * lib/unictype/blocks.h: Likewise.
11049         * lib/unictype/categ_C.h: Likewise.
11050         * lib/unictype/categ_Cf.h: Likewise.
11051         * lib/unictype/categ_Cn.h: Likewise.
11052         * lib/unictype/categ_L.h: Likewise.
11053         * lib/unictype/categ_Ll.h: Likewise.
11054         * lib/unictype/categ_Lm.h: Likewise.
11055         * lib/unictype/categ_Lo.h: Likewise.
11056         * lib/unictype/categ_Lu.h: Likewise.
11057         * lib/unictype/categ_M.h: Likewise.
11058         * lib/unictype/categ_Mc.h: Likewise.
11059         * lib/unictype/categ_Mn.h: Likewise.
11060         * lib/unictype/categ_N.h: Likewise.
11061         * lib/unictype/categ_Nd.h: Likewise.
11062         * lib/unictype/categ_Nl.h: Likewise.
11063         * lib/unictype/categ_No.h: Likewise.
11064         * lib/unictype/categ_P.h: Likewise.
11065         * lib/unictype/categ_Pd.h: Likewise.
11066         * lib/unictype/categ_Po.h: Likewise.
11067         * lib/unictype/categ_S.h: Likewise.
11068         * lib/unictype/categ_Sc.h: Likewise.
11069         * lib/unictype/categ_So.h: Likewise.
11070         * lib/unictype/categ_of.h: Likewise.
11071         * lib/unictype/combining.h: Likewise.
11072         * lib/unictype/ctype_alnum.h: Likewise.
11073         * lib/unictype/ctype_alpha.h: Likewise.
11074         * lib/unictype/ctype_graph.h: Likewise.
11075         * lib/unictype/ctype_lower.h: Likewise.
11076         * lib/unictype/ctype_print.h: Likewise.
11077         * lib/unictype/ctype_punct.h: Likewise.
11078         * lib/unictype/ctype_upper.h: Likewise.
11079         * lib/unictype/decdigit.h: Likewise.
11080         * lib/unictype/digit.h: Likewise.
11081         * lib/unictype/numeric.h: Likewise.
11082         * lib/unictype/pr_alphabetic.h: Likewise.
11083         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
11084         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
11085         * lib/unictype/pr_bidi_european_digit.h: Likewise.
11086         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
11087         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
11088         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
11089         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
11090         * lib/unictype/pr_combining.h: Likewise.
11091         * lib/unictype/pr_composite.h: Likewise.
11092         * lib/unictype/pr_currency_symbol.h: Likewise.
11093         * lib/unictype/pr_dash.h: Likewise.
11094         * lib/unictype/pr_decimal_digit.h: Likewise.
11095         * lib/unictype/pr_deprecated.h: Likewise.
11096         * lib/unictype/pr_diacritic.h: Likewise.
11097         * lib/unictype/pr_extender.h: Likewise.
11098         * lib/unictype/pr_grapheme_base.h: Likewise.
11099         * lib/unictype/pr_grapheme_extend.h: Likewise.
11100         * lib/unictype/pr_grapheme_link.h: Likewise.
11101         * lib/unictype/pr_id_continue.h: Likewise.
11102         * lib/unictype/pr_id_start.h: Likewise.
11103         * lib/unictype/pr_ideographic.h: Likewise.
11104         * lib/unictype/pr_ignorable_control.h: Likewise.
11105         * lib/unictype/pr_logical_order_exception.h: Likewise.
11106         * lib/unictype/pr_lowercase.h: Likewise.
11107         * lib/unictype/pr_numeric.h: Likewise.
11108         * lib/unictype/pr_other_alphabetic.h: Likewise.
11109         * lib/unictype/pr_punctuation.h: Likewise.
11110         * lib/unictype/pr_sentence_terminal.h: Likewise.
11111         * lib/unictype/pr_terminal_punctuation.h: Likewise.
11112         * lib/unictype/pr_unassigned_code_value.h: Likewise.
11113         * lib/unictype/pr_unified_ideograph.h: Likewise.
11114         * lib/unictype/pr_uppercase.h: Likewise.
11115         * lib/unictype/pr_xid_continue.h: Likewise.
11116         * lib/unictype/pr_xid_start.h: Likewise.
11117         * lib/unictype/pr_zero_width.h: Likewise.
11118         * lib/unictype/scripts.h: Likewise.
11119         * lib/unictype/scripts_byname.gperf: Likewise.
11120         * lib/unictype/sy_java_ident.h: Likewise.
11121         * lib/unigbrk/gbrkprop.h: Likewise.
11122         * lib/unilbrk/lbrkprop1.h: Likewise.
11123         * lib/unilbrk/lbrkprop2.h: Likewise.
11124         * lib/unilbrk/lbrktables.h: Likewise.
11125         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
11126         LBP_CP. Implement rule LB30.
11127         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
11128         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
11129         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
11130         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
11131         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
11132         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
11133         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
11134         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
11135         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
11136         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
11137         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
11138         bits instead of 16 bits in the code1 and code2 of each composition
11139         rule.
11140         (uc_composition): Update for Unicode 5.2.0.
11141         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
11142         * lib/uninorm/decomposition-table2.h: Likewise.
11143         * lib/uniwbrk/wbrkprop.h: Likewise.
11144         * tests/unicase/test-cased.c: Likewise.
11145         * tests/unicase/test-ignorable.c: Likewise.
11146         * tests/unicase/test-uc_tolower.c: Likewise.
11147         * tests/unicase/test-uc_totitle.c: Likewise.
11148         * tests/unicase/test-uc_toupper.c: Likewise.
11149         * tests/unictype/test-categ_C.c: Likewise.
11150         * tests/unictype/test-categ_Cf.c: Likewise.
11151         * tests/unictype/test-categ_Cn.c: Likewise.
11152         * tests/unictype/test-categ_L.c: Likewise.
11153         * tests/unictype/test-categ_Ll.c: Likewise.
11154         * tests/unictype/test-categ_Lm.c: Likewise.
11155         * tests/unictype/test-categ_Lo.c: Likewise.
11156         * tests/unictype/test-categ_Lu.c: Likewise.
11157         * tests/unictype/test-categ_M.c: Likewise.
11158         * tests/unictype/test-categ_Mc.c: Likewise.
11159         * tests/unictype/test-categ_Mn.c: Likewise.
11160         * tests/unictype/test-categ_N.c: Likewise.
11161         * tests/unictype/test-categ_Nd.c: Likewise.
11162         * tests/unictype/test-categ_Nl.c: Likewise.
11163         * tests/unictype/test-categ_No.c: Likewise.
11164         * tests/unictype/test-categ_P.c: Likewise.
11165         * tests/unictype/test-categ_Pd.c: Likewise.
11166         * tests/unictype/test-categ_Po.c: Likewise.
11167         * tests/unictype/test-categ_S.c: Likewise.
11168         * tests/unictype/test-categ_Sc.c: Likewise.
11169         * tests/unictype/test-categ_So.c: Likewise.
11170         * tests/unictype/test-ctype_alnum.c: Likewise.
11171         * tests/unictype/test-ctype_alpha.c: Likewise.
11172         * tests/unictype/test-ctype_graph.c: Likewise.
11173         * tests/unictype/test-ctype_lower.c: Likewise.
11174         * tests/unictype/test-ctype_print.c: Likewise.
11175         * tests/unictype/test-ctype_punct.c: Likewise.
11176         * tests/unictype/test-ctype_upper.c: Likewise.
11177         * tests/unictype/test-decdigit.h: Likewise.
11178         * tests/unictype/test-digit.h: Likewise.
11179         * tests/unictype/test-numeric.h: Likewise.
11180         * tests/unictype/test-pr_alphabetic.c: Likewise.
11181         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
11182         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
11183         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
11184         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
11185         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
11186         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
11187         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
11188         * tests/unictype/test-pr_combining.c: Likewise.
11189         * tests/unictype/test-pr_composite.c: Likewise.
11190         * tests/unictype/test-pr_currency_symbol.c: Likewise.
11191         * tests/unictype/test-pr_dash.c: Likewise.
11192         * tests/unictype/test-pr_decimal_digit.c: Likewise.
11193         * tests/unictype/test-pr_deprecated.c: Likewise.
11194         * tests/unictype/test-pr_diacritic.c: Likewise.
11195         * tests/unictype/test-pr_extender.c: Likewise.
11196         * tests/unictype/test-pr_grapheme_base.c: Likewise.
11197         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
11198         * tests/unictype/test-pr_grapheme_link.c: Likewise.
11199         * tests/unictype/test-pr_id_continue.c: Likewise.
11200         * tests/unictype/test-pr_id_start.c: Likewise.
11201         * tests/unictype/test-pr_ideographic.c: Likewise.
11202         * tests/unictype/test-pr_ignorable_control.c: Likewise.
11203         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
11204         * tests/unictype/test-pr_lowercase.c: Likewise.
11205         * tests/unictype/test-pr_numeric.c: Likewise.
11206         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
11207         * tests/unictype/test-pr_punctuation.c: Likewise.
11208         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
11209         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
11210         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
11211         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
11212         * tests/unictype/test-pr_uppercase.c: Likewise.
11213         * tests/unictype/test-pr_xid_continue.c: Likewise.
11214         * tests/unictype/test-pr_xid_start.c: Likewise.
11215         * tests/unictype/test-pr_zero_width.c: Likewise.
11216         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
11217         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
11218         changed behaviour: line breaking is now disallowed between a letter
11219         or '=' and '('.
11220         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
11221         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
11222         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
11223         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
11224         * tests/uniwidth/test-uc_width2.sh: Same updates as in
11225         lib/uniwidth/width.c.
11226         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
11227         without comments, but with the original copyright notice.
11228         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
11229         changes.
11230         * lib/unictype/categ_Cc.h: Likewise.
11231         * lib/unictype/categ_Co.h: Likewise.
11232         * lib/unictype/categ_Cs.h: Likewise.
11233         * lib/unictype/categ_Lt.h: Likewise.
11234         * lib/unictype/categ_Me.h: Likewise.
11235         * lib/unictype/categ_Pc.h: Likewise.
11236         * lib/unictype/categ_Pe.h: Likewise.
11237         * lib/unictype/categ_Pf.h: Likewise.
11238         * lib/unictype/categ_Pi.h: Likewise.
11239         * lib/unictype/categ_Ps.h: Likewise.
11240         * lib/unictype/categ_Sk.h: Likewise.
11241         * lib/unictype/categ_Sm.h: Likewise.
11242         * lib/unictype/categ_Z.h: Likewise.
11243         * lib/unictype/categ_Zl.h: Likewise.
11244         * lib/unictype/categ_Zp.h: Likewise.
11245         * lib/unictype/categ_Zs.h: Likewise.
11246         * lib/unictype/ctype_blank.h: Likewise.
11247         * lib/unictype/ctype_cntrl.h: Likewise.
11248         * lib/unictype/ctype_digit.h: Likewise.
11249         * lib/unictype/ctype_space.h: Likewise.
11250         * lib/unictype/ctype_xdigit.h: Likewise.
11251         * lib/unictype/mirror.h: Likewise.
11252         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
11253         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
11254         * lib/unictype/pr_bidi_block_separator.h: Likewise.
11255         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
11256         * lib/unictype/pr_bidi_common_separator.h: Likewise.
11257         * lib/unictype/pr_bidi_control.h: Likewise.
11258         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
11259         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
11260         * lib/unictype/pr_bidi_pdf.h: Likewise.
11261         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
11262         * lib/unictype/pr_bidi_whitespace.h: Likewise.
11263         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
11264         * lib/unictype/pr_format_control.h: Likewise.
11265         * lib/unictype/pr_hex_digit.h: Likewise.
11266         * lib/unictype/pr_hyphen.h: Likewise.
11267         * lib/unictype/pr_ids_binary_operator.h: Likewise.
11268         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
11269         * lib/unictype/pr_iso_control.h: Likewise.
11270         * lib/unictype/pr_join_control.h: Likewise.
11271         * lib/unictype/pr_left_of_pair.h: Likewise.
11272         * lib/unictype/pr_line_separator.h: Likewise.
11273         * lib/unictype/pr_math.h: Likewise.
11274         * lib/unictype/pr_non_break.h: Likewise.
11275         * lib/unictype/pr_not_a_character.h: Likewise.
11276         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
11277         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
11278         * lib/unictype/pr_other_id_continue.h: Likewise.
11279         * lib/unictype/pr_other_id_start.h: Likewise.
11280         * lib/unictype/pr_other_lowercase.h: Likewise.
11281         * lib/unictype/pr_other_math.h: Likewise.
11282         * lib/unictype/pr_other_uppercase.h: Likewise.
11283         * lib/unictype/pr_paired_punctuation.h: Likewise.
11284         * lib/unictype/pr_paragraph_separator.h: Likewise.
11285         * lib/unictype/pr_pattern_syntax.h: Likewise.
11286         * lib/unictype/pr_pattern_white_space.h: Likewise.
11287         * lib/unictype/pr_private_use.h: Likewise.
11288         * lib/unictype/pr_quotation_mark.h: Likewise.
11289         * lib/unictype/pr_radical.h: Likewise.
11290         * lib/unictype/pr_soft_dotted.h: Likewise.
11291         * lib/unictype/pr_space.h: Likewise.
11292         * lib/unictype/pr_titlecase.h: Likewise.
11293         * lib/unictype/pr_variation_selector.h: Likewise.
11294         * lib/unictype/pr_white_space.h: Likewise.
11295         * lib/unictype/sy_c_ident.h: Likewise.
11296         * lib/unictype/sy_c_whitespace.h: Likewise.
11297         * lib/unictype/sy_java_whitespace.h: Likewise.
11298         * modules/uni*/*: Bump version number of expected libunistring version.
11299         Reported by Simon Josefsson.
11300
11301 2011-01-09  Karl Heuer  <kwzh@gnu.org>
11302
11303         useless-if-before-free: fix typo in --help and make the internal,
11304         automatic version date update process work once again.
11305         --help output contained a NUL character instead of the
11306         backslash-zero that was intended.  Also, the "must lie within
11307         the first 8 lines" line is on line 9, and hence not getting
11308         automatically updated.
11309         * build-aux/useless-if-before-free: Fix the former by adding a
11310         backslash, and the latter by condensing the three lines of what-it-does
11311         to a single line, leaving one line of slack for the future.
11312
11313 2011-01-09  Bruno Haible  <bruno@clisp.org>
11314
11315         uniwidth/width: Fix width of U+1D173..U+1D17A.
11316         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
11317         symbolic_width, output_width_property_test): New functions.
11318         (main): Invoke output_nonspacing_property, output_width_property_test.
11319         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
11320         U+1D173..U+1D17A.
11321         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
11322         1.
11323         * modules/uniwidth/*: Bump version number of expected libunistring
11324         version.
11325         * modules/unilbrk/*: Likewise.
11326
11327 2011-01-08  Bruno Haible  <bruno@clisp.org>
11328
11329         uninorm tests: Preserve copyright of Unicode data file.
11330         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
11331         Mention modifications.
11332
11333 2011-01-08  Bruno Haible  <bruno@clisp.org>
11334
11335         gen-uni-tables: Prepare for Unicode 5.2.0.
11336         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
11337         (debug_output_lbp, output_lbp): Update.
11338
11339 2011-01-08  Bruno Haible  <bruno@clisp.org>
11340
11341         unilbrk: Clarify gen-uni-tables.c code.
11342         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
11343         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
11344         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
11345
11346 2011-01-07  Bruno Haible  <bruno@clisp.org>
11347
11348         strtod: Restore errno when successfully parsing Infinity or NaN.
11349         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
11350         restore the original errno.
11351
11352 2011-01-07  Bruno Haible  <bruno@clisp.org>
11353
11354         remove test: Avoid failure on HP-UX 11.
11355         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
11356
11357 2011-01-07  Bruno Haible  <bruno@clisp.org>
11358
11359         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
11360         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
11361         error code.
11362
11363 2011-01-07  Pádraig Brady <P@draigBrady.com>
11364
11365         ignore-value: fixup comments, and add Eric Blake
11366         as an author since he rewrote the macros.
11367         * lib/ignore-value.h (ignore_value):  State that
11368         we now support aggregates.  Also specify exactly
11369         when the GCC warn_unused_result feature was added.
11370
11371 2011-01-06  Eric Blake  <eblake@redhat.com>
11372
11373         ignore-value: support aggregate types
11374         * lib/ignore-value.h (ignore_value): Provide separate gcc
11375         definition.
11376         * modules/ignore-value-tests: New test module.
11377         * tests/test-ignore-value.c: New test.
11378
11379         maint.mk: improve sc_prohibit_strcmp regex
11380         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
11381         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
11382         definition of STRNEQ.
11383
11384         signal: work around Haiku issue with SIGBUS
11385         * lib/siglist.h: Add comment.
11386         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
11387         strsignal's favoring of SIGSEGV.
11388         * tests/test-signal.c (main): Avoid test failure.
11389         * doc/posix-headers/signal.texi (signal.h): Document the issue.
11390         Reported by Scott McCreary.
11391
11392         maint.mk: add pre-release check to ensure submodule commits are public
11393         * top/maint.mk (public-submodule-commit): New rule.
11394         (submodule-checks): New variable.
11395         (alpha beta stable): Depend on the variable.
11396
11397 2011-01-05  Pádraig Brady <P@draigBrady.com>
11398         and Jim Meyering  <meyering@redhat.com>
11399
11400         ignore-value: make ignore_value more generic; deprecate ignore_ptr
11401         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
11402         (ATTRIBUTE_DEPRECATED): Define.
11403         (_ignore_case): New function.
11404         (ignore_value): New macro, to replace the old function.
11405         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
11406         * modules/ignore-value (Depends-on): Add stdint.
11407
11408 2011-01-04  Eric Blake  <eblake@redhat.com>
11409
11410         doc: regenerate INSTALL
11411         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
11412         @firstparagraphindent support, now that autoconf dropped it.
11413         (INSTALL_PRELUDE): Reinstate old macro.
11414         * doc/install.texi: Resync from autoconf.
11415         * doc/INSTALL: Reflect recent autoconf update.
11416         * doc/INSTALL.ISO: Likewise.
11417         * doc/INSTALL.UTF-8: Likewise.
11418         Reported by Karl Berry.
11419
11420 2011-01-04  Bruce Korb  <address@hidden>
11421
11422         git-version-gen: avoid a sub-shell
11423         * build-aux/git-version-gen: Redirect stderr in `...` via
11424         "exec 2>...", rather than via an added sub-shell.
11425
11426 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
11427
11428         git-version-gen: use (...) rather than sh -c '...'
11429         * build-aux/git-version-gen: Rather than hard-coding a shell's name
11430         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
11431
11432 2011-01-03  Jim Meyering  <meyering@redhat.com>
11433
11434         git-version-gen: convert leading TABs to spaces
11435         * build-aux/git-version-gen: Expand leading TABs.
11436
11437         git-version-gen: handle failed "git rev-list"
11438         * build-aux/git-version-gen: Rather than leaking a "fatal" error
11439         from git and proceeding as if it had succeeded but printed no SHA1
11440         checksums, suppress the diagnostic and handle the failure.
11441         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
11442
11443         git-version-gen: include command name in one more diagnostic
11444         * build-aux/git-version-gen: When the required .tarball-version file
11445         was missing or unreadable, you might see the diagnostic from "cat",
11446         but no trace of the name of the invoking script.  Now, you still see
11447         the diagnostic from cat, but also get one from "git-version-gen: ".
11448         Inspired by a patch from Bruce Korb.
11449
11450         update-copyright: adjust test to match changed code
11451         * tests/test-update-copyright.sh: Change test's expected output
11452         to match new actual output.
11453
11454 2011-01-02  Bruno Haible  <bruno@clisp.org>
11455
11456         getlogin_r: Avoid test failure on HP-UX 11.
11457         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
11458         ERANGE when the second argument is zero.
11459         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
11460         portability problem.
11461
11462 2011-01-02  Bruce Korb  <bkorb@gnu.org>
11463
11464         * build-aux/update-copyright: doc Simon's changes
11465
11466 2011-01-02  Simon Josefsson  <simon@josefsson.org>
11467
11468         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
11469         environment variable.
11470
11471 2011-01-02  Bruno Haible  <bruno@clisp.org>
11472
11473         unigbrk: Avoid gcc warnings.
11474         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
11475         unused variable.
11476         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
11477         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
11478         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
11479         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
11480         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
11481         Change type of first argument to 'const char *'.
11482         (main): Remove unused variable.
11483         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
11484         type of first argument to 'const char *'.
11485         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
11486         Likewise.
11487         (main): Change type of variable 's'.
11488         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
11489         to 'int'.
11490
11491 2011-01-02  Bruno Haible  <bruno@clisp.org>
11492
11493         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
11494         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
11495         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
11496         bug.
11497         * lib/pwrite.c: Undo 2010-12-31 patch.
11498         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
11499
11500 2011-01-02  Bruno Haible  <bruno@clisp.org>
11501
11502         pread: Fix test whether it works.
11503         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
11504
11505 2011-01-02  Bruno Haible  <bruno@clisp.org>
11506
11507         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
11508         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
11509         ends in "6". Don't require a specific month name. Try also the locale
11510         names found on HP-UX 11 and Solaris 7.
11511
11512 2011-01-02  Bruno Haible  <bruno@clisp.org>
11513
11514         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
11515         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
11516         C linkage.
11517         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
11518
11519 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
11520
11521         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
11522         for consistency, since the "cluster" term is not used elsewhere.
11523         * lib/unigbrk.in.h: Update name.
11524         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
11525         * lib/unigbrk/u16-grapheme-next.c: Update name.
11526         * lib/unigbrk/u16-grapheme-prev.c: Update name.
11527         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
11528         * lib/unigbrk/u32-grapheme-next.c: Update name.
11529         * lib/unigbrk/u32-grapheme-prev.c: Update name.
11530         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
11531         * lib/unigbrk/u8-grapheme-next.c: Update name.
11532         * lib/unigbrk/u8-grapheme-prev.c: Update name.
11533         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
11534         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
11535         Suggested by Bruno Haible.
11536
11537 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
11538
11539         Remove module 'u8-grapheme-len' as too redundant with
11540         'u8-grapheme-next'.
11541         * modules/unigbrk/u8-grapheme-len: Delete file.
11542         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
11543         * lib/unigbrk.in.h: Remove prototype for deleted function.
11544         * lib/unigbrk/u8-grapheme-len.c: Delete file.
11545         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
11546
11547         Remove module 'u16-grapheme-len' as too redundant with
11548         'u16-grapheme-next'.
11549         * modules/unigbrk/u16-grapheme-len: Delete file.
11550         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
11551         * lib/unigbrk.in.h: Remove prototype for deleted function.
11552         * lib/unigbrk/u16-grapheme-len.c: Delete file.
11553         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
11554
11555         Remove module 'u32-grapheme-len' as too redundant with
11556         'u32-grapheme-next'.
11557         * modules/unigbrk/u32-grapheme-len: Delete file.
11558         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
11559         * lib/unigbrk.in.h: Remove prototype for deleted function.
11560         * lib/unigbrk/u32-grapheme-len.c: Delete file.
11561         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
11562
11563         Suggested by Bruno Haible.
11564
11565 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
11566
11567         * unigbrk.in.h: Fix typo: "ben" => "been".
11568         Reported by Bruno Haible.
11569
11570 2011-01-01  Jim Meyering  <meyering@redhat.com>
11571
11572         maint: update almost all copyright ranges to include 2011
11573         Run the new "make update-copyright" rule.
11574
11575 2011-01-01  Jim Meyering  <meyering@redhat.com>
11576
11577         maint: update-copyright: exempt doc/INSTALL*
11578         * Makefile (update-copyright): Also exclude doc/INSTALL*,
11579         since they are generated.  Suggested by Bruno Haible.
11580
11581 2011-01-01  Jim Meyering  <meyering@redhat.com>
11582
11583         maint: refine the update-copyright rule
11584         * Makefile (update-copyright): Also exclude any file that includes
11585         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
11586         code that merely generates the comment.
11587
11588 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
11589
11590         New module 'u8-grapheme-len'.
11591         * modules/unigbrk/u8-grapheme-len: New file.
11592         * modules/unigbrk/u8-grapheme-len-tests: New file.
11593         * lib/unigbrk.in.h: Add prototype for new function.
11594         * lib/unigbrk/u8-grapheme-len.c: New file.
11595         * tests/unigbrk/test-u8-grapheme-len.c: New file.
11596
11597         New module 'u16-grapheme-len'.
11598         * modules/unigbrk/u16-grapheme-len: New file.
11599         * modules/unigbrk/u16-grapheme-len-tests: New file.
11600         * lib/unigbrk.in.h: Add prototype for new function.
11601         * lib/unigbrk/u16-grapheme-len.c: New file.
11602         * tests/unigbrk/test-u16-grapheme-len.c: New file.
11603
11604         New module 'u32-grapheme-len'.
11605         * modules/unigbrk/u32-grapheme-len: New file.
11606         * modules/unigbrk/u32-grapheme-len-tests: New file.
11607         * lib/unigbrk.in.h: Add prototype for new function.
11608         * lib/unigbrk/u32-grapheme-len.c: New file.
11609         * tests/unigbrk/test-u32-grapheme-len.c: New file.
11610
11611         New module 'u8-grapheme-next'.
11612         * modules/unigbrk/u8-grapheme-next: New file.
11613         * modules/unigbrk/u8-grapheme-next-tests: New file.
11614         * lib/unigbrk.in.h: Add prototype for new function.
11615         * lib/unigbrk/u8-grapheme-next.c: New file.
11616         * tests/unigbrk/test-u8-grapheme-next.c: New file.
11617
11618         New module 'u16-grapheme-next'.
11619         * modules/unigbrk/u16-grapheme-next: New file.
11620         * modules/unigbrk/u16-grapheme-next-tests: New file.
11621         * lib/unigbrk.in.h: Add prototype for new function.
11622         * lib/unigbrk/u16-grapheme-next.c: New file.
11623         * tests/unigbrk/test-u16-grapheme-next.c: New file.
11624
11625         New module 'u32-grapheme-next'.
11626         * modules/unigbrk/u32-grapheme-next: New file.
11627         * modules/unigbrk/u32-grapheme-next-tests: New file.
11628         * lib/unigbrk.in.h: Add prototype for new function.
11629         * lib/unigbrk/u32-grapheme-next.c: New file.
11630         * tests/unigbrk/test-u32-grapheme-next.c: New file.
11631
11632         New module 'u8-grapheme-prev'.
11633         * modules/unigbrk/u8-grapheme-prev: New file.
11634         * modules/unigbrk/u8-grapheme-prev-tests: New file.
11635         * lib/unigbrk.in.h: Add prototype for new function.
11636         * lib/unigbrk/u8-grapheme-prev.c: New file.
11637         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
11638
11639         New module 'u16-grapheme-prev'.
11640         * modules/unigbrk/u16-grapheme-prev: New file.
11641         * modules/unigbrk/u16-grapheme-prev-tests: New file.
11642         * lib/unigbrk.in.h: Add prototype for new function.
11643         * lib/unigbrk/u16-grapheme-prev.c: New file.
11644         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
11645
11646         New module 'u32-grapheme-prev'.
11647         * modules/unigbrk/u32-grapheme-prev: New file.
11648         * modules/unigbrk/u32-grapheme-prev-tests: New file.
11649         * lib/unigbrk.in.h: Add prototype for new function.
11650         * lib/unigbrk/u32-grapheme-prev.c: New file.
11651         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
11652
11653         New module 'u8-grapheme-breaks'.
11654         * modules/unigbrk/u8-grapheme-breaks: New file.
11655         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
11656         * lib/unigbrk.in.h: Add prototype for new function.
11657         * lib/unigbrk/u8-grapheme-breaks.c: New file.
11658         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
11659
11660         New module 'u16-grapheme-breaks'.
11661         * modules/unigbrk/u16-grapheme-breaks: New file.
11662         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
11663         * lib/unigbrk.in.h: Add prototype for new function.
11664         * lib/unigbrk/u16-grapheme-breaks.c: New file.
11665         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
11666
11667         New module 'u32-grapheme-breaks'.
11668         * modules/unigbrk/u32-grapheme-breaks: New file.
11669         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
11670         * lib/unigbrk.in.h: Add prototype for new function.
11671         * lib/unigbrk/u32-grapheme-breaks.c: New file.
11672         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
11673
11674         New module 'ulc-grapheme-breaks'.
11675         * modules/unigbrk/ulc-grapheme-breaks: New file.
11676         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
11677         * m4/locale-ar.m4: New file.
11678         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
11679         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
11680         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
11681
11682 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
11683
11684         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
11685         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
11686         modified how this file was generated before I initially submitted
11687         the module, but failed to regenerate it.  This meant that several
11688         of the level2 entries were wrong.
11689         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
11690         Remove the division-by-2 that is folded into the table now that
11691         gbrkprop.h has been regenerated properly.  Now -1 entries are
11692         handled correctly.
11693
11694         New module 'unigbrk/uc-gbrk-prop-tests'.
11695         * modules/unigbrk/uc-gbrk-prop-tests: New file.
11696         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
11697         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
11698         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
11699
11700 2011-01-01  Bruno Haible  <bruno@clisp.org>
11701
11702         Avoid use of hexadecimal escapes.
11703         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
11704         instead of hexadecimal escapes.
11705
11706 2011-01-01  Jim Meyering  <meyering@redhat.com>
11707
11708         maint: new rule to update copyright year ranges
11709         * Makefile (update-copyright): New rule.
11710
11711         maint: indent with TABs in Makefile
11712         * Makefile: Expand leading sequences of spaces to TABs
11713
11714         version-etc: update the copyright year it reports
11715         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
11716
11717 2010-12-31  Bruno Haible  <bruno@clisp.org>
11718
11719         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
11720         * lib/isfinite.c (zerof, zerod, zerol): New variables.
11721         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
11722         zero.
11723
11724 2010-12-31  Bruno Haible  <bruno@clisp.org>
11725
11726         pwrite: Work around HP-UX 11.11 bug.
11727         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
11728         works and set REPLACE_PWRITE if not.
11729         * lib/pwrite.c (pwrite): Add an implementation that uses the system
11730         function.
11731         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
11732
11733 2010-12-31  Bruno Haible  <bruno@clisp.org>
11734
11735         pread: Work around HP-UX 11 bugs.
11736         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
11737         and set REPLACE_PREAD if not.
11738         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
11739
11740 2010-12-31  Eric Blake  <eblake@redhat.com>
11741
11742         nl_langinfo: fix YESEXPR on Irix 6.5
11743         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
11744         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
11745         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
11746         it.
11747
11748 2010-12-31  Bruno Haible  <bruno@clisp.org>
11749
11750         iconv: Document HP-UX 11 bug.
11751         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
11752
11753 2010-12-31  Bruno Haible  <bruno@clisp.org>
11754
11755         ldexpl: Fix link error on HP-UX 11.
11756         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
11757         LDEXPL_LIBM, using $ISNANL_LIBM.
11758
11759 2010-12-31  Eric Blake  <eblake@redhat.com>
11760
11761         ftello: avoid compilation failure with SunStudio c89
11762         * lib/ftello.c (ftello): Use lseek, not llseek.
11763
11764         tests: avoid failing coreutils tests on cygwin
11765         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
11766         (create_exe_shims_): Return 0 when skipping.
11767
11768 2010-12-31  Bruno Haible  <bruno@clisp.org>
11769
11770         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
11771         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
11772
11773 2010-12-31  Bruno Haible  <bruno@clisp.org>
11774
11775         waitpid: Fix link error in C++ mode.
11776         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
11777
11778 2010-12-31  Bruno Haible  <bruno@clisp.org>
11779
11780         isnan: Use GCC built-ins when possible.
11781         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
11782         __builtin_isnan.
11783         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
11784         (isnan): Define using GCC built-ins for GCC >= 4.0.
11785
11786 2010-12-31  Bruno Haible  <bruno@clisp.org>
11787
11788         isnand: Fix mistake.
11789         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
11790         __builtin_isnand.
11791
11792 2010-12-31  Bruno Haible  <bruno@clisp.org>
11793
11794         open: Avoid C++ error on HP-UX 11.
11795         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
11796
11797 2010-12-31  Bruno Haible  <bruno@clisp.org>
11798
11799         time_r: Add missing declarations on HP-UX 11.
11800         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
11801         instead of HAVE_LOCALTIME_R.
11802         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
11803         HAVE_LOCALTIME_R always.
11804         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
11805         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
11806         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
11807         HAVE_LOCALTIME_R.
11808         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
11809         * doc/posix-functions/localtime_r.texi: Likewise.
11810
11811 2010-12-29  Eric Blake  <eblake@redhat.com>
11812
11813         mountlist: tweak previous commit
11814         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
11815         Reported by Paul Eggert.
11816
11817         mountlist: fix local drive detection on cygwin
11818         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
11819         that works for cygwin.
11820
11821 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
11822
11823         ftoastr, snprintf: ftoastr + snprintf module
11824         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
11825         since the snprintf module now should be good enough here.
11826         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
11827         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
11828         and gl_MODULE_INDICATOR([snprintf]), but the former enables
11829         GNULIB_SNPRINTF only for the test directory, and the latter
11830         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
11831         seems to suffice by itself.
11832
11833 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
11834
11835         alloca: one step towards thread-safety
11836         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
11837         need for a static variable.  All callers changed.  This does not
11838         make the alloca replacement thread-safe, but it's one step.
11839
11840         tests: minor indenting change
11841         * tests/init.sh: Sync from coreutils housekeeping patch
11842         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
11843         to keep lines within 80 columns.
11844
11845 2010-12-28  Jim Meyering  <meyering@redhat.com>
11846
11847         regex: don't infloop on persistent failing calloc
11848         * lib/regexec.c (build_trtable): Return failure indication upon
11849         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
11850         In glibc, this was fixed for version 2.13:
11851         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
11852
11853 2010-12-28  Bruno Haible  <bruno@clisp.org>
11854             Paul Eggert <eggert@cs.ucla.edu>
11855
11856         linkat: Make implementation robust against system behaviour variations.
11857         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
11858         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
11859         way, and to -2 if it needs a generic runtime test.
11860         * lib/linkat.c (solaris_optimized_link_immediate,
11861         solaris_optimized_link_follow): New functions.
11862         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
11863         (check_same_link): Use it.
11864
11865 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
11866
11867         New module 'unigbrk/base'.
11868         * modules/unigbrk/base: New file.
11869         * lib/unigbrk.in.h: New file.
11870
11871         New module 'unigbrk/uc-gbrk-prop'.
11872         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
11873         * modules/unigbrk/uc-gbrk-prop: New file.
11874         * lib/unigbrk/gbrkprop.h: New file.
11875         * lib/unigbrk/uc-gbrk-prop.c: New file.
11876
11877         New module 'unigbrk/uc-is-grapheme-break'.
11878         * modules/unigbrk/uc-is-grapheme-break: New file.
11879         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
11880         * lib/unigbrk/uc-is-grapheme-break.c: New file.
11881         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
11882         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
11883         * tests/unigbrk/GraphemeBreakTest.txt: New file.
11884
11885         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
11886
11887 2010-12-27  Bruno Haible  <bruno@clisp.org>
11888
11889         linkat test: Avoid failure on Solaris 11 2010-11.
11890         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
11891
11892 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
11893
11894         utimens: work around glibc rounding bug on more platforms
11895         * lib/utimens.c (fdutimens): Work around rounding bug even if
11896         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
11897         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
11898
11899 2010-12-27  Bruno Haible  <bruno@clisp.org>
11900
11901         select tests: Improve comments.
11902         * tests/test-select.c (do_select): Add comments.
11903
11904 2010-12-27  Bruno Haible  <bruno@clisp.org>
11905
11906         select tests: Safer way of handling timeout.
11907         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
11908         at every invocation.
11909
11910 2010-12-27  Bruno Haible  <bruno@clisp.org>
11911
11912         select tests: Use 'bool' where appropriate.
11913         * tests/test-select.c (connect_to_socket): Change argument type to
11914         'bool'.
11915
11916 2010-12-27  Bruno Haible  <bruno@clisp.org>
11917
11918         select tests: Use existing modules.
11919         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
11920         (configure.ac): Don't test for unistd.h.
11921         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
11922         declared in <unistd.h>.
11923
11924 2010-12-27  Bruno Haible  <bruno@clisp.org>
11925
11926         mbrtowc: Work around a Solaris 7 bug.
11927         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
11928         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
11929         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
11930         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
11931         MBRTOWC_NULL_ARG1_BUG.
11932         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
11933         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
11934         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
11935         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
11936
11937 2010-12-27  Jim Meyering  <meyering@redhat.com>
11938
11939         read-file.c: tweak syntax
11940         * lib/read-file.c (fread_file): Remove space after "*" in function
11941         definitions.
11942
11943 2010-12-27  Bruno Haible  <bruno@clisp.org>
11944
11945         times test: Avoid gcc warnings on OSF/1.
11946         * tests/test-times.c (main): Cast printf arguments from clock_t to
11947         'long int'.
11948
11949 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
11950
11951         utimens: work around glibc rounding bug on older Linux kernels
11952         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
11953         on Linux with a glibc whose utimes might not work, then work
11954         around a longstanding glibc bug involving rounding rather than
11955         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
11956         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
11957
11958 2010-12-26  Bruno Haible  <bruno@clisp.org>
11959
11960         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
11961         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
11962         _GL_CXXALIAS_SYS.
11963         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11964
11965 2010-12-26  Bruno Haible  <bruno@clisp.org>
11966
11967         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
11968         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
11969         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
11970         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
11971         looking for the declaration.
11972         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
11973         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
11974         problem.
11975         * doc/posix-functions/inet_pton.texi: Likewise.
11976
11977 2010-12-26  Bruno Haible  <bruno@clisp.org>
11978
11979         arpa_inet: Use the common idioms with C++ support.
11980         * lib/arpa_inet.in.h: Include c++defs.h.
11981         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
11982         support.
11983         * modules/arpa_inet (Depends-on): Add c++defs.
11984         (Makefile.am): Substitute the contents of c++defs.h.
11985         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
11986         * modules/arpa_inet-c++-tests: New file.
11987         * tests/test-arpa_inet-c++.cc: New file.
11988
11989 2010-12-25  Bruno Haible  <bruno@clisp.org>
11990
11991         Fix more C++ link errors on Solaris 8.
11992         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
11993         $(LIB_EACCESS).
11994         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
11995         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
11996         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
11997         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
11998         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
11999
12000 2010-12-25  Bruno Haible  <bruno@clisp.org>
12001
12002         printf-posix: Fix link error when a non-GCC compiler is used.
12003         * lib/stdio.in.h (printf): When not using GCC, override printf
12004         correctly.
12005         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12006
12007 2010-12-25  Bruno Haible  <bruno@clisp.org>
12008
12009         strerror_r-posix: Update doc.
12010         * doc/posix-functions/strerror_r.texi: Update doc about the return
12011         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
12012
12013 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
12014
12015         utimens: simplify the logic of the previous change
12016         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
12017         This should not affect whether the test succeeds or fails.
12018
12019         utimens: configure better on hosts with NFS clock skew
12020         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
12021         uses the clock of the local host.  It might use the clock of the
12022         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
12023         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
12024
12025 2010-12-25  Bruno Haible  <bruno@clisp.org>
12026
12027         ptsname test: Avoid failure on Solaris.
12028         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
12029         open a pseudo-terminal; don't use BSD-style ptys.
12030         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
12031
12032 2010-12-25  Bruno Haible  <bruno@clisp.org>
12033
12034         ptsname: Avoid ERANGE failure on some systems.
12035         * lib/ptsname.c (buffer): Increase size.
12036
12037 2010-12-25  Bruno Haible  <bruno@clisp.org>
12038
12039         rename, renameat: Avoid test failures at NFS mounted locations.
12040         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
12041         so that subsequent mkdir calls succeed.
12042
12043 2010-12-25  Bruno Haible  <bruno@clisp.org>
12044
12045         iswblank: Fix C++ link error on Solaris 8.
12046         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
12047         _GL_FUNCDECL_SYS.
12048
12049 2010-12-25  Bruno Haible  <bruno@clisp.org>
12050
12051         unistd: Fix C++ link error on Solaris 8.
12052         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
12053
12054 2010-12-25  Bruno Haible  <bruno@clisp.org>
12055
12056         readlink doc: Mention an old glibc bug.
12057         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
12058
12059 2010-12-25  Bruno Haible  <bruno@clisp.org>
12060
12061         fcntl-h: Fix for use of C++ on glibc systems.
12062         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
12063         also on glibc systems in C++ mode.
12064         Reported by Gary V. Vaughan <gary@gnu.org>.
12065
12066 2010-12-25  Bruno Haible  <bruno@clisp.org>
12067
12068         roundl-ieee: Make it work on OSF/1 5.1 with cc.
12069         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
12070
12071 2010-12-25  Bruno Haible  <bruno@clisp.org>
12072
12073         truncl-ieee: Make it work on OSF/1 5.1 with cc.
12074         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
12075         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
12076         test whether truncl works according to ISO C 99 with IEC 60559.
12077         * m4/truncl-ieee.m4: New file.
12078         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
12079         m4/signbit.m4.
12080         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
12081
12082 2010-12-25  Bruno Haible  <bruno@clisp.org>
12083
12084         ceill-ieee: Make it work on OSF/1 5.1 with cc.
12085         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
12086         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
12087         test whether ceill works according to ISO C 99 with IEC 60559.
12088         * m4/ceill-ieee.m4: New file.
12089         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
12090         m4/signbit.m4.
12091         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
12092
12093 2010-12-25  Bruno Haible  <bruno@clisp.org>
12094
12095         Ensure all prerequisites of <wchar.h> are included.
12096         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
12097         before <wchar.h>.
12098         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
12099         gl_MBRLEN_NUL_RETVAL): Likewise.
12100         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
12101         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
12102         AC_FUNC_MBRTOWC): Likewise.
12103         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12104         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
12105         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
12106         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
12107         Likewise.
12108         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12109         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
12110         (gl_WCHAR_H): Improve comments.
12111         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
12112
12113 2010-12-25  Bruno Haible  <bruno@clisp.org>
12114
12115         strtok_r: Fix C syntax error in autoconf macro.
12116         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
12117         characters in test program.
12118
12119 2010-12-24  Bruno Haible  <bruno@clisp.org>
12120
12121         ceil, trunc, round: Fix gcc warnings.
12122         * lib/ceil.c (MIN): Undefine before redefining.
12123         * lib/trunc.c (MIN): Likewise.
12124         * lib/round.c (MIN): Likewise.
12125         Include <math.h> first.
12126
12127 2010-12-24  Bruno Haible  <bruno@clisp.org>
12128
12129         select tests: Avoid failures on OSF/1 5.1.
12130         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
12131         failure of closing the last socket; it may fail with ECONNRESET.
12132
12133 2010-12-24  Eric Blake  <eblake@redhat.com>
12134
12135         stdint: avoid HP-UX 10.20 preprocessor bug
12136         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
12137         than #if.
12138         * tests/test-floor2.c (main): Likewise.
12139         Reported by Peter O'Gorman.
12140
12141         pipe: make obsoletion transition easier
12142         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
12143         * modules/pipe (Files): Include revived file.
12144         (Include): Drop reference, to mirror getdate's behavior.
12145
12146 2010-12-24  Bruno Haible  <bruno@clisp.org>
12147
12148         sys_socket: Hide mismatch of declarations on NonStop Kernel.
12149         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
12150         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
12151         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12152
12153 2010-12-24  Bruno Haible  <bruno@clisp.org>
12154
12155         gethostname: Ensure declaration on NonStop Kernel.
12156         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
12157         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12158
12159 2010-12-24  Bruno Haible  <bruno@clisp.org>
12160
12161         sys_select: Ensure all necessary types on NonStop Kernel.
12162         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
12163         include <sys/time.h>.
12164         * doc/posix-headers/sys_select.texi: Mention that it's missing on
12165         NonStop Kernel.
12166         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12167
12168 2010-12-24  Bruno Haible  <bruno@clisp.org>
12169
12170         sys_select: Remove unneeded include.
12171         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
12172         have <sys/select.h>.
12173
12174 2010-12-24  Bruno Haible  <bruno@clisp.org>
12175
12176         gethostname: Provide a fallback for HOST_NAME_MAX.
12177         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
12178         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
12179         instead.
12180         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12181
12182 2010-12-24  Bruno Haible  <bruno@clisp.org>
12183
12184         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
12185         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
12186         (SA_RESTART): Likewise.
12187         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12188
12189 2010-12-24  Bruno Haible  <bruno@clisp.org>
12190
12191         signal: Define NSIG.
12192         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
12193         * tests/test-signal.c (nsig): New variable.
12194         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12195
12196 2010-12-24  Bruno Haible  <bruno@clisp.org>
12197
12198         rename, renameat: Avoid test failures on OSF/1 5.1.
12199         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
12200         alternative error codes.
12201         * tests/test-renameat.c (main): Likewise.
12202
12203 2010-12-24  Bruno Haible  <bruno@clisp.org>
12204
12205         *printf: Detect large precisions bug on Solaris 10/SPARC.
12206         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
12207         by Paul Eggert.
12208         * tests/test-snprintf-posix.h (test_function): Add this test code here
12209         too.
12210         * tests/test-sprintf-posix.h (test_function): Likewise.
12211         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12212         * tests/test-vasprintf-posix.c (test_function): Likewise.
12213         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
12214         around by gnulib.
12215         * doc/posix-functions/printf.texi: Likewise.
12216         * doc/posix-functions/snprintf.texi: Likewise.
12217         * doc/posix-functions/sprintf.texi: Likewise.
12218         * doc/posix-functions/vfprintf.texi: Likewise.
12219         * doc/posix-functions/vprintf.texi: Likewise.
12220         * doc/posix-functions/vsnprintf.texi: Likewise.
12221         * doc/posix-functions/vsprintf.texi: Likewise.
12222         * doc/posix-functions/dprintf.texi: Undo last commit.
12223         * doc/posix-functions/vdprintf.texi: Likewise.
12224
12225 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
12226
12227         tests: port test-fdutimensat.c to Solaris 8
12228         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
12229         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
12230         On Solaris 8, it fails with errno == ENOSYS, because there is no
12231         futimens (so it can't use the fd), and there is no lutimens (so it
12232         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
12233
12234         vsnprintf: make more consistent with snprintf; doc fixes
12235
12236         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
12237         the byte count return problem was promoted from the snprintf-posix
12238         to the snprintf module.
12239         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
12240         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
12241         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
12242         * tests/test-snprintf.c (main): Check the byte count returned.
12243         * tests/test-vsnprintf.c (main): Likewise.
12244
12245 2010-12-23  Eric Blake  <eblake@redhat.com>
12246
12247         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
12248         * modules/sigpipe (License): Relax license.
12249
12250 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
12251
12252         doc: document Solaris printf bug with large float precisions
12253         * doc/posix-functions/dprintf.texi (dprintf):
12254         * doc/posix-functions/fprintf.texi (fprintf):
12255         * doc/posix-functions/printf.texi (printf):
12256         * doc/posix-functions/snprintf.texi (snprintf):
12257         * doc/posix-functions/sprintf.texi (sprintf):
12258         * doc/posix-functions/vdprintf.texi (vdprintf):
12259         * doc/posix-functions/vfprintf.texi (vfprintf):
12260         * doc/posix-functions/vprintf.texi (vprintf):
12261         * doc/posix-functions/vsnprintf.texi (vsnprintf):
12262         * doc/posix-functions/vsprintf.texi (vsprintf):
12263         Mention that these functions mishandle large floating point
12264         precisions on Solaris 10.  The same bug is also present in Solaris
12265         8, and I assume earlier.  This causes "cd gnulib-tests; make
12266         check" to fail on Solaris 8 (and I assume, later) when building
12267         the latest coreutils, in test-vasprintf-posix's call to
12268         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
12269         the wide flavors (e.g., wprintf) so this patch just updates the
12270         documentation for the narrow ones.
12271
12272         test-posixtm.c: add two tests
12273         * tests/test-posixtm.c: Add two tests, to highlight the
12274         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
12275         around this bug; this is merely to document it.
12276
12277 2010-12-22  Bruno Haible  <bruno@clisp.org>
12278
12279         getlogin_r: Work around portability problem on OSF/1.
12280         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
12281         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
12282         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
12283         test for a truncated result.
12284         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
12285         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
12286         * modules/getlogin_r (Depends-on): Add memchr.
12287         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
12288
12289 2010-12-22  Bruno Haible  <bruno@clisp.org>
12290
12291         ptsname: Avoid test failure on OSF/1 5.1.
12292         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
12293         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
12294         (same_slave): New function.
12295         (main): Use it to compare ptsname's result with the expected file name.
12296
12297 2010-12-22  Bruno Haible  <bruno@clisp.org>
12298
12299         Port extended stdio modules to HP NonStop Kernel.
12300         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
12301         macros.
12302         * lib/fbufmode.c: Update comments.
12303         * lib/fflush.c: Likewise.
12304         * lib/fpurge.c: Likewise.
12305         * lib/freadable.c: Likewise.
12306         * lib/freadahead.c: Likewise.
12307         * lib/freading.c: Likewise.
12308         * lib/freadptr.c: Likewise.
12309         * lib/freadseek.c: Likewise.
12310         * lib/fseeko.c: Likewise.
12311         * lib/fseterr.c: Likewise.
12312         * lib/fwritable.c: Likewise.
12313         * lib/fwriting.c: Likewise.
12314         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12315
12316 2010-12-22  Bruno Haible  <bruno@clisp.org>
12317
12318         ttyname_r: Work around bug on OSF/1 5.1.
12319         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
12320         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
12321         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
12322         present.
12323         * lib/ttyname_r.c (ttyname_r): Update comments.
12324
12325 2010-12-22  Bruno Haible  <bruno@clisp.org>
12326
12327         round: Implement result sign according to IEEE 754.
12328         * lib/round.c (MIN, MINUS_ZERO): New macros.
12329         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
12330         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
12331         * tests/test-round-ieee.c (main): Likewise.
12332         * tests/test-roundl-ieee.c (main): Likewise.
12333
12334         trunc: Implement result sign according to IEEE 754.
12335         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
12336         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
12337         * tests/test-trunc2.c: Include minus-zero.h.
12338         (MINUS_ZERO): New macro.
12339         (trunc_reference): Keep in sync with lib/trunc.c.
12340         * tests/test-truncf2.c: Include minus-zero.h.
12341         (MINUS_ZERO): New macro.
12342         (truncf_reference): Keep in sync with lib/trunc.c.
12343         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
12344         * tests/test-trunc-ieee.c (main): Likewise.
12345         * tests/test-truncl-ieee.c (main): Likewise.
12346
12347         ceil: Implement result sign according to IEEE 754.
12348         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
12349         (FUNC): Return -0.0 for -1 < x < 0.
12350         * tests/test-ceil2.c: Include minus-zero.h.
12351         (MINUS_ZERO): New macro.
12352         (ceil_reference): Keep in sync with lib/ceil.c.
12353         * tests/test-ceilf2.c: Include minus-zero.h.
12354         (MINUS_ZERO): New macro.
12355         (ceilf_reference): Keep in sync with lib/ceil.c.
12356         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
12357         * tests/test-ceil-ieee.c (main): Likewise.
12358         * tests/test-ceill-ieee.c (main): Likewise.
12359
12360         floor: Implement result sign according to IEEE 754.
12361         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
12362         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
12363         * tests/test-floorf2.c (floorf_reference): Likewise.
12364         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
12365         * tests/test-floor-ieee.c (main): Likewise.
12366         * tests/test-floorl-ieee.c (main): Likewise.
12367
12368 2010-12-22  Bruno Haible  <bruno@clisp.org>
12369
12370         getaddrinfo: Update doc.
12371         * doc/posix-functions/gai_strerror.texi: Return type is also different
12372         on AIX and HP-UX.
12373
12374 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
12375
12376         getaddrinfo, inet_ntop: Update doc for Solaris.
12377         * doc/posix-functions/gai_strerror.texi: Return type is also an
12378         issue on Solaris 9 and earlier.
12379         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
12380         on Solaris 10 and earlier.
12381
12382 2010-12-21  Bruno Haible  <bruno@clisp.org>
12383
12384         New module 'roundl-ieee'.
12385         * modules/roundl-ieee: New file.
12386         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
12387         test whether roundl works according to ISO C 99 with IEC 60559.
12388         * m4/roundl-ieee.m4: New file.
12389         * modules/roundl-ieee-tests: New file.
12390         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
12391         * tests/test-roundl.c (main): Remove signbit tests.
12392         * modules/roundl-tests (Depends-on): Remove signbit.
12393         * doc/posix-functions/roundl.texi: Mention the new module.
12394
12395 2010-12-21  Bruno Haible  <bruno@clisp.org>
12396
12397         New module 'truncl-ieee'.
12398         * modules/truncl-ieee: New file.
12399         * modules/truncl-ieee-tests: New file.
12400         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
12401         * tests/test-truncl.c (main): Remove signbit tests.
12402         * modules/truncl-tests (Depends-on): Remove signbit.
12403         * doc/posix-functions/truncl.texi: Mention the new module.
12404
12405 2010-12-21  Bruno Haible  <bruno@clisp.org>
12406
12407         New module 'ceill-ieee'.
12408         * modules/ceill-ieee: New file.
12409         * modules/ceill-ieee-tests: New file.
12410         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
12411         * tests/test-ceill.c (main): Remove signbit tests.
12412         * modules/ceill-tests (Depends-on): Remove signbit.
12413         * doc/posix-functions/ceill.texi: Mention the new module.
12414
12415 2010-12-21  Bruno Haible  <bruno@clisp.org>
12416
12417         New module 'floorl-ieee'.
12418         * modules/floorl-ieee: New file.
12419         * modules/floorl-ieee-tests: New file.
12420         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
12421         * tests/test-floorl.c (main): Remove signbit tests.
12422         * modules/floorl-tests (Depends-on): Remove signbit.
12423         * doc/posix-functions/floorl.texi: Mention the new module.
12424
12425 2010-12-21  Bruno Haible  <bruno@clisp.org>
12426
12427         New module 'round-ieee'.
12428         * modules/round-ieee: New file.
12429         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
12430         whether round works according to ISO C 99 with IEC 60559.
12431         * m4/round-ieee.m4: New file.
12432         * modules/round-ieee-tests: New file.
12433         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
12434         * tests/test-round1.c (main): Remove signbit tests.
12435         * modules/round-tests (Depends-on): Remove 'signbit'.
12436         * doc/posix-functions/round.texi: Mention the new module.
12437
12438 2010-12-21  Bruno Haible  <bruno@clisp.org>
12439
12440         New module 'trunc-ieee'.
12441         * modules/trunc-ieee: New file.
12442         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
12443         whether trunc works according to ISO C 99 with IEC 60559.
12444         * m4/trunc-ieee.m4: New file.
12445         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
12446         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
12447         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
12448         * modules/trunc-ieee-tests: New file.
12449         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
12450         * tests/test-trunc1.c (main): Remove signbit tests.
12451         * modules/trunc-tests (Depends-on): Remove 'signbit'.
12452         * doc/posix-functions/trunc.texi: Mention the new module.
12453
12454 2010-12-21  Bruno Haible  <bruno@clisp.org>
12455
12456         New module 'ceil-ieee'.
12457         * modules/ceil-ieee: New file.
12458         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
12459         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
12460         ISO C 99 with IEC 60559.
12461         * m4/ceil-ieee.m4: New file.
12462         * modules/ceil (Files): Add lib/ceil.c.
12463         (Depends-on): Add 'float'.
12464         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
12465         * lib/math.in.h (ceil): New declaration.
12466         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
12467         REPLACE_CEIL.
12468         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
12469         * modules/ceil-ieee-tests: New file.
12470         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
12471         * tests/test-math-c++.cc: Check the signature of 'ceil'.
12472         * doc/posix-functions/ceil.texi: Mention the new module.
12473
12474 2010-12-21  Bruno Haible  <bruno@clisp.org>
12475
12476         New module 'floor-ieee'.
12477         * modules/floor-ieee: New file.
12478         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
12479         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
12480         ISO C 99 with IEC 60559.
12481         * m4/floor-ieee.m4: New file.
12482         * modules/floor (Files): Add lib/floor.c.
12483         (Depends-on): Add 'float'.
12484         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
12485         * lib/math.in.h (floor): New declaration.
12486         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
12487         REPLACE_FLOOR.
12488         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
12489         * modules/floor-ieee-tests: New file.
12490         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
12491         * tests/test-math-c++.cc: Check the signature of 'floor'.
12492         * doc/posix-functions/floor.texi: Mention the new module.
12493
12494 2010-12-21  Bruno Haible  <bruno@clisp.org>
12495
12496         New module 'roundf-ieee'.
12497         * modules/roundf-ieee: New file.
12498         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
12499         test whether roundf works according to ISO C 99 with IEC 60559.
12500         * m4/roundf-ieee.m4: New file.
12501         * modules/roundf-ieee-tests: New file.
12502         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
12503         * tests/test-roundf1.c (main): Remove signbit tests.
12504         * modules/roundf-tests (Depends-on): Remove 'signbit'.
12505         * doc/posix-functions/roundf.texi: Mention the new module.
12506
12507 2010-12-21  Bruno Haible  <bruno@clisp.org>
12508
12509         New module 'truncf-ieee'.
12510         * modules/truncf-ieee: New file.
12511         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
12512         test whether truncf works according to ISO C 99 with IEC 60559.
12513         * m4/truncf-ieee.m4: New file.
12514         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
12515         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
12516         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
12517         * modules/truncf-ieee-tests: New file.
12518         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
12519         * tests/test-truncf1.c (main): Remove signbit tests.
12520         * modules/truncf-tests (Depends-on): Remove 'signbit'.
12521         * doc/posix-functions/truncf.texi: Mention the new module.
12522
12523 2010-12-21  Bruno Haible  <bruno@clisp.org>
12524
12525         New module 'ceilf-ieee'.
12526         * modules/ceilf-ieee: New file.
12527         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
12528         test whether ceilf works according to ISO C 99 with IEC 60559.
12529         * m4/ceilf-ieee.m4: New file.
12530         * modules/ceilf-ieee-tests: New file.
12531         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
12532         * tests/test-ceilf1.c (main): Remove signbit tests.
12533         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
12534         * doc/posix-functions/ceilf.texi: Mention the new module.
12535
12536 2010-12-21  Bruno Haible  <bruno@clisp.org>
12537
12538         New module 'floorf-ieee'.
12539         * modules/floorf-ieee: New file.
12540         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
12541         test whether floorf works according to ISO C 99 with IEC 60559.
12542         * m4/floorf-ieee.m4: New file.
12543         * modules/floorf-ieee-tests: New file.
12544         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
12545         * tests/test-floorf1.c (main): Remove signbit tests.
12546         * modules/floorf-tests (Depends-on): Remove 'signbit'.
12547         * doc/posix-functions/floorf.texi: Mention the new module.
12548
12549 2010-12-21  Bruno Haible  <bruno@clisp.org>
12550
12551         Support for minus zero in autoconf macros.
12552         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
12553         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
12554         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
12555         * tests/minus-zero.h: Update comments.
12556
12557 2010-12-21  Bruno Haible  <bruno@clisp.org>
12558
12559         Tests for module 'ceil'.
12560         * modules/ceil-tests: New file.
12561         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
12562         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
12563
12564 2010-12-21  Bruno Haible  <bruno@clisp.org>
12565
12566         Tests for module 'floor'.
12567         * modules/floor-tests: New file.
12568         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
12569         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
12570
12571 2010-12-21  Bruno Haible  <bruno@clisp.org>
12572
12573         math: Fix indentation.
12574         * lib/math.in.h (floorf): Fix indentation.
12575
12576 2010-12-21  Bruno Haible  <bruno@clisp.org>
12577
12578         Fix cross-compilation guesses on Solaris.
12579         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
12580         not match "solaris2.10".
12581         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
12582         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
12583         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
12584
12585 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
12586
12587         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
12588         This fixes a problem observed with the latest coreutils snapshot
12589         that caused a test to fail on Solaris 8.  src/csplit.c's call
12590         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
12591         earlier, instead of returning the number of bytes that would have
12592         been generated; this causes csplit to incorrectly report memory
12593         exhaustion.
12594         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
12595         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
12596         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
12597         comments to match.
12598         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
12599         Fix typo in matching older versions of Solaris: "solaris2.10"
12600         is matched by the shell pattern "solaris2.[0-9]*".  This matters
12601         only for guessing while cross-compiling.
12602         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
12603
12604 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
12605
12606         ftoastr: fix comment again
12607         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
12608         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
12609         Also, simplify example a bit by using flags = 0.
12610
12611 2010-12-20  Bruno Haible  <bruno@clisp.org>
12612
12613         round*, trunc*: Update documentation regarding glibc.
12614         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
12615         * doc/posix-functions/round.texi: Likewise.
12616         * doc/posix-functions/roundl.texi: Likewise.
12617         * doc/posix-functions/truncf.texi: Likewise.
12618         * doc/posix-functions/trunc.texi: Likewise.
12619         * doc/posix-functions/truncl.texi: Likewise.
12620
12621 2010-12-20  Bruno Haible  <bruno@clisp.org>
12622
12623         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
12624         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
12625         * doc/posix-functions/round.texi: Likewise.
12626         * doc/posix-functions/roundl.texi: Likewise.
12627
12628 2010-12-20  Bruno Haible  <bruno@clisp.org>
12629
12630         ttyname_r: Add missing declaration on HP-UX 11.
12631         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
12632         HAVE_TTYNAME_R.
12633         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
12634         declared. Set HAVE_TTYNAME_R always.
12635         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12636         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
12637         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
12638         HAVE_TTYNAME_R.
12639         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
12640
12641 2010-12-20  Bruno Haible  <bruno@clisp.org>
12642
12643         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
12644         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
12645         * doc/posix-functions/getlogin_r.texi: Likewise.
12646         * tests/test-getlogin.c: Include <errno.h>.
12647         (main): Avoid test failure on HP-UX 11.11.
12648         * tests/test-getlogin_r.c (main): Likewise.
12649
12650 2010-12-20  Bruno Haible  <bruno@clisp.org>
12651
12652         getlogin_r: Add missing declaration on HP-UX 11.
12653         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
12654         declared also when it exists as a function.
12655         * doc/posix-functions/getlogin_r.texi: Document this workaround.
12656
12657 2010-12-20  Bruno Haible  <bruno@clisp.org>
12658
12659         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
12660         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
12661         through wcrtomb.
12662
12663 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
12664
12665         ftoastr: fix comment
12666         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
12667         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
12668
12669 2010-12-19  Bruno Haible  <bruno@clisp.org>
12670
12671         isnan: Ensure it is a macro.
12672         * lib/math.in.h (isnan): Define as a macro if not already a macro.
12673         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
12674         Solaris.
12675
12676 2010-12-19  Bruno Haible  <bruno@clisp.org>
12677
12678         ldexpl test: Fix link error on OSF/1 5.1.
12679         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
12680
12681 2010-12-19  Bruno Haible  <bruno@clisp.org>
12682
12683         wctype: Make it work in C++ mode on OSF/1 5.1.
12684         * lib/wctype.in.h (iswblank): Declare but not define here.
12685         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
12686         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
12687         * modules/wctype (Files): Add lib/iswblank.c.
12688
12689 2010-12-19  Bruno Haible  <bruno@clisp.org>
12690
12691         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
12692         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
12693         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
12694
12695 2010-12-19  Bruno Haible  <bruno@clisp.org>
12696
12697         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
12698         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
12699         _POSIX_PII_SOCKET.
12700         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
12701         * doc/posix-functions/recvfrom.texi: Likewise.
12702         * doc/posix-functions/send.texi: Likewise.
12703         * doc/posix-functions/sendto.texi: Likewise.
12704
12705 2010-12-19  Bruno Haible  <bruno@clisp.org>
12706
12707         tcgetsid: Add missing declaration on OSF/1 5.1.
12708         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
12709         HAVE_TCGETSID.
12710         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
12711         Don't set HAVE_TCGETSID.
12712         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
12713         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
12714         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
12715         HAVE_TCGETSID.
12716         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
12717
12718 2010-12-19  Bruno Haible  <bruno@clisp.org>
12719
12720         stdio: Fix problem with popen() declaration on OSF/1 5.1.
12721         * lib/stdio.in.h: During the include_next statement, let recursive
12722         includes of this file include only the system header file.
12723
12724 2010-12-19  Bruno Haible  <bruno@clisp.org>
12725
12726         iconv_open: Fix regression from 2010-12-04.
12727         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
12728         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
12729
12730 2010-12-19  Bruno Haible  <bruno@clisp.org>
12731
12732         stdbool test: Avoid a gcc warning.
12733         * tests/test-stdbool.c (main): Fail if e1 is false.
12734         Reported by Jim Meyering.
12735
12736 2010-12-19  Jim Meyering  <meyering@redhat.com>
12737
12738         setenv: restore to working order
12739         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
12740         mistakenly removed.
12741         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
12742         HAVE_SETENV.
12743         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
12744         HAVE_SETENV.
12745
12746 2010-12-19  Bruno Haible  <bruno@clisp.org>
12747
12748         Document some different function declarations on OSF/1 5.1.
12749         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
12750         * doc/posix-functions/inet_ntop.texi: Likewise.
12751         * doc/posix-functions/gethostname.texi: Likewise.
12752         * lib/unistd.in.h (gethostname): Update comment.
12753
12754 2010-12-19  Bruno Haible  <bruno@clisp.org>
12755
12756         doc: Mention vasprintf-posix module.
12757         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
12758         the 'vasprintf-posix' module.
12759         * doc/glibc-functions/vasprintf.texi: Likewise.
12760
12761 2010-12-19  Bruno Haible  <bruno@clisp.org>
12762
12763         unsetenv: Add missing declaration on OSF/1 5.1.
12764         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
12765         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
12766         Don't set HAVE_UNSETENV. In the test program, set _BSD.
12767         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
12768         not HAVE_UNSETENV.
12769         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
12770         HAVE_UNSETENV.
12771         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
12772
12773 2010-12-19  Bruno Haible  <bruno@clisp.org>
12774
12775         setenv: Add missing declaration on OSF/1 5.1.
12776         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
12777         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
12778         declared. Don't set HAVE_SETENV.
12779         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
12780         not HAVE_SETENV.
12781         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
12782         HAVE_SETENV.
12783         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
12784
12785 2010-12-19  Bruno Haible  <bruno@clisp.org>
12786
12787         nl_langinfo tests: Avoid gcc warning.
12788         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
12789
12790 2010-12-19  Bruno Haible  <bruno@clisp.org>
12791
12792         mknod: Avoid error in C++ mode on OSF/1 with GCC.
12793         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
12794         _GL_CXXALIAS_SYS.
12795
12796 2010-12-19  Bruno Haible  <bruno@clisp.org>
12797
12798         stdbool: Relax test.
12799         * tests/test-stdbool.c (e): Don't require that casts from a variable's
12800         address to 'bool' work in static initializer, for compilers other than
12801         GCC.
12802
12803 2010-12-19  Bruno Haible  <bruno@clisp.org>
12804
12805         ftello: Add missing declaration on OSF/1 5.1.
12806         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
12807         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
12808         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
12809         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
12810         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
12811
12812 2010-12-19  Bruno Haible  <bruno@clisp.org>
12813
12814         fseeko: Add missing declaration on OSF/1 5.1.
12815         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
12816         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
12817         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
12818         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
12819         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
12820
12821 2010-12-19  Bruno Haible  <bruno@clisp.org>
12822
12823         fchdir: Add missing declaration on OSF/1 5.1.
12824         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
12825         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
12826         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
12827         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
12828         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
12829
12830 2010-12-19  Bruno Haible  <bruno@clisp.org>
12831
12832         relocatable-prog-wrapper: Separate from relocatable-prog.
12833         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
12834         uninstall-relocwrapper rule here.
12835         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
12836         Reported by Ian Beckwith <ianb@erislabs.net>.
12837
12838 2010-12-19  Bruno Haible  <bruno@clisp.org>
12839
12840         unistr/u8-mbsnlen: Add missing dependency.
12841         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
12842         Reported by Ian Beckwith <ianb@erislabs.net>.
12843
12844 2010-12-19  Bruno Haible  <bruno@clisp.org>
12845
12846         iconv: Make it possible again to use this module without 'iconv-h'.
12847         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
12848         if it is not defined.
12849         Reported by Ian Beckwith <ianb@erislabs.net>.
12850
12851 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
12852
12853         acl: port to Solaris 8 when copying from tmpfs to ufs
12854         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
12855         error number.  Problem observed on Solaris 8 with latest
12856         coreutils, with "mv A B", where A is on a tmpfs file system and B
12857         is on a ufs file system.  This caused coreutils' mv/part-symlink
12858         test to fail.
12859
12860         tests: set fail=0 at start
12861         * tests/init.sh (setup_): Move fail=0 initialization here ...
12862         (mktempd_): ... from here, so that tests can rely on fail being
12863         set to 0 initially.  This fixes a problem in coreutils; see:
12864         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
12865
12866 2010-12-18  Bruno Haible  <bruno@clisp.org>
12867
12868         memmem-simple: Stylistic changes.
12869         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
12870         Fix preprocessor directive indentation.
12871
12872 2010-12-15  Pádraig Brady <P@draigBrady.com>
12873
12874         memmem, memmem-simple: reorganize and expand empty needle check
12875         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
12876         functional checks to memmem-simple so that one has a fully functional
12877         memmem by using just this module.
12878         Restrict the performance only check to the memmem module.
12879         Also expand the empty needle check to ensure the correct
12880         pointer is returned, not just a non NULL pointer.
12881         * doc/glibc-functions/memmem.texi: Rearrange the portability
12882         documentation to correlate with the rearranged checks.
12883         Clarify exactly how the memmem and memmem-simple modules
12884         relate to each other.
12885
12886 2010-12-15  Pádraig Brady <P@draigBrady.com>
12887             Bruno Haible  <bruno@clisp.org>
12888
12889         Improve cross-compilation guesses for uClibc.
12890         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
12891         that uClibc does not have the glibc bug.
12892         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
12893         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
12894
12895 2010-12-14  Eric Blake  <eblake@redhat.com>
12896
12897         configmake: provide fallbacks for oldest supported autotools
12898         * m4/configmake.m4: New file.
12899         * modules/configmake (Files): Ship it.
12900         (configure.ac): Use it to guarantee fallbacks.
12901
12902 2010-12-13  Pádraig Brady <P@draigBrady.com>
12903
12904         read-file: Improve handling of large files
12905         * lib/read-file.c (fread_file): Minimize realloc()s
12906         for regular files, and better manage sizes around SIZE_MAX.
12907
12908 2010-12-13  Eric Blake  <eblake@redhat.com>
12909
12910         cloexec, fcntl: relax license
12911         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
12912         consent from all contributors.
12913         * modules/fcntl (License): Likewise.
12914
12915 2010-12-10  Bruno Haible  <bruno@clisp.org>
12916
12917         Tests for module 'pipe-posix'.
12918         * modules/pipe-posix-tests: New file.
12919         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
12920
12921 2010-12-10  Bruno Haible  <bruno@clisp.org>
12922
12923         pipe-posix: Make it work in C++ mode.
12924         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
12925         (pipe): Use common idiom, not a macro definition.
12926         * lib/pipe.c: New file.
12927         * m4/pipe.m4: New file.
12928         * modules/pipe-posix (Description): Enhance.
12929         (Files): Add lib/pipe.c, m4/pipe.m4.
12930         (configure.ac): Invoke gl_FUNC_PIPE.
12931         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
12932         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
12933         * tests/test-unistd-c++.cc: Check the signature of pipe.
12934
12935 2010-12-10  Bruno Haible  <bruno@clisp.org>
12936
12937         Rename module 'pipe' to 'spawn-pipe'.
12938         * modules/spawn-pipe: New file, renamed from modules/pipe.
12939         (Files, configure.ac, Makefile.am): Update.
12940         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
12941         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
12942         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
12943         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
12944         "spawn-pipe.h" instead of "pipe.h".
12945         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
12946         to gl_SPAWN_PIPE.
12947         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
12948         (Files, Makefile.am): Update.
12949         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
12950         Update.
12951         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
12952         Include "spawn-pipe.h" instead of "pipe.h".
12953         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
12954         * lib/javacomp.c: Likewise.
12955         * lib/javaversion.c: Likewise.
12956         * lib/pipe-filter-gi.c: Likewise.
12957         * lib/pipe-filter-ii.c: Likewise.
12958         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
12959         * modules/javacomp (Depends-on): Likewise.
12960         * modules/javaversion (Depends-on): Likewise.
12961         * modules/pipe-filter-gi (Depends-on): Likewise.
12962         * modules/pipe-filter-ii (Depends-on): Likewise.
12963         * MODULES.html.sh (Executing programs): Update.
12964         * NEWS: Mention the change.
12965
12966 2010-12-10  Eric Blake  <eblake@redhat.com>
12967
12968         pipe-posix: new module
12969         * modules/pipe-posix: New file.
12970         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
12971         (gl_UNISTD_H): Check for declaration.
12972         * modules/unistd (Makefile.am): Substitute it.
12973         * lib/unistd.in.h (pipe): Provide it for mingw.
12974         * doc/posix-functions/pipe.texi (pipe): Update documentation.
12975         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
12976
12977 2010-12-07  Bruno Haible  <bruno@clisp.org>
12978
12979         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
12980         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
12981         u8_strcmp_gnu.
12982         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
12983
12984 2010-12-06  Bruno Haible  <bruno@clisp.org>
12985
12986         Update internal documentation.
12987         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
12988
12989 2010-12-04  Bruno Haible  <bruno@clisp.org>
12990
12991         Put more information about failed tests into the test return codes.
12992         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
12993         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
12994         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
12995         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12996         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
12997         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12998         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12999         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
13000         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
13001         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
13002         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
13003         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
13004         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
13005         * m4/stdint.m4 (gl_STDINT_H): Likewise.
13006         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
13007         returns a bit mask.
13008         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
13009         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
13010         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
13011         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
13012         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
13013         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
13014         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
13015         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
13016         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
13017         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
13018         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
13019         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
13020         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
13021         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
13022         * m4/link.m4 (gl_FUNC_LINK): Likewise.
13023         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
13024         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
13025         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
13026         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13027         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
13028         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
13029         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
13030         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
13031         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
13032         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
13033         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
13034         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
13035         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
13036         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
13037         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
13038         gl_PRINTF_PRECISION): Likewise.
13039         * m4/regex.m4 (gl_REGEX): Likewise.
13040         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
13041         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13042         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
13043         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13044         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13045         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13046         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
13047         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
13048         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
13049         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
13050         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
13051         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
13052         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
13053         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
13054         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13055         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
13056         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
13057         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13058         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13059         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
13060         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
13061         enumerated value.
13062         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
13063
13064 2010-12-04  Bruno Haible  <bruno@clisp.org>
13065
13066         Update for Solaris 11 2010-11.
13067         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
13068         Express, released in November 2010.
13069
13070 2010-12-04  Bruno Haible  <bruno@clisp.org>
13071
13072         nproc: Relax license.
13073         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
13074         and Paul Eggert.
13075         Requested by Ludovic Courtès <ludo@gnu.org>.
13076
13077 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
13078
13079         utimecmp: fine-grained src to nearby coarse-grained dest
13080
13081         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
13082         and the source is on a file system with higher-resolution time
13083         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
13084         not work, and the time stamps are close together, the algorithm to
13085         determine the exact resolution from the read-back mtime was buggy:
13086         it had a "!=" where it should have had an "==".  This bug has been
13087         in the code ever since it was introduced to gnulib.
13088         Problem reported by Dan Jacobson in
13089         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
13090
13091 2010-11-30  Bruno Haible  <bruno@clisp.org>
13092
13093         strerror_r-posix: Fix autoconf test.
13094         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
13095
13096 2010-11-28  Bruno Haible  <bruno@clisp.org>
13097             Paul Eggert  <eggert@cs.ucla.edu>
13098
13099         Tests for module 'getdomainname'.
13100         * modules/getdomainname-tests: New file.
13101         * tests/test-getdomainname.c: New file, based on
13102         tests/test-gethostname.c.
13103
13104 2010-11-28  Bruno Haible  <bruno@clisp.org>
13105             Paul Eggert  <eggert@cs.ucla.edu>
13106
13107         getdomainname: Use the system function when possible.
13108         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
13109         (getdomainname): Replace if needed. Provide the declaration if it is
13110         missing. Don't use _GL_CXXALIAS_SYS_CAST.
13111         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
13112         (getdomainname): When the system has getdomainname, call the system
13113         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
13114         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
13115         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
13116         found in libnsl. Look for the declaration also in <netdb.h>. Replace
13117         the function if its second argument is of type 'int' or if it is found
13118         in libnsl.
13119         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
13120         <sys/systeminfo.h> and sysinfo().
13121         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
13122         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13123         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
13124         HAVE_GETDOMAINNAME.
13125         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
13126         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
13127         * doc/glibc-functions/getdomainname.texi: Document the problems with
13128         the getdomainname declaration.
13129
13130 2010-11-28  Bruno Haible  <bruno@clisp.org>
13131
13132         sys_socket: Ensure ss_family field on AIX.
13133         * lib/sys_socket.in.h (ss_family): New macro definition.
13134         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
13135         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
13136         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
13137         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
13138         * modules/sys_socket (Makefile.am): Substitute
13139         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
13140         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
13141
13142 2010-11-27  Bruno Haible  <bruno@clisp.org>
13143
13144         readline: Improve configure output.
13145         * m4/readline.m4 (gl_FUNC_READLINE): Make the
13146         "checking for readline..." result understandable.
13147
13148 2010-11-27  Bruno Haible  <bruno@clisp.org>
13149
13150         *printf-posix: Detect a bug on Solaris 10/x86.
13151         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
13152         for floating-point output.
13153         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
13154         directive.
13155         * tests/test-snprintf-posix.h (test_function): Likewise.
13156         * tests/test-sprintf-posix.h (test_function): Likewise.
13157         * tests/test-vasprintf-posix.c (test_function): Likewise.
13158         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
13159         * doc/posix-functions/printf.texi: Likewise.
13160         * doc/posix-functions/snprintf.texi: Likewise.
13161         * doc/posix-functions/sprintf.texi: Likewise.
13162         * doc/posix-functions/vfprintf.texi: Likewise.
13163         * doc/posix-functions/vprintf.texi: Likewise.
13164         * doc/posix-functions/vsnprintf.texi: Likewise.
13165         * doc/posix-functions/vsprintf.texi: Likewise.
13166         * doc/glibc-functions/obstack_printf.texi: Likewise.
13167         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
13168
13169 2010-11-27  Bruno Haible  <bruno@clisp.org>
13170
13171         Fix link error when module libunistring-optional is in use.
13172         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
13173         * modules/striconveha-tests (Makefile.am): Likewise.
13174
13175 2010-11-27  Bruno Haible  <bruno@clisp.org>
13176
13177         regex: Mention link dependencies.
13178         * modules/regex (Link): New section.
13179         * modules/rpmatch (Link): Likewise.
13180         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
13181
13182 2010-11-27  Bruno Haible  <bruno@clisp.org>
13183
13184         ftoastr: Fix compilation error on Solaris.
13185         * lib/ftoastr.c: Include <config.h>.
13186
13187 2010-11-27  Bruno Haible  <bruno@clisp.org>
13188
13189         getloadavg: Update documentation.
13190         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
13191
13192 2010-11-27  Bruno Haible  <bruno@clisp.org>
13193
13194         sys_socket: Fix test whether the functions are declared.
13195         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
13196         not <sys/select.h>.
13197
13198 2010-11-27  Bruno Haible  <bruno@clisp.org>
13199
13200         getpass: Make sure to get system declaration on some platforms.
13201         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
13202         gl_USE_SYSTEM_EXTENSIONS.
13203         * modules/getpass (Depends-on): Add extensions.
13204
13205 2010-11-26  Bruno Haible  <bruno@clisp.org>
13206
13207         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
13208         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
13209         'iconv' module is present.
13210         (ICONV_CONST): New macro.
13211         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
13212         ICONV_CONST.
13213         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
13214         set ICONV_CONST.
13215         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
13216         here.
13217         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
13218         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
13219         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
13220         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
13221         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
13222         present.
13223
13224 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
13225
13226         ftoastr: comment fix
13227         * lib/ftoastr.c: "little" -> "little or no" in comment
13228
13229 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
13230
13231         stdint: port to GCC 4.3 + OSX + Octave
13232         On this platform, stdint.h is buggy and defines int64_t to long
13233         long int.  The replacement defined it to long int, causing
13234         problems with C++ style name mangling.  Instead, trust the system
13235         definition if INT64_MAX is defined, and likewise for the unsigned
13236         variant.   Problem reported by Jarno Rajahalme in
13237         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
13238         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
13239         and don't mess with int64_t and INT64_MAX in this case.
13240         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
13241
13242 2010-11-24  Bruno Haible  <bruno@clisp.org>
13243
13244         doc: Corrections regarding MacOS X 10.4 and 10.5.
13245         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
13246         MacOS X.
13247         Reported by Simon Josefsson.
13248
13249 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
13250
13251         Uninstall ".bin" files installed by relocwrapper.
13252         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
13253         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
13254         unless it is already there.
13255
13256 2010-11-21  Bruno Haible  <bruno@clisp.org>
13257
13258         Update for NetBSD 5.0.
13259         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
13260         NetBSD; the test fails on NetBSD 5.0.
13261         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
13262         about NetBSD.
13263
13264 2010-11-21  Bruno Haible  <bruno@clisp.org>
13265
13266         Update for HP-UX 11.23 and HP-UX 11.31.
13267         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
13268         HP-UX.
13269
13270 2010-11-21  Bruno Haible  <bruno@clisp.org>
13271
13272         Update for MacOS X 10.5.
13273         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
13274         MacOS X; the test fails on MacOS X 10.5.8.
13275         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
13276         about MacOS X.
13277
13278 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
13279
13280         bootstrap: add bootstrap_sync option.
13281         See discussion at
13282         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
13283         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
13284         * build-aux/bootstrap: Accept --bootstrap-sync to update
13285         bootstrap if it is not identical to the local gnulib's
13286         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
13287         enable this by default.  Accept --no-bootstrap-sync to disable
13288         it.
13289
13290 2010-11-20  Bruno Haible  <bruno@clisp.org>
13291
13292         Ensure that <features.h> is included before __GLIBC__ is tested.
13293         * lib/printf-parse.h: Include <features.h>.
13294         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
13295         Reported by Mike Frysinger <vapier@gentoo.org>.
13296
13297         Ensure that <features.h> is included before __GLIBC__ is tested.
13298         * lib/wchar.in.h: Include <features.h>.
13299         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
13300         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
13301         Reported by Mike Frysinger <vapier@gentoo.org>.
13302
13303         Ensure that <features.h> is included before __GLIBC__ is tested.
13304         * lib/arpa_inet.in.h: Include <features.h>.
13305         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
13306         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
13307         Reported by Mike Frysinger <vapier@gentoo.org>.
13308
13309         Ensure that <features.h> is included before __GLIBC__ is tested.
13310         * build-aux/link-warning.h: Include <features.h>.
13311         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
13312         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
13313         Reported by Mike Frysinger <vapier@gentoo.org>.
13314
13315         Ensure that <features.h> is included before __GLIBC__ is tested.
13316         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
13317         Reported by Mike Frysinger <vapier@gentoo.org>.
13318
13319 2010-11-20  Bruno Haible  <bruno@clisp.org>
13320
13321         memmem: Fix autoconf test.
13322         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
13323
13324 2010-11-20  Bruno Haible  <bruno@clisp.org>
13325
13326         Port to uClibc.
13327         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
13328         * lib/fcntl.in.h: Likewise.
13329         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
13330         * lib/mbrtowc.c (mbrtowc): Likewise.
13331         * lib/relocatable.c (find_shared_library_fullname): Likewise.
13332         * lib/strerror_r.c: Likewise.
13333         * lib/unistr/u8-strnlen.c: Likewise.
13334         * lib/vasnprintf.c (decimal_point_char): Likewise.
13335         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
13336         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
13337         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
13338         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
13339         * tests/test-sigaction.c (handler, main): Likewise.
13340         * lib/freading.h: Treat uClibc like a non-glibc platform.
13341         * lib/freading.c: Likewise.
13342         * lib/gettext.h: Likewise.
13343         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
13344         Likewise.
13345         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
13346         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
13347         * lib/propername.c (proper_name_utf8): Likewise.
13348         * lib/spawn.in.h: Likewise.
13349         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
13350         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
13351         mem_cd_iconveh_internal): Likewise.
13352         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
13353         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
13354         strstr, strcasestr): Likewise.
13355         * lib/unicodeio.c (unicode_to_mb): Likewise.
13356         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
13357         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
13358         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
13359         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
13360         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
13361         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
13362         * lib/unistr/u8-stpncpy.c: Likewise.
13363         * lib/vasnprintf.c (VASNPRINTF): Likewise.
13364         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
13365         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
13366         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
13367         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
13368         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
13369         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
13370         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
13371         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
13372         Likewise.
13373         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
13374         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
13375         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
13376         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13377         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
13378         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
13379         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13380         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
13381         * tests/test-getopt.h (OPTIND_MIN): Likewise.
13382         * tests/test-striconveha.c (main): Likewise.
13383         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13384         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
13385         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
13386         * doc/posix-functions/getline.texi: Likewise.
13387         Reported by Mike Frysinger <vapier@gentoo.org>.
13388
13389 2010-11-20  Bruno Haible  <bruno@clisp.org>
13390
13391         nproc: Fix condition.
13392         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
13393         HAVE_PTHREAD_AFFINITY_NP.
13394
13395 2010-11-20  Bruno Haible  <bruno@clisp.org>
13396
13397         Fix a comment.
13398         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
13399
13400 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
13401
13402         ftoastr: don't assume snprintf
13403         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
13404         Implement a subset of snprintf here, by using sprintf safely.
13405         * modules/ftoastr (Depends-on): Remove snprintf.
13406
13407 2010-11-19  Jim Meyering  <meyering@redhat.com>
13408
13409         test-rename.h: fix compilation failure
13410         * tests/test-rename.h (test_rename): Add omitted "}".
13411
13412 2010-11-17  Jim Meyering  <meyering@redhat.com>
13413
13414         maint.mk: add a URL discussing the no-@acronym policy
13415         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
13416
13417 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
13418
13419         ftoastr: depend on snprintf, improve comments
13420         * lib/ftoastr.c: Also mention Loitsch's draft.
13421         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
13422         needed in the current implementation, but it might simplify
13423         speeding up the code later.
13424         * modules/ftoastr: Depend on snprintf; this improves portability.
13425         Suggested by Bruno Haible in the same email.
13426
13427         ftoastr: port to hosts lacking strtof and strtold
13428         Problem reported by Bruno Haible in
13429         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
13430         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
13431         environment and strtold (and presumably strtof) are not available.
13432         * modules/ftoastr (Files): Add m4/c-strtod.m4.
13433         (configure.ac): Require gl_C99_STRTOLD.
13434
13435 2010-11-18  Bruno Haible  <bruno@clisp.org>
13436
13437         c-strtold: Avoid link error on AIX 7.
13438         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
13439         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
13440         (gl_C_STRTOLD): Test whether strtold_l exists.
13441         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13442
13443 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
13444
13445         intprops: new macro INT_BITS_STRLEN_BOUND
13446         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
13447         ftoastr.h.  This exposes an internal of intprops.h that was formerly
13448         not exposed.  Also, it uses a slightly tighter bound than before;
13449         though this makes no practical difference, we might as well be as
13450         tight as we easily can.
13451
13452         ftoastr: new module, for lossless conversion of floats to short strings
13453         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
13454         * modules/ftoastr: New files.
13455
13456 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
13457
13458         bootstrap: port to Solaris sed
13459         * build-aux/bootstrap (get_version): Port to Solaris sed.
13460         See Ralf Wildenhues's note in
13461         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
13462
13463 2010-11-14  Jim Meyering  <meyering@redhat.com>
13464
13465         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
13466         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
13467         and move definition closer to sole use.
13468
13469 2010-11-13  Jim Meyering  <meyering@redhat.com>
13470
13471         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
13472         Now we require at least autoconf-2.59, which means the work-around
13473         is no longer needed.
13474         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
13475         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
13476         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
13477         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
13478         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
13479
13480 2010-11-13  Bruno Haible  <bruno@clisp.org>
13481
13482         rename, renameat: Avoid test failures at NFS mounted locations.
13483         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
13484         functions.
13485         (test_rename): Use assert_nonexistent.
13486         * tests/test-rename.c: Include <dirent.h>.
13487         * tests/test-renameat.c: Likewise.
13488         Reported by Gary V. Vaughan <gary@gnu.org>.
13489
13490         rename, renameat: Document Linux bug with NFS
13491         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
13492         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
13493         * doc/posix-functions/renameat.texi: Likewise.
13494         Suggested by Eric Blake.
13495
13496 2010-11-13  Bruno Haible  <bruno@clisp.org>
13497
13498         rename test: Add comments.
13499         * tests/test-rename.h (test_rename): Add structure and comments.
13500
13501 2010-11-13  Eric Blake  <eblake@redhat.com>
13502
13503         maintainer-makefile: cover a few more files
13504         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
13505         scripts generated within C files, for libvirt.
13506
13507 2010-11-13  Bruno Haible  <bruno@clisp.org>
13508
13509         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
13510         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
13511         character, return the number of bytes that belong together, not always
13512         1.
13513         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
13514         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
13515         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
13516         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
13517         number of bytes of an invalid character.
13518         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
13519         (main): Invoke it.
13520         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
13521         results.
13522         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
13523         malformed byte sequences.
13524         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
13525         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
13526         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
13527         Reported by Ben Pfaff and Paolo Bonzini.
13528
13529 2010-11-13  Bruno Haible  <bruno@clisp.org>
13530
13531         openat: Work around glibc bug with fchownat() and empty file names.
13532         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
13533         (gl_FUNC_FCHOWNAT): Invoke it.
13534         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
13535         * doc/posix-functions/fchownat.texi: Document the glibc bug.
13536         Reported by Gary V. Vaughan <gary@gnu.org>.
13537
13538 2010-11-13  Bruno Haible  <bruno@clisp.org>
13539
13540         openat: Ensure autoconf macro ordering.
13541         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
13542         gl_USE_SYSTEM_EXTENSIONS.
13543         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
13544
13545 2010-11-13  Bruno Haible  <bruno@clisp.org>
13546
13547         Update comments.
13548         * lib/unistr/u8-check.c: Update file name in comments.
13549         * lib/unistr/u8-mblen.c: Likewise.
13550         * lib/unistr/u8-prev.c: Likewise.
13551         * lib/unistr/u8-strmblen.c: Likewise.
13552         * lib/unistr/u8-strmbtouc.c: Likewise.
13553
13554 2010-11-13  Jim Meyering  <meyering@redhat.com>
13555
13556         tests: avoid test failure on Solaris 10 due to lack of PATH export
13557         * tests/test-update-copyright.sh: Don't forget to export PATH.
13558
13559         init.sh: ensure that IFS is defined, just in case...
13560         * tests/init.sh (setup_): Ensure that IFS is defined,
13561         so that saving and restoring it works as expected.  This
13562         appears to be useful at least for an old version of dash
13563         from a long time ago (RH 6).  See here for details:
13564         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
13565
13566         maint.mk: tighten "test a == b" check
13567         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
13568         test to files that contain something like #!/bin/sh.
13569         Without this, coreutils would get two false positives in
13570         the comments of C source files.
13571
13572 2010-11-12  Eric Blake  <eblake@redhat.com>
13573
13574         bootstrap: fix typo in previous attempt
13575         * build-aux/bootstrap (buildreq): Correct the grouping.
13576         Reported by Paul Eggert.
13577
13578         maintainer-makefile: prohibit test x == x
13579         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
13580         Based on a report by Matthias Bolte.
13581
13582         bootstrap: allow FreeBSD gzip
13583         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
13584         which has no '.' and goes to stderr.
13585         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
13586         Reported by Matthias Bolte.
13587
13588         maintainer-makefile: check for i18n setup
13589         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
13590         will likely work.
13591
13592 2010-11-12  Bruno Haible  <bruno@clisp.org>
13593
13594         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
13595         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
13596         * lib/nanosleep.c (nanosleep): Likewise.
13597
13598 2010-11-11  Bruno Haible  <bruno@clisp.org>
13599
13600         fcntl-h: Fix for use of C++ on glibc systems.
13601         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
13602         also on glibc systems in C++ mode.
13603         Reported by Gary V. Vaughan <gary@gnu.org>.
13604
13605 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13606
13607         mknod: avoid false failure with dash
13608         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
13609
13610 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
13611
13612         unlink: Fix "is it should" typo in diagnostic.
13613         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
13614         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
13615
13616 2010-11-11  Bruno Haible  <bruno@clisp.org>
13617
13618         Tests for module 'strerror_r-posix'.
13619         * modules/strerror_r-posix-tests: New file.
13620         * tests/test-strerror_r.c: New file.
13621         * tests/test-string-c++.cc: Check the signature of strerror_r.
13622
13623         New module 'strerror_r-posix'.
13624         * lib/string.in.h (strerror_r): New declaration.
13625         * lib/strerror_r.c: New file.
13626         * m4/strerror_r.m4: New file.
13627         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
13628         of strerror_r.
13629         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
13630         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
13631         * modules/strerror_r-posix: New file.
13632         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
13633         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
13634         * doc/posix-functions/strerror_r.texi: Mention the new module and the
13635         portability problems.
13636
13637 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
13638
13639         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
13640         line is also considered for output. Quoted function name in shell
13641         command, so temporary files for functions like MyClass::operator()
13642         are removed correctly without errors.
13643
13644 2010-11-09  Bruno Haible  <bruno@clisp.org>
13645
13646         * doc/posix-functions/strerror.texi: List more failing platforms.
13647
13648         * doc/posix-functions/strerror.texi: Add a comment.
13649
13650 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
13651
13652         fdopendir: fix bug on MacOS X when low on file descriptors
13653
13654         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
13655         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
13656         All callers changed.
13657         (fdopendir): Invoke save_cwd at the top level, not after using
13658         multiple dup() calls to use up file descriptors.  Then retry
13659         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
13660         less than the maximum number of open file descriptors, because
13661         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
13662         on Mac OS X 10.6.4 for tar 1.24
13663         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
13664         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
13665         and for tar 1.25
13666         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
13667
13668 2010-11-07  Bruno Haible  <bruno@clisp.org>
13669
13670         vasnprintf: Support I flag on glibc systems.
13671         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
13672         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
13673         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
13674         snprintf function.
13675         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
13676         glibc systems.
13677         * tests/test-vasnprintf-posix3.c: New file.
13678         * modules/vasnprintf-posix-tests (Files): Add it.
13679         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
13680
13681 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
13682
13683         [html] Fix copy/paste bug: Use unique name for compiler warnings.
13684         * MODULES.html.sh: For compiler warnings, use name
13685         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
13686
13687 2010-11-05  Eric Blake  <eblake@redhat.com>
13688
13689         ceil, floor: avoid spurious failure with icc
13690         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
13691         [denormals-as-zero] when optimizing without -mieee-fp option.
13692         * tests/test-floorf2.c (floorf_reference): Likewise.
13693         * tests/test-ceilf1.c (dummy): New function.
13694         (main): Use it to outsmart icc's optimization.
13695         * tests/test-floorf1.c (dummy, main): Likewise.
13696
13697         tests: require working signbit
13698         * modules/ceilf-tests (Depends-on): Add signbit.
13699         * modules/ceill-tests (Depends-on): Likewise.
13700         * modules/floorf-tests (Depends-on): Likewise.
13701         * modules/floorl-tests (Depends-on): Likewise.
13702         * modules/round-tests (Depends-on): Likewise.
13703         * modules/roundf-tests (Depends-on): Likewise.
13704         * modules/roundl-tests (Depends-on): Likewise.
13705         * modules/trunc-tests (Depends-on): Likewise.
13706         * modules/truncf-tests (Depends-on): Likewise.
13707         * modules/truncl-tests (Depends-on): Likewise.
13708
13709         strtod: work around icc bug
13710         * lib/strtod.c (minus_zero): Define to working value.
13711         (strtod): Use it to avoid icc bug.
13712
13713         copysign: enhance tests
13714         * modules/copysign-tests (Files): Add minus-zero.h.
13715         * tests/test-copysign.c (main): Also test zeros.
13716
13717 2010-11-04  Eric Blake  <eblake@redhat.com>
13718
13719         ceil, floor, round, trunc: enhance tests of -0
13720         * tests/test-ceilf1.c (main): Ensure correct sign of result.
13721         * tests/test-ceill.c (main): Likewise.
13722         * tests/test-floorf1.c (main): Likewise.
13723         * tests/test-floorl.c (main): Likewise.
13724         * tests/test-round1.c (main): Likewise.
13725         * tests/test-roundf1.c (main): Likewise.
13726         * tests/test-roundl.c (main): Likewise.
13727         * tests/test-trunc1.c (main): Likewise.
13728         * tests/test-truncf1.c (main): Likewise.
13729         * tests/test-truncl.c (main): Likewise.
13730
13731 2010-11-04  Eric Blake  <eblake@redhat.com>
13732
13733         frexp, tests: work around ICC bug with -zero
13734         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
13735         works with more compilers.
13736         * tests/minus-zero.h: New file.
13737         * modules/ceilf-tests (Files): Include it.
13738         * modules/ceill-tests (Files): Likewise.
13739         * modules/floorf-tests (Files): Likewise.
13740         * modules/floorl-tests (Files): Likewise.
13741         * modules/frexp-nolibm-tests (Files): Likewise.
13742         * modules/frexp-tests (Files): Likewise.
13743         * modules/frexpl-nolibm-tests (Files): Likewise.
13744         * modules/frexpl-tests (Files): Likewise.
13745         * modules/isnan-tests (Files): Likewise.
13746         * modules/isnand-nolibm-tests (Files): Likewise.
13747         * modules/isnand-tests (Files): Likewise.
13748         * modules/isnanf-nolibm-tests (Files): Likewise.
13749         * modules/isnanf-tests (Files): Likewise.
13750         * modules/isnanl-nolibm-tests (Files): Likewise.
13751         * modules/isnanl-tests (Files): Likewise.
13752         * modules/round-tests (Files): Likewise.
13753         * modules/roundf-tests (Files): Likewise.
13754         * modules/roundl-tests (Files): Likewise.
13755         * modules/ldexpl-tests (Files): Likewise.
13756         * modules/signbit-tests (Files): Likewise.
13757         * modules/snprintf-posix-tests (Files): Likewise.
13758         * modules/sprintf-posix-tests (Files): Likewise.
13759         * modules/strtod-tests (Files): Likewise.
13760         * modules/trunc-tests (Files): Likewise.
13761         * modules/truncf-tests (Files): Likewise.
13762         * modules/truncl-tests (Files): Likewise.
13763         * modules/vsnprintf-posix-tests (Files): Likewise.
13764         * modules/vsprintf-posix-tests (Files): Likewise.
13765         * modules/vasnprintf-posix-tests (Files): Likewise.
13766         * modules/vasprintf-posix-tests (Files): Likewise.
13767         * tests/test-ceilf1.c (main): Use it.
13768         * tests/test-ceill.c (main): Likewise.
13769         * tests/test-floorf1.c (main): Likewise.
13770         * tests/test-floorl.c (main): Likewise.
13771         * tests/test-frexp.c (main): Likewise.
13772         * tests/test-frexpl.c (main): Likewise.
13773         * tests/test-isnan.c (main): Likewise.
13774         * tests/test-isnand.h (main): Likewise.
13775         * tests/test-isnanf.h (main): Likewise.
13776         * tests/test-isnanl.h (main): Likewise.
13777         * tests/test-ldexpl.c (main): Likewise.
13778         * tests/test-round.c (main): Likewise.
13779         * tests/test-roundf.c (main): Likewise.
13780         * tests/test-roundl.c (main): Likewise.
13781         * tests/test-signbit.c (test_signbitf, test_signbitd)
13782         (test_signbitl): Likewise.
13783         * tests/test-snprintf-posix.h (test_function): Likewise.
13784         * tests/test-sprintf-posix.h (test_function): Likewise.
13785         * tests/test-strtod.c (main): Likewise.
13786         * tests/test-trunc1.c (main): Likewise.
13787         * tests/test-truncf1.c (main): Likewise.
13788         * tests/test-truncl.c (main): Likewise.
13789
13790         isnanl: work around icc bug
13791         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
13792
13793 2010-11-03  Eric Blake  <eblake@redhat.com>
13794
13795         tests: fix compiler warnings
13796         * tests/test-getopt.h (test_getopt): Fix condition.
13797         * tests/test-getopt_long.h (test_getopt_long): Likewise.
13798         * tests/test-pipe2.c (main): Likewise.
13799         * tests/test-quotearg-simple.c (main): Avoid icc warning.
13800
13801         utimens: fix broken m4 test
13802         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
13803
13804 2010-10-28  Bruno Haible  <bruno@clisp.org>
13805
13806         posix_spawn*, getdtablesize: Relax license.
13807         * modules/posix_spawn (License): Change to LGPLv2+.
13808         * modules/posix_spawnp (License): Likewise.
13809         * modules/posix_spawn-internal (License): Likewise.
13810         * modules/posix_spawnattr_init (License): Likewise.
13811         * modules/posix_spawnattr_getflags (License): Likewise.
13812         * modules/posix_spawnattr_setflags (License): Likewise.
13813         * modules/posix_spawnattr_getpgroup (License): Likewise.
13814         * modules/posix_spawnattr_setpgroup (License): Likewise.
13815         * modules/posix_spawnattr_getschedparam (License): Likewise.
13816         * modules/posix_spawnattr_setschedparam (License): Likewise.
13817         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
13818         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
13819         * modules/posix_spawnattr_getsigdefault (License): Likewise.
13820         * modules/posix_spawnattr_setsigdefault (License): Likewise.
13821         * modules/posix_spawnattr_getsigmask (License): Likewise.
13822         * modules/posix_spawnattr_setsigmask (License): Likewise.
13823         * modules/posix_spawnattr_destroy (License): Likewise.
13824         * modules/posix_spawn_file_actions_init (License): Likewise.
13825         * modules/posix_spawn_file_actions_addclose (License): Likewise.
13826         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
13827         * modules/posix_spawn_file_actions_addopen (License): Likewise.
13828         * modules/posix_spawn_file_actions_destroy (License): Likewise.
13829         * modules/getdtablesize (License): Likewise.
13830         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
13831
13832 2010-10-26  Bruno Haible  <bruno@clisp.org>
13833
13834         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
13835         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
13836         Cygwin and mingw.
13837         Suggested by Eric Blake.
13838
13839 2010-10-26  Bruno Haible  <bruno@clisp.org>
13840
13841         stdio: Work around compilation error due to renameat() on Solaris 10.
13842         * lib/stdio.in.h: Include <unistd.h> on Solaris.
13843         * lib/renameat.c: Don't include <unistd.h> here.
13844         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
13845         Reported by Paul Eggert and Eric Blake.
13846
13847 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
13848
13849         renameat: port to Solaris 10, which declares renameat in unistd.h
13850
13851         * lib/renameat.c: Include unistd.h before stdio.h, because
13852         Solaris 10 declares renameat in unistd.h.  Problem encountered
13853         when building GNU tar 1.24 on Solaris 10.
13854
13855 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13856
13857         fdopendir: fix C89 compilation
13858         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
13859         compilers.
13860
13861 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
13862
13863         inttostr: simplify by removing unnecessary redundancy
13864         * lib/anytostr.c: Don't include verify.h.
13865         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
13866         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
13867         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
13868         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
13869         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
13870         Likewise.
13871         * modules/inttostr (Depends-on): Remove 'verify'.
13872
13873 2010-10-23  Bruno Haible  <bruno@clisp.org>
13874
13875         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
13876         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
13877         Reported by Eric Blake.
13878
13879 2010-10-23  Bruno Haible  <bruno@clisp.org>
13880
13881         Tests: Fix LOCALE_JA on MirBSD 10.
13882         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
13883         to an UTF-8 locale.
13884         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
13885         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
13886         Reported by Eric Blake.
13887
13888 2010-10-21  Bruno Haible  <bruno@clisp.org>
13889
13890         nl_langinfo test: Avoid test failure on NetBSD 5.
13891         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
13892         Reported by Eric Blake.
13893
13894 2010-10-21  Eric Blake  <eblake@redhat.com>
13895
13896         c-stack: work around libsigsegv 2.8 bug
13897         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
13898         overflow on at least PowerPC64.
13899
13900 2010-10-17  Bruno Haible  <bruno@clisp.org>
13901
13902         userspec: Drop redundant file.
13903         * modules/userspec (Files): Remove lib/inttostr.h.
13904
13905 2010-10-17  Bruno Haible  <bruno@clisp.org>
13906
13907         nl_langinfo tests: Silence some warnings.
13908         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
13909         Reported by Jim Meyering.
13910
13911 2010-10-17  Bruno Haible  <bruno@clisp.org>
13912
13913         Make use of GCC's attribute __alloc_size__.
13914         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
13915         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
13916         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
13917         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
13918         __alloc_size__.
13919         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
13920         Suggested by Jim Meyering.
13921
13922 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
13923
13924         bootstrap: anchor .gitignore entries.
13925         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
13926         with...
13927         (insert_vc_ignore): ... this new function, which prepends `/' to
13928         all .gitignore entries before passing them to
13929         insert_sorted_if_absent.
13930
13931 2010-10-16  Bruno Haible  <bruno@clisp.org>
13932
13933         nextafter: Fix configure check.
13934         * modules/nextafter (configure.ac): Correct expected prototype.
13935
13936 2010-10-16  Bruno Haible  <bruno@clisp.org>
13937
13938         termios: Update documentation.
13939         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
13940
13941 2010-10-16  Bruno Haible  <bruno@clisp.org>
13942
13943         tests: Make them compile with TinyCC.
13944         * tests/test-strstr.c (main): Remove parentheses around array
13945         initializer.
13946
13947 2010-10-15  Eric Blake  <eblake@redhat.com>
13948
13949         ignore-value: make header idempotent
13950         * lib/ignore-value.h: Add double-inclusion guards.
13951         Reported by Stefan Berger.
13952
13953 2010-10-15  Jim Meyering  <meyering@redhat.com>
13954
13955         GNUmakefile: handle "stable" target, not "major"
13956         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
13957         lists in maint.mk and announce-gen.  Without this, "make stable"
13958         would fail to ensure that $(VERSION) is up to date.
13959
13960 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
13961
13962         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
13963         & co.
13964
13965 2010-10-14  Bruno Haible  <bruno@clisp.org>
13966
13967         vasnprintf: Don't set errno to 0.
13968         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
13969         block that sets it to 0.
13970         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
13971
13972 2010-10-14  Bruno Haible  <bruno@clisp.org>
13973
13974         socketlib: Fix.
13975         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
13976         gl_PREREQ_SYS_H_WINSOCK2.
13977         Reported by Ian Beckwith <ianb@erislabs.net>.
13978
13979 2010-10-13  Jim Meyering  <meyering@redhat.com>
13980
13981         test-select-stdin.c: avoid warn_unused_result warnings
13982         * tests/test-select-stdin.c: Include "macros.h".
13983         ASSERT that read and fflush succeed.
13984
13985 2010-10-13  Jim Meyering  <meyering@redhat.com>
13986
13987         git-version-gen: do require git-VC'd files in cwd
13988         * build-aux/git-version-gen: Reject a git version string
13989         if there are no commits associated with the current directory.
13990         This avoids an unlikely false-positive (unrelated dir whose parent
13991         repository also contains a tag matching v*), as pointed out
13992         by Giuseppe Scrivano in
13993         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
13994
13995 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
13996
13997         argv-iter: omit nonconforming declaration
13998         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
13999         enum arg_iter_err declaration, which doesn't conform to C99.
14000         Solaris 10 cc warns about this.
14001
14002 2010-10-13  Eric Blake  <eblake@redhat.com>
14003
14004         termios: fix compilation on mingw
14005         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
14006         (gl_TERMIOS_H): Adjust it on mingw.
14007         * modules/termios (Makefile.am): Substitute new key.
14008         * lib/termios.in.h (includes): Make include_next conditional.
14009         * doc/posix-headers/termios.texi (termios.h): Update
14010         documentation.
14011         Reported by Daniel P. Berrange.
14012
14013 2010-10-13  Jim Meyering  <meyering@redhat.com>
14014
14015         git-version-gen: don't require that .git/ be in the current dir
14016         * build-aux/git-version-gen: Adjust this script so that it works
14017         when run from any working directory beneath the top-level .git/-
14018         containing directory.  Inspired by a patch from Giuseppe Scrivano,
14019         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
14020
14021         test-select: avoid warn_unused_result warnings
14022         * tests/test-select.c: Include "macros.h".
14023         ASSERT that each call to read, write, and pipe succeeds.
14024         While not technically required, also check each "close".
14025         * modules/select-tests (Files): Add tests/macros.h.
14026
14027         test-symlinkat: remove declaration of unused local
14028         * tests/test-symlinkat.c (main): Remove unused local, "buf".
14029
14030         test-inttostr: avoid shadowing warnings
14031         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
14032         and use malloc rather than the stack for the same reason as
14033         mentioned in the comment justifying the other allocation.
14034
14035 2010-10-11  Bruno Haible  <bruno@clisp.org>
14036
14037         stdlib: Allow multiple gnulib generated replacements to coexist.
14038         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
14039         Reported by Sam Steingold <sds@gnu.org>.
14040
14041 2010-10-11  Jim Meyering  <meyering@redhat.com>
14042
14043         fix a documentation typo
14044         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
14045
14046 2010-10-11  Eric Blake  <eblake@redhat.com>
14047
14048         futimens: work around Solaris 11 bug
14049         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
14050         * tests/test-futimens.h (test_futimens): Enhance, rather than
14051         weaken test.
14052         * doc/posix-functions/futimens.texi (futimens): Document the bug.
14053
14054 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
14055
14056         Indentation.
14057         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
14058         higher-level operators more to the left.
14059
14060 2010-10-11  Jim Meyering  <meyering@redhat.com>
14061
14062         test-futimens: avoid unwarranted test failure on Solaris 5.11
14063         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
14064         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
14065         because it tries to dereference the NULL name argument.
14066
14067 2010-10-11  Bruno Haible  <bruno@clisp.org>
14068
14069         Indentation.
14070         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
14071         indentation.
14072
14073 2010-10-11  Jim Meyering  <meyering@redhat.com>
14074
14075         spawn.in.h: make indentation consistent with parentheses
14076         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
14077         Make indentation consistent with parentheses.
14078
14079 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
14080
14081         Fix mismatched parens in previous commit
14082         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
14083         parens.
14084
14085 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
14086
14087         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
14088
14089         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
14090         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
14091         * lib/malloca.c: Include "verify.h".
14092         (verify1): Remove, replacing with a verify call.
14093         * lib/relocwrapper.c (verify1): Likewise.
14094         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
14095         Likewise.
14096         * modules/malloca (Depends-on): Add 'verify'.
14097         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
14098         * modules/vasnprintf (Depends-on): Add 'verify'.
14099         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
14100         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
14101         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
14102         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
14103         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
14104         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
14105         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
14106
14107         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
14108
14109         Formerly the style was sometimes 2*X - 1, because the C standard
14110         was wrongly thought to disallow ?: in integral constant expressions.
14111         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
14112         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
14113         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
14114         * lib/stdint.in.h (_verify_intmax_size): Likewise.
14115         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
14116         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
14117         verify that time_t cannot be floating.
14118
14119 2010-10-08  Eric Blake  <eblake@redhat.com>
14120
14121         time: enforce recent POSIX ruling that time_t is integral
14122         * lib/time.in.h (__time_t_must_be_integral): Detect any
14123         problematic systems, allowing the rest of gnulib to assume POSIX.
14124
14125 2010-10-08  Jim Meyering  <meyering@redhat.com>
14126
14127         fdopendir: fix a bug on systems lacking openat and /proc support
14128         OpenBSD 4.7 is one such system.  The most noticeable effect was
14129         failure of any application making nontrivial use of fts: rm, du,
14130         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
14131           ./rm: traversal failed: `a': Bad file descriptor
14132         Debugging that, you see that even though FD 6 was closed just
14133         prior to the opendir call in fd_clone_opendir, its resulting
14134         dir->dd_fd was 8, rather than the expected value of 6:
14135
14136         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
14137         93                close (fd);
14138         (gdb) n
14139         94                dir = fd_clone_opendir (dupfd);
14140         (gdb) n
14141         95                saved_errno = errno;
14142         (gdb) p dir->dd_fd
14143         $11 = 8
14144
14145         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
14146         The problem is that on OpenBSD, fd_clone_opendir has to resort
14147         to using the old-style save/restore CWD mechanism, due to its
14148         lack of openat/proc support, and *that* would steal the FD (6)
14149         that opendir was supposed to use.
14150
14151         The fix is to squirrel away the desired FD so that save_cwd uses a
14152         different one, and then free the dest FD right before calling opendir.
14153         That guarantees opendir will use the required file descriptor.
14154
14155         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
14156
14157 2010-10-08  Bruno Haible  <bruno@clisp.org>
14158
14159         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
14160         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
14161
14162 2010-10-08  Bruno Haible  <bruno@clisp.org>
14163
14164         nanosleep: Make replacement POSIX compliant.
14165         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
14166         is out of range.
14167         Reported by Jim Meyering.
14168
14169 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
14170
14171         bootstrap: add hook for altering gnulib.mk, for Bison
14172         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
14173         the Bison bootstrapping process can rewrite file names and variables
14174         in this file before later parts of 'bootstrap' use the file.
14175         Bison wants to include lib/gnulib.mk from the top-level makefile,
14176         so it needs the file names in this file to be relative to the top
14177         level, not relative to lib; plus it needs variable names to be
14178         rewritten.
14179         (slurp): Use the new function.
14180
14181         bootstrap: reformat for readability
14182         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
14183
14184 2010-10-08  Eric Blake  <eblake@redhat.com>
14185
14186         docs: update cygwin progress
14187         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
14188         1.7.7.
14189         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
14190         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
14191         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
14192         * doc/posix-functions/carg.texi (carg): Likewise.
14193         * doc/posix-functions/cargf.texi (cargf): Likewise.
14194         * doc/posix-functions/casin.texi (casin): Likewise.
14195         * doc/posix-functions/casinf.texi (casinf): Likewise.
14196         * doc/posix-functions/casinh.texi (casinh): Likewise.
14197         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
14198         * doc/posix-functions/catan.texi (catan): Likewise.
14199         * doc/posix-functions/catanf.texi (catanf): Likewise.
14200         * doc/posix-functions/catanh.texi (catanh): Likewise.
14201         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
14202         * doc/posix-functions/ccos.texi (ccos): Likewise.
14203         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
14204         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
14205         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
14206         * doc/posix-functions/cexp.texi (cexp): Likewise.
14207         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
14208         * doc/posix-functions/cimag.texi (cimag): Likewise.
14209         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
14210         * doc/posix-functions/clog.texi (clog): Likewise.
14211         * doc/posix-functions/clogf.texi (clogf): Likewise.
14212         * doc/posix-functions/conj.texi (conj): Likewise.
14213         * doc/posix-functions/conjf.texi (conjf): Likewise.
14214         * doc/posix-functions/cpow.texi (cpow): Likewise.
14215         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
14216         * doc/posix-functions/cproj.texi (cproj): Likewise.
14217         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
14218         * doc/posix-functions/creal.texi (creal): Likewise.
14219         * doc/posix-functions/crealf.texi (crealf): Likewise.
14220         * doc/posix-functions/csin.texi (csin): Likewise.
14221         * doc/posix-functions/csinf.texi (csinf): Likewise.
14222         * doc/posix-functions/csinh.texi (csinh): Likewise.
14223         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
14224         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
14225         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
14226         * doc/posix-functions/ctan.texi (ctan): Likewise.
14227         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
14228         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
14229         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
14230         * doc/posix-headers/complex.texi (complex.h): Likewise.
14231
14232 2010-10-07  Jim Meyering  <meyering@redhat.com>
14233
14234         parse-datetime: avoid compilation failure on OpenBSD 4.7
14235         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
14236         This works around a compilation failure on OpenBSD 4.7:
14237         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
14238
14239 2010-10-07  Eric Blake  <eblake@redhat.com>
14240
14241         docs: update cygwin progress
14242         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
14243         1.7.6.
14244         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
14245         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
14246         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
14247         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
14248         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
14249         Likewise.
14250         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
14251         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
14252         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
14253         Likewise.
14254         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
14255         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
14256         Likewise.
14257         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
14258         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
14259         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
14260         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
14261         Likewise.
14262         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
14263         Likewise.
14264         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
14265
14266         docs: update parse-datetime history
14267         * doc/parse-datetime.texi (Authors of parse_datetime): Better
14268         documentation of this function's history and alternatives.
14269
14270         cygwin: use more robust version check
14271         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
14272         exclude an eventual cygwin 1.9.1.
14273         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
14274         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
14275         (gl_FUNC_STRCASESTR): Likewise.
14276         Reported by Bruno Haible.
14277
14278 2010-10-06  Bruno Haible  <bruno@clisp.org>
14279
14280         string, sys_select: Avoid #including large headers unless necessary.
14281         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
14282         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
14283         OSF/1, BeOS, Haiku.
14284         Reported by Jim Meyering.
14285
14286 2010-10-05  Eric Blake  <eblake@redhat.com>
14287
14288         memmem, strstr, strcasestr: fix bug with long periodic needle
14289         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
14290         periodic needle having false positive.
14291         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
14292         and cygwin 1.7.7.
14293         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
14294         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
14295         (gl_FUNC_STRCASESTR): Likewise.
14296         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
14297         * tests/test-memmem.c (main): Expose the bug.
14298         * tests/test-strcasestr.c (main): Likewise.
14299         * tests/test-strstr.c (main): Likewise.
14300         * tests/test-c-strcasestr.c (main): Likewise.
14301         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
14302         * doc/posix-functions/strstr.texi (strstr): Likewise.
14303         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
14304         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
14305
14306 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
14307
14308         parse-datetime: do some more renaming
14309         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
14310         parse_datetime, not get_date.  Mention the renaming.
14311         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
14312         in comments.
14313         * m4/bison.m4: Likewise.
14314
14315 2010-10-05  Eric Blake  <eblake@redhat.com>
14316
14317         parse-datetime: better name than get_date
14318         * NEWS: Reword the deprecation notice.
14319         * modules/get_date: Rename to modules/parse-datetime.
14320         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
14321         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
14322         * lib/get_date.y: Rename to lib/parse-datetime.y.
14323         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
14324         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
14325         * doc/getdate.texi: Provide fallback wrapper.
14326         * lib/getdate.h: Move guts, and wrap...
14327         * lib/parse-datetime.h: ...new file.
14328         * lib/parse-datetime.y (get_date): Rename...
14329         (parse_datetime): ...to this.
14330         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
14331         (gl_PARSE_DATETIME): ...to this.
14332         * doc/posix-functions/getdate.texi (get_date): Provide fallback
14333         documentation.
14334         * modules/getdate (Files): Provide fallback docs and header.
14335         (Notice, Depends-on): Update references.
14336         * tests/test-parse-datetime.c: Likewise.
14337         * DEPENDENCIES: Likewise.
14338         * MODULES.html.sh (Date and time <time.h>): Likewise.
14339         * doc/parse-datetime.texi (Date input formats)
14340         (Authors of parse_datetime): Likewise.
14341         * modules/parse-datetime (Files, configure.ac, Makefile.am)
14342         (Include): Likewise.
14343         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
14344         * gnulib-tool: Likewise.
14345         * m4/bison.m4 (gl_BISON): Likewise.
14346         Suggested by Bruno Haible.
14347
14348 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
14349
14350         more ports to Solaris tr, which needs [] around ranges
14351         * gnulib-tool: Solaris tr needs [] around ranges.
14352         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
14353         * tests/test-pipe-filter-gi1.c (main): Likewise.
14354         * tests/test-pipe-filter-ii1.c (main): Likewise.
14355
14356 2010-10-05  Eric Blake  <eblake@redhat.com>
14357
14358         bootstrap: fix Solaris regression
14359         * build-aux/bootstrap (check_versions): Solaris tr still needs []
14360         around ranges.
14361         Reported by Pádraig Brady.
14362
14363         bootstrap: work with pkg-config
14364         * build-aux/bootstrap (check_versions): Also transliterate - in
14365         prerequisite name.
14366         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
14367         prerequisites that were already found, to avoid confusion.
14368         Reported by Justin Clift.
14369
14370         faccessat: remove unused wrappers
14371         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
14372         presence of these wrappers dragged in -lgen on Solaris.
14373         Reported by Clemens Brogi; fix suggested by Paul Eggert.
14374
14375 2010-10-05  Jim Meyering  <meyering@redhat.com>
14376
14377         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
14378         * Makefile (sc_pragma_columns): New syntax-check rule.
14379
14380 2010-10-04  Bruno Haible  <bruno@clisp.org>
14381
14382         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
14383         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
14384         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
14385         Reported by Bruce Korb and Eric Blake.
14386
14387 2010-10-04  Bruno Haible  <bruno@clisp.org>
14388
14389         threadlib: Make option --with-libpth-prefix work.
14390         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
14391         use $LIBPTH, not just -lpth.
14392
14393 2010-10-04  Bruno Haible  <bruno@clisp.org>
14394
14395         Avoid line length limitation from HP NonStop system header files.
14396         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
14397         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
14398         * lib/ctype.in.h: Likewise.
14399         * lib/dirent.in.h: Likewise.
14400         * lib/errno.in.h: Likewise.
14401         * lib/fcntl.in.h: Likewise.
14402         * lib/float.in.h: Likewise.
14403         * lib/getopt.in.h: Likewise.
14404         * lib/iconv.in.h: Likewise.
14405         * lib/inttypes.in.h: Likewise.
14406         * lib/langinfo.in.h: Likewise.
14407         * lib/locale.in.h: Likewise.
14408         * lib/math.in.h: Likewise.
14409         * lib/netdb.in.h: Likewise.
14410         * lib/netinet_in.in.h: Likewise.
14411         * lib/poll.in.h: Likewise.
14412         * lib/pthread.in.h: Likewise.
14413         * lib/pty.in.h: Likewise.
14414         * lib/sched.in.h: Likewise.
14415         * lib/se-selinux.in.h: Likewise.
14416         * lib/search.in.h: Likewise.
14417         * lib/signal.in.h: Likewise.
14418         * lib/spawn.in.h: Likewise.
14419         * lib/stdarg.in.h: Likewise.
14420         * lib/stddef.in.h: Likewise.
14421         * lib/stdint.in.h: Likewise.
14422         * lib/stdio.in.h: Likewise.
14423         * lib/stdlib.in.h: Likewise.
14424         * lib/string.in.h: Likewise.
14425         * lib/strings.in.h: Likewise.
14426         * lib/sys_file.in.h: Likewise.
14427         * lib/sys_ioctl.in.h: Likewise.
14428         * lib/sys_select.in.h: Likewise.
14429         * lib/sys_socket.in.h: Likewise.
14430         * lib/sys_stat.in.h: Likewise.
14431         * lib/sys_time.in.h: Likewise.
14432         * lib/sys_times.in.h: Likewise.
14433         * lib/sys_utsname.in.h: Likewise.
14434         * lib/sys_wait.in.h: Likewise.
14435         * lib/sysexits.in.h: Likewise.
14436         * lib/termios.in.h: Likewise.
14437         * lib/time.in.h: Likewise.
14438         * lib/unistd.in.h: Likewise.
14439         * lib/wchar.in.h: Likewise.
14440         * lib/wctype.in.h: Likewise.
14441         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
14442         * modules/ctype (Makefile.am): Likewise.
14443         * modules/dirent (Makefile.am): Likewise.
14444         * modules/errno (Makefile.am): Likewise.
14445         * modules/fcntl-h (Makefile.am): Likewise.
14446         * modules/float (Makefile.am): Likewise.
14447         * modules/getopt-posix (Makefile.am): Likewise.
14448         * modules/iconv-h (Makefile.am): Likewise.
14449         * modules/inttypes (Makefile.am): Likewise.
14450         * modules/langinfo (Makefile.am): Likewise.
14451         * modules/locale (Makefile.am): Likewise.
14452         * modules/math (Makefile.am): Likewise.
14453         * modules/netdb (Makefile.am): Likewise.
14454         * modules/netinet_in (Makefile.am): Likewise.
14455         * modules/poll-h (Makefile.am): Likewise.
14456         * modules/pthread (Makefile.am): Likewise.
14457         * modules/pty (Makefile.am): Likewise.
14458         * modules/sched (Makefile.am): Likewise.
14459         * modules/search (Makefile.am): Likewise.
14460         * modules/selinux-h (Makefile.am): Likewise.
14461         * modules/signal (Makefile.am): Likewise.
14462         * modules/spawn (Makefile.am): Likewise.
14463         * modules/stdarg (Makefile.am): Likewise.
14464         * modules/stddef (Makefile.am): Likewise.
14465         * modules/stdint (Makefile.am): Likewise.
14466         * modules/stdio (Makefile.am): Likewise.
14467         * modules/stdlib (Makefile.am): Likewise.
14468         * modules/string (Makefile.am): Likewise.
14469         * modules/strings (Makefile.am): Likewise.
14470         * modules/sys_file (Makefile.am): Likewise.
14471         * modules/sys_ioctl (Makefile.am): Likewise.
14472         * modules/sys_select (Makefile.am): Likewise.
14473         * modules/sys_socket (Makefile.am): Likewise.
14474         * modules/sys_stat (Makefile.am): Likewise.
14475         * modules/sys_time (Makefile.am): Likewise.
14476         * modules/sys_times (Makefile.am): Likewise.
14477         * modules/sys_utsname (Makefile.am): Likewise.
14478         * modules/sys_wait (Makefile.am): Likewise.
14479         * modules/sysexits (Makefile.am): Likewise.
14480         * modules/termios (Makefile.am): Likewise.
14481         * modules/time (Makefile.am): Likewise.
14482         * modules/unistd (Makefile.am): Likewise.
14483         * modules/wchar (Makefile.am): Likewise.
14484         * modules/wctype (Makefile.am): Likewise.
14485
14486 2010-10-04  Bruno Haible  <bruno@clisp.org>
14487
14488         read-file tests: Avoid a test failure on NonStop Kernel.
14489         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
14490         a regular file.
14491         Reported by Joachim Schmitz <schmitz@hp.com>.
14492
14493 2010-10-03  Bruno Haible  <bruno@clisp.org>
14494
14495         gnulib-tool: Fixes for --create-testdir with --libtool.
14496         * gnulib-tool (func_get_automake_snippet): Don't augment
14497         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
14498         an executable.
14499         (func_create_testdir): Handle module 'alloca' like func_import.
14500         Reported by Bruce Korb <bruce.korb@gmail.com>.
14501
14502 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
14503
14504         Avoid some lines longer than 80 characters.
14505         * lib/stdint.in.h: Break long comment lines.
14506         * lib/math.in.h: Likewise.
14507         (_GL_NUM_UINT_WORDS): New macro, for readability.
14508         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
14509         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
14510         * lib/stdlib.in.h: Likewise.
14511         * lib/spawn.in.h: Likewise.
14512         * lib/sys_socket.in.h: Update an URL.
14513         * lib/sys_stat.in.h: Break long line.
14514
14515 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
14516
14517         Improve pmccabe2html.
14518         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
14519         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
14520         when the sources change. Remove the line in the HTML about "Used
14521         ranges" (which implied that there might be other unused ranges),
14522         rename "Resume" to "Summary" (easier to understand for more users).
14523         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
14524         styles, and some unnecessary blank lines.
14525
14526 2010-10-03  Bruno Haible  <bruno@clisp.org>
14527             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
14528
14529         acl: Add support for ACLs on NonStop Kernel.
14530         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
14531         Check whether the function aclsort() exists.
14532         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
14533         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
14534         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
14535         (acl_nontrivial [HAVE_ACLSORT]: New function.
14536         (file_has_acl): Implement for NonStop Kernel.
14537         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
14538         (qset_acl): Implement for NonStop Kernel.
14539         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
14540         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
14541         (main): Implement for NonStop Kernel.
14542         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
14543         Kernel. Handle this flavor.
14544         * tests/test-set-mode-acl.sh: Likewise.
14545         * tests/test-copy-acl.sh: Likewise.
14546         * tests/test-copy-file.sh: Likewise.
14547
14548 2010-10-03  Bruno Haible  <bruno@clisp.org>
14549
14550         Info about ACLs on NonStop Kernel.
14551         * doc/acl-resources.txt: Add info about NonStop Kernel.
14552         References by Joachim Schmitz <schmitz@hp.com>.
14553
14554 2010-10-02  Bruno Haible  <bruno@clisp.org>
14555
14556         Define missing EDQUOT on NonStop Kernel.
14557         * lib/errno.in.h (EDQUOT): Assign a value if missing.
14558         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
14559         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
14560         missing.
14561         * doc/posix-headers/errno.texi: Mention the NSK bug.
14562         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
14563         Reported by Joachim Schmitz <schmitz@hp.com>.
14564
14565 2010-10-02  Bruno Haible  <bruno@clisp.org>
14566
14567         Update doc for POSIX:2008.
14568         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
14569         Update URL of POSIX specification.
14570
14571 2010-10-02  Bruno Haible  <bruno@clisp.org>
14572
14573         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
14574         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
14575         from gnulib, not from Automake.
14576
14577 2010-10-02  Bruno Haible  <bruno@clisp.org>
14578
14579         New module 'system-posix'.
14580         * modules/system-posix: New file.
14581         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
14582         module is present.
14583         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
14584         GNULIB_SYSTEM_POSIX.
14585         * modules/stdlib (Depends-on): Remove sys_wait.
14586         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
14587         * doc/posix-functions/system.texi: Mention the new module.
14588         * doc/posix-headers/stdlib.texi: Likewise.
14589         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
14590         define test_sys_wait_macros to a no-op.
14591         Reported by Sam Steingold <sds@gnu.org>.
14592
14593 2010-09-30  Bruno Haible  <bruno@clisp.org>
14594
14595         More renaming from 'getdate' to 'get_date'.
14596         * doc/get_date.texi: Renamed from doc/getdate.texi.
14597         * modules/get_date (Files): Update.
14598         * MODULES.html.sh (Date and time <time.h>): Update.
14599         * DEPENDENCIES: Update.
14600         * gnulib-tool: Update comment.
14601         * m4/bison.m4 (gl_BISON): Likewise.
14602         * m4/get_date.m4 (gl_GET_DATE): Likewise.
14603
14604 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
14605
14606         bootstrap: support ACLOCAL_FLAGS during aclocal
14607         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
14608         can add additional -I dir for third-party .m4 files.
14609
14610 2010-09-30  Eric Blake  <eblake@redhat.com>
14611
14612         bootstrap: use glibtoolize on MacOS
14613         * build-aux/bootstrap (check_versions): Convert libtool into
14614         libtoolize.
14615         (tool search): Move libtool check earlier, and look for
14616         glibtoolize for MacOS.
14617         (gnulib_tool_options): Auto-add --libtool when appropriate.
14618         Reported by Justin Clift.
14619
14620         poll: fix typo that broke test on MacOS
14621         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
14622         Reported by Justin Clift.
14623
14624         getdate: rename to get_date
14625         Note: getdate.h is not renamed, to minimize client impact.
14626         * modules/getdate: Mark obsolete.  Move old contents...
14627         * modules/get_date: ...to new module name.
14628         * modules/getdate-tests: Move...
14629         * modules/get_date-tests: ...here.
14630         * m4/getdate.m4: Move...
14631         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
14632         * lib/getdate.y: Move...
14633         * lib/get_date.y: ...here.
14634         * tests/test-getdate.c: Move...
14635         * tests/test-get_date.c: ...here.
14636         * doc/posix-functions/getdate.texi (getdate): Update name.
14637         * NEWS: Mention the change.
14638
14639 2010-09-29  Bruno Haible  <bruno@clisp.org>
14640
14641         Separate the module 'waitpid' from the module 'sys_wait'.
14642         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
14643         present.
14644         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
14645         gl_MODULE_INDICATOR_FOR_TESTS.
14646         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
14647         * modules/sys_wait (Depends-on): Remove waitpid.
14648         (Makefile.am): Substitute GNULIB_WAITPID.
14649         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
14650         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
14651         signature only if the 'waitpid' module is present.
14652         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
14653         * NEWS: Mention the change.
14654         * modules/grantpt (Depends-on): Add waitpid.
14655         * modules/wait-process (Depends-on): Likewise.
14656
14657 2010-09-29  Bruno Haible  <bruno@clisp.org>
14658
14659         More tests for module 'sys_wait'.
14660         * modules/sys_wait-c++-tests: New file.
14661         * tests/test-sys_wait-c++.cc: New file.
14662         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
14663         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
14664
14665 2010-09-29  Bruno Haible  <bruno@clisp.org>
14666
14667         New module 'waitpid'.
14668         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
14669         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
14670         Don't include <process.h>.
14671         (waitpid): Declare only, using modern idiom.
14672         * m4/waitpid.m4: New file.
14673         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
14674         * modules/waitpid: New file.
14675         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
14676         (Makefile.am): Update.
14677         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
14678
14679 2010-09-28  Bruno Haible  <bruno@clisp.org>
14680
14681         poll: Assume ANSI C.
14682         * lib/poll.c (poll): Use an ANSI C declaration.
14683
14684 2010-09-28  Bruno Haible  <bruno@clisp.org>
14685
14686         poll-h: Create poll.h on all platforms.
14687         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
14688         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
14689         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
14690         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
14691         (gl_REPLACE_POLL_H): Don't set POLL_H.
14692         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
14693         * modules/poll-h (Depends-on): Add include_next.
14694         (Makefile.am): Create poll.h unconditionally. Substitute also
14695         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
14696
14697 2010-09-28  Bruno Haible  <bruno@clisp.org>
14698
14699         Tests for module 'poll-h'.
14700         * modules/poll-h-c++-tests: New file.
14701         * tests/test-poll-h-c++.cc: New file.
14702
14703         Tests for module 'poll-h'.
14704         * modules/poll-h-tests: New file.
14705         * tests/test-poll-h.c: New file.
14706
14707 2010-09-28  Bruno Haible  <bruno@clisp.org>
14708
14709         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
14710         * modules/poll-h (Depends-on): Add 'extensions'.
14711
14712 2010-09-28  Bruno Haible  <bruno@clisp.org>
14713
14714         New module 'poll-h'.
14715         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
14716         (poll): Use modern idiom.
14717         * modules/poll-h: New file.
14718         * modules/poll (Files): Remove lib/poll.in.h.
14719         (Depends-on): Add poll-h.
14720         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
14721         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
14722         * m4/poll_h.m4: New file.
14723         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
14724         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
14725         and invoke gl_REPLACE_POLL_H.
14726         * lib/poll.c: Use common idiom.
14727         * tests/test-poll.c: Likewise.
14728         * doc/posix-headers/poll.texi: Mention the poll-h module.
14729         Suggested by Eric Blake.
14730
14731 2010-09-26  Bruno Haible  <bruno@clisp.org>
14732
14733         sys_wait: Implement WSTOPSIG.
14734         * lib/sys_wait.in.h (WSTOPSIG): New macro.
14735         Reported by Simon Josefsson.
14736
14737 2010-09-26  Simon Josefsson  <simon@josefsson.org>
14738
14739         stdlib, sys_wait: Avoid compilation error on mingw.
14740         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
14741
14742 2010-09-26  Bruno Haible  <bruno@clisp.org>
14743
14744         stdlib tests: Avoid code duplication.
14745         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
14746         * modules/sys_wait-tests (Files): Likewise.
14747         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
14748         * tests/test-stdlib.c: Include test-sys_wait.h.
14749         (main): Invoke test_sys_wait_macros.
14750         * tests/test-sys_wait.c: Include test-sys_wait.h.
14751         (main): Invoke test_sys_wait_macros.
14752
14753 2010-09-25  Simon Josefsson  <simon@josefsson.org>
14754
14755         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
14756         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
14757         sure Windows sockets are working before calling getaddrinfo.
14758         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
14759         * doc/gnulib.texi (Windows sockets): Fix typo.
14760
14761 2010-09-25  Bruno Haible  <bruno@clisp.org>
14762
14763         Tests for module 'regex-quote'.
14764         * modules/regex-quote-tests: New file.
14765         * tests/test-regex-quote.c: New file.
14766
14767         New module 'regex-quote'.
14768         * lib/regex-quote.h: New file.
14769         * lib/regex-quote.c: New file.
14770         * modules/regex-quote: New file.
14771         Suggested by Reuben Thomas <rrt@sc3d.org>.
14772
14773 2010-09-24  Bruno Haible  <bruno@clisp.org>
14774
14775         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
14776         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
14777
14778 2010-09-23  Bruno Haible  <bruno@clisp.org>
14779
14780         setenv: Relax license.
14781         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
14782         Blake.
14783         Requested by Eric Blake.
14784
14785 2010-09-22  Bruno Haible  <bruno@clisp.org>
14786
14787         termios: Relax license.
14788         * modules/termios (License): Change to LGPLv2+.
14789         Requested by Eric Blake.
14790
14791 2010-09-22  Bruno Haible  <bruno@clisp.org>
14792
14793         threadlib: Allow the package to change the default to 'no'.
14794         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
14795         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
14796         Reported by Paul Eggert.
14797
14798 2010-09-22  Pádraig Brady  <P@draigbrady.com>
14799             Bruno Haible  <bruno@clisp.org>
14800
14801         Fix endless loop in mbmemcasecoll.
14802         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
14803         byte.
14804         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
14805
14806 2010-09-22  Bruno Haible  <bruno@clisp.org>
14807
14808         Tests for module 'memcoll'.
14809         * modules/memcoll-tests: New file.
14810         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
14811
14812         memcoll, xmemcoll: Clarify size vs. length.
14813         * modules/memcoll.c (memcoll0): Clarify specification.
14814         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
14815         passed to collate_error.
14816
14817 2010-09-22  Bruno Haible  <bruno@clisp.org>
14818
14819         Tests for module 'memcasecmp'.
14820         * modules/memcasecmp-tests: New file.
14821         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
14822
14823 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
14824
14825         * lib/pthread.in.h: Add split double-inclusion guard, and include
14826         system <pthread.h> if there is one.  Use @@-style as in other
14827         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
14828         pthread.h doesn't.
14829         (pthread_mutexattr_destroy, pthread_mutexattr_init):
14830         (pthread_mutexattr_settype, pthread_mutex_trylock):
14831         New static inline functions, if there's no system <pthread.h>.
14832         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
14833         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
14834         Approximate with mutexes if the system lacks spinlocks, as in
14835         MacOS.
14836         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
14837         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
14838         @@-style.  Check for spinlocks separately.
14839         (gl_PTHREAD_DEFAULTS): New macro.
14840         * modules/pthread: Redo to use a more typical style for in.h files.
14841
14842 2010-09-21  Eric Blake  <eblake@redhat.com>
14843
14844         net_if: enhance tests
14845         * tests/test-net_if.c (main): Move signature checks earlier.
14846         Print failures to stderr.
14847         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
14848         Document the bug that we do not yet fix.
14849
14850 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
14851
14852         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
14853         about gnulib, not GSS.
14854
14855 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
14856
14857         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
14858         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
14859         for Emacs.
14860         * build-aux/pmccabe2html: Make Makefile.am example code more
14861         cut-and-paste friendly.
14862
14863 2010-09-21  Simon Josefsson  <simon@josefsson.org>
14864
14865         * tests/test-net_if.c: New file.
14866         * modules/net_if-tests: New file.
14867
14868 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
14869
14870         pthread: add pthread_spin_destroy
14871         * lib/pthread.in.h (pthread_spin_destroy): New function.
14872
14873 2010-09-19  Bruno Haible  <bruno@clisp.org>
14874
14875         gnulib-tool: Fix --help output.
14876         * gnulib-tool (func_usage): Fix help message.
14877         Reported by Reuben Thomas <rrt@sc3d.org>.
14878
14879 2010-09-18  Jim Meyering  <meyering@redhat.com>
14880
14881         maint.mk: avoid unexpanded \n in two diagnostics
14882         * top/maint.mk (sc_prohibit_always_true_header_tests):
14883         Don't use a literal \n in a halt=... assignment.  It would not be
14884         expanded, and the two \n bytes would appear in the diagnostic output
14885         rather than the desired newline.  Use halt=$$(printf ... instead.
14886         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
14887
14888 2010-09-18  Bruno Haible  <bruno@clisp.org>
14889
14890         netinet_in: Doc tweak.
14891         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
14892         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14893
14894 2010-09-18  Jim Meyering  <meyering@redhat.com>
14895
14896         init.sh: correct an outdated comment
14897         * tests/init.sh (create_exe_shims_):  s/function/alias/
14898
14899         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
14900         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
14901         a file named "*.exe" is removed between the glob expansion and the
14902         processing of that oddly named file.
14903
14904 2010-09-17  Eric Blake  <eblake@redhat.com>
14905
14906         mirbsd: add some more support
14907         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
14908         in BSD family.
14909         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
14910         devices as OpenBSD.
14911         * m4/host-os.m4 (mirbsd): Add MirBSD.
14912
14913         tests: fix unportable assumption on sys/wait.h
14914         * tests/test-sys_wait.c (main): Relax test.
14915         * tests/test-stdlib.c (main): Likewise.
14916
14917         init.sh: accomodate directory with no .exes
14918         * tests/init.sh: Accomodate directory containing only scripts.
14919
14920         tests: avoid compiler warning
14921         * tests/test-stdlib.c (main): Use the variable.
14922
14923         fdutimens, fdutimensat: update signature, again
14924         * lib/utimens.h (gl_futimens): Delete, and move signature...
14925         (fdutimens): ...here.
14926         (fdutimensat): Rearrange signature.
14927         (lutimensat): Rename variable for clarity.
14928         * lib/fdutimensat.c (fdutimensat): Update signature.
14929         * lib/utimens.c (fdutimens): Likewise.
14930         (gl_futimens): Delete.
14931         (utimens, lutimens): Update callers.
14932         * lib/futimens.c (futimens): Likewise.
14933         * tests/test-fdutimensat.c: Likewise.
14934         * tests/test-utimens.c: Likewise.
14935         * tests/test-futimens.h: Update comment.
14936         * NEWS: Mention this.
14937         Suggested by Paul Eggert.
14938
14939 2010-09-17  Bruno Haible  <bruno@clisp.org>
14940
14941         Take over the maintenance of some older macros from Autoconf.
14942         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
14943         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
14944         GNU Autoconf.
14945         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
14946         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
14947
14948 2010-09-17  Eric Blake  <eblake@redhat.com>
14949
14950         fdutimensat: drop atflag validation
14951         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
14952         with valid fd, to close a race scenario where futimens is
14953         unsupported and FILE was replaced by a symlink.
14954         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
14955         accordingly.
14956         Suggested by Paul Eggert.
14957
14958 2010-09-16  Bruno Haible  <bruno@clisp.org>
14959
14960         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
14961         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
14962
14963 2010-09-16  Bruno Haible  <bruno@clisp.org>
14964
14965         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
14966         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
14967         login_tty exists.
14968         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14969
14970 2010-09-16  Bruno Haible  <bruno@clisp.org>
14971
14972         login_tty: Make the replacement code work on BSD systems.
14973         * lib/login_tty.c: Include <sys/ioctl.h>.
14974         (login_tty): Use ioctl TIOCSCTTY when available.
14975         * modules/login_tty (Depends-on): Add sys_ioctl.
14976         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14977
14978 2010-09-16  Bruno Haible  <bruno@clisp.org>
14979
14980         login_tty: Stricter unit test.
14981         * modules/login_tty-tests (Depends-on): Add tcgetsid.
14982         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
14983         and tcgetsid() after login_tty.
14984         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14985
14986 2010-09-16  Bruno Haible  <bruno@clisp.org>
14987
14988         New module 'tcgetsid'.
14989         * lib/tcgetsid.c: New file.
14990         * m4/tcgetsid.m4: New file.
14991         * modules/tcgetsid: New file.
14992         * modules/termios (Depends-on): Add c++defs, warn-on-use.
14993         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
14994         GNULIB_TCGETSID, HAVE_TCGETSID.
14995         * lib/termios.in.h: Include <sys/types.h>.
14996         (tcgetsid): New declaration.
14997         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
14998         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
14999         * doc/posix-functions/tcgetsid.texi: Mention the new module.
15000         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
15001
15002 2010-09-16  Bruno Haible  <bruno@clisp.org>
15003
15004         Tests for module 'termios'.
15005         * modules/termios-c++-tests: New file.
15006         * modules/termios-tests: New file.
15007         * tests/test-termios-c++.cc: New file.
15008         * tests/test-termios.c: New file.
15009
15010         New module 'termios'.
15011         * modules/termios: New file.
15012         * lib/termios.in.h: New file.
15013         * m4/termios_h.m4: New file.
15014         * doc/posix-headers/termios.texi: Mention the new module.
15015
15016 2010-09-16  Eric Blake  <eblake@redhat.com>
15017
15018         fdutimensat: add an atflag parameter
15019         * lib/fdutimensat.c (fdutimensat): Add new parameter.
15020         * lib/utimens.h (fdutimensat): Update prototype.
15021         * tests/test-fdutimensat.c: Adjust test to match.
15022         * NEWS: Document the change.
15023         Suggested by Paul Eggert.
15024
15025 2010-09-16  Bruno Haible  <bruno@clisp.org>
15026
15027         Fix typos in comments.
15028         * lib/striconveh.h: Fix typo in comment.
15029         * lib/login_tty.c (login_tty): Likewise.
15030
15031 2010-09-15  Bruno Haible  <bruno@clisp.org>
15032
15033         stdlib: clarify MirBSD WEXITSTATUS bug
15034         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
15035         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
15036
15037 2010-09-15  Eric Blake  <eblake@redhat.com>
15038
15039         stdlib: work around MirBSD WEXITSTATUS bug
15040         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
15041         * modules/stdlib (Depends-on): Add sys_wait.
15042         * tests/test-sys_wait.c (main): Enhance test.
15043         * tests/test-stdlib.c (main): Likewise.
15044         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
15045
15046         docs: mention MacOS issue with WEXITSTATUS(constant)
15047         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
15048         issue.
15049         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
15050
15051         strnlen: add tests
15052         * modules/strnlen-tests: New file.
15053         * tests/test-strnlen.c: Likewise.
15054
15055 2010-09-14  Bruno Haible  <bruno@clisp.org>
15056
15057         unistr/base: Avoid link errors when module 'libunistring' is also used.
15058         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
15059         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
15060         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
15061         Declare also when HAVE_LIBUNISTRING is set.
15062         Reported by Pádraig Brady <P@draigbrady.com>.
15063
15064 2010-09-14  Eric Blake  <eblake@redhat.com>
15065
15066         test-rawmemchr: make more robust
15067         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
15068         (Depends-on, configure.ac): Add needed prerequisites to use it.
15069         * modules/memchr-tests (Files, Depends-on, configure.ac):
15070         Likewise, to avoid implicit reliance on memchr module prereqs.
15071         * tests/test-memchr.c (main): Ensure proper masking.
15072         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
15073         reads.
15074
15075         memchr: detect glibc Alpha bug
15076         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
15077         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
15078         Alpha.
15079         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
15080         * tests/test-memchr.c (main): Enhance test.
15081         Reported by Nelson H. F. Beebe.
15082
15083 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
15084
15085         fts, getcwd, glob: audit for dirfd returning -1
15086         * lib/fts.c (opendir): Remove #define; no longer used.
15087         (opendirat): New arg PDIR_FD.  All callers changed.
15088         (fts_build, _opendir2): Use new opendirat to avoid the need for
15089         dirfd, or for checking whether dirfd returns a negative value.
15090         Don't use opendir; always use openat followed by fdopendir.
15091         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
15092         it.
15093         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
15094         returns -1 here.
15095         * modules/fts (Depends-on): Remove dirfd.
15096         * modules/getcwd (Depends-on): Likewise.
15097
15098 2010-09-13  Eric Blake  <eblake@redhat.com>
15099
15100         float: fix broken MirBSD header
15101         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
15102         * doc/posix-headers/float.texi (float.h): Document it.
15103
15104 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
15105
15106         fts: use O_NOFOLLOW to avoid race condition when opening a directory
15107         * lib/fts.c (opendirat): New arg extra_flags.
15108         (__opendir2): Use it to avoid following symlinks when opening
15109         a directory, if symlinks are not supposed to be followed.  See
15110         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
15111
15112         fdopendir: preserve argument fd before returning
15113         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
15114         (fdopendir_with_dup, fd_clone_opendir): New static functions.
15115         (fdopendir): Use them, arranging for FD to be open to the same
15116         directory that it was when it started.  (It might be temporarily
15117         closed while fdopendir is running, so this not thread- or
15118         signal-safe.)  Be careful to do the right thing even when file
15119         descriptors are scarce and dup fails with errno == EMFILE.  See
15120         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
15121
15122 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
15123
15124         regex: Pass the system regex if its only problem is 32-bit regoff_t.
15125         * NEWS: Document change.
15126         * m4/regex.m4: Disable test for regoff_t size.
15127
15128 2010-09-13  Jim Meyering  <meyering@redhat.com>
15129
15130         fts: don't operate on an invalid file descriptor after failed dup
15131         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
15132         negative file descriptor.
15133
15134 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
15135
15136         savedir: add streamsavedir, deprecate fdsavedir
15137         * NEWS: Mention deprecation of fdsavedir.
15138         * lib/savedir.c (streamsavedir): New extern function, whose name
15139         ends in "savedir" to be consistent with the others.  This differs
15140         from savedirstream in that it doesn't close its argument.  The
15141         next version of GNU tar will use this instead of fdsavedir, to
15142         avoid some race conditions and conserve file descriptors.
15143         (savedirstream): Reimplement as a wrapper around streamsavedir.
15144         (fdsavedir): Add a comment deprecating this function.  As far as
15145         I know, only GNU tar used it, and GNU tar doesn't need it any more.
15146         * lib/savedir.h (streamsavedir): New decl.
15147         (fdsavedir): Add a comment deprecating this.
15148
15149 2010-09-10  Bruno Haible  <bruno@clisp.org>
15150
15151         langinfo: Fix last commit.
15152         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
15153         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
15154         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15155
15156 2010-09-10  Bruno Haible  <bruno@clisp.org>
15157
15158         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
15159         * lib/progreloc.c (O_EXEC): Define fallback.
15160
15161 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
15162
15163         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
15164         * NEWS: Document recent changes to fcntl-h.
15165         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
15166         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
15167         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
15168         Similarly for O_SEARCH; this last was already true, but not documented.
15169         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
15170         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
15171         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
15172         Likewise.
15173         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
15174         is zero, not whether it is defined.
15175         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
15176         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
15177         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
15178
15179 2010-09-10  Bruno Haible  <bruno@clisp.org>
15180
15181         langinfo, nl_langinfo: Fix for IRIX 5.3.
15182         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
15183         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
15184         HAVE_LANGINFO_YESEXPR.
15185         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
15186         HAVE_LANGINFO_YESEXPR.
15187         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
15188         HAVE_LANGINFO_T_FMT_AMPM is 0.
15189         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
15190         HAVE_LANGINFO_YESEXPR is 0.
15191         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
15192         NOEXPR.
15193         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
15194         * doc/posix-functions/nl_langinfo.texi: Likewise.
15195         Reported by Eric Blake.
15196
15197 2010-09-10  Bruno Haible  <bruno@clisp.org>
15198
15199         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
15200         * doc/glibc-functions/login_tty.texi: Mention the include file problem
15201         on FreeBSD 8.0 and OpenBSD 4.6.
15202         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
15203         * m4/pty_h.m4 (gl_PTY_H): Likewise.
15204         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
15205         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
15206         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
15207         ac_includes_default.
15208         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
15209
15210 2010-09-09  Eric Blake  <eblake@redhat.com>
15211
15212         strsignal: work around NetBSD bug
15213         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
15214         * lib/string.in.h (includes): Likewise.
15215         * doc/posix-functions/strsignal.texi (strsignal): Document the
15216         bug.
15217         Reported by Nelson H. F. Beebe.
15218
15219         gnulib-tool: work with NetBSD /bin/sh
15220         * gnulib-tool (func_cache_var, func_cache_lookup_module)
15221         (func_get_description, func_get_comment, func_get_status)
15222         (func_get_notice, func_get_applicability, func_get_filelist)
15223         (func_get_dependencies, func_get_autoconf_early_snippet)
15224         (func_get_autoconf_snippet, func_get_automake_snippet)
15225         (func_get_include_directive, func_get_link_directive)
15226         (func_get_license, func_get_maintainer, func_import): Avoid
15227         shell syntax errors from parsing syntax extensions.
15228
15229 2010-09-09  Bruno Haible  <bruno@clisp.org>
15230
15231         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
15232         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
15233         a reliable way to determine whether the 'alias' command works.
15234
15235 2010-09-08  Jim Meyering  <meyering@redhat.com>
15236
15237         init.sh: penalize a set-x-impaired shell; don't disqualify it
15238         * tests/init.sh: Too many shells corrupt application stderr when
15239         you set -x, so we can't afford to disqualify them, since at least
15240         on Irix-6.5, that would disqualify all bourne shells.
15241         Instead, use a two-pass approach.
15242         On the first pass, try to find a shell that meets the stricter
15243         condition that set -x does not corrupt stderr.
15244         If no shell meets the stricter condition, retest each candidate
15245         shell, but without that extra condition.  Finally, when
15246         VERBOSE=yes is requested and set -x might cause trouble, simply
15247         issue a warning and refrain from enabling debug output.
15248
15249 2010-09-08  Eric Blake  <eblake@redhat.com>
15250
15251         unsetenv: fix OpenBSD bug
15252         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
15253         * doc/posix-functions/unsetenv.texi (unsetenv): Update
15254         documentation.
15255         Reported by Jim Meyering.
15256
15257         strtod: work around IRIX 6.5 bug
15258         * lib/strtod.c (strtod): Reparse number on shorter string if
15259         exponent parse was invalid.
15260         * tests/test-strtod.c (main): Add check for "0x1p 2".
15261         Reported by Tom G. Christensen.
15262
15263         getopt: optimize previous patch
15264         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
15265         empty variable.  Speed up awk script.
15266         Reported by Paolo Bonzini.
15267
15268 2010-09-08  Jim Meyering  <meyering@redhat.com>
15269
15270         test.sh: disqualify shells for which set -x corrupts stderr
15271         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
15272         and OpenBSD 4.7.  They make it so with "set -x", environment settings
15273         appear in stderr output.  For example, this command:
15274             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
15275         prints "P=1" on those two systems:
15276
15277 2010-09-08  Bruno Haible  <bruno@clisp.org>
15278
15279         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
15280         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
15281         commands, because some shells ignore redirections when there is an
15282         error in the command lookup.
15283         Reported by Eric Blake.
15284
15285 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
15286
15287         * lib/regex.h: Fix a mention of `regex_compile' (should be
15288         `re_compile_pattern').
15289         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
15290         (re_set_registers): Correct name of parameter in comment.
15291
15292         * doc/regex.texi: Add documentation for missing syntax flags.
15293         Remove commented-out documentation of defunct syntax option
15294         RE_NO_EMPTY_ALTS.
15295         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
15296         Add documentation of re_set_registers.
15297         Document trick to re-use a pattern buffer by setting fastmap manually.
15298         Update documentation of struct re_pattern_buffer per public members.
15299         Uncomment documentation of equivalence class operators and
15300         collating symbol operators, since they are now implemented,
15301         Explain leftmost-longest matching in relation to alternatives.
15302         Tidy documentation of substring matching.
15303         Remove POSIX documentation, which is done better in
15304         glibc, and refer the reader there. Keep BSD API documentation, as
15305         that is not readily available elsewhere.
15306
15307 2010-09-07  Eric Blake  <eblake@redhat.com>
15308
15309         getopt: handle POSIXLY_CORRECT set but not exported
15310         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
15311         export state of POSIXLY_CORRECT, due to bash set -o posix.
15312         Reported by Dustin J. Mitchell.
15313
15314 2010-09-05  Bruno Haible  <bruno@clisp.org>
15315
15316         gnulib-tool: Highlight the changed options.
15317         * gnulib-tool (func_usage): Display the --import, --add-import,
15318         --remove-import explanations in bold font.
15319
15320 2010-09-06  Karl Berry  <karl@gnu.org>
15321
15322         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
15323
15324 2010-09-05  Bruno Haible  <bruno@clisp.org>
15325
15326         uniwidth/width: Update comment.
15327         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
15328         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
15329
15330 2010-09-05  Bruno Haible  <bruno@clisp.org>
15331
15332         isinf, isnan: Relax license.
15333         * modules/isinf (License): Change from GPL to LGPL, with consent from
15334         Ben Pfaff.
15335         * modules/isnan (License): Likewise.
15336         Requested by Ludovic Courtès.
15337
15338 2010-09-04  Bruno Haible  <bruno@clisp.org>
15339
15340         gnulib-tool: Help migration from --import to --add-import or --update.
15341         * gnulib-tool: Emit a verbose error message when --import is used
15342         without any module name.
15343
15344 2010-09-04  Bruno Haible  <bruno@clisp.org>
15345
15346         Update doc about gnulib-tool.
15347         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
15348         'gnulib-tool --update' in more detail.
15349         Reported by Eric Blake.
15350
15351 2010-09-04  Bruno Haible  <bruno@clisp.org>
15352
15353         gnulib-tool: Change --import. New options --add/remove-import.
15354         * gnulib-tool: New options --add-import, --remove-import.
15355         (func_usage): Document them.
15356         (have_associative): Define always.
15357         (func_import): In import mode, don't merge the specified settings with
15358         the cached settings. Implement remove-import mode.
15359         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
15360         Explain when to use them versus --import.
15361         (Simple update): Use --add-import instead of --import.
15362         * NEWS: Mention the change.
15363
15364 2010-09-04  Bruno Haible  <bruno@clisp.org>
15365
15366         * doc/gnulib-tool.texi (Initial import): Update paragraph about
15367         separate gnulib.mk.
15368
15369 2010-09-04  Bruno Haible  <bruno@clisp.org>
15370
15371         gnulib-tool: Don't talk about CVS any more.
15372         * gnulib-tool (func_usage, func_import): Write "version control"
15373         instead of CVS.
15374
15375 2010-09-04  Jim Meyering  <meyering@redhat.com>
15376
15377         maint.mk: avoid obscure sc_copyright_check failure in coreutils
15378         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
15379         false positives (whose names may be ill-chosen) when searching
15380         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
15381         would cause a false-positive.
15382
15383         avoid coreutils "make distcheck" failure
15384         Coreutils tests with an absolute build directory name that contains
15385         a space.  Not quoting this directory name caused a failure.
15386         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
15387         * tests/test-vc-list-files-cvs.sh: Likewise.
15388
15389 2010-09-04  Bruno Haible  <bruno@clisp.org>
15390
15391         gnulib-tool: Avoid error when run in a package without Makefile.am.
15392         * gnulib-tool: When collecting the m4dirs in a package that does not
15393         have a Makefile.am, eliminate those directories that contain no
15394         gnulib-cache.m4. Fix expression that counts these directories.
15395
15396 2010-09-04  Bruno Haible  <bruno@clisp.org>
15397
15398         update-copyright test: Improve output when perl is missing or too old.
15399         * tests/test-update-copyright.sh: Move test of Perl version down after
15400         the test whether Perl exists. Provide an explanation relating Perl's
15401         error message to Automake's SKIP: message.
15402
15403 2010-09-04  Bruno Haible  <bruno@clisp.org>
15404
15405         Don't augment PATH in TESTS_ENVIRONMENT.
15406         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
15407         set abs_aux_dir instead of augmenting PATH.
15408         * modules/vc-list-files-tests (Makefile.am): Likewise.
15409         * tests/test-update-copyright.sh: Augment PATH here.
15410         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
15411         path_prepend_.
15412         * tests/test-vc-list-files-git.sh: Likewise.
15413
15414 2010-09-04  Jim Meyering  <meyering@redhat.com>
15415
15416         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
15417         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
15418
15419 2010-09-04  Bruno Haible  <bruno@clisp.org>
15420
15421         strdup: Fix compilation error in C++ mode.
15422         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
15423         the macro.
15424
15425 2010-09-04  Bruno Haible  <bruno@clisp.org>
15426
15427         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
15428         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
15429         macro into a function.
15430         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15431
15432 2010-09-04  Bruno Haible  <bruno@clisp.org>
15433
15434         Set PATH_SEPARATOR the same way autoconf does.
15435         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
15436         the value of PATH_SEPARATOR the same way autoconf-generated configure
15437         scripts do.
15438         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
15439         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
15440
15441 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
15442
15443         Set PATH_SEPARATOR the same way autoconf does.
15444         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
15445         the same way autoconf-generated configure scripts do.
15446         * posix-modules: Likewise.
15447
15448 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
15449
15450         hash: fix safe_hasher const typo
15451         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
15452         const; otherwise, there is a type error later.
15453
15454 2010-09-02  Jim Meyering  <meyering@redhat.com>
15455
15456         test-update-copyright.sh: require perl 5.8.0
15457         * tests/test-update-copyright.sh: Require 5.8.0,
15458         which Tom G. Christensen has confirmed is adequate,
15459         while 5.6.1 is not.
15460
15461 2010-09-02  Eric Blake  <eblake@redhat.com>
15462
15463         tests: init.sh improvements for re-exec'ing with zsh
15464         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
15465         -vx through shell re-exec.
15466         Reported by Tom G. Christensen.
15467
15468         wctype: fix typo in previous commit
15469         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
15470         Reported by Ludovic Courtès.
15471
15472 2010-09-02  Jim Meyering  <meyering@redhat.com>
15473
15474         test-update-copyright.sh: skip test if Perl is too old
15475         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
15476         Reported by Tom G. Christensen.
15477
15478 2010-09-02  Bruno Haible  <bruno@clisp.org>
15479
15480         wctype: Avoid compilation error on IRIX 6.5.30.
15481         * lib/wctype.in.h (iswblank): Declare with a replacement if
15482         REPLACE_ISWBLANK is set.
15483         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
15484         declared. Set REPLACE_ISWBLANK.
15485         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
15486         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
15487         * doc/posix-headers/wctype.texi: Likewise.
15488         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15489
15490 2010-09-01  Bruno Haible  <bruno@clisp.org>
15491
15492         New module 'socketlib'.
15493         * modules/socketlib: New file.
15494         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
15495         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
15496         * modules/sockets (Depends-on): Add socketlib.
15497         Suggested by Sam Steingold <sds@gnu.org>.
15498
15499 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
15500
15501         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
15502
15503         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
15504         when one needs search access to a directory but not read access.
15505         On systems where it is available, it works in some cases where
15506         O_RDONLY does not, namely on directories that are searchable but
15507         not readable, and which need only to be searchable.  If O_SEARCH
15508         is not available, fall back to the traditional method of using
15509         O_RDONLY.
15510
15511         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
15512         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
15513         when opening a directory that needs only to be searchable.
15514         * lib/chdir-safer.c (chdir_no_follow): Likewise.
15515         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
15516         * lib/openat-proc.c (openat_proc_name): Likewise.
15517         * lib/openat.c (openat_needs_fchdir): Likewise.
15518         * lib/save-cwd.c (save_cwd): Likewise.
15519         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
15520
15521 2010-08-28  Bruno Haible  <bruno@clisp.org>
15522
15523         New module 'host-cpu-c-abi'.
15524         * modules/host-cpu-c-abi: New file.
15525         * m4/host-cpu-c-abi.m4: New file, based on part of
15526         clisp/src/m4/general.m4.
15527         Requested by Sam Steingold <sds@gnu.org>.
15528
15529 2010-08-31  Eric Blake  <eblake@redhat.com>
15530         and Jim Meyering  <meyering@redhat.com>
15531
15532         hash: factor, and guard against misbehaving hasher function
15533         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
15534         of table->hasher's return value.  Also protect against a hash value
15535         so large that adding it to table->bucket results in a NULL pointer.
15536         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
15537         Use it in place of open-coded check-and-abort.
15538
15539 2010-08-30  Bruno Haible  <bruno@clisp.org>
15540
15541         hash: silence spurious clang warning
15542         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
15543         Reported by Eric Blake.
15544
15545 2010-08-30  Eric Blake  <eblake@redhat.com>
15546
15547         strstr, memmem, strcasestr: avoid leaked shell message
15548         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
15549         FreeBSD.
15550         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
15551         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
15552
15553         tests: silence clang warning
15554         * tests/test-malloca.c (do_allocation): Avoid dead store.
15555
15556 2010-08-29  Bruno Haible  <bruno@clisp.org>
15557
15558         gettext: Fix recent mistake.
15559         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
15560
15561 2010-08-29  Bruno Haible  <bruno@clisp.org>
15562
15563         selinux-h: Offer a --without-selinux option.
15564         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
15565         --without-selinux was specified, skip all tests and define
15566         HAVE_SELINUX_SELINUX_H to 0.
15567         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
15568         set LIB_SELINUX to empty.
15569         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
15570         gl_LIBSELINUX. If --without-selinux was specified, replace
15571         selinux/context.h.
15572         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
15573
15574 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15575             Bruno Haible  <bruno@clisp.org>
15576
15577         Make the module 'realloc-gnu' work again on AIX and OSF/1.
15578         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
15579         of HAVE_REALLOC.
15580         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
15581         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
15582         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
15583         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
15584
15585 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15586             Bruno Haible  <bruno@clisp.org>
15587
15588         Make the module 'calloc-gnu' work again on AIX and OSF/1.
15589         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
15590         HAVE_CALLOC.
15591         * lib/xmalloc.c: Update accordingly.
15592         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
15593         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
15594         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
15595
15596 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15597             Bruno Haible  <bruno@clisp.org>
15598
15599         Make the module 'malloc-gnu' work again on AIX and OSF/1.
15600         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
15601         HAVE_MALLOC.
15602         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
15603         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
15604         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
15605
15606 2010-08-29  Bruno Haible  <bruno@clisp.org>
15607
15608         Update modules list.
15609         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
15610         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
15611         (String handling <string.h>): Add astrxfrm.
15612         (File system functions): Add readlinkat.
15613
15614 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15615
15616         Tests for module 'realloc-gnu'.
15617         * modules/realloc-gnu-tests: New file.
15618         * tests/test-realloc-gnu.c: New file.
15619
15620         Tests for module 'calloc-gnu'.
15621         * modules/calloc-gnu-tests: New file.
15622         * tests/test-calloc-gnu.c: New file.
15623
15624         Tests for module 'malloc-gnu'.
15625         * modules/malloc-gnu-tests: New file.
15626         * tests/test-malloc-gnu.c: New file.
15627
15628 2010-08-28  Bruno Haible  <bruno@clisp.org>
15629
15630         Rename module 'realloc' -> 'realloc-gnu'.
15631         * modules/realloc-gnu: New file, copied from modules/realloc.
15632         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
15633         obsolete.
15634         * modules/mgetgroups (Depends-on): Update.
15635         * doc/posix-functions/realloc.texi: Update.
15636         * NEWS: Mention the change.
15637
15638         Rename module 'calloc' -> 'calloc-gnu'.
15639         * modules/calloc-gnu: New file, copied from modules/calloc.
15640         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
15641         obsolete.
15642         * doc/posix-functions/calloc.texi: Update.
15643         * NEWS: Mention the change.
15644
15645         Rename module 'malloc' -> 'malloc-gnu'.
15646         * modules/malloc-gnu: New file, copied from modules/malloc.
15647         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
15648         obsolete.
15649         * modules/argp (Depends-on): Update.
15650         * modules/regex (Depends-on): Update.
15651         * doc/posix-functions/malloc.texi: Update.
15652         * NEWS: Mention the change.
15653
15654 2010-08-28  Eric Blake  <eblake@redhat.com>
15655
15656         pread, pwrite: add missing dependency
15657         * modules/pread (Depends-on): Add extensions.
15658         * modules/pwrite (Depends-on): Likewise.
15659
15660 2010-08-28  Bruno Haible  <bruno@clisp.org>
15661
15662         unistr/u*-strchr: Fix tests dependencies.
15663         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
15664         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
15665         Reported by Ian Beckwith <ianb@erislabs.net>.
15666
15667 2010-08-28  Bruno Haible  <bruno@clisp.org>
15668
15669         read-file: Don't occupy too much unused memory.
15670         * lib/read-file.c (fread_file): Shrink the buffer at the end.
15671
15672 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
15673             Eric Blake  <eblake@redhat.com>
15674             Bruno Haible  <bruno@clisp.org>
15675
15676         read-file: Avoid memory reallocations with regular files.
15677         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
15678         (fread_file): With regular files, use the remaining length as the
15679         initial buffer size.  Check against overflow.
15680         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
15681         sys_stat.
15682
15683 2010-08-28  Bruno Haible  <bruno@clisp.org>
15684
15685         ftello: Relax license.
15686         * modules/ftello (License): Relax to LGPLv2+.
15687         Reported by Eric Blake.
15688
15689 2010-08-28  Bruno Haible  <bruno@clisp.org>
15690
15691         Avoid relocwrapper link errors due to gnulib replacement functions.
15692         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
15693         function.
15694         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15695
15696 2010-08-28  Bruno Haible  <bruno@clisp.org>
15697
15698         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
15699         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
15700         defined.
15701         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
15702         Suggested by Eric Blake.
15703
15704 2010-08-28  Bruno Haible  <bruno@clisp.org>
15705
15706         sys_socket, netdb: Ensure socklen_t gets defined.
15707         * modules/sys_socket (Depends-on): Add socklen.
15708         * modules/netdb (Depends-on): Likewise.
15709         * modules/getaddrinfo (Depends-on): Remove socklen.
15710         * modules/getsockopt (Depends-on): Likewise.
15711         * modules/setsockopt (Depends-on): Likewise.
15712         * tests/test-sys_socket.c: Check that socklen_t is defined.
15713         * tests/test-netdb.c: Likewise.
15714         * m4/socklen.m4: Update comments.
15715         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15716
15717 2010-08-27  Eric Blake  <eblake@redhat.com>
15718
15719         login_tty: add missing dependency
15720         * modules/login_tty (Depends-on): Add pty.
15721
15722 2010-08-26  Eric Blake  <eblake@redhat.com>
15723
15724         lib-symbol-versions: fix m4 quoting
15725         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
15726         format for AC_LINK_IFELSE.
15727
15728         glob: fix compile test
15729         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
15730
15731         btowc: fix missing file
15732         * modules/btowc (Files): Also ship locale-fr.m4.
15733
15734         lseek: fix link test
15735         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
15736         AC_LINK_IFELSE.
15737
15738         include_next: silence autoconf 2.68 warning
15739         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
15740         AC_COMPILE_IFELSE as special.
15741         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
15742         autoconf < 2.68.
15743
15744         acl: fix compilation test
15745         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
15746         AC_COMPILE_IFELSE.
15747
15748 2010-08-26  Bruno Haible  <bruno@clisp.org>
15749
15750         Modernize AC_TRY_RUN invocations.
15751         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
15752         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
15753         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
15754         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
15755         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
15756         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
15757         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
15758         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
15759         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
15760         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
15761         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
15762         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
15763         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
15764         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15765         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
15766         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
15767         gl_MBRLEN_NUL_RETVAL): Likewise.
15768         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
15769         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
15770         Likewise.
15771         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
15772         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
15773         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
15774         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
15775         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
15776         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
15777         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
15778         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
15779         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
15780         Likewise.
15781         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
15782         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
15783         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15784         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
15785         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15786         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
15787         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
15788         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
15789         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
15790         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15791
15792 2010-08-26  Bruno Haible  <bruno@clisp.org>
15793
15794         Modernize AC_TRY_LINK invocations.
15795         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
15796         AC_TRY_LINK.
15797         * m4/argp.m4 (gl_ARGP): Likewise.
15798         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
15799         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
15800         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
15801         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
15802         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
15803         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
15804         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
15805         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
15806         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
15807         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
15808         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
15809         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
15810         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
15811         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
15812         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
15813         * m4/hostent.m4 (gl_HOSTENT): Likewise.
15814         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
15815         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
15816         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
15817         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
15818         Likewise.
15819         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
15820         Likewise.
15821         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
15822         Likewise.
15823         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
15824         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
15825         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
15826         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
15827         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
15828         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
15829         * m4/servent.m4 (gl_SERVENT): Likewise.
15830         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
15831         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
15832         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
15833         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
15834         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
15835         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15836         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15837         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15838         * modules/tsearch-tests (configure.ac): Likewise.
15839
15840 2010-08-26  Bruno Haible  <bruno@clisp.org>
15841
15842         Modernize AC_TRY_COMPILE invocations.
15843         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
15844         AC_TRY_COMPILE.
15845         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
15846         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
15847         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
15848         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
15849         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
15850         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
15851         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
15852         * m4/lock.m4 (gl_LOCK): Likewise.
15853         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
15854         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
15855         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
15856         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
15857         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
15858         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
15859         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
15860         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
15861         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
15862         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
15863         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
15864         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
15865         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
15866         extraneous semicolon.
15867
15868 2010-08-26  Jim Meyering  <meyering@redhat.com>
15869
15870         stat-time: relax license LGPL
15871         * modules/stat-time (License): Change from GPL to LGPL,
15872         with consent from all contributors, for use in libguile.
15873         Requested by Ludovic Courtès.
15874
15875 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
15876
15877         poll: return immediately on POLLHUP.
15878         * lib/poll.c (poll): Always set timeout before wait_timeout is
15879         computed.
15880
15881 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15882
15883         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
15884         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
15885         rmdir ("dir/.//"), unlinkat.
15886
15887 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
15888
15889         stdbool: avoid spurious failure with modern xlc
15890         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
15891
15892 2010-08-24  Bruno Haible  <bruno@clisp.org>
15893
15894         getloadavg: simplify code
15895         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
15896         gl_have_func. Update comments.
15897
15898 2010-08-24  Eric Blake  <eblake@redhat.com>
15899
15900         getloadavg: don't define SVR4 on cygwin
15901         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
15902         only define SVR4 when -lkvm is required.
15903         Reported by Yaakov Selkowitz.
15904
15905 2010-08-24  Bruno Haible  <bruno@clisp.org>
15906
15907         priv-set: fix comment
15908         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
15909
15910 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
15911
15912         priv-set: fix comments
15913         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
15914         to match code, as suggested by David Bartley in:
15915         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
15916
15917 2010-08-23  Eric Blake  <eblake@redhat.com>
15918
15919         stdbool: avoid rejecting clang
15920         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
15921         * tests/test-stdbool.c: Enable more tests if using the system
15922         <stdbool.h> instead of the gnulib replacement.
15923         (main): Move xlc bug test to a runtime test for all compilers.
15924         Reported by Anders Kaseorg.
15925
15926         argz: fix shell quoting issue
15927         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
15928         Reported by Charles Wilson.
15929
15930 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
15931             Erik Faye-Lund <kusmabite@gmail.com>
15932
15933         poll, select: handle ERROR_BROKEN_PIPE.
15934         * lib/poll.c (win32_compute_revents): Return POLLHUP when
15935         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
15936         * lib/select.c (win32_compute_revents): Do not mark a pipe
15937         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
15938
15939 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
15940
15941         fts: allow compilation with C++
15942         * lib/fts_.h: Specify extern "C" linkage with C++.
15943
15944 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15945
15946         Fix gnulib-tool sed script de-commentation for AIX sed.
15947         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
15948         sed.
15949
15950 2010-08-17  Eric Blake  <eblake@redhat.com>
15951
15952         test-stddef: test for (some) offsetof bugs
15953         * tests/test-stddef.c: Enhance test to ensure correct type of
15954         offsetof.
15955         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
15956         that we are not fixing at this time.
15957
15958 2010-08-15  Bruno Haible  <bruno@clisp.org>
15959
15960         stpncpy: Allow stpncpy to be defined as a macro.
15961         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
15962         if it's already correctly declared.
15963         * lib/string.in.h (stpncpy): Undefine before redefining.
15964         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
15965
15966 2010-08-14  Bruno Haible  <bruno@clisp.org>
15967
15968         Rename module 'memxfrm' to 'amemxfrm'.
15969         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
15970         (amemxfrm): Renamed from memxfrm.
15971         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
15972         (amemxfrm): Renamed from memxfrm.
15973         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
15974         * NEWS: Mention the change.
15975         * MODULES.html.sh (String handling <string.h>): Update.
15976         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
15977         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
15978         * lib/unicase/u16-casexfrm.c: Likewise.
15979         * lib/unicase/u32-casexfrm.c: Likewise.
15980         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
15981         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
15982         * lib/uninorm/u16-normxfrm.c: Likewise.
15983         * lib/uninorm/u32-normxfrm.c: Likewise.
15984         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
15985         memxfrm.
15986         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
15987         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
15988         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
15989         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
15990         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
15991         Suggested by Paul Eggert.
15992
15993 2010-08-14  Bruno Haible  <bruno@clisp.org>
15994
15995         Tests for module 'astrxfrm'.
15996         * modules/astrxfrm-tests: New file.
15997         * tests/test-astrxfrm.c: New file.
15998
15999         New module 'astrxfrm'.
16000         * lib/astrxfrm.h: New file.
16001         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
16002         * modules/astrxfrm: New file.
16003
16004 2010-08-14  Reuben Thomas <rrt@sc3d.org>
16005
16006         regex: Tweak doc.
16007         * doc/regex.texi (Overview): Don't mention regex.c.
16008         (GNU Regular Expression Compiling): Likewise.
16009         (Match-end-of-line Operator): Mention 'not_eol'.
16010
16011 2010-08-14  Brian Gough  <bjg@gnu.org>
16012             Bruno Haible  <bruno@clisp.org>
16013
16014         git-merge-changelog: add doc relating to use with bzr and hg.
16015         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
16016
16017 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
16018
16019         pthread: fix pthread.h creation for srcdir != builddir
16020         * modules/pthread (Makefile.am): Fix the rule to work also in a
16021         non-srcdir build.
16022
16023 2010-08-13  Karl Berry  <karl@gnu.org>
16024
16025         * doc/regex.texi (Predefined Syntaxes): @smallexample.
16026         * doc/posix-*/*: force line break before @url of POSIX
16027         specifications.
16028         Suggested by Werner Lemberg.
16029
16030 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
16031
16032         strtod: fix const diagnostic
16033         * lib/strtod.c (strtod): Don't assign const char * to char *,
16034         as this elicits a warning from GCC when warnings are enabled.
16035
16036 2010-08-10  Pádraig Brady <P@draigbrady.com>
16037         and Eric Blake  <eblake@redhat.com>
16038
16039         copy-acl: ignore ENOTSUP on HP-UX
16040         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
16041         so that it is available for HP-UX.
16042         * lib/copy-acl.c (qcopy_acl): Use it.
16043         Reported by Patrick M. Callahan.
16044
16045 2010-08-10  Eric Blake  <eblake@redhat.com>
16046
16047         open, chown: relax license
16048         * modules/open (License): Change to LGPLv2+, with consent by all
16049         authors, for use in augeas.
16050         * modules/chown (License): Likewise.
16051         * modules/lchown (Likewise): Likewise.
16052         Requested by Adam Stokes.
16053
16054 2010-08-09  Karl Berry  <karl@gnu.org>
16055
16056         * build-aux/ar-lib: new file, import from Automake.
16057         * config/srclist.txt: autocheck for updates.
16058
16059 2010-08-09  Eric Blake  <eblake@redhat.com>
16060
16061         readlinkat: adjust client modules
16062         * modules/areadlinkat (Depends-on): Use readlinkat, not
16063         symlinkat.
16064         * modules/areadlinkat-with-size (Depends-on): Likewise.
16065
16066         mknod: be more vocal about danger of running tests as root
16067         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
16068         root, since that is just asking for problems.
16069         Suggested by Bruno Haible, based on a report by Rainer Tammer.
16070
16071         readlinkat: split into its own module
16072         * modules/symlinkat: Split readlinkat...
16073         * modules/readlinkat: ...into separate module.
16074         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
16075         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
16076         * lib/symlinkat.c (readlinkat): Move...
16077         * lib/readlinkat.c: ...into new file.
16078         * modules/symlinkat-tests: Split readlinkat test...
16079         * modules/readlinkat-tests: ...into separate module.
16080         * tests/test-symlinkat.c: Split...
16081         * tests/test-readlinkat.c: ...into new file.
16082         * NEWS: Document the split.
16083         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
16084         * lib/unistd.in.h (readlinkat): Likewise.
16085         Suggested by Bruno Haible.
16086
16087 2010-08-08  Bruno Haible  <bruno@clisp.org>
16088
16089         memxfrm: Speed up.
16090         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
16091         that usually only one call to strxfrm is necessary for each string
16092         part.
16093         Reported by Paul Eggert <eggert@cs.ucla.edu>.
16094
16095 2010-08-07  Karl Berry  <karl@gnu.org>
16096
16097         * doc/posix-headers/limits.texi,
16098         * doc/posix-functions/malloc.texi,
16099         * doc/posix-functions/strsignal.texi: missing @item.
16100         * doc/ld-version-script.texi: spurious leading i.
16101         * doc/regex.texi (Interval Operators): no commas inside @var.
16102
16103 2010-08-01  Bruno Haible  <bruno@clisp.org>
16104
16105         Integrate the regex documentation.
16106         * doc/gnulib.texi: Define 'cn' index.
16107         (Regular expressions): New a chapter that includes regex.texi and
16108         regexprops-generic.texi.
16109         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
16110         syntax.
16111
16112         Whitespace cleanup.
16113         * doc/regex.texi: Remove trailing spaces.
16114
16115         Add regex documentation.
16116         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
16117         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
16118         Written by Kathy A. Hargreaves and Karl Berry.
16119
16120 2010-08-01  Bruno Haible  <bruno@clisp.org>
16121
16122         link: Update documentation.
16123         * doc/posix-functions/link.texi: Update regarding Solaris.
16124
16125 2010-07-31  Bruno Haible  <bruno@clisp.org>
16126
16127         Update modules list.
16128         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
16129         (String handling <string.h>): Add memcmp2, memxfrm.
16130         (Container data structures): Add xlist, xsublist, xoset.
16131         (Core language properties): Add alignof, unused-parameter.
16132         (Process control, Numeric conversion functions <stdlib.h>): Renamed
16133         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
16134         (Unibyte characters <ctype.h>): New section.
16135         (String handling <string.h>): New section.
16136         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
16137         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
16138         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
16139         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
16140         tan, tanh, tanl, y0, y1, yn.
16141         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
16142         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
16143         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
16144         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
16145         unlockpt, vdprintf, vdprintf-posix.
16146         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
16147         (File system functions): Add concat-filename, sys_file, sys_ioctl,
16148         xconcat-filename.
16149         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
16150         getdtablesize, pipe2, pipe2-safer.
16151         (Security): New section.
16152         (Networking functions): Add accept4.
16153         (Signal handling): Add sigpipe.
16154         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
16155         mbmemcasecoll.
16156         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
16157         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
16158         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
16159         pipe-filter-ii.
16160         (Misc): Add argp-version-etc, login_tty, parse-duration.
16161
16162 2010-07-31  Bruno Haible  <bruno@clisp.org>
16163
16164         Improve doc in MODULES.html.
16165         * modules/linkat (Description): Add the word "function".
16166         * modules/mkfifo (Description): Likewise.
16167         * modules/mknod (Description): Likewise.
16168         * modules/remove (Description): Likewise.
16169         * modules/renameat (Description): Likewise.
16170         * modules/stat (Description): Likewise.
16171         * modules/symlink (Description): Likewise.
16172         * modules/unlink (Description): Likewise.
16173
16174 2010-07-31  Bruno Haible  <bruno@clisp.org>
16175
16176         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
16177         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
16178         option --enable/disable-c++ instead of --enable/disable-cxx.
16179         * NEWS: Mention the change.
16180
16181 2010-07-31  Bruno Haible  <bruno@clisp.org>
16182
16183         readlink, areadlink: Relax test a bit.
16184         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
16185         alternative to ENOTDIR.
16186         * tests/test-areadlink.h (test_areadlink): Likewise.
16187         Reported by Rainer Tammer.
16188
16189 2010-07-31  Bruno Haible  <bruno@clisp.org>
16190
16191         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
16192         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
16193         character, perform the search using U_STRCHR.
16194         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
16195         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
16196         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
16197         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
16198         Suggested by Paolo Bonzini.
16199
16200 2010-07-31  Bruno Haible  <bruno@clisp.org>
16201
16202         unistr/u*-strstr: Fix dependencies.
16203         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
16204         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
16205         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
16206
16207 2010-07-31  Bruno Haible  <bruno@clisp.org>
16208
16209         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
16210         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
16211         the beginning of the loop.
16212         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
16213         cases in 'switch' statement.
16214
16215         unistr/u8-strchr: Fix several bugs.
16216         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
16217         the string. When not found, return NULL, not a pointer near the end.
16218
16219         More tests for unistr/u8-strchr.
16220         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
16221         that the function does not read past the first occurrence of the byte
16222         being searched.
16223         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
16224         * tests/unistr/test-u16-strchr.c (main): New function.
16225         * tests/unistr/test-u32-strchr.c (main): New function.
16226
16227 2010-07-31  Bruno Haible  <bruno@clisp.org>
16228
16229         posix-modules: Ignore backup files of documentation files.
16230         * posix-modules: grep only through files named *.texi.
16231
16232 2010-07-31  Bruno Haible  <bruno@clisp.org>
16233
16234         symlinkat: Fix documentation.
16235         * doc/posix-functions/readlinkat.texi: Fix module name.
16236
16237 2010-07-31  Bruno Haible  <bruno@clisp.org>
16238
16239         fchownat: Replace also when chown has the trailing slash bug.
16240         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
16241         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
16242         introduced on 2010-04-10.
16243         Reported by Rainer Tammer.
16244
16245 2010-07-31  Bruno Haible  <bruno@clisp.org>
16246
16247         linkat: Work around AIX 7.1 bug.
16248         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
16249         whether linkat handles trailing slash correctly. If not, replace linkat
16250         and define LINKAT_TRAILING_SLASH_BUG.
16251         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
16252         check whether (fd1,file1) points to a directory if file1 or file2 ends
16253         in a slash. Code taken from lib/link.c.
16254         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
16255         Reported by Rainer Tammer.
16256
16257 2010-07-31  Bruno Haible  <bruno@clisp.org>
16258
16259         Correctly determine whether pow is available in libc on AIX 7 with xlc.
16260         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
16261         This disables an xlc optimization that was causing wrong test results.
16262         Reported by Rainer Tammer.
16263
16264 2010-07-31  Bruno Haible  <bruno@clisp.org>
16265
16266         iconv: Work around AIX 6.1..7.1 bug.
16267         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
16268         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
16269         cross-compiling, guess no on all versions of AIX.
16270         Reported by Rainer Tammer.
16271
16272 2010-07-31  Bruno Haible  <bruno@clisp.org>
16273
16274         readlink: Relax test a bit.
16275         * tests/test-readlink.h (test_readlink): Allow different errno value
16276         when readlink is called with a file name that ends in / and refers to
16277         a file.
16278         Suggested by Eric Blake.
16279         Reported by Rainer Tammer.
16280
16281 2010-07-31  Bruno Haible  <bruno@clisp.org>
16282
16283         copysign: Does not require -lm on glibc systems.
16284         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
16285         gl_COMMON_DOUBLE_MATHFUNC.
16286         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
16287
16288 2010-07-31  Bruno Haible  <bruno@clisp.org>
16289
16290         duplocale: Work around AIX 7.1 bug.
16291         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
16292         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
16293         * lib/duplocale.c (rpl_duplocale): Update comment.
16294         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
16295         Reported by Rainer Tammer.
16296
16297 2010-07-30  Bruno Haible  <bruno@clisp.org>
16298
16299         dirfd: Avoid link error on AIX 7.1.
16300         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
16301         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
16302         exist, set REPLACE_DIRFD.
16303         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
16304         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
16305         * doc/posix-functions/dirfd.texi: Update.
16306         Reported by Rainer Tammer.
16307
16308 2010-07-30  Eric Blake  <eblake@redhat.com>
16309
16310         strtod: next round of AIX fixes
16311         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
16312         exponent.
16313         * tests/test-strtod.c (main): Enhance tests.
16314         * doc/posix-functions/strtod.texi (strtod): Document next bug.
16315         Reported by Rainer Tammer.
16316
16317         futimens: fix configure check
16318         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
16319         Reported by Bruno Haible.
16320
16321 2010-07-30  Bruno Haible  <bruno@clisp.org>
16322
16323         getline: Update regarding AIX.
16324         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
16325         Reported by Rainer Tammer.
16326
16327 2010-07-30  Bruno Haible  <bruno@clisp.org>
16328
16329         wcwidth: Drop replacement on AIX 7.
16330         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
16331         AIX 7.
16332         Reported by Rainer Tammer.
16333
16334 2010-07-30  Bruno Haible  <bruno@clisp.org>
16335
16336         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
16337         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
16338         a 'char *'.
16339         Reported by Rainer Tammer.
16340
16341 2010-07-30  Bruno Haible  <bruno@clisp.org>
16342
16343         unlink: Update regarding AIX.
16344         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
16345         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
16346         Reported by Rainer Tammer.
16347
16348 2010-07-30  Bruno Haible  <bruno@clisp.org>
16349
16350         symlink: Update regarding AIX.
16351         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
16352         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
16353         Reported by Rainer Tammer.
16354
16355 2010-07-30  Bruno Haible  <bruno@clisp.org>
16356
16357         strndup: Update regarding AIX.
16358         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
16359         AIX 7.
16360         Reported by Rainer Tammer.
16361
16362 2010-07-30  Bruno Haible  <bruno@clisp.org>
16363
16364         stat: Update regarding AIX.
16365         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
16366         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
16367         Reported by Rainer Tammer.
16368
16369 2010-07-30  Bruno Haible  <bruno@clisp.org>
16370
16371         truncl: Fix autoconf test.
16372         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
16373         whether truncl works.
16374         Reported by Rainer Tammer.
16375
16376 2010-07-30  Bruno Haible  <bruno@clisp.org>
16377
16378         round: Update regarding AIX.
16379         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
16380         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
16381         Reported by Rainer Tammer.
16382
16383 2010-07-30  Bruno Haible  <bruno@clisp.org>
16384
16385         rename: Update regarding AIX.
16386         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
16387         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
16388         Reported by Rainer Tammer.
16389
16390 2010-07-30  Bruno Haible  <bruno@clisp.org>
16391
16392         printf.m4: Update regarding AIX.
16393         * m4/printf.m4: Update comments regarding AIX.
16394         Reported by Rainer Tammer.
16395
16396 2010-07-30  Bruno Haible  <bruno@clisp.org>
16397
16398         iconv: Update regarding AIX.
16399         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
16400         AIX 7.
16401         Reported by Rainer Tammer.
16402
16403 2010-07-30  Bruno Haible  <bruno@clisp.org>
16404
16405         getopt: Update regarding AIX.
16406         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
16407         no on AIX.
16408         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
16409         Reported by Rainer Tammer.
16410
16411 2010-07-30  Bruno Haible  <bruno@clisp.org>
16412
16413         ldexpl; Update regarding AIX.
16414         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
16415         on AIX 7.
16416         Reported by Rainer Tammer.
16417
16418 2010-07-30  Bruno Haible  <bruno@clisp.org>
16419
16420         frexpl: Update regarding AIX.
16421         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
16422         on AIX 7.
16423         Reported by Rainer Tammer.
16424
16425 2010-07-30  Bruno Haible  <bruno@clisp.org>
16426
16427         open, fopen: Update regarding AIX.
16428         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
16429         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
16430         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
16431         * doc/posix-functions/fopen.texi: Likewise.
16432         Reported by Rainer Tammer.
16433
16434 2010-07-30  Bruno Haible  <bruno@clisp.org>
16435
16436         chown: Update doc regarding AIX.
16437         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
16438         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
16439         Reported by Rainer Tammer.
16440
16441 2010-07-30  Eric Blake  <eblake@redhat.com>
16442
16443         strtod: fix bug in replacement function on AIX
16444         * lib/strtod.c (strtod): Special case broken "0x" parse in
16445         underlying strtod.
16446         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
16447         * doc/posix-functions/strtod.texi (strtod): Likewise.
16448         Reported by Rainer Tammer.
16449
16450 2010-07-30  Bruno Haible  <bruno@clisp.org>
16451
16452         mbrlen: Fix cross-compilation guess for AIX.
16453         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
16454         guess. Leftover from 2008-12-22.
16455
16456 2010-07-30  Bruno Haible  <bruno@clisp.org>
16457
16458         mbrtowc: Fix cross-compilation guess for AIX.
16459         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
16460         guess. Leftover from 2008-12-21.
16461
16462 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
16463
16464         init.sh: work around trap limitation of some shells
16465         * tests/init.sh (setup_): Move exit trap outside of shell function.
16466
16467 2010-07-29  Eric Blake  <eblake@redhat.com>
16468
16469         strtod: aid debugging
16470         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
16471         understanding why strtod is rejected.
16472
16473 2010-07-28  Bruno Haible  <bruno@clisp.org>
16474
16475         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
16476         * lib/unistr/u8-chr.c: Include <string.h>.
16477         * tests/unistr/test-u8-chr.c: Likewise.
16478         * tests/unistr/test-u16-chr.c: Likewise.
16479         * tests/unistr/test-u32-chr.c: Likewise.
16480         * tests/unistr/test-u8-strchr.c: Likewise.
16481         * tests/unistr/test-u16-strchr.c: Likewise.
16482         * tests/unistr/test-u32-strchr.c: Likewise.
16483         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
16484         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
16485         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
16486         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
16487
16488 2010-07-28  Bruno Haible  <bruno@clisp.org>
16489
16490         Use spaces for indentation, not tabs.
16491         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
16492
16493 2010-07-27  Bruno Haible  <bruno@clisp.org>
16494
16495         mbspcasecmp: Fix function specification.
16496         * lib/string.in.h (mbspcasecmp): Fix specification comment.
16497         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
16498         Reported by Eric Blake <eblake@redhat.com>.
16499
16500 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
16501
16502         timespec: use cast and not conditional, as truncation isn't possible
16503         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
16504         instead of a conditional.  Comment about the situation in more detail.
16505         This undoes most of the 2009-10-29 patch.
16506
16507 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
16508
16509         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
16510         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
16511         * lib/unistr/u8-strchr.c: Likewise.
16512         * modules/unistr/u8-chr: Depend on memchr.
16513
16514         unistr/u*-strchr: add tests
16515         * modules/unistr/u8-strchr-tests: New file.
16516         * modules/unistr/u16-strchr-tests: New file.
16517         * modules/unistr/u32-strchr-tests: New file.
16518         * tests/unistr/test-strchr.h: New file.
16519         * tests/unistr/test-u8-strchr.c: New file.
16520         * tests/unistr/test-u16-strchr.c: New file.
16521         * tests/unistr/test-u32-strchr.c: New file.
16522
16523         unistr/u*-chr: test multibyte sequences more
16524         * tests/unistr/test-chr.h: Do complete testing of the characters in the
16525         test vector.
16526         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
16527         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
16528         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
16529
16530         unistr/u*-chr: test multibyte sequences
16531         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
16532
16533         unistr/u*-chr: prepare for multibyte tests
16534         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
16535         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
16536         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
16537         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
16538         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
16539         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
16540
16541 2010-07-18  Bruno Haible  <bruno@clisp.org>
16542
16543         unistr/u8-strchr: Optimize non-ASCII argument case.
16544         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
16545         because the first byte often matches anyway.
16546         Reported by Pádraig Brady <P@draigbrady.com>.
16547
16548 2010-07-15  Karl Berry  <karl@gnu.org>
16549
16550         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
16551
16552 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
16553
16554         getcwd: on Solaris, work better if ancestors are inaccessible
16555         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
16556         buffer and size, try again with a large buffer.  This works better
16557         on Solaris, since its getcwd succeeds even if the path to the root
16558         is inaccessible, and this is helpful in common cases such as .zfs
16559         hidden directories.  Problem reported by J Chapman Flack in
16560         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
16561         Use system getcwd if it's declared, not merely if it's partly
16562         working; use the partly-working test only to avoid needless effort
16563         if the system getcwd fails.
16564         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
16565         comment that was already obsolete and is now even more obsolete.
16566         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
16567         now might call strdup.
16568
16569 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
16570
16571         pthread: Add enough so that coreutils/src/sort.c compiles.
16572         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
16573         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
16574         gnulib. Include <sched.h> and <time.h>, as per POSIX.
16575         Include <sys/types.h>, in case it defines pthread_t.
16576         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
16577         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
16578         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
16579         (pthread_rwlockattr_t, pthread_spinlock_t):
16580         New typedefs, if HAVE_PTHREAD_T is not defined.
16581         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
16582         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
16583         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
16584         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
16585         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
16586         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
16587         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
16588         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
16589         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
16590         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
16591         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
16592         New macros.
16593         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
16594         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
16595         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
16596         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
16597         (pthread_spin_unlock): New dummy functions.
16598         (pthread_create): Return EAGAIN; don't set errno.
16599         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
16600         require AC_C_INLINE.
16601         * modules/pthread (Depends-on): Add sched, time.
16602         (pthread.h): Use AM_V_GEN.
16603
16604 2010-07-13  Bruno Haible  <bruno@clisp.org>
16605
16606         striconveh: Don't malloc memory if the result buffer is sufficient.
16607         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
16608         buffer if its size is sufficient.
16609         Reported by Ludovic Courtès <ludo@gnu.org>.
16610
16611 2010-07-13  Bruno Haible  <bruno@clisp.org>
16612
16613         strtod: Add safety check.
16614         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
16615
16616 2010-07-12  Bruno Haible  <bruno@clisp.org>
16617
16618         Unify tests that set gl_cv_func_ldexpl_no_libm.
16619         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
16620         gl_FUNC_LDEXPL.
16621         (gl_FUNC_LDEXPL): Invoke it.
16622         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
16623
16624 2010-07-12  Bruno Haible  <bruno@clisp.org>
16625
16626         Unify tests that set gl_cv_func_ldexp_no_libm.
16627         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
16628         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
16629         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
16630         (configure.ac): Simply invoke gl_FUNC_LDEXP.
16631         * modules/strtod (Files): Add m4/ldexp.m4.
16632
16633 2010-07-12  Bruno Haible  <bruno@clisp.org>
16634
16635         Unify tests that set gl_cv_func_frexpl_no_libm.
16636         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
16637         gl_FUNC_FREXPL_NO_LIBM.
16638         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
16639         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
16640
16641 2010-07-12  Bruno Haible  <bruno@clisp.org>
16642
16643         Unify tests that set gl_cv_func_frexp_no_libm.
16644         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
16645         gl_FUNC_FREXP_NO_LIBM.
16646         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
16647         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
16648
16649 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
16650
16651         memcoll: clarify sizes versus lengths, document better, and tweak perf
16652         * lib/memcoll.c (strcoll_loop, memcoll0):
16653         Improve quality of descriptive comments.  Name variables
16654         consistently as to whether they are lengths (which do not include
16655         terminating null) versus sizes (which do).
16656         * lib/xmemcoll.c (xmemcoll0): Likewise.
16657         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
16658         returned when s1size == 0; this is easier to compile and saves
16659         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
16660
16661 2010-07-12  Bruno Haible  <bruno@clisp.org>
16662
16663         Tests for module '_Exit'.
16664         * modules/_Exit-tests: New file.
16665         * tests/test-_Exit.sh: New file.
16666         * tests/test-_Exit.c: New file.
16667
16668         New module '_Exit'.
16669         * lib/stdlib.in.h (__attribute__): New macro.
16670         (_Exit): New declaration.
16671         * lib/_Exit.c: New file.
16672         * m4/_Exit.m4: New file.
16673         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
16674         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
16675         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
16676         * modules/_Exit: New file.
16677         * tests/test-stdlib-c++.cc (_Exit): Check signature.
16678         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
16679
16680 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
16681
16682         strtod: make it more-accurate typically, and don't require libm
16683         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
16684         Include limits.h.  Don't include string.h.
16685         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
16686         (locale_isspace): New function, so that no casts are needed to
16687         check whether *s is a space.
16688         (ldexp): Provide an unused dummy if not available.
16689         (scale_radix_exp, parse_number, underlying_strtod): New functions.
16690         (strtod): Use them.  This implementation prefers to use the
16691         underlying strtod if available, falling back on our own code
16692         only to fix known bugs.  This is more likely to produce an
16693         accurate result.  Also, it avoids the use of libm functions.
16694         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
16695         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
16696         was absent, but it caused a test failure with coreutils.
16697         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
16698         with libm.
16699         * modules/strtod (Makefile.am, Link): libm is no longer needed.
16700         * modules/strtod-tests (Makefile.am): Likewise.
16701
16702 2010-07-11  Pádraig Brady  <P@draigBrady.com>
16703             Bruno Haible  <bruno@clisp.org>
16704
16705         unistr/u8-strchr: Optimize ASCII argument case.
16706         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
16707
16708 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
16709
16710         (x)memcoll: minor tweaks
16711         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
16712         is after the type that it qualifies.
16713         (memcoll0): Likewise.
16714         * lib/memcoll.h (memcoll0): Likewise.
16715         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
16716         * lib/xmemcoll.h (xmemcoll0): Likewise.
16717         * lib/memcoll.c (memcoll0): Correct the comment.  This function
16718         differs from memcoll in that the NUL byte is part of the argument.
16719         Omit the abort-checks, as performance is a real issue here.  Plus,
16720         the checks were wrong anyway (an off-by-one error).  Omit local
16721         variable 'diff', as it's a bit clearer that way.
16722         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
16723         no longer needed.
16724
16725 2010-07-08  Chen Guo <chenguo4@yahoo.com>
16726
16727         (x)memcoll: speedup when input is known to be NUL delimited
16728         * lib/memcoll.c: Include stdlib.
16729         (memcoll0): New function.
16730         (strcoll_loop): New function, refactored for use in both memcoll
16731         and memcoll0.
16732         * lib/memcoll.h (memcoll0): Add prototype.
16733         * lib/xmemcoll.c (xmemcoll0): New function.
16734         (collate_error): New function, refactored for use in both xmemcoll
16735         and xmemcoll0.
16736         * lib/xmemcoll.h (xmemcoll0): Add prototype.
16737         * m4/memcoll.m4: add inline invocation.
16738
16739 2010-07-06  Pádraig Brady  <P@draigBrady.com>
16740
16741         * build-aux/bootstrap: Remove any local translations
16742         from the translation project synchronization directory,
16743         so that local only translations are not distributed.
16744
16745 2010-07-04  Bruno Haible  <bruno@clisp.org>
16746
16747         fsusage: Clarify which code applies to which platforms.
16748         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
16749         platform.
16750         * lib/fsusage.c (get_fs_usage): Likewise.
16751
16752 2010-07-04  Bruno Haible  <bruno@clisp.org>
16753
16754         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
16755         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
16756         Reported by Martin Lambers <marlam@marlam.de>.
16757
16758 2010-07-04  Jim Meyering  <meyering@redhat.com>
16759
16760         hash: once again explicitly disallow insertion of NULL
16761         * lib/hash.c (hash_insert0): Reinstate just-removed test:
16762         inserting a NULL pointer cannot work with these functions.
16763         Add a comment with details.
16764         This reverts part of the 2010-07-01 commit, 5bef1a35
16765         "hash: extend module to deal with non-pointer keys".
16766
16767 2010-07-01  Bruno Haible  <bruno@clisp.org>
16768
16769         stdbool: Update doc.
16770         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
16771         Info from Christian Weisgerber <naddy@mips.inka.de>.
16772
16773 2010-07-01  Jim Meyering  <meyering@redhat.com>
16774
16775         hash: extend module to deal with non-pointer keys
16776         * lib/hash.c (hash_insert0): New interface, much like hash_insert
16777         but that allows insertion of non-pointer entries.
16778         Do not disallow an ENTRY value of NULL.
16779         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
16780         * lib/hash.h (hash_insert0): Declare.
16781
16782 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
16783
16784         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
16785         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
16786         not present (i.e. with autoconf 2.59 and when using gettextize, not
16787         gnulib), require AC_GNU_SOURCE instead.
16788
16789 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
16790
16791         idpriv-drop: Fix tests.
16792         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
16793         not to the test-idpriv-droptemp program.
16794
16795 2010-06-29  Bruno Haible  <bruno@clisp.org>
16796
16797         string: Fix syntax error with g++ 2.96.
16798         * lib/string.in.h (__pure__): Remove definition.
16799         (_GL_ATTRIBUTE_PURE): New macro.
16800         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
16801         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
16802         Reported by Christian Weisgerber <naddy@mips.inka.de>.
16803
16804 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
16805
16806         unitypes: Fix bug introduced on 2010-05-18.
16807         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
16808
16809 2010-06-22  Eric Blake  <eblake@redhat.com>
16810
16811         memmem: slight optimization
16812         * lib/str-two-way.h (critical_factorization): Update comments.
16813         Reduce work during factorization phase.
16814         Reported by Carlos Bueno <carlos@bueno.org>.
16815
16816 2010-06-21  Bruno Haible  <bruno@clisp.org>
16817
16818         Fix HAVE_CALLOC_POSIX misnomer.
16819         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
16820         !HAVE_CALLOC_POSIX.
16821         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
16822         HAVE_CALLOC_POSIX.
16823         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
16824         instead of HAVE_CALLOC_POSIX.
16825         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
16826         HAVE_CALLOC_POSIX.
16827
16828         Use modern idiom for calloc() replacement.
16829         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
16830         AC_FUNC_CALLOC.
16831         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
16832         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
16833         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16834         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
16835         (gl_REPLACE_CALLOC): New macro.
16836
16837 2010-06-21  Bruno Haible  <bruno@clisp.org>
16838
16839         Fix HAVE_REALLOC_POSIX misnomer.
16840         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
16841         !HAVE_REALLOC_POSIX.
16842         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
16843         HAVE_REALLOC_POSIX.
16844         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
16845         instead of HAVE_REALLOC_POSIX.
16846         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
16847         HAVE_REALLOC_POSIX.
16848
16849         Use modern idiom for realloc() replacement.
16850         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
16851         AC_FUNC_REALLOC.
16852         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
16853         Autoconf's AC_FUNC_REALLOC.
16854         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16855         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
16856         (gl_REPLACE_REALLOC): New macro.
16857         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
16858
16859 2010-06-21  Bruno Haible  <bruno@clisp.org>
16860
16861         Fix HAVE_MALLOC_POSIX misnomer.
16862         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
16863         !HAVE_MALLOC_POSIX.
16864         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
16865         HAVE_MALLOC_POSIX.
16866         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
16867         instead of HAVE_MALLOC_POSIX.
16868         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
16869         HAVE_MALLOC_POSIX.
16870
16871         Use modern idiom for malloc() replacement.
16872         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
16873         AC_FUNC_MALLOC.
16874         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
16875         Autoconf's AC_FUNC_MALLOC.
16876         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16877         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
16878         (gl_REPLACE_MALLOC): New macro.
16879         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
16880
16881 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
16882
16883         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
16884         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
16885         This macro takes 3 arguments, not 4.
16886
16887 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
16888
16889         ipv6: fix detection under mingw
16890         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
16891         in6_addr.
16892
16893 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
16894
16895         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
16896         that strtod() works when cross-compiling to a glibc version known
16897         to work.
16898
16899 2010-06-15  Bruno Haible  <bruno@clisp.org>
16900
16901         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
16902
16903 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
16904
16905         select: Correct timeout.
16906         * lib/select.c (rpl_select): Compute wait_timeout correctly.
16907
16908 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
16909
16910         git-version-gen: init shell var to avoid env var influence
16911         * build-aux/git-version-gen (v): Init shell var to empty.
16912
16913 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
16914
16915         priv-set: Don't assume that priv.h exists merely because getppriv does.
16916         See Jan Andersen's bug report about AIX 5L in
16917         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
16918         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
16919         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
16920         * lib/priv-set.h: Likewise.
16921         * tests/test-priv-set.c: Likewise.
16922
16923 2010-06-13  Bruno Haible  <bruno@clisp.org>
16924
16925         relocatable: Make it easier to test whether to install wrappers.
16926         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
16927         RELOCATABLE_VIA_WRAPPER.
16928
16929 2010-06-13  Bruno Haible  <bruno@clisp.org>
16930
16931         gnulib-tool: Display specified modules and dependencies differently.
16932         * gnulib-tool (func_show_module_list): New function.
16933         (func_import, func_create_testdir): Invoke it.
16934         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
16935
16936 2010-06-13  Bruno Haible  <bruno@clisp.org>
16937
16938         gnulib-tool: Align code of func_import and func_create_testdir.
16939         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
16940         specified_modules.
16941
16942 2010-06-12  Jim Meyering  <meyering@redhat.com>
16943
16944         test-inttostr: avoid spurious failure on Solaris 9
16945         * tests/test-inttostr.c (main): Skip the test when snprintf fails
16946         to accept "%ju".  Reported by Bruno Haible.
16947
16948 2010-06-11  Jim Meyering  <meyering@redhat.com>
16949
16950         test-sys_socket: mark variables as used more readably
16951         * tests/test-sys_socket.c (main): Mark otherwise unused variables
16952         as "used" explicitly via (void) statement casts.  This is more
16953         readable than using them in an artificial return expression.
16954         Suggestion from Bruno Haible.
16955
16956 2010-06-11  Bruno Haible  <bruno@clisp.org>
16957
16958         Avoid some more warnings from "gcc -Wwrite-strings".
16959         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
16960         to 'const char *'.
16961         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
16962         * tests/test-c-strcasestr.c (main): Likewise.
16963         * tests/test-mbscasestr1.c (main): Likewise.
16964         * tests/test-mbscasestr2.c (main): Likewise.
16965         * tests/test-memmem.c (main): Likewise.
16966         * tests/test-strstr.c (main): Likewise.
16967         * tests/test-strcasestr.c (main): Likewise.
16968
16969 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16970
16971         init.sh: change framework_failure_ to fail with status 99, not 1
16972         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
16973         automake's parallel-tests rule that this is an unexpected failure,
16974         even if the test is listed in XFAIL_TESTS.
16975
16976 2010-06-11  Jim Meyering  <meyering@redhat.com>
16977
16978         test-inttostr: avoid warnings about 4-6KB literal strings
16979         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
16980         Include "macros.h", for its definition of ASSERT.
16981         (CK): s/assert/ASSERT/
16982         * modules/inttostr-tests (Files): Add macros.h.
16983
16984         init.sh: don't use $ME_ or skip_ before they are defined
16985         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
16986         their first uses.  Also hoist their companions: warn_, fail_,
16987         framework_failure_, $stderr_fileno.  Prompted by a patch from
16988         Stefano Lattarini.
16989
16990         test-sys_socket: avoid set-but-not-used warnings from gcc
16991         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
16992         avoid warning about set-but-not-used variables.
16993
16994         test-xvasprintf: avoid 'const' discard warnings
16995         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
16996         "const" when assigning from literal strings.
16997         (test_xasprintf): Add "void" in function argument list to placate
16998         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
16999
17000         tests: avoid compilation warnings in argmatch and exclude tests...
17001         in packages that define ARGMATCH_DIE_DECL, like coreutils.
17002         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
17003         Since it always exits, declare with the "noreturn" attribute.
17004         * tests/test-argmatch.c: Likewise.
17005
17006         tests: avoid 'const' discard warnings in mbsstr tests
17007         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
17008         * tests/test-mbsstr2.c (main): Likewise.
17009
17010         test-verify: avoid warning from gcc's -Wmissing-declarations
17011         * tests/test-verify.c (function): Declare to be static.
17012
17013         test-inttostr.c: include <string.h> for use of strcmp
17014         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
17015
17016         test-linkat: avoid failed assertion on "other" architectures
17017         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
17018         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
17019         sparc: https://bugs.launchpad.net/bugs/591968
17020
17021 2010-06-11  Jim Meyering  <meyering@redhat.com>
17022
17023         printf.m4: avoid autoconf's "Expanded Before Required" warning
17024         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
17025         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
17026         autoconf warning.
17027
17028 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
17029
17030         Replacement header templates are now named with ".in", not "_".
17031         * doc/gnulib-intro.texi: Correct.
17032
17033 2010-06-10  Jim Meyering  <meyering@redhat.com>
17034
17035         inttostr-tests: depend on snprintf, not snprintf-posix
17036         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
17037         snprintf-posix, to avoid this aclocal failure:
17038           missing file gnulib-tests/vasnprintf.c
17039           configure.ac:45: error: expected source file, required through \
17040           AC_LIBSOURCES, not found
17041
17042 2010-06-10  Jim Meyering  <meyering@redhat.com>
17043
17044         inttostr: add a new function, inttostr, and tests
17045         The namesake function was not available.  The existence of the
17046         template file, inttostr.c makes its addition nontrivial.
17047         * lib/anytostr.c: Rename from inttostr.c.
17048         (anytostr): Rename from inttostr.
17049         * lib/inttostr.c: New file.
17050         * modules/inttostr (Files): Add anytostr.c.
17051         (Makefile.am): Set lib_SOURCES instead of ...
17052         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
17053         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
17054         * lib/offtostr.c: Likewise.
17055         * lib/uinttostr.c: Likewise.
17056         * lib/umaxtostr.c: Likewise.
17057         * modules/inttostr-tests: New file.
17058         * tests/test-inttostr.c: New file.  Test these functions.
17059
17060 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
17061             Bruno Haible  <bruno@clisp.org>
17062
17063         Add "Extending Gnulib" chapter to manual.
17064         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
17065         chapter.
17066         (Extending Gnulib): New chapter.
17067         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
17068         chapter.
17069
17070 2010-06-09  Bruno Haible  <bruno@clisp.org>
17071
17072         Avoid relocwrapper link errors due to gnulib replacement functions.
17073         * lib/areadlink.c: Use the system's malloc, realloc functions.
17074         (areadlink): Set errno to ENOMEM explicitly.
17075         * modules/areadlink (Depends-on): Remove malloc-posix.
17076         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17077
17078 2010-06-09  Bruno Haible  <bruno@clisp.org>
17079
17080         Avoid relocwrapper link errors due to gnulib replacement functions.
17081         * lib/canonicalize-lgpl.c: Use the system's malloc function.
17082         * lib/malloca.c: Likewise.
17083         * lib/relocatable.c: Likewise.
17084         * lib/progreloc.c: Use the system's malloc, sprintf functions.
17085         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
17086         * lib/setenv.c: Use the system's malloc, realloc functions.
17087         * lib/strerror.c: Use the system's sprintf function.
17088         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17089
17090 2010-06-04  Bruno Haible  <bruno@clisp.org>
17091
17092         Prefer documented low-level autoconf macro names.
17093         * m4/lib-link.m4: Use m4_translit instead of translit.
17094         * m4/environ.m4: Likewise.
17095         * m4/mathfunc.m4: Likewise.
17096         * m4/onceonly.m4: Likewise.
17097         * m4/stdint.m4: Likewise.
17098         Suggested by Eric Blake.
17099
17100 2010-06-04  Martin Lambers  <marlam@marlam.de>
17101             Bruno Haible  <bruno@clisp.org>
17102
17103         havelib: Allow library names with '+' characters.
17104         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
17105         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
17106
17107 2010-06-09  Bruno Haible  <bruno@clisp.org>
17108
17109         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
17110         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
17111         realloc failed.
17112
17113 2010-06-08  Peter Simons  <simons@cryp.to>
17114
17115         maint.mk: make the news-check rule more configurable
17116         * top/maint.mk (news-check-lines-spec): New variable.
17117         (news-check): Use "sed -n 1,10p" in place of "head".
17118
17119 2010-06-07  Jim Meyering  <meyering@redhat.com>
17120
17121         do-release-commit-and-tag: fix typo in --help
17122         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
17123
17124         regex: avoid new dead-code warning with gcc-4.6.0
17125         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
17126         if-block containing a while-loop.  It's been unused for at least
17127         5 years.
17128
17129 2010-06-05  Bruno Haible  <bruno@clisp.org>
17130
17131         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
17132         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
17133
17134 2010-06-04  Bruno Haible  <bruno@clisp.org>
17135
17136         Update to GNU gettext 0.18.1.
17137         * modules/gettext (configure.ac): Require gettext infrastructure from
17138         version 0.18.1.
17139
17140 2010-06-03  Bruno Haible  <bruno@clisp.org>
17141
17142         Don't use AC_LIBOBJ with file names in subdirectories.
17143         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
17144         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
17145         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
17146         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
17147         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
17148         gl_LIBUNISTRING_LIBSOURCE.
17149         (Makefile.am): Augment lib_SOURCES here, conditionally.
17150         * NEWS: Drop requirement for Automake option 'subdir-objects'.
17151
17152 2010-06-03  Bruno Haible  <bruno@clisp.org>
17153
17154         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
17155         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
17156         expansion does not end with a newline.
17157         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
17158         unnecessary newline.
17159
17160 2010-06-03  Bruno Haible  <bruno@clisp.org>
17161
17162         Reduce dependencies.
17163         * tests/test-quotearg.h: New file, extracted from
17164         tests/test-quotearg.c.
17165         * tests/test-quotearg-simple.c: New file, extracted from
17166         tests/test-quotearg.c.
17167         * tests/test-quotearg.c: Don't include <ctype.h>.
17168         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
17169         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
17170         use_quote_double_quotes, use_quotearg_colon): Moved to
17171         tests/test-quotearg.h.
17172         (results_g, flag_results, custom_quotes, custom_results): Moved
17173         to tests/test-quotearg-simple.c.
17174         (main): Moved the part that does not depend on gettext to
17175         tests/test-quotearg-simple.c. Return 77 if the test cannot be
17176         performed.
17177         * modules/quotearg-simple: New file.
17178         * modules/quotearg-simple-tests: New file.
17179         * modules/quotearg (Depends-on): Add quotearg-simple.
17180         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
17181         (Files): Add tests/test-quotearg.h.
17182         Reported by Paolo Bonzini.
17183
17184 2010-06-03  Bruno Haible  <bruno@clisp.org>
17185
17186         Reduce dependencies.
17187         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
17188
17189 2010-06-03  Bruno Haible  <bruno@clisp.org>
17190
17191         time: Undefine more broken macros.
17192         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
17193         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
17194         Reported by Eric Blake.
17195
17196 2010-06-03  Bruno Haible  <bruno@clisp.org>
17197
17198         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
17199         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
17200         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
17201         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
17202         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
17203         Reported by Ludovic Courtès <ludo@gnu.org>.
17204
17205 2010-06-02  Eric Blake  <eblake@redhat.com>
17206
17207         time: work with mingw + pthreads-win32 library
17208         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
17209         if timespec is defined only in pthread.h.
17210         * modules/time (Makefile.am): Substitute it.
17211         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
17212         <pthread.h>, when needed.
17213         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
17214         from the library.
17215
17216 2010-05-31  Bruno Haible  <bruno@clisp.org>
17217
17218         Avoid expanding two macros in the wrong order.
17219         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
17220         gl_LIBUNISTRING if it is defined.
17221         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
17222         autoconf >= 2.64.
17223         Reported by Ludovic Courtès <ludo@gnu.org>.
17224
17225 2010-05-27  Jim Meyering  <meyering@redhat.com>
17226
17227         maint.mk: also prohibit "#undef" of always-defined symbols
17228         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
17229         Allow more than one space before the symbol name.
17230         (sc_prohibit_always-defined_macros): Use grep's -E, now that
17231         the regexp uses alternation.
17232
17233 2010-05-26  Eric Blake  <eblake@redhat.com>
17234
17235         maint.mk: avoid echo -e
17236         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
17237         Convert all uses of echo -* to printf.
17238         Reported by Matthias Bolte.
17239
17240 2010-05-25  Bruno Haible  <bruno@clisp.org>
17241
17242         Update to GNU gettext 0.18, part 2.
17243         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
17244         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
17245
17246 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17247
17248         Add missing include in test-pwrite.c.
17249         * tests/test-pwrite.c: Include string.h, for strcmp.
17250
17251 2010-05-24  Bruno Haible  <bruno@clisp.org>
17252
17253         * NEWS: Mention requirement for Automake option 'subdir-objects'.
17254
17255 2010-05-24  Bruno Haible  <bruno@clisp.org>
17256
17257         Don't use conversion with transliteration in u{8,16,32}_strcoll.
17258         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
17259         iconveh_error argument.
17260         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
17261         U_STRCONV_TO_LOCALE.
17262         * lib/unistr/u16-strcoll.c: Likewise.
17263         * lib/unistr/u32-strcoll.c: Likewise.
17264         * modules/unistr/u8-strcoll (Depends-on): Add
17265         uniconv/u8-strconv-to-enc, localcharset. Remove
17266         uniconv/u8-strconv-to-locale.
17267         (configure.ac): Bump version number.
17268         * modules/unistr/u16-strcoll (Depends-on): Add
17269         uniconv/u16-strconv-to-enc, localcharset. Remove
17270         uniconv/u16-strconv-to-locale.
17271         (configure.ac): Bump version number.
17272         * modules/unistr/u32-strcoll (Depends-on): Add
17273         uniconv/u32-strconv-to-enc, localcharset. Remove
17274         uniconv/u32-strconv-to-locale.
17275         (configure.ac): Bump version number.
17276
17277 2010-05-24  Bruno Haible  <bruno@clisp.org>
17278
17279         Avoid a test failure on NetBSD 5.0.
17280         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
17281         an iconv() bug.
17282
17283 2010-05-24  Bruno Haible  <bruno@clisp.org>
17284
17285         Adjust #include directive style.
17286         * modules/regex (Includes): Recommend to write <regex.h>.
17287
17288 2010-05-24  Bruno Haible  <bruno@clisp.org>
17289
17290         regex: Don't require alloca.
17291         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
17292         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
17293         only inside if (0).
17294
17295 2010-05-23  Jim Meyering  <meyering@redhat.com>
17296
17297         test-renameat.c: include <sys/stat.h>
17298         * tests/test-renameat.c: Include <sys/stat.h>; required for
17299         definition of S_IS* macros.
17300
17301 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
17302
17303         Update maintainer documentation for 'relocatable-prog' module.
17304         * doc/relocatable-maint.texi: Update.
17305         Comments by Bruno Haible.
17306
17307 2010-05-23  Bruno Haible  <bruno@clisp.org>
17308
17309         git-merge-changelog: Enable --split-merged-entry by default.
17310         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
17311         (usage): Don't mention this option any more.
17312         Reported by Ralf Wildenhues.
17313
17314 2010-05-23  Jim Meyering  <meyering@redhat.com>
17315
17316         test-pwrite: do not leave behind a test file named "out"
17317         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
17318         The trivial-looking use of init.sh is really necessary.
17319         It ensures that the temporary file, "out", is created in
17320         a temporary directory, and removed upon termination.
17321         * tests/test-pwrite.sh: Re-add file.
17322         * modules/pwrite-tests: Reference it.
17323
17324 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17325
17326         Fix output redirection buglet in init.sh.
17327         * tests/init.sh: Fix redirection of stderr.
17328
17329 2010-05-20  Simon Josefsson  <simon@josefsson.org>
17330
17331         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
17332
17333 2010-05-17  Simon Josefsson  <simon@josefsson.org>
17334
17335         * modules/valgrind-tests: New file.
17336         * m4/valgrind-tests.m4: New file.
17337         * doc/valgrind-tests.texi: New file.
17338         * doc/gnulib.texi (Running self-tests under valgrind): New
17339         section.
17340
17341 2010-05-19  Bruno Haible  <bruno@clisp.org>
17342
17343         Clean up dead code in recent commit.
17344         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
17345         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
17346         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
17347         Suggested by Paolo Bonzini.
17348
17349 2010-05-19  Bruno Haible  <bruno@clisp.org>
17350
17351         Avoid valgrind error reports from libunistring.
17352         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
17353         * modules/libunistring (Files): Add it.
17354         * modules/libunistring-optional (Files): Likewise.
17355
17356 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
17357             Bruno Haible  <bruno@clisp.org>
17358
17359         New module 'libunistring-optional'.
17360         * modules/libunistring-optional: New file.
17361         * m4/libunistring-base.m4: New file.
17362         * m4/libunistring-optional.m4: New file.
17363         * lib/unicase.in.h: Renamed from lib/unicase.h.
17364         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
17365         * lib/unictype.in.h: Renamed from lib/unictype.h.
17366         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
17367         * lib/uniname.in.h: Renamed from lib/uniname.h.
17368         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
17369         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
17370         * lib/unistr.in.h: Renamed from lib/unistr.h.
17371         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
17372         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
17373         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
17374         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
17375         gl_LIBUNISTRING. If the library was found, determine the installed
17376         version and set LIBUNISTRING_VERSION.
17377         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
17378         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
17379         handle a configuration option --with-included-libunistring.
17380         * modules/libunistring (Files): Add m4/absolute-header.m4.
17381         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
17382         Add m4/libunistring-base.m4.
17383         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17384         (Makefile.am): Build unicase.h from unicase.in.h.
17385         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
17386         Add m4/libunistring-base.m4.
17387         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17388         (Makefile.am): Build uniconv.h from uniconv.in.h.
17389         * modules/unictype/base (Files): Use unictype.in.h instead of
17390         unictype.h. Add m4/libunistring-base.m4.
17391         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17392         (Makefile.am): Build unictype.h from unictype.in.h.
17393         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
17394         Add m4/libunistring-base.m4.
17395         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17396         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
17397         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
17398         Add m4/libunistring-base.m4.
17399         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17400         (Makefile.am): Build uniname.h from uniname.in.h.
17401         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
17402         Add m4/libunistring-base.m4.
17403         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17404         (Makefile.am): Build uninorm.h from uninorm.in.h.
17405         * modules/unistdio/base (Files): Use unistdio.in.h instead of
17406         unistdio.h. Add m4/libunistring-base.m4.
17407         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17408         (Makefile.am): Build unistdio.h from unistdio.in.h.
17409         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
17410         Add m4/libunistring-base.m4.
17411         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17412         (Makefile.am): Build unistr.h from unistr.in.h.
17413         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
17414         Add m4/libunistring-base.m4.
17415         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17416         (Makefile.am): Build unitypes.h from unitypes.in.h.
17417         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
17418         Add m4/libunistring-base.m4.
17419         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17420         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
17421         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
17422         uniwidth.h. Add m4/libunistring-base.m4.
17423         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17424         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
17425         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
17426         instead of augmenting lib_SOURCES.
17427         * modules/unicase/empty-suffix-context: Likewise.
17428         * modules/unicase/locale-language: Likewise.
17429         * modules/unicase/tolower: Likewise.
17430         * modules/unicase/totitle: Likewise.
17431         * modules/unicase/toupper: Likewise.
17432         * modules/unicase/u8-casecmp: Likewise.
17433         * modules/unicase/u8-casecoll: Likewise.
17434         * modules/unicase/u8-casefold: Likewise.
17435         * modules/unicase/u8-casexfrm: Likewise.
17436         * modules/unicase/u8-ct-casefold: Likewise.
17437         * modules/unicase/u8-ct-tolower: Likewise.
17438         * modules/unicase/u8-ct-totitle: Likewise.
17439         * modules/unicase/u8-ct-toupper: Likewise.
17440         * modules/unicase/u8-is-cased: Likewise.
17441         * modules/unicase/u8-is-casefolded: Likewise.
17442         * modules/unicase/u8-is-lowercase: Likewise.
17443         * modules/unicase/u8-is-titlecase: Likewise.
17444         * modules/unicase/u8-is-uppercase: Likewise.
17445         * modules/unicase/u8-prefix-context: Likewise.
17446         * modules/unicase/u8-suffix-context: Likewise.
17447         * modules/unicase/u8-tolower: Likewise.
17448         * modules/unicase/u8-totitle: Likewise.
17449         * modules/unicase/u8-toupper: Likewise.
17450         * modules/unicase/u16-casecmp: Likewise.
17451         * modules/unicase/u16-casecoll: Likewise.
17452         * modules/unicase/u16-casefold: Likewise.
17453         * modules/unicase/u16-casexfrm: Likewise.
17454         * modules/unicase/u16-ct-casefold: Likewise.
17455         * modules/unicase/u16-ct-tolower: Likewise.
17456         * modules/unicase/u16-ct-totitle: Likewise.
17457         * modules/unicase/u16-ct-toupper: Likewise.
17458         * modules/unicase/u16-is-cased: Likewise.
17459         * modules/unicase/u16-is-casefolded: Likewise.
17460         * modules/unicase/u16-is-lowercase: Likewise.
17461         * modules/unicase/u16-is-titlecase: Likewise.
17462         * modules/unicase/u16-is-uppercase: Likewise.
17463         * modules/unicase/u16-prefix-context: Likewise.
17464         * modules/unicase/u16-suffix-context: Likewise.
17465         * modules/unicase/u16-tolower: Likewise.
17466         * modules/unicase/u16-totitle: Likewise.
17467         * modules/unicase/u16-toupper: Likewise.
17468         * modules/unicase/u32-casecmp: Likewise.
17469         * modules/unicase/u32-casecoll: Likewise.
17470         * modules/unicase/u32-casefold: Likewise.
17471         * modules/unicase/u32-casexfrm: Likewise.
17472         * modules/unicase/u32-ct-casefold: Likewise.
17473         * modules/unicase/u32-ct-tolower: Likewise.
17474         * modules/unicase/u32-ct-totitle: Likewise.
17475         * modules/unicase/u32-ct-toupper: Likewise.
17476         * modules/unicase/u32-is-cased: Likewise.
17477         * modules/unicase/u32-is-casefolded: Likewise.
17478         * modules/unicase/u32-is-lowercase: Likewise.
17479         * modules/unicase/u32-is-titlecase: Likewise.
17480         * modules/unicase/u32-is-uppercase: Likewise.
17481         * modules/unicase/u32-prefix-context: Likewise.
17482         * modules/unicase/u32-suffix-context: Likewise.
17483         * modules/unicase/u32-tolower: Likewise.
17484         * modules/unicase/u32-totitle: Likewise.
17485         * modules/unicase/u32-toupper: Likewise.
17486         * modules/unicase/ulc-casecmp: Likewise.
17487         * modules/unicase/ulc-casecoll: Likewise.
17488         * modules/unicase/ulc-casexfrm: Likewise.
17489         * modules/uniconv/u8-conv-from-enc: Likewise.
17490         * modules/uniconv/u8-conv-to-enc: Likewise.
17491         * modules/uniconv/u8-strconv-from-enc: Likewise.
17492         * modules/uniconv/u8-strconv-from-locale: Likewise.
17493         * modules/uniconv/u8-strconv-to-enc: Likewise.
17494         * modules/uniconv/u8-strconv-to-locale: Likewise.
17495         * modules/uniconv/u16-conv-from-enc: Likewise.
17496         * modules/uniconv/u16-conv-to-enc: Likewise.
17497         * modules/uniconv/u16-strconv-from-enc: Likewise.
17498         * modules/uniconv/u16-strconv-from-locale: Likewise.
17499         * modules/uniconv/u16-strconv-to-enc: Likewise.
17500         * modules/uniconv/u16-strconv-to-locale: Likewise.
17501         * modules/uniconv/u32-conv-from-enc: Likewise.
17502         * modules/uniconv/u32-conv-to-enc: Likewise.
17503         * modules/uniconv/u32-strconv-from-enc: Likewise.
17504         * modules/uniconv/u32-strconv-from-locale: Likewise.
17505         * modules/uniconv/u32-strconv-to-enc: Likewise.
17506         * modules/uniconv/u32-strconv-to-locale: Likewise.
17507         * modules/unictype/bidicategory-byname: Likewise.
17508         * modules/unictype/bidicategory-name: Likewise.
17509         * modules/unictype/bidicategory-of: Likewise.
17510         * modules/unictype/bidicategory-test: Likewise.
17511         * modules/unictype/block-list: Likewise.
17512         * modules/unictype/block-test: Likewise.
17513         * modules/unictype/category-C: Likewise.
17514         * modules/unictype/category-Cc: Likewise.
17515         * modules/unictype/category-Cf: Likewise.
17516         * modules/unictype/category-Cn: Likewise.
17517         * modules/unictype/category-Co: Likewise.
17518         * modules/unictype/category-Cs: Likewise.
17519         * modules/unictype/category-L: Likewise.
17520         * modules/unictype/category-Ll: Likewise.
17521         * modules/unictype/category-Lm: Likewise.
17522         * modules/unictype/category-Lo: Likewise.
17523         * modules/unictype/category-Lt: Likewise.
17524         * modules/unictype/category-Lu: Likewise.
17525         * modules/unictype/category-M: Likewise.
17526         * modules/unictype/category-Mc: Likewise.
17527         * modules/unictype/category-Me: Likewise.
17528         * modules/unictype/category-Mn: Likewise.
17529         * modules/unictype/category-N: Likewise.
17530         * modules/unictype/category-Nd: Likewise.
17531         * modules/unictype/category-Nl: Likewise.
17532         * modules/unictype/category-No: Likewise.
17533         * modules/unictype/category-P: Likewise.
17534         * modules/unictype/category-Pc: Likewise.
17535         * modules/unictype/category-Pd: Likewise.
17536         * modules/unictype/category-Pe: Likewise.
17537         * modules/unictype/category-Pf: Likewise.
17538         * modules/unictype/category-Pi: Likewise.
17539         * modules/unictype/category-Po: Likewise.
17540         * modules/unictype/category-Ps: Likewise.
17541         * modules/unictype/category-S: Likewise.
17542         * modules/unictype/category-Sc: Likewise.
17543         * modules/unictype/category-Sk: Likewise.
17544         * modules/unictype/category-Sm: Likewise.
17545         * modules/unictype/category-So: Likewise.
17546         * modules/unictype/category-Z: Likewise.
17547         * modules/unictype/category-Zl: Likewise.
17548         * modules/unictype/category-Zp: Likewise.
17549         * modules/unictype/category-Zs: Likewise.
17550         * modules/unictype/category-and: Likewise.
17551         * modules/unictype/category-and-not: Likewise.
17552         * modules/unictype/category-byname: Likewise.
17553         * modules/unictype/category-name: Likewise.
17554         * modules/unictype/category-none: Likewise.
17555         * modules/unictype/category-of: Likewise.
17556         * modules/unictype/category-or: Likewise.
17557         * modules/unictype/category-test: Likewise.
17558         * modules/unictype/combining-class: Likewise.
17559         * modules/unictype/ctype-alnum: Likewise.
17560         * modules/unictype/ctype-alpha: Likewise.
17561         * modules/unictype/ctype-blank: Likewise.
17562         * modules/unictype/ctype-cntrl: Likewise.
17563         * modules/unictype/ctype-digit: Likewise.
17564         * modules/unictype/ctype-graph: Likewise.
17565         * modules/unictype/ctype-lower: Likewise.
17566         * modules/unictype/ctype-print: Likewise.
17567         * modules/unictype/ctype-punct: Likewise.
17568         * modules/unictype/ctype-space: Likewise.
17569         * modules/unictype/ctype-upper: Likewise.
17570         * modules/unictype/ctype-xdigit: Likewise.
17571         * modules/unictype/decimal-digit: Likewise.
17572         * modules/unictype/digit: Likewise.
17573         * modules/unictype/mirror: Likewise.
17574         * modules/unictype/numeric: Likewise.
17575         * modules/unictype/property-alphabetic: Likewise.
17576         * modules/unictype/property-ascii-hex-digit: Likewise.
17577         * modules/unictype/property-bidi-arabic-digit: Likewise.
17578         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
17579         * modules/unictype/property-bidi-block-separator: Likewise.
17580         * modules/unictype/property-bidi-boundary-neutral: Likewise.
17581         * modules/unictype/property-bidi-common-separator: Likewise.
17582         * modules/unictype/property-bidi-control: Likewise.
17583         * modules/unictype/property-bidi-embedding-or-override: Likewise.
17584         * modules/unictype/property-bidi-eur-num-separator: Likewise.
17585         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
17586         * modules/unictype/property-bidi-european-digit: Likewise.
17587         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
17588         * modules/unictype/property-bidi-left-to-right: Likewise.
17589         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
17590         * modules/unictype/property-bidi-other-neutral: Likewise.
17591         * modules/unictype/property-bidi-pdf: Likewise.
17592         * modules/unictype/property-bidi-segment-separator: Likewise.
17593         * modules/unictype/property-bidi-whitespace: Likewise.
17594         * modules/unictype/property-byname: Likewise.
17595         * modules/unictype/property-combining: Likewise.
17596         * modules/unictype/property-composite: Likewise.
17597         * modules/unictype/property-currency-symbol: Likewise.
17598         * modules/unictype/property-dash: Likewise.
17599         * modules/unictype/property-decimal-digit: Likewise.
17600         * modules/unictype/property-default-ignorable-code-point: Likewise.
17601         * modules/unictype/property-deprecated: Likewise.
17602         * modules/unictype/property-diacritic: Likewise.
17603         * modules/unictype/property-extender: Likewise.
17604         * modules/unictype/property-format-control: Likewise.
17605         * modules/unictype/property-grapheme-base: Likewise.
17606         * modules/unictype/property-grapheme-extend: Likewise.
17607         * modules/unictype/property-grapheme-link: Likewise.
17608         * modules/unictype/property-hex-digit: Likewise.
17609         * modules/unictype/property-hyphen: Likewise.
17610         * modules/unictype/property-id-continue: Likewise.
17611         * modules/unictype/property-id-start: Likewise.
17612         * modules/unictype/property-ideographic: Likewise.
17613         * modules/unictype/property-ids-binary-operator: Likewise.
17614         * modules/unictype/property-ids-trinary-operator: Likewise.
17615         * modules/unictype/property-ignorable-control: Likewise.
17616         * modules/unictype/property-iso-control: Likewise.
17617         * modules/unictype/property-join-control: Likewise.
17618         * modules/unictype/property-left-of-pair: Likewise.
17619         * modules/unictype/property-line-separator: Likewise.
17620         * modules/unictype/property-logical-order-exception: Likewise.
17621         * modules/unictype/property-lowercase: Likewise.
17622         * modules/unictype/property-math: Likewise.
17623         * modules/unictype/property-non-break: Likewise.
17624         * modules/unictype/property-not-a-character: Likewise.
17625         * modules/unictype/property-numeric: Likewise.
17626         * modules/unictype/property-other-alphabetic: Likewise.
17627         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
17628         * modules/unictype/property-other-grapheme-extend: Likewise.
17629         * modules/unictype/property-other-id-continue: Likewise.
17630         * modules/unictype/property-other-id-start: Likewise.
17631         * modules/unictype/property-other-lowercase: Likewise.
17632         * modules/unictype/property-other-math: Likewise.
17633         * modules/unictype/property-other-uppercase: Likewise.
17634         * modules/unictype/property-paired-punctuation: Likewise.
17635         * modules/unictype/property-paragraph-separator: Likewise.
17636         * modules/unictype/property-pattern-syntax: Likewise.
17637         * modules/unictype/property-pattern-white-space: Likewise.
17638         * modules/unictype/property-private-use: Likewise.
17639         * modules/unictype/property-punctuation: Likewise.
17640         * modules/unictype/property-quotation-mark: Likewise.
17641         * modules/unictype/property-radical: Likewise.
17642         * modules/unictype/property-sentence-terminal: Likewise.
17643         * modules/unictype/property-soft-dotted: Likewise.
17644         * modules/unictype/property-space: Likewise.
17645         * modules/unictype/property-terminal-punctuation: Likewise.
17646         * modules/unictype/property-test: Likewise.
17647         * modules/unictype/property-titlecase: Likewise.
17648         * modules/unictype/property-unassigned-code-value: Likewise.
17649         * modules/unictype/property-unified-ideograph: Likewise.
17650         * modules/unictype/property-uppercase: Likewise.
17651         * modules/unictype/property-variation-selector: Likewise.
17652         * modules/unictype/property-white-space: Likewise.
17653         * modules/unictype/property-xid-continue: Likewise.
17654         * modules/unictype/property-xid-start: Likewise.
17655         * modules/unictype/property-zero-width: Likewise.
17656         * modules/unictype/scripts: Likewise.
17657         * modules/unictype/syntax-c-ident: Likewise.
17658         * modules/unictype/syntax-c-whitespace: Likewise.
17659         * modules/unictype/syntax-java-ident: Likewise.
17660         * modules/unictype/syntax-java-whitespace: Likewise.
17661         * modules/unilbrk/u8-possible-linebreaks: Likewise.
17662         * modules/unilbrk/u8-width-linebreaks: Likewise.
17663         * modules/unilbrk/u16-possible-linebreaks: Likewise.
17664         * modules/unilbrk/u16-width-linebreaks: Likewise.
17665         * modules/unilbrk/u32-possible-linebreaks: Likewise.
17666         * modules/unilbrk/u32-width-linebreaks: Likewise.
17667         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
17668         * modules/unilbrk/ulc-width-linebreaks: Likewise.
17669         * modules/uniname/uniname: Likewise.
17670         * modules/uninorm/canonical-decomposition: Likewise.
17671         * modules/uninorm/composition: Likewise.
17672         * modules/uninorm/decomposing-form: Likewise.
17673         * modules/uninorm/decomposition: Likewise.
17674         * modules/uninorm/filter: Likewise.
17675         * modules/uninorm/nfc: Likewise.
17676         * modules/uninorm/nfd: Likewise.
17677         * modules/uninorm/nfkc: Likewise.
17678         * modules/uninorm/nfkd: Likewise.
17679         * modules/uninorm/u8-normalize: Likewise.
17680         * modules/uninorm/u8-normcmp: Likewise.
17681         * modules/uninorm/u8-normcoll: Likewise.
17682         * modules/uninorm/u8-normxfrm: Likewise.
17683         * modules/uninorm/u16-normalize: Likewise.
17684         * modules/uninorm/u16-normcmp: Likewise.
17685         * modules/uninorm/u16-normcoll: Likewise.
17686         * modules/uninorm/u16-normxfrm: Likewise.
17687         * modules/uninorm/u32-normalize: Likewise.
17688         * modules/uninorm/u32-normcmp: Likewise.
17689         * modules/uninorm/u32-normcoll: Likewise.
17690         * modules/uninorm/u32-normxfrm: Likewise.
17691         * modules/unistdio/u8-asnprintf: Likewise.
17692         * modules/unistdio/u8-asprintf: Likewise.
17693         * modules/unistdio/u8-snprintf: Likewise.
17694         * modules/unistdio/u8-sprintf: Likewise.
17695         * modules/unistdio/u8-u8-asnprintf: Likewise.
17696         * modules/unistdio/u8-u8-asprintf: Likewise.
17697         * modules/unistdio/u8-u8-snprintf: Likewise.
17698         * modules/unistdio/u8-u8-sprintf: Likewise.
17699         * modules/unistdio/u8-u8-vasnprintf: Likewise.
17700         * modules/unistdio/u8-u8-vasprintf: Likewise.
17701         * modules/unistdio/u8-u8-vsnprintf: Likewise.
17702         * modules/unistdio/u8-u8-vsprintf: Likewise.
17703         * modules/unistdio/u8-vasnprintf: Likewise.
17704         * modules/unistdio/u8-vasprintf: Likewise.
17705         * modules/unistdio/u8-vsnprintf: Likewise.
17706         * modules/unistdio/u8-vsprintf: Likewise.
17707         * modules/unistdio/u16-asnprintf: Likewise.
17708         * modules/unistdio/u16-asprintf: Likewise.
17709         * modules/unistdio/u16-snprintf: Likewise.
17710         * modules/unistdio/u16-sprintf: Likewise.
17711         * modules/unistdio/u16-u16-asnprintf: Likewise.
17712         * modules/unistdio/u16-u16-asprintf: Likewise.
17713         * modules/unistdio/u16-u16-snprintf: Likewise.
17714         * modules/unistdio/u16-u16-sprintf: Likewise.
17715         * modules/unistdio/u16-u16-vasnprintf: Likewise.
17716         * modules/unistdio/u16-u16-vasprintf: Likewise.
17717         * modules/unistdio/u16-u16-vsnprintf: Likewise.
17718         * modules/unistdio/u16-u16-vsprintf: Likewise.
17719         * modules/unistdio/u16-vasnprintf: Likewise.
17720         * modules/unistdio/u16-vasprintf: Likewise.
17721         * modules/unistdio/u16-vsnprintf: Likewise.
17722         * modules/unistdio/u16-vsprintf: Likewise.
17723         * modules/unistdio/u32-asnprintf: Likewise.
17724         * modules/unistdio/u32-asprintf: Likewise.
17725         * modules/unistdio/u32-snprintf: Likewise.
17726         * modules/unistdio/u32-sprintf: Likewise.
17727         * modules/unistdio/u32-u32-asnprintf: Likewise.
17728         * modules/unistdio/u32-u32-asprintf: Likewise.
17729         * modules/unistdio/u32-u32-snprintf: Likewise.
17730         * modules/unistdio/u32-u32-sprintf: Likewise.
17731         * modules/unistdio/u32-u32-vasnprintf: Likewise.
17732         * modules/unistdio/u32-u32-vasprintf: Likewise.
17733         * modules/unistdio/u32-u32-vsnprintf: Likewise.
17734         * modules/unistdio/u32-u32-vsprintf: Likewise.
17735         * modules/unistdio/u32-vasnprintf: Likewise.
17736         * modules/unistdio/u32-vasprintf: Likewise.
17737         * modules/unistdio/u32-vsnprintf: Likewise.
17738         * modules/unistdio/u32-vsprintf: Likewise.
17739         * modules/unistdio/ulc-asnprintf: Likewise.
17740         * modules/unistdio/ulc-asprintf: Likewise.
17741         * modules/unistdio/ulc-fprintf: Likewise.
17742         * modules/unistdio/ulc-snprintf: Likewise.
17743         * modules/unistdio/ulc-sprintf: Likewise.
17744         * modules/unistdio/ulc-vasnprintf: Likewise.
17745         * modules/unistdio/ulc-vasprintf: Likewise.
17746         * modules/unistdio/ulc-vfprintf: Likewise.
17747         * modules/unistdio/ulc-vsnprintf: Likewise.
17748         * modules/unistdio/ulc-vsprintf: Likewise.
17749         * modules/unistr/u8-check: Likewise.
17750         * modules/unistr/u8-chr: Likewise.
17751         * modules/unistr/u8-cmp: Likewise.
17752         * modules/unistr/u8-cmp2: Likewise.
17753         * modules/unistr/u8-cpy: Likewise.
17754         * modules/unistr/u8-cpy-alloc: Likewise.
17755         * modules/unistr/u8-endswith: Likewise.
17756         * modules/unistr/u8-mblen: Likewise.
17757         * modules/unistr/u8-mbsnlen: Likewise.
17758         * modules/unistr/u8-mbtouc: Likewise.
17759         * modules/unistr/u8-mbtouc-unsafe: Likewise.
17760         * modules/unistr/u8-mbtoucr: Likewise.
17761         * modules/unistr/u8-move: Likewise.
17762         * modules/unistr/u8-next: Likewise.
17763         * modules/unistr/u8-prev: Likewise.
17764         * modules/unistr/u8-set: Likewise.
17765         * modules/unistr/u8-startswith: Likewise.
17766         * modules/unistr/u8-stpcpy: Likewise.
17767         * modules/unistr/u8-stpncpy: Likewise.
17768         * modules/unistr/u8-strcat: Likewise.
17769         * modules/unistr/u8-strchr: Likewise.
17770         * modules/unistr/u8-strcmp: Likewise.
17771         * modules/unistr/u8-strcoll: Likewise.
17772         * modules/unistr/u8-strcpy: Likewise.
17773         * modules/unistr/u8-strcspn: Likewise.
17774         * modules/unistr/u8-strdup: Likewise.
17775         * modules/unistr/u8-strlen: Likewise.
17776         * modules/unistr/u8-strmblen: Likewise.
17777         * modules/unistr/u8-strmbtouc: Likewise.
17778         * modules/unistr/u8-strncat: Likewise.
17779         * modules/unistr/u8-strncmp: Likewise.
17780         * modules/unistr/u8-strncpy: Likewise.
17781         * modules/unistr/u8-strnlen: Likewise.
17782         * modules/unistr/u8-strpbrk: Likewise.
17783         * modules/unistr/u8-strrchr: Likewise.
17784         * modules/unistr/u8-strspn: Likewise.
17785         * modules/unistr/u8-strstr: Likewise.
17786         * modules/unistr/u8-strtok: Likewise.
17787         * modules/unistr/u8-to-u16: Likewise.
17788         * modules/unistr/u8-to-u32: Likewise.
17789         * modules/unistr/u8-uctomb: Likewise.
17790         * modules/unistr/u16-check: Likewise.
17791         * modules/unistr/u16-chr: Likewise.
17792         * modules/unistr/u16-cmp: Likewise.
17793         * modules/unistr/u16-cmp2: Likewise.
17794         * modules/unistr/u16-cpy: Likewise.
17795         * modules/unistr/u16-cpy-alloc: Likewise.
17796         * modules/unistr/u16-endswith: Likewise.
17797         * modules/unistr/u16-mblen: Likewise.
17798         * modules/unistr/u16-mbsnlen: Likewise.
17799         * modules/unistr/u16-mbtouc: Likewise.
17800         * modules/unistr/u16-mbtouc-unsafe: Likewise.
17801         * modules/unistr/u16-mbtoucr: Likewise.
17802         * modules/unistr/u16-move: Likewise.
17803         * modules/unistr/u16-next: Likewise.
17804         * modules/unistr/u16-prev: Likewise.
17805         * modules/unistr/u16-set: Likewise.
17806         * modules/unistr/u16-startswith: Likewise.
17807         * modules/unistr/u16-stpcpy: Likewise.
17808         * modules/unistr/u16-stpncpy: Likewise.
17809         * modules/unistr/u16-strcat: Likewise.
17810         * modules/unistr/u16-strchr: Likewise.
17811         * modules/unistr/u16-strcmp: Likewise.
17812         * modules/unistr/u16-strcoll: Likewise.
17813         * modules/unistr/u16-strcpy: Likewise.
17814         * modules/unistr/u16-strcspn: Likewise.
17815         * modules/unistr/u16-strdup: Likewise.
17816         * modules/unistr/u16-strlen: Likewise.
17817         * modules/unistr/u16-strmblen: Likewise.
17818         * modules/unistr/u16-strmbtouc: Likewise.
17819         * modules/unistr/u16-strncat: Likewise.
17820         * modules/unistr/u16-strncmp: Likewise.
17821         * modules/unistr/u16-strncpy: Likewise.
17822         * modules/unistr/u16-strnlen: Likewise.
17823         * modules/unistr/u16-strpbrk: Likewise.
17824         * modules/unistr/u16-strrchr: Likewise.
17825         * modules/unistr/u16-strspn: Likewise.
17826         * modules/unistr/u16-strstr: Likewise.
17827         * modules/unistr/u16-strtok: Likewise.
17828         * modules/unistr/u16-to-u32: Likewise.
17829         * modules/unistr/u16-to-u8: Likewise.
17830         * modules/unistr/u16-uctomb: Likewise.
17831         * modules/unistr/u32-check: Likewise.
17832         * modules/unistr/u32-chr: Likewise.
17833         * modules/unistr/u32-cmp: Likewise.
17834         * modules/unistr/u32-cmp2: Likewise.
17835         * modules/unistr/u32-cpy: Likewise.
17836         * modules/unistr/u32-cpy-alloc: Likewise.
17837         * modules/unistr/u32-endswith: Likewise.
17838         * modules/unistr/u32-mblen: Likewise.
17839         * modules/unistr/u32-mbsnlen: Likewise.
17840         * modules/unistr/u32-mbtouc: Likewise.
17841         * modules/unistr/u32-mbtouc-unsafe: Likewise.
17842         * modules/unistr/u32-mbtoucr: Likewise.
17843         * modules/unistr/u32-move: Likewise.
17844         * modules/unistr/u32-next: Likewise.
17845         * modules/unistr/u32-prev: Likewise.
17846         * modules/unistr/u32-set: Likewise.
17847         * modules/unistr/u32-startswith: Likewise.
17848         * modules/unistr/u32-stpcpy: Likewise.
17849         * modules/unistr/u32-stpncpy: Likewise.
17850         * modules/unistr/u32-strcat: Likewise.
17851         * modules/unistr/u32-strchr: Likewise.
17852         * modules/unistr/u32-strcmp: Likewise.
17853         * modules/unistr/u32-strcoll: Likewise.
17854         * modules/unistr/u32-strcpy: Likewise.
17855         * modules/unistr/u32-strcspn: Likewise.
17856         * modules/unistr/u32-strdup: Likewise.
17857         * modules/unistr/u32-strlen: Likewise.
17858         * modules/unistr/u32-strmblen: Likewise.
17859         * modules/unistr/u32-strmbtouc: Likewise.
17860         * modules/unistr/u32-strncat: Likewise.
17861         * modules/unistr/u32-strncmp: Likewise.
17862         * modules/unistr/u32-strncpy: Likewise.
17863         * modules/unistr/u32-strnlen: Likewise.
17864         * modules/unistr/u32-strpbrk: Likewise.
17865         * modules/unistr/u32-strrchr: Likewise.
17866         * modules/unistr/u32-strspn: Likewise.
17867         * modules/unistr/u32-strstr: Likewise.
17868         * modules/unistr/u32-strtok: Likewise.
17869         * modules/unistr/u32-to-u16: Likewise.
17870         * modules/unistr/u32-to-u8: Likewise.
17871         * modules/unistr/u32-uctomb: Likewise.
17872         * modules/uniwbrk/u8-wordbreaks: Likewise.
17873         * modules/uniwbrk/u16-wordbreaks: Likewise.
17874         * modules/uniwbrk/u32-wordbreaks: Likewise.
17875         * modules/uniwbrk/ulc-wordbreaks: Likewise.
17876         * modules/uniwbrk/wordbreak-property: Likewise.
17877         * modules/uniwidth/u8-strwidth: Likewise.
17878         * modules/uniwidth/u8-width: Likewise.
17879         * modules/uniwidth/u16-strwidth: Likewise.
17880         * modules/uniwidth/u16-width: Likewise.
17881         * modules/uniwidth/u32-strwidth: Likewise.
17882         * modules/uniwidth/u32-width: Likewise.
17883         * modules/uniwidth/width: Likewise.
17884         * modules/unicase/cased-tests (Makefile.am): Link all test programs
17885         with $(LIBUNISTRING).
17886         * modules/unicase/ignorable-tests: Likewise.
17887         * modules/unicase/locale-language-tests: Likewise.
17888         * modules/unicase/tolower-tests: Likewise.
17889         * modules/unicase/totitle-tests: Likewise.
17890         * modules/unicase/toupper-tests: Likewise.
17891         * modules/unicase/u8-casecmp-tests: Likewise.
17892         * modules/unicase/u8-casecoll-tests: Likewise.
17893         * modules/unicase/u8-casefold-tests: Likewise.
17894         * modules/unicase/u8-is-cased-tests: Likewise.
17895         * modules/unicase/u8-is-casefolded-tests: Likewise.
17896         * modules/unicase/u8-is-lowercase-tests: Likewise.
17897         * modules/unicase/u8-is-titlecase-tests: Likewise.
17898         * modules/unicase/u8-is-uppercase-tests: Likewise.
17899         * modules/unicase/u8-tolower-tests: Likewise.
17900         * modules/unicase/u8-totitle-tests: Likewise.
17901         * modules/unicase/u8-toupper-tests: Likewise.
17902         * modules/unicase/u16-casecmp-tests: Likewise.
17903         * modules/unicase/u16-casecoll-tests: Likewise.
17904         * modules/unicase/u16-casefold-tests: Likewise.
17905         * modules/unicase/u16-is-cased-tests: Likewise.
17906         * modules/unicase/u16-is-casefolded-tests: Likewise.
17907         * modules/unicase/u16-is-lowercase-tests: Likewise.
17908         * modules/unicase/u16-is-titlecase-tests: Likewise.
17909         * modules/unicase/u16-is-uppercase-tests: Likewise.
17910         * modules/unicase/u16-tolower-tests: Likewise.
17911         * modules/unicase/u16-totitle-tests: Likewise.
17912         * modules/unicase/u16-toupper-tests: Likewise.
17913         * modules/unicase/u32-casecmp-tests: Likewise.
17914         * modules/unicase/u32-casecoll-tests: Likewise.
17915         * modules/unicase/u32-casefold-tests: Likewise.
17916         * modules/unicase/u32-is-cased-tests: Likewise.
17917         * modules/unicase/u32-is-casefolded-tests: Likewise.
17918         * modules/unicase/u32-is-lowercase-tests: Likewise.
17919         * modules/unicase/u32-is-titlecase-tests: Likewise.
17920         * modules/unicase/u32-is-uppercase-tests: Likewise.
17921         * modules/unicase/u32-tolower-tests: Likewise.
17922         * modules/unicase/u32-totitle-tests: Likewise.
17923         * modules/unicase/u32-toupper-tests: Likewise.
17924         * modules/unicase/ulc-casecmp-tests: Likewise.
17925         * modules/unicase/ulc-casecoll-tests: Likewise.
17926         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
17927         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
17928         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
17929         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
17930         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
17931         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
17932         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
17933         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
17934         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
17935         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
17936         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
17937         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
17938         * modules/unictype/bidicategory-byname-tests: Likewise.
17939         * modules/unictype/bidicategory-name-tests: Likewise.
17940         * modules/unictype/bidicategory-of-tests: Likewise.
17941         * modules/unictype/bidicategory-test-tests: Likewise.
17942         * modules/unictype/block-list-tests: Likewise.
17943         * modules/unictype/block-of-tests: Likewise.
17944         * modules/unictype/block-test-tests: Likewise.
17945         * modules/unictype/category-C-tests: Likewise.
17946         * modules/unictype/category-Cc-tests: Likewise.
17947         * modules/unictype/category-Cf-tests: Likewise.
17948         * modules/unictype/category-Cn-tests: Likewise.
17949         * modules/unictype/category-Co-tests: Likewise.
17950         * modules/unictype/category-Cs-tests: Likewise.
17951         * modules/unictype/category-L-tests: Likewise.
17952         * modules/unictype/category-Ll-tests: Likewise.
17953         * modules/unictype/category-Lm-tests: Likewise.
17954         * modules/unictype/category-Lo-tests: Likewise.
17955         * modules/unictype/category-Lt-tests: Likewise.
17956         * modules/unictype/category-Lu-tests: Likewise.
17957         * modules/unictype/category-M-tests: Likewise.
17958         * modules/unictype/category-Mc-tests: Likewise.
17959         * modules/unictype/category-Me-tests: Likewise.
17960         * modules/unictype/category-Mn-tests: Likewise.
17961         * modules/unictype/category-N-tests: Likewise.
17962         * modules/unictype/category-Nd-tests: Likewise.
17963         * modules/unictype/category-Nl-tests: Likewise.
17964         * modules/unictype/category-No-tests: Likewise.
17965         * modules/unictype/category-P-tests: Likewise.
17966         * modules/unictype/category-Pc-tests: Likewise.
17967         * modules/unictype/category-Pd-tests: Likewise.
17968         * modules/unictype/category-Pe-tests: Likewise.
17969         * modules/unictype/category-Pf-tests: Likewise.
17970         * modules/unictype/category-Pi-tests: Likewise.
17971         * modules/unictype/category-Po-tests: Likewise.
17972         * modules/unictype/category-Ps-tests: Likewise.
17973         * modules/unictype/category-S-tests: Likewise.
17974         * modules/unictype/category-Sc-tests: Likewise.
17975         * modules/unictype/category-Sk-tests: Likewise.
17976         * modules/unictype/category-Sm-tests: Likewise.
17977         * modules/unictype/category-So-tests: Likewise.
17978         * modules/unictype/category-Z-tests: Likewise.
17979         * modules/unictype/category-Zl-tests: Likewise.
17980         * modules/unictype/category-Zp-tests: Likewise.
17981         * modules/unictype/category-Zs-tests: Likewise.
17982         * modules/unictype/category-and-not-tests: Likewise.
17983         * modules/unictype/category-and-tests: Likewise.
17984         * modules/unictype/category-byname-tests: Likewise.
17985         * modules/unictype/category-name-tests: Likewise.
17986         * modules/unictype/category-none-tests: Likewise.
17987         * modules/unictype/category-of-tests: Likewise.
17988         * modules/unictype/category-or-tests: Likewise.
17989         * modules/unictype/category-test-withtable-tests: Likewise.
17990         * modules/unictype/combining-class-tests: Likewise.
17991         * modules/unictype/ctype-alnum-tests: Likewise.
17992         * modules/unictype/ctype-alpha-tests: Likewise.
17993         * modules/unictype/ctype-blank-tests: Likewise.
17994         * modules/unictype/ctype-cntrl-tests: Likewise.
17995         * modules/unictype/ctype-digit-tests: Likewise.
17996         * modules/unictype/ctype-graph-tests: Likewise.
17997         * modules/unictype/ctype-lower-tests: Likewise.
17998         * modules/unictype/ctype-print-tests: Likewise.
17999         * modules/unictype/ctype-punct-tests: Likewise.
18000         * modules/unictype/ctype-space-tests: Likewise.
18001         * modules/unictype/ctype-upper-tests: Likewise.
18002         * modules/unictype/ctype-xdigit-tests: Likewise.
18003         * modules/unictype/decimal-digit-tests: Likewise.
18004         * modules/unictype/digit-tests: Likewise.
18005         * modules/unictype/mirror-tests: Likewise.
18006         * modules/unictype/numeric-tests: Likewise.
18007         * modules/unictype/property-alphabetic-tests: Likewise.
18008         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
18009         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
18010         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
18011         * modules/unictype/property-bidi-block-separator-tests: Likewise.
18012         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
18013         * modules/unictype/property-bidi-common-separator-tests: Likewise.
18014         * modules/unictype/property-bidi-control-tests: Likewise.
18015         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
18016         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
18017         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
18018         * modules/unictype/property-bidi-european-digit-tests: Likewise.
18019         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
18020         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
18021         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
18022         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
18023         * modules/unictype/property-bidi-pdf-tests: Likewise.
18024         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
18025         * modules/unictype/property-bidi-whitespace-tests: Likewise.
18026         * modules/unictype/property-byname-tests: Likewise.
18027         * modules/unictype/property-combining-tests: Likewise.
18028         * modules/unictype/property-composite-tests: Likewise.
18029         * modules/unictype/property-currency-symbol-tests: Likewise.
18030         * modules/unictype/property-dash-tests: Likewise.
18031         * modules/unictype/property-decimal-digit-tests: Likewise.
18032         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
18033         * modules/unictype/property-deprecated-tests: Likewise.
18034         * modules/unictype/property-diacritic-tests: Likewise.
18035         * modules/unictype/property-extender-tests: Likewise.
18036         * modules/unictype/property-format-control-tests: Likewise.
18037         * modules/unictype/property-grapheme-base-tests: Likewise.
18038         * modules/unictype/property-grapheme-extend-tests: Likewise.
18039         * modules/unictype/property-grapheme-link-tests: Likewise.
18040         * modules/unictype/property-hex-digit-tests: Likewise.
18041         * modules/unictype/property-hyphen-tests: Likewise.
18042         * modules/unictype/property-id-continue-tests: Likewise.
18043         * modules/unictype/property-id-start-tests: Likewise.
18044         * modules/unictype/property-ideographic-tests: Likewise.
18045         * modules/unictype/property-ids-binary-operator-tests: Likewise.
18046         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
18047         * modules/unictype/property-ignorable-control-tests: Likewise.
18048         * modules/unictype/property-iso-control-tests: Likewise.
18049         * modules/unictype/property-join-control-tests: Likewise.
18050         * modules/unictype/property-left-of-pair-tests: Likewise.
18051         * modules/unictype/property-line-separator-tests: Likewise.
18052         * modules/unictype/property-logical-order-exception-tests: Likewise.
18053         * modules/unictype/property-lowercase-tests: Likewise.
18054         * modules/unictype/property-math-tests: Likewise.
18055         * modules/unictype/property-non-break-tests: Likewise.
18056         * modules/unictype/property-not-a-character-tests: Likewise.
18057         * modules/unictype/property-numeric-tests: Likewise.
18058         * modules/unictype/property-other-alphabetic-tests: Likewise.
18059         * modules/unictype/property-other-default-ignorable-code-point-tests:
18060         Likewise.
18061         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
18062         * modules/unictype/property-other-id-continue-tests: Likewise.
18063         * modules/unictype/property-other-id-start-tests: Likewise.
18064         * modules/unictype/property-other-lowercase-tests: Likewise.
18065         * modules/unictype/property-other-math-tests: Likewise.
18066         * modules/unictype/property-other-uppercase-tests: Likewise.
18067         * modules/unictype/property-paired-punctuation-tests: Likewise.
18068         * modules/unictype/property-paragraph-separator-tests: Likewise.
18069         * modules/unictype/property-pattern-syntax-tests: Likewise.
18070         * modules/unictype/property-pattern-white-space-tests: Likewise.
18071         * modules/unictype/property-private-use-tests: Likewise.
18072         * modules/unictype/property-punctuation-tests: Likewise.
18073         * modules/unictype/property-quotation-mark-tests: Likewise.
18074         * modules/unictype/property-radical-tests: Likewise.
18075         * modules/unictype/property-sentence-terminal-tests: Likewise.
18076         * modules/unictype/property-soft-dotted-tests: Likewise.
18077         * modules/unictype/property-space-tests: Likewise.
18078         * modules/unictype/property-terminal-punctuation-tests: Likewise.
18079         * modules/unictype/property-test-tests: Likewise.
18080         * modules/unictype/property-titlecase-tests: Likewise.
18081         * modules/unictype/property-unassigned-code-value-tests: Likewise.
18082         * modules/unictype/property-unified-ideograph-tests: Likewise.
18083         * modules/unictype/property-uppercase-tests: Likewise.
18084         * modules/unictype/property-variation-selector-tests: Likewise.
18085         * modules/unictype/property-white-space-tests: Likewise.
18086         * modules/unictype/property-xid-continue-tests: Likewise.
18087         * modules/unictype/property-xid-start-tests: Likewise.
18088         * modules/unictype/property-zero-width-tests: Likewise.
18089         * modules/unictype/scripts-tests: Likewise.
18090         * modules/unictype/syntax-c-ident-tests: Likewise.
18091         * modules/unictype/syntax-c-whitespace-tests: Likewise.
18092         * modules/unictype/syntax-java-ident-tests: Likewise.
18093         * modules/unictype/syntax-java-whitespace-tests: Likewise.
18094         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
18095         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
18096         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
18097         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
18098         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
18099         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
18100         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
18101         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
18102         * modules/uniname/uniname-tests: Likewise.
18103         * modules/uninorm/canonical-decomposition-tests: Likewise.
18104         * modules/uninorm/compat-decomposition-tests: Likewise.
18105         * modules/uninorm/composition-tests: Likewise.
18106         * modules/uninorm/decomposing-form-tests: Likewise.
18107         * modules/uninorm/decomposition-tests: Likewise.
18108         * modules/uninorm/filter-tests: Likewise.
18109         * modules/uninorm/nfc-tests: Likewise.
18110         * modules/uninorm/nfd-tests: Likewise.
18111         * modules/uninorm/nfkc-tests: Likewise.
18112         * modules/uninorm/nfkd-tests: Likewise.
18113         * modules/uninorm/u8-normcmp-tests: Likewise.
18114         * modules/uninorm/u8-normcoll-tests: Likewise.
18115         * modules/uninorm/u16-normcmp-tests: Likewise.
18116         * modules/uninorm/u16-normcoll-tests: Likewise.
18117         * modules/uninorm/u32-normcmp-tests: Likewise.
18118         * modules/uninorm/u32-normcoll-tests: Likewise.
18119         * modules/unistdio/u8-asnprintf-tests: Likewise.
18120         * modules/unistdio/u8-vasnprintf-tests: Likewise.
18121         * modules/unistdio/u8-vasprintf-tests: Likewise.
18122         * modules/unistdio/u8-vsnprintf-tests: Likewise.
18123         * modules/unistdio/u8-vsprintf-tests: Likewise.
18124         * modules/unistdio/u16-asnprintf-tests: Likewise.
18125         * modules/unistdio/u16-vasnprintf-tests: Likewise.
18126         * modules/unistdio/u16-vasprintf-tests: Likewise.
18127         * modules/unistdio/u16-vsnprintf-tests: Likewise.
18128         * modules/unistdio/u16-vsprintf-tests: Likewise.
18129         * modules/unistdio/u32-asnprintf-tests: Likewise.
18130         * modules/unistdio/u32-vasnprintf-tests: Likewise.
18131         * modules/unistdio/u32-vasprintf-tests: Likewise.
18132         * modules/unistdio/u32-vsnprintf-tests: Likewise.
18133         * modules/unistdio/u32-vsprintf-tests: Likewise.
18134         * modules/unistdio/ulc-asnprintf-tests: Likewise.
18135         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
18136         * modules/unistdio/ulc-vasprintf-tests: Likewise.
18137         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
18138         * modules/unistdio/ulc-vsprintf-tests: Likewise.
18139         * modules/unistr/u8-check-tests: Likewise.
18140         * modules/unistr/u8-chr-tests: Likewise.
18141         * modules/unistr/u8-cmp-tests: Likewise.
18142         * modules/unistr/u8-cmp2-tests: Likewise.
18143         * modules/unistr/u8-cpy-alloc-tests: Likewise.
18144         * modules/unistr/u8-cpy-tests: Likewise.
18145         * modules/unistr/u8-mblen-tests: Likewise.
18146         * modules/unistr/u8-mbsnlen-tests: Likewise.
18147         * modules/unistr/u8-mbtouc-tests: Likewise.
18148         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
18149         * modules/unistr/u8-mbtoucr-tests: Likewise.
18150         * modules/unistr/u8-move-tests: Likewise.
18151         * modules/unistr/u8-next-tests: Likewise.
18152         * modules/unistr/u8-prev-tests: Likewise.
18153         * modules/unistr/u8-set-tests: Likewise.
18154         * modules/unistr/u8-stpcpy-tests: Likewise.
18155         * modules/unistr/u8-stpncpy-tests: Likewise.
18156         * modules/unistr/u8-strcat-tests: Likewise.
18157         * modules/unistr/u8-strcmp-tests: Likewise.
18158         * modules/unistr/u8-strcoll-tests: Likewise.
18159         * modules/unistr/u8-strcpy-tests: Likewise.
18160         * modules/unistr/u8-strdup-tests: Likewise.
18161         * modules/unistr/u8-strlen-tests: Likewise.
18162         * modules/unistr/u8-strmblen-tests: Likewise.
18163         * modules/unistr/u8-strmbtouc-tests: Likewise.
18164         * modules/unistr/u8-strncat-tests: Likewise.
18165         * modules/unistr/u8-strncmp-tests: Likewise.
18166         * modules/unistr/u8-strncpy-tests: Likewise.
18167         * modules/unistr/u8-strnlen-tests: Likewise.
18168         * modules/unistr/u8-to-u16-tests: Likewise.
18169         * modules/unistr/u8-to-u32-tests: Likewise.
18170         * modules/unistr/u8-uctomb-tests: Likewise.
18171         * modules/unistr/u16-check-tests: Likewise.
18172         * modules/unistr/u16-chr-tests: Likewise.
18173         * modules/unistr/u16-cmp-tests: Likewise.
18174         * modules/unistr/u16-cmp2-tests: Likewise.
18175         * modules/unistr/u16-cpy-alloc-tests: Likewise.
18176         * modules/unistr/u16-cpy-tests: Likewise.
18177         * modules/unistr/u16-mblen-tests: Likewise.
18178         * modules/unistr/u16-mbsnlen-tests: Likewise.
18179         * modules/unistr/u16-mbtouc-tests: Likewise.
18180         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
18181         * modules/unistr/u16-mbtoucr-tests: Likewise.
18182         * modules/unistr/u16-move-tests: Likewise.
18183         * modules/unistr/u16-next-tests: Likewise.
18184         * modules/unistr/u16-prev-tests: Likewise.
18185         * modules/unistr/u16-set-tests: Likewise.
18186         * modules/unistr/u16-stpcpy-tests: Likewise.
18187         * modules/unistr/u16-stpncpy-tests: Likewise.
18188         * modules/unistr/u16-strcat-tests: Likewise.
18189         * modules/unistr/u16-strcmp-tests: Likewise.
18190         * modules/unistr/u16-strcoll-tests: Likewise.
18191         * modules/unistr/u16-strcpy-tests: Likewise.
18192         * modules/unistr/u16-strdup-tests: Likewise.
18193         * modules/unistr/u16-strlen-tests: Likewise.
18194         * modules/unistr/u16-strmblen-tests: Likewise.
18195         * modules/unistr/u16-strmbtouc-tests: Likewise.
18196         * modules/unistr/u16-strncat-tests: Likewise.
18197         * modules/unistr/u16-strncmp-tests: Likewise.
18198         * modules/unistr/u16-strncpy-tests: Likewise.
18199         * modules/unistr/u16-strnlen-tests: Likewise.
18200         * modules/unistr/u16-to-u32-tests: Likewise.
18201         * modules/unistr/u16-to-u8-tests: Likewise.
18202         * modules/unistr/u16-uctomb-tests: Likewise.
18203         * modules/unistr/u32-check-tests: Likewise.
18204         * modules/unistr/u32-chr-tests: Likewise.
18205         * modules/unistr/u32-cmp-tests: Likewise.
18206         * modules/unistr/u32-cmp2-tests: Likewise.
18207         * modules/unistr/u32-cpy-alloc-tests: Likewise.
18208         * modules/unistr/u32-cpy-tests: Likewise.
18209         * modules/unistr/u32-mblen-tests: Likewise.
18210         * modules/unistr/u32-mbsnlen-tests: Likewise.
18211         * modules/unistr/u32-mbtouc-tests: Likewise.
18212         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
18213         * modules/unistr/u32-mbtoucr-tests: Likewise.
18214         * modules/unistr/u32-move-tests: Likewise.
18215         * modules/unistr/u32-next-tests: Likewise.
18216         * modules/unistr/u32-prev-tests: Likewise.
18217         * modules/unistr/u32-set-tests: Likewise.
18218         * modules/unistr/u32-stpcpy-tests: Likewise.
18219         * modules/unistr/u32-stpncpy-tests: Likewise.
18220         * modules/unistr/u32-strcat-tests: Likewise.
18221         * modules/unistr/u32-strcmp-tests: Likewise.
18222         * modules/unistr/u32-strcoll-tests: Likewise.
18223         * modules/unistr/u32-strcpy-tests: Likewise.
18224         * modules/unistr/u32-strdup-tests: Likewise.
18225         * modules/unistr/u32-strlen-tests: Likewise.
18226         * modules/unistr/u32-strmblen-tests: Likewise.
18227         * modules/unistr/u32-strmbtouc-tests: Likewise.
18228         * modules/unistr/u32-strncat-tests: Likewise.
18229         * modules/unistr/u32-strncmp-tests: Likewise.
18230         * modules/unistr/u32-strncpy-tests: Likewise.
18231         * modules/unistr/u32-strnlen-tests: Likewise.
18232         * modules/unistr/u32-to-u16-tests: Likewise.
18233         * modules/unistr/u32-to-u8-tests: Likewise.
18234         * modules/unistr/u32-uctomb-tests: Likewise.
18235         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
18236         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
18237         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
18238         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
18239         * modules/uniwidth/u8-strwidth-tests: Likewise.
18240         * modules/uniwidth/u8-width-tests: Likewise.
18241         * modules/uniwidth/u16-strwidth-tests: Likewise.
18242         * modules/uniwidth/u16-width-tests: Likewise.
18243         * modules/uniwidth/u32-strwidth-tests: Likewise.
18244         * modules/uniwidth/u32-width-tests: Likewise.
18245         * modules/uniwidth/width-tests: Likewise.
18246
18247 2010-05-18  Richard Jones  <rjones@redhat.com>
18248
18249         doc: users.txt: list hivex
18250         * users.txt: Add hivex.
18251
18252 2010-05-18  Richard Jones  <rjones@redhat.com>
18253
18254         doc: users.txt: list febootstrap
18255         * users.txt: Add febootstrap.
18256
18257 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
18258
18259         bootstrap: fix an error when gnulib is not used as a git submodule
18260         * build-aux/bootstrap (gnulib_path): If its length is zero then
18261         assign "gnulib" to it.
18262         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
18263
18264 2010-05-16  Bruno Haible  <bruno@clisp.org>
18265
18266         Avoid autoconf warnings about AM_ICONV.
18267         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
18268         2.64.
18269
18270 2010-05-16  Bruno Haible  <bruno@clisp.org>
18271
18272         absolute-header: Make the macro usable in more situations.
18273         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
18274         from gl_ABSOLUTE_HEADER.
18275         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
18276
18277 2010-05-16  James Youngman  <jay@gnu.org>
18278
18279         doc: update users.txt
18280         * users.txt: Add CSSC.
18281
18282 2010-05-16  Jim Meyering  <meyering@redhat.com>
18283
18284         init.sh: fix an error in the previous change; add more comments
18285         * tests/init.sh: Compare exit code in loop against 9, not 2.
18286         Patch by Bruno Haible.
18287         Make the two tests more similar by adding an empty "then" clause.
18288         Add comments.
18289
18290         init.sh: avoid unnecessary shell re-exec
18291         * tests/init.sh: Improve the re-exec-required check to first test the
18292         current shell.  If it passes the test, do not search for a shell that
18293         does pass, and do not re-exec.  This test is particularly contorted to
18294         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
18295         of $(...) evokes a syntax error and causes immediate shell exit with
18296         status 2.  Bruno Haible reported that the re-exec made it impossible
18297         to single-step through any init.sh-using script.
18298
18299 2010-05-16  Bruno Haible  <bruno@clisp.org>
18300
18301         Fix collision between gnulib's and libintl's printf replacements.
18302         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
18303         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
18304         (printf): When using GNU C, map the __printf__ function to rpl_printf
18305         via __asm__. When not using GNU C, define rpl_printf instead of
18306         __printf__.
18307         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
18308         commit.
18309         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
18310         commit.
18311         * m4/asm-underscore.m4: New file.
18312         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
18313         * modules/stdio (Files): Add m4/asm-underscore.m4.
18314         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
18315         Reported by Ben Pfaff.
18316
18317 2010-05-16  Bruno Haible  <bruno@clisp.org>
18318
18319         verify: Avoid skipping the test on openSUSE 11.0.
18320         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
18321
18322 2010-05-13  Bruno Haible  <bruno@clisp.org>
18323
18324         Avoid useless warnings from G++.
18325         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
18326         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
18327         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18328
18329 2010-05-11  Jim Meyering  <meyering@redhat.com>
18330
18331         maint.mk: tweak preceding change
18332         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
18333         regexps tighter by anchoring at EOL, and make the new group "shy"
18334         for slightly decreased overhead.
18335
18336 2010-05-11  Eric Blake  <eblake@redhat.com>
18337
18338         maint.mk: gnulib doesn't guarantee NSIG
18339         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
18340
18341 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
18342
18343         test-pwrite.c: Remove unused variable declaration.
18344         * tests/test-pwrite.c (main): Remove read_buf declaration.
18345
18346         Remove useless test-pwrite.sh file.
18347         * tests/test-pwrite.sh: Delete file.
18348         * modules/pwrite-tests: Remove references.
18349         Reported by Bruno Haible.
18350
18351 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
18352
18353         init.sh: fix a typo
18354         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
18355
18356 2010-05-10  Jim Meyering  <meyering@redhat.com>
18357
18358         maint.mk: avoid using a temporary file in the always-defined-macros check
18359         * top/maint.mk (.re-defmac): Remove rule.
18360         (gl_trap_): Remove definition.
18361         (sc_prohibit_always-defined_macros): Rewrite not to create and
18362         depend on a temporary file.  Instead, depend on GNU grep's ability
18363         to read a list of regular expressions from stdin when given "-f -".
18364
18365 2010-05-09  Bruno Haible  <bruno@clisp.org>
18366
18367         Update to GNU gettext 0.18, part 1.
18368         * m4/gettext.m4: Update to GNU gettext 0.18.
18369         * m4/intl.m4: Likewise.
18370         * m4/po.m4: Likewise.
18371         * modules/gettext (Files): Add m4/fcntl-o.m4.
18372         (configure.ac): Require gettext infrastructure from version 0.18.
18373
18374 2010-05-09  Jim Meyering  <meyering@redhat.com>
18375
18376         init.sh: enable MALLOC_PERTURB_
18377         * tests/init.sh: Enable glibc's malloc-perturbing option.
18378
18379         maint.mk: improve sc_cross_check_PATH_usage_in_tests
18380         With my recent change in init.sh from the two-line form:
18381             -#   : ${srcdir=.}
18382             -#   . "$srcdir/init.sh"; path_prepend_ .
18383             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
18384         I noticed that using the one-line form would cause this test
18385         to fail with a false-positive, or to stop working altogether,
18386         depending on whether help-version changed or all the tests did.
18387         * top/maint.mk (_hv_regex): Remove this definition.
18388         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
18389         (_hv_regex_strong): Use a stronger regex to check for conformance.
18390         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
18391         Give a separate diagnostic for lack of conforming use.
18392
18393         maint.mk: prohibit definition of symbols defined by gnulib
18394         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
18395         definition of symbols defined by gnulib.
18396
18397 2010-05-09  Bruno Haible  <bruno@clisp.org>
18398
18399         acl: Avoid test failure on Cygwin-hosted mingw.
18400         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
18401
18402 2010-05-09  Bruno Haible  <bruno@clisp.org>
18403
18404         error: Use system's fcntl function.
18405         * lib/error.c (fcntl): Undefine.
18406
18407 2010-05-09  Jim Meyering  <meyering@redhat.com>
18408
18409         verify: adjust formatting to be more consistent
18410         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
18411         argument-list '('s, and after one comma.
18412
18413 2010-05-09  Bruno Haible  <bruno@clisp.org>
18414
18415         error: More reliable output on mingw.
18416         * lib/error.c: Include <windows.h>.
18417         (is_open): New function.
18418         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
18419         defined.
18420
18421 2010-05-09  Bruno Haible  <bruno@clisp.org>
18422
18423         vasnprintf: Fix syntax errors in libintl build on mingw.
18424         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
18425         pad_ourselves and prec_ourselves after use.
18426
18427 2010-05-08  Bruno Haible  <bruno@clisp.org>
18428
18429         * lib/config.charset: Update comments for Cygwin 1.7.
18430         * lib/localcharset.c: Likewise.
18431
18432 2010-05-07  Jim Meyering  <meyering@redhat.com>
18433
18434         init.sh: improve comments
18435         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
18436         . "${srcdir=.}/init.sh"; path_prepend_ .
18437         Add a note about path_prepend_ and the alternative of using
18438         TESTS_ENVIRONMENT.
18439
18440 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
18441
18442         exclude: Unescape hashed patterns in wildcard mode.
18443         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
18444         to the hash list.
18445         * tests/test-exclude8.sh: New test case.
18446         * modules/exclude-tests: Add new test.
18447
18448 2010-05-05  Eric Blake  <eblake@redhat.com>
18449
18450         verify: automate tests
18451         * modules/verify-tests: New module.
18452         * tests/test-verify.sh: New file.
18453         * tests/test-verify.c: Guard each negative test with a unique id.
18454         Also avoid warning about unused left hand of comma expressions.
18455
18456 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18457
18458         Further improvements to verify.h, suggested by Eric Blake.
18459         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
18460         the GL_* versions, to avoid collision with OpenGL.
18461         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
18462         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
18463         than testing merely whether it's defined.
18464
18465         Modify verify.h to pacify gcc -Wredundant_decls.
18466         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
18467         These use the prefix "GL_" since they're likely to be useful elsewhere.
18468         We may need to break them out into a different .h file.
18469         (__COUNTER__): Define to 0 if the compiler doesn't support it.
18470         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
18471         of verify_function__.
18472
18473 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
18474
18475         Tests for module pwrite.
18476         * modules/pwrite-tests: New file.
18477         * tests/test-pwrite.sh: New file.
18478         * tests/test-pwrite.c: New file.
18479
18480         New module pwrite.
18481         * lib/unistd.in.h (pwrite): New declaration.
18482         * lib/pwrite.c: New file, from glibc with modifications.
18483         * m4/pwrite.m4: New file.
18484         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
18485         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
18486         REPLACE_PWRITE.
18487         * modules/pwrite: New file.
18488         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
18489         REPLACE_PWRITE.
18490         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
18491         * doc/posix-functions/pwrite.texi: Mention the new module.
18492
18493 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
18494
18495         pread: Update documentation.
18496         * doc/posix-functions/pread.texi: Mention the 'pread' module.
18497
18498 2010-05-04  Eric Blake  <eblake@redhat.com>
18499
18500         docs: update cygwin progress
18501         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
18502         this bug.
18503         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
18504         Added in cygwin 1.7.2.
18505         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
18506         Likewise.
18507         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
18508         Likewise.
18509         * doc/glibc-functions/dup3.texi (dup3): Likewise.
18510         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
18511         * doc/glibc-functions/accept4.texi (accept4): Likewise.
18512         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
18513         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
18514         Mention nproc module.
18515         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
18516         bug in cygwin 1.7.5 addition.
18517         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
18518         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
18519         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
18520         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
18521         1.7.5.
18522         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
18523         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
18524         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
18525         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
18526         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
18527         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
18528         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
18529         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
18530         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
18531         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
18532         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
18533         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
18534         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
18535         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
18536         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
18537         Likewise.
18538         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
18539         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
18540         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
18541         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
18542         Likewise.
18543         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
18544         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
18545         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
18546         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
18547         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
18548         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
18549         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
18550         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
18551         Likewise.
18552         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
18553         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
18554         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
18555         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
18556         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
18557         Likewise.
18558         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
18559         Likewise.
18560         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
18561         Likewise.
18562         * doc/glibc-functions/xdrrec_endofrecord.texi
18563         (xdrrec_endofrecord): Likewise.
18564         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
18565         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
18566         Likewise.
18567         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
18568         Likewise.
18569
18570 2010-05-04  Jim Meyering  <meyering@redhat.com>
18571
18572         gendocs.sh: make its "-s FILE" option more useful
18573         * build-aux/gendocs.sh: When honoring the -s FILE option, update
18574         $PACKAGE to reflect the probably-different basename of "FILE".
18575
18576 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
18577
18578         bootstrap: don't ignore download_po_files failure
18579         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
18580         failure.
18581
18582 2010-05-03  Jim Meyering  <meyering@redhat.com>
18583
18584         maint.mk: allow to pass options to gendocs.sh
18585         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
18586         (gendocs_options_): New overridable variable.
18587
18588         gnu-web-doc-update: don't ignore configure or build failure
18589         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
18590
18591         announce-gen: backslash-escape '@'s in --help output
18592         * build-aux/announce-gen: Fix syntax errors.
18593
18594         maint.mk, announce-gen: allow project-specific announcement mail headers
18595         * top/maint.mk (translation_project_): Define default.
18596         (announcement_Cc_, announcement_mail_headers_): Likewise.
18597         (announcement): Invoke announce-gen with new --mail-headers option.
18598         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
18599
18600         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
18601         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
18602         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
18603         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
18604         line in the "err2" output file when running "make check" in verbose
18605         mode (i.e., with set -x enabled).
18606
18607 2010-05-03  Bruno Haible  <bruno@clisp.org>
18608
18609         wctob: Fix for weird platforms.
18610         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
18611         argument value.
18612
18613 2010-05-03  Jim Meyering  <meyering@redhat.com>
18614
18615         maint.mk: prohibit unwarranted use of <strings.h>
18616         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
18617         strings.h in a file that does not also use strcasecmp, strncasecmp,
18618         ffs or ffsll.
18619
18620         maint.mk: remove obsolete comments
18621         * top/maint.mk: Remove stale, commented-out rules.
18622
18623 2010-05-02  Bruno Haible  <bruno@clisp.org>
18624
18625         wcwidth: Declare also when it's aliased.
18626         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
18627         macro.
18628
18629 2010-05-02  Bruno Haible  <bruno@clisp.org>
18630
18631         Fix regression from 2010-04-25.
18632         * gnulib-tool (func_modules_transitive_closure): Check the status of
18633         all modules, not only of the tests that are of the form foo-tests where
18634         foo is a module.
18635
18636 2010-05-02  Bruno Haible  <bruno@clisp.org>
18637
18638         wctob: Work around nasty Cygwin 1.7.2 bug.
18639         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
18640         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
18641
18642 2010-05-01  Bruno Haible  <bruno@clisp.org>
18643
18644         fpurge: Sharper test.
18645         * tests/test-fpurge.c (main): Add one more ftell check.
18646         * modules/fpurge-tests (Depends-on): Add ftell.
18647         Suggested by Eric Blake.
18648
18649 2010-05-01  Bruno Haible  <bruno@clisp.org>
18650
18651         ftello: Another test.
18652         * tests/test-ftello3.c: New file.
18653         * modules/ftello-tests (Files): Add it.
18654         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
18655         MOSTLYCLEANFILES.
18656
18657         ftell: Another test.
18658         * tests/test-ftell3.c: New file.
18659         * modules/ftell-tests (Files): Add it.
18660         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
18661         MOSTLYCLEANFILES.
18662
18663 2010-05-01  Bruno Haible  <bruno@clisp.org>
18664
18665         ftell, ftello: Work around Solaris bug.
18666         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
18667         * lib/ftello.c: Include stdio-impl.h.
18668         (ftello): On Solaris, when _IOWRT is set, compute the result without
18669         looking at _IOREAD.
18670         * modules/ftello (Files): Add lib/stdio-impl.h.
18671         * doc/posix-functions/ftell.texi: Mention Solaris bug.
18672         * doc/posix-functions/ftello.texi: Likewise.
18673         Reported by Eric Blake.
18674
18675 2010-05-01  Bruno Haible  <bruno@clisp.org>
18676
18677         freading: Adapt to special meaning of _IOREAD flag on Solaris.
18678         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
18679         the _IOWRT flag is also set.
18680
18681 2010-05-01  Bruno Haible  <bruno@clisp.org>
18682
18683         Fix doc about a HP-UX stdio bug.
18684         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
18685         * doc/posix-functions/ftello.texi: Likewise.
18686
18687 2010-05-01  Bruno Haible  <bruno@clisp.org>
18688
18689         lseek test: Fix failure on Solaris.
18690         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
18691         output.
18692
18693 2010-04-30  Jim Meyering  <meyering@redhat.com>
18694
18695         bootstrap: don't ignore failure to generate po*/Makevars
18696         * build-aux/bootstrap (with_gettext): Don't ignore failure
18697         to create po/Makevars or runtime-po/Makevars.
18698
18699 2010-04-29  Eric Blake  <eblake@redhat.com>
18700
18701         headers: relax license to LGPLv2+
18702         * modules/fcntl-h (License): Relax license.
18703         * modules/getopt-posix (License): Likewise.
18704         * modules/locale (License): Likewise.
18705         * modules/math (License): Likewise.
18706         * modules/pty (License): Likewise.
18707         * modules/sched (License): Likewise.
18708         * modules/search (License): Likewise.
18709         * modules/spawn (License): Likewise.
18710         * modules/stdarg (License): Likewise.
18711         * modules/sysexits (License): Likewise.
18712
18713 2010-04-29  Jim Meyering  <meyering@redhat.com>
18714
18715         inttypes: relax license to LGPLv2+
18716         * modules/inttypes (License): Relax license.
18717
18718 2010-04-29  Simon Josefsson  <simon@josefsson.org>
18719
18720         * top/maint.mk (indent): Run twice to produce idempotent results.
18721
18722 2010-04-28  Bruno Haible  <bruno@clisp.org>
18723
18724         getdate: Generate getdate.c in the source directory.
18725         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
18726         MOSTLYCLEANFILES.
18727         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
18728
18729 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
18730
18731         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
18732         is not declared as a const *; avoid warnings in that case.
18733
18734 2010-04-28  Eric Blake  <eblake@redhat.com>
18735
18736         canonicalize-lgpl: avoid compiler warning
18737         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
18738         declaration' / 'extraneous semicolon' warning with some compilers.
18739         Reported by Andreas Gruenbacher.
18740
18741 2010-04-28  Jim Meyering  <meyering@redhat.com>
18742
18743         init.sh: ensure a more reliable exit status when exiting via trap
18744         * tests/init.sh (setup_): Don't rely on $? in signal handler.
18745         Inspired by patches from Dmitry V. Levin.
18746         Also trap on signal 3 (SIGQUIT).
18747
18748 2010-04-27  Bruno Haible  <bruno@clisp.org>
18749
18750         Update doc about utimes().
18751         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
18752         'utimens' module.
18753         Reported by Andreas Gruenbacher <agruen@suse.de>.
18754
18755 2010-04-27  Eric Blake  <eblake@redhat.com>
18756
18757         full-read, full-write: relax license
18758         * modules/full-read (License): Drop to LGPLv2+.
18759         * modules/full-write (License): Likewise.
18760         * modules/safe-read (License): Likewise.
18761         * modules/safe-write (License): Likewise.
18762
18763         pthread: mention library for linking
18764         * modules/pthread (Link): Mention $(LIB_PTHREAD).
18765
18766 2010-04-27  Jim Meyering  <meyering@redhat.com>
18767
18768         maint.mk: fix a bug introduced in last change
18769         * top/maint.mk (gl_assured_headers_): Now that all names are on
18770         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
18771         is not anchored to end of word, it should be adequate.
18772
18773         maint.mk: avoid side-effect in latest syntax-check
18774         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
18775         to run commands via $(shell...), and hence to incur cost only when
18776         the new rule is actually run.
18777
18778         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
18779         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
18780         and use that to create a regexp used to detect all #if HAVE_..._H uses.
18781         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
18782         (gl_assured_headers_, az_, AZ_): Define.
18783         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
18784
18785 2010-04-26  Jim Meyering  <jim@meyering.net>
18786             Bruno Haible  <bruno@clisp.org>
18787
18788         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
18789         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
18790         Prompted by an exchange with Gilles Espinasse.
18791
18792 2010-04-26  Jim Meyering  <meyering@redhat.com>
18793
18794         git-version-gen: aesthetic tweak
18795         * build-aux/git-version-gen: Use "$nl" rather than a literal,
18796         so that the command remains on a single line.
18797
18798 2010-04-26  Eric Blake  <eblake@redhat.com>
18799
18800         git-version-gen: allow use on EBCDIC hosts
18801         * build-aux/git-version-gen (dirty): Use literal rather than tying
18802         ourselves to ascii.
18803         Reported by Steve Goetze.
18804
18805 2010-04-25  Bruno Haible  <bruno@clisp.org>
18806
18807         netdb: Add support for GNULIB_POSIXCHECK.
18808         * lib/netdb.in.h: Include warn-on-use.h.
18809         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
18810         functions are used when GNULIB_POSIXCHECK is defined and the
18811         getaddrinfo module is not in use.
18812         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
18813         freeaddrinfo, gai_strerror, getnameinfo are declared.
18814         * modules/netdb (Depends-on): Add warn-on-use.
18815         (Makefile.am): Include warn-on-use.h in netdb.h.
18816
18817 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
18818
18819         build: avoid "make check" failure without .git/ directory
18820         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
18821         there is no .git/ directory.
18822
18823 2010-04-25  Bruno Haible  <bruno@clisp.org>
18824
18825         ptsname: Fix misuse of ttyname_r.
18826         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
18827         of errno.
18828
18829 2010-04-25  Bruno Haible  <bruno@clisp.org>
18830
18831         ttyname_r: Make it work on Solaris 10.
18832         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
18833         if the system function has the POSIX declaration. Test whether the
18834         function fails if the buffer is less than 128 bytes large.
18835         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
18836         system's ttyname_r function. Provide a reasonably large buffer.
18837         * modules/ttyname_r (Depends-on): Add extensions.
18838         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
18839
18840 2010-04-25  Bruno Haible  <bruno@clisp.org>
18841
18842         Use the 'extensions' module for some more functions on Solaris.
18843         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
18844         module.
18845         * doc/posix-functions/ctime_r.texi: Likewise.
18846         * doc/posix-functions/getgrgid_r.texi: Likewise.
18847         * doc/posix-functions/getgrnam_r.texi: Likewise.
18848         * doc/posix-functions/getpwnam_r.texi: Likewise.
18849         * doc/posix-functions/getpwuid_r.texi: Likewise.
18850         * doc/posix-functions/readdir_r.texi: Likewise.
18851         * doc/posix-functions/sigwait.texi: Likewise.
18852         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
18853         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
18854
18855 2010-04-25  Bruno Haible  <bruno@clisp.org>
18856
18857         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
18858         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
18859         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
18860         * lib/ttyname_r.c: Include <limits.h>.
18861         (ttyname_r): Define using the system's ttyname_r function, if it exists
18862         and not on Solaris.
18863         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
18864         set.
18865         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
18866         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
18867         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
18868         Reported by Simon Josefsson.
18869
18870 2010-04-25  Bruno Haible  <bruno@clisp.org>
18871
18872         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
18873         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
18874         * doc/posix-functions/ctime_r.texi: Likewise.
18875         * doc/posix-functions/getgrgid_r.texi: Likewise.
18876         * doc/posix-functions/getgrnam_r.texi: Likewise.
18877         * doc/posix-functions/getlogin_r.texi: Likewise.
18878         * doc/posix-functions/getpwnam_r.texi: Likewise.
18879         * doc/posix-functions/getpwuid_r.texi: Likewise.
18880         * doc/posix-functions/readdir_r.texi: Likewise.
18881         * doc/posix-functions/sigwait.texi: Likewise.
18882         * doc/posix-functions/ttyname_r.texi: Likewise.
18883         Reported by Simon Josefsson.
18884
18885 2010-04-25  Bruno Haible  <bruno@clisp.org>
18886
18887         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
18888         * gnulib-tool (func_usage): Document that --with-*-tests options apply
18889         also to --create-testdir.
18890         (func_acceptable): Don't consider the status of *-tests modules here.
18891         (func_modules_transitive_closure): Consider it here, before including a
18892         test module.
18893         (func_import, func_create_testdir): Set inc_all_direct_tests,
18894         inc_all_indirect_tests.
18895         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
18896         --create-testdir and --create-megatestdir.
18897
18898 2010-04-25  Bruno Haible  <bruno@clisp.org>
18899
18900         gnulib-tool: Add --without-*-tests options.
18901         * gnulib-tool (func_usage): Document the --without-*-tests options.
18902         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
18903         excl_unportable_tests): New variables.
18904         Fail if they are specified with --import or --update.
18905         (func_acceptable): Respect the excl_*_tests variables.
18906         (func_import): Set the excl_*_tests variables to empty.
18907
18908 2010-04-25  Simon Josefsson  <simon@josefsson.org>
18909             Bruno Haible  <bruno@clisp.org>
18910
18911         Work around a MacOS X 10.4 bug with openpty.
18912         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
18913         * tests/test-openpty.c (main): Close the master side explicitly.
18914
18915 2010-04-25  Bruno Haible  <bruno@clisp.org>
18916
18917         strnlen: Fix a C++ test error on MacOS X and Solaris.
18918         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
18919         the function is not declared.
18920         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
18921         Simon Josefsson.
18922
18923 2010-04-24  Bruno Haible  <bruno@clisp.org>
18924
18925         Avoid a gcc warning.
18926         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
18927         of correct type for %08lx directive.
18928         Reported by Eric Blake.
18929
18930 2010-04-24  Bruno Haible  <bruno@clisp.org>
18931
18932         vasnprintf: Correct errno value in case of out-of-memory.
18933         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
18934         or sprintf. Use the errno value from SNPRINTF or sprintf.
18935         Reported by Ian Beckwith <ianb@erislabs.net>.
18936
18937 2010-04-24  Bruno Haible  <bruno@clisp.org>
18938
18939         ansi-c++-opt: Find correct compiler when cross-compiling.
18940         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
18941         AC_CHECK_PROGS.
18942         Reported by Simon Josefsson.
18943
18944 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
18945
18946         vc-list-files: Add support for subversion
18947         * build-aux/vc-list-files: Use "svn list" to generate the list of
18948         files controlled by subversion.
18949
18950 2010-04-23  Jim Meyering  <meyering@redhat.com>
18951
18952         vc-list-files tests: convert to use init.sh
18953         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
18954         path_prepend_.
18955         Use Exit, not exit.
18956         Use skip_ rather than open coding it.
18957         Remove trap set-up and compare definitions.
18958         * tests/test-vc-list-files-git.sh: Likewise.
18959         * modules/vc-list-files-tests (Files): Add tests/init.sh.
18960
18961 2010-04-22  Simon Josefsson  <simon@josefsson.org>
18962
18963         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
18964         backup files.
18965
18966 2010-04-21  Simon Josefsson  <simon@josefsson.org>
18967
18968         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
18969
18970 2010-04-20  Eric Blake  <eblake@redhat.com>
18971
18972         tests: be robust to ignored SIGPIPE
18973         * tests/test-select-in.sh: Consume all output.
18974         * tests/test-lseek.sh: Check correct exit status, while avoiding
18975         EPIPE.
18976
18977 2010-04-20  Simon Josefsson  <simon@josefsson.org>
18978             Bruno Haible  <bruno@clisp.org>
18979
18980         visibility: Don't use -fvisibility if it leads to a warning.
18981         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
18982         yes, don't pretend that visibility works if it leads to a warning.
18983         Reported by Mike Gran <spk121@yahoo.com>.
18984
18985 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
18986
18987         * build-aux/bootstrap: Use "git -h" for testing for supported options
18988         instead of "git --help".  The short-form option only shows a summary,
18989         and doesn't layout the full man page.  Grep for the full option name
18990         in the summary, too.
18991
18992 2010-04-19  Bruno Haible  <bruno@clisp.org>
18993
18994         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
18995         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
18996         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
18997         mention of RELOCATABLE_STRIP.
18998         Reported by Sylvain Beucler <beuc@beuc.net>.
18999
19000 2010-04-19  Bruno Haible  <bruno@clisp.org>
19001
19002         * lib/diffseq.h: Fix typo in comment.
19003         Reported by Eric Blake.
19004
19005 2010-04-19  Bruno Haible  <bruno@clisp.org>
19006
19007         ioctl: Move autoconf macro to a .m4 file.
19008         * m4/ioctl.m4: New file, extracted from modules/ioctl.
19009         * modules/ioctl (Files): Add it.
19010         (configure.ac): Simply invoke gl_FUNC_IOCTL.
19011         Reported by Ian Beckwith <ianb@erislabs.net>.
19012
19013 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
19014             Bruno Haible  <bruno@clisp.org>
19015
19016         diffseq: Accommodate use-case with abstract arrays.
19017         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
19018         is not defined.
19019         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
19020         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
19021
19022 2010-04-18  Bruno Haible  <bruno@clisp.org>
19023
19024         * doc/posix-headers/stdbool.texi: More precise wording.
19025
19026 2010-04-17  Jim Meyering  <meyering@redhat.com>
19027
19028         maint.mk: use gnu-style indentation in an embedded perl script
19029         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
19030         Rename variable: s/two/last_two_bytes/
19031
19032 2010-04-16  Eric Blake  <eblake@redhat.com>
19033
19034         test-stdbool: skip test that fails with Solaris CC
19035         * tests/test-stdbool.c (f): Skip test that causes compilation
19036         error under buggy C++ compiler.
19037         * lib/stdbool.in.h: Document the limitation.
19038         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
19039
19040         setenv: allow compilation with C++
19041         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
19042         register keyword.
19043
19044         stdint: allow test to pass with C++
19045         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
19046
19047         getopt: allow compilation with C++
19048         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
19049         struct.
19050         * lib/getopt.c (_getopt_internal_r): Use correct type.
19051         Reported by Dagobert Michelson, via Joel E. Denny.
19052
19053 2010-04-16  Bruno Haible  <bruno@clisp.org>
19054
19055         Override netdb.h always.
19056         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
19057         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
19058         Reported by Ludovic Courtès <ludo@gnu.org>.
19059
19060 2010-04-15  Bruno Haible  <bruno@clisp.org>
19061
19062         openpty: Fix mistake from 2010-03-21.
19063         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
19064         Reported by Simon Josefsson.
19065
19066 2010-04-15  Eric Blake  <eblake@redhat.com>
19067
19068         test-forkpty: fix expected signature
19069         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
19070         Reported by Simon Josefsson.
19071
19072 2010-04-15  Jim Meyering  <meyering@redhat.com>
19073
19074         maint.mk: texinfo_suffix_re_: correct the default regexp
19075         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
19076
19077         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
19078         make it configurable via texinfo_suffix_re_.
19079
19080 2010-04-14  Eric Blake  <eblake@redhat.com>
19081
19082         strtok_r: relax license to LGPLv2+
19083         * modules/strtok_r (License): Relax license.
19084         Reported by Matthias Bolte.
19085
19086 2010-04-14  Simon Josefsson  <simon@josefsson.org>
19087
19088         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
19089         version 1.4.4 by default instead of requiring the libgcrypt
19090         version used during build.  This makes it possible to use the
19091         application with older but still binary compatible libgcrypt
19092         versions.
19093
19094 2010-04-13  Eric Blake  <eblake@redhat.com>
19095
19096         getopt-gnu: match recent glibc fixes and posix ruling
19097         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
19098         '+' handling, when requesting extensions.
19099         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
19100         'W;' handling.
19101         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
19102         * doc/posix-functions/getopt.texi (getopt): Document this.
19103         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
19104         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
19105         Likewise.
19106
19107         getopt: merge bug fixes from glibc
19108         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
19109         diagnostics.  Honor '+:' correctly.  Reject ';'.
19110
19111         getopt-posix: detect MacOS bug
19112         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
19113         optind when missing a required argument.
19114         * doc/posix-functions/getopt.texi (getopt): Document the bug.
19115         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
19116         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
19117         Likewise.
19118
19119         getopt-posix: avoid spurious failure on Solaris
19120         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
19121         an indicator that setting optind=1 is sufficient for reset.
19122
19123         getopt-posix: avoid spurious failure on FreeBSD
19124         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
19125         in POSIX mode, since the m4 test uses it.
19126
19127         gnulib-tool: silence warning on BSD sh
19128         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
19129
19130 2010-04-13  Jim Meyering  <meyering@redhat.com>
19131
19132         doc: users.txt: GNU patch now uses gnulib
19133         * users.txt: Add patch.
19134
19135 2010-04-12  Jim Meyering  <meyering@redhat.com>
19136
19137         maint.mk: generate more concise timing data for syntax-check rules
19138         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
19139         " done" from each line that reports a syntax-check test duration.
19140
19141 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
19142
19143         git-version-gen: use "git update-index..." rather than "git status"
19144         * build-aux/git-version-gen: Use git update-index --refresh, not
19145         "git status".  With some versions of git, "git status" would fail
19146         to update the index and result in an unwarranted "-dirty" suffix.
19147
19148 2010-04-11  Jim Meyering  <meyering@redhat.com>
19149
19150         openat: correct formatting (no semantic change)
19151         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
19152         Suggested by Bruno Haible.
19153
19154 2010-04-11  Bruno Haible  <bruno@clisp.org>
19155
19156         Stricter declaration checking in testdirs.
19157         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19158         If for_tests is true, augment AM_CPPFLAGS to define
19159         GNULIB_STRICT_CHECKING.
19160         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
19161         GNULIB_STRICT_CHECKING is defined, verify that the function is
19162         declared.
19163
19164 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
19165             Bruno Haible  <bruno@clisp.org>
19166
19167         libunistring: Improve configure output.
19168         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
19169         Don't say "consider installing GNU libunistring" when checking again
19170         with libiconv.
19171
19172 2010-04-11  Bruno Haible  <bruno@clisp.org>
19173
19174         libunistring: Correct value of $LTLIBUNISTRING.
19175         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
19176         correct the value of $LTLIBUNISTRING.
19177
19178 2010-04-11  Bruno Haible  <bruno@clisp.org>
19179
19180         havelib: Add static libraries to LIBS in the right order.
19181         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
19182         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
19183
19184 2010-04-11  Bruno Haible  <bruno@clisp.org>
19185
19186         libunistring: Detect libunistring also when it depends on libiconv.
19187         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
19188         the second AC_LIB_HAVE_LINKFLAGS invocation.
19189
19190 2010-04-11  James Youngman  <jay@gnu.org>
19191
19192         close-stream: declare local scalars to be "const"
19193         * lib/close-stream.c (close_stream): Make boolean variables const
19194         to document the fact that we set but do not change them.
19195
19196 2010-04-11  Bruno Haible  <bruno@clisp.org>
19197
19198         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
19199
19200 2010-04-11  Jim Meyering  <meyering@redhat.com>
19201
19202         maint.mk: don't include dist-check.mk
19203         * top/maint.mk: Remove bogus include directive.
19204
19205         maint.mk: improve empty-line-at-EOF check
19206         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
19207         solution, rather than tail+Perl-based one.  The latter would read
19208         a few kilobytes from the end of each file, and did not handle empty
19209         files properly.
19210
19211         maint.mk: print the elapsed time for each syntax-check rule
19212         * top/maint.mk (sc_m_rules_): Save start time in a file.
19213         (sc_z_rules_): New rules: remove temp file and print elapsed time.
19214         (local-check): Interpose the .z rules
19215
19216 2010-04-11  Jim Meyering  <meyering@redhat.com>
19217
19218         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
19219         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
19220         empty file with one that ends in an empty line.
19221
19222 2010-04-10  Bruno Haible  <bruno@clisp.org>
19223
19224         mkdir: Make it work on mingw64.
19225         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
19226         * lib/mkdir.c: Update comment.
19227         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
19228
19229 2010-04-10  Bruno Haible  <bruno@clisp.org>
19230
19231         Don't override improved macro from newer autoconf.
19232         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
19233         autoconf >= 2.62.
19234         Reported by Joel E. Denny <jdenny@clemson.edu>.
19235
19236 2010-04-10  Jim Meyering  <meyering@redhat.com>
19237
19238         maint.mk: new syntax-check rule: prohibit empty lines at end of file
19239         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
19240
19241         maint.mk: correct a diagnostic
19242         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
19243         in diagnostic; now use $prohibit.
19244
19245 2010-04-10  Bruno Haible  <address@hidden>
19246
19247         fchownat: Fix a C++ test error on Solaris 8.
19248         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
19249         the function does not exist.
19250
19251 2010-04-10  Bruno Haible  <bruno@clisp.org>
19252
19253         vasnprintf: Add more tests.
19254         * tests/test-vasnprintf-posix.c: Include <errno.h>.
19255         (test_function): Test converting an invalid wide string.
19256
19257         vasnprintf: Correct handling of unconvertible wide string arguments.
19258         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
19259         VASNPRINTF.
19260         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
19261         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
19262         smaller than the expected maximum need for the directive. Set errno to
19263         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
19264         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
19265         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
19266         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
19267         * modules/vasnprintf (Files): Add m4/printf.m4.
19268         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19269
19270 2010-04-10  Bruno Haible  <bruno@clisp.org>
19271
19272         vasnprintf: Fix crash in %ls directive.
19273         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
19274         string is passed as argument to %ls, with no precision and no width.
19275         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19276
19277 2010-04-10  Bruno Haible  <bruno@clisp.org>
19278
19279         vasnprintf: Fix multiple test failures on mingw.
19280         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
19281         _snprintf, or snwprintf, not _snwprintf.
19282
19283 2010-04-10  Bruno Haible  <bruno@clisp.org>
19284
19285         write: Fix a C++ test error on mingw.
19286         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
19287
19288 2010-04-10  Bruno Haible  <bruno@clisp.org>
19289
19290         vasnprintf test: Reduce code duplication.
19291         * tests/test-vasnprintf.c (test_function): New function, extracted from
19292         test_vasnprintf.
19293         (test_vasnprintf, test_asnprintf): Invoke it.
19294
19295 2010-04-10  Bruno Haible  <bruno@clisp.org>
19296
19297         strnlen: Fix warning in C++ mode on MacOS X.
19298         * lib/string.in.h (strnlen): Use the modern idiom.
19299         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
19300         defining strnlen as a macro already in <config.h>.
19301         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19302         REPLACE_STRNLEN.
19303         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
19304         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19305
19306 2010-04-08  James Youngman  <jay@gnu.org>
19307
19308         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
19309         the example.
19310
19311 2010-04-09  Jim Meyering  <meyering@redhat.com>
19312
19313         maint.mk: print better diagnostic when there is no $(_hv_file)
19314         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
19315         announce that when $(_hv_file) (aka help-version) does not exist.
19316
19317         init.sh: run tr in the "C" locale to avoid multibyte interpretation
19318         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
19319         not try to interpret its random input bytes.  Jarno Rajahalme reported
19320         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
19321         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
19322         (mktempd_): Likewise, just in case.
19323
19324         ftruncate: add two years to projected module removal date: 2012
19325         * m4/ftruncate.m4: Adjust comments.
19326
19327         ftruncate: mark module as obsolete; even MinGW provides it, now
19328         * modules/ftruncate (Status): Obsolete.
19329         (Notice): Say that.
19330         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
19331         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
19332
19333 2010-04-08  Bruno Haible  <bruno@clisp.org>
19334
19335         Fix side effects from tests-related modules.
19336         * modules/dprintf-posix (Comment): New section.
19337         * modules/fprintf-posix (Comment): Likewise.
19338         * modules/obstack-printf-posix (Comment): Likewise.
19339         * modules/printf-posix (Comment): Likewise.
19340         * modules/snprintf-posix (Comment): Likewise.
19341         * modules/sprintf-posix (Comment): Likewise.
19342         * modules/vasnprintf-posix (Comment): Likewise.
19343         * modules/vasprintf-posix (Comment): Likewise.
19344         * modules/vdprintf-posix (Comment): Likewise.
19345         * modules/vfprintf-posix (Comment): Likewise.
19346         * modules/vprintf-posix (Comment): Likewise.
19347         * modules/vsnprintf-posix (Comment): Likewise.
19348         * modules/vsprintf-posix (Comment): Likewise.
19349         * modules/xprintf-posix (Comment): Likewise.
19350         * modules/xvasprintf-posix (Comment): Likewise.
19351         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
19352         * modules/floorf-tests (Depends-on): Likewise.
19353         * modules/round-tests (Depends-on): Likewise.
19354         * modules/roundf-tests (Depends-on): Likewise.
19355         * modules/trunc-tests (Depends-on): Likewise.
19356         * modules/truncf-tests (Depends-on): Likewise.
19357         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
19358         'fprintf-posix' module is not present.
19359         * tests/test-floorf2.c (check): Likewise.
19360         * tests/test-trunc2.c (check): Likewise.
19361         * tests/test-truncf2.c (check): Likewise.
19362         * tests/test-round2.c (equal): Likewise.
19363         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19364
19365 2010-04-07  Karl Berry  <karl@gnu.org>
19366
19367         * config/srclist.txt,
19368         * config/srclistvars.sh,
19369         * config/srclist-update: doc fixes.
19370
19371 2010-04-07  Jim Meyering  <meyering@redhat.com>
19372
19373         maint.mk: add a PATH crosschecking syntax-check rule
19374         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
19375         Useful if you use a test like the one in help-version (coreutils,
19376         diffutils, grep, gzip) that ensures $(VERSION) matches what is
19377         printed by prog --version.
19378
19379 2010-04-06  Bruno Haible  <bruno@clisp.org>
19380
19381         Fix link error on mingw.
19382         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
19383         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
19384
19385 2010-04-06  Bruno Haible  <bruno@clisp.org>
19386
19387         Assume rmdir exists.
19388         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
19389
19390 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
19391
19392         doc: update users.txt
19393         * users.txt: Add gcal.
19394
19395 2010-04-06  Jim Meyering  <meyering@redhat.com>
19396
19397         init.sh: simply unset TMPDIR rather than risking env -i
19398         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
19399         although it probably works fine on all Unix-based systems, some
19400         systems (Cygwin?) cannot tolerate a totally cleared environment.
19401         Suggestion from Eric Blake.
19402
19403 2010-04-06  Jim Meyering  <meyering@redhat.com>
19404
19405         init.sh: portability fix: use env's POSIX-specified -i option not -u
19406         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
19407         than unportable env -u.  Solaris 5.11's env lacks support for -u.
19408
19409 2010-04-05  Bruno Haible  <bruno@clisp.org>
19410
19411         btowc: Work around Cygwin 1.7.2 bug.
19412         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
19413         does not map NUL to 0.
19414         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
19415
19416 2010-04-05  Bruno Haible  <bruno@clisp.org>
19417
19418         Make the multithread modules work on Cygwin 1.7.2.
19419         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
19420         imported symbols can be declared weak, so that it returns "no" on
19421         Cygwin 1.7.2.
19422
19423 2010-04-05  Bruno Haible  <bruno@clisp.org>
19424
19425         Use the module 'strncat'.
19426         * modules/unistr/u8-strncat (Depends-on): Add strncat.
19427
19428         Tests for module 'strncat'.
19429         * modules/strncat-tests: New file.
19430         * tests/test-strncat.c: New file.
19431
19432         New module 'strncat'.
19433         * lib/string.in.h (strncat): New declaration.
19434         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
19435         * m4/strncat.m4: New file, based on m4/memchr.m4.
19436         * modules/strncat: New file.
19437         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
19438         is declared.
19439         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
19440         REPLACE_STRNCAT.
19441         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
19442         REPLACE_STRNCAT.
19443         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
19444         module.
19445         * tests/test-string-c++.cc: Check signature of strncat.
19446
19447 2010-04-05  Jim Meyering  <meyering@redhat.com>
19448
19449         xstrtoumax-tests: convert to use init.sh
19450         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
19451         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
19452         Use Exit, not exit.
19453         Remove uses of $EXEEXT and "./" to run a program in the current dir.
19454
19455         xstrtoimax-tests: convert to use init.sh
19456         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
19457         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
19458         Use Exit, not exit.
19459         Remove uses of $EXEEXT and "./" to run a program in the current dir.
19460
19461 2010-04-05  Bruno Haible  <bruno@clisp.org>
19462
19463         sys_socket: Avoid #define replacements in C++ mode.
19464         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
19465         warning to the function if possible, rather than #defining the symbol
19466         to a dysfunctional alias.
19467
19468 2010-04-05  Bruno Haible  <bruno@clisp.org>
19469
19470         fseeko: Fix C++ test error on mingw.
19471         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
19472         gl_FUNC_FSEEKO.
19473         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
19474         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
19475         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
19476         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
19477
19478 2010-04-05  Bruno Haible  <bruno@clisp.org>
19479
19480         duplocale: Improve test output.
19481         * tests/test-duplocale.c (main): Print reason for skipped test.
19482
19483 2010-04-05  Bruno Haible  <bruno@clisp.org>
19484
19485         Assume rmdir exists.
19486         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
19487         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
19488
19489 2010-04-05  Bruno Haible  <bruno@clisp.org>
19490
19491         Fix link error on Solaris 8 with cc.
19492         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
19493
19494 2010-04-05  Bruno Haible  <bruno@clisp.org>
19495
19496         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
19497         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
19498
19499 2010-04-05  Bruno Haible  <bruno@clisp.org>
19500
19501         vasprintf: Update documentation.
19502         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
19503
19504 2010-04-05  Bruno Haible  <bruno@clisp.org>
19505
19506         ptsname: Improve test.
19507         * tests/test-ptsname.c (main): Also try the various master names of BSD
19508         systems.
19509
19510 2010-04-05  Bruno Haible  <bruno@clisp.org>
19511
19512         memchr: Avoid a possible C++ test error.
19513         * lib/string.in.h (memchr): Provide declaration if function is missing.
19514         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
19515         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
19516         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
19517         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
19518
19519 2010-04-05  Bruno Haible  <bruno@clisp.org>
19520
19521         strtok_r: Improve idiom.
19522         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
19523         AC_LIBOBJ is used.
19524
19525 2010-04-05  Bruno Haible  <bruno@clisp.org>
19526
19527         strdup: Improve idiom.
19528         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
19529         AC_LIBOBJ is used.
19530         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
19531         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
19532         when AC_LIBOBJ is used.
19533
19534 2010-04-05  Bruno Haible  <bruno@clisp.org>
19535
19536         mbsinit, mbrtowc, wcrtomb: Improve idioms.
19537         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
19538         don't set REPLACE_MBSINIT to 1.
19539         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
19540         don't set REPLACE_MBRTOWC to 1.
19541         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
19542         exist, don't set REPLACE_MBSRTOWCS to 1.
19543         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
19544         exist, don't set REPLACE_MBSNRTOWCS to 1.
19545         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
19546         don't set REPLACE_WCRTOMB to 1.
19547         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
19548         exist, don't set REPLACE_WCSRTOMBS to 1.
19549         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
19550         exist, don't set REPLACE_WCSNRTOMBS to 1.
19551
19552 2010-04-05  Bruno Haible  <bruno@clisp.org>
19553
19554         ldexpl: Improve idiom.
19555         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
19556         make sure to set HAVE_DECL_LDEXPL to 0.
19557
19558 2010-04-05  Jim Meyering  <meyering@redhat.com>
19559
19560         xstrtol-tests: convert to use init.sh
19561         * modules/xstrtol-tests (Files): Add tests/init.sh.
19562         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
19563         Use Exit, not exit.
19564         Remove uses of $EXEEXT and "./" to run a program in the current dir.
19565
19566         atexit-tests: convert to use init.sh
19567         * modules/atexit-tests (Files): Add tests/init.sh.
19568         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
19569         Use Exit, not exit.
19570         Remove uses of $EXEEXT and "./" to run a program in the current dir.
19571
19572         init.sh: fix typo
19573         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
19574
19575         init.sh: make it easier for a test script to write to the tty, ...
19576         when using automake's parallel-tests mode.
19577         * tests/init.sh (stderr_fileno_): Define overridable variable.
19578         (warn_): New function, to use it.
19579         (fail_, skip_, framework_failure_): Use warn_.
19580
19581 2010-04-04  Bruno Haible  <bruno@clisp.org>
19582
19583         btowc: Avoid warning.
19584         * lib/btowc.c: Include <stdlib.h>.
19585         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
19586
19587 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
19588             Bruno Haible  <bruno@clisp.org>
19589
19590         wchar: Port to NetBSD 1.5.
19591         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
19592         * lib/wctype.in.h (WEOF): Likewise.
19593
19594 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
19595             Bruno Haible  <bruno@clisp.org>
19596
19597         Port extended stdio to NetBSD 1.5.
19598         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
19599         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
19600         older.
19601
19602 2010-04-04  Bruno Haible  <bruno@clisp.org>
19603
19604         string: Remove unused substitution.
19605         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
19606         HAVE_DECL_STRERROR.
19607         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
19608
19609 2010-04-04  Bruno Haible  <bruno@clisp.org>
19610
19611         strtod: Avoid a possible C++ test error.
19612         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
19613         set REPLACE_STRTOD.
19614
19615 2010-04-04  Bruno Haible  <bruno@clisp.org>
19616
19617         strerror: Update documentation.
19618         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
19619
19620 2010-04-04  Bruno Haible  <bruno@clisp.org>
19621
19622         stdio: Fix some C++ test errors on Solaris 8 with GCC.
19623         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
19624         _GL_CXXALIAS_SYS_CAST.
19625
19626 2010-04-04  Bruno Haible  <bruno@clisp.org>
19627
19628         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
19629         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
19630         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
19631         REPLACE_FREXPL to 1.
19632         * doc/posix-functions/frexpl.texi: Update documentation.
19633
19634 2010-04-04  Bruno Haible  <bruno@clisp.org>
19635
19636         math: Fix some C++ test errors on Solaris 8 and Cygwin.
19637         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
19638
19639 2010-04-04  Bruno Haible  <bruno@clisp.org>
19640
19641         Implement nanosleep for native Windows.
19642         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
19643
19644 2010-04-04  Bruno Haible  <bruno@clisp.org>
19645
19646         math: Fix some C++ test errors on Solaris 8.
19647         * lib/math.in.h (truncf, trunc): Use simpler idiom.
19648
19649 2010-04-04  Bruno Haible  <bruno@clisp.org>
19650
19651         math: Fix some C++ test errors on Cygwin.
19652         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
19653         truncl): Provide declaration if the system does not have it.
19654         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
19655         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
19656         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
19657         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
19658         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
19659         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
19660         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
19661         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
19662         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
19663         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
19664         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
19665         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
19666         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
19667         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
19668         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
19669         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
19670         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
19671         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
19672         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
19673         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
19674         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
19675         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
19676
19677 2010-04-04  Bruno Haible  <bruno@clisp.org>
19678
19679         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
19680         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
19681         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
19682         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
19683         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
19684         * m4/isinf.m4 (gl_ISINF): Likewise.
19685         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19686
19687 2010-04-04  Bruno Haible  <bruno@clisp.org>
19688
19689         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
19690         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
19691
19692 2010-04-04  Bruno Haible  <bruno@clisp.org>
19693
19694         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
19695         * modules/tmpfile (configure.ac): Update.
19696
19697         tmpfile: Fix C++ test error on mingw.
19698         * lib/stdio.in.h (tmpfile): New declaration.
19699         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
19700         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
19701         * modules/tmpfile (Depends-on): Add stdio.
19702         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
19703         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
19704         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
19705         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
19706         REPLACE_TMPFILE.
19707         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
19708
19709 2010-04-04  Bruno Haible  <bruno@clisp.org>
19710
19711         ioctl: Fix C++ test error on mingw.
19712         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
19713         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
19714         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
19715
19716 2010-04-03  Bruno Haible  <bruno@clisp.org>
19717
19718         wcwidth: Fix C++ test error on mingw.
19719         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
19720         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
19721         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
19722
19723 2010-04-03  Bruno Haible  <bruno@clisp.org>
19724
19725         nanosleep: Fix C++ test error on mingw.
19726         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
19727         * lib/time.in.h (nanosleep): Use modern idiom.
19728         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
19729         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
19730         REPLACE_NANOSLEEP to 1.
19731         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
19732         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
19733
19734 2010-04-03  Bruno Haible  <bruno@clisp.org>
19735
19736         strptime: Fix C++ test error on mingw.
19737         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
19738         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
19739         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
19740         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
19741         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
19742         not REPLACE_STRPTIME.
19743         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
19744         REPLACE_STRPTIME.
19745
19746 2010-04-03  Bruno Haible  <bruno@clisp.org>
19747
19748         timegm: Fix C++ test error on mingw.
19749         * lib/time.in.h (timegm): Use modern idiom.
19750         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
19751         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
19752         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
19753         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
19754
19755 2010-04-03  Bruno Haible  <bruno@clisp.org>
19756
19757         timegm: Assume declaration if function exists.
19758         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
19759         if it exists. Don't clobber ac_cv_func_timegm.
19760
19761 2010-04-03  Bruno Haible  <bruno@clisp.org>
19762
19763         time_r: Fix C++ test error on mingw.
19764         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
19765         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
19766         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
19767         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
19768         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
19769
19770 2010-04-03  Bruno Haible  <bruno@clisp.org>
19771
19772         time_r: Minor updates.
19773         * modules/time_r (Description): Mention the provided functions.
19774         * lib/time_r.c: Don't include <string.h>.
19775         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
19776         * doc/posix-functions/localtime_r.texi: Likewise.
19777
19778 2010-04-03  Bruno Haible  <bruno@clisp.org>
19779
19780         time: Fix regression introduced on 2010-03-08.
19781         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
19782         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
19783
19784 2010-04-03  Jim Meyering  <meyering@redhat.com>
19785
19786         maint.mk: don't silently disable project-specific syntax-check rules
19787         * top/maint.mk (_prohibit_regexp): Define, to help people realize
19788         that they need to convert their project-specific syntax-check rules
19789         to use the new _sc_search_regexp.
19790
19791 2010-04-03  Bruno Haible  <bruno@clisp.org>
19792
19793         fchdir: Fix regression introduced on 2010-03-08.
19794         * lib/unistd.in.h (fchdir): Fix declaration.
19795         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
19796         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
19797         REPLACE_FCHDIR.
19798         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
19799         REPLACE_FCHDIR.
19800
19801 2010-04-03  Bruno Haible  <bruno@clisp.org>
19802
19803         getpagesize: Fix C++ test error on mingw.
19804         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
19805         system does not declare the function.
19806         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
19807         declared.
19808         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19809         HAVE_DECL_GETPAGESIZE.
19810         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
19811
19812 2010-04-03  Bruno Haible  <bruno@clisp.org>
19813
19814         stdio: Make C++ tests work on mingw.
19815         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
19816         does not declare the function.
19817
19818 2010-04-03  Bruno Haible  <bruno@clisp.org>
19819
19820         ftello: Fix C++ test error on mingw.
19821         * lib/stdio.in.h (ftello): Use modern idiom.
19822         * lib/ftello.c (ftello): Renamed from rpl_ftello.
19823         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
19824         is missing and that it needs to be replaced.
19825         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
19826         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
19827         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
19828
19829 2010-04-03  Bruno Haible  <bruno@clisp.org>
19830
19831         fseeko: Fix C++ test error on mingw.
19832         * lib/stdio.in.h (fseeko): Use modern idiom.
19833         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
19834         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
19835         is missing and that it needs to be replaced.
19836         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
19837         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
19838         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
19839
19840 2010-04-03  Bruno Haible  <bruno@clisp.org>
19841
19842         mkstemp: Fix C++ test error on mingw.
19843         * lib/stdlib.in.h (mkstemp): Use modern idiom.
19844         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
19845         function is missing and that it needs to be replaced.
19846         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
19847         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
19848
19849 2010-04-03  Bruno Haible  <bruno@clisp.org>
19850
19851         stpncpy: Fix C++ test error on mingw.
19852         * lib/string.in.h (stpncpy): Use modern idiom.
19853         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
19854         function is missing and that it needs to be replaced.
19855         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19856         REPLACE_STPNCPY.
19857         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
19858
19859 2010-04-03  Bruno Haible  <bruno@clisp.org>
19860
19861         sys_stat: Fix C++ test error on mingw.
19862         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
19863         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
19864
19865 2010-04-03  Bruno Haible  <bruno@clisp.org>
19866
19867         pty: Update doc.
19868         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
19869
19870 2010-04-03  Bruno Haible  <bruno@clisp.org>
19871
19872         unistd: Fix C++ test error on mingw.
19873         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
19874
19875 2010-04-03  Bruno Haible  <bruno@clisp.org>
19876
19877         Update doc regarding mingw.
19878         * doc/glibc-functions/openpty.texi: Update regarding mingw.
19879         * doc/glibc-functions/login_tty.texi: Likewise.
19880         * doc/glibc-functions/forkpty.texi: Likewise.
19881
19882 2010-04-03  Bruno Haible  <bruno@clisp.org>
19883
19884         stdlib: Avoid compilation failure of c-strtold on mingw.
19885         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
19886
19887 2010-04-03  Bruno Haible  <bruno@clisp.org>
19888
19889         locale: Make C++ tests work on Cygwin and mingw.
19890         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
19891         cannot provide the function.
19892         Reported by Simon Josefsson.
19893
19894 2010-04-03  Bruno Haible  <bruno@clisp.org>
19895
19896         localename: Port to MacOS X 10.6.
19897         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
19898         memory layout of the locales in MacOS X 10.6 as well.
19899         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
19900
19901 2010-04-02  Bruno Haible  <bruno@clisp.org>
19902
19903         gnulib-tool: Ensure that long-running tests are executed last.
19904         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
19905         running tests after the one for the other tests.
19906
19907 2010-04-02  Bruno Haible  <bruno@clisp.org>
19908
19909         gnulib-tool: Ensure the tests in the main directory are executed first.
19910         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
19911         start with the current directory.
19912
19913 2010-04-02  Bruno Haible  <bruno@clisp.org>
19914
19915         Tests for module 'havelib', moved here from GNU gettext.
19916         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
19917         modifications.
19918         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
19919         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
19920         with modifications.
19921         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
19922         modifications.
19923         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
19924         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
19925         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
19926         with modifications.
19927         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
19928         with modifications.
19929         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
19930         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
19931         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
19932         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
19933         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
19934         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
19935         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
19936         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
19937         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
19938         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
19939         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
19940         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
19941         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
19942         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
19943         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
19944         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
19945         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
19946         with modifications.
19947         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
19948         with modifications.
19949         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
19950         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
19951         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
19952         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
19953         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
19954         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
19955         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
19956         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
19957         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
19958         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
19959         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
19960         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
19961         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
19962         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
19963         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
19964         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
19965         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
19966         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
19967         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
19968         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
19969         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
19970         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
19971         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
19972         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
19973         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
19974         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
19975         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
19976         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
19977         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
19978         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
19979         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
19980         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
19981         * tests/havelib/rpathx/rpathx.c: New file, from
19982         gettext/autoconf-lib-link.
19983         * tests/havelib/rpathx/Makefile.am: New file, from
19984         gettext/autoconf-lib-link.
19985         * tests/havelib/rpathx/configure.ac: New file, from
19986         gettext/autoconf-lib-link with modifications.
19987         * tests/havelib/rpathy/rpathy.c: New file, from
19988         gettext/autoconf-lib-link.
19989         * tests/havelib/rpathy/Makefile.am: New file, from
19990         gettext/autoconf-lib-link.
19991         * tests/havelib/rpathy/configure.ac: New file, from
19992         gettext/autoconf-lib-link with modifications.
19993         * tests/havelib/rpathz/rpathz.c: New file, from
19994         gettext/autoconf-lib-link.
19995         * tests/havelib/rpathz/Makefile.am: New file, from
19996         gettext/autoconf-lib-link.
19997         * tests/havelib/rpathz/configure.ac: New file, from
19998         gettext/autoconf-lib-link with modifications.
19999         * tests/havelib/rpathlx/usex.c: New file, from
20000         gettext/autoconf-lib-link.
20001         * tests/havelib/rpathlx/Makefile.am: New file, from
20002         gettext/autoconf-lib-link.
20003         * tests/havelib/rpathlx/configure.ac: New file, from
20004         gettext/autoconf-lib-link with modifications.
20005         * tests/havelib/rpathly/usey.c: New file, from
20006         gettext/autoconf-lib-link.
20007         * tests/havelib/rpathly/Makefile.am: New file, from
20008         gettext/autoconf-lib-link.
20009         * tests/havelib/rpathly/configure.ac: New file, from
20010         gettext/autoconf-lib-link with modifications.
20011         * tests/havelib/rpathlz/usez.c: New file, from
20012         gettext/autoconf-lib-link.
20013         * tests/havelib/rpathlz/Makefile.am: New file, from
20014         gettext/autoconf-lib-link.
20015         * tests/havelib/rpathlz/configure.ac: New file, from
20016         gettext/autoconf-lib-link with modifications.
20017         * tests/havelib/rpathlyx/usey.c: New file, from
20018         gettext/autoconf-lib-link.
20019         * tests/havelib/rpathlyx/Makefile.am: New file, from
20020         gettext/autoconf-lib-link.
20021         * tests/havelib/rpathlyx/configure.ac: New file, from
20022         gettext/autoconf-lib-link with modifications.
20023         * tests/havelib/rpathlzyx/usez.c: New file, from
20024         gettext/autoconf-lib-link.
20025         * tests/havelib/rpathlzyx/Makefile.am: New file, from
20026         gettext/autoconf-lib-link.
20027         * tests/havelib/rpathlzyx/configure.ac: New file, from
20028         gettext/autoconf-lib-link with modifications.
20029         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
20030         with modifications.
20031
20032 2010-04-02  Bruno Haible  <bruno@clisp.org>
20033
20034         gnulib-tool: Create distributed built sources also for the tests.
20035         * gnulib-tool (func_create_testdir): Also generate distributed built
20036         sources in the tests directory.
20037
20038 2010-04-02  Bruno Haible  <bruno@clisp.org>
20039
20040         gnulib-tool: Obey user's environment variables.
20041         * gnulib-tool (func_create_testdir): When creating built sources,
20042         respect the environment variables for autoconf, automake, etc. given by
20043         the user.
20044
20045 2010-04-02  Bruno Haible  <bruno@clisp.org>
20046
20047         gnulib-tool: Provide the value of --m4-base to modules.
20048         * gnulib-tool (func_import, func_create_testdir): Emit a definition
20049         of gl_m4_base.
20050
20051 2010-04-02  Eric Blake  <eblake@redhat.com>
20052
20053         maint.mk: fix some fallout
20054         * NEWS: Document the incompatible change, and its effect on cfg.mk.
20055         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
20056
20057 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
20058
20059         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
20060         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
20061         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
20062         (sc_cast_of_x_alloc_return_value): Likewise.
20063         (sc_cast_of_alloca_return_value): Likewise.
20064         (sc_space_tab): Likewise.
20065         (sc_prohibit_atoi_atof): Likewise.
20066         (sc_prohibit_magic_number_exit): Likewise.
20067         (sc_error_exit_success): Likewise.
20068         (sc_file_system): Likewise.
20069         (sc_prohibit_have_config_h): Likewise.
20070         (sc_require_config_h): Likewise.
20071         (sc_prohibit_HAVE_MBRTOWC): Likewise.
20072         (sc_obsolete_symbols): Likewise.
20073         (sc_changelog): Likewise.
20074         (sc_program_name): Likewise.
20075         (sc_the_the): Likewise.
20076         (sc_trailing_blank): Likewise.
20077         (sc_two_space_separator_in_usage): Likewise.
20078         (sc_useless_cpp_parens): Likewise.
20079         (sc_GPL_version): Likewise.
20080         (sc_GFDL_version): Likewise.
20081         (sc_texinfo_acronym): Likewise.
20082         (sc_prohibit_cvs_keyword): Likewise.
20083         (sc_prohibit_stat_st_blocks): Likewise.
20084         (sc_prohibit_S_IS_definition): Likewise.
20085         (sc_redundant_const): Likewise.
20086         (sc_makefile_TAB_only_indentation): Likewise.
20087         (sc_m4_quote_check): Likewise.
20088         (sc_makefile_path_separator_check): Likewise.
20089         (sc_copyright_check): Likewise.
20090         (sc_Wundef_boolean): Likewise.
20091         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
20092
20093         maint.mk: match 0 or more whitespace-before-function-call '('
20094         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
20095         that have zero or two-and-more spaces between the function name
20096         and the open parenthesis.
20097         (sc_error_message_warn_fatal): Likewise.
20098         (sc_error_message_uppercase): Likewise.
20099         (sc_error_message_period): Likewise.
20100
20101 2010-03-31  Eric Blake  <eblake@redhat.com>
20102
20103         maint.mk: check for [ as well as test
20104         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
20105         Based on a libvirt report by Matthias Bolte.
20106
20107         gnumakefile: don't squelch _version output
20108         * top/GNUmakefile (_version): Create one-shot dependency rather
20109         than using $(shell) when version must be regenerated.
20110         (_autoreconf): Run verbosely, by default.
20111
20112         sys_time: avoid compiler warnings
20113         * lib/sys_time.in.h (includes): Ensure gcc pragma is
20114         unconditional, fixing regression from 2010-03-29.
20115         Reported by Simon Josefsson.
20116
20117 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
20118
20119         maint.mk: s/_header_without_use/_sc_header_without_use/
20120         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
20121         (sc_prohibit_assert_without_use): Use the new name.
20122         (sc_prohibit_close_stream_without_use): Likewise.
20123         (sc_prohibit_getopt_without_use): Likewise.
20124         (sc_prohibit_quotearg_without_use): Likewise.
20125         (sc_prohibit_quote_without_use): Likewise.
20126         (sc_prohibit_long_options_without_use): Likewise.
20127         (sc_prohibit_inttostr_without_use): Likewise.
20128         (sc_prohibit_ignore_value_without_use): Likewise.
20129         (sc_prohibit_error_without_use): Likewise.
20130         (sc_prohibit_xalloc_without_use): Likewise.
20131         (sc_prohibit_hash_without_use): Likewise.
20132         (sc_prohibit_hash_pjw_without_use): Likewise.
20133         (sc_prohibit_safe_read_without_use): Likewise.
20134         (sc_prohibit_argmatch_without_use): Likewise.
20135         (sc_prohibit_canonicalize_without_use): Likewise.
20136         (sc_prohibit_root_dev_ino_without_use): Likewise.
20137         (sc_prohibit_openat_without_use): Likewise.
20138         (sc_prohibit_c_ctype_without_use): Likewise.
20139         (sc_prohibit_signal_without_use): Likewise.
20140         (sc_prohibit_intprops_without_use): Likewise.
20141
20142 2010-03-30  Eric Blake  <eblake@redhat.com>
20143
20144         maint: improve module indicators
20145         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
20146         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
20147         columns, and avoid extra macro expansion.
20148
20149         fdopendir: work around FreeBSD bug
20150         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
20151         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
20152         * modules/dirent (Makefile.am): Substitute it.
20153         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
20154         declaration.
20155         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
20156         fix.
20157         Reported by Christian Weisgerber <naddy@mips.inka.de>.
20158
20159 2010-03-29  Bruno Haible  <bruno@clisp.org>
20160
20161         Emit #pragma system_header after the inclusion guard, not before.
20162         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
20163         guard that spans the entire file, not before. This enables an
20164         optimization in GCC's preprocessor.
20165         * lib/ctype.in.h: Likewise.
20166         * lib/dirent.in.h: Likewise.
20167         * lib/errno.in.h: Likewise.
20168         * lib/float.in.h: Likewise.
20169         * lib/getopt.in.h: Likewise.
20170         * lib/iconv.in.h: Likewise.
20171         * lib/langinfo.in.h: Likewise.
20172         * lib/locale.in.h: Likewise.
20173         * lib/math.in.h: Likewise.
20174         * lib/netdb.in.h: Likewise.
20175         * lib/netinet_in.in.h: Likewise.
20176         * lib/pty.in.h: Likewise.
20177         * lib/sched.in.h: Likewise.
20178         * lib/se-selinux.in.h: Likewise.
20179         * lib/search.in.h: Likewise.
20180         * lib/spawn.in.h: Likewise.
20181         * lib/stdarg.in.h: Likewise.
20182         * lib/stdint.in.h: Likewise.
20183         * lib/string.in.h: Likewise.
20184         * lib/strings.in.h: Likewise.
20185         * lib/sys_file.in.h: Likewise.
20186         * lib/sys_ioctl.in.h: Likewise.
20187         * lib/sys_time.in.h: Likewise.
20188         * lib/sys_times.in.h: Likewise.
20189         * lib/sys_utsname.in.h: Likewise.
20190         * lib/sys_wait.in.h: Likewise.
20191         * lib/sysexits.in.h: Likewise.
20192         * lib/wctype.in.h: Likewise.
20193
20194 2010-03-28  James Youngman  <jay@gnu.org>
20195
20196         save-cwd: don't leak a file descriptor when the caller execs.
20197         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
20198         saved file descriptor.
20199         * modules/save-cwd (Depends-on): Depend on cloexec.
20200
20201 2010-03-29  Bruno Haible  <bruno@clisp.org>
20202
20203         Remove vestiges of fts-lgpl module.
20204         * lib/fts_.h: Assume GNULIB_FTS is 1.
20205         * lib/fts.c: Likewise.
20206         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
20207
20208 2010-03-28  Bruno Haible  <bruno@clisp.org>
20209
20210         Fix definition of tests witness macro.
20211         * gnulib-tool (func_import): Fix definition of witness macro.
20212
20213 2010-03-28  Bruno Haible  <bruno@clisp.org>
20214
20215         Fix ioctl's protoype on glibc systems.
20216         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
20217         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
20218         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
20219         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
20220         signature. If not, arrange to replace the ioctl function.
20221         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
20222         REPLACE_IOCTL.
20223         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
20224         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
20225         Reported by Ludovic Courtès <ludo@gnu.org>.
20226
20227 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
20228
20229         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
20230         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
20231         made it so grep -r --include=GLOB* ... did not work.
20232
20233 2010-03-26  Jim Meyering  <meyering@redhat.com>
20234             Eric Blake  <eblake@redhat.com>
20235
20236         maint.mk: prohibit use of test's -o and -a operators
20237         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
20238
20239 2010-03-28  Bruno Haible  <bruno@clisp.org>
20240
20241         Remove unused GNULIB_XYZ macro definitions.
20242         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
20243         invocation.
20244
20245 2010-03-28  Bruno Haible  <bruno@clisp.org>
20246
20247         Mark privileged tests modules.
20248         * modules/idpriv-drop-tests (Status): New section.
20249         * modules/idpriv-droptemp-tests (Status): New section.
20250
20251 2010-03-28  Bruno Haible  <bruno@clisp.org>
20252
20253         Split C++ tests into separate tests modules.
20254         * modules/dirent-c++-tests: New file, extracted from
20255         modules/dirent-tests.
20256         * modules/dirent-tests: Depend on it.
20257         * modules/fcntl-h-c++-tests: New file, extracted from
20258         modules/fcntl-h-tests.
20259         * modules/fcntl-h-tests: Depend on it.
20260         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
20261         * modules/glob-tests: Depend on it.
20262         * modules/iconv-h-c++-tests: New file, extracted from
20263         modules/iconv-h-tests.
20264         * modules/iconv-h-tests: Depend on it.
20265         * modules/langinfo-c++-tests: New file, extracted from
20266         modules/langinfo-tests.
20267         * modules/langinfo-tests: Depend on it.
20268         * modules/locale-c++-tests: New file, extracted from
20269         modules/locale-tests.
20270         * modules/locale-tests: Depend on it.
20271         * modules/math-c++-tests: New file, extracted from modules/math-tests.
20272         * modules/math-tests: Depend on it.
20273         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
20274         * modules/pty-tests: Depend on it.
20275         * modules/search-c++-tests: New file, extracted from
20276         modules/search-tests.
20277         * modules/search-tests: Depend on it.
20278         * modules/signal-c++-tests: New file, extracted from
20279         modules/signal-tests.
20280         * modules/signal-tests: Depend on it.
20281         * modules/spawn-c++-tests: New file, extracted from
20282         modules/spawn-tests.
20283         * modules/spawn-tests: Depend on it.
20284         * modules/stdio-c++-tests: New file, extracted from
20285         modules/stdio-tests.
20286         * modules/stdio-tests: Depend on it.
20287         * modules/stdlib-c++-tests: New file, extracted from
20288         modules/stdlib-tests.
20289         * modules/stdlib-tests: Depend on it.
20290         * modules/string-c++-tests: New file, extracted from
20291         modules/string-tests.
20292         * modules/string-tests: Depend on it.
20293         * modules/sys_ioctl-c++-tests: New file, extracted from
20294         modules/sys_ioctl-tests.
20295         * modules/sys_ioctl-tests: Depend on it.
20296         * modules/sys_select-c++-tests: New file, extracted from
20297         modules/sys_select-tests.
20298         * modules/sys_select-tests: Depend on it.
20299         * modules/sys_socket-c++-tests: New file, extracted from
20300         modules/sys_socket-tests.
20301         * modules/sys_socket-tests: Depend on it.
20302         * modules/sys_stat-c++-tests: New file, extracted from
20303         modules/sys_stat-tests.
20304         * modules/sys_stat-tests: Depend on it.
20305         * modules/sys_time-c++-tests: New file, extracted from
20306         modules/sys_time-tests.
20307         * modules/sys_time-tests: Depend on it.
20308         * modules/time-c++-tests: New file, extracted from modules/time-tests.
20309         * modules/time-tests: Depend on it.
20310         * modules/unistd-c++-tests: New file, extracted from
20311         modules/unistd-tests.
20312         * modules/unistd-tests: Depend on it.
20313         * modules/wchar-c++-tests: New file, extracted from
20314         modules/wchar-tests.
20315         * modules/wchar-tests: Depend on it.
20316         * modules/wctype-c++-tests: New file, extracted from
20317         modules/wctype-tests.
20318         * modules/wctype-tests: Depend on it.
20319         Reported by Simon Josefsson.
20320
20321 2010-03-28  Bruno Haible  <bruno@clisp.org>
20322
20323         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
20324         * gnulib-tool (func_exists_module): New function, extracted from
20325         func_verify_module.
20326         (func_verify_module): Use it.
20327         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
20328         'foo' only if 'foo' exists.
20329         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
20330         module.
20331
20332 2010-03-28  Bruno Haible  <bruno@clisp.org>
20333
20334         gnulib-tool: Add support for special categories of tests.
20335         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
20336         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
20337         (func_usage): Document them.
20338         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
20339         inc_unportable_tests, inc_all_tests): New variables.
20340         (func_acceptable): Consider these variables.
20341         (func_modules_transitive_closure): Make it work when the 'Status' field
20342         consists of multiple words.
20343         (func_import): Store and restore the values of inc_cxx_tests,
20344         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
20345         inc_all_tests in gnulib-comp.m4.
20346         (func_create_testdir): Set inc_all_tests to true.
20347         * doc/gnulib.texi (Extra tests modules): New section.
20348         Suggested by Jim Meyering.
20349
20350 2010-03-28  Bruno Haible  <bruno@clisp.org>
20351
20352         ansi-c++-opt: Allow turning off the C++ build by default.
20353         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
20354         gl_CXX_CHOICE_DEFAULT_NO is defined.
20355         Requested by Eric Blake.
20356
20357 2010-03-28  Bruno Haible  <bruno@clisp.org>
20358
20359         unistd: Avoid #define replacements in C++ mode.
20360         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
20361         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
20362         setsockopt, shutdown, select): In C++, attach a warning to the function
20363         if possible, rather than #defining the symbol to a dysfunctional alias.
20364         Reported by John W. Eaton <jwe@gnu.org>.
20365
20366 2010-03-28  Bruno Haible  <bruno@clisp.org>
20367
20368         Fix link errors on mingw.
20369         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
20370         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
20371         $(LIBSOCKET).
20372         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
20373         $(LIBSOCKET).
20374
20375 2010-03-28  Bruno Haible  <bruno@clisp.org>
20376             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20377
20378         lib-ignore: Determine different options for different compilers.
20379         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
20380         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
20381         Add comments.
20382         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
20383         * NEWS: Mention the change.
20384
20385 2010-03-27  Bruno Haible  <bruno@clisp.org>
20386
20387         Remove unused GNULIB_XYZ macro definitions.
20388         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
20389         * modules/fseek (configure.ac): Likewise.
20390         * modules/ioctl (configure.ac): Likewise.
20391         * modules/open (configure.ac): Likewise.
20392         * modules/stdlib-safer (configure.ac): Likewise.
20393
20394 2010-03-27  Bruno Haible  <bruno@clisp.org>
20395
20396         Add a remark about certain modules.
20397         * modules/malloc (Comment): New section.
20398         * modules/realloc (Comment): Likewise.
20399         * modules/sigpipe (Comment): Likewise.
20400
20401 2010-03-27  Bruno Haible  <bruno@clisp.org>
20402
20403         Resolve conflict between the two kinds of module indicators.
20404         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
20405         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
20406         * modules/canonicalize (configure.ac): Invoke
20407         gl_MODULE_INDICATOR_FOR_TESTS.
20408         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
20409         GNULIB_XYZ.
20410         * tests/test-dirent-c++.cc: Likewise.
20411         * tests/test-dirent-safer.c: Likewise.
20412         * tests/test-dup2.c: Likewise.
20413         * tests/test-fchdir.c: Likewise.
20414         * tests/test-fcntl-h-c++.cc: Likewise.
20415         * tests/test-getopt.c: Likewise.
20416         * tests/test-getopt.h: Likewise.
20417         * tests/test-langinfo-c++.cc: Likewise.
20418         * tests/test-locale-c++.cc: Likewise.
20419         * tests/test-math-c++.cc: Likewise.
20420         * tests/test-pty-c++.cc: Likewise.
20421         * tests/test-search-c++.cc: Likewise.
20422         * tests/test-signal-c++.cc: Likewise.
20423         * tests/test-spawn-c++.cc: Likewise.
20424         * tests/test-stdio-c++.cc: Likewise.
20425         * tests/test-stdlib-c++.cc: Likewise.
20426         * tests/test-string-c++.cc: Likewise.
20427         * tests/test-sys_ioctl-c++.cc: Likewise.
20428         * tests/test-sys_select-c++.cc: Likewise.
20429         * tests/test-sys_socket-c++.cc: Likewise.
20430         * tests/test-sys_stat-c++.cc: Likewise.
20431         * tests/test-sys_time-c++.cc: Likewise.
20432         * tests/test-time-c++.cc: Likewise.
20433         * tests/test-unistd-c++.cc: Likewise.
20434         * tests/test-wchar-c++.cc: Likewise.
20435         * tests/uninorm/test-u8-nfc.c: Likewise.
20436         * tests/uninorm/test-u8-nfd.c: Likewise.
20437         * tests/uninorm/test-u8-nfkc.c: Likewise.
20438         * tests/uninorm/test-u8-nfkd.c: Likewise.
20439         * tests/uninorm/test-u16-nfc.c: Likewise.
20440         * tests/uninorm/test-u16-nfd.c: Likewise.
20441         * tests/uninorm/test-u16-nfkc.c: Likewise.
20442         * tests/uninorm/test-u16-nfkd.c: Likewise.
20443         * tests/uninorm/test-u32-nfc.c: Likewise.
20444         * tests/uninorm/test-u32-nfc-big.c: Likewise.
20445         * tests/uninorm/test-u32-nfd.c: Likewise.
20446         * tests/uninorm/test-u32-nfd-big.c: Likewise.
20447         * tests/uninorm/test-u32-nfkc.c: Likewise.
20448         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
20449         * tests/uninorm/test-u32-nfkd.c: Likewise.
20450         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
20451         * tests/uninorm/test-u32-normalize-big.c: Likewise.
20452
20453 2010-03-27  Bruno Haible  <bruno@clisp.org>
20454
20455         Distinguish two kinds of module indicators.
20456         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
20457         gl_MODULE_INDICATOR.
20458         (gl_MODULE_INDICATOR): New macro.
20459         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
20460         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
20461         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
20462         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
20463         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
20464         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
20465         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
20466         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
20467         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
20468         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
20469         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
20470         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
20471         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
20472         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
20473         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
20474         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
20475         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
20476         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
20477         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
20478         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
20479         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
20480         * modules/cloexec (configure.ac): Likewise.
20481         * modules/getopt-gnu (configure.ac): Likewise.
20482         * modules/uninorm/u8-normalize (configure.ac): Likewise.
20483         * modules/uninorm/u16-normalize (configure.ac): Likewise.
20484         * modules/uninorm/u32-normalize (configure.ac): Likewise.
20485         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
20486
20487 2010-03-27  Bruno Haible  <bruno@clisp.org>
20488
20489         New module description field 'Comment'.
20490         * gnulib-tool: New option --extract-comment.
20491         (func_usage): Document it.
20492         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
20493         (func_get_comment): New function.
20494         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
20495
20496 2010-03-27  Bruno Haible  <bruno@clisp.org>
20497
20498         Addendum to 2010-02-07 commit.
20499         * gnulib-tool (func_usage): Document --extract-applicability option.
20500
20501 2010-03-27  Bruno Haible  <bruno@clisp.org>
20502
20503         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
20504         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
20505         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
20506         rather than link errors.
20507
20508 2010-03-27  Bruno Haible  <bruno@clisp.org>
20509
20510         Avoid side effects from tests-related modules on the compilation of lib.
20511         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
20512         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
20513         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
20514         parameter. Emit into AM_CPPFLAGS a definition of the designated C
20515         macro.
20516         (func_import): Define a witness macro. Assign it a value that depends
20517         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
20518         tests-related modules.
20519         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
20520         Reported by Jim Meyering.
20521
20522 2010-03-27  Bruno Haible  <bruno@clisp.org>
20523
20524         Factorize common .m4 code.
20525         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
20526         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
20527         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
20528         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
20529         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
20530         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
20531         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
20532         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
20533         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
20534         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
20535         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
20536         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
20537         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
20538         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
20539         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
20540         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
20541         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
20542         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
20543         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
20544         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
20545         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
20546         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
20547         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
20548         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
20549         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
20550         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
20551         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
20552         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
20553         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
20554         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
20555         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
20556         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
20557
20558 2010-03-27  Bruno Haible  <bruno@clisp.org>
20559
20560         Fix a compilation error on Cygwin with g++ >= 4.3.
20561         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
20562         if it is undefined or if we alias it to chmod.
20563         (lstat): Don't warn about the use of this function if it is undefined
20564         or if we alias it to stat.
20565         Reported by Simon Josefsson.
20566
20567 2010-03-27  Bruno Haible  <bruno@clisp.org>
20568
20569         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
20570         * modules/getlogin (configure.ac): Update.
20571
20572         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
20573         * modules/getlogin_r (configure.ac): Update.
20574
20575         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
20576         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
20577         * modules/inet_ntop (configure.ac): Update.
20578
20579         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
20580         * modules/inet_pton (configure.ac): Update.
20581
20582         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
20583         * modules/mbslen (configure.ac): Update.
20584
20585         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
20586         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
20587         * modules/forkpty (configure.ac): Update.
20588         * modules/openpty (configure.ac): Update.
20589
20590 2010-03-26  Simon Josefsson  <simon@josefsson.org>
20591
20592         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
20593         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
20594
20595 2010-03-25  Eric Blake  <eblake@redhat.com>
20596
20597         maint: use pragma consistently across replacement headers
20598         * lib/ctype.in.h (system_header): Hoist for consistent placement.
20599         * lib/dirent.in.h (system_header): Likewise.
20600         * lib/errno.in.h (system_header): Likewise.
20601         * lib/float.in.h (system_header): Likewise.
20602         * lib/getopt.in.h (system_header): Likewise.
20603         * lib/iconv.in.h (system_header): Likewise.
20604         * lib/inttypes.in.h (system_header): Likewise.
20605         * lib/langinfo.in.h (system_header): Likewise.
20606         * lib/locale.in.h (system_header): Likewise.
20607         * lib/math.in.h (system_header): Likewise.
20608         * lib/netdb.in.h (system_header): Likewise.
20609         * lib/netinet_in.in.h (system_header): Likewise.
20610         * lib/pty.in.h (system_header): Likewise.
20611         * lib/sched.in.h (system_header): Likewise.
20612         * lib/se-selinux.in.h (system_header): Likewise.
20613         * lib/search.in.h (system_header): Likewise.
20614         * lib/spawn.in.h (system_header): Likewise.
20615         * lib/stdarg.in.h (system_header): Likewise.
20616         * lib/stdint.in.h (system_header): Likewise.
20617         * lib/string.in.h (system_header): Likewise.
20618         * lib/strings.in.h (system_header): Likewise.
20619         * lib/sys_file.in.h (system_header): Likewise.
20620         * lib/sys_ioctl.in.h (system_header): Likewise.
20621         * lib/sys_socket.in.h (system_header): Likewise.
20622         * lib/sys_times.in.h (system_header): Likewise.
20623         * lib/sys_utsname.in.h (system_header): Likewise.
20624         * lib/sys_wait.in.h (system_header): Likewise.
20625         * lib/sysexits.in.h (system_header): Likewise.
20626         * lib/unistd.in.h (system_header): Likewise.
20627         * lib/wctype.in.h (system_header): Likewise.
20628
20629         arpa/inet: fix mingw compilation warning
20630         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
20631         Reported by Matthew Bolte.
20632
20633 2010-03-25  Bruno Haible  <bruno@clisp.org>
20634
20635         Avoid collision between gnulib wrapper and libintl wrapper.
20636         * lib/printf.c (printf): Don't define if a printf wrapper is already
20637         defined in intl/printf.c.
20638         Reported by Michel Boaventura <michel@michelboaventura.com>.
20639
20640 2010-03-25  Bruno Haible  <bruno@clisp.org>
20641
20642         Use ANSI C.
20643         * lib/readutmp.h (getutent): Provide ANSI C prototype.
20644
20645 2010-03-25  Bruno Haible  <bruno@clisp.org>
20646
20647         Minor formatting changes.
20648         * lib/acosl.c: Insert space before function argument list.
20649         * lib/argz.c: Likewise.
20650         * lib/asinl.c: Likewise.
20651         * lib/expl.c: Likewise.
20652         * lib/gen-uni-tables.c: Likewise.
20653         * lib/gettext.h: Likewise.
20654         * lib/glthread/lock.h: Likewise.
20655         * lib/tanl.c: Likewise.
20656         * lib/uniname/uniname.c: Likewise.
20657         * tests/test-idpriv-drop.c: Likewise.
20658         * tests/test-idpriv-droptemp.c: Likewise.
20659         * tests/test-lock.c: Likewise.
20660         * tests/test-tls.c: Likewise.
20661         * lib/argp-help.c: Insert space before function-like macro argument
20662         list.
20663         * lib/memcmp.c: Likewise.
20664         * tests/test-base64.c: Likewise.
20665         * lib/localename.c: Insert space before sizeof's argument list.
20666         * lib/safe-alloc.h: Likewise.
20667         * lib/file-set.h: Insert space before macro argument list.
20668         * tests/test-argp.c: Likewise.
20669         * lib/argp-namefrob.h: Insert space before function parameter list.
20670         * lib/getaddrinfo.c: Likewise.
20671         * lib/netdb.in.h: Likewise.
20672         * lib/parse-duration.h: Likewise.
20673         * lib/parse-duration.c: Likewise.
20674         * lib/poll.c: Likewise.
20675         * lib/select.c: Likewise.
20676         * lib/trim.h: Likewise.
20677         * tests/test-usleep.c: Likewise.
20678         * lib/ldexpl.c: Insert space before function parameter list and before
20679         function argument list.
20680         * lib/logl.c: Likewise.
20681         * lib/sqrtl.c: Likewise.
20682         * lib/trim.c: Likewise.
20683         * lib/cosl.c: Use GNU style indentation. Insert space before function
20684         argument list.
20685         * lib/sinl.c: Likewise.
20686         * lib/tsearch.c: Insert space after 'for'.
20687         Reported by Jim Meyering.
20688
20689 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
20690
20691         * maint.mk (sc_Wundef_boolean): Check for the presence of the
20692         config header before grepping, as it's not present before
20693         autoreconf/configure are run.  Reported by Simon Josefsson.
20694
20695 2010-03-23  Bruno Haible  <bruno@clisp.org>
20696
20697         pt_chown: Make it work with automake < 1.11.
20698         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
20699         Reported by Simon Josefsson.
20700
20701 2010-03-23  Bruno Haible  <bruno@clisp.org>
20702
20703         pt_chown: Don't depend on GPLed modules.
20704         * lib/pt_chown.c: Don't include idpriv.h.
20705         (main): Don't drop privileges.
20706         * modules/pt_chown (Depends-on): Remove idpriv-drop.
20707         Reported by Simon Josefsson.
20708
20709 2010-03-24  Simon Josefsson  <simon@josefsson.org>
20710
20711         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
20712         suggestions from karl@freefriends.org (Karl Berry).
20713
20714 2010-03-22  Eric Blake  <eblake@redhat.com>
20715
20716         gethostname: further tweaks
20717         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
20718         are overriding gethostname.
20719         Suggested by Bruno Haible.
20720
20721 2010-03-21  Bruno Haible  <bruno@clisp.org>
20722
20723         Fix comments.
20724         * lib/forkpty.c (rpl_forkpty): Fix comment.
20725         * lib/openpty.c (rpl_openpty): Likewise.
20726         Reported by Eric Blake.
20727
20728 2010-03-22  Eric Blake  <eblake@redhat.com>
20729
20730         gethostname: fix build on mingw
20731         * lib/unistd.in.h (includes): Work around fact that mingw
20732         <winsock2.h> re-includes <unistd.h>, by avoiding any
20733         redeclarations if we are being included by <winsock2.h>.
20734         Reported by Matthias Bolte.
20735
20736 2010-03-21  Bruno Haible  <bruno@clisp.org>
20737
20738         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
20739         * lib/forkpty.c (forkpty): New replacement function, from glibc with
20740         modifications.
20741         * lib/pty.in.h (forkpty): Update declaration. Add comments.
20742         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
20743         provide the replacement.
20744         * modules/forkpty (Depends-on): Add openpty, login_tty.
20745         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
20746         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
20747         * doc/glibc-functions/forkpty.texi: More supported platforms.
20748         * config/srclist.txt: Add forkpty.c (commented).
20749
20750 2010-03-21  Bruno Haible  <bruno@clisp.org>
20751
20752         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
20753         (Makefile.am): Verify that PTY_LIB is defined.
20754
20755         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
20756
20757 2010-03-21  Bruno Haible  <bruno@clisp.org>
20758
20759         Tests for module 'login_tty'.
20760         * modules/login_tty-tests: New file.
20761         * tests/test-login_tty.c: New file.
20762
20763         New module 'login_tty'.
20764         * lib/login_tty.c: New file.
20765         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
20766         * modules/login_tty: New file.
20767         * doc/glibc-functions/login_tty.texi: Mention the new module.
20768
20769 2010-03-21  Bruno Haible  <bruno@clisp.org>
20770
20771         login_tty: Documentation.
20772         * doc/glibc-functions/login_tty.texi: New file.
20773         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
20774
20775 2010-03-21  Bruno Haible  <bruno@clisp.org>
20776
20777         pty: Consistent macro naming.
20778         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
20779         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
20780         * modules/pty (configure.ac): Update.
20781
20782 2010-03-21  Bruno Haible  <bruno@clisp.org>
20783
20784         Tests for openpty: Make stricter.
20785         * tests/test-openpty.c (main): Add test of canonical processing and
20786         erase.
20787         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
20788
20789         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
20790         * lib/openpty.c (openpty): New replacement function.
20791         * lib/pty.in.h: Include <termios.h>.
20792         (openpty): Update declaration. Add comments.
20793         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
20794         is not declared, arrange to provide the replacement. Check for _getpty
20795         and posix_openpt.
20796         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
20797         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
20798         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
20799         * modules/pty-tests (test_pty_c___LDADD): New variable.
20800         * doc/glibc-functions/openpty.texi: More supported platforms.
20801
20802 2010-03-21  Bruno Haible  <bruno@clisp.org>
20803
20804         setenv: Tweaks.
20805         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
20806         the test program.
20807         * doc/posix-functions/setenv.texi: Update platforms list.
20808
20809 2010-03-21  Bruno Haible  <bruno@clisp.org>
20810
20811         New module 'unlockpt'.
20812         * lib/unlockpt.c: New file, from glibc with modifications.
20813         * m4/unlockpt.m4: New file.
20814         * modules/unlockpt: New file.
20815         * lib/stdlib.in.h (unlockpt): New declaration.
20816         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
20817         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
20818         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
20819         HAVE_UNLOCKPT.
20820         * doc/posix-functions/unlockpt.texi: Mention the new module.
20821         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
20822         * config/srclist.txt: Add unlockpt.c (commented).
20823
20824 2010-03-21  Jim Meyering  <meyering@redhat.com>
20825
20826         maint.mk: prohibit inclusion of "intprops.h" without use
20827         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
20828
20829 2010-03-21  Bruno Haible  <bruno@clisp.org>
20830
20831         New module 'grantpt'.
20832         * lib/grantpt.c: New file, from glibc with modifications.
20833         * m4/grantpt.m4: New file.
20834         * modules/grantpt: New file.
20835         * lib/stdlib.in.h (grantpt): New declaration.
20836         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
20837         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
20838         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
20839         HAVE_GRANTPT.
20840         * doc/posix-functions/grantpt.texi: Mention the new module.
20841         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
20842         * config/srclist.txt: Add grantpt.c (commented).
20843
20844 2010-03-21  Bruno Haible  <bruno@clisp.org>
20845
20846         New module 'pt_chown'.
20847         * lib/pt_chown.c: New file, from glibc with modifications.
20848         * lib/pty-private.h: New file, from glibc with modifications.
20849         * modules/pt_chown: New file.
20850         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
20851
20852 2010-03-21  Bruno Haible  <bruno@clisp.org>
20853
20854         Tests for module 'ptsname'.
20855         * modules/ptsname-tests: New file.
20856         * tests/test-ptsname.c: New file.
20857
20858         New module 'ptsname'.
20859         * lib/ptsname.c: New file, from glibc with modifications.
20860         * m4/ptsname.m4: New file.
20861         * modules/ptsname: New file.
20862         * lib/stdlib.in.h (ptsname): New declaration.
20863         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
20864         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
20865         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
20866         HAVE_PTSNAME.
20867         * doc/posix-functions/ptsname.texi: Mention the new module.
20868         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
20869         * config/srclist.txt: Add ptsname.c (commented).
20870
20871 2010-03-21  Bruno Haible  <bruno@clisp.org>
20872
20873         Tests for module 'ttyname_r'.
20874         * modules/ttyname_r-tests: New file.
20875         * tests/test-ttyname_r.c: New file.
20876
20877         New module 'ttyname_r'.
20878         * lib/ttyname_r.c: New file.
20879         * m4/ttyname_r.m4: New file.
20880         * modules/ttyname_r: New file.
20881         * lib/unistd.in.h (ttyname_r): New declaration.
20882         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
20883         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
20884         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
20885         HAVE_TTYNAME_R.
20886         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
20887         * doc/posix-functions/ttyname_r.texi: Mention the new module.
20888
20889 2010-03-20  Bruno Haible  <bruno@clisp.org>
20890
20891         signal: Undefine macro definitions in C++ mode.
20892         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
20893         sigfillset): Undefine macro definitions from the system header in C++
20894         mode.
20895         Reported by John W. Eaton <jwe@gnu.org>.
20896
20897 2010-03-20  Bruno Haible  <bruno@clisp.org>
20898
20899         Ensure no #include statements inside extern "C" { ... }.
20900         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
20901         contain #include statements.
20902         * lib/time.in.h: Likewise.
20903
20904 2010-03-20  Bruno Haible  <bruno@clisp.org>
20905
20906         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
20907         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
20908         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
20909         Reported by John W. Eaton <jwe@gnu.org>.
20910
20911 2010-03-20  Bruno Haible  <bruno@clisp.org>
20912
20913         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
20914         Reported by Jim Meyering.
20915
20916 2010-03-20  Bruno Haible  <bruno@clisp.org>
20917
20918         pipe: Set errno upon failure.
20919         * lib/pipe.h: Specify that when -1 is returned, errno is set.
20920         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
20921         errno value in error message.
20922
20923 2010-03-20  Bruno Haible  <bruno@clisp.org>
20924             Jim Meyering  <meyering@redhat.com>
20925
20926         lchown: Avoid "unused variable" warning.
20927         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
20928
20929 2010-03-20  Bruno Haible  <bruno@clisp.org>
20930
20931         Work around unlink() bug on MacOS X 10.5.6.
20932         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
20933         attempting to unlink a parent directory.
20934         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
20935         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
20936         activate for the replacement function.
20937         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
20938
20939 2010-03-20  Bruno Haible  <bruno@clisp.org>
20940
20941         Fix link errors on Solaris 8.
20942         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
20943         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
20944
20945 2010-03-19  Jim Meyering  <meyering@redhat.com>
20946
20947         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
20948         The _LIBC implementation of build_range_exp correctly honors the
20949         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
20950         However, the non-_LIBC implementation would ignore that syntax-bit
20951         flag and return REG_ERANGE unconditionally.
20952         This change makes it honor that flag.
20953         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
20954         Make two pointer parameters "const".
20955         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
20956         (parse_bracket_exp): Update caller.
20957
20958         regex.m4: correct the reversed range endpoint ([b-a]) test
20959         * m4/regex.m4: When requiring that [b-a] evoke failure,
20960         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
20961         test pass once again for x86-based systems.
20962
20963 2010-03-19  Bruno Haible  <bruno@clisp.org>
20964
20965         scandir: Fix link error on Solaris 8.
20966         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
20967         macros.
20968
20969 2010-03-19  Bruno Haible  <bruno@clisp.org>
20970
20971         getusershell: Fix documentation.
20972         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
20973         module.
20974         * doc/glibc-functions/setusershell.texi: Likewise.
20975
20976         getusershell: Provide declaration, missing on Solaris 9.
20977         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
20978         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
20979         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
20980         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
20981         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20982         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
20983         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
20984         HAVE_GETUSERSHELL.
20985         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
20986
20987 2010-03-19  Bruno Haible  <bruno@clisp.org>
20988
20989         wctype: Provide iswblank function.
20990         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
20991         exists and is fine.
20992         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
20993         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
20994         * tests/test-wctype.c (main): Re-enable the iswblank tests.
20995         * doc/posix-functions/iswblank.texi: Update.
20996
20997 2010-03-19  Bruno Haible  <bruno@clisp.org>
20998
20999         Tests of module 'pty' in C++ mode.
21000         * modules/pty-tests: New file.
21001         * tests/test-pty-c++.cc: New file.
21002         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
21003
21004 2010-03-19  Eric Blake  <eblake@redhat.com>
21005
21006         logb: fix documentation
21007         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
21008         1.5 declaration bug.
21009
21010         forkpty, openpty: prefer glibc's const-safe prototype
21011         * lib/forkpty.c (rpl_forkpty): New file.
21012         * lib/openpty.c (rpl_openpty): Likewise.
21013         * modules/forkpty (Files): Distribute it.
21014         * modules/openpty (Files): Likewise.
21015         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
21016         check...
21017         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
21018         replacement for for non-const BSD signature.
21019         * modules/pty (Makefile.am): Substitute witnesses.
21020         * lib/pty.in.h (forkpty, openpty): Declare replacements.
21021         * tests/test-forkpty.c: Update signature check.
21022         * tests/test-openpty.c: Likewise.
21023         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
21024         * doc/glibc-functions/openpty.texi (openpty): Likewise.
21025
21026         forkpty, openpty: split functions into new modules
21027         * modules/pty (Makefile.am): Substitute new witnesses.
21028         (Libraries): Move library detection...
21029         * modules/forkpty: ...into new module.
21030         * modules/openpty: Another new module.
21031         * modules/pty-tests: Rename and split...
21032         * modules/forkpty-tests: ...to this...
21033         * modules/openpty-tests: ...and this.
21034         * tests/test-pty.c: Rename and split...
21035         * tests/test-forkpty.c: ...to this...
21036         * tests/test-openpty.c: ...and this.
21037         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
21038         (gl_PTY): Split library searching...
21039         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
21040         (gl_FORKPTY, gl_OPENPTY): New macros.
21041         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
21042         * NEWS: Mention the split.
21043         * MODULES.html.sh (Misc): Document the modules.
21044         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
21045         * doc/glibc-functions/openpty.texi (openpty): Likewise.
21046
21047         pty: improve replacement header
21048         * lib/pty.in.h: New file.
21049         * modules/pty (Files): Ship it.
21050         (Makefile.am): Always build replacement.
21051         * m4/pty.m4: Rename...
21052         * m4/pty_h.m4: ...to this.
21053         (gl_PTY): Modernize setting of witness macros; update check of
21054         forkpty to take proper advantage of cache.
21055         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
21056
21057         getopt: avoid compiler warning
21058         * lib/getopt.c (attribute_hidden): Remove unused macro.
21059
21060 2010-03-18  Bruno Haible  <bruno@clisp.org>
21061
21062         Fix link errors on Solaris 8.
21063         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
21064         * modules/search-tests (test_search_c___LDADD): Likewise.
21065         * modules/signal-tests (test_signal_c___LDADD): Likewise.
21066         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
21067         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
21068         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
21069         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
21070         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
21071         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
21072
21073 2010-03-18  Bruno Haible  <bruno@clisp.org>
21074
21075         Fix bug introduced on 2010-03-14.
21076         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
21077         (gl_SPAWN_H): Require it.
21078         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
21079         Reported by Simon Josefsson.
21080
21081 2010-03-18  Bruno Haible  <bruno@clisp.org>
21082
21083         Fix typo introduced on 2009-12-31.
21084         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
21085         posix_spawn_file_actions_adddup2.
21086
21087 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
21088         and Eric Blake  <eblake@redhat.com>
21089
21090         test-vc-list-files-git: make more robust
21091         * tests/test-vc-list-files-git.sh: Unset problematic environment
21092         variables.  Chain commands together.
21093
21094 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
21095
21096         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
21097         `AC_CHECK_DECL' invocation.
21098
21099 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
21100
21101         * lib/inttostr.c (inttostr): Make sure the invocation of verify
21102         appears before executable statements. Suggested by Petr Sumbera
21103         <Petr.Sumbera@Sun.COM>.
21104
21105 2010-03-14  Bruno Haible  <bruno@clisp.org>
21106
21107         * tests/test-flock.c (test_exclusive): Comment out a test that causes
21108         portability problems. Instead use a simpler test.
21109         (main): Check that invalid arguments are rejected only on Linux.
21110
21111 2010-03-14  Bruno Haible  <bruno@clisp.org>
21112
21113         Fix bug introduced on 2009-12-31.
21114         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
21115         gl_PREREQ_SYS_H_WINSOCK2 always.
21116         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
21117         SYS_SOCKET_H variable.
21118         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
21119         Update comments.
21120         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
21121         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
21122         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21123         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
21124         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
21125
21126 2010-03-14  Bruno Haible  <bruno@clisp.org>
21127
21128         Fix values returned by sinl, cosl.
21129         * lib/trigl.h: Add specification comments.
21130         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
21131         that combines the values from the precomputed table with the values of
21132         the Chebyshev polynomials.
21133
21134 2010-03-14  Bruno Haible  <bruno@clisp.org>
21135
21136         Fix compilation error when modules 'posix_spawn[p]' are not used.
21137         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
21138         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
21139
21140 2010-03-14  Bruno Haible  <bruno@clisp.org>
21141
21142         Fix compilation error on mingw when module 'time_r' is not used.
21143         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
21144         is 1.
21145         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
21146         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
21147         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
21148         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
21149
21150 2010-03-14  Bruno Haible  <bruno@clisp.org>
21151
21152         Fix compilation error with Sun C.
21153         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
21154         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
21155         instead of GCC specific ULONG_LONG_MAX.
21156         * lib/xstrtoll.c: Likewise.
21157         * lib/xstrtoull.c: Likewise.
21158
21159 2010-03-13  Bruno Haible  <bruno@clisp.org>
21160
21161         Allow the user to disable C++ code and tests.
21162         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
21163         (gl_PROG_ANSI_CXX): Require it.
21164
21165 2010-03-13  Bruno Haible  <bruno@clisp.org>
21166
21167         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
21168         cases.
21169
21170 2010-03-13  Bruno Haible  <bruno@clisp.org>
21171
21172         Test that gnulib does not break the standard C++ headers.
21173         * tests/test-locale-c++2.cc: New file.
21174         * modules/locale-tests (Files): Add it.
21175         (Makefile.am): Compile it for test-locale-c++.
21176         * tests/test-math-c++2.cc: New file.
21177         * modules/math-tests (Files): Add it.
21178         (Makefile.am): Compile it for test-math-c++.
21179         * tests/test-signal-c++2.cc: New file.
21180         * modules/signal-tests (Files): Add it.
21181         (Makefile.am): Compile it for test-signal-c++.
21182         * tests/test-stdio-c++2.cc: New file.
21183         * modules/stdio-tests (Files): Add it.
21184         (Makefile.am): Compile it for test-stdio-c++.
21185         * tests/test-stdlib-c++2.cc: New file.
21186         * modules/stdlib-tests (Files): Add it.
21187         (Makefile.am): Compile it for test-stdlib-c++.
21188         * tests/test-string-c++2.cc: New file.
21189         * modules/string-tests (Files): Add it.
21190         (Makefile.am): Compile it for test-string-c++.
21191         * tests/test-time-c++2.cc: New file.
21192         * modules/time-tests (Files): Add it.
21193         (Makefile.am): Compile it for test-time-c++.
21194         Reported by John W. Eaton <jwe@gnu.org>.
21195
21196 2010-03-13  Bruno Haible  <bruno@clisp.org>
21197
21198         * gnulib-tool (func_usage): Clarify which options are available for
21199         --create-testdir and --create-megatestdir.
21200
21201 2010-03-13  Bruno Haible  <bruno@clisp.org>
21202
21203         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
21204         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
21205         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
21206         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
21207         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
21208         when appropriate.
21209         Reported by Jim Meyering.
21210
21211 2010-03-12  Simon Josefsson  <simon@josefsson.org>
21212
21213         * gnulib-tool (func_import): Explain origin of code.
21214
21215 2010-03-12  Bruno Haible  <bruno@clisp.org>
21216
21217         Fix problem with automake's definition of CXXLINK.
21218         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
21219         Reported by Simon Josefsson and Ludovic Courtès.
21220
21221 2010-03-12  Bruno Haible  <bruno@clisp.org>
21222
21223         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
21224         stable releases.
21225
21226 2010-03-11  Bruno Haible  <bruno@clisp.org>
21227
21228         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
21229         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
21230         whether the system provides one variant or multiple variants of the
21231         function.
21232         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
21233         C++ compilers.
21234         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
21235         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
21236         Reported by Jim Meyering.
21237
21238 2010-03-09  Simon Josefsson  <simon@josefsson.org>
21239
21240         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
21241
21242 2010-03-08  Bruno Haible  <bruno@clisp.org>
21243
21244         gnulib-tool: Add support for --libtool in --create-testdir.
21245         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
21246         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
21247
21248 2010-03-08  Eric Blake  <eblake@redhat.com>
21249
21250         gnulib-tool.texi: mention possibility of git submodule
21251         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
21252         submodules.
21253         * doc/.gitignore: Ignore another generated file.
21254
21255 2010-03-08  Karl Berry  <karl@gnu.org>
21256
21257         * doc/gnulib-tool.texi (VCS Issues): Mention third option
21258         of committing gnulib files while skipping others.
21259
21260 2010-03-07  Bruno Haible  <bruno@clisp.org>
21261
21262         Tests of module 'wctype' in C++ mode.
21263         * tests/test-wctype-c++.cc: New file.
21264         * modules/wctype-tests (Files): Add it and tests/signature.h.
21265         (Depends-on): Add ansi-c++-opt.
21266         (Makefile.am): Arrange to compile and run test-wctype-c++.
21267
21268         Tests of module 'wchar' in C++ mode.
21269         * tests/test-wchar-c++.cc: New file.
21270         * modules/wchar-tests (Files): Add it and tests/signature.h.
21271         (Depends-on): Add ansi-c++-opt.
21272         (Makefile.am): Arrange to compile and run test-wchar-c++.
21273         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
21274         gl_MODULE_INDICATOR.
21275
21276         Tests of module 'unistd' in C++ mode.
21277         * tests/test-unistd-c++.cc: New file.
21278         * modules/unistd-tests (Files): Add it and tests/signature.h.
21279         (Depends-on): Add ansi-c++-opt.
21280         (Makefile.am): Arrange to compile and run test-unistd-c++.
21281         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
21282         gl_MODULE_INDICATOR.
21283
21284         Tests of module 'time' in C++ mode.
21285         * tests/test-time-c++.cc: New file.
21286         * modules/time-tests (Files): Add it and tests/signature.h.
21287         (Depends-on): Add ansi-c++-opt.
21288         (Makefile.am): Arrange to compile and run test-time-c++.
21289         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
21290
21291         Tests of module 'sys_time' in C++ mode.
21292         * tests/test-sys_time-c++.cc: New file.
21293         * modules/sys_time-tests (Files): Add it and tests/signature.h.
21294         (Depends-on): Add ansi-c++-opt.
21295         (Makefile.am): Arrange to compile and run test-sys_time-c++.
21296         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
21297         gl_MODULE_INDICATOR.
21298
21299         Tests of module 'sys_stat' in C++ mode.
21300         * tests/test-sys_stat-c++.cc: New file.
21301         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
21302         (Depends-on): Add ansi-c++-opt.
21303         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
21304         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
21305         gl_MODULE_INDICATOR.
21306
21307         Tests of module 'sys_socket' in C++ mode.
21308         * tests/test-sys_socket-c++.cc: New file.
21309         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
21310         (Depends-on): Add ansi-c++-opt.
21311         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
21312         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
21313         gl_MODULE_INDICATOR.
21314
21315         Tests of module 'sys_select' in C++ mode.
21316         * tests/test-sys_select-c++.cc: New file.
21317         * modules/sys_select-tests (Files): Add it and tests/signature.h.
21318         (Depends-on): Add ansi-c++-opt.
21319         (Makefile.am): Arrange to compile and run test-sys_select-c++.
21320         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
21321         gl_MODULE_INDICATOR.
21322
21323         Tests of module 'sys_ioctl' in C++ mode.
21324         * tests/test-sys_ioctl-c++.cc: New file.
21325         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
21326         (Depends-on): Add ansi-c++-opt.
21327         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
21328         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
21329         gl_MODULE_INDICATOR.
21330
21331         Tests of module 'string' in C++ mode.
21332         * tests/test-string-c++.cc: New file.
21333         * modules/string-tests (Files): Add it and tests/signature.h.
21334         (Depends-on): Add ansi-c++-opt.
21335         (Makefile.am): Arrange to compile and run test-string-c++.
21336         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
21337         gl_MODULE_INDICATOR.
21338
21339         Tests of module 'stdlib' in C++ mode.
21340         * tests/test-stdlib-c++.cc: New file.
21341         * modules/stdlib-tests (Files): Add it and tests/signature.h.
21342         (Depends-on): Add ansi-c++-opt.
21343         (Makefile.am): Arrange to compile and run test-stdlib-c++.
21344         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
21345         gl_MODULE_INDICATOR.
21346
21347         Tests of module 'stdio' in C++ mode.
21348         * tests/test-stdio-c++.cc: New file.
21349         * modules/stdio-tests (Files): Add it and tests/signature.h.
21350         (Depends-on): Add ansi-c++-opt.
21351         (Makefile.am): Arrange to compile and run test-stdio-c++.
21352         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
21353         gl_MODULE_INDICATOR.
21354
21355         Tests of module 'spawn' in C++ mode.
21356         * tests/test-spawn-c++.cc: New file.
21357         * modules/spawn-tests (Files): Add it and tests/signature.h.
21358         (Depends-on): Add ansi-c++-opt.
21359         (Makefile.am): Arrange to compile and run test-spawn-c++.
21360         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
21361         gl_MODULE_INDICATOR.
21362
21363         Tests of module 'signal' in C++ mode.
21364         * tests/test-signal-c++.cc: New file.
21365         * modules/signal-tests (Files): Add it and tests/signature.h.
21366         (Depends-on): Add ansi-c++-opt.
21367         (Makefile.am): Arrange to compile and run test-signal-c++.
21368         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
21369         gl_MODULE_INDICATOR.
21370
21371         Tests of module 'search' in C++ mode.
21372         * tests/test-search-c++.cc: New file.
21373         * modules/search-tests (Files): Add it and tests/signature.h.
21374         (Depends-on): Add ansi-c++-opt.
21375         (Makefile.am): Arrange to compile and run test-search-c++.
21376         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
21377         gl_MODULE_INDICATOR.
21378
21379         Tests of module 'math' in C++ mode.
21380         * tests/test-math-c++.cc: New file.
21381         * modules/math-tests (Files): Add it and tests/signature.h.
21382         (Depends-on): Add ansi-c++-opt.
21383         (Makefile.am): Arrange to compile and run test-math-c++.
21384         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
21385
21386         Tests of module 'locale' in C++ mode.
21387         * tests/test-locale-c++.cc: New file.
21388         * modules/locale-tests (Files): Add it and tests/signature.h.
21389         (Depends-on): Add ansi-c++-opt.
21390         (Makefile.am): Arrange to compile and run test-locale-c++.
21391         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
21392         gl_MODULE_INDICATOR.
21393
21394         Tests of module 'langinfo' in C++ mode.
21395         * tests/test-langinfo-c++.cc: New file.
21396         * modules/langinfo-tests (Files): Add it and tests/signature.h.
21397         (Depends-on): Add ansi-c++-opt.
21398         (Makefile.am): Arrange to compile and run test-langinfo-c++.
21399         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
21400         gl_MODULE_INDICATOR.
21401
21402         Tests of module 'iconv-h' in C++ mode.
21403         * tests/test-iconv-h-c++.cc: New file.
21404         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
21405         (Depends-on): Add ansi-c++-opt.
21406         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
21407
21408         Tests of module 'glob' in C++ mode.
21409         * tests/test-glob-c++.cc: New file.
21410         * modules/glob-tests (Files): Add it.
21411         (Depends-on): Add ansi-c++-opt.
21412         (Makefile.am): Arrange to compile and run test-glob-c++.
21413
21414         Tests of module 'fcntl-h' in C++ mode.
21415         * tests/test-fcntl-h-c++.cc: New file.
21416         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
21417         (Depends-on): Add ansi-c++-opt.
21418         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
21419         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
21420         gl_MODULE_INDICATOR.
21421
21422         Tests of module 'dirent' in C++ mode.
21423         * tests/test-dirent-c++.cc: New file.
21424         * modules/dirent-tests (Files): Add it and tests/signature.h.
21425         (Depends-on): Add ansi-c++-opt.
21426         (Makefile.am): Arrange to compile and run test-dirent-c++.
21427         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
21428         gl_MODULE_INDICATOR.
21429
21430         New module 'ansi-c++-opt'.
21431         * modules/ansi-c++-opt: New file.
21432         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
21433
21434         Document C++ namespace mode.
21435         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
21436
21437         wctype: Avoid #define replacements in C++ mode.
21438         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
21439         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
21440         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
21441         In C++, define a namespaced alias symbol.
21442         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
21443         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
21444         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
21445         rule.
21446
21447         wchar: Avoid #define replacements in C++ mode.
21448         * lib/wchar.in.h: Include c++defs.h.
21449         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
21450         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
21451         symbol.
21452         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
21453         * modules/wchar (Depends-on): Add c++defs.
21454         (Makefile.am): Update wchar.h rule.
21455
21456         unistd: Avoid #define replacements in C++ mode.
21457         * lib/unistd.in.h: Include c++defs.h.
21458         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
21459         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
21460         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
21461         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
21462         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
21463         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
21464         symbol.
21465         (environ): Update.
21466         * modules/unistd (Depends-on): Add c++defs.
21467         (Makefile.am): Update unistd.h rule.
21468
21469         time: Avoid #define replacements in C++ mode.
21470         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
21471         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
21472         define a namespaced alias symbol.
21473         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
21474         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
21475         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
21476         * modules/time (Depends-on): Add c++defs, warn-on-use.
21477         (Makefile.am): Update time.h rule.
21478         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
21479         * modules/nanosleep (configure.ac): Likewise.
21480         * modules/strptime (configure.ac): Likewise.
21481         * modules/timegm (configure.ac): Likewise.
21482
21483         sys_time: Avoid #define replacements in C++ mode.
21484         * lib/sys_time.in.h: Include c++defs.h.
21485         (gettimeofday): In C++, define a namespaced alias symbol.
21486         * modules/sys_time (Depends-on): Add c++defs.
21487         (Makefile.am): Update sys/time.h rule.
21488
21489         sys_stat: Avoid #define replacements in C++ mode.
21490         * lib/sys_stat.in.h: Include c++defs.h.
21491         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
21492         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
21493         namespaced alias symbol.
21494         In C++, define a namespaced alias symbol.
21495         * modules/sys_stat (Depends-on): Add c++defs.
21496         (Makefile.am): Update sys/stat.h rule.
21497
21498         sys_socket: Avoid #define replacements in C++ mode.
21499         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
21500         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
21501         definitions also when the system has a <sys/socket.h>.
21502         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
21503         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
21504         In C++, define a namespaced alias symbol.
21505         * modules/sys_socket (Depends-on): Add c++defs.
21506         (Makefile.am): Update sys/socket.h rule.
21507
21508         sys_select: Avoid #define replacements in C++ mode.
21509         * lib/sys_select.in.h: Include c++defs.h. Enable the function
21510         definitions also when the system has a <sys/select.h>.
21511         (select): In C++, define a namespaced alias symbol.
21512         * modules/sys_select (Depends-on): Add c++defs.
21513         (Makefile.am): Update sys/select.h rule.
21514
21515         sys_ioctl: Avoid #define replacements in C++ mode.
21516         * lib/sys_ioctl.in.h: Include c++defs.h.
21517         (ioctl): In C++, define a namespaced alias symbol.
21518         * modules/sys_ioctl (Depends-on): Add c++defs.
21519         (Makefile.am): Update sys/ioctl.h rule.
21520
21521         string: Avoid #define replacements in C++ mode.
21522         * lib/string.in.h: Include c++defs.h.
21523         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
21524         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
21525         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
21526         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
21527         strsignal, strverscmp): In C++, define a namespaced alias symbol.
21528         * modules/string (Depends-on): Add c++defs.
21529         (Makefile.am): Update string.h rule.
21530
21531         stdlib: Avoid #define replacements in C++ mode.
21532         * lib/stdlib.in.h: Include c++defs.h.
21533         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
21534         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
21535         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
21536         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
21537         symbol.
21538         * modules/stdlib (Depends-on): Add c++defs.
21539         (Makefile.am): Update stdlib.h rule.
21540
21541         stdio: Avoid #define replacements in C++ mode.
21542         * lib/stdio.in.h: Include c++defs.h.
21543         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
21544         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
21545         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
21546         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
21547         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
21548         namespaced alias symbol.
21549         * modules/stdio (Depends-on): Add c++defs.
21550         (Makefile.am): Update stdio.h rule.
21551
21552         spawn: Avoid #define replacements in C++ mode.
21553         * lib/spawn.in.h: Include c++defs.h.
21554         (posix_spawn, posix_spawnp, posix_spawnattr_init,
21555         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
21556         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
21557         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
21558         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
21559         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
21560         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
21561         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
21562         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
21563         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
21564         In C++, define a namespaced alias symbol.
21565         * modules/spawn (Depends-on): Add c++defs.
21566         (Makefile.am): Update spawn.h rule.
21567
21568         signal: Avoid #define replacements in C++ mode.
21569         * lib/signal.in.h: Include c++defs.h.
21570         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
21571         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
21572         namespaced alias symbol.
21573         * modules/signal (Depends-on): Add c++defs.
21574         (Makefile.am): Update signal.h rule.
21575
21576         search: Avoid #define replacements in C++ mode.
21577         * lib/search.in.h: Include c++defs.h.
21578         (_gl_search_compar_fn, _gl_search_action_fn): New types.
21579         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
21580         symbol.
21581         * modules/search (Depends-on): Add c++defs.
21582         (Makefile.am): Update search.h rule.
21583
21584         math: Avoid #define replacements in C++ mode.
21585         * lib/math.in.h: Include c++defs.h.
21586         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
21587         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
21588         trunc, truncl): In C++, define a namespaced alias symbol.
21589         * modules/math (Depends-on): Add c++defs.
21590         (Makefile.am): Update math.h rule.
21591
21592         locale: Avoid #define replacements in C++ mode.
21593         * lib/locale.in.h: Include c++defs.h.
21594         (duplocale): In C++, define a namespaced alias symbol.
21595         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
21596         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
21597         * modules/locale (Depends-on): Add c++defs.
21598         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
21599
21600         langinfo: Avoid #define replacements in C++ mode.
21601         * lib/langinfo.in.h: Include c++defs.h.
21602         (nl_langinfo): In C++, define a namespaced alias symbol.
21603         * modules/langinfo (Depends-on): Add c++defs.
21604         (Makefile.am): Update langinfo.h rule.
21605
21606         iconv-h: Avoid #define replacements in C++ mode.
21607         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
21608         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
21609         symbol.
21610         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
21611         whenever iconv is present.
21612         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
21613         (Makefile.am): Update iconv.h rule.
21614
21615         glob: Avoid #define replacements in C++ mode.
21616         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
21617         (_gl_glob_errfunc_fn): New type.
21618         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
21619         symbol.
21620         * modules/glob (Depends-on): Add c++defs, warn-on-use.
21621         (Makefile.am): Update glob.h rule.
21622
21623         fcntl-h: Avoid #define replacements in C++ mode.
21624         * lib/fcntl.in.h: Include c++defs.h.
21625         (fcntl, open, openat): In C++, define a namespaced alias symbol.
21626         * modules/fcntl-h (Depends-on): Add c++defs.
21627         (Makefile.am): Update fcntl.h rule.
21628
21629         dirent: Avoid #define replacements in C++ mode.
21630         * lib/dirent.in.h: Include c++defs.h.
21631         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
21632         namespaced alias symbol.
21633         (dirfd): Update declaration.
21634         * modules/dirent (Depends-on): Add c++defs.
21635         (Makefile.am): Update dirent.h rule.
21636
21637         ctype: Make it usable in C++ code.
21638         * lib/ctype.in.h: Include c++defs.h.
21639         (isblank): Declare as extern "C".
21640         * modules/ctype (Depends-on): Add c++defs.
21641         (Makefile.am): Update ctype.h rule.
21642
21643         New module 'c++defs'.
21644         * modules/c++defs: New file.
21645         * build-aux/c++defs.h: New file.
21646         Reported by John W. Eaton <jwe@gnu.org>.
21647
21648 2010-03-07  Bruno Haible  <bruno@clisp.org>
21649
21650         logb: Provide missing declaration for Cygwin.
21651         * lib/math.in.h (logb): New declaration.
21652         * m4/logb.m4: New file.
21653         * modules/logb (Files): Add m4/logb.m4.
21654         (Depends-on): Add math.
21655         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
21656         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
21657         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
21658         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
21659         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
21660
21661 2010-03-07  Bruno Haible  <bruno@clisp.org>
21662
21663         Fix test-cond link error.
21664         * tests/test-cond.c: Include <stdio.h>.
21665
21666 2010-03-07  Bruno Haible  <bruno@clisp.org>
21667
21668         Fix test-dirent-safer link error.
21669         * modules/dirent-safer-tests (Makefile.am): Define
21670         test_dirent_safer_LDADD.
21671
21672 2010-03-07  Bruno Haible  <bruno@clisp.org>
21673
21674         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
21675         among default module list.
21676
21677 2010-03-07  Bruno Haible  <bruno@clisp.org>
21678
21679         Fix link error on platforms with GNU libiconv.
21680         * modules/unistr/u8-strcoll-tests (Makefile): Define
21681         test_u8_strcoll_LDADD.
21682         * modules/unistr/u16-strcoll-tests (Makefile): Define
21683         test_u16_strcoll_LDADD.
21684         * modules/unistr/u32-strcoll-tests (Makefile): Define
21685         test_u32_strcoll_LDADD.
21686
21687 2010-03-07  Bruno Haible  <bruno@clisp.org>
21688
21689         Use POSIX declarations for socket functions.
21690         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
21691         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
21692         rpl_sendto): Change declaration to match POSIX.
21693         * lib/connect.c (rpl_connect): Likewise.
21694         * lib/accept.c (rpl_accept): Likewise.
21695         * lib/bind.c (rpl_bind): Likewise.
21696         * lib/getpeername.c (rpl_getpeername): Likewise.
21697         * lib/getsockname.c (rpl_getsockname): Likewise.
21698         * lib/recv.c (rpl_recv): Likewise.
21699         * lib/send.c (rpl_send): Likewise.
21700         * lib/recvfrom.c (rpl_recvfrom): Likewise.
21701         * lib/sendto.c (rpl_sendto): Likewise.
21702
21703 2010-03-06  Bruno Haible  <bruno@clisp.org>
21704
21705         Clarify access, euidaccess, faccessat.
21706         * doc/posix-functions/faccessat.texi: Mention security problem under
21707         "Other problems", not "Portability problems".
21708         * doc/posix-functions/access.texi: Likewise. Mention a related security
21709         problem.
21710         * doc/glibc-functions/euidaccess.texi: Mention security problems.
21711         * lib/euidaccess.c: Add comments about platforms.
21712         * lib/unistd.in.h (access, euidaccess): Add warnings.
21713
21714 2010-03-07  Bruno Haible  <bruno@clisp.org>
21715
21716         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
21717         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
21718         (POSIX_SPAWN_SETSCHEDULER): Likewise.
21719         (POSIX_SPAWN_USEVFORK): Define in a way that works when
21720         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
21721         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
21722         declare when POSIX_SPAWN_SETSCHEDULER is zero.
21723         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
21724         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
21725         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
21726         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
21727         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
21728         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
21729         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
21730         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
21731         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
21732         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
21733         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
21734         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
21735         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
21736         Likewise.
21737         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
21738         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
21739         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
21740         Likewise.
21741         * tests/test-spawn.c (main): Make it work when
21742         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
21743
21744 2010-03-07  Bruno Haible  <bruno@clisp.org>
21745
21746         Fix incorrect Makefile.am generation in German locale.
21747         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21748         Execute sed command with character range in C locale.
21749
21750 2010-03-06  Bruno Haible  <bruno@clisp.org>
21751
21752         Tests for module 'iconv-h'.
21753         * modules/iconv-h-tests: New file.
21754         * tests/test-iconv-h.c: New file.
21755
21756         New module 'iconv-h'.
21757         * modules/iconv-h: New file.
21758         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
21759         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
21760         (configure.ac): Remove gl_ICONV_H.
21761         (Makefile.am): Remove rule for iconv.h.
21762
21763 2010-03-06  Bruno Haible  <bruno@clisp.org>
21764
21765         More consistent naming of *.m4 files.
21766         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
21767         * modules/wctype (Files): Update.
21768
21769         More consistent naming of *.m4 files.
21770         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
21771         * modules/wchar (Files): Update.
21772
21773 2010-03-06  Jim Meyering  <meyering@redhat.com>
21774
21775         euidaccess: relax license to LGPLv2+
21776         * modules/euidaccess (License): Relax to LGPLv2+.
21777
21778 2010-03-06  Bruno Haible  <bruno@clisp.org>
21779
21780         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
21781         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
21782         (Makefile.am): Augment lib_SOURCES instead.
21783
21784 2010-03-04  Jim Meyering  <meyering@redhat.com>
21785
21786         utime: remove obsolete module
21787         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
21788         unnecessary for years, and has been marked as obsolete for 10 months.
21789         * modules/utime: Remove file.
21790         * lib/utime.c: Remove file.
21791         * m4/utime.m4: Remove file.
21792         * m4/utimes-null.m4: Remove file.
21793         * doc/posix-functions/utime.texi (utime): Remove reference to
21794         the module.  Move the sole "fixed by gnulib" item into the
21795         "problems not fixed by Gnulib" list.
21796         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
21797
21798 2010-03-05  Simon Josefsson  <simon@josefsson.org>
21799
21800         * modules/exit (License): Relax license to LGPLv2+.
21801         (Status): Mark as obsolete.
21802         * NEWS: Mention deprecated 'exit' module.
21803         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
21804         of now obsolete 'exit'.
21805
21806 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21807
21808         fts-lgpl: remove unused module
21809         * modules/fts-lgpl: Remove.
21810         * MODULES.html.sh (func_all_modules): Adjust.
21811         * check-module (find_included_lib_files): Adjust.
21812         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
21813
21814 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
21815
21816         copy-acl: enhance Solaris ACL error handling
21817         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
21818         * lib/set-mode-acl.c (qset_acl): Likewise.
21819
21820 2010-03-02  Bruno Haible  <bruno@clisp.org>
21821
21822         spawn: Don't override the system defined values on FreeBSD 8.
21823         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
21824         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
21825         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
21826         if HAVE_POSIX_SPAWN is 1.
21827         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
21828
21829 2010-03-01  Bruno Haible  <bruno@clisp.org>
21830
21831         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
21832         regarding Automake.
21833
21834 2010-02-25  Bruno Haible  <bruno@clisp.org>
21835
21836         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
21837         * gnulib-tool: Define 'echo' as a function only before the ksh alias
21838         setting, not afterwards.
21839         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
21840
21841 2010-02-24  Eric Blake  <eblake@redhat.com>
21842
21843         bootstrap, git-version-gen: use timestamp
21844         * build-aux/git-version-gen (scriptversion): Force UTC.
21845         * build-aux/bootstrap (scriptversion): New variable.
21846
21847         bootstrap: allow older git
21848         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
21849         older than 1.6.4.  Requested by the libvirt project.
21850
21851 2010-02-23  Eric Blake  <eblake@redhat.com>
21852
21853         warn-on-use: work with old autoconf
21854         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
21855         AS_VAR semantics of autoconf 2.60.
21856         Reported by Bruno Haible.
21857
21858         bootstrap: improve some comments
21859         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
21860         clarification comments.
21861
21862         gettimeofday: provide correct function
21863         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
21864         when replacement is declared, otherwise provide gettimeofday.
21865         Reported by Michael Goffioul.
21866
21867 2010-02-23  Jim Meyering  <meyering@redhat.com>
21868
21869         lib-ignore: relax license to "unlimited", not LGPLv2+
21870         * modules/lib-ignore (License): Relax to "unlimited".
21871
21872 2010-02-23  Jim Meyering  <meyering@redhat.com>
21873
21874         lib-ignore: relax license to LGPLv2+
21875         * modules/lib-ignore (License): Relax to LGPLv2+.
21876
21877 2010-02-22  Eric Blake  <eblake@redhat.com>
21878
21879         lseek: avoid bash 3.2 broken pipe bug
21880         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
21881         warning from bash 3.2.
21882         Reported by Ben Pfaff, with analysis from Bruno Haible.
21883
21884         bootstrap: support non-FSF copyright holder
21885         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
21886         bootstrap.conf override of COPYRIGHT_HOLDER.
21887         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
21888
21889         bootstrap: interoperate with gettext 0.14.1
21890         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
21891
21892         bootstrap: allow for alternate submodule location
21893         * build-aux/bootstrap (gnulib_path): New variable; use instead of
21894         hardcoding submodule location.
21895         (gnulib_mk): Allow direct use of Makefile.am.
21896
21897         bootstrap: use GNULIB_SRCDIR to reduce disk usage
21898         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
21899         rather than reconfiguring where the submodule points.
21900
21901         gettimeofday: restore support for platforms that lack function
21902         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
21903         replacement if function is missing.
21904         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
21905         * modules/sys_time (Makefile.am): Substitute it.
21906         * lib/sys_time.in.h (gettimeofday): Check it.
21907         Reported by Michael Goffioul.
21908
21909 2010-02-21  Bruno Haible  <bruno@clisp.org>
21910
21911         * lib/stdio.in.h (obstack_printf): Fix typo.
21912
21913 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
21914
21915         vc-list-files: use bzr ls's -R option
21916         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
21917         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
21918
21919 2010-02-21  Jim Meyering  <meyering@redhat.com>
21920
21921         init.sh: fix EXEEXT shims to work also for names like test-prog
21922         * tests/init.sh: Re-exec a better shell, when needed.
21923         If the current shell lacks support for posix $(...), an init.sh-using
21924         test will now try to find a shell that supports that.  If EXEEXT is
21925         nonempty, we also require support for hyphen-in-alias-name and shell
21926         substitutions like ${var#glob}.  Failure to find such a shell results
21927         in a skipped test.
21928
21929 2010-02-21  Bruno Haible  <bruno@clisp.org>
21930
21931         Really work around around "broken pipe" error message from bash 3.2.
21932         * gnulib-tool (func_reset_sigpipe): Remove function.
21933         (echo): In bash 3.2, define to a function that uses printf.
21934         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
21935
21936 2010-02-20  Bruno Haible  <bruno@clisp.org>
21937
21938         Restore support for automake 1.9.6 with autoconf 2.61.
21939         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
21940         Reported by James Youngman <jay@gnu.org>.
21941
21942 2010-02-20  Bruno Haible  <bruno@clisp.org>
21943
21944         Improve *printf warning condition.
21945         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
21946         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
21947         and the function is overridden due to SIGPIPE emulation.
21948
21949 2010-02-20  Bruno Haible  <bruno@clisp.org>
21950
21951         * lib/stdio.in.h: Tweak comments.
21952
21953 2010-02-19  Bruno Haible  <bruno@clisp.org>
21954
21955         Make it easier to find modules. New gnulib-tool option '--find'.
21956         * gnulib-tool: New option --find.
21957         (func_usage): Document it.
21958         (func_sanitize_modulelist): New function, extracted from
21959         func_all_modules.
21960         (func_all_modules): Invoke it.
21961         * doc/gnulib-tool.texi (Which modules?): New node.
21962
21963 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
21964
21965         * lib/sys_select.in.h: Provide select replacement even if
21966         sys/select.h exists on a system, for Interix.
21967
21968 2010-02-18  Jim Meyering  <meyering@redhat.com>
21969
21970         init.sh: don't use $(...) just yet
21971         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
21972         to accommodate e.g., Solaris' /bin/sh.
21973
21974 2010-02-17  Bruno Haible  <bruno@clisp.org>
21975
21976         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
21977         Reported by Ludovic Courtès <ludo@gnu.org>.
21978
21979 2010-02-16  Simon Josefsson  <simon@josefsson.org>
21980
21981         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
21982         linking with -lintl.
21983
21984 2010-02-17  Simon Josefsson  <simon@josefsson.org>
21985
21986         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
21987         if not provided by the system's netdb.h.  Reported by
21988         ludo@gnu.org (Ludovic Courtès).
21989
21990 2010-02-15  Jim Meyering  <meyering@redhat.com>
21991
21992         init.sh: improve portability and efficiency
21993         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
21994         "dummy" in a for loop.
21995         Use '!', not '^' to select the complement of a character set used
21996         in a "case" statement.
21997         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
21998         Suggestions from Eric Blake.
21999
22000         init.sh: automatically accommodate programs with the .exe suffix
22001         Automatically arrange for an invocation of "prog" to execute the
22002         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
22003         may use the simpler "prog", yet still work when built on a system
22004         that requires specifying the added suffix.
22005         Do this by constructing a function named "prog" that invokes
22006         "prog.exe" for each .exe file in selected directories.
22007         * tests/init.sh (find_exe_basenames_): New function.
22008         (create_exe_shim_functions_): New function.
22009         (path_prepend_): Use it.
22010
22011         maint.mk: mark syntax-check sc_*.m rules as .PHONY
22012         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
22013         "make -t syntax-check" doesn't create a ton of sc_*.m files.
22014
22015 2010-02-14  Jim Meyering  <meyering@redhat.com>
22016
22017         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
22018         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
22019         (sc_prohibit_hash_pjw_without_use): New rule.
22020
22021         maint.mk: allow the default upload destination dir to be overridden
22022         * top/maint.mk (upload_dest_dir_): Define with a default that
22023         preserves the status quo.
22024         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
22025         Reported by Peter Simons.
22026
22027         maint.mk: prohibit inclusion of "hash.h" without_use
22028         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
22029
22030 2010-02-10  Jim Meyering  <meyering@redhat.com>
22031
22032         maint.mk: prohibit inclusion of "ignore-value.h" without_use
22033         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
22034
22035 2010-02-09  Eric Blake  <ebb9@byu.net>
22036         and Bruno Haible  <bruno@clisp.org>
22037
22038         obstack-printf-posix: ensure declaration
22039         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
22040         extracted from gl_FUNC_OBSTACK_PRINTF.
22041         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
22042         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
22043         Likewise.
22044         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
22045         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
22046         0.
22047
22048 2010-02-08  Bruno Haible  <bruno@clisp.org>
22049
22050         gnulib-tool: Fix typo in 2010-02-07 commit.
22051         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
22052         Reported by Eric Blake.
22053
22054 2010-02-07  Bruno Haible  <bruno@clisp.org>
22055
22056         gnulib-tool: Fix up caching patches.
22057         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
22058         option --no-cache. Use associative arrays when supported by the shell.
22059         (sed_comments): New variable.
22060         (modcache): Renamed from do_cache.
22061         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
22062         abbreviate unnecessarily.
22063         (have_associative): New variable.
22064         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
22065         way also for ksh and zsh.
22066         (func_init_sed_convert_to_cache_statements): New function, extracted
22067         from func_cache_lookup_module. Add support for associative arrays.
22068         Don't set the c_MODULE_cached variable here. Ignore all lines before
22069         the first field header. Remove only the final newline, not all trailing
22070         newlines. Support empty fields correctly. Limit the use of 'eval' to
22071         assignments.
22072         (func_get_description, func_get_status, func_get_notice,
22073         func_get_applicability, func_get_filelist, func_get_dependencies,
22074         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
22075         func_get_automake_snippet, func_get_include_directive,
22076         func_get_link_directive, func_get_license, func_get_maintainer):
22077         Update documentation. List the unoptimized code first. Add support for
22078         associative arrays. Limit the use of 'eval' to assignments.
22079         (func_get_applicability): Undo stylistic pessimisations.
22080         (func_get_automake_snippet, func_get_include_directive): Reduce code
22081         duplication.
22082         (func_modules_transitive_closure, func_modules_add_dummy,
22083         func_modules_notice, func_modules_to_filelist, func_add_file,
22084         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
22085         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
22086         func_create_testdir, func_create_megatestdir): Update documentation.
22087
22088 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22089
22090         * gnulib-tool (func_cache_lookup_module): Store the module name
22091         belonging to the cache variable; error out if two different
22092         module names map to the same cache variable name.
22093
22094 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22095
22096         gnulib-tool: Make caching optional.
22097         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
22098         Update matching short versions of --no-changelog.
22099         (func_usage): Update.
22100         (sed_extract_cache_prog): Renamed from ...
22101         (sed_extract_prog): ... this; revert to old extraction script.
22102         (func_get_description, func_get_status)
22103         (func_get_notice, func_get_applicability, func_get_filelist)
22104         (func_get_dependencies, func_get_autoconf_early_snippet)
22105         (func_get_autoconf_snippet, func_get_automake_snippet)
22106         (func_get_include_directive, func_get_link_directive)
22107         (func_get_license, func_get_maintainer): If $do_cache is false,
22108         use old, non-caching extraction scripts.
22109         Suggestion by Bruno Haible.
22110
22111 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22112
22113         gnulib-tool: cache module metainformation.
22114         * gnulib-tool (sed_extract_prog): Match newline before each
22115         header, and rewrite header to a shell variable suffix.
22116         (func_cache_var, func_cache_lookup_module): New functions,
22117         to turn a module name into a cache variable prefix, and to
22118         look up and cache module metainformation.
22119         (func_get_description, func_get_status)
22120         (func_get_notice, func_get_applicability, func_get_filelist)
22121         (func_get_dependencies, func_get_autoconf_early_snippet)
22122         (func_get_autoconf_snippet, func_get_automake_snippet)
22123         (func_get_include_directive, func_get_link_directive)
22124         (func_get_license, func_get_maintainer): Use
22125         func_cache_lookup_module.
22126
22127 2010-02-07  Bruno Haible  <bruno@clisp.org>
22128
22129         fnctl: Fix missing dependency.
22130         * modules/fcntl (Depends-on): Add getdtablesize.
22131         Reported by John W. Eaton <jwe@gnu.org>.
22132
22133 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
22134
22135         Argp: fix recognition of short alias options.
22136
22137         * lib/argp-parse.c (convert_options): Fix improper use of
22138         `|' between character values.
22139         * tests/test-argp.c (group1_option): New alias option
22140         --read (-r).
22141         (group1_parser): Special handling for 'r'.
22142         (test15): New test case.
22143         (test_fun): Add test15.
22144         * tests/test-argp-2.sh: Update expected --help and --usage
22145         outputs.
22146
22147 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
22148
22149         * tests/test-argp.c: Fix indentation.
22150
22151 2010-02-04  Eric Blake  <ebb9@byu.net>
22152
22153         gettimeofday: expose type of second argument
22154         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
22155         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
22156         * tests/test-gettimeofday.c: Use it to silence warning.
22157         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
22158         the issue.
22159
22160 2010-02-03  Jim Meyering  <meyering@redhat.com>
22161
22162         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
22163         * lib/regcomp.c (TYPE_SIGNED): Define.
22164         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
22165
22166         regcomp.c: avoid a new -Wshadow warning
22167         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
22168
22169 2010-02-01  Jim Meyering  <meyering@redhat.com>
22170
22171         removing useless parentheses in cpp #define directives
22172         For motivation, see commit c0221df4, "define STREQ(a,b)
22173         consistently, removing useless parentheses"
22174         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
22175         * lib/mountlist.c (MNT_IGNORE): Likewise.
22176         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
22177
22178 2010-02-01  Eric Blake  <ebb9@byu.net>
22179
22180         sys_time: use link-warning
22181         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
22182         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
22183         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
22184         * modules/sys_time (Depends-on): Add warn-on-use.
22185         (Makefile.am): Always build replacement.
22186         (configure.ac): Update substitutions.
22187         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
22188         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
22189         bother with SYS_TIME_H.
22190         * modules/gettimeofday (configure.ac): Declare indicator.
22191         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
22192         in use.
22193
22194         closein-tests: silence compiler warning
22195         * tests/test-closein.c (main): Ignore fread result.
22196         * modules/closein-tests (Depends-on): Add ignore-value.
22197
22198         tests: silence warning about system return
22199         * tests/test-areadlink-with-size.c (main): Ignore system result.
22200         * tests/test-areadlink.c (main): Likewise.
22201         * tests/test-areadlinkat-with-size.c (main): Likewise.
22202         * tests/test-areadlinkat.c (main): Likewise.
22203         * tests/test-canonicalize-lgpl.c (main): Likewise.
22204         * tests/test-canonicalize.c (main): Likewise.
22205         * tests/test-chown.c (main): Likewise.
22206         * tests/test-fchownat.c (main): Likewise.
22207         * tests/test-fdutimensat.c (main): Likewise.
22208         * tests/test-fstatat.c (main): Likewise.
22209         * tests/test-futimens.c (main): Likewise.
22210         * tests/test-lchown.c (main): Likewise.
22211         * tests/test-link.c (main): Likewise.
22212         * tests/test-linkat.c (main): Likewise.
22213         * tests/test-lstat.c (main): Likewise.
22214         * tests/test-mkdir.c (main): Likewise.
22215         * tests/test-mkdirat.c (main): Likewise.
22216         * tests/test-mkfifo.c (main): Likewise.
22217         * tests/test-mkfifoat.c (main): Likewise.
22218         * tests/test-mknod.c (main): Likewise.
22219         * tests/test-readlink.c (main): Likewise.
22220         * tests/test-remove.c (main): Likewise.
22221         * tests/test-rename.c (main): Likewise.
22222         * tests/test-renameat.c (main): Likewise.
22223         * tests/test-rmdir.c (main): Likewise.
22224         * tests/test-symlink.c (main): Likewise.
22225         * tests/test-symlinkat.c (main): Likewise.
22226         * tests/test-unlink.c (main): Likewise.
22227         * tests/test-unlinkat.c (main): Likewise.
22228         * tests/test-utimens.c (main): Likewise.
22229         * tests/test-utimensat.c (main): Likewise.
22230         * modules/areadlink-tests (Depends-on): Add ignore-value.
22231         * modules/areadlink-with-size-tests (Depends-on): Likewise.
22232         * modules/areadlinkat-tests (Depends-on): Likewise.
22233         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
22234         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
22235         * modules/canonicalize-tests (Depends-on): Likewise.
22236         * modules/chown-tests (Depends-on): Likewise.
22237         * modules/fdutimensat-tests (Depends-on): Likewise.
22238         * modules/futimens-tests (Depends-on): Likewise.
22239         * modules/lchown-tests (Depends-on): Likewise.
22240         * modules/link-tests (Depends-on): Likewise.
22241         * modules/linkat-tests (Depends-on): Likewise.
22242         * modules/lstat-tests (Depends-on): Likewise.
22243         * modules/mkdir-tests (Depends-on): Likewise.
22244         * modules/mkfifo-tests (Depends-on): Likewise.
22245         * modules/mkfifoat-tests (Depends-on): Likewise.
22246         * modules/mknod-tests (Depends-on): Likewise.
22247         * modules/openat-tests (Depends-on): Likewise.
22248         * modules/readlink-tests (Depends-on): Likewise.
22249         * modules/remove-tests (Depends-on): Likewise.
22250         * modules/rename-tests (Depends-on): Likewise.
22251         * modules/renameat-tests (Depends-on): Likewise.
22252         * modules/rmdir-tests (Depends-on): Likewise.
22253         * modules/symlink-tests (Depends-on): Likewise.
22254         * modules/symlinkat-tests (Depends-on): Likewise.
22255         * modules/unlink-tests (Depends-on): Likewise.
22256         * modules/utimens-tests (Depends-on): Likewise.
22257         * modules/utimensat-tests (Depends-on): Likewise.
22258
22259 2010-01-31  Bruno Haible  <bruno@clisp.org>
22260
22261         Perform the same test for many <math.h> functions.
22262         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
22263         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
22264         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
22265         of gl_MATHFUNC.
22266         * modules/acos (configure.ac): Likewise.
22267         * modules/asin (configure.ac): Likewise.
22268         * modules/atan (configure.ac): Likewise.
22269         * modules/atan2 (configure.ac): Likewise.
22270         * modules/cbrt (configure.ac): Likewise.
22271         * modules/copysign (configure.ac): Likewise.
22272         * modules/cos (configure.ac): Likewise.
22273         * modules/cosh (configure.ac): Likewise.
22274         * modules/erf (configure.ac): Likewise.
22275         * modules/erfc (configure.ac): Likewise.
22276         * modules/exp (configure.ac): Likewise.
22277         * modules/fmod (configure.ac): Likewise.
22278         * modules/hypot (configure.ac): Likewise.
22279         * modules/j0 (configure.ac): Likewise.
22280         * modules/j1 (configure.ac): Likewise.
22281         * modules/jn (configure.ac): Likewise.
22282         * modules/lgamma (configure.ac): Likewise.
22283         * modules/log (configure.ac): Likewise.
22284         * modules/log10 (configure.ac): Likewise.
22285         * modules/log1p (configure.ac): Likewise.
22286         * modules/pow (configure.ac): Likewise.
22287         * modules/remainder (configure.ac): Likewise.
22288         * modules/sin (configure.ac): Likewise.
22289         * modules/sinh (configure.ac): Likewise.
22290         * modules/tan (configure.ac): Likewise.
22291         * modules/tanh (configure.ac): Likewise.
22292         * modules/y0 (configure.ac): Likewise.
22293         * modules/y1 (configure.ac): Likewise.
22294         * modules/yn (configure.ac): Likewise.
22295         Suggested by Paolo Bonzini.
22296
22297 2010-01-31  Bruno Haible  <bruno@clisp.org>
22298
22299         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
22300
22301 2010-01-31  Bruno Haible  <bruno@clisp.org>
22302
22303         Work around getdelim() bug on FreeBSD 8.0.
22304         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
22305         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
22306         not work.
22307         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
22308         is 1.
22309         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
22310         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
22311         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
22312         a non-zero size.
22313         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
22314
22315 2010-01-31  Bruno Haible  <bruno@clisp.org>
22316
22317         Work around getline() bug on FreeBSD 8.0.
22318         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
22319         and a non-zero size.
22320         * tests/test-getline.c (main): Likewise.
22321         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
22322         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
22323
22324 2010-01-28  Eric Blake  <ebb9@byu.net>
22325
22326         regex: fix build failure
22327         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
22328         platforms.
22329
22330 2010-01-28  Jim Meyering  <meyering@redhat.com>
22331
22332         regex: do not ignore memory allocation failure
22333         * lib/regex_internal.c (create_cd_newstate): Detect
22334         re_node_set_init_copy failure.   Extracted from glibc commit
22335         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
22336
22337         regex: sync more white-space changes from libc
22338         * lib/regex_internal.c: White-space only changes.
22339         * lib/regexec.c: Likewise.
22340
22341         regex: add many uses of __attribute_warn_unused_result__
22342         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
22343         * lib/regexec.c: Likewise.
22344         Extracted from a messy glibc commit.
22345
22346         regcomp.c: spelling and merge-artifact from glibc
22347         * lib/regcomp.c: Merge remainder of glibc's
22348         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
22349
22350         regcomp.c: sync white-space changes from glibc
22351         * lib/regcomp.c: Merge to accommodate white space
22352         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
22353
22354         regcomp.c: do not ignore internal return values
22355         * lib/regcomp.c: Do not ignore internal return values.
22356         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
22357         but without its white-space changes and spelling fixes.
22358
22359         regex_internal.h: define __attribute_warn_unused_result__
22360         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
22361
22362         maint: add a syntax-check rule to check for vulnerable Makefile.in
22363         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
22364
22365 2010-01-27  Jim Meyering  <meyering@redhat.com>
22366
22367         ncftpput-ftp: clean up spaces
22368         * build-aux/ncftpput-ftp: Make Copyright line consistent.
22369         Remove trailing blanks.
22370
22371 2010-01-27  Simon Josefsson  <simon@josefsson.org>
22372
22373         * build-aux/git-version-gen: Fix copyright statement.
22374         * build-aux/gnupload: Likewise.
22375         * tests/test-arcfour.c: Likewise.
22376         * tests/test-arctwo.c: Likewise.
22377         * tests/test-count-one-bits.c: Likewise.
22378         * tests/test-crc.c: Likewise.
22379         * tests/test-des.c: Likewise.
22380         * tests/test-gc-arcfour.c: Likewise.
22381         * tests/test-gc-arctwo.c: Likewise.
22382         * tests/test-gc-des.c: Likewise.
22383         * tests/test-gc-hmac-md5.c: Likewise.
22384         * tests/test-gc-hmac-sha1.c: Likewise.
22385         * tests/test-gc-md2.c: Likewise.
22386         * tests/test-gc-md4.c: Likewise.
22387         * tests/test-gc-md5.c: Likewise.
22388         * tests/test-gc-pbkdf2-sha1.c: Likewise.
22389         * tests/test-gc-rijndael.c: Likewise.
22390         * tests/test-gc-sha1.c: Likewise.
22391         * tests/test-gc.c: Likewise.
22392         * tests/test-gethostname.c: Likewise.
22393         * tests/test-gettimeofday.c: Likewise.
22394         * tests/test-hash.c: Likewise.
22395         * tests/test-hmac-md5.c: Likewise.
22396         * tests/test-hmac-sha1.c: Likewise.
22397         * tests/test-md2.c: Likewise.
22398         * tests/test-md4.c: Likewise.
22399         * tests/test-md5.c: Likewise.
22400         * tests/test-memchr.c: Likewise.
22401         * tests/test-memchr2.c: Likewise.
22402         * tests/test-memcmp.c: Likewise.
22403         * tests/test-memmem.c: Likewise.
22404         * tests/test-memrchr.c: Likewise.
22405         * tests/test-rawmemchr.c: Likewise.
22406         * tests/test-read-file.c: Likewise.
22407         * tests/test-rijndael.c: Likewise.
22408         * tests/test-sockets.c: Likewise.
22409         * tests/test-strchrnul.c: Likewise.
22410         * tests/test-strstr.c: Likewise.
22411         * tests/test-strtod.c: Likewise.
22412         * build-aux/ncftpput-ftp: Likewise.
22413
22414 2010-01-26  Eric Blake  <ebb9@byu.net>
22415
22416         ignore-value: update recommended header name
22417         * modules/ignore-value (Include): Only use <> for headers that
22418         exist in glibc.
22419
22420 2010-01-26  Jim Meyering  <meyering@redhat.com>
22421
22422         test-userspec.c: avoid compiler warnings
22423         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
22424         and "initialization discards qualifiers..." warnings.
22425         Put the first "uid" in its own scope, and make char* members "const".
22426
22427 2010-01-25  Bruno Haible  <bruno@clisp.org>
22428
22429         gnulib-tool: Make warning diagnostics consistent.
22430         * gnulib-tool (func_warning): New function.
22431         Use it everywhere where gnulib-tool produces output to stderr and it is
22432         not a fatal error.
22433
22434 2010-01-25  Bruno Haible  <bruno@clisp.org>
22435
22436         Fix test dependencies.
22437         * modules/xstrtol-tests (Depends-on): Add inttypes.
22438         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
22439
22440 2010-01-25 Pádraig Brady <P@draigBrady.com>
22441
22442         syntax-check: detect incorrect boolean macro values in config.h
22443         * modules/maintainer-makefile (configure.ac): Parameterize the location
22444         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
22445         The logic is from Eric Blake and the location indicated by Jim Meyering.
22446         Note the more natural CONFIG_HEADER name is prohibited by automake
22447         for backwards compatibility reasons.
22448         * top/maint.mk (sc_Wundef_boolean): New rule.
22449
22450 2010-01-25  Jim Meyering  <meyering@redhat.com>
22451
22452         bootstrap: detect MacOS 10.6's shasum, too
22453         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
22454         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
22455
22456 2010-01-23  Jim Meyering  <meyering@redhat.com>
22457
22458         xstrtoll: new module
22459         * modules/xstrtoll: New file.
22460         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
22461         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
22462         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
22463         ./configure fails if you use this module and lack "long long".
22464         * modules/xstrtoll-tests: New module.
22465         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
22466         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
22467         new init.sh-based test framework.
22468
22469 2010-01-24  Bruno Haible  <bruno@clisp.org>
22470
22471         Tests for module 'yn'.
22472         * modules/yn-tests: New file.
22473         * tests/test-yn.c: New file.
22474
22475         Tests for module 'y1'.
22476         * modules/y1-tests: New file.
22477         * tests/test-y1.c: New file.
22478
22479         Tests for module 'y0'.
22480         * modules/y0-tests: New file.
22481         * tests/test-y0.c: New file.
22482
22483         Tests for module 'tanh'.
22484         * modules/tanh-tests: New file.
22485         * tests/test-tanh.c: New file.
22486
22487         Tests for module 'tan'.
22488         * modules/tan-tests: New file.
22489         * tests/test-tan.c: New file.
22490
22491         Tests for module 'sqrt'.
22492         * modules/sqrt-tests: New file.
22493         * tests/test-sqrt.c: New file.
22494
22495         Tests for module 'sinh'.
22496         * modules/sinh-tests: New file.
22497         * tests/test-sinh.c: New file.
22498
22499         Tests for module 'sin'.
22500         * modules/sin-tests: New file.
22501         * tests/test-sin.c: New file.
22502
22503         Tests for module 'rint'.
22504         * modules/rint-tests: New file.
22505         * tests/test-rint.c: New file.
22506
22507         Tests for module 'remainder'.
22508         * modules/remainder-tests: New file.
22509         * tests/test-remainder.c: New file.
22510
22511         Tests for module 'pow'.
22512         * modules/pow-tests: New file.
22513         * tests/test-pow.c: New file.
22514
22515         Tests for module 'nextafter'.
22516         * modules/nextafter-tests: New file.
22517         * tests/test-nextafter.c: New file.
22518
22519         Tests for module 'modf'.
22520         * modules/modf-tests: New file.
22521         * tests/test-modf.c: New file.
22522
22523         Tests for module 'logb'.
22524         * modules/logb-tests: New file.
22525         * tests/test-logb.c: New file.
22526
22527         Tests for module 'log1p'.
22528         * modules/log1p-tests: New file.
22529         * tests/test-log1p.c: New file.
22530
22531         Tests for module 'log10'.
22532         * modules/log10-tests: New file.
22533         * tests/test-log10.c: New file.
22534
22535         Tests for module 'log'.
22536         * modules/log-tests: New file.
22537         * tests/test-log.c: New file.
22538
22539         Tests for module 'lgamma'.
22540         * modules/lgamma-tests: New file.
22541         * tests/test-lgamma.c: New file.
22542
22543         Tests for module 'ldexp'.
22544         * modules/ldexp-tests: New file.
22545         * tests/test-ldexp.c: New file.
22546
22547         Tests for module 'jn'.
22548         * modules/jn-tests: New file.
22549         * tests/test-jn.c: New file.
22550
22551         Tests for module 'j1'.
22552         * modules/j1-tests: New file.
22553         * tests/test-j1.c: New file.
22554
22555         Tests for module 'j0'.
22556         * modules/j0-tests: New file.
22557         * tests/test-j0.c: New file.
22558
22559         Tests for module 'hypot'.
22560         * modules/hypot-tests: New file.
22561         * tests/test-hypot.c: New file.
22562
22563         Tests for module 'fmod'.
22564         * modules/fmod-tests: New file.
22565         * tests/test-fmod.c: New file.
22566
22567         Tests for module 'fabs'.
22568         * modules/fabs-tests: New file.
22569         * tests/test-fabs.c: New file.
22570
22571         Tests for module 'exp'.
22572         * modules/exp-tests: New file.
22573         * tests/test-exp.c: New file.
22574
22575         Tests for module 'erfc'.
22576         * modules/erfc-tests: New file.
22577         * tests/test-erfc.c: New file.
22578
22579         Tests for module 'erf'.
22580         * modules/erf-tests: New file.
22581         * tests/test-erf.c: New file.
22582
22583         Tests for module 'cosh'.
22584         * modules/cosh-tests: New file.
22585         * tests/test-cosh.c: New file.
22586
22587         Tests for module 'cos'.
22588         * modules/cos-tests: New file.
22589         * tests/test-cos.c: New file.
22590
22591         Tests for module 'copysign'.
22592         * modules/copysign-tests: New file.
22593         * tests/test-copysign.c: New file.
22594
22595         Tests for module 'cbrt'.
22596         * modules/cbrt-tests: New file.
22597         * tests/test-cbrt.c: New file.
22598
22599         Tests for module 'atan2'.
22600         * modules/atan2-tests: New file.
22601         * tests/test-atan2.c: New file.
22602
22603         Tests for module 'atan'.
22604         * modules/atan-tests: New file.
22605         * tests/test-atan.c: New file.
22606
22607         Tests for module 'asin'.
22608         * modules/asin-tests: New file.
22609         * tests/test-asin.c: New file.
22610
22611         Tests for module 'acos'.
22612         * modules/acos-tests: New file.
22613         * tests/test-acos.c: New file.
22614
22615 2010-01-24  Bruno Haible  <bruno@clisp.org>
22616
22617         Fix tests for common <math.h> functions.
22618         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
22619         code snippet that references the function pointer, rather than merely
22620         calling the function. Substitute the FUNC_LIBM variable.
22621         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
22622         * modules/acos (configure.ac): Likewise.
22623         * modules/asin (configure.ac): Likewise.
22624         * modules/atan (configure.ac): Likewise.
22625         * modules/atan2 (configure.ac): Likewise.
22626         * modules/cbrt (configure.ac): Likewise.
22627         * modules/copysign (configure.ac): Likewise.
22628         * modules/cos (configure.ac): Likewise.
22629         * modules/cosh (configure.ac): Likewise.
22630         * modules/erf (configure.ac): Likewise.
22631         * modules/erfc (configure.ac): Likewise.
22632         * modules/exp (configure.ac): Likewise.
22633         * modules/fabs (configure.ac): Likewise.
22634         * modules/fmod (configure.ac): Likewise.
22635         * modules/hypot (configure.ac): Likewise.
22636         * modules/j0 (configure.ac): Likewise.
22637         * modules/j1 (configure.ac): Likewise.
22638         * modules/jn (configure.ac): Likewise.
22639         * modules/ldexp (configure.ac): Likewise.
22640         * modules/lgamma (configure.ac): Likewise.
22641         * modules/log (configure.ac): Likewise.
22642         * modules/log10 (configure.ac): Likewise.
22643         * modules/log1p (configure.ac): Likewise.
22644         * modules/logb (configure.ac): Likewise.
22645         * modules/modf (configure.ac): Likewise.
22646         * modules/nextafter (configure.ac): Likewise.
22647         * modules/pow (configure.ac): Likewise.
22648         * modules/remainder (configure.ac): Likewise.
22649         * modules/rint (configure.ac): Likewise.
22650         * modules/sin (configure.ac): Likewise.
22651         * modules/sinh (configure.ac): Likewise.
22652         * modules/tan (configure.ac): Likewise.
22653         * modules/tanh (configure.ac): Likewise.
22654         * modules/y0 (configure.ac): Likewise.
22655         * modules/y1 (configure.ac): Likewise.
22656         * modules/yn (configure.ac): Likewise.
22657
22658 2010-01-24  Bruno Haible  <bruno@clisp.org>
22659
22660         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
22661         * tests/test-acosl.c (x): New variable.
22662         (main): Store argument in x and fetch it from x.
22663         * tests/test-asinl.c (x): New variable.
22664         (main): Store argument in x and fetch it from x.
22665         * tests/test-atanl.c (x): New variable.
22666         (main): Store argument in x and fetch it from x.
22667         * tests/test-cosl.c (x): New variable.
22668         (main): Store argument in x and fetch it from x.
22669         * tests/test-expl.c (x): New variable.
22670         (main): Store argument in x and fetch it from x.
22671         * tests/test-logl.c (x): New variable.
22672         (main): Store argument in x and fetch it from x.
22673         * tests/test-sinl.c (x): New variable.
22674         (main): Store argument in x and fetch it from x.
22675         * tests/test-sqrtl.c (x): New variable.
22676         (main): Store argument in x and fetch it from x.
22677         * tests/test-tanl.c (x): New variable.
22678         (main): Store argument in x and fetch it from x.
22679
22680 2010-01-24  Bruno Haible  <bruno@clisp.org>
22681
22682         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
22683         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
22684         assignments to the initial TESTS_ENVIRONMENT.
22685         * doc/gnulib.texi (Unit test modules): Document it.
22686         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
22687         TESTS_ENVIRONMENT.
22688         * modules/btowc-tests (Makefile.am): Likewise.
22689         * modules/c-stack-tests (Makefile.am): Likewise.
22690         * modules/c-strcase-tests (Makefile.am): Likewise.
22691         * modules/copy-file-tests (Makefile.am): Likewise.
22692         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
22693         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
22694         * modules/mbrtowc-tests (Makefile.am): Likewise.
22695         * modules/mbscasecmp-tests (Makefile.am): Likewise.
22696         * modules/mbscasestr-tests (Makefile.am): Likewise.
22697         * modules/mbschr-tests (Makefile.am): Likewise.
22698         * modules/mbscspn-tests (Makefile.am): Likewise.
22699         * modules/mbsinit-tests (Makefile.am): Likewise.
22700         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
22701         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
22702         * modules/mbspbrk-tests (Makefile.am): Likewise.
22703         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
22704         * modules/mbsrchr-tests (Makefile.am): Likewise.
22705         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
22706         * modules/mbsspn-tests (Makefile.am): Likewise.
22707         * modules/mbsstr-tests (Makefile.am): Likewise.
22708         * modules/nl_langinfo-tests (Makefile.am): Likewise.
22709         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
22710         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
22711         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
22712         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
22713         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
22714         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
22715         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
22716         * modules/wcrtomb-tests (Makefile.am): Likewise.
22717         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
22718         * modules/wcsrtombs-tests (Makefile.am): Likewise.
22719         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
22720         assignments from TESTS_ENVIRONMENT.
22721         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
22722         augmentation.
22723         * modules/argp-version-etc-tests (Makefile.am): Likewise.
22724         * modules/atexit-tests (Makefile.am): Likewise.
22725         * modules/binary-io-tests (Makefile.am): Likewise.
22726         * modules/closein-tests (Makefile.am): Likewise.
22727         * modules/dprintf-posix-tests (Makefile.am): Likewise.
22728         * modules/exclude-tests (Makefile.am): Likewise.
22729         * modules/fflush-tests (Makefile.am): Likewise.
22730         * modules/fpending-tests (Makefile.am): Likewise.
22731         * modules/fprintf-posix-tests (Makefile.am): Likewise.
22732         * modules/freadahead-tests (Makefile.am): Likewise.
22733         * modules/freadptr-tests (Makefile.am): Likewise.
22734         * modules/freadseek-tests (Makefile.am): Likewise.
22735         * modules/fseek-tests (Makefile.am): Likewise.
22736         * modules/fseeko-tests (Makefile.am): Likewise.
22737         * modules/ftell-tests (Makefile.am): Likewise.
22738         * modules/ftello-tests (Makefile.am): Likewise.
22739         * modules/idpriv-drop-tests (Makefile.am): Likewise.
22740         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
22741         * modules/lseek-tests (Makefile.am): Likewise.
22742         * modules/parse-duration-tests (Makefile.am): Likewise.
22743         * modules/perror-tests (Makefile.am): Likewise.
22744         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
22745         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
22746         * modules/pipe-tests (Makefile.am): Likewise.
22747         * modules/pread-tests (Makefile.am): Likewise.
22748         * modules/printf-posix-tests (Makefile.am): Likewise.
22749         * modules/select-tests (Makefile.am): Likewise.
22750         * modules/sigpipe-tests (Makefile.am): Likewise.
22751         * modules/tsearch-tests (Makefile.am): Likewise.
22752         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
22753         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
22754         * modules/uniname/uniname-tests (Makefile.am): Likewise.
22755         * modules/uniwidth/width-tests (Makefile.am): Likewise.
22756         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
22757         * modules/version-etc-tests (Makefile.am): Likewise.
22758         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
22759         * modules/vprintf-posix-tests (Makefile.am): Likewise.
22760         * modules/xalloc-die-tests (Makefile.am): Likewise.
22761         * modules/xprintf-posix-tests (Makefile.am): Likewise.
22762         * modules/xstrtoimax-tests (Makefile.am): Likewise.
22763         * modules/xstrtol-tests (Makefile.am): Likewise.
22764         * modules/xstrtoumax-tests (Makefile.am): Likewise.
22765         * modules/yesno-tests (Makefile.am): Likewise.
22766         Suggested by Jim Meyering.
22767
22768 2010-01-24  Bruno Haible  <bruno@clisp.org>
22769
22770         More documentation.
22771         * doc/gnulib.texi (Writing modules): New chapter.
22772         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
22773         the new chapter.
22774
22775 2010-01-24  Jim Meyering  <meyering@redhat.com>
22776
22777         maint.mk: do not prepend "./" after filtering
22778         * top/maint.mk (_prepend_srcdir_prefix): New variable
22779         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
22780         "./" when $(srcdir) is ".".
22781
22782         define STREQ(a,b) consistently, removing useless parentheses
22783         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
22784         since the only risk is that "a" or "b" contains an unparenthesized
22785         comma, but if either did that, STREQ would have 3 or more arguments.
22786         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
22787         * lib/fts.c (STREQ): Remove unnecessary parentheses.
22788         * lib/hash-triple.c (STREQ): Likewise.
22789         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
22790         * lib/getugroups.c (STREQ): Likewise.
22791
22792 2010-01-23  Jim Meyering  <meyering@redhat.com>
22793
22794         maint.mk: fix syntax-check in a non-srcdir build directory
22795         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
22796         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
22797
22798 2010-01-22  Jim Meyering  <meyering@redhat.com>
22799
22800         userspec: add unit tests
22801         * tests/test-userspec.c: New file.
22802         * modules/userspec-tests: Likewise.
22803
22804 2010-01-21  Jim Meyering  <meyering@redhat.com>
22805
22806         maint.mk: handle source file names containing "." robustly
22807         * top/maint.mk (_dot_escaped_srcdir): Define.
22808         (VC_LIST): Use it in LHS of sed substitution.
22809
22810 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
22811
22812         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
22813         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
22814         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
22815         from a non-srcdir build.
22816
22817 2010-01-20  Eric Blake  <ebb9@byu.net>
22818
22819         warn-on-use: use instead of link-warning
22820         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
22821         * modules/unistd (Depends-on, Makefile.am): Likewise.
22822         * modules/arpa_inet (Depends-on): Replace link-warning with
22823         warn-on-use.
22824         (Makefile.am): Update rules accordingly.
22825         * modules/ctype (Depends-on, Makefile.am): Likewise.
22826         * modules/dirent (Depends-on, Makefile.am): Likewise.
22827         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
22828         * modules/inttypes (Depends-on, Makefile.am): Likewise.
22829         * modules/langinfo (Depends-on, Makefile.am): Likewise.
22830         * modules/locale (Depends-on, Makefile.am): Likewise.
22831         * modules/math (Depends-on, Makefile.am): Likewise.
22832         * modules/search (Depends-on, Makefile.am): Likewise.
22833         * modules/signal (Depends-on, Makefile.am): Likewise.
22834         * modules/spawn (Depends-on, Makefile.am): Likewise.
22835         * modules/stdlib (Depends-on, Makefile.am): Likewise.
22836         * modules/string (Depends-on, Makefile.am): Likewise.
22837         * modules/strings (Depends-on, Makefile.am): Likewise.
22838         * modules/sys_file (Depends-on, Makefile.am): Likewise.
22839         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
22840         * modules/sys_select (Depends-on, Makefile.am): Likewise.
22841         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
22842         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
22843         * modules/sys_times (Depends-on, Makefile.am): Likewise.
22844         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
22845         * modules/wchar (Depends-on, Makefile.am): Likewise.
22846         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
22847         should be poisoned.
22848         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
22849         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
22850         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
22851         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
22852         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22853         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
22854         * m4/math_h.m4 (gl_MATH_H): Likewise.
22855         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
22856         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
22857         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
22858         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
22859         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
22860         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
22861         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
22862         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
22863         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
22864         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22865         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
22866         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
22867         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22868         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22869         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22870         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
22871         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
22872         GL_LINK_WARNING.
22873         * lib/ctype.in.h: Likewise.
22874         * lib/dirent.in.h: Likewise.
22875         * lib/fcntl.in.h: Likewise.
22876         * lib/inttypes.in.h: Likewise.
22877         * lib/langinfo.in.h: Likewise.
22878         * lib/locale.in.h: Likewise.
22879         * lib/math.in.h: Likewise.
22880         * lib/search.in.h: Likewise.
22881         * lib/signal.in.h: Likewise.
22882         * lib/spawn.in.h: Likewise.
22883         * lib/stdio.in.h: Likewise.
22884         * lib/stdlib.in.h: Likewise.
22885         * lib/string.in.h: Likewise.
22886         * lib/strings.in.h: Likewise.
22887         * lib/sys_file.in.h: Likewise.
22888         * lib/sys_ioctl.in.h: Likewise.
22889         * lib/sys_select.in.h: Likewise.
22890         * lib/sys_socket.in.h: Likewise.
22891         * lib/sys_stat.in.h: Likewise.
22892         * lib/sys_times.in.h: Likewise.
22893         * lib/sys_utsname.in.h: Likewise.
22894         * lib/unistd.in.h: Likewise.
22895         * lib/wchar.in.h: Likewise.
22896
22897 2010-01-20  Bruno Haible  <bruno@clisp.org>
22898
22899         Avoid duplicate -lm.
22900         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
22901         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
22902         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
22903         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
22904         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
22905         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
22906         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
22907         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
22908         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
22909         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
22910         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
22911         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
22912         Reported by Paolo Bonzini.
22913
22914 2010-01-19  Bruno Haible  <bruno@clisp.org>
22915
22916         langinfo, nl_langinfo: Relicense under LGPLv2+.
22917         * modules/langinfo (License): Change to LGPLv2+.
22918         * modules/nl_langinfo (License): Likewise.
22919         Patch by David Lutterkort <lutter@redhat.com>.
22920
22921 2010-01-19  Bruno Haible  <bruno@clisp.org>
22922
22923         Avoid compilation error with cc on OSF/1 5.1.
22924         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
22925         statement, not before.
22926         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22927
22928 2010-01-18  Bruno Haible  <bruno@clisp.org>
22929
22930         Avoid a link error due to the __printf__ symbol.
22931         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
22932         and 2.6.x.
22933         (__format__, __printf__): Remove definitions.
22934         * lib/argp-fmtstream.h: Likewise.
22935         * lib/argp.h: Likewise.
22936         * lib/error.h: Likewise.
22937         * lib/vasnprintf.h: Likewise.
22938         * lib/xprintf.h: Likewise.
22939         * lib/xvasprintf.h: Likewise.
22940         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22941
22942 2010-01-18  Bruno Haible  <bruno@clisp.org>
22943
22944         Tests for module 'tanl'.
22945         * modules/tanl-tests: New file.
22946         * tests/test-tanl.c: New file.
22947
22948         Tests for module 'sqrtl'.
22949         * modules/sqrtl-tests: New file.
22950         * tests/test-sqrtl.c: New file.
22951
22952         Tests for module 'sinl'.
22953         * modules/sinl-tests: New file.
22954         * tests/test-sinl.c: New file.
22955
22956         Tests for module 'logl'.
22957         * modules/logl-tests: New file.
22958         * tests/test-logl.c: New file.
22959
22960         Tests for module 'expl'.
22961         * modules/expl-tests: New file.
22962         * tests/test-expl.c: New file.
22963
22964         Tests for module 'cosl'.
22965         * modules/cosl-tests: New file.
22966         * tests/test-cosl.c: New file.
22967
22968         Tests for module 'atanl'.
22969         * modules/atanl-tests: New file.
22970         * tests/test-atanl.c: New file.
22971
22972         Tests for module 'asinl'.
22973         * modules/asinl-tests: New file.
22974         * tests/test-asinl.c: New file.
22975
22976         Tests for module 'acosl'.
22977         * modules/acosl-tests: New file.
22978         * tests/test-acosl.c: New file.
22979
22980         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
22981         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
22982         tanl): Use the standard gnulib idiom.
22983         * lib/cosl.c: Don't include trigl.c and sincosl.c.
22984         * lib/sinl.c: Likewise.
22985         * lib/tanl.c: Don't include trigl.c.
22986         (kernel_tanl): Make static.
22987         * lib/sincosl.c: Include trigl.h first.
22988         * lib/trigl.c: Likewise.
22989         * m4/acosl.m4: New file.
22990         * m4/asinl.m4: New file.
22991         * m4/atanl.m4: New file.
22992         * m4/cosl.m4: New file.
22993         * m4/expl.m4: New file.
22994         * m4/logl.m4: New file.
22995         * m4/sinl.m4: New file.
22996         * m4/sqrtl.m4: New file.
22997         * m4/tanl.m4: New file.
22998         * m4/mathl.m4: Remove file.
22999         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
23000         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
23001         Don't initialize GNULIB_MATHL.
23002         * modules/acosl: New file.
23003         * modules/asinl: New file.
23004         * modules/atanl: New file.
23005         * modules/cosl: New file.
23006         * modules/expl: New file.
23007         * modules/logl: New file.
23008         * modules/sinl: New file.
23009         * modules/sqrtl: New file.
23010         * modules/tanl: New file.
23011         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
23012         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
23013         substitute GNULIB_MATHL.
23014         * modules/mathl: Rewritten.
23015         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
23016         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
23017         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
23018         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
23019         * doc/posix-functions/expl.texi: Mention the 'expl' module.
23020         * doc/posix-functions/logl.texi: Mention the 'logl' module.
23021         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
23022         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
23023         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
23024
23025 2010-01-18  Bruno Haible  <bruno@clisp.org>
23026
23027         sqrt: Make gl_FUNC_SQRT requirable.
23028         * m4/sqrt.m4: New file.
23029         * modules/sqrt (Files): Add it.
23030         (configure.ac): Invoke gl_FUNC_SQRT.
23031
23032 2010-01-18  Bruno Haible  <bruno@clisp.org>
23033
23034         New modules for common <math.h> functions.
23035         * m4/mathfunc.m4: New file.
23036         * modules/acos: New file.
23037         * modules/asin: New file.
23038         * modules/atan: New file.
23039         * modules/atan2: New file.
23040         * modules/cbrt: New file.
23041         * modules/copysign: New file.
23042         * modules/cos: New file.
23043         * modules/cosh: New file.
23044         * modules/erf: New file.
23045         * modules/erfc: New file.
23046         * modules/exp: New file.
23047         * modules/fabs: New file.
23048         * modules/fmod: New file.
23049         * modules/hypot: New file.
23050         * modules/j0: New file.
23051         * modules/j1: New file.
23052         * modules/jn: New file.
23053         * modules/ldexp: New file.
23054         * modules/lgamma: New file.
23055         * modules/log: New file.
23056         * modules/log10: New file.
23057         * modules/log1p: New file.
23058         * modules/logb: New file.
23059         * modules/modf: New file.
23060         * modules/nextafter: New file.
23061         * modules/pow: New file.
23062         * modules/remainder: New file.
23063         * modules/rint: New file.
23064         * modules/sin: New file.
23065         * modules/sinh: New file.
23066         * modules/sqrt: New file.
23067         * modules/tan: New file.
23068         * modules/tanh: New file.
23069         * modules/y0: New file.
23070         * modules/y1: New file.
23071         * modules/yn: New file.
23072         * doc/posix-functions/acos.texi: Mention the 'acos' module.
23073         * doc/posix-functions/asin.texi: Mention the 'asin' module.
23074         * doc/posix-functions/atan.texi: Mention the 'atan' module.
23075         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
23076         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
23077         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
23078         * doc/posix-functions/cos.texi: Mention the 'cos' module.
23079         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
23080         * doc/posix-functions/erf.texi: Mention the 'erf' module.
23081         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
23082         * doc/posix-functions/exp.texi: Mention the 'exp' module.
23083         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
23084         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
23085         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
23086         * doc/posix-functions/j0.texi: Mention the 'j0' module.
23087         * doc/posix-functions/j1.texi: Mention the 'j1' module.
23088         * doc/posix-functions/jn.texi: Mention the 'jn' module.
23089         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
23090         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
23091         * doc/posix-functions/log.texi: Mention the 'log' module.
23092         * doc/posix-functions/log10.texi: Mention the 'log10' module.
23093         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
23094         * doc/posix-functions/logb.texi: Mention the 'logb' module.
23095         * doc/posix-functions/modf.texi: Mention the 'modf' module.
23096         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
23097         * doc/posix-functions/pow.texi: Mention the 'pow' module.
23098         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
23099         * doc/posix-functions/rint.texi: Mention the 'rint' module.
23100         * doc/posix-functions/sin.texi: Mention the 'sin' module.
23101         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
23102         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
23103         * doc/posix-functions/tan.texi: Mention the 'tan' module.
23104         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
23105         * doc/posix-functions/y0.texi: Mention the 'y0' module.
23106         * doc/posix-functions/y1.texi: Mention the 'y1' module.
23107         * doc/posix-functions/yn.texi: Mention the 'yn' module.
23108
23109 2010-01-18  Jim Meyering  <meyering@redhat.com>
23110
23111         ignore-value: relax license to LGPLv2+
23112         * modules/ignore-value (License): Relax to LGPLv2+.
23113
23114         getdate: don't leak when TZ contains two or more '"'s
23115         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
23116         double quote in TZ after the first one.
23117
23118         readtokens: do not leak internal token_lengths buffer
23119         * lib/readtokens.c (readtokens): Free the local, lengths,
23120         when the supplied "token_lengths" parameter is NULL.
23121
23122 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23123
23124         Fix a couple of missing LIBTHREAD link failures on AIX.
23125         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
23126         $(LIBTHREAD).
23127         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
23128
23129         Link test-poll against INET_PTON_LIB.
23130         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
23131         for inet_pton on Solaris 10.
23132
23133 2010-01-17  Bruno Haible  <bruno@clisp.org>
23134
23135         unistdio/*-sprintf: Fix typo in module description.
23136         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
23137         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
23138         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
23139         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
23140         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
23141         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
23142         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
23143         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23144
23145 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23146
23147         gnulib-tool: fix filelist for AIX, HP-UX ksh.
23148         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
23149         variables in shell case patterns, for AIX and HP-UX ksh.
23150
23151         Split large sed scripts, for HP-UX sed.
23152         * modules/stdio: Split sed scripts around 50 sed commands,
23153         to avoid HP-UX limit of 99 commands, in the near future.
23154         * modules/string: Likewise.
23155         * modules/unistd: Likewise.
23156
23157         gnulib-tool: avoid writing in the current directory.
23158         * gnulib-tool (func_emit_lib_Makefile_am)
23159         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
23160         not in the current directory, so concurrent gnulib-tool
23161         instances do not interfere.
23162
23163 2010-01-16  Jim Meyering  <meyering@redhat.com>
23164
23165         doc: update users.txt
23166         * users.txt: Add grep.
23167         (diffutils, gzip): Update URLs.
23168
23169 2010-01-12  Bruno Haible  <bruno@clisp.org>
23170
23171         posix_spawn: Avoid test failure on Cygwin.
23172         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
23173         characters.
23174         Reported by Simon Josefsson.
23175
23176 2010-01-12  Bruno Haible  <bruno@clisp.org>
23177
23178         * tests/test-cond.c (main): When skipping the test, show the reason.
23179
23180 2010-01-12  Simon Josefsson  <simon@josefsson.org>
23181
23182         * lib/striconv.c (str_cd_iconv): Avoid if before free.
23183
23184 2010-01-12  Simon Josefsson  <simon@josefsson.org>
23185
23186         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
23187         VC_LIST_ALWAYS_EXCLUDE_REGEX.
23188
23189 2010-01-12  Eric Blake  <ebb9@byu.net>
23190
23191         build: guarantee AS_VAR_IF
23192         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
23193         (gl_AS_VAR_IF): Move...
23194         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
23195         Reported by Simon Josefsson.
23196
23197 2010-01-12  Simon Josefsson  <simon@josefsson.org>
23198
23199         * lib/stdio.in.h: Fix typo.
23200
23201 2010-01-12  Simon Josefsson  <simon@josefsson.org>
23202
23203         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
23204         libgpg-error.
23205
23206 2010-01-12  Simon Josefsson  <simon@josefsson.org>
23207
23208         * tests/test-xalloc-die.sh: Use $EXEEXT.
23209
23210 2010-01-12  Simon Josefsson  <simon@josefsson.org>
23211             Bruno Haible  <bruno@clisp.org>
23212
23213         getlogin, getlogin_r: Avoid test failure.
23214         * tests/test-getlogin.c: Include <stdio.h>.
23215         (main): Skip the test when the function fails because stdin is not a
23216         tty.
23217         * tests/test-getlogin_r.c: Include <stdio.h>.
23218         (main): Skip the test when the function fails because stdin is not a
23219         tty.
23220
23221 2010-01-11  Eric Blake  <ebb9@byu.net>
23222
23223         tests: avoid more large file warnings
23224         * tests/test-fflush.c: Avoid warning about ftell use.
23225         * tests/test-fseek.c: Avoid warning about fseek use.
23226
23227 2010-01-10  Bruno Haible  <bruno@clisp.org>
23228
23229         nproc: Work better on Linux when /proc and /sys are not mounted.
23230         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
23231         as lower bound when, on glibc/Linux systems,
23232         sysconf (_SC_NPROCESSORS_CONF) returns 1.
23233         Suggested by Pádraig Brady <P@draigbrady.com>.
23234         Reported by Dmitry V. Levin <ldv@altlinux.org>.
23235
23236         nproc: Refactor.
23237         * lib/nproc.c (num_processors_via_affinity_mask): New function,
23238         extracted from num_processors.
23239         (num_processors): Call it.
23240
23241 2010-01-11  Jim Meyering  <meyering@redhat.com>
23242
23243         utimecmp: avoid new warning from upcoming gcc-4.5.0
23244         * lib/utimecmp.c (BILLION): Define using #define rather than an
23245         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
23246
23247 2010-01-11  Eric Blake  <ebb9@byu.net>
23248
23249         math: add portability warnings for classification macros
23250         * modules/math (Depends-on): Add warn-on-use.
23251         (Makefile.am): Provide new substitutions.
23252         * m4/math_h.m4 (gl_MATH_H): Require inline.
23253         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
23254         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
23255         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
23256         implement warnings.
23257
23258         unistd: warn on use of environ without module
23259         * modules/unistd (Depends-on): Add warn-on-use.
23260         (Makefile.am): Provide new substitutions.
23261         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
23262         * lib/unistd.in.h (environ): Wrap with a warning helper function.
23263
23264         stdio: warn on suspicious uses
23265         * modules/stdio (Depends-on): Add warn-on-use.
23266         (Makefile.am): Provide new substitutions.
23267         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
23268         fseeko.
23269         * lib/stdio.in.h (gets): Always warn on use.
23270         (fseek, ftell): Adjust when warnings are issued, and honor
23271         _GL_NO_LARGE_FILES as a way to silence the warning.
23272         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
23273         any warning about large file offsets.
23274         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
23275         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
23276         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
23277         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
23278         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
23279         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
23280         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
23281         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
23282
23283         warn-on-use: new module
23284         * modules/warn-on-use: New file.
23285         * build-aux/warn-on-use.h: Likewise.
23286         * m4/warn-on-use.m4: Likewise.
23287         * MODULES.html.sh (Support for building): Mention it.
23288
23289 2010-01-10  Bruno Haible  <bruno@clisp.org>
23290
23291         Tests for module 'unistr/u32-strdup'.
23292         * modules/unistr/u32-strdup-tests: New file.
23293         * tests/unistr/test-u32-strdup.c: New file.
23294
23295         Tests for module 'unistr/u16-strdup'.
23296         * modules/unistr/u16-strdup-tests: New file.
23297         * tests/unistr/test-u16-strdup.c: New file.
23298
23299         Tests for module 'unistr/u8-strdup'.
23300         * modules/unistr/u8-strdup-tests: New file.
23301         * tests/unistr/test-u8-strdup.c: New file.
23302         * tests/unistr/test-strdup.h: New file.
23303
23304         Tests for module 'unistr/u32-strncmp'.
23305         * modules/unistr/u32-strncmp-tests: New file.
23306         * tests/unistr/test-u32-strncmp.c: New file.
23307
23308         Tests for module 'unistr/u16-strncmp'.
23309         * modules/unistr/u16-strncmp-tests: New file.
23310         * tests/unistr/test-u16-strncmp.c: New file.
23311
23312         Tests for module 'unistr/u8-strncmp'.
23313         * modules/unistr/u8-strncmp-tests: New file.
23314         * tests/unistr/test-u8-strncmp.c: New file.
23315         * tests/unistr/test-strncmp.h: New file.
23316
23317         Tests for module 'unistr/u32-strcoll'.
23318         * modules/unistr/u32-strcoll-tests: New file.
23319         * tests/unistr/test-u32-strcoll.c: New file.
23320
23321         Tests for module 'unistr/u16-strcoll'.
23322         * modules/unistr/u16-strcoll-tests: New file.
23323         * tests/unistr/test-u16-strcoll.c: New file.
23324
23325         Tests for module 'unistr/u8-strcoll'.
23326         * modules/unistr/u8-strcoll-tests: New file.
23327         * tests/unistr/test-u8-strcoll.c: New file.
23328
23329         Tests for module 'unistr/u32-strcmp'.
23330         * modules/unistr/u32-strcmp-tests: New file.
23331         * tests/unistr/test-u32-strcmp.c: New file.
23332         * tests/unistr/test-u32-strcmp.h: New file.
23333
23334         Tests for module 'unistr/u16-strcmp'.
23335         * modules/unistr/u16-strcmp-tests: New file.
23336         * tests/unistr/test-u16-strcmp.c: New file.
23337         * tests/unistr/test-u16-strcmp.h: New file.
23338
23339         Tests for module 'unistr/u8-strcmp'.
23340         * modules/unistr/u8-strcmp-tests: New file.
23341         * tests/unistr/test-u8-strcmp.c: New file.
23342         * tests/unistr/test-u8-strcmp.h: New file.
23343         * tests/unistr/test-strcmp.h: New file.
23344
23345         Tests for module 'unistr/u32-strncat'.
23346         * modules/unistr/u32-strncat-tests: New file.
23347         * tests/unistr/test-u32-strncat.c: New file.
23348
23349         Tests for module 'unistr/u16-strncat'.
23350         * modules/unistr/u16-strncat-tests: New file.
23351         * tests/unistr/test-u16-strncat.c: New file.
23352
23353         Tests for module 'unistr/u8-strncat'.
23354         * modules/unistr/u8-strncat-tests: New file.
23355         * tests/unistr/test-u8-strncat.c: New file.
23356         * tests/unistr/test-strncat.h: New file.
23357
23358         Tests for module 'unistr/u32-strcat'.
23359         * modules/unistr/u32-strcat-tests: New file.
23360         * tests/unistr/test-u32-strcat.c: New file.
23361
23362         Tests for module 'unistr/u16-strcat'.
23363         * modules/unistr/u16-strcat-tests: New file.
23364         * tests/unistr/test-u16-strcat.c: New file.
23365
23366         Tests for module 'unistr/u8-strcat'.
23367         * modules/unistr/u8-strcat-tests: New file.
23368         * tests/unistr/test-u8-strcat.c: New file.
23369         * tests/unistr/test-strcat.h: New file.
23370
23371         Tests for module 'unistr/u32-stpncpy'.
23372         * modules/unistr/u32-stpncpy-tests: New file.
23373         * tests/unistr/test-u32-stpncpy.c: New file.
23374
23375         Tests for module 'unistr/u16-stpncpy'.
23376         * modules/unistr/u16-stpncpy-tests: New file.
23377         * tests/unistr/test-u16-stpncpy.c: New file.
23378
23379         Tests for module 'unistr/u8-stpncpy'.
23380         * modules/unistr/u8-stpncpy-tests: New file.
23381         * tests/unistr/test-u8-stpncpy.c: New file.
23382         * tests/unistr/test-stpncpy.h: New file.
23383
23384         Tests for module 'unistr/u32-strncpy'.
23385         * modules/unistr/u32-strncpy-tests: New file.
23386         * tests/unistr/test-u32-strncpy.c: New file.
23387
23388         Tests for module 'unistr/u16-strncpy'.
23389         * modules/unistr/u16-strncpy-tests: New file.
23390         * tests/unistr/test-u16-strncpy.c: New file.
23391
23392         Tests for module 'unistr/u8-strncpy'.
23393         * modules/unistr/u8-strncpy-tests: New file.
23394         * tests/unistr/test-u8-strncpy.c: New file.
23395         * tests/unistr/test-strncpy.h: New file.
23396
23397         Tests for module 'unistr/u32-stpcpy'.
23398         * modules/unistr/u32-stpcpy-tests: New file.
23399         * tests/unistr/test-u32-stpcpy.c: New file.
23400
23401         Tests for module 'unistr/u16-stpcpy'.
23402         * modules/unistr/u16-stpcpy-tests: New file.
23403         * tests/unistr/test-u16-stpcpy.c: New file.
23404
23405         Tests for module 'unistr/u8-stpcpy'.
23406         * modules/unistr/u8-stpcpy-tests: New file.
23407         * tests/unistr/test-u8-stpcpy.c: New file.
23408         * tests/unistr/test-stpcpy.h: New file.
23409
23410         Tests for module 'unistr/u32-strcpy'.
23411         * modules/unistr/u32-strcpy-tests: New file.
23412         * tests/unistr/test-u32-strcpy.c: New file.
23413
23414         Tests for module 'unistr/u16-strcpy'.
23415         * modules/unistr/u16-strcpy-tests: New file.
23416         * tests/unistr/test-u16-strcpy.c: New file.
23417
23418         Tests for module 'unistr/u8-strcpy'.
23419         * modules/unistr/u8-strcpy-tests: New file.
23420         * tests/unistr/test-u8-strcpy.c: New file.
23421         * tests/unistr/test-strcpy.h: New file.
23422
23423         Tests for module 'unistr/u32-strnlen'.
23424         * modules/unistr/u32-strnlen-tests: New file.
23425         * tests/unistr/test-u32-strnlen.c: New file.
23426
23427         Tests for module 'unistr/u16-strnlen'.
23428         * modules/unistr/u16-strnlen-tests: New file.
23429         * tests/unistr/test-u16-strnlen.c: New file.
23430
23431         Tests for module 'unistr/u8-strnlen'.
23432         * modules/unistr/u8-strnlen-tests: New file.
23433         * tests/unistr/test-u8-strnlen.c: New file.
23434         * tests/unistr/test-strnlen.h: New file.
23435
23436         Tests for module 'unistr/u32-strlen'.
23437         * modules/unistr/u32-strlen-tests: New file.
23438         * tests/unistr/test-u32-strlen.c: New file.
23439
23440         Tests for module 'unistr/u16-strlen'.
23441         * modules/unistr/u16-strlen-tests: New file.
23442         * tests/unistr/test-u16-strlen.c: New file.
23443
23444         Tests for module 'unistr/u8-strlen'.
23445         * modules/unistr/u8-strlen-tests: New file.
23446         * tests/unistr/test-u8-strlen.c: New file.
23447
23448         Tests for module 'unistr/u32-prev'.
23449         * modules/unistr/u32-prev-tests: New file.
23450         * tests/unistr/test-u32-prev.c: New file.
23451
23452         Tests for module 'unistr/u16-prev'.
23453         * modules/unistr/u16-prev-tests: New file.
23454         * tests/unistr/test-u16-prev.c: New file.
23455
23456         Tests for module 'unistr/u8-prev'.
23457         * modules/unistr/u8-prev-tests: New file.
23458         * tests/unistr/test-u8-prev.c: New file.
23459
23460         Tests for module 'unistr/u32-next'.
23461         * modules/unistr/u32-next-tests: New file.
23462         * tests/unistr/test-u32-next.c: New file.
23463
23464         Tests for module 'unistr/u16-next'.
23465         * modules/unistr/u16-next-tests: New file.
23466         * tests/unistr/test-u16-next.c: New file.
23467
23468         Tests for module 'unistr/u8-next'.
23469         * modules/unistr/u8-next-tests: New file.
23470         * tests/unistr/test-u8-next.c: New file.
23471
23472         Tests for module 'unistr/u32-strmbtouc'.
23473         * modules/unistr/u32-strmbtouc-tests: New file.
23474         * tests/unistr/test-u32-strmbtouc.c: New file.
23475
23476         Tests for module 'unistr/u16-strmbtouc'.
23477         * modules/unistr/u16-strmbtouc-tests: New file.
23478         * tests/unistr/test-u16-strmbtouc.c: New file.
23479
23480         Tests for module 'unistr/u8-strmbtouc'.
23481         * modules/unistr/u8-strmbtouc-tests: New file.
23482         * tests/unistr/test-u8-strmbtouc.c: New file.
23483
23484         Tests for module 'unistr/u32-strmblen'.
23485         * modules/unistr/u32-strmblen-tests: New file.
23486         * tests/unistr/test-u32-strmblen.c: New file.
23487
23488         Tests for module 'unistr/u16-strmblen'.
23489         * modules/unistr/u16-strmblen-tests: New file.
23490         * tests/unistr/test-u16-strmblen.c: New file.
23491
23492         Tests for module 'unistr/u8-strmblen'.
23493         * modules/unistr/u8-strmblen-tests: New file.
23494         * tests/unistr/test-u8-strmblen.c: New file.
23495
23496         Tests for module 'unistr/u32-cpy-alloc'.
23497         * modules/unistr/u32-cpy-alloc-tests: New file.
23498         * tests/unistr/test-u32-cpy-alloc.c: New file.
23499
23500         Tests for module 'unistr/u16-cpy-alloc'.
23501         * modules/unistr/u16-cpy-alloc-tests: New file.
23502         * tests/unistr/test-u16-cpy-alloc.c: New file.
23503
23504         Tests for module 'unistr/u8-cpy-alloc'.
23505         * modules/unistr/u8-cpy-alloc-tests: New file.
23506         * tests/unistr/test-u8-cpy-alloc.c: New file.
23507         * tests/unistr/test-cpy-alloc.h: New file.
23508
23509         Tests for module 'unistr/u32-mbsnlen'.
23510         * modules/unistr/u32-mbsnlen-tests: New file.
23511         * tests/unistr/test-u32-mbsnlen.c: New file.
23512
23513         Tests for module 'unistr/u16-mbsnlen'.
23514         * modules/unistr/u16-mbsnlen-tests: New file.
23515         * tests/unistr/test-u16-mbsnlen.c: New file.
23516
23517         Tests for module 'unistr/u8-mbsnlen'.
23518         * modules/unistr/u8-mbsnlen-tests: New file.
23519         * tests/unistr/test-u8-mbsnlen.c: New file.
23520
23521         Tests for module 'unistr/u32-chr'.
23522         * modules/unistr/u32-chr-tests: New file.
23523         * tests/unistr/test-u32-chr.c: New file.
23524
23525         Tests for module 'unistr/u16-chr'.
23526         * modules/unistr/u16-chr-tests: New file.
23527         * tests/unistr/test-u16-chr.c: New file.
23528
23529         Tests for module 'unistr/u8-chr'.
23530         * modules/unistr/u8-chr-tests: New file.
23531         * tests/unistr/test-u8-chr.c: New file.
23532         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
23533
23534         Tests for module 'unistr/u32-cmp2'.
23535         * modules/unistr/u32-cmp2-tests: New file.
23536         * tests/unistr/test-u32-cmp2.c: New file.
23537
23538         Tests for module 'unistr/u16-cmp2'.
23539         * modules/unistr/u16-cmp2-tests: New file.
23540         * tests/unistr/test-u16-cmp2.c: New file.
23541
23542         Tests for module 'unistr/u8-cmp2'.
23543         * modules/unistr/u8-cmp2-tests: New file.
23544         * tests/unistr/test-u8-cmp2.c: New file.
23545         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
23546
23547         Tests for module 'unistr/u32-cmp'.
23548         * modules/unistr/u32-cmp-tests: New file.
23549         * tests/unistr/test-u32-cmp.c: New file.
23550
23551         Tests for module 'unistr/u16-cmp'.
23552         * modules/unistr/u16-cmp-tests: New file.
23553         * tests/unistr/test-u16-cmp.c: New file.
23554
23555         Tests for module 'unistr/u8-cmp'.
23556         * modules/unistr/u8-cmp-tests: New file.
23557         * tests/unistr/test-u8-cmp.c: New file.
23558         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
23559
23560         Tests for module 'unistr/u32-set'.
23561         * modules/unistr/u32-set-tests: New file.
23562         * tests/unistr/test-u32-set.c: New file.
23563
23564         Tests for module 'unistr/u16-set'.
23565         * modules/unistr/u16-set-tests: New file.
23566         * tests/unistr/test-u16-set.c: New file.
23567
23568         Tests for module 'unistr/u8-set'.
23569         * modules/unistr/u8-set-tests: New file.
23570         * tests/unistr/test-u8-set.c: New file.
23571         * tests/unistr/test-set.h: New file.
23572
23573         Tests for module 'unistr/u32-move'.
23574         * modules/unistr/u32-move-tests: New file.
23575         * tests/unistr/test-u32-move.c: New file.
23576
23577         Tests for module 'unistr/u16-move'.
23578         * modules/unistr/u16-move-tests: New file.
23579         * tests/unistr/test-u16-move.c: New file.
23580
23581         Tests for module 'unistr/u8-move'.
23582         * modules/unistr/u8-move-tests: New file.
23583         * tests/unistr/test-u8-move.c: New file.
23584         * tests/unistr/test-move.h: New file.
23585
23586         Tests for module 'unistr/u32-cpy'.
23587         * modules/unistr/u32-cpy-tests: New file.
23588         * tests/unistr/test-u32-cpy.c: New file.
23589
23590         Tests for module 'unistr/u16-cpy'.
23591         * modules/unistr/u16-cpy-tests: New file.
23592         * tests/unistr/test-u16-cpy.c: New file.
23593
23594         Tests for module 'unistr/u8-cpy'.
23595         * modules/unistr/u8-cpy-tests: New file.
23596         * tests/unistr/test-u8-cpy.c: New file.
23597         * tests/unistr/test-cpy.h: New file.
23598
23599 2010-01-09  Bruno Haible  <bruno@clisp.org>
23600
23601         Tests for module 'unistr/u32-uctomb'.
23602         * modules/unistr/u32-uctomb-tests: New file.
23603         * tests/unistr/test-u32-uctomb.c: New file.
23604
23605         Tests for module 'unistr/u16-uctomb'.
23606         * modules/unistr/u16-uctomb-tests: New file.
23607         * tests/unistr/test-u16-uctomb.c: New file.
23608
23609         Tests for module 'unistr/u8-uctomb'.
23610         * modules/unistr/u8-uctomb-tests: New file.
23611         * tests/unistr/test-u8-uctomb.c: New file.
23612
23613         Tests for module 'unistr/u32-mbtoucr'.
23614         * modules/unistr/u32-mbtoucr-tests: New file.
23615         * tests/unistr/test-u32-mbtoucr.c: New file.
23616
23617         Tests for module 'unistr/u16-mbtoucr'.
23618         * modules/unistr/u16-mbtoucr-tests: New file.
23619         * tests/unistr/test-u16-mbtoucr.c: New file.
23620
23621         Tests for module 'unistr/u8-mbtoucr'.
23622         * modules/unistr/u8-mbtoucr-tests: New file.
23623         * tests/unistr/test-u8-mbtoucr.c: New file.
23624
23625         Tests for module 'unistr/u32-mbtouc'.
23626         * modules/unistr/u32-mbtouc-tests: New file.
23627         * tests/unistr/test-u32-mbtouc.c: New file.
23628
23629         Tests for module 'unistr/u16-mbtouc'.
23630         * modules/unistr/u16-mbtouc-tests: New file.
23631         * tests/unistr/test-u16-mbtouc.c: New file.
23632
23633         Tests for module 'unistr/u8-mbtouc'.
23634         * modules/unistr/u8-mbtouc-tests: New file.
23635         * tests/unistr/test-u8-mbtouc.c: New file.
23636
23637         Tests for module 'unistr/u32-mbtouc-unsafe'.
23638         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
23639         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
23640         * tests/unistr/test-u32-mbtouc.h: New file.
23641
23642         Tests for module 'unistr/u16-mbtouc-unsafe'.
23643         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
23644         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
23645         * tests/unistr/test-u16-mbtouc.h: New file.
23646
23647         Tests for module 'unistr/u8-mbtouc-unsafe'.
23648         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
23649         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
23650         * tests/unistr/test-u8-mbtouc.h: New file.
23651
23652         Tests for module 'unistr/u32-mblen'.
23653         * modules/unistr/u32-mblen-tests: New file.
23654         * tests/unistr/test-u32-mblen.c: New file.
23655
23656         Tests for module 'unistr/u16-mblen'.
23657         * modules/unistr/u16-mblen-tests: New file.
23658         * tests/unistr/test-u16-mblen.c: New file.
23659
23660         Tests for module 'unistr/u8-mblen'.
23661         * modules/unistr/u8-mblen-tests: New file.
23662         * tests/unistr/test-u8-mblen.c: New file.
23663
23664         Tests for module 'unistr/u32-to-u16'.
23665         * modules/unistr/u32-to-u16-tests: New file.
23666         * tests/unistr/test-u32-to-u16.c: New file.
23667
23668         Tests for module 'unistr/u32-to-u8'.
23669         * modules/unistr/u32-to-u8-tests: New file.
23670         * tests/unistr/test-u32-to-u8.c: New file.
23671
23672         Tests for module 'unistr/u16-to-u32'.
23673         * modules/unistr/u16-to-u32-tests: New file.
23674         * tests/unistr/test-u16-to-u32.c: New file.
23675
23676         Tests for module 'unistr/u16-to-u8'.
23677         * modules/unistr/u16-to-u8-tests: New file.
23678         * tests/unistr/test-u16-to-u8.c: New file.
23679
23680         Tests for module 'unistr/u8-to-u32'.
23681         * modules/unistr/u8-to-u32-tests: New file.
23682         * tests/unistr/test-u8-to-u32.c: New file.
23683
23684         Tests for module 'unistr/u8-to-u16'.
23685         * modules/unistr/u8-to-u16-tests: New file.
23686         * tests/unistr/test-u8-to-u16.c: New file.
23687
23688         Tests for module 'unistr/u32-check'.
23689         * modules/unistr/u32-check-tests: New file.
23690         * tests/unistr/test-u32-check.c: New file.
23691
23692         Tests for module 'unistr/u16-check'.
23693         * modules/unistr/u16-check-tests: New file.
23694         * tests/unistr/test-u16-check.c: New file.
23695
23696         Tests for module 'unistr/u8-check'.
23697         * modules/unistr/u8-check-tests: New file.
23698         * tests/unistr/test-u8-check.c: New file.
23699
23700         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
23701         (category_equals): New function.
23702         (main): Add more tests.
23703         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
23704
23705         * tests/unictype/test-bidi_byname.c (main): Add more tests.
23706
23707 2010-01-10  Bruno Haible  <bruno@clisp.org>
23708
23709         unistr/u*-strcoll: Try harder to distinguish different strings.
23710         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
23711         compare s1 and s2 to see if they are different.
23712
23713 2010-01-10  Bruno Haible  <bruno@clisp.org>
23714
23715         unistr/u*-stpncpy: Fix the return value.
23716         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
23717         description of the return value consistent with stpncpy in glibc.
23718         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
23719         written non-NUL unit.
23720
23721 2010-01-10  Bruno Haible  <bruno@clisp.org>
23722
23723         unistr/u*-next: Add missing dependencies.
23724         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
23725         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
23726         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
23727
23728 2010-01-10  Bruno Haible  <bruno@clisp.org>
23729
23730         unistr/u8-mbsnlen: Fix return value for incomplete character.
23731         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
23732         u8_mblen.
23733         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
23734         Remove unistr/u8-mblen.
23735         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
23736         u16_mblen.
23737         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
23738         Remove unistr/u16-mblen.
23739
23740 2010-01-10  Bruno Haible  <bruno@clisp.org>
23741
23742         wchar: Fix compilation error when <wchar.h> is used from coreutils.
23743         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
23744         Reported by Brian Gough <bjg@gnu.org> and
23745         Chris Clayton <chris2553@googlemail.com> via
23746         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
23747
23748 2010-01-09  Bruno Haible  <bruno@clisp.org>
23749
23750         unistr/u16-to-u32: Reject invalid input.
23751         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
23752         u16_mbtouc.
23753         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
23754         Remove unistr/u16-mbtouc.
23755
23756         unistr/u16-to-u8: Reject invalid input.
23757         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
23758         u16_mbtouc.
23759         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
23760         Remove unistr/u16-mbtouc.
23761
23762         unistr/u8-to-u32: Reject invalid input.
23763         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
23764         u8_mbtouc.
23765         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
23766         Remove unistr/u8-mbtouc.
23767
23768         unistr/u8-to-u16: Reject invalid input.
23769         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
23770         u8_mbtouc.
23771         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
23772         Remove unistr/u8-mbtouc.
23773
23774 2010-01-09  Bruno Haible  <bruno@clisp.org>
23775
23776         Tests for module 'getlogin'.
23777         * modules/getlogin-tests: New file.
23778         * tests/test-getlogin.c: New file.
23779
23780         New module 'getlogin'.
23781         * lib/unistd.in.h (getlogin): New declaration.
23782         * lib/getlogin.c: New file.
23783         * m4/getlogin.m4: New file.
23784         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
23785         HAVE_GETLOGIN.
23786         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
23787         HAVE_GETLOGIN.
23788         * modules/getlogin: New file.
23789         * doc/posix-functions/getlogin.texi: Mention the new module.
23790         Reported by John W. Eaton <jwe@gnu.org>.
23791
23792 2010-01-09  Bruno Haible  <bruno@clisp.org>
23793
23794         getlogin_r: Support for native Windows.
23795         * lib/getlogin_r.c: Include <windows.h>
23796         (getlogin_r): Implement for native Windows.
23797         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
23798         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
23799         via John W. Eaton <jwe@gnu.org>.
23800
23801 2010-01-09  Bruno Haible  <bruno@clisp.org>
23802
23803         getlogin_r: Small fixes.
23804         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
23805         succeeds.
23806         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
23807         before testing whether getlogin_r is declared. No need to set
23808         HAVE_DECL_GETLOGIN_R to 1.
23809         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
23810
23811 2010-01-09  Bruno Haible  <bruno@clisp.org>
23812
23813         * lib/unistd.in.h (getlogin_r): Add comment.
23814
23815 2010-01-09  Bruno Haible  <bruno@clisp.org>
23816
23817         Tests for module 'getlogin_r'.
23818         * modules/getlogin_r-tests: New file.
23819         * tests/test-getlogin_r.c: New file.
23820
23821 2010-01-09  Jim Meyering  <meyering@redhat.com>
23822
23823         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
23824         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
23825         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
23826
23827 2010-01-08  Simon Josefsson  <simon@josefsson.org>
23828
23829         * lib/dup2.c (rpl_dup2): Improve comment.
23830
23831 2010-01-08  Eric Blake  <ebb9@byu.net>
23832
23833         maint.mk: allow packages to add makefile @@ exceptions
23834         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
23835         (sc_makefile_check): Rename...
23836         (sc_makefile_at_at_check): ...to this, and use hook.
23837
23838         dup2: work around mingw bug
23839         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
23840         Reported by Simon Josefsson.
23841
23842 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
23843
23844         glob: Fix C++ compilation.
23845         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
23846         C++.
23847
23848 2010-01-07  Bruno Haible  <bruno@clisp.org>
23849
23850         Fix indentation of wctype.in.h, broken since 2007-01-06.
23851         * lib/wctype.in.h: Fix indentation of preprocessor directives.
23852
23853 2010-01-07  Bruno Haible  <bruno@clisp.org>
23854
23855         mbslen: Avoid collision with system function.
23856         * lib/string.in.h [MirBSD]: Include <wchar.h>.
23857         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
23858         * m4/mbslen.m4: New file.
23859         * modules/mbslen (Files): Add it.
23860         (configure.ac): Invoke gl_MBSLEN.
23861         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
23862         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
23863         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
23864         via Ian Beckwith <ianb@erislabs.net>.
23865
23866 2010-01-07  Bruno Haible  <bruno@clisp.org>
23867
23868         dirent: Document the last fix.
23869         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
23870
23871 2010-01-07  Bruno Haible  <bruno@clisp.org>
23872
23873         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
23874         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
23875         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
23876         va_list are defined.
23877         * doc/posix-headers/stdio.texi: Document the bug of missing types.
23878         Reported by Eric Blake.
23879
23880 2010-01-07  Bruno Haible  <bruno@clisp.org>
23881
23882         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
23883         * modules/xlist (Depends-on): Add 'list',
23884         * modules/xoset (Depends-on): Add 'oset'.
23885         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23886
23887 2010-01-07  Bruno Haible  <bruno@clisp.org>
23888
23889         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
23890         * doc/posix-functions/strncasecmp.texi: Likewise.
23891
23892 2010-01-07  Bruno Haible  <bruno@clisp.org>
23893
23894         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
23895
23896 2010-01-07  John W. Eaton  <jwe@octave.org>
23897
23898         wctype: allow C++ use
23899         * lib/wctype.in.h: Add extern "C" block for C++.
23900
23901 2010-01-06  Eric Blake  <ebb9@byu.net>
23902
23903         maint.mk: detect incorrect GFDL usage
23904         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
23905
23906 2010-01-06  Jim Meyering  <meyering@redhat.com>
23907         and Eric Blake  <ebb9@byu.net>
23908
23909         maint.mk: ignore multi-line copyright in NEWS
23910         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
23911
23912 2010-01-06  Eric Blake  <ebb9@byu.net>
23913
23914         select: add missing dependency
23915         * modules/select-tests (Depends-on): Move sockets dependency...
23916         * modules/select (Depends-on): ...here.
23917         Reported by Ian Beckwith.
23918
23919         doc: regenerate INSTALL
23920         * doc/INSTALL: Reflect recent autoconf update.
23921         * doc/INSTALL.ISO: Likewise.
23922         * doc/INSTALL.UTF-8: Likewise.
23923
23924         pread: fix compilation on glibc
23925         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
23926         Reported by Ralf Wildenhues.
23927
23928         dirent: fix test failure
23929         * lib/dirent.in.h (includes): Guarantee ino_t.
23930         Reported by Ralf Wildenhues.
23931
23932 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
23933
23934         linkat, renameat: avoid bad free
23935         * lib/at-func2.c (at_func2): Fix typo.
23936         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
23937
23938 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23939
23940         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
23941         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
23942         to avoid failure of symlink test later.
23943
23944 2010-01-06  Eric Blake  <ebb9@byu.net>
23945
23946         stdio, unistd: guarantee ssize_t
23947         * lib/unistd.in.h (includes): Ensure that types required by POSIX
23948         2008 are exposed when needed.
23949         * lib/stdio.in.h (includes): Likewise.
23950         Reported by Ralf Wildenhues.
23951
23952 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
23953
23954         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
23955         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
23956         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
23957
23958 2010-01-06  Jim Meyering  <meyering@redhat.com>
23959
23960         readtokens: this module *does* require xalloc.h
23961         It uses only functions that were omitted by the old syntax-check rule.
23962         * lib/readtokens.c: Include "xalloc.h" once again.
23963         * modules/readtokens (Depends-on): Add xalloc.
23964         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
23965
23966 2010-01-05  Eric Blake  <ebb9@byu.net>
23967
23968         maint: support 'make announcement' from a VPATH build
23969         * top/maint.mk (announcement): Look for correct NEWS file.
23970
23971 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
23972
23973         utimens (fdutimens): ignore a negative FD, per contract
23974         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
23975         when we have a valid file descriptor.  Otherwise, using a brand
23976         new glibc (with just-patched futimens that now fails with EBADF)
23977         would cause this function to fail with ENOSYS.
23978         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
23979         See also http://bugzilla.redhat.com/552320.
23980
23981 2010-01-05  Eric Blake  <ebb9@byu.net>
23982
23983         strcase: document what it provides
23984         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
23985         gnulib module.
23986         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
23987         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
23988
23989 2010-01-05  Jim Meyering  <meyering@redhat.com>
23990
23991         maint: remove useless inclusions of "xalloc.h"
23992         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
23993         * lib/readtokens.c: Likewise.
23994         * lib/same.c: Likewise.
23995         * modules/getloadavg (Depends-on): Remove xalloc.
23996         * modules/readtokens: Likewise.
23997         * modules/same: Likewise.
23998
23999         maint.mk: include 4 more function names in alloca.h-checking regexp
24000         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
24001         regexp.  Before, we would give a false-positive (saying alloca.h
24002         is included unnecessarily) when the only uses involved omitted symbols.
24003
24004         xalloc.h: use consistent formatting
24005         * lib/xalloc.h: Move declarations to start in the first column.
24006
24007 2010-01-05  Eric Blake  <ebb9@byu.net>
24008
24009         mkdir: avoid xalloc
24010         * lib/mkdir.c (includes): Drop unused header.
24011         Reported by John W. Eaton.
24012
24013 2010-01-04  Jim Meyering  <meyering@redhat.com>
24014
24015         nl_langinfo: avoid configure-time syntax error
24016         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
24017         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
24018         the empty string.  Don't let that provoke a shell syntax error.
24019
24020         regcomp, regexec, fnmatch: avoid array bounds read error
24021         * lib/regcomp.c (build_equiv_class): From glibc:
24022         Use only the low 24 bits of a findidx return value as an index
24023         into the weights array.  Patch by Ulrich Drepper:
24024         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
24025         * lib/regexec.c (check_node_accept_bytes): Likewise.
24026         * lib/fnmatch_loop.c (FCT): Likewise.
24027
24028         regcomp: skip collseq lookup when there are no rules
24029         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
24030         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
24031
24032         regcomp: recognize ill-formed { } expressions
24033         * lib/regcomp.c (parse_dup_op): From glibc:
24034         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
24035
24036         regcomp: fix typo in comment
24037         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
24038         s/satisfy/satisfies/.
24039
24040         regcomp: sync from glibc: remove dead store
24041         * lib/regcomp.c (duplicate_node_closure): Remove useless
24042         search_duplicated_node call and dead store.
24043
24044         regcomp: sync from glibc; always use nl_langinfo
24045         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
24046         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
24047         * modules/regex (Depends-on): Add nl_langinfo.
24048
24049 2010-01-04  Eric Blake  <ebb9@byu.net>
24050
24051         fdopendir: fix configure test
24052         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
24053
24054 2010-01-01  Bruno Haible  <bruno@clisp.org>
24055
24056         wchar: Remove unused configure check.
24057         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
24058
24059 2010-01-01  Eric Blake  <ebb9@byu.net>
24060
24061         headers: make check of system header explicit
24062         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
24063         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
24064         ourselves.
24065         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24066         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24067         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
24068         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
24069         internals.
24070         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
24071         missing.
24072         Suggested by Bruno Haible.
24073
24074 2010-01-01  Jim Meyering  <meyering@redhat.com>
24075
24076         ChangeLog: tweak to eliminate unnecessary copyright line
24077         * ChangeLog: Remove a copyright line that was mistakenly updated
24078         by today's update-copyright run.  Reported by Eric Blake.
24079
24080         test-update-copyright: don't let envvar setting cause test failure
24081         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
24082
24083 2010-01-01  Bruno Haible  <bruno@clisp.org>
24084
24085         localename: Avoid gcc warning.
24086         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
24087         function if it is not used.
24088
24089 2010-01-01  Jim Meyering  <meyering@redhat.com>
24090
24091         update nearly all FSF copyright year lists to include 2010
24092         Use the same procedure as for 2009, outlined in
24093         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
24094
24095         version-etc: set COPYRIGHT_YEAR to 2010
24096         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
24097
24098 2009-12-31  Eric Blake  <ebb9@byu.net>
24099
24100         doc: correct availability of cygwin 1.5.x getopt
24101         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
24102         variables.
24103         * doc/posix-functions/opterr.texi (opterr): Likewise.
24104         * doc/posix-functions/optind.texi (optind): Likewise.
24105         * doc/posix-functions/optopt.texi (optopt): Likewise.
24106         * doc/posix-functions/tzname.texi (tzname): Likewise.
24107
24108         openat: update maintainer
24109         * modules/openat (Maintainer): Add myself.
24110
24111         utimens: avoid shadowing warning
24112         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
24113         buffers into one, to avoid shadowing, as well as avoiding a
24114         redundant stat.
24115         Reported by Jim Meyering.
24116
24117         test-dup2: avoid compiler warning
24118         * tests/test-dup2.c (is_inheritable): Only define if used.
24119
24120 2010-01-01  Bruno Haible  <bruno@clisp.org>
24121
24122         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
24123         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
24124         defined, use wctomb instead of wcrtomb.
24125
24126 2010-01-01  Bruno Haible  <bruno@clisp.org>
24127
24128         iconv: Reject native Solaris iconv.
24129         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
24130         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
24131
24132 2009-12-31  Bruno Haible  <bruno@clisp.org>
24133
24134         * tests/test-signal.c (main): Remove test of 'SIG'.
24135
24136 2009-12-31  Bruno Haible  <bruno@clisp.org>
24137
24138         spawn: Fix incomplete fix.
24139         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
24140         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
24141         warnings for GNULIB_POSIXCHECK again.
24142         Reported by Eric Blake.
24143
24144 2009-12-31  Bruno Haible  <bruno@clisp.org>
24145
24146         Avoid namespace pollution on glibc systems.
24147         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
24148         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
24149         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
24150         glibc systems.
24151
24152 2009-12-31  Bruno Haible  <bruno@clisp.org>
24153
24154         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
24155         (gl_REPLACE_WCHAR_H): Turn into a no-op.
24156         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
24157         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
24158         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
24159         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
24160         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
24161
24162 2009-12-31  Bruno Haible  <bruno@clisp.org>
24163
24164         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
24165         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
24166         afterwards.
24167
24168 2009-12-31  Bruno Haible  <bruno@clisp.org>
24169
24170         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
24171         SYS_UTSNAME_H.
24172
24173 2009-12-31  Bruno Haible  <bruno@clisp.org>
24174
24175         spawn: Fix misapplied patch.
24176         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
24177         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
24178         warnings for GNULIB_POSIXCHECK.
24179
24180 2009-12-31  Bruno Haible  <bruno@clisp.org>
24181
24182         times: Update after sys_times changed.
24183         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
24184         * modules/times (Files): Add it.
24185         (configure.ac): Invoke gl_FUNC_TIMES.
24186
24187 2009-12-31  Bruno Haible  <bruno@clisp.org>
24188
24189         Use AC_C_INLINE where necessary.
24190         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
24191         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
24192         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
24193         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
24194         * m4/mbfile.m4 (gl_MBFILE): Likewise.
24195         * m4/mbiter.m4 (gl_MBITER): Likewise.
24196         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
24197         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24198         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
24199         * modules/u64 (configure.ac): Likewise.
24200
24201 2009-12-31  Bruno Haible  <bruno@clisp.org>
24202
24203         Use AC_C_INLINE instead of module 'inline' where possible.
24204         * modules/inline (Description): Clarify purpose.
24205         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
24206         * modules/count-one-bits (Depends-on): Remove inline.
24207         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
24208         * modules/openat (Depends-on): Remove inline.
24209         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
24210         instead of depending on module 'inline'.
24211         * modules/filevercmp (Depends-on, configure.ac): Likewise.
24212         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
24213         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
24214         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
24215         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
24216         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
24217         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
24218         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
24219         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
24220         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
24221         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
24222         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
24223         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
24224         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
24225         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
24226         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
24227         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
24228         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
24229         Likewise.
24230         * modules/unictype/property-ascii-hex-digit (Depends-on,
24231         configure.ac): Likewise.
24232         * modules/unictype/property-bidi-arabic-digit (Depends-on,
24233         configure.ac): Likewise.
24234         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
24235         configure.ac): Likewise.
24236         * modules/unictype/property-bidi-block-separator (Depends-on,
24237         configure.ac): Likewise.
24238         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
24239         configure.ac): Likewise.
24240         * modules/unictype/property-bidi-common-separator (Depends-on,
24241         configure.ac): Likewise.
24242         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
24243         Likewise.
24244         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
24245         configure.ac): Likewise.
24246         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
24247         configure.ac): Likewise.
24248         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
24249         configure.ac): Likewise.
24250         * modules/unictype/property-bidi-european-digit (Depends-on,
24251         configure.ac): Likewise.
24252         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
24253         configure.ac): Likewise.
24254         * modules/unictype/property-bidi-left-to-right (Depends-on,
24255         configure.ac): Likewise.
24256         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
24257         configure.ac): Likewise.
24258         * modules/unictype/property-bidi-other-neutral (Depends-on,
24259         configure.ac): Likewise.
24260         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
24261         Likewise.
24262         * modules/unictype/property-bidi-segment-separator (Depends-on,
24263         configure.ac): Likewise.
24264         * modules/unictype/property-bidi-whitespace (Depends-on,
24265         configure.ac): Likewise.
24266         * modules/unictype/property-combining (Depends-on, configure.ac):
24267         Likewise.
24268         * modules/unictype/property-composite (Depends-on, configure.ac):
24269         Likewise.
24270         * modules/unictype/property-currency-symbol (Depends-on,
24271         configure.ac): Likewise.
24272         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
24273         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
24274         Likewise.
24275         * modules/unictype/property-default-ignorable-code-point (Depends-on,
24276         configure.ac): Likewise.
24277         * modules/unictype/property-deprecated (Depends-on, configure.ac):
24278         Likewise.
24279         * modules/unictype/property-diacritic (Depends-on, configure.ac):
24280         Likewise.
24281         * modules/unictype/property-extender (Depends-on, configure.ac):
24282         Likewise.
24283         * modules/unictype/property-format-control (Depends-on, configure.ac):
24284         Likewise.
24285         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
24286         Likewise.
24287         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
24288         Likewise.
24289         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
24290         Likewise.
24291         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
24292         Likewise.
24293         * modules/unictype/property-hyphen (Depends-on, configure.ac):
24294         Likewise.
24295         * modules/unictype/property-id-continue (Depends-on, configure.ac):
24296         Likewise.
24297         * modules/unictype/property-id-start (Depends-on, configure.ac):
24298         Likewise.
24299         * modules/unictype/property-ideographic (Depends-on, configure.ac):
24300         Likewise.
24301         * modules/unictype/property-ids-binary-operator (Depends-on,
24302         configure.ac): Likewise.
24303         * modules/unictype/property-ids-trinary-operator (Depends-on,
24304         configure.ac): Likewise.
24305         * modules/unictype/property-ignorable-control (Depends-on,
24306         configure.ac): Likewise.
24307         * modules/unictype/property-iso-control (Depends-on, configure.ac):
24308         Likewise.
24309         * modules/unictype/property-join-control (Depends-on, configure.ac):
24310         Likewise.
24311         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
24312         Likewise.
24313         * modules/unictype/property-line-separator (Depends-on, configure.ac):
24314         Likewise.
24315         * modules/unictype/property-logical-order-exception (Depends-on,
24316         configure.ac): Likewise.
24317         * modules/unictype/property-lowercase (Depends-on, configure.ac):
24318         Likewise.
24319         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
24320         * modules/unictype/property-non-break (Depends-on, configure.ac):
24321         Likewise.
24322         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
24323         Likewise.
24324         * modules/unictype/property-numeric (Depends-on, configure.ac):
24325         Likewise.
24326         * modules/unictype/property-other-alphabetic (Depends-on,
24327         configure.ac): Likewise.
24328         * modules/unictype/property-other-default-ignorable-code-point
24329         (Depends-on, configure.ac): Likewise.
24330         * modules/unictype/property-other-grapheme-extend (Depends-on,
24331         configure.ac): Likewise.
24332         * modules/unictype/property-other-id-continue (Depends-on,
24333         configure.ac): Likewise.
24334         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
24335         Likewise.
24336         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
24337         Likewise.
24338         * modules/unictype/property-other-math (Depends-on, configure.ac):
24339         Likewise.
24340         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
24341         Likewise.
24342         * modules/unictype/property-paired-punctuation (Depends-on,
24343         configure.ac): Likewise.
24344         * modules/unictype/property-paragraph-separator (Depends-on,
24345         configure.ac): Likewise.
24346         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
24347         Likewise.
24348         * modules/unictype/property-pattern-white-space (Depends-on,
24349         configure.ac): Likewise.
24350         * modules/unictype/property-private-use (Depends-on, configure.ac):
24351         Likewise.
24352         * modules/unictype/property-punctuation (Depends-on, configure.ac):
24353         Likewise.
24354         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
24355         Likewise.
24356         * modules/unictype/property-radical (Depends-on, configure.ac):
24357         Likewise.
24358         * modules/unictype/property-sentence-terminal (Depends-on,
24359         configure.ac): Likewise.
24360         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
24361         Likewise.
24362         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
24363         * modules/unictype/property-terminal-punctuation (Depends-on,
24364         configure.ac): Likewise.
24365         * modules/unictype/property-titlecase (Depends-on, configure.ac):
24366         Likewise.
24367         * modules/unictype/property-unassigned-code-value (Depends-on,
24368         configure.ac): Likewise.
24369         * modules/unictype/property-unified-ideograph (Depends-on,
24370         configure.ac): Likewise.
24371         * modules/unictype/property-uppercase (Depends-on, configure.ac):
24372         Likewise.
24373         * modules/unictype/property-variation-selector (Depends-on,
24374         configure.ac): Likewise.
24375         * modules/unictype/property-white-space (Depends-on, configure.ac):
24376         Likewise.
24377         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
24378         Likewise.
24379         * modules/unictype/property-xid-start (Depends-on, configure.ac):
24380         Likewise.
24381         * modules/unictype/property-zero-width (Depends-on, configure.ac):
24382         Likewise.
24383         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
24384         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
24385         Likewise.
24386
24387 2009-12-31  Bruno Haible  <bruno@clisp.org>
24388
24389         Remove unnecessary AC_C_INLINE invocation.
24390         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
24391         since 2009-08-21.
24392
24393 2009-12-31  Jim Meyering  <meyering@redhat.com>
24394
24395         maint.mk: don't require explicit gpg_key_ID in cfg.mk
24396         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
24397         With this change, we can all remove the gpg_key_ID = ... definition
24398         from our respective cfg.mk files.
24399
24400         maint.mk: create announcement template in ~/, not in /tmp
24401         * top/maint.mk (emit_upload_commands): Adjust.
24402         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
24403         Remove temporary file, .ci-msg.
24404
24405 2009-12-31  Eric Blake  <ebb9@byu.net>
24406
24407         link-warning: always build headers with link warnings
24408         * modules/arpa_inet (Makefile.am): Always build replacement
24409         header.
24410         * modules/ctype (Makefile.am): Likewise.
24411         * modules/dirent (Makefile.am): Likewise.
24412         * modules/inttypes (Makefile.am): Likewise.
24413         * modules/langinfo (Makefile.am): Likewise.
24414         * modules/locale (Makefile.am): Likewise.
24415         * modules/spawn (Makefile.am): Likewise.
24416         * modules/sys_file (Makefile.am): Likewise.
24417         * modules/sys_ioctl (Makefile.am): Likewise.
24418         * modules/sys_select (Makefile.am): Likewise.
24419         * modules/sys_socket (Makefile.am): Likewise.
24420         * modules/sys_times (Makefile.am): Likewise.
24421         * modules/sys_utsname (Makefile.am): Likewise.
24422         * modules/sys_wait (Makefile.am): Likewise.
24423         * modules/wchar (Makefile.am): Likewise.
24424         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
24425         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
24426         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
24427         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
24428         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
24429         Likewise.
24430         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24431         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
24432         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
24433         Likewise.
24434         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
24435         Likewise.
24436         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
24437         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
24438         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
24439         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24440         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24441         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
24442         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
24443         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
24444         (gl_WCHAR_H_DEFAULTS): Likewise.
24445
24446 2009-12-31  Eric Blake  <ebb9@byu.net>
24447
24448         signal, spawn: use link warnings
24449         * lib/signal.in.h (sigset_t): Make unconditional.
24450         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
24451         (sigpending, sigprocmask, sigaction): Add link warnings.
24452         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
24453         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
24454         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
24455         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
24456         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
24457         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
24458         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
24459         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
24460         (posix_spawn_file_actions_destroy)
24461         (posix_spawn_file_actions_addopen)
24462         (posix_spawn_file_actions_addclose)
24463         (posix_spawn_file_actions_adddup2): Likewise.
24464         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
24465         * tests/test-signal.c (main): Enhance test.
24466
24467         spawn: improve wrapper support
24468         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
24469         (gl_SPAWN_H_DEFAULTS): New defaults.
24470         * modules/spawn (Makefile.am): Substitute them.
24471         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
24472         Only declare if missing or broken.
24473
24474         sys_times, sys_utsname: use include_next
24475         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
24476         header.
24477         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
24478         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
24479         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
24480         * modules/sys_times (Depends-on): Add include_next.
24481         (Makefile.am): Substitute additional values.
24482         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
24483         * lib/sys_times.in.h (includes): Include native header, if
24484         available.
24485         * lib/sys_utsname.in.h (includes): Likewise.
24486         * tests/test-sys_times.c (main): Enhance test.
24487
24488         fdutimensat: revert prior patch
24489         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
24490         utimens.h.
24491         Reported by Bruno Haible.
24492
24493 2009-12-30  Eric Blake  <ebb9@byu.net>
24494
24495         sys_wait: drop link-warning dependency
24496         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
24497         link-warning efforts.
24498         * lib/sys_wait.in.h: Likewise.
24499
24500         fdutimensat: remove bogus dependency
24501         * modules/fdutimensat (Depends-on): Drop inline.
24502
24503         unistd: fix typo
24504         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
24505
24506 2009-12-30  Bruno Haible  <bruno@clisp.org>
24507
24508         Fix compilation error with Solaris cc.
24509         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
24510         * lib/unicase/u16-is-invariant.c: Likewise.
24511         * lib/unicase/u32-is-invariant.c: Likewise.
24512         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
24513
24514 2009-12-30  Bruno Haible  <bruno@clisp.org>
24515
24516         Fix test crash.
24517         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
24518         locales.
24519         Reported by Simon Josefsson <simon@josefsson.org>.
24520
24521 2009-12-30  Bruno Haible  <bruno@clisp.org>
24522
24523         Fix compilation error on most platforms.
24524         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
24525         Reported by Simon Josefsson <simon@josefsson.org>
24526         and Nelson H. F. Beebe <beebe@math.utah.edu>.
24527
24528 2009-12-30  Eric Blake  <ebb9@byu.net>
24529
24530         futimens, utimensat: work around ntfs-3g bug
24531         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
24532         a ctime bug is present, and expand workaround to cover ntfs-3g.
24533         * lib/utimens.c (fdutimens, lutimens): Likewise.
24534         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
24535         (validate_timespec): Adjust return value.
24536         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
24537         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24538         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
24539
24540 2009-12-29  Eric Blake  <ebb9@byu.net>
24541
24542         link-warning: make usage consistent
24543         * modules/ctype (Depends-on): Add link-warning.
24544         (Makefile.am): Update rules accordingly.
24545         * modules/langinfo (Depends-on, Makefile.am): Likewise.
24546         * modules/locale (Depends-on, Makefile.am): Likewise.
24547         * modules/sys_file (Makefile.am): Likewise.
24548         * modules/getopt-posix (Makefile.am): Delete unused link warning
24549         efforts.
24550         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
24551         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
24552         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
24553         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
24554
24555         stdio: remove unused variables
24556         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
24557         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
24558         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
24559
24560         tests: test more substitute headers
24561         * modules/ctype-tests: New file.
24562         * modules/dirent-tests: Likewise.
24563         * modules/spawn-tests: Likewise.
24564         * modules/sys_file-tests: Likewise.
24565         * modules/sys_ioctl-tests: Likewise.
24566         * modules/sys_wait-tests: Likewise.
24567         * tests/test-ctype.c: Likewise.
24568         * tests/test-dirent.c: Likewise.
24569         * tests/test-spawn.c: Likewise.
24570         * tests/test-sys_file.c: Likewise.
24571         * tests/test-sys_ioctl.c: Likewise.
24572         * tests/test-sys_wait.c: Likewise.
24573         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
24574         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
24575         whether or not flock is in use.
24576
24577         tests: remove License section from module
24578         * modules/arpa_inet-tests: Remove unneeded section.
24579         * modules/byteswap-tests: Likewise.
24580         * modules/ceilf-tests: Likewise.
24581         * modules/ceill-tests: Likewise.
24582         * modules/crypto/des-tests: Likewise.
24583         * modules/crypto/gc-arcfour-tests: Likewise.
24584         * modules/crypto/gc-arctwo-tests: Likewise.
24585         * modules/crypto/gc-des-tests: Likewise.
24586         * modules/crypto/gc-hmac-md5-tests: Likewise.
24587         * modules/crypto/gc-hmac-sha1-tests: Likewise.
24588         * modules/crypto/gc-md2-tests: Likewise.
24589         * modules/crypto/gc-md4-tests: Likewise.
24590         * modules/crypto/gc-md5-tests: Likewise.
24591         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
24592         * modules/crypto/gc-rijndael-tests: Likewise.
24593         * modules/crypto/gc-sha1-tests: Likewise.
24594         * modules/crypto/gc-tests: Likewise.
24595         * modules/crypto/md2-tests: Likewise.
24596         * modules/crypto/md4-tests: Likewise.
24597         * modules/fcntl-h-tests: Likewise.
24598         * modules/floorf-tests: Likewise.
24599         * modules/floorl-tests: Likewise.
24600         * modules/frexp-nolibm-tests: Likewise.
24601         * modules/frexp-tests: Likewise.
24602         * modules/frexpl-nolibm-tests: Likewise.
24603         * modules/frexpl-tests: Likewise.
24604         * modules/getaddrinfo-tests: Likewise.
24605         * modules/inttypes-tests: Likewise.
24606         * modules/isfinite-tests: Likewise.
24607         * modules/isinf-tests: Likewise.
24608         * modules/ldexpl-tests: Likewise.
24609         * modules/locale-tests: Likewise.
24610         * modules/math-tests: Likewise.
24611         * modules/netdb-tests: Likewise.
24612         * modules/netinet_in-tests: Likewise.
24613         * modules/printf-frexp-tests: Likewise.
24614         * modules/printf-frexpl-tests: Likewise.
24615         * modules/priv-set-tests: Likewise.
24616         * modules/random_r-tests: Likewise.
24617         * modules/round-tests: Likewise.
24618         * modules/roundf-tests: Likewise.
24619         * modules/roundl-tests: Likewise.
24620         * modules/search-tests: Likewise.
24621         * modules/select-tests: Likewise.
24622         * modules/signal-tests: Likewise.
24623         * modules/stdbool-tests: Likewise.
24624         * modules/stddef-tests: Likewise.
24625         * modules/stdint-tests: Likewise.
24626         * modules/stdio-tests: Likewise.
24627         * modules/stdlib-tests: Likewise.
24628         * modules/string-tests: Likewise.
24629         * modules/strings-tests: Likewise.
24630         * modules/sys_select-tests: Likewise.
24631         * modules/sys_socket-tests: Likewise.
24632         * modules/sys_stat-tests: Likewise.
24633         * modules/sys_time-tests: Likewise.
24634         * modules/sys_utsname-tests: Likewise.
24635         * modules/sysexits-tests: Likewise.
24636         * modules/time-tests: Likewise.
24637         * modules/trunc-tests: Likewise.
24638         * modules/truncf-tests: Likewise.
24639         * modules/truncl-tests: Likewise.
24640         * modules/tsearch-tests: Likewise.
24641         * modules/unistd-tests: Likewise.
24642         * modules/wchar-tests: Likewise.
24643         * modules/wctype-tests: Likewise.
24644
24645         tests: fix license on several tests
24646         * tests/test-des.c: Update to GPLv3+.
24647         * tests/test-flock.c: Likewise.
24648         * tests/test-fsync.c: Likewise.
24649         * tests/test-futimens.h: Likewise.
24650         * tests/test-gc-arcfour.c: Likewise.
24651         * tests/test-gc-arctwo.c: Likewise.
24652         * tests/test-gc-des.c: Likewise.
24653         * tests/test-gc-hmac-md5.c: Likewise.
24654         * tests/test-gc-hmac-sha1.c: Likewise.
24655         * tests/test-gc-md2.c: Likewise.
24656         * tests/test-gc-md4.c: Likewise.
24657         * tests/test-gc-md5.c: Likewise.
24658         * tests/test-gc-pbkdf2-sha1.c: Likewise.
24659         * tests/test-gc-rijndael.c: Likewise.
24660         * tests/test-gc-sha1.c: Likewise.
24661         * tests/test-gc.c: Likewise.
24662         * tests/test-getcwd.c: Likewise.
24663         * tests/test-link.c: Likewise.
24664         * tests/test-link.h: Likewise.
24665         * tests/test-lutimens.h: Likewise.
24666         * tests/test-md2.c: Likewise.
24667         * tests/test-md4.c: Likewise.
24668         * tests/test-mkdir.h: Likewise.
24669         * tests/test-rename.c: Likewise.
24670         * tests/test-rename.h: Likewise.
24671         * tests/test-safe-alloc.c: Likewise.
24672         * tests/test-utimens-common.h: Likewise.
24673         * tests/test-utimens.h: Likewise.
24674
24675         maint: sync license texts
24676         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
24677         * doc/gpl-3.0.texi: Revert copyright year update.
24678         * doc/lgpl-3.0.texi: Likewise.
24679
24680 2009-12-29  Jim Meyering  <meyering@redhat.com>
24681
24682         update nearly all FSF copyright year lists to include 2009
24683         The files named by the following are exempted:
24684             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
24685               test -f "$dst" && { echo "$dst"; continue; }
24686               test -d "$dst" || continue
24687               echo "$dst"/$(basename "$src")
24688             done > exempt
24689             git ls-files tests/unictype >> exempt
24690         In the remaining files, convert to all-interval notation if
24691         - there is already at least one year interval like 2000-2003
24692         - the file is maintained by me
24693         - the file is in lib/uni*/, where that style already prevails
24694         Otherwise, use update-copyright's default.
24695
24696 2009-12-29  Simon Josefsson  <simon@josefsson.org>
24697         and Eric Blake  <ebb9@byu.net>
24698
24699         tests: don't require debug system() to pass
24700         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
24701         * tests/test-rmdir.h (test_rmdir_func): Likewise.
24702         * tests/test-unlink.h (test_unlink_func): Likewise.
24703         * tests/test-fstatat.c (main): ...into callers.
24704         * tests/test-lstat.c (main): Likewise.
24705         * tests/test-rmdir.c (main): Likewise.
24706         * tests/test-unlink.c (main): Likewise.
24707         * tests/test-unlinkat.c (main): Likewise.
24708         * tests/test-areadlink-with-size.c (main): Don't require a
24709         debug-only system call to pass, aiding cross-testing to mingw.
24710         * tests/test-areadlink.c (main): Likewise.
24711         * tests/test-areadlinkat-with-size.c (main): Likewise.
24712         * tests/test-areadlinkat.c (main): Likewise.
24713         * tests/test-canonicalize-lgpl.c (main): Likewise.
24714         * tests/test-canonicalize.c (main): Likewise.
24715         * tests/test-chown.c (main): Likewise.
24716         * tests/test-fchownat.c (main): Likewise.
24717         * tests/test-lchown.c (main): Likewise.
24718         * tests/test-fdutimensat.c (main): Likewise.
24719         * tests/test-futimens.c (main): Likewise.
24720         * tests/test-link.c (main): Likewise.
24721         * tests/test-linkat.c (main): Likewise.
24722         * tests/test-mkdir.c (main): Likewise.
24723         * tests/test-mkdirat.c (main): Likewise.
24724         * tests/test-mkfifo.c (main): Likewise.
24725         * tests/test-mkfifoat.c (main): Likewise.
24726         * tests/test-mknod.c (main): Likewise.
24727         * tests/test-readlink.c (main): Likewise.
24728         * tests/test-remove.c (main): Likewise.
24729         * tests/test-rename.c (main): Likewise.
24730         * tests/test-renameat.c (main): Likewise.
24731         * tests/test-symlink.c (main): Likewise.
24732         * tests/test-symlinkat.c (main): Likewise.
24733         * tests/test-utimens.c (main): Likewise.
24734         * tests/test-utimensat.c (main): Likewise.
24735
24736 2009-12-29  Simon Josefsson  <simon@josefsson.org>
24737
24738         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
24739         on $(UNUSED_PARAMETER_H) to avoid build failure.
24740
24741 2009-12-28  Jim Meyering  <meyering@redhat.com>
24742
24743         update-copyright: you may specify a max. line length other than 72
24744         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
24745
24746         maint: use consistent FSF copyright line syntax
24747         * lib/posixtm.c: Add missing comma in FSF copyright line.
24748         * lib/posixtm.h: Likewise.
24749         * lib/getugroups.c: Add missing ", Inc.".
24750
24751         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
24752         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
24753         FSF copyright line.  Remove trailing blanks.
24754
24755 2009-12-28  Eric Blake  <ebb9@byu.net>
24756
24757         test-dup2: reduce dependencies
24758         * modules/cloexec (Configure.ac): Set witness.
24759         * modules/dup2-tests (Depends-on): Drop cloexec.
24760         * tests/test-dup2.c (main): Skip portion of test if cloexec module
24761         not present.
24762         Suggested by Bruno Haible.
24763
24764 2009-12-26  Bruno Haible  <bruno@clisp.org>
24765
24766         Remove an unneeded dependency.
24767         * modules/fseterr (Depends-on): Remove dup2.
24768
24769 2009-12-26  Eric Blake  <ebb9@byu.net>
24770
24771         tests: use macros.h in more places
24772         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
24773         (ASSERT_STREAM): Provide default of stderr.
24774         * tests/test-dirent-safer.c: Include macros.h, using alternate
24775         stream for assertions.
24776         * tests/test-dup-safer.c: Likewise.
24777         * tests/test-freopen-safer.c: Likewise.
24778         * tests/test-getopt.c: Likewise.
24779         * tests/test-openat-safer.c: Likewise.
24780         * tests/test-pipe.c: Likewise.
24781         * tests/test-popen-safer.c: Likewise.
24782         * modules/dirent-safer-tests (Files): Include macros.h.
24783         * modules/unistd-safer-tests (Files): Likewise.
24784         * modules/freopen-safer-tests (Files): Likewise.
24785         * modules/getopt-posix-tests (Files): Likewise.
24786         * modules/openat-safer-tests (Files): Likewise.
24787         * modules/pipe-tests (Files): Likewise.
24788
24789 2009-12-26  Bruno Haible  <bruno@clisp.org>
24790
24791         javacomp: Portability fix.
24792         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
24793         that it also works on Solaris.
24794
24795 2009-12-26  Bruno Haible  <bruno@clisp.org>
24796
24797         localename: Fix storage allocation of gl_locale_name_thread's result.
24798         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
24799         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
24800         all platforms that have 'uselocale'.
24801         (gl_locale_name_thread_unsafe): New function, extracted from
24802         gl_locale_name_thread.
24803         (gl_locale_name_thread): Call struniq on all platforms that have
24804         'uselocale'.
24805         * tests/test-localename.c (test_locale_name_thread): Check that the
24806         resulting strings are permanently allocated.
24807         * modules/localename-tests (Depends-on): Add strdup.
24808
24809 2009-12-26  Bruno Haible  <bruno@clisp.org>
24810
24811         * tests/test-localename.c (categories): Fill in the strings.
24812
24813 2009-12-26  Jim Meyering  <meyering@redhat.com>
24814
24815         isdir: complete the removal of m4/isdir.m4
24816         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
24817
24818         isdir: clean up, since at least grep still uses it
24819         * lib/isdir.c: Include "isdir.h".
24820         (S_ISDIR): Remove now-unneeded definition.
24821         * modules/isdir (Files): Add lib/isdir.h.
24822         * lib/isdir.h: New file, with declaration.
24823         * m4/isdir.m4: Remove file -- unneeded.
24824
24825 2009-12-25  Bruno Haible  <bruno@clisp.org>
24826
24827         selinux-h: Make generated .h files standalone.
24828         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
24829         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
24830         * lib/se-selinux.in.h: Likewise.
24831         * modules/selinux-h (Depends-on): Add unused-parameter.
24832         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
24833         selinux/selinux.h and selinux/context.h.
24834         Suggested by Eric Blake.
24835
24836 2009-12-25  Bruno Haible  <bruno@clisp.org>
24837
24838         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
24839         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
24840         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
24841         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
24842         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
24843
24844 2009-12-24  Bruno Haible  <bruno@clisp.org>
24845
24846         openat: Fix warning.
24847         * lib/openat-proc.c: Include <unistd.h>.
24848
24849 2009-12-24  Bruno Haible  <bruno@clisp.org>
24850
24851         New module 'unused-parameter'.
24852         * build-aux/unused-parameter.h: New file, extracted from earlier
24853         gnulib-common.m4.
24854         * modules/unused-parameter: New file.
24855         * lib/unistr.h: Include unused-parameter.h.
24856         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
24857         _GL_UNUSED.
24858         * modules/unistr/base (Depends-on): Add unused-parameter.
24859
24860 2009-12-24  Bruno Haible  <bruno@clisp.org>
24861
24862         Add missing dependencies to 'extensions' module.
24863         * m4/extensions.m4: Add comment.
24864         * modules/accept4 (Depends-on): Add extensions.
24865         * modules/dup3 (Depends-on): Likewise.
24866         * modules/fcntl (Depends-on): Likewise.
24867         * modules/futimens (Depends-on): Likewise.
24868         * modules/mknod (Depends-on): Likewise.
24869         * modules/pipe2 (Depends-on): Likewise.
24870         * modules/stat-time (Depends-on): Likewise.
24871         * modules/strcasestr-simple (Depends-on): Likewise.
24872         * modules/strsignal (Depends-on): Likewise.
24873         * modules/utimensat (Depends-on): Likewise.
24874         * modules/localcharset (Depends-on): Likewise. Needed because of
24875         gl_FCNTL_O_FLAGS.
24876         * modules/wcrtomb (Depends-on): Likewise. Needed because of
24877         AC_TYPE_MBSTATE_T.
24878         * modules/wcsnrtombs (Depends-on): Likewise.
24879         * modules/wcsrtombs (Depends-on): Likewise.
24880
24881 2009-12-24  Bruno Haible  <bruno@clisp.org>
24882
24883         binary-io: Avoid gcc warning due to SET_BINARY.
24884         * lib/binary-io.h (SET_BINARY): Cast the result to void.
24885         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
24886
24887 2009-12-24  Bruno Haible  <bruno@clisp.org>
24888
24889         Avoid future namespace pollution on glibc systems.
24890         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
24891         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
24892         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
24893         glibc systems.
24894
24895 2009-12-24  Bruno Haible  <bruno@clisp.org>
24896
24897         Refactor common macros used in tests.
24898         * tests/macros.h: New file.
24899         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
24900         and/or <stdlib.h>, if appropriate.
24901         (ASSERT, SIZEOF): Remove macros.
24902         * tests/test-areadlink-with-size.c: Likewise.
24903         * tests/test-areadlinkat.c: Likewise.
24904         * tests/test-areadlinkat-with-size.c: Likewise.
24905         * tests/test-argmatch.c: Likewise.
24906         * tests/test-argv-iter.c: Likewise.
24907         * tests/test-array-mergesort.c: Likewise.
24908         * tests/test-array_list.c: Likewise.
24909         * tests/test-array_oset.c: Likewise.
24910         * tests/test-avltree_list.c: Likewise.
24911         * tests/test-avltree_oset.c: Likewise.
24912         * tests/test-avltreehash_list.c: Likewise.
24913         * tests/test-base64.c: Likewise.
24914         * tests/test-binary-io.c: Likewise.
24915         * tests/test-bitrotate.c: Likewise.
24916         * tests/test-btowc.c: Likewise.
24917         * tests/test-byteswap.c: Likewise.
24918         * tests/test-c-ctype.c: Likewise.
24919         * tests/test-c-stack.c: Likewise.
24920         * tests/test-c-strcasecmp.c: Likewise.
24921         * tests/test-c-strcasestr.c: Likewise.
24922         * tests/test-c-strncasecmp.c: Likewise.
24923         * tests/test-c-strstr.c: Likewise.
24924         * tests/test-canonicalize-lgpl.c: Likewise.
24925         * tests/test-canonicalize.c: Likewise.
24926         * tests/test-carray_list.c: Likewise.
24927         * tests/test-ceilf1.c: Likewise.
24928         * tests/test-ceilf2.c: Likewise.
24929         * tests/test-ceill.c: Likewise.
24930         * tests/test-chown.c: Likewise.
24931         * tests/test-cloexec.c: Likewise.
24932         * tests/test-copy-acl.c: Likewise.
24933         * tests/test-copy-file.c: Likewise.
24934         * tests/test-count-one-bits.c: Likewise.
24935         * tests/test-dprintf-posix.c: Likewise.
24936         * tests/test-dup2.c: Likewise.
24937         * tests/test-dup3.c: Likewise.
24938         * tests/test-duplocale.c: Likewise.
24939         * tests/test-fbufmode.c: Likewise.
24940         * tests/test-fchdir.c: Likewise.
24941         * tests/test-fchownat.c: Likewise.
24942         * tests/test-fcntl-safer.c: Likewise.
24943         * tests/test-fcntl.c: Likewise.
24944         * tests/test-fdopendir.c: Likewise.
24945         * tests/test-fdutimensat.c: Likewise.
24946         * tests/test-fflush2.c: Likewise.
24947         * tests/test-file-has-acl.c: Likewise.
24948         * tests/test-filevercmp.c: Likewise.
24949         * tests/test-flock.c: Likewise.
24950         * tests/test-floorf1.c: Likewise.
24951         * tests/test-floorf2.c: Likewise.
24952         * tests/test-floorl.c: Likewise.
24953         * tests/test-fnmatch.c: Likewise.
24954         * tests/test-fopen.h: Likewise.
24955         * tests/test-fpending.c: Likewise.
24956         * tests/test-fprintf-posix.c: Likewise.
24957         * tests/test-fpurge.c: Likewise.
24958         * tests/test-freadable.c: Likewise.
24959         * tests/test-freadahead.c: Likewise.
24960         * tests/test-freading.c: Likewise.
24961         * tests/test-freadptr.c: Likewise.
24962         * tests/test-freadptr2.c: Likewise.
24963         * tests/test-freadseek.c: Likewise.
24964         * tests/test-freopen.c: Likewise.
24965         * tests/test-frexp.c: Likewise.
24966         * tests/test-frexpl.c: Likewise.
24967         * tests/test-fseek.c: Likewise.
24968         * tests/test-fseeko.c: Likewise.
24969         * tests/test-fstatat.c: Likewise.
24970         * tests/test-fstrcmp.c: Likewise.
24971         * tests/test-fsync.c: Likewise.
24972         * tests/test-ftell.c: Likewise.
24973         * tests/test-ftello.c: Likewise.
24974         * tests/test-func.c: Likewise.
24975         * tests/test-futimens.c: Likewise.
24976         * tests/test-fwritable.c: Likewise.
24977         * tests/test-fwriting.c: Likewise.
24978         * tests/test-getcwd.c: Likewise.
24979         * tests/test-getdate.c: Likewise.
24980         * tests/test-getdelim.c: Likewise.
24981         * tests/test-getdtablesize.c: Likewise.
24982         * tests/test-getgroups.c: Likewise.
24983         * tests/test-getline.c: Likewise.
24984         * tests/test-getndelim2.c: Likewise.
24985         * tests/test-glob.c: Likewise.
24986         * tests/test-hash.c: Likewise.
24987         * tests/test-i-ring.c: Likewise.
24988         * tests/test-iconv-utf.c: Likewise.
24989         * tests/test-iconv.c: Likewise.
24990         * tests/test-idpriv-drop.c: Likewise.
24991         * tests/test-idpriv-droptemp.c: Likewise.
24992         * tests/test-inet_ntop.c: Likewise.
24993         * tests/test-inet_pton.c: Likewise.
24994         * tests/test-isblank.c: Likewise.
24995         * tests/test-isfinite.c: Likewise.
24996         * tests/test-isinf.c: Likewise.
24997         * tests/test-isnan.c: Likewise.
24998         * tests/test-isnand.h: Likewise.
24999         * tests/test-isnanf.h: Likewise.
25000         * tests/test-isnanl.h: Likewise.
25001         * tests/test-lchown.c: Likewise.
25002         * tests/test-ldexpl.c: Likewise.
25003         * tests/test-link.c: Likewise.
25004         * tests/test-linkat.c: Likewise.
25005         * tests/test-linked_list.c: Likewise.
25006         * tests/test-linkedhash_list.c: Likewise.
25007         * tests/test-localename.c: Likewise.
25008         * tests/test-lseek.c: Likewise.
25009         * tests/test-lstat.c: Likewise.
25010         * tests/test-mbmemcasecmp.c: Likewise.
25011         * tests/test-mbmemcasecoll.c: Likewise.
25012         * tests/test-mbrtowc.c: Likewise.
25013         * tests/test-mbscasecmp.c: Likewise.
25014         * tests/test-mbscasestr1.c: Likewise.
25015         * tests/test-mbscasestr2.c: Likewise.
25016         * tests/test-mbscasestr3.c: Likewise.
25017         * tests/test-mbscasestr4.c: Likewise.
25018         * tests/test-mbschr.c: Likewise.
25019         * tests/test-mbscspn.c: Likewise.
25020         * tests/test-mbsinit.c: Likewise.
25021         * tests/test-mbsncasecmp.c: Likewise.
25022         * tests/test-mbsnrtowcs.c: Likewise.
25023         * tests/test-mbspbrk.c: Likewise.
25024         * tests/test-mbspcasecmp.c: Likewise.
25025         * tests/test-mbsrchr.c: Likewise.
25026         * tests/test-mbsrtowcs.c: Likewise.
25027         * tests/test-mbsspn.c: Likewise.
25028         * tests/test-mbsstr1.c: Likewise.
25029         * tests/test-mbsstr2.c: Likewise.
25030         * tests/test-mbsstr3.c: Likewise.
25031         * tests/test-memchr.c: Likewise.
25032         * tests/test-memchr2.c: Likewise.
25033         * tests/test-memcmp.c: Likewise.
25034         * tests/test-memmem.c: Likewise.
25035         * tests/test-memrchr.c: Likewise.
25036         * tests/test-mkdir.c: Likewise.
25037         * tests/test-mkdirat.c: Likewise.
25038         * tests/test-mkfifo.c: Likewise.
25039         * tests/test-mkfifoat.c: Likewise.
25040         * tests/test-mknod.c: Likewise.
25041         * tests/test-nanosleep.c: Likewise.
25042         * tests/test-nl_langinfo.c: Likewise.
25043         * tests/test-obstack-printf.c: Likewise.
25044         * tests/test-open.c: Likewise.
25045         * tests/test-openat.c: Likewise.
25046         * tests/test-pipe-filter-gi1.c: Likewise.
25047         * tests/test-pipe-filter-gi2-main.c: Likewise.
25048         * tests/test-pipe-filter-ii1.c: Likewise.
25049         * tests/test-pipe-filter-ii2-main.c: Likewise.
25050         * tests/test-pipe2.c: Likewise.
25051         * tests/test-popen.h: Likewise.
25052         * tests/test-posixtm.c: Likewise.
25053         * tests/test-pread.c: Likewise.
25054         * tests/test-printf-frexp.c: Likewise.
25055         * tests/test-printf-frexpl.c: Likewise.
25056         * tests/test-printf-posix.c: Likewise.
25057         * tests/test-priv-set.c: Likewise.
25058         * tests/test-quotearg.c: Likewise.
25059         * tests/test-random_r.c: Likewise.
25060         * tests/test-rawmemchr.c: Likewise.
25061         * tests/test-rbtree_list.c: Likewise.
25062         * tests/test-rbtree_oset.c: Likewise.
25063         * tests/test-rbtreehash_list.c: Likewise.
25064         * tests/test-readlink.c: Likewise.
25065         * tests/test-remove.c: Likewise.
25066         * tests/test-rename.c: Likewise.
25067         * tests/test-renameat.c: Likewise.
25068         * tests/test-rmdir.c: Likewise.
25069         * tests/test-round1.c: Likewise.
25070         * tests/test-roundf1.c: Likewise.
25071         * tests/test-roundl.c: Likewise.
25072         * tests/test-safe-alloc.c: Likewise.
25073         * tests/test-sameacls.c: Likewise.
25074         * tests/test-set-mode-acl.c: Likewise.
25075         * tests/test-setenv.c: Likewise.
25076         * tests/test-sigaction.c: Likewise.
25077         * tests/test-signbit.c: Likewise.
25078         * tests/test-sleep.c: Likewise.
25079         * tests/test-snprintf-posix.c: Likewise.
25080         * tests/test-snprintf.c: Likewise.
25081         * tests/test-sprintf-posix.c: Likewise.
25082         * tests/test-stat-time.c: Likewise.
25083         * tests/test-stat.c: Likewise.
25084         * tests/test-strcasestr.c: Likewise.
25085         * tests/test-strchrnul.c: Likewise.
25086         * tests/test-strerror.c: Likewise.
25087         * tests/test-striconv.c: Likewise.
25088         * tests/test-striconveh.c: Likewise.
25089         * tests/test-striconveha.c: Likewise.
25090         * tests/test-strsignal.c: Likewise.
25091         * tests/test-strstr.c: Likewise.
25092         * tests/test-strtod.c: Likewise.
25093         * tests/test-strverscmp.c: Likewise.
25094         * tests/test-symlink.c: Likewise.
25095         * tests/test-symlinkat.c: Likewise.
25096         * tests/test-trunc1.c: Likewise.
25097         * tests/test-trunc2.c: Likewise.
25098         * tests/test-truncf1.c: Likewise.
25099         * tests/test-truncf2.c: Likewise.
25100         * tests/test-truncl.c: Likewise.
25101         * tests/test-uname.c: Likewise.
25102         * tests/test-unlink.c: Likewise.
25103         * tests/test-unlinkat.c: Likewise.
25104         * tests/test-unsetenv.c: Likewise.
25105         * tests/test-usleep.c: Likewise.
25106         * tests/test-utimens.c: Likewise.
25107         * tests/test-utimensat.c: Likewise.
25108         * tests/test-vasnprintf-posix.c: Likewise.
25109         * tests/test-vasnprintf-posix2.c: Likewise.
25110         * tests/test-vasnprintf.c: Likewise.
25111         * tests/test-vasprintf-posix.c: Likewise.
25112         * tests/test-vasprintf.c: Likewise.
25113         * tests/test-vdprintf-posix.c: Likewise.
25114         * tests/test-vfprintf-posix.c: Likewise.
25115         * tests/test-vprintf-posix.c: Likewise.
25116         * tests/test-vsnprintf-posix.c: Likewise.
25117         * tests/test-vsnprintf.c: Likewise.
25118         * tests/test-vsprintf-posix.c: Likewise.
25119         * tests/test-wcrtomb.c: Likewise.
25120         * tests/test-wcsnrtombs.c: Likewise.
25121         * tests/test-wcsrtombs.c: Likewise.
25122         * tests/test-wctype.c: Likewise.
25123         * tests/test-wcwidth.c: Likewise.
25124         * tests/test-xfprintf-posix.c: Likewise.
25125         * tests/test-xmemdup0.c: Likewise.
25126         * tests/test-xprintf-posix.c: Likewise.
25127         * tests/test-xvasprintf.c: Likewise.
25128         * tests/unicase/test-locale-language.c: Likewise.
25129         * tests/unicase/test-mapping-part1.h: Likewise.
25130         * tests/unicase/test-predicate-part1.h: Likewise.
25131         * tests/unicase/test-u8-casecmp.c: Likewise.
25132         * tests/unicase/test-u8-casecoll.c: Likewise.
25133         * tests/unicase/test-u8-casefold.c: Likewise.
25134         * tests/unicase/test-u8-is-cased.c: Likewise.
25135         * tests/unicase/test-u8-is-casefolded.c: Likewise.
25136         * tests/unicase/test-u8-is-lowercase.c: Likewise.
25137         * tests/unicase/test-u8-is-titlecase.c: Likewise.
25138         * tests/unicase/test-u8-is-uppercase.c: Likewise.
25139         * tests/unicase/test-u8-tolower.c: Likewise.
25140         * tests/unicase/test-u8-totitle.c: Likewise.
25141         * tests/unicase/test-u8-toupper.c: Likewise.
25142         * tests/unicase/test-u16-casecmp.c: Likewise.
25143         * tests/unicase/test-u16-casecoll.c: Likewise.
25144         * tests/unicase/test-u16-casefold.c: Likewise.
25145         * tests/unicase/test-u16-is-cased.c: Likewise.
25146         * tests/unicase/test-u16-is-casefolded.c: Likewise.
25147         * tests/unicase/test-u16-is-lowercase.c: Likewise.
25148         * tests/unicase/test-u16-is-titlecase.c: Likewise.
25149         * tests/unicase/test-u16-is-uppercase.c: Likewise.
25150         * tests/unicase/test-u16-tolower.c: Likewise.
25151         * tests/unicase/test-u16-totitle.c: Likewise.
25152         * tests/unicase/test-u16-toupper.c: Likewise.
25153         * tests/unicase/test-u32-casecmp.c: Likewise.
25154         * tests/unicase/test-u32-casecoll.c: Likewise.
25155         * tests/unicase/test-u32-casefold.c: Likewise.
25156         * tests/unicase/test-u32-is-cased.c: Likewise.
25157         * tests/unicase/test-u32-is-casefolded.c: Likewise.
25158         * tests/unicase/test-u32-is-lowercase.c: Likewise.
25159         * tests/unicase/test-u32-is-titlecase.c: Likewise.
25160         * tests/unicase/test-u32-is-uppercase.c: Likewise.
25161         * tests/unicase/test-u32-tolower.c: Likewise.
25162         * tests/unicase/test-u32-totitle.c: Likewise.
25163         * tests/unicase/test-u32-toupper.c: Likewise.
25164         * tests/unicase/test-ulc-casecmp.c: Likewise.
25165         * tests/unicase/test-ulc-casecoll.c: Likewise.
25166         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
25167         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
25168         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
25169         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
25170         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
25171         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
25172         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
25173         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
25174         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
25175         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
25176         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
25177         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
25178         * tests/unictype/test-bidi_byname.c: Likewise.
25179         * tests/unictype/test-bidi_name.c: Likewise.
25180         * tests/unictype/test-bidi_of.c: Likewise.
25181         * tests/unictype/test-bidi_test.c: Likewise.
25182         * tests/unictype/test-block_list.c: Likewise.
25183         * tests/unictype/test-block_of.c: Likewise.
25184         * tests/unictype/test-block_test.c: Likewise.
25185         * tests/unictype/test-categ_and.c: Likewise.
25186         * tests/unictype/test-categ_and_not.c: Likewise.
25187         * tests/unictype/test-categ_byname.c: Likewise.
25188         * tests/unictype/test-categ_name.c: Likewise.
25189         * tests/unictype/test-categ_none.c: Likewise.
25190         * tests/unictype/test-categ_of.c: Likewise.
25191         * tests/unictype/test-categ_or.c: Likewise.
25192         * tests/unictype/test-categ_test_withtable.c: Likewise.
25193         * tests/unictype/test-combining.c: Likewise.
25194         * tests/unictype/test-decdigit.c: Likewise.
25195         * tests/unictype/test-digit.c: Likewise.
25196         * tests/unictype/test-mirror.c: Likewise.
25197         * tests/unictype/test-numeric.c: Likewise.
25198         * tests/unictype/test-pr_byname.c: Likewise.
25199         * tests/unictype/test-pr_test.c: Likewise.
25200         * tests/unictype/test-predicate-part1.h: Likewise.
25201         * tests/unictype/test-scripts.c: Likewise.
25202         * tests/unictype/test-sy_c_ident.c: Likewise.
25203         * tests/unictype/test-sy_java_ident.c: Likewise.
25204         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
25205         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
25206         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
25207         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
25208         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
25209         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
25210         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
25211         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
25212         * tests/uninorm/test-canonical-decomposition.c: Likewise.
25213         * tests/uninorm/test-compat-decomposition.c: Likewise.
25214         * tests/uninorm/test-composition.c: Likewise.
25215         * tests/uninorm/test-decomposing-form.c: Likewise.
25216         * tests/uninorm/test-decomposition.c: Likewise.
25217         * tests/uninorm/test-u8-nfc.c: Likewise.
25218         * tests/uninorm/test-u8-nfd.c: Likewise.
25219         * tests/uninorm/test-u8-nfkc.c: Likewise.
25220         * tests/uninorm/test-u8-nfkd.c: Likewise.
25221         * tests/uninorm/test-u8-normcmp.c: Likewise.
25222         * tests/uninorm/test-u8-normcoll.c: Likewise.
25223         * tests/uninorm/test-u16-nfc.c: Likewise.
25224         * tests/uninorm/test-u16-nfd.c: Likewise.
25225         * tests/uninorm/test-u16-nfkc.c: Likewise.
25226         * tests/uninorm/test-u16-nfkd.c: Likewise.
25227         * tests/uninorm/test-u16-normcmp.c: Likewise.
25228         * tests/uninorm/test-u16-normcoll.c: Likewise.
25229         * tests/uninorm/test-u32-nfc.c: Likewise.
25230         * tests/uninorm/test-u32-nfd.c: Likewise.
25231         * tests/uninorm/test-u32-nfkc.c: Likewise.
25232         * tests/uninorm/test-u32-nfkd.c: Likewise.
25233         * tests/uninorm/test-u32-normalize-big.c: Likewise.
25234         * tests/uninorm/test-u32-normcmp.c: Likewise.
25235         * tests/uninorm/test-u32-normcoll.c: Likewise.
25236         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
25237         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
25238         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
25239         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
25240         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
25241         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
25242         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
25243         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
25244         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
25245         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
25246         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
25247         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
25248         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
25249         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
25250         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
25251         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
25252         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
25253         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
25254         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
25255         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
25256         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
25257         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
25258         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
25259         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
25260         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
25261         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
25262         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
25263         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
25264         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
25265         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
25266         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
25267         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
25268         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
25269         * tests/uniwidth/test-u8-strwidth.c: Likewise.
25270         * tests/uniwidth/test-u8-width.c: Likewise.
25271         * tests/uniwidth/test-u16-strwidth.c: Likewise.
25272         * tests/uniwidth/test-u16-width.c: Likewise.
25273         * tests/uniwidth/test-u32-strwidth.c: Likewise.
25274         * tests/uniwidth/test-u32-width.c: Likewise.
25275         * tests/uniwidth/test-uc_width.c: Likewise.
25276         * tests/uniwidth/test-uc_width2.c: Likewise.
25277         * modules/acl-tests (Files): Add tests/macros.h.
25278         * modules/areadlink-tests (Files): Likewise.
25279         * modules/areadlink-with-size-tests (Files): Likewise.
25280         * modules/areadlinkat-tests (Files): Likewise.
25281         * modules/areadlinkat-with-size-tests (Files): Likewise.
25282         * modules/argmatch-tests (Files): Likewise.
25283         * modules/argv-iter-tests (Files): Likewise.
25284         * modules/array-list-tests (Files): Likewise.
25285         * modules/array-mergesort-tests (Files): Likewise.
25286         * modules/array-oset-tests (Files): Likewise.
25287         * modules/avltree-list-tests (Files): Likewise.
25288         * modules/avltree-oset-tests (Files): Likewise.
25289         * modules/avltreehash-list-tests (Files): Likewise.
25290         * modules/base64-tests (Files): Likewise.
25291         * modules/binary-io-tests (Files): Likewise.
25292         * modules/bitrotate-tests (Files): Likewise.
25293         * modules/btowc-tests (Files): Likewise.
25294         * modules/byteswap-tests (Files): Likewise.
25295         * modules/c-ctype-tests (Files): Likewise.
25296         * modules/c-stack-tests (Files): Likewise.
25297         * modules/c-strcase-tests (Files): Likewise.
25298         * modules/c-strcasestr-tests (Files): Likewise.
25299         * modules/c-strstr-tests (Files): Likewise.
25300         * modules/canonicalize-lgpl-tests (Files): Likewise.
25301         * modules/canonicalize-tests (Files): Likewise.
25302         * modules/carray-list-tests (Files): Likewise.
25303         * modules/ceilf-tests (Files): Likewise.
25304         * modules/ceill-tests (Files): Likewise.
25305         * modules/chown-tests (Files): Likewise.
25306         * modules/cloexec-tests (Files): Likewise.
25307         * modules/copy-file-tests (Files): Likewise.
25308         * modules/count-one-bits-tests (Files): Likewise.
25309         * modules/dprintf-posix-tests (Files): Likewise.
25310         * modules/dup2-tests (Files): Likewise.
25311         * modules/dup3-tests (Files): Likewise.
25312         * modules/duplocale-tests (Files): Likewise.
25313         * modules/fbufmode-tests (Files): Likewise.
25314         * modules/fchdir-tests (Files): Likewise.
25315         * modules/fcntl-safer-tests (Files): Likewise.
25316         * modules/fcntl-tests (Files): Likewise.
25317         * modules/fdopendir-tests (Files): Likewise.
25318         * modules/fdutimensat-tests (Files): Likewise.
25319         * modules/fflush-tests (Files): Likewise.
25320         * modules/filevercmp-tests (Files): Likewise.
25321         * modules/flock-tests (Files): Likewise.
25322         * modules/floorf-tests (Files): Likewise.
25323         * modules/floorl-tests (Files): Likewise.
25324         * modules/fnmatch-tests (Files): Likewise.
25325         * modules/fopen-safer-tests (Files): Likewise.
25326         * modules/fopen-tests (Files): Likewise.
25327         * modules/fpending-tests (Files): Likewise.
25328         * modules/fprintf-posix-tests (Files): Likewise.
25329         * modules/fpurge-tests (Files): Likewise.
25330         * modules/freadable-tests (Files): Likewise.
25331         * modules/freadahead-tests (Files): Likewise.
25332         * modules/freading-tests (Files): Likewise.
25333         * modules/freadptr-tests (Files): Likewise.
25334         * modules/freadseek-tests (Files): Likewise.
25335         * modules/freopen-tests (Files): Likewise.
25336         * modules/frexp-nolibm-tests (Files): Likewise.
25337         * modules/frexp-tests (Files): Likewise.
25338         * modules/frexpl-nolibm-tests (Files): Likewise.
25339         * modules/frexpl-tests (Files): Likewise.
25340         * modules/fseek-tests (Files): Likewise.
25341         * modules/fseeko-tests (Files): Likewise.
25342         * modules/fstrcmp-tests (Files): Likewise.
25343         * modules/fsync-tests (Files): Likewise.
25344         * modules/ftell-tests (Files): Likewise.
25345         * modules/ftello-tests (Files): Likewise.
25346         * modules/func-tests (Files): Likewise.
25347         * modules/futimens-tests (Files): Likewise.
25348         * modules/fwritable-tests (Files): Likewise.
25349         * modules/fwriting-tests (Files): Likewise.
25350         * modules/getcwd-tests (Files): Likewise.
25351         * modules/getdate-tests (Files): Likewise.
25352         * modules/getdelim-tests (Files): Likewise.
25353         * modules/getdtablesize-tests (Files): Likewise.
25354         * modules/getgroups-tests (Files): Likewise.
25355         * modules/getline-tests (Files): Likewise.
25356         * modules/getndelim2-tests (Files): Likewise.
25357         * modules/glob-tests (Files): Likewise.
25358         * modules/hash-tests (Files): Likewise.
25359         * modules/i-ring-tests (Files): Likewise.
25360         * modules/iconv-tests (Files): Likewise.
25361         * modules/iconv_open-utf-tests (Files): Likewise.
25362         * modules/idpriv-drop-tests (Files): Likewise.
25363         * modules/idpriv-droptemp-tests (Files): Likewise.
25364         * modules/inet_ntop-tests (Files): Likewise.
25365         * modules/inet_pton-tests (Files): Likewise.
25366         * modules/isblank-tests (Files): Likewise.
25367         * modules/isfinite-tests (Files): Likewise.
25368         * modules/isinf-tests (Files): Likewise.
25369         * modules/isnan-tests (Files): Likewise.
25370         * modules/isnand-nolibm-tests (Files): Likewise.
25371         * modules/isnand-tests (Files): Likewise.
25372         * modules/isnanf-nolibm-tests (Files): Likewise.
25373         * modules/isnanf-tests (Files): Likewise.
25374         * modules/isnanl-nolibm-tests (Files): Likewise.
25375         * modules/isnanl-tests (Files): Likewise.
25376         * modules/lchown-tests (Files): Likewise.
25377         * modules/ldexpl-tests (Files): Likewise.
25378         * modules/link-tests (Files): Likewise.
25379         * modules/linkat-tests (Files): Likewise.
25380         * modules/linked-list-tests (Files): Likewise.
25381         * modules/linkedhash-list-tests (Files): Likewise.
25382         * modules/localename-tests (Files): Likewise.
25383         * modules/lseek-tests (Files): Likewise.
25384         * modules/lstat-tests (Files): Likewise.
25385         * modules/mbmemcasecmp-tests (Files): Likewise.
25386         * modules/mbmemcasecoll-tests (Files): Likewise.
25387         * modules/mbrtowc-tests (Files): Likewise.
25388         * modules/mbscasecmp-tests (Files): Likewise.
25389         * modules/mbscasestr-tests (Files): Likewise.
25390         * modules/mbschr-tests (Files): Likewise.
25391         * modules/mbscspn-tests (Files): Likewise.
25392         * modules/mbsinit-tests (Files): Likewise.
25393         * modules/mbsncasecmp-tests (Files): Likewise.
25394         * modules/mbsnrtowcs-tests (Files): Likewise.
25395         * modules/mbspbrk-tests (Files): Likewise.
25396         * modules/mbspcasecmp-tests (Files): Likewise.
25397         * modules/mbsrchr-tests (Files): Likewise.
25398         * modules/mbsrtowcs-tests (Files): Likewise.
25399         * modules/mbsspn-tests (Files): Likewise.
25400         * modules/mbsstr-tests (Files): Likewise.
25401         * modules/memchr-tests (Files): Likewise.
25402         * modules/memchr2-tests (Files): Likewise.
25403         * modules/memcmp-tests (Files): Likewise.
25404         * modules/memmem-tests (Files): Likewise.
25405         * modules/memrchr-tests (Files): Likewise.
25406         * modules/mkdir-tests (Files): Likewise.
25407         * modules/mkfifo-tests (Files): Likewise.
25408         * modules/mkfifoat-tests (Files): Likewise.
25409         * modules/mknod-tests (Files): Likewise.
25410         * modules/nanosleep-tests (Files): Likewise.
25411         * modules/nl_langinfo-tests (Files): Likewise.
25412         * modules/obstack-printf-tests (Files): Likewise.
25413         * modules/open-tests (Files): Likewise.
25414         * modules/openat-tests (Files): Likewise.
25415         * modules/pipe-filter-gi-tests (Files): Likewise.
25416         * modules/pipe-filter-ii-tests (Files): Likewise.
25417         * modules/pipe2-tests (Files): Likewise.
25418         * modules/popen-safer-tests (Files): Likewise.
25419         * modules/popen-tests (Files): Likewise.
25420         * modules/posixtm-tests (Files): Likewise.
25421         * modules/pread-tests (Files): Likewise.
25422         * modules/printf-frexp-tests (Files): Likewise.
25423         * modules/printf-frexpl-tests (Files): Likewise.
25424         * modules/printf-posix-tests (Files): Likewise.
25425         * modules/priv-set-tests (Files): Likewise.
25426         * modules/quotearg-tests (Files): Likewise.
25427         * modules/random_r-tests (Files): Likewise.
25428         * modules/rawmemchr-tests (Files): Likewise.
25429         * modules/rbtree-list-tests (Files): Likewise.
25430         * modules/rbtree-oset-tests (Files): Likewise.
25431         * modules/rbtreehash-list-tests (Files): Likewise.
25432         * modules/readlink-tests (Files): Likewise.
25433         * modules/remove-tests (Files): Likewise.
25434         * modules/rename-tests (Files): Likewise.
25435         * modules/renameat-tests (Files): Likewise.
25436         * modules/rmdir-tests (Files): Likewise.
25437         * modules/round-tests (Files): Likewise.
25438         * modules/roundf-tests (Files): Likewise.
25439         * modules/roundl-tests (Files): Likewise.
25440         * modules/safe-alloc-tests (Files): Likewise.
25441         * modules/setenv-tests (Files): Likewise.
25442         * modules/sigaction-tests (Files): Likewise.
25443         * modules/signbit-tests (Files): Likewise.
25444         * modules/sleep-tests (Files): Likewise.
25445         * modules/snprintf-posix-tests (Files): Likewise.
25446         * modules/snprintf-tests (Files): Likewise.
25447         * modules/sprintf-posix-tests (Files): Likewise.
25448         * modules/stat-tests (Files): Likewise.
25449         * modules/stat-time-tests (Files): Likewise.
25450         * modules/strcasestr-tests (Files): Likewise.
25451         * modules/strchrnul-tests (Files): Likewise.
25452         * modules/strerror-tests (Files): Likewise.
25453         * modules/striconv-tests (Files): Likewise.
25454         * modules/striconveh-tests (Files): Likewise.
25455         * modules/striconveha-tests (Files): Likewise.
25456         * modules/strsignal-tests (Files): Likewise.
25457         * modules/strstr-tests (Files): Likewise.
25458         * modules/strtod-tests (Files): Likewise.
25459         * modules/strverscmp-tests (Files): Likewise.
25460         * modules/symlink-tests (Files): Likewise.
25461         * modules/symlinkat-tests (Files): Likewise.
25462         * modules/trunc-tests (Files): Likewise.
25463         * modules/truncf-tests (Files): Likewise.
25464         * modules/truncl-tests (Files): Likewise.
25465         * modules/uname-tests (Files): Likewise.
25466         * modules/unicase/cased-tests (Files): Likewise.
25467         * modules/unicase/ignorable-tests (Files): Likewise.
25468         * modules/unicase/locale-language-tests (Files): Likewise.
25469         * modules/unicase/tolower-tests (Files): Likewise.
25470         * modules/unicase/totitle-tests (Files): Likewise.
25471         * modules/unicase/toupper-tests (Files): Likewise.
25472         * modules/unicase/u8-casecmp-tests (Files): Likewise.
25473         * modules/unicase/u8-casecoll-tests (Files): Likewise.
25474         * modules/unicase/u8-casefold-tests (Files): Likewise.
25475         * modules/unicase/u8-is-cased-tests (Files): Likewise.
25476         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
25477         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
25478         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
25479         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
25480         * modules/unicase/u8-tolower-tests (Files): Likewise.
25481         * modules/unicase/u8-totitle-tests (Files): Likewise.
25482         * modules/unicase/u8-toupper-tests (Files): Likewise.
25483         * modules/unicase/u16-casecmp-tests (Files): Likewise.
25484         * modules/unicase/u16-casecoll-tests (Files): Likewise.
25485         * modules/unicase/u16-casefold-tests (Files): Likewise.
25486         * modules/unicase/u16-is-cased-tests (Files): Likewise.
25487         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
25488         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
25489         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
25490         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
25491         * modules/unicase/u16-tolower-tests (Files): Likewise.
25492         * modules/unicase/u16-totitle-tests (Files): Likewise.
25493         * modules/unicase/u16-toupper-tests (Files): Likewise.
25494         * modules/unicase/u32-casecmp-tests (Files): Likewise.
25495         * modules/unicase/u32-casecoll-tests (Files): Likewise.
25496         * modules/unicase/u32-casefold-tests (Files): Likewise.
25497         * modules/unicase/u32-is-cased-tests (Files): Likewise.
25498         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
25499         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
25500         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
25501         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
25502         * modules/unicase/u32-tolower-tests (Files): Likewise.
25503         * modules/unicase/u32-totitle-tests (Files): Likewise.
25504         * modules/unicase/u32-toupper-tests (Files): Likewise.
25505         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
25506         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
25507         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
25508         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
25509         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
25510         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
25511         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
25512         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
25513         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
25514         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
25515         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
25516         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
25517         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
25518         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
25519         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
25520         * modules/unictype/bidicategory-name-tests (Files): Likewise.
25521         * modules/unictype/bidicategory-of-tests (Files): Likewise.
25522         * modules/unictype/bidicategory-test-tests (Files): Likewise.
25523         * modules/unictype/block-list-tests (Files): Likewise.
25524         * modules/unictype/block-of-tests (Files): Likewise.
25525         * modules/unictype/block-test-tests (Files): Likewise.
25526         * modules/unictype/category-C-tests (Files): Likewise.
25527         * modules/unictype/category-Cc-tests (Files): Likewise.
25528         * modules/unictype/category-Cf-tests (Files): Likewise.
25529         * modules/unictype/category-Cn-tests (Files): Likewise.
25530         * modules/unictype/category-Co-tests (Files): Likewise.
25531         * modules/unictype/category-Cs-tests (Files): Likewise.
25532         * modules/unictype/category-L-tests (Files): Likewise.
25533         * modules/unictype/category-Ll-tests (Files): Likewise.
25534         * modules/unictype/category-Lm-tests (Files): Likewise.
25535         * modules/unictype/category-Lo-tests (Files): Likewise.
25536         * modules/unictype/category-Lt-tests (Files): Likewise.
25537         * modules/unictype/category-Lu-tests (Files): Likewise.
25538         * modules/unictype/category-M-tests (Files): Likewise.
25539         * modules/unictype/category-Mc-tests (Files): Likewise.
25540         * modules/unictype/category-Me-tests (Files): Likewise.
25541         * modules/unictype/category-Mn-tests (Files): Likewise.
25542         * modules/unictype/category-N-tests (Files): Likewise.
25543         * modules/unictype/category-Nd-tests (Files): Likewise.
25544         * modules/unictype/category-Nl-tests (Files): Likewise.
25545         * modules/unictype/category-No-tests (Files): Likewise.
25546         * modules/unictype/category-P-tests (Files): Likewise.
25547         * modules/unictype/category-Pc-tests (Files): Likewise.
25548         * modules/unictype/category-Pd-tests (Files): Likewise.
25549         * modules/unictype/category-Pe-tests (Files): Likewise.
25550         * modules/unictype/category-Pf-tests (Files): Likewise.
25551         * modules/unictype/category-Pi-tests (Files): Likewise.
25552         * modules/unictype/category-Po-tests (Files): Likewise.
25553         * modules/unictype/category-Ps-tests (Files): Likewise.
25554         * modules/unictype/category-S-tests (Files): Likewise.
25555         * modules/unictype/category-Sc-tests (Files): Likewise.
25556         * modules/unictype/category-Sk-tests (Files): Likewise.
25557         * modules/unictype/category-Sm-tests (Files): Likewise.
25558         * modules/unictype/category-So-tests (Files): Likewise.
25559         * modules/unictype/category-Z-tests (Files): Likewise.
25560         * modules/unictype/category-Zl-tests (Files): Likewise.
25561         * modules/unictype/category-Zp-tests (Files): Likewise.
25562         * modules/unictype/category-Zs-tests (Files): Likewise.
25563         * modules/unictype/category-and-not-tests (Files): Likewise.
25564         * modules/unictype/category-and-tests (Files): Likewise.
25565         * modules/unictype/category-byname-tests (Files): Likewise.
25566         * modules/unictype/category-name-tests (Files): Likewise.
25567         * modules/unictype/category-none-tests (Files): Likewise.
25568         * modules/unictype/category-of-tests (Files): Likewise.
25569         * modules/unictype/category-or-tests (Files): Likewise.
25570         * modules/unictype/category-test-withtable-tests (Files): Likewise.
25571         * modules/unictype/combining-class-tests (Files): Likewise.
25572         * modules/unictype/ctype-alnum-tests (Files): Likewise.
25573         * modules/unictype/ctype-alpha-tests (Files): Likewise.
25574         * modules/unictype/ctype-blank-tests (Files): Likewise.
25575         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
25576         * modules/unictype/ctype-digit-tests (Files): Likewise.
25577         * modules/unictype/ctype-graph-tests (Files): Likewise.
25578         * modules/unictype/ctype-lower-tests (Files): Likewise.
25579         * modules/unictype/ctype-print-tests (Files): Likewise.
25580         * modules/unictype/ctype-punct-tests (Files): Likewise.
25581         * modules/unictype/ctype-space-tests (Files): Likewise.
25582         * modules/unictype/ctype-upper-tests (Files): Likewise.
25583         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
25584         * modules/unictype/decimal-digit-tests (Files): Likewise.
25585         * modules/unictype/digit-tests (Files): Likewise.
25586         * modules/unictype/mirror-tests (Files): Likewise.
25587         * modules/unictype/numeric-tests (Files): Likewise.
25588         * modules/unictype/property-alphabetic-tests (Files): Likewise.
25589         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
25590         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
25591         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
25592         Likewise.
25593         * modules/unictype/property-bidi-block-separator-tests (Files):
25594         Likewise.
25595         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
25596         Likewise.
25597         * modules/unictype/property-bidi-common-separator-tests (Files):
25598         Likewise.
25599         * modules/unictype/property-bidi-control-tests (Files): Likewise.
25600         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
25601         Likewise.
25602         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
25603         Likewise.
25604         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
25605         Likewise.
25606         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
25607         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
25608         Likewise.
25609         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
25610         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
25611         Likewise.
25612         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
25613         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
25614         * modules/unictype/property-bidi-segment-separator-tests (Files):
25615         Likewise.
25616         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
25617         * modules/unictype/property-byname-tests (Files): Likewise.
25618         * modules/unictype/property-combining-tests (Files): Likewise.
25619         * modules/unictype/property-composite-tests (Files): Likewise.
25620         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
25621         * modules/unictype/property-dash-tests (Files): Likewise.
25622         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
25623         * modules/unictype/property-default-ignorable-code-point-tests (Files):
25624         Likewise.
25625         * modules/unictype/property-deprecated-tests (Files): Likewise.
25626         * modules/unictype/property-diacritic-tests (Files): Likewise.
25627         * modules/unictype/property-extender-tests (Files): Likewise.
25628         * modules/unictype/property-format-control-tests (Files): Likewise.
25629         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
25630         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
25631         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
25632         * modules/unictype/property-hex-digit-tests (Files): Likewise.
25633         * modules/unictype/property-hyphen-tests (Files): Likewise.
25634         * modules/unictype/property-id-continue-tests (Files): Likewise.
25635         * modules/unictype/property-id-start-tests (Files): Likewise.
25636         * modules/unictype/property-ideographic-tests (Files): Likewise.
25637         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
25638         * modules/unictype/property-ids-trinary-operator-tests (Files):
25639         Likewise.
25640         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
25641         * modules/unictype/property-iso-control-tests (Files): Likewise.
25642         * modules/unictype/property-join-control-tests (Files): Likewise.
25643         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
25644         * modules/unictype/property-line-separator-tests (Files): Likewise.
25645         * modules/unictype/property-logical-order-exception-tests (Files):
25646         Likewise.
25647         * modules/unictype/property-lowercase-tests (Files): Likewise.
25648         * modules/unictype/property-math-tests (Files): Likewise.
25649         * modules/unictype/property-non-break-tests (Files): Likewise.
25650         * modules/unictype/property-not-a-character-tests (Files): Likewise.
25651         * modules/unictype/property-numeric-tests (Files): Likewise.
25652         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
25653         * modules/unictype/property-other-default-ignorable-code-point-tests
25654         (Files): Likewise.
25655         * modules/unictype/property-other-grapheme-extend-tests (Files):
25656         Likewise.
25657         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
25658         * modules/unictype/property-other-id-start-tests (Files): Likewise.
25659         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
25660         * modules/unictype/property-other-math-tests (Files): Likewise.
25661         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
25662         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
25663         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
25664         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
25665         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
25666         * modules/unictype/property-private-use-tests (Files): Likewise.
25667         * modules/unictype/property-punctuation-tests (Files): Likewise.
25668         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
25669         * modules/unictype/property-radical-tests (Files): Likewise.
25670         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
25671         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
25672         * modules/unictype/property-space-tests (Files): Likewise.
25673         * modules/unictype/property-terminal-punctuation-tests (Files):
25674         Likewise.
25675         * modules/unictype/property-test-tests (Files): Likewise.
25676         * modules/unictype/property-titlecase-tests (Files): Likewise.
25677         * modules/unictype/property-unassigned-code-value-tests (Files):
25678         Likewise.
25679         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
25680         * modules/unictype/property-uppercase-tests (Files): Likewise.
25681         * modules/unictype/property-variation-selector-tests (Files): Likewise.
25682         * modules/unictype/property-white-space-tests (Files): Likewise.
25683         * modules/unictype/property-xid-continue-tests (Files): Likewise.
25684         * modules/unictype/property-xid-start-tests (Files): Likewise.
25685         * modules/unictype/property-zero-width-tests (Files): Likewise.
25686         * modules/unictype/scripts-tests (Files): Likewise.
25687         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
25688         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
25689         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
25690         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
25691         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
25692         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
25693         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
25694         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
25695         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
25696         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
25697         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
25698         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
25699         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
25700         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
25701         * modules/uninorm/composition-tests (Files): Likewise.
25702         * modules/uninorm/decomposing-form-tests (Files): Likewise.
25703         * modules/uninorm/decomposition-tests (Files): Likewise.
25704         * modules/uninorm/filter-tests (Files): Likewise.
25705         * modules/uninorm/nfc-tests (Files): Likewise.
25706         * modules/uninorm/nfd-tests (Files): Likewise.
25707         * modules/uninorm/nfkc-tests (Files): Likewise.
25708         * modules/uninorm/nfkd-tests (Files): Likewise.
25709         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
25710         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
25711         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
25712         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
25713         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
25714         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
25715         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
25716         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
25717         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
25718         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
25719         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
25720         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
25721         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
25722         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
25723         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
25724         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
25725         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
25726         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
25727         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
25728         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
25729         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
25730         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
25731         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
25732         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
25733         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
25734         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
25735         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
25736         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
25737         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
25738         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
25739         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
25740         * modules/uniwidth/u8-width-tests (Files): Likewise.
25741         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
25742         * modules/uniwidth/u16-width-tests (Files): Likewise.
25743         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
25744         * modules/uniwidth/u32-width-tests (Files): Likewise.
25745         * modules/uniwidth/width-tests (Files): Likewise.
25746         * modules/unlink-tests (Files): Likewise.
25747         * modules/unsetenv-tests (Files): Likewise.
25748         * modules/usleep-tests (Files): Likewise.
25749         * modules/utimens-tests (Files): Likewise.
25750         * modules/utimensat-tests (Files): Likewise.
25751         * modules/vasnprintf-posix-tests (Files): Likewise.
25752         * modules/vasnprintf-tests (Files): Likewise.
25753         * modules/vasprintf-posix-tests (Files): Likewise.
25754         * modules/vasprintf-tests (Files): Likewise.
25755         * modules/vdprintf-posix-tests (Files): Likewise.
25756         * modules/vfprintf-posix-tests (Files): Likewise.
25757         * modules/vprintf-posix-tests (Files): Likewise.
25758         * modules/vsnprintf-posix-tests (Files): Likewise.
25759         * modules/vsnprintf-tests (Files): Likewise.
25760         * modules/vsprintf-posix-tests (Files): Likewise.
25761         * modules/wcrtomb-tests (Files): Likewise.
25762         * modules/wcsnrtombs-tests (Files): Likewise.
25763         * modules/wcsrtombs-tests (Files): Likewise.
25764         * modules/wctype-tests (Files): Likewise.
25765         * modules/wcwidth-tests (Files): Likewise.
25766         * modules/xmemdup0-tests (Files): Likewise.
25767         * modules/xprintf-posix-tests (Files): Likewise.
25768         * modules/xvasprintf-tests (Files): Likewise.
25769
25770 2009-12-24  Eric Blake  <ebb9@byu.net>
25771
25772         test-nanosleep: fix typo
25773         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
25774         patch.
25775         Reported by Bruno Haible.
25776
25777 2009-12-24  Bruno Haible  <bruno@clisp.org>
25778
25779         Reduce namespace pollution on glibc systems.
25780         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
25781         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
25782         systems.
25783         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
25784         <getopt.h> on glibc systems.
25785         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
25786         systems.
25787         * lib/fcntl.c: Include <unistd.h> here instead.
25788
25789 2009-12-24  Bruno Haible  <bruno@clisp.org>
25790
25791         * lib/stdlib.in.h (includes): Fix typo in today's commit.
25792
25793 2009-12-24  Eric Blake  <ebb9@byu.net>
25794
25795         tests: add signature checks
25796         * tests/signature.h (SIGNATURE_CHECK): New file.
25797         * modules/atexit-tests (Files): Use it.
25798         * modules/btowc-tests (Files): Likewise.
25799         * modules/canonicalize-lgpl-tests (Files): Likewise.
25800         * modules/ceilf-tests (Files): Likewise.
25801         * modules/ceill-tests (Files): Likewise.
25802         * modules/chown-tests (Files): Likewise.
25803         * modules/dprintf-posix-tests (Files): Likewise.
25804         * modules/dup2-tests (Files): Likewise.
25805         * modules/dup3-tests (Files): Likewise.
25806         * modules/duplocale-tests (Files): Likewise.
25807         * modules/fchdir-tests (Files): Likewise.
25808         * modules/fcntl-tests (Files): Likewise.
25809         * modules/fdopendir-tests (Files): Likewise.
25810         * modules/fflush-tests (Files): Likewise.
25811         * modules/flock-tests (Files): Likewise.
25812         * modules/floorf-tests (Files): Likewise.
25813         * modules/floorl-tests (Files): Likewise.
25814         * modules/fnmatch-tests (Files): Likewise.
25815         * modules/fopen-tests (Files): Likewise.
25816         * modules/fprintf-posix-tests (Files): Likewise.
25817         * modules/freopen-tests (Files): Likewise.
25818         * modules/frexp-nolibm-tests (Files): Likewise.
25819         * modules/frexp-tests (Files): Likewise.
25820         * modules/frexpl-nolibm-tests (Files): Likewise.
25821         * modules/frexpl-tests (Files): Likewise.
25822         * modules/fseek-tests (Files): Likewise.
25823         * modules/fseeko-tests (Files): Likewise.
25824         * modules/fsync-tests (Files): Likewise.
25825         * modules/ftell-tests (Files): Likewise.
25826         * modules/ftello-tests (Files): Likewise.
25827         * modules/futimens-tests (Files): Likewise.
25828         * modules/getaddrinfo-tests (Files): Likewise.
25829         * modules/getcwd-tests (Files): Likewise.
25830         * modules/getdelim-tests (Files): Likewise.
25831         * modules/getdtablesize-tests (Files): Likewise.
25832         * modules/getgroups-tests (Files): Likewise.
25833         * modules/gethostname-tests (Files): Likewise.
25834         * modules/getline-tests (Files): Likewise.
25835         * modules/getopt-posix-tests (Files): Likewise.
25836         * modules/gettimeofday-tests (Files): Likewise.
25837         * modules/glob-tests (Files): Likewise.
25838         * modules/iconv-tests (Files): Likewise.
25839         * modules/inet_ntop-tests (Files): Likewise.
25840         * modules/inet_pton-tests (Files): Likewise.
25841         * modules/isblank-tests (Files): Likewise.
25842         * modules/lchown-tests (Files): Likewise.
25843         * modules/ldexpl-tests (Files): Likewise.
25844         * modules/link-tests (Files): Likewise.
25845         * modules/linkat-tests (Files): Likewise.
25846         * modules/lseek-tests (Files): Likewise.
25847         * modules/lstat-tests (Files): Likewise.
25848         * modules/mbrtowc-tests (Files): Likewise.
25849         * modules/mbsinit-tests (Files): Likewise.
25850         * modules/mbsnrtowcs-tests (Files): Likewise.
25851         * modules/mbsrtowcs-tests (Files): Likewise.
25852         * modules/memchr-tests (Files): Likewise.
25853         * modules/memcmp-tests (Files): Likewise.
25854         * modules/memmem-tests (Files): Likewise.
25855         * modules/memrchr-tests (Files): Likewise.
25856         * modules/mkdir-tests (Files): Likewise.
25857         * modules/mkfifo-tests (Files): Likewise.
25858         * modules/mkfifoat-tests (Files): Likewise.
25859         * modules/mknod-tests (Files): Likewise.
25860         * modules/nanosleep-tests (Files): Likewise.
25861         * modules/nl_langinfo-tests (Files): Likewise.
25862         * modules/obstack-printf-tests (Files): Likewise.
25863         * modules/open-tests (Files): Likewise.
25864         * modules/openat-tests (Files): Likewise.
25865         * modules/perror-tests (Files): Likewise.
25866         * modules/pipe2-tests (Files): Likewise.
25867         * modules/poll-tests (Files): Likewise.
25868         * modules/popen-tests (Files): Likewise.
25869         * modules/posix_spawn-tests (Files): Likewise.
25870         * modules/posix_spawnp-tests (Files): Likewise.
25871         * modules/pread-tests (Files): Likewise.
25872         * modules/printf-posix-tests (Files): Likewise.
25873         * modules/pty-tests (Files): Likewise.
25874         * modules/random_r-tests (Files): Likewise.
25875         * modules/rawmemchr-tests (Files): Likewise.
25876         * modules/readlink-tests (Files): Likewise.
25877         * modules/remove-tests (Files): Likewise.
25878         * modules/rename-tests (Files): Likewise.
25879         * modules/renameat-tests (Files): Likewise.
25880         * modules/rmdir-tests (Files): Likewise.
25881         * modules/round-tests (Files): Likewise.
25882         * modules/roundf-tests (Files): Likewise.
25883         * modules/roundl-tests (Files): Likewise.
25884         * modules/select-tests (Files): Likewise.
25885         * modules/setenv-tests (Files): Likewise.
25886         * modules/sigaction-tests (Files): Likewise.
25887         * modules/sleep-tests (Files): Likewise.
25888         * modules/snprintf-posix-tests (Files): Likewise.
25889         * modules/snprintf-tests (Files): Likewise.
25890         * modules/sprintf-posix-tests (Files): Likewise.
25891         * modules/stat-tests (Files): Likewise.
25892         * modules/strcasestr-tests (Files): Likewise.
25893         * modules/strchrnul-tests (Files): Likewise.
25894         * modules/strerror-tests (Files): Likewise.
25895         * modules/strsignal-tests (Files): Likewise.
25896         * modules/strstr-tests (Files): Likewise.
25897         * modules/strtod-tests (Files): Likewise.
25898         * modules/strverscmp-tests (Files): Likewise.
25899         * modules/symlink-tests (Files): Likewise.
25900         * modules/symlinkat-tests (Files): Likewise.
25901         * modules/times-tests (Files): Likewise.
25902         * modules/trunc-tests (Files): Likewise.
25903         * modules/truncf-tests (Files): Likewise.
25904         * modules/truncl-tests (Files): Likewise.
25905         * modules/tsearch-tests (Files): Likewise.
25906         * modules/uname-tests (Files): Likewise.
25907         * modules/unlink-tests (Files): Likewise.
25908         * modules/unsetenv-tests (Files): Likewise.
25909         * modules/usleep-tests (Files): Likewise.
25910         * modules/utimensat-tests (Files): Likewise.
25911         * modules/vasprintf-tests (Files): Likewise.
25912         * modules/vdprintf-posix-tests (Files): Likewise.
25913         * modules/vfprintf-posix-tests (Files): Likewise.
25914         * modules/vprintf-posix-tests (Files): Likewise.
25915         * modules/vsnprintf-posix-tests (Files): Likewise.
25916         * modules/vsnprintf-tests (Files): Likewise.
25917         * modules/vsprintf-posix-tests (Files): Likewise.
25918         * modules/wcrtomb-tests (Files): Likewise.
25919         * modules/wcsnrtombs-tests (Files): Likewise.
25920         * modules/wcsrtombs-tests (Files): Likewise.
25921         * modules/wcwidth-tests (Files): Likewise.
25922         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
25923         * tests/test-isinf.c (isinf): Likewise.
25924         * tests/test-isnan.c (isnan): Likewise.
25925         * tests/test-signbit.c (signbit): Likewise.
25926         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
25927         declaration, either as macro or with correct signature.
25928         (select): Ensure function under test is declared with correct
25929         signature in correct header.
25930         * tests/test-atexit.c (atexit): Likewise.
25931         * tests/test-btowc.c (btowc): Likewise.
25932         * tests/test-canonicalize-lgpl.c (realpath)
25933         (canonicalize_file_name): Likewise.
25934         * tests/test-ceilf1.c (ceilf): Likewise.
25935         * tests/test-ceill.c (ceill): Likewise.
25936         * tests/test-chown.c (chown): Likewise.
25937         * tests/test-dprintf-posix.c (dprintf): Likewise.
25938         * tests/test-dup2.c (dup2): Likewise.
25939         * tests/test-dup3.c (dup3): Likewise.
25940         * tests/test-duplocale.c (duplocale): Likewise.
25941         * tests/test-fchdir.c (fchdir): Likewise.
25942         * tests/test-fchownat.c (fchownat): Likewise.
25943         * tests/test-fcntl.c (fcntl): Likewise.
25944         * tests/test-fdopendir.c (fdopendir): Likewise.
25945         * tests/test-fflush.c (fflush): Likewise.
25946         * tests/test-flock.c (flock): Likewise.
25947         * tests/test-floorf1.c (floorf): Likewise.
25948         * tests/test-floorl.c (floorl): Likewise.
25949         * tests/test-fnmatch.c (fnmatch): Likewise.
25950         * tests/test-fopen.c (fopen): Likewise.
25951         * tests/test-fprintf-posix.c (fprintf): Likewise.
25952         * tests/test-freopen.c (freopen): Likewise.
25953         * tests/test-frexp.c (frexp): Likewise.
25954         * tests/test-frexpl.c (frexpl): Likewise.
25955         * tests/test-fseek.c (fseek): Likewise.
25956         * tests/test-fseeko.c (fseeko): Likewise.
25957         * tests/test-fstatat.c (fstatat): Likewise.
25958         * tests/test-fsync.c (fsync): Likewise.
25959         * tests/test-ftell.c (ftell): Likewise.
25960         * tests/test-ftello.c (ftello): Likewise.
25961         * tests/test-futimens.c (futimens): Likewise.
25962         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
25963         (gai_strerror): Likewise.
25964         * tests/test-getcwd.c (getcwd): Likewise.
25965         * tests/test-getdelim.c (getdelim): Likewise.
25966         * tests/test-getdtablesize.c (getdtablesize): Likewise.
25967         * tests/test-getgroups.c (getgroups): Likewise.
25968         * tests/test-gethostname.c (gethostname): Likewise.
25969         * tests/test-getline.c (getline): Likewise.
25970         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
25971         Likewise.
25972         * tests/test-gettimeofday.c (gettimeofday): Likewise.
25973         * tests/test-glob.c (glob, globfree): Likewise.
25974         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
25975         * tests/test-inet_ntop.c (inet_ntop): Likewise.
25976         * tests/test-inet_pton.c (inet_pton): Likewise.
25977         * tests/test-isblank.c (isblank): Likewise.
25978         * tests/test-lchown.c (lchown): Likewise.
25979         * tests/test-ldexpl.c (ldexpl): Likewise.
25980         * tests/test-link.c (link): Likewise.
25981         * tests/test-linkat.c (linkat): Likewise.
25982         * tests/test-lseek.c (lseek): Likewise.
25983         * tests/test-lstat.c (lstat): Likewise.
25984         * tests/test-mbrtowc.c (mbrtowc): Likewise.
25985         * tests/test-mbsinit.c (mbsinit): Likewise.
25986         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
25987         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
25988         * tests/test-memchr.c (memchr): Likewise.
25989         * tests/test-memcmp.c (memcmp): Likewise.
25990         * tests/test-memmem.c (memmem): Likewise.
25991         * tests/test-memrchr.c (memrchr): Likewise.
25992         * tests/test-mkdir.c (mkdir): Likewise.
25993         * tests/test-mkdirat.c (mkdirat): Likewise.
25994         * tests/test-mkfifo.c (mkfifo): Likewise.
25995         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
25996         * tests/test-mknod.c (mknod): Likewise.
25997         * tests/test-nanosleep.c (nanosleep): Likewise.
25998         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
25999         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
26000         Likewise.
26001         * tests/test-open.c (open): Likewise.
26002         * tests/test-openat.c (openat): Likewise.
26003         * tests/test-perror.c (perror): Likewise.
26004         * tests/test-pipe2.c (pipe2): Likewise.
26005         * tests/test-poll.c (poll): Likewise.
26006         * tests/test-popen.c (popen, pclose): Likewise.
26007         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
26008         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
26009         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
26010         (posix_spawn_file_actions_destroy)
26011         (posix_spawn_file_actions_addclose)
26012         (posix_spawn_file_actions_addopen)
26013         (posix_spawn_file_actions_adddup2): Likewise.
26014         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
26015         * tests/test-pread.c (pread): Likewise.
26016         * tests/test-printf-posix.c (printf): Likewise.
26017         * tests/test-pty.c (openpty, forkpty): Likewise.
26018         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
26019         (random_r): Likewise.
26020         * tests/test-rawmemchr.c (rawmemchr): Likewise.
26021         * tests/test-readlink.c (readlink): Likewise.
26022         * tests/test-remove.c (remove): Likewise.
26023         * tests/test-rename.c (rename): Likewise.
26024         * tests/test-renameat.c (renameat): Likewise.
26025         * tests/test-rmdir.c (rmdir): Likewise.
26026         * tests/test-round1.c (round): Likewise.
26027         * tests/test-roundf1.c (roundf): Likewise.
26028         * tests/test-roundl.c (roundl): Likewise.
26029         * tests/test-setenv.c (setenv): Likewise.
26030         * tests/test-sigaction.c (sigaction): Likewise.
26031         * tests/test-sleep.c (sleep): Likewise.
26032         * tests/test-snprintf.c (snprintf): Likewise.
26033         * tests/test-sprintf-posix.c (sprintf): Likewise.
26034         * tests/test-stat.c (stat): Likewise.
26035         * tests/test-stpncpy.c (stpncpy): Likewise.
26036         * tests/test-strcasestr.c (strcasestr): Likewise.
26037         * tests/test-strchrnul.c (strchrnul): Likewise.
26038         * tests/test-strerror.c (strerror): Likewise.
26039         * tests/test-strsignal.c (strsignal): Likewise.
26040         * tests/test-strstr.c (strstr): Likewise.
26041         * tests/test-strtod.c (strtod): Likewise.
26042         * tests/test-strverscmp.c (strverscmp): Likewise.
26043         * tests/test-symlink.c (symlink): Likewise.
26044         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
26045         * tests/test-times.c (times): Likewise.
26046         * tests/test-trunc1.c (trunc): Likewise.
26047         * tests/test-truncf1.c (truncf): Likewise.
26048         * tests/test-truncl.c (truncl): Likewise.
26049         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
26050         Likewise.
26051         * tests/test-uname.c (uname): Likewise.
26052         * tests/test-unlink.c (unlink): Likewise.
26053         * tests/test-unlinkat.c (unlinkat): Likewise.
26054         * tests/test-unsetenv.c (unsetenv): Likewise.
26055         * tests/test-usleep.c (usleep): Likewise.
26056         * tests/test-utimensat.c (utimensat): Likewise.
26057         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
26058         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
26059         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
26060         * tests/test-vprintf-posix.c (vprintf): Likewise.
26061         * tests/test-vsnprintf.c (vsnprintf): Likewise.
26062         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
26063         * tests/test-wcrtomb.c (wcrtomb): Likewise.
26064         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
26065         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
26066         * tests/test-wcwidth.c (wcwidth): Likewise.
26067
26068         build: pull in conditional headers during GNULIB_POSIXCHECK
26069         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
26070         definitions from any conditionally-included headers.
26071         * lib/stdlib.in.h (includes): Likewise.
26072         * lib/unistd.in.h (includes): Likewise.
26073
26074 2009-12-24  Bruno Haible  <bruno@clisp.org>
26075
26076         * tests/test-argv-iter.c: Include header file being tested immediately
26077         after config.h.
26078         * tests/test-base64.c: Likewise.
26079         * tests/test-flock.c: Likewise.
26080         * tests/test-fsync.c: Likewise.
26081         * tests/test-getdate.c: Likewise.
26082         * tests/test-getndelim2.c: Likewise.
26083         * tests/test-isfinite.c: Likewise.
26084         * tests/test-isinf.c: Likewise.
26085         * tests/test-strerror.c: Likewise.
26086         * tests/test-strsignal.c: Likewise.
26087
26088 2009-12-23  Eric Blake  <ebb9@byu.net>
26089
26090         unistd: work around cygwin bug
26091         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
26092         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
26093         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
26094
26095 2009-12-23  Bruno Haible  <bruno@clisp.org>
26096
26097         localename: More tests.
26098         * tests/test-localename.c (SIZEOF): New macro.
26099         (categories): New variable.
26100         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
26101         test_locale_name_default): Add test w.r.t. thread locale.
26102         (test_locale_name_thread): New function.
26103         (main): Invoke it.
26104
26105         localename: Make aware of thread locale.
26106         * lib/localename.h (gl_locale_name_thread): New declaration.
26107         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
26108         behaviour with respect to thread locale.
26109         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
26110         <langinfo.h>, glthread/lock.h.
26111         (SIZE_BITS): New macro.
26112         (string_hash): New function.
26113         (struct hash_node): New type.
26114         (HASH_TABLE_SIZE): New macro.
26115         (struniq_hash_table, struniq_lock): New variables.
26116         (struniq): New function.
26117         (gl_locale_name_thread): New function.
26118         (gl_locale_name): Invoke it.
26119         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
26120         * modules/localename (Depends-on): Add lock.
26121         Reported by Mike Gran <spk121@yahoo.com>.
26122
26123 2009-12-23  Eric Blake  <ebb9@byu.net>
26124
26125         va-args: new module
26126         * modules/va-args: New file.
26127         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
26128         * MODULES.html.sh (Core language properties): Mention it.
26129
26130         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
26131         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
26132         named alias for __attribute__((__unused__)).
26133         * lib/chown.c: Update client.
26134         * lib/fchmodat.c: Likewise.
26135         * lib/fts.c: Likewise.
26136         * lib/getdate.y: Likewise.
26137         * lib/getgroups.c: Likewise.
26138         * lib/getopt.c: Likewise.
26139         * lib/getugroups.c: Likewise.
26140         * lib/mkdir.c: Likewise.
26141         * lib/mkfifo.c: Likewise.
26142         * lib/mkfifoat.c: Likewise.
26143         * lib/mknod.c: Likewise.
26144         * lib/mknodat.c: Likewise.
26145         * lib/readlink.c: Likewise.
26146         * lib/se-context.in.h: Likewise.
26147         * lib/se-selinux.in.h: Likewise.
26148         * lib/sockets.c: Likewise.
26149         * lib/symlink.c: Likewise.
26150         * lib/symlinkat.c: Likewise.
26151         * lib/unicodeio.c: Likewise.
26152         * lib/unistr.h: Likewise.
26153         * tests/test-areadlink.c: Likewise.
26154         * tests/test-areadlinkat.c: Likewise.
26155         * tests/test-filenamecat.c: Likewise.
26156         * tests/test-fseeko.c: Likewise.
26157         * tests/test-ftello.c: Likewise.
26158         * tests/test-getdate.c: Likewise.
26159         * tests/test-getgroups.c: Likewise.
26160         * tests/test-gethostname.c: Likewise.
26161         * tests/test-quotearg.c: Likewise.
26162         * tests/test-version-etc.c: Likewise.
26163         * tests/test-xalloc-die.c: Likewise.
26164         * tests/test-xfprintf-posix.c: Likewise.
26165         * tests/test-xprintf-posix.c: Likewise.
26166         * tests/test-xvasprintf.c: Likewise.
26167
26168         tests: avoid compiler warnings
26169         * tests/test-fcntl.c (main): Delete unused parameters.
26170         * tests/test-freopen-safer.c (main): Likewise.
26171         * tests/test-xalloc-die.c (main): Mark unused parameters.
26172         * tests/test-fseeko.c (main): Likewise.
26173         * tests/test-ftello.c (main): Likewise.
26174         * tests/test-nanosleep.c (main): Avoid declaration warning.
26175         * tests/test-sleep.c (main): Likewise.
26176         * tests/test-unsetenv.c (main): Silence warning about string
26177         literal.
26178         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
26179
26180 2009-12-23  Bruno Haible  <bruno@clisp.org>
26181
26182         * tests/test-localename.c (test_locale_name): New function, extracted
26183         from main. Also test mixed situations.
26184         (test_locale_name_posix, test_locale_name_environ,
26185         test_locale_name_default): New functions.
26186         (main): Invoke them all.
26187         * modules/localename-tests (configure.ac): Test for newlocale.
26188
26189 2009-12-23  Bruno Haible  <bruno@clisp.org>
26190
26191         unistd: Ensure getcwd gets declared before being overridden.
26192         * lib/unistd.in.h: Conditionally include <io.h>.
26193
26194 2009-12-22  Bruno Haible  <bruno@clisp.org>
26195
26196         wchar: Diagnose broken combination of glibc and gcc versions and flags.
26197         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
26198         (gl_WCHAR_H): Invoke it.
26199         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
26200         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
26201         Reported by Karl Berry <karl@freefriends.org>.
26202
26203 2009-12-22  Eric Blake  <ebb9@byu.net>
26204
26205         math, unistd: avoid redundant includes
26206         * lib/math.in.h (isnan): No need to re-include <math.h>.
26207         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
26208
26209         getsubopt: work around cygwin bug
26210         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
26211         avoid conflicting with system getsubopt.
26212         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
26213         bug.
26214
26215         getopt: synchronize from glibc
26216         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
26217         parameter order.  Adjust all callers.
26218         (_getopt_internal_r, main): Adjust quoting in error messages.
26219         Drop considerations for outdated POSIX 1003.2 error message.
26220         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
26221         callers.
26222         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
26223
26224         test-getopt: test stderr behavior
26225         * modules/getopt-posix-tests (Depends-on): Add dup2.
26226         * tests/test-getopt.c (ASSERT): Avoid stderr.
26227         (main): Move stderr to a temporary file.
26228         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
26229         Instead, add parameter to inform caller if output occurred.
26230         (test_getopt): Adjust all existing tests to expect silence, and
26231         add new tests of leading ":".
26232         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
26233         glibc shortcomings with leading "-:" or "+:" in optstring.
26234         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26235         Likewise.
26236         * doc/posix-functions/getopt.texi (getopt): Likewise.
26237
26238         test-getopt: enhance test
26239         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
26240         supports optind=0.
26241         * tests/test-getopt.c (OPTIND_MIN): Move...
26242         * tests/test-getopt.h (OPTIND_MIN): ...here.
26243         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
26244         Require that optind=0 works, since modern BSD supports it in
26245         addition to optreset, and since coreutils expects it.
26246         (test_getopt_long_only): New test.
26247         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
26248         glibc shortcomings with 'W;', and enforcement of optind=0.
26249         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26250         Likewise.
26251
26252 2009-12-21  Bruno Haible  <bruno@clisp.org>
26253
26254         localename: Improvements for MacOS X and Cygwin.
26255         * lib/localename.h (gl_locale_name_environ): New declaration.
26256         * lib/localename.c (gl_locale_name_environ): New function, extracted from
26257         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
26258         (gl_locale_name_posix): Invoke it.
26259         (gl_locale_name_default): Add comments. Use Windows native API also on
26260         Cygwin.
26261
26262 2009-12-21  Bruno Haible  <bruno@clisp.org>
26263
26264         Update list of Win32 locale ids.
26265         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
26266         (LANG_SAMI): Renamed from LANG_SAAMI.
26267         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
26268         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
26269         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
26270         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
26271         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
26272         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
26273         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
26274         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
26275         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
26276         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
26277         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
26278         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
26279         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
26280         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
26281         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
26282         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
26283         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
26284         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
26285         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
26286         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
26287         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
26288         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
26289         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
26290         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
26291         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
26292         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
26293         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
26294         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
26295         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
26296         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
26297         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
26298         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
26299         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
26300         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
26301         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
26302         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
26303         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
26304         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
26305         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
26306         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
26307         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
26308         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
26309         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
26310         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
26311         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
26312         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
26313         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
26314         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
26315         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
26316         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
26317         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
26318         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
26319         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
26320         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
26321         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
26322         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
26323         Add more languages and countries for Sami, Sorbian. Add more countries
26324         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
26325         for Pashto. Change country for Syriac, Tswana.
26326
26327 2009-12-21  Eric Blake  <ebb9@byu.net>
26328
26329         test-utimens: avoid spurious failure
26330         * tests/test-chown.h (nap): Factor...
26331         * tests/nap.h: ...into new file.
26332         * tests/test-lchown.h (nap): Avoid duplication.
26333         * tests/test-utimens-common.h (nap): Use shared implementation,
26334         necessary on file systems with 1-second resolution.
26335         * modules/chown-tests (Files): Include new file.
26336         * modules/fdutimensat-tests (Files): Likewise.
26337         * modules/futimens-tests (Files): Likewise.
26338         * modules/lchown-tests (Files): Likewise.
26339         * modules/openat-tests (Files): Likewise.
26340         * modules/utimens-tests (Files): Likewise.
26341         * modules/utimensat-tests (Files): Likewise.
26342
26343 2009-12-19  Eric Blake  <ebb9@byu.net>
26344
26345         futimens, utimensat: work around Linux bug
26346         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
26347         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26348         * lib/utimensat.c (rpl_utimensat): Work around it.
26349         * lib/futimens.c (rpl_futimens): Adjust comment.
26350
26351         utimens: work around Linux ctime bug
26352         * lib/utimens.c (detect_ctime_bug): New helper function.
26353         (update_timespec): Differentiate between workaround needed for
26354         this bug vs. what is needed for systems that lack utimensat.
26355         (fdutimens, lutimens): Work around bug.
26356
26357         utimens: check for ctime update
26358         * tests/test-utimens-common.h (check_ctime): Define.
26359         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
26360         * tests/test-futimens.h (test_futimens): Likewise.
26361         * tests/test-lutimens.h (test_lutimens): Likewise.
26362         * doc/posix-functions/futimens.texi (futimens): Document the bug.
26363         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26364
26365 2009-12-19  Bruno Haible  <bruno@clisp.org>
26366
26367         dprintf-posix: Check against memory leak fixed on 2009-12-15.
26368         * tests/test-dprintf-posix2.sh: New file.
26369         * tests/test-dprintf-posix2.c: New file.
26370         * modules/dprintf-posix-tests (Files): Add them.
26371         (configure.ac): Check for getrlimit and setrlimit.
26372         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
26373
26374 2009-12-19  Bruno Haible  <bruno@clisp.org>
26375
26376         fprintf-posix: Check against memory leak fixed on 2009-12-15.
26377         * tests/test-fprintf-posix3.sh: New file.
26378         * tests/test-fprintf-posix3.c: New file.
26379         * modules/fprintf-posix-tests (Files): Add them.
26380         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
26381
26382 2009-12-19  Eric Blake  <ebb9@byu.net>
26383
26384         dirfd: fix prototype
26385         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
26386         * lib/dirfd.c (dirfd): Likewise.
26387
26388         canonicalize: reduce memory usage
26389         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
26390         allocation to size.
26391         Reported by Solar Designer <solar@openwall.com>.
26392
26393 2009-12-19  Bruno Haible  <bruno@clisp.org>
26394
26395         New module attribute 'Applicability'.
26396         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
26397         * gnulib-tool: New option --extract-applicability.
26398         (func_usage): Document it.
26399         (sed_extract_prog): Recognize it.
26400         (func_get_applicability): New function.
26401         (func_import): Generalize handling of 'link-warning' module.
26402         * modules/link-warning (Applicability): New section.
26403         * modules/arg-nonnull (Applicability): New section.
26404         Repoted by Simon Josefsson <simon@josefsson.org>.
26405
26406 2009-12-19  Bruno Haible  <bruno@clisp.org>
26407
26408         fflush: tweak
26409         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
26410         * lib/fseeko.c (rpl_fseeko): Likewise.
26411
26412 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
26413
26414         * lib/gl_list.h: Fix typo in comment.
26415
26416 2009-12-16  Eric Blake  <ebb9@byu.net>
26417
26418         fcntl: use to simplify other modules
26419         * modules/cloexec (Depends-on): Add fcntl.
26420         * modules/fchdir (Depends-on): Likewise.
26421         * modules/fd-safer-flag (Depends-on): Likewise.
26422         * modules/unistd-safer (Depends-on): Likewise.
26423         * modules/dup3 (configure.ac): Set module indicator.
26424         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
26425         missing.
26426         * lib/fchdir.c (_gl_register_dup): Fix comment.
26427         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
26428         * lib/dup-safer.c (dup_safer): Likewise.
26429         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
26430         * lib/dup3.c (dup3): Likewise.
26431         * tests/test-fchdir.c (main): Enhance test.
26432         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
26433
26434         fcntl: port portions of fcntl to mingw
26435         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
26436         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
26437         replacement for mingw.
26438         * modules/fcntl (Description): Update.
26439         (Depends-on): Add dup2.
26440         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
26441         * modules/fcntl-h (Makefile.am): Substitute it.
26442         * lib/fcntl.in.h (fcntl): Update declaration.
26443         (F_DUPFD, F_GETFD): New macros, when needed.
26444         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
26445         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
26446         * tests/test-fcntl.c (check_flags, main): Enhance test for items
26447         we now guarantee.
26448
26449         fcntl: work around cygwin bug in F_DUPFD
26450         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
26451         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
26452         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
26453         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
26454         * doc/posix-functions/fcntl.texi (fcntl): Document it.
26455
26456         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
26457         * modules/fcntl (Files): List new files.
26458         (configure.ac): Run a test.
26459         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
26460         * lib/fcntl.c (rpl_fcntl): Likewise.
26461         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
26462         (gl_FCNTL_H): Always replace fcntl.h.
26463         * modules/fcntl-h (Makefile.am): Substitute witnesses.
26464         * lib/fcntl.in.h (fcntl): Declare replacement.
26465         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
26466         needed, plus a witness.
26467         * doc/posix-functions/fcntl.texi (fcntl): Document this.
26468         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
26469         * tests/test-fcntl.c: New file.
26470         * modules/fcntl-tests: Likewise.
26471
26472         binary-io: avoid potential compilation warning
26473         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
26474         directives.
26475
26476         fflush: avoid compilation error on NetBSD
26477         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
26478         between off_t and fpos_t, since the latter is sometimes a struct.
26479         * lib/fseeko.c (rpl_fseeko): Likewise.
26480         Reported by Alexander Nasonov <alnsn@yandex.ru>.
26481
26482 2009-12-15  Eric Blake  <ebb9@byu.net>
26483
26484         fcntl-h, stdio, sys_ioctl: fix declarations
26485         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
26486         function must not take arguments.
26487         * lib/sys_ioctl.in.h (ioctl): Likewise.
26488         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
26489         (open): Add a link warning.
26490
26491 2009-12-15  Jim Meyering  <meyering@redhat.com>
26492
26493         areadlink, areadlink-with-size: relax license to LGPLv2+
26494         * modules/areadlink (License): Relax to LGPLv2+.
26495         * modules/areadlink-with-size (License): Likewise.
26496
26497 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
26498             Bruno Haible  <bruno@clisp.org>
26499
26500         *printf: Fix memory leak.
26501         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
26502         * lib/vfprintf.c (vfprintf): Likewise.
26503         * lib/dprintf.c (dprintf): Likewise.
26504         * lib/vdprintf.c (vdprintf): Likewise.
26505
26506 2009-12-14  Eric Blake  <ebb9@byu.net>
26507
26508         accept4: adjust module dependencies
26509         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
26510
26511         utimens: one more try at avoiding compiler warning
26512         * lib/utimens.c (lutimens): Lower scope of result.
26513
26514 2009-12-13  Bruno Haible  <bruno@clisp.org>
26515
26516         Move the malloc checking from module 'list' to new module 'xlist'.
26517         * modules/xlist: New file.
26518         * lib/gl_xlist.h: New file.
26519         * lib/gl_xlist.c: New file.
26520         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
26521         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
26522         gl_list_add_last, gl_list_add_before, gl_list_add_after,
26523         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
26524         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
26525         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
26526         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
26527         gl_sortedlist_nx_add): New declarations.
26528         (struct gl_list_implementation): Rename and change methods accordingly.
26529         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
26530         (gl_list_nx_create): Renamed from gl_list_create.
26531         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
26532         (gl_list_nx_set_at): Renamed from gl_list_set_at.
26533         (gl_list_nx_add_first): Renamed from gl_list_add_first.
26534         (gl_list_nx_add_last): Renamed from gl_list_add_last.
26535         (gl_list_nx_add_before): Renamed from gl_list_add_before.
26536         (gl_list_nx_add_after): Renamed from gl_list_add_after.
26537         (gl_list_nx_add_at): Renamed from gl_list_add_at.
26538         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
26539         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
26540         gl_list_create_empty.
26541         (gl_list_nx_create): Renamed from gl_list_create.
26542         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
26543         (gl_list_nx_set_at): Renamed from gl_list_set_at.
26544         (gl_list_nx_add_first): Renamed from gl_list_add_first.
26545         (gl_list_nx_add_last): Renamed from gl_list_add_last.
26546         (gl_list_nx_add_before): Renamed from gl_list_add_before.
26547         (gl_list_nx_add_after): Renamed from gl_list_add_after.
26548         (gl_list_nx_add_at): Renamed from gl_list_add_at.
26549         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
26550         * lib/gl_array_list.c: Don't include xalloc.h.
26551         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
26552         NULL upon out-of-memory.
26553         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
26554         out-of-memory.
26555         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
26556         Change return type to 'int'.
26557         (gl_array_nx_set_at): Renamed from gl_array_set_at.
26558         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
26559         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
26560         upon out-of-memory.
26561         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
26562         upon out-of-memory.
26563         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
26564         upon out-of-memory.
26565         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
26566         upon out-of-memory.
26567         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
26568         out-of-memory.
26569         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
26570         Update.
26571         (gl_array_list_implementation): Update.
26572         * lib/gl_carray_list.c: Don't include xalloc.h.
26573         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
26574         Return NULL upon out-of-memory.
26575         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
26576         out-of-memory.
26577         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
26578         Change return type to 'int'.
26579         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
26580         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
26581         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
26582         upon out-of-memory.
26583         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
26584         upon out-of-memory.
26585         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
26586         out-of-memory.
26587         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
26588         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
26589         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
26590         Update.
26591         (gl_carray_list_implementation): Update.
26592         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
26593         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
26594         gl_linked_create_empty. Return NULL upon out-of-memory.
26595         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
26596         out-of-memory.
26597         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
26598         Change return type to 'int'. Return -1 upon out-of-memory.
26599         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
26600         out-of-memory.
26601         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
26602         upon out-of-memory.
26603         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
26604         upon out-of-memory.
26605         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
26606         NULL upon out-of-memory.
26607         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
26608         upon out-of-memory.
26609         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
26610         out-of-memory.
26611         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
26612         Update.
26613         * lib/gl_linked_list.c: Don't include xalloc.h.
26614         (gl_linked_list_implementation): Update.
26615         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
26616         (add_to_bucket): Change return type to 'int'.
26617         (gl_linkedhash_list_implementation): Update.
26618         * lib/gl_anytree_list1.h (free_subtree): New function.
26619         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
26620         gl_tree_create_empty. Return NULL upon out-of-memory.
26621         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
26622         Change return type to 'int'. Return -1 upon out-of-memory.
26623         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
26624         out-of-memory.
26625         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
26626         (gl_tree_remove_node): New function, moved here from
26627         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
26628         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
26629         Update.
26630         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
26631         malloc, not xmalloc. Return NULL upon out-of-memory.
26632         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
26633         out-of-memory.
26634         (gl_tree_remove_node_from_tree): New function, extracted from
26635         gl_tree_remove_node.
26636         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
26637         upon out-of-memory.
26638         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
26639         out-of-memory.
26640         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
26641         upon out-of-memory.
26642         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
26643         upon out-of-memory.
26644         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
26645         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
26646         not xmalloc. Return NULL upon out-of-memory.
26647         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
26648         out-of-memory.
26649         (gl_tree_remove_node_from_tree): New function, extracted from
26650         gl_tree_remove_node.
26651         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
26652         upon out-of-memory.
26653         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
26654         out-of-memory.
26655         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
26656         upon out-of-memory.
26657         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
26658         upon out-of-memory.
26659         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
26660         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
26661         gl_anytree_list1.h before gl_anyavltree_list2.h.
26662         (gl_avltree_list_implementation): Update.
26663         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
26664         gl_anytree_list1.h before gl_anyavltree_list2.h.
26665         (gl_rbtree_list_implementation): Update.
26666         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
26667         Change return type to 'int'. Return -1 upon out-of-memory. Use
26668         __builtin_expect.
26669         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
26670         (gl_avltreehash_list_implementation): Update.
26671         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
26672         (gl_rbtreehash_list_implementation): Update.
26673         * modules/array-list (Depends-on): Remove xalloc.
26674         * modules/carray-list (Depends-on): Likewise.
26675         * modules/linked-list (Depends-on): Likewise.
26676         * modules/linkedhash-list (Depends-on): Likewise.
26677         * modules/avltree-list (Depends-on): Likewise.
26678         * modules/rbtree-list (Depends-on): Likewise.
26679         * modules/avltreehash-list (Depends-on): Likewise.
26680         * modules/rbtreehash-list (Depends-on): Likewise.
26681
26682         * modules/xsublist: New file.
26683         * lib/gl_xsublist.h: New file.
26684         * lib/gl_xsublist.c: New file.
26685         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
26686         (gl_sublist_nx_create): New declaration.
26687         * lib/gl_sublist.c: Don't include xalloc.h.
26688         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
26689         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
26690         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
26691         Change return type to 'int'. Return -1 upon out-of-memory.
26692         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
26693         upon out-of-memory.
26694         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
26695         NULL upon out-of-memory.
26696         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
26697         upon out-of-memory.
26698         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
26699         NULL upon out-of-memory.
26700         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
26701         NULL upon out-of-memory.
26702         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
26703         upon out-of-memory.
26704         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
26705         (gl_sublist_list_implementation): Update.
26706         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
26707         upon out-of-memory.
26708         * modules/sublist (Depends-on): Remove xalloc.
26709
26710         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
26711         * tests/test-carray_list.c: Likewise.
26712         * tests/test-linked_list.c: Likewise.
26713         * tests/test-linkedhash_list.c: Likewise.
26714         * tests/test-avltree_list.c: Likewise.
26715         * tests/test-rbtree_list.c: Likewise.
26716         * tests/test-avltreehash_list.c: Likewise.
26717         * tests/test-rbtreehash_list.c: Likewise.
26718         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
26719         * modules/carray-list-tests (Makefile.am): Likewise.
26720         * modules/linked-list-tests (Makefile.am): Likewise.
26721         * modules/linkedhash-list-tests (Makefile.am): Likewise.
26722         * modules/avltree-list-tests (Makefile.am): Likewise.
26723         * modules/rbtree-list-tests (Makefile.am): Likewise.
26724         * modules/avltreehash-list-tests (Makefile.am): Likewise.
26725         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
26726
26727         * NEWS: Mention the changes.
26728
26729         * lib/clean-temp.c: Include gl_xlist.h.
26730         * modules/clean-temp (Depends-on): Add xlist.
26731
26732         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
26733         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
26734
26735         * tests/test-array_oset.c: Include gl_xlist.h.
26736         * modules/array-oset-tests (Depends-on): Add xlist.
26737
26738         Reported by José E. Marchesi <jemarch@gnu.org>.
26739
26740 2009-12-13  Bruno Haible  <bruno@clisp.org>
26741
26742         Move the malloc checking from module 'oset' to new module 'xoset'.
26743         * modules/xoset: New file.
26744         * lib/gl_xoset.h: New file.
26745         * lib/gl_xoset.c: New file.
26746         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
26747         declarations.
26748         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
26749         (struct gl_oset_implementation): Rename and change methods accordingly.
26750         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
26751         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
26752         'int'. Mark as __warn_unused_result__.
26753         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
26754         gl_oset_create_empty.
26755         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
26756         'int'.
26757         * lib/gl_array_oset.c: Don't include xalloc.h.
26758         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
26759         malloc, not xmalloc.
26760         (grow): Change return type to 'int'. Don't call xalloc_die.
26761         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
26762         to 'int'.
26763         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
26764         'int'.
26765         (gl_array_oset_implementation): Update.
26766         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
26767         gl_tree_create_empty.
26768         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
26769         'int'.
26770         * lib/gl_avltree_oset.c: Don't include xalloc.h.
26771         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
26772         xmalloc.
26773         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
26774         not xmalloc.
26775         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
26776         xmalloc.
26777         (gl_avltree_oset_implementation): Update.
26778         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
26779         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
26780         xmalloc.
26781         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
26782         not xmalloc.
26783         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
26784         xmalloc.
26785         (gl_rbtree_oset_implementation): Update.
26786         * modules/array-oset (Depends-on): Remove xalloc.
26787         * modules/avltree-oset (Depends-on): Likewise.
26788         * modules/rbtree-oset (Depends-on): Likewise.
26789         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
26790         * tests/test-avltree_oset.c: Likewise.
26791         * tests/test-rbtree_oset.c: Likewise.
26792         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
26793         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
26794         * modules/rbtree-oset-tests (Makefile.am): Likewise.
26795         * NEWS: Mention the change.
26796
26797 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
26798
26799         maint.mk: allow a project to override release-prep commands
26800         * top/maint.mk (alpha, beta, stable): Move release-preparatory
26801         commands into a new rule.
26802         (release-prep): New rule.
26803         (release-prep-hook): New overridable variable.
26804
26805 2009-12-13  Bruno Haible  <bruno@clisp.org>
26806
26807         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
26808
26809 2009-12-13  Jim Meyering  <meyering@redhat.com>
26810
26811         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
26812         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
26813
26814 2009-12-12  Bruno Haible  <bruno@clisp.org>
26815
26816         duplocale: Tweak.
26817         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
26818
26819 2009-12-12  Karl Berry  <karl@gnu.org>
26820
26821         * config/srclist.txt (strtoll.c): tab changes, no more sync.
26822
26823 2009-12-12  Bruno Haible  <bruno@clisp.org>
26824
26825         * m4/po.m4: Undo incorrect untabification.
26826
26827 2009-12-12  Bruno Haible  <bruno@clisp.org>
26828
26829         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
26830         * modules/c-strtod (Depends-on): Add locale.
26831         * modules/c-strtold (Depends-on): Likewise.
26832
26833 2009-12-12  Bruno Haible  <bruno@clisp.org>
26834
26835         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
26836
26837 2009-12-11  Eric Blake  <ebb9@byu.net>
26838
26839         setenv: relax requirement in light of POSIX ruling
26840         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
26841         not NULL.
26842         * tests/test-setenv.c (main): Relax test.
26843         * tests/test-unsetenv.c (main): Likewise.
26844         * doc/posix-functions/setenv.texi (setenv): Document this.
26845         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
26846
26847 2009-12-11  Bruno Haible  <bruno@clisp.org>
26848
26849         New module 'fd-safer-flag'.
26850         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
26851         * lib/dup-safer.c (dup_safer_flag): Remove function.
26852         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
26853         * lib/fd-safer.c (fd_safer_flag): Remove function.
26854         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
26855         * modules/cloexec (configure.ac): Drop indicator macro.
26856         * modules/fd-safer-flag: New file.
26857         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
26858         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
26859         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
26860
26861 2009-12-11  Bruno Haible  <bruno@clisp.org>
26862
26863         Tests for module 'nl_langinfo'.
26864         * modules/nl_langinfo-tests: New file.
26865         * tests/test-nl_langinfo.sh: New file.
26866         * tests/test-nl_langinfo.c: New file.
26867
26868         New module 'nl_langinfo'.
26869         * lib/nl_langinfo.c: New file.
26870         * m4/nl_langinfo.m4: New file.
26871         * modules/nl_langinfo: New file.
26872         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
26873
26874 2009-12-11  Bruno Haible  <bruno@clisp.org>
26875
26876         Tests for module 'langinfo'.
26877         * modules/langinfo-tests: New file.
26878         * tests/test-langinfo.c: New file.
26879
26880         New module 'langinfo'.
26881         * lib/langinfo.in.h: New file.
26882         * m4/langinfo_h.m4: New file.
26883         * modules/langinfo: New file.
26884         * doc/posix-headers/langinfo.texi: Mention the new module.
26885
26886 2009-12-11  Bruno Haible  <bruno@clisp.org>
26887
26888         * lib/config.charset: Untabify.
26889
26890 2009-12-11  Bruno Haible  <bruno@clisp.org>
26891
26892         * modules/unistd-safer (configure.ac): Drop indicator macro.
26893
26894 2009-12-11  Bruno Haible  <bruno@clisp.org>
26895
26896         Move pipe2-safer code to its own file.
26897         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
26898         * lib/pipe-safer.c (pipe2_safer): Remove function.
26899         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
26900         (Makefile.am): Add it to lib_SOURCES.
26901
26902 2009-12-10  Bruno Haible  <bruno@clisp.org>
26903
26904         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
26905
26906 2009-12-10  Bruno Haible  <bruno@clisp.org>
26907
26908         Declare which arguments expect non-NULL values, for GCC and clang.
26909         * build-aux/arg-nonnull.h: New file.
26910         * modules/arg-nonnull: New file.
26911         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
26912         (inet_ntop, inet_pton): Use it.
26913         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
26914         (closedir, dirfd, opendir, scandir, alphasort): Use it.
26915         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
26916         (open, openat): Use it.
26917         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
26918         (fnmatch): Use it.
26919         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
26920         (getopt, getopt_long, getopt_long_only): Use it.
26921         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
26922         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
26923         Use it.
26924         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
26925         (iconv_open): Use it.
26926         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
26927         (strtoimax, strtoumax): Use it.
26928         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
26929         (duplocale): Use it.
26930         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
26931         (frexp, frexpl): Use it.
26932         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
26933         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
26934         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
26935         (tsearch, tfind, tdelete, twalk): Use it.
26936         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
26937         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26938         sigpending): Use it.
26939         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
26940         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26941         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26942         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26943         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26944         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26945         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26946         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26947         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26948         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26949         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26950         Use it.
26951         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
26952         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
26953         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
26954         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
26955         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
26956         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
26957         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
26958         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
26959         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
26960         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
26961         strtoull, unsetenv): Use it.
26962         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
26963         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26964         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26965         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
26966         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
26967         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
26968         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
26969         (strcasecmp, strncasecmp): Use it.
26970         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
26971         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
26972         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
26973         rpl_setsockopt): Use it.
26974         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
26975         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
26976         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
26977         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
26978         (gettimeofday): Use it.
26979         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
26980         (times): Use it.
26981         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
26982         (uname): Use it.
26983         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
26984         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
26985         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
26986         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
26987         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
26988         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
26989         unlinkat, write): Use it.
26990         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
26991         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
26992         * lib/argv-iter.h: Include arg-nonnull.h.
26993         (_ATTRIBUTE_NONNULL_): Remove macro.
26994         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
26995         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
26996         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
26997         optimization.
26998         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
26999         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
27000         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
27001         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
27002         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
27003         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
27004         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
27005         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
27006         * modules/arpa_inet (Depends-on): Add arg-nonnull.
27007         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
27008         * modules/dirent (Depends-on): Add arg-nonnull.
27009         (Makefile.am): Insert arg-nonnull.h into dirent.h.
27010         * modules/fcntl-h (Depends-on): Add arg-nonnull.
27011         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
27012         * modules/fnmatch (Depends-on): Add arg-nonnull.
27013         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
27014         * modules/getopt-posix (Depends-on): Add arg-nonnull.
27015         (Makefile.am): Insert arg-nonnull.h into getopt.h.
27016         * modules/glob (Depends-on): Add arg-nonnull.
27017         (Makefile.am): Insert arg-nonnull.h into glob.h.
27018         * modules/iconv_open (Depends-on): Add arg-nonnull.
27019         (Makefile.am): Insert arg-nonnull.h into iconv.h.
27020         * modules/inttypes (Depends-on): Add arg-nonnull.
27021         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
27022         * modules/locale (Depends-on): Add arg-nonnull.
27023         (Makefile.am): Insert arg-nonnull.h into locale.h.
27024         * modules/math (Depends-on): Add arg-nonnull.
27025         (Makefile.am): Insert arg-nonnull.h into math.h.
27026         * modules/netdb (Depends-on): Add arg-nonnull.
27027         (Makefile.am): Insert arg-nonnull.h into netdb.h.
27028         * modules/search (Depends-on): Add arg-nonnull.
27029         (Makefile.am): Insert arg-nonnull.h into search.h.
27030         * modules/signal (Depends-on): Add arg-nonnull.
27031         (Makefile.am): Insert arg-nonnull.h into signal.h.
27032         * modules/spawn (Depends-on): Add arg-nonnull.
27033         (Makefile.am): Insert arg-nonnull.h into spawn.h.
27034         * modules/stdio (Depends-on): Add arg-nonnull.
27035         (Makefile.am): Insert arg-nonnull.h into stdio.h.
27036         * modules/stdlib (Depends-on): Add arg-nonnull.
27037         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
27038         * modules/string (Depends-on): Add arg-nonnull.
27039         (Makefile.am): Insert arg-nonnull.h into string.h.
27040         * modules/strings (Depends-on): Add arg-nonnull.
27041         (Makefile.am): Insert arg-nonnull.h into strings.h.
27042         * modules/sys_socket (Depends-on): Add arg-nonnull.
27043         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
27044         * modules/sys_stat (Depends-on): Add arg-nonnull.
27045         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
27046         * modules/sys_time (Depends-on): Add arg-nonnull.
27047         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
27048         * modules/sys_times (Depends-on): Add arg-nonnull.
27049         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
27050         * modules/sys_utsname (Depends-on): Add arg-nonnull.
27051         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
27052         * modules/time (Depends-on): Add arg-nonnull.
27053         (Makefile.am): Insert arg-nonnull.h into time.h.
27054         * modules/unistd (Depends-on): Add arg-nonnull.
27055         (Makefile.am): Insert arg-nonnull.h into unistd.h.
27056         * modules/wchar (Depends-on): Add arg-nonnull.
27057         (Makefile.am): Insert arg-nonnull.h into wchar.h.
27058         * modules/argv-iter (Depends-on): Add arg-nonnull.
27059         * tests/test-canonicalize.c (null_ptr): New function.
27060         (main): Use it.
27061         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
27062         (main): Use it.
27063         * tests/test-memmem.c (null_ptr): New function.
27064         (main): Use it.
27065         Reported by Jim Meyering.
27066
27067 2009-12-10  Bruno Haible  <bruno@clisp.org>
27068
27069         Use spaces for indentation, not tabs.
27070         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
27071         * m4/*.m4: Untabify.
27072         * build-aux/*.h: Untabify.
27073         * tests/**/*.[hc]: Untabify.
27074         * README: New section "Indent with spaces, not TABs", based on
27075         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
27076         * NEWS: Mention the change.
27077
27078 2009-12-10  Bruno Haible  <bruno@clisp.org>
27079
27080         pty test: Fix link error.
27081         * modules/pty-tests (Makefile.am): Add the default LDADD value to
27082         test_pty_LDADD.
27083
27084 2009-12-07  Simon Josefsson  <simon@josefsson.org>
27085
27086         * modules/pty: New file.
27087         * modules/pty-tests: New file.
27088         * m4/pty.m4: New file.
27089         * tests/test-pty.c: New file.
27090         * doc/glibc-headers/pty.texi: Modified.
27091         * doc/glibc-functions/forkpty.texi: Modified.
27092         * doc/glibc-functions/openpty.texi: Modified.
27093
27094 2009-12-10  Bruno Haible  <bruno@clisp.org>
27095
27096         Avoid syntax error in C++ mode.
27097         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
27098
27099 2009-12-10  Bruno Haible  <bruno@clisp.org>
27100
27101         Use sed with option -e.
27102         * gnulib-tool (func_version, func_emit_copyright_notice,
27103         func_emit_initmacro_end, func_import, func_create_testdir): Pass
27104         option -e to sed.
27105         * modules/link-warning (Makefile.am): Likewise.
27106
27107 2009-12-10  Jim Meyering  <meyering@redhat.com>
27108
27109         mgetgroups: do not write bytes beyond end of malloc'd buffer
27110         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
27111         username, we call getgroups with a one-element-shorter buffer,
27112         but still told it the length was original, max_n_groups.
27113
27114 2009-12-09  Eric Blake  <ebb9@byu.net>
27115
27116         cloexec: relax license
27117         * modules/cloexec (Maintainer): Add myself.
27118         (License): Use LGPL, not GPL.
27119
27120         link-warning: optimize generation
27121         * modules/link-warning (Makefile.am): Reduce process usage.
27122
27123 2009-12-09  Bruno Haible  <bruno@clisp.org>
27124
27125         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
27126         workaround was added on 2009-11-17.
27127
27128 2009-12-09  Jim Meyering  <meyering@redhat.com>
27129             Bruno Haible  <bruno@clisp.org>
27130
27131         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
27132         * modules/link-warning (Makefile.am): Make the comment-removing sed
27133         command more robust in the face of bootstrap-prepended comment lines.
27134
27135 2009-12-09  Bruno Haible  <bruno@clisp.org>
27136
27137         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
27138         most one group.
27139
27140 2009-12-09  Simon Josefsson <simon@josefsson.org>
27141             Bruno Haible  <bruno@clisp.org>
27142
27143         * build-aux/link-warning.h: Add copyright notice.
27144         * modules/link-warning (Makefile.am): Generate link-warning.h from
27145         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
27146         * NEWS: Mention change in link-warning module.
27147         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
27148         * modules/dirent (Makefile.am): Add dependency to dirent.h.
27149         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
27150         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
27151         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
27152         * modules/math (Makefile.am): Add dependency to math.h.
27153         * modules/search (Makefile.am): Add dependency to search.h.
27154         * modules/signal (Makefile.am): Add dependency to signal.h.
27155         * modules/spawn (Makefile.am): Add dependency to spawn.h.
27156         * modules/stdio (Makefile.am): Add dependency to stdio.h.
27157         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
27158         * modules/string (Makefile.am): Add dependency to string.h.
27159         * modules/strings (Makefile.am): Add dependency to strings.h.
27160         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
27161         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
27162         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
27163         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
27164         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
27165         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
27166         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
27167         * modules/unistd (Makefile.am): Add dependency to unistd.h.
27168         * modules/wchar (Makefile.am): Add dependency to wchar.h.
27169
27170 2009-12-09  Bruno Haible  <bruno@clisp.org>
27171
27172         fchdir: Optimize away rpl_fstat when possible.
27173         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
27174         REPLACE_OPEN_DIRECTORY.
27175         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
27176
27177 2009-12-09  Bruno Haible  <bruno@clisp.org>
27178
27179         * lib/fchdir.c: Update comment.
27180
27181 2009-12-09  Bruno Haible  <bruno@clisp.org>
27182
27183         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
27184
27185 2009-12-08  Eric Blake  <ebb9@byu.net>
27186
27187         fchdir: avoid memory leak on re-registration.
27188         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
27189
27190 2009-12-08  Jim Meyering  <meyering@redhat.com>
27191
27192         init.sh: avoid Solaris 10 /bin/sh portability problem
27193         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
27194         sourced script:
27195           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
27196           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
27197           bar
27198         tests/init.sh relied on that, accepting a --set-path=DIR argument,
27199         and two tests used that idiom.
27200         * tests/init.sh: Update suggested usage comments.
27201         (path_prepend_): New function, to be used in place
27202         of the --src-path=DIR option.
27203         (setup_): Move PATH-prepending code into path_prepend_.
27204         * tests/test-pread.sh: Adapt to new usage.
27205         * tests/test-xalloc-die.sh: Likewise.
27206
27207 2009-12-08  Simon Josefsson  <simon@josefsson.org>
27208
27209         * doc/gnulib.texi (Glibc pty.h): Add.
27210         * doc/glibc-functions/forkpty.texi: Add.
27211         * doc/glibc-functions/openpty.texi: Add.
27212         Suggested by Bruno Haible.
27213
27214 2009-12-08  Eric Blake  <ebb9@byu.net>
27215
27216         fchdir: fix logic bugs
27217         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
27218         * tests/test-fchdir.c (main): Enhance test.
27219         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
27220         is in use.
27221
27222         dup2: fix logic bugs
27223         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
27224         REPLACE_DUP2 to decide when rpl_dup2 is needed.
27225         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
27226         exists.
27227         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
27228
27229 2009-12-07  Eric Blake  <ebb9@byu.net>
27230
27231         unlink: fix m4 detection
27232         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
27233
27234         unistd-safer: add unit test
27235         * modules/unistd-safer-tests: New file.
27236         * tests/test-dup-safer.c: Likewise.
27237         * tests/test-cloexec.c (setmode): Avoid compiler warning.
27238         * tests/test-dup2.c (setmode): Likewise.
27239         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
27240
27241         cloexec: preserve text vs. binary across dup_cloexec
27242         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
27243         mode.
27244         * modules/dup2-tests (Depends-on): Add binary-io.
27245         * modules/cloexec-tests (Depends-on): Likewise.
27246         * tests/test-dup2.c (setmode, is_mode): New helpers.
27247         (main): Add tests that translation mode is preserved.
27248         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
27249         Reported by Bruno Haible.
27250
27251         mgetgroups: reduce duplicate listings
27252         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
27253         resulting array.
27254         * tests/test-chown.h (test_chown): Simplify client.
27255         * tests/test-lchown.h (test_lchown): Likewise.
27256
27257 2009-12-06  Bruno Haible  <bruno@clisp.org>
27258
27259         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
27260         value.
27261
27262 2009-12-06  Bruno Haible  <bruno@clisp.org>
27263
27264         * lib/progname.c: Include stdio.h, stdlib.h.
27265         (set_program_name): Reject a NULL argument.
27266
27267 2009-12-05  Eric Blake  <ebb9@byu.net>
27268
27269         pipe2-safer: new module
27270         * modules/pipe2-safer: New file.
27271         * lib/unistd-safer.h (pipe2_safer): New prototype.
27272         * lib/unistd--.h (pipe2): New wrapper.
27273         * lib/pipe-safer.c (pipe2_safer): New function.
27274         * modules/pipe (Depends-on): Add pipe2-safer.
27275         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
27276
27277         stdlib-safer: preserve cloexec flag for mkostemp[s]
27278         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
27279         fd_safer_flag.
27280
27281         unistd-safer: allow preservation of cloexec status via flag
27282         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
27283         prototypes.
27284         * lib/dup-safer.c (dup_safer_flag): New function.
27285         * lib/fd-safer.c (fd_safer_flag): Likewise.
27286         * modules/cloexec (configure.ac): Set witness.
27287
27288         test-dup2: enhance test
27289         * modules/dup2-tests (Depends-on): Add cloexec.
27290         * tests/test-dup2.c (main): Enhance test.
27291
27292         cloexec: add dup_cloexec
27293         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
27294         header and comments.
27295         * lib/cloexec.c (set_cloexec_flag): Add comments.
27296         (dup_cloexec): New function, with mingw implementation borrowed
27297         from...
27298         * lib/w32spawn.h (dup_noinherit): ...here.
27299         * modules/execute (Depends-on): Add cloexec.
27300         * modules/pipe (Depends-on): Likewise.
27301         * modules/cloexec (Depends-on): Add dup2.
27302         * modules/cloexec-tests (Files): New file.
27303         * tests/test-cloexec.c: Likewise.
27304
27305         test-xalloc-die: fix test for mingw
27306         * modules/xalloc-die-tests (Files): Add tests/init.sh.
27307         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
27308         directory and .exe suffix off argv[0] output.
27309
27310         test-fseeko: fix test for mingw
27311         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
27312         than undefining fseek, so test will pass on mingw.
27313
27314 2009-12-05  Bruno Haible  <bruno@clisp.org>
27315
27316         * lib/progname.h (set_program_name): Clarify specification.
27317         * lib/progname.c (set_program_name): Likewise.
27318         Reported by Jim Meyering.
27319
27320 2009-12-05  Jim Meyering  <meyering@redhat.com>
27321
27322         maint.mk: backslash-escape parens in default regexp
27323         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
27324         backslash-escape the literal parentheses.
27325
27326         maint.mk: news-date-check: use grep -E
27327         * top/maint.mk (today): Define a Make variable, not a...
27328         (news-date-check): ...shell variable.
27329         (news-date-regexp): Use the Make variable.
27330         Use grep's -E option.  Change the failing diagnostic to mention
27331         the variable, $(news-date-regexp).
27332
27333 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
27334
27335         maintainer-makefile: allow customization of NEWS entry format
27336         * top/maint.mk (news-date-regexp): New overridable variable.
27337         (news-date-check): Use it.
27338
27339 2009-12-04  Eric Blake  <ebb9@byu.net>
27340
27341         mgetgroups: add xgetgroups, and avoid ENOSYS failures
27342         * lib/mgetgroups.h (xgetgroups): New prototype.
27343         * lib/mgetgroups.c (xgetgroups): New wrapper.
27344         (mgetgroups): Handle ENOSYS.
27345         * modules/mgetgroups (Depends-on): Add realloc.
27346         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
27347
27348         mgetgroups: avoid argument promotion issues with -1
27349         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
27350         for invalid gid_t.
27351         * tests/test-chown.h (getegid, test_chown): Likewise.
27352         * tests/test-lchown.h (getegid, test_lchown): Likewise.
27353
27354 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
27355
27356         exclude: Fix header file problems.
27357         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
27358
27359 2009-12-01  Jim Meyering  <meyering@redhat.com>
27360
27361         fts: fts_open: do not let an empty string cause immediate failure
27362         This is required in support of GNU rm, for which the command
27363         "rm A '' B" must process and remove both A and B, in spite of
27364         the empty string argument.
27365         * lib/fts.c (fts_open): Do not let the presence of an empty string
27366         cause fts_open to fail immediately.  Most fts-using tools must be
27367         able to process all arguments, in order, and can be expected to
27368         diagnose such arguments themselves.
27369
27370 2009-11-30  Eric Blake  <ebb9@byu.net>
27371
27372         utimens: fix compilation error
27373         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
27374         Declare variable at right scope.
27375
27376 2009-11-29  Jim Meyering  <meyering@redhat.com>
27377
27378         bootstrap: handle perl-5.11's changed --version output
27379         * build-aux/bootstrap (get_version): Handle perl separately,
27380         since perl-5.11's --version output is different.
27381
27382 2009-11-28  Jim Meyering  <meyering@redhat.com>
27383
27384         userspec: depend on the inttostr module, too
27385         * modules/userspec (Depends-on): Add inttostr.
27386
27387         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
27388         * lib/userspec.c (parse_with_separator): Do not accept a user ID
27389         number of MAXUID when it evaluates to (uid_t) -1.
27390         Likewise for group ID.  Reported by Matt McCutchen in
27391         <http://savannah.gnu.org/bugs/?28113>
27392
27393         userspec: reformat to use spaces, not TABs
27394         * lib/userspec.c: Expand TABs to spaces.
27395         Add Emacs' "indent-tabs-mode: nil" hint.
27396
27397 2009-11-27  Eric Blake  <ebb9@byu.net>
27398
27399         getopt-gnu: flush out another BSD bug
27400         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
27401         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
27402         flush out BSD bug.
27403         * tests/test-getopt.h (test_getopt): End lists with NULL.
27404         * tests/test-getopt_long.h (test_getopt_long): Likewise.
27405         (test_getopt_long_posix): Enhance test.
27406         * modules/getopt-posix-tests (Depends-on): Add stdbool.
27407         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
27408         getopt-gnu.
27409         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27410         Likewise.
27411
27412 2009-11-27  Simon Josefsson  <simon@josefsson.org>
27413
27414         * modules/idpriv-droptemp-tests (Notice): Fix text.
27415
27416 2009-11-27  Jim Meyering  <meyering@redhat.com>
27417
27418         test-xalloc-die: avoid spurious failure due to libtool argv difference
27419         In a libtool-enabled project, this test would fail due to a difference
27420         in the emitted program name, e.g.,
27421         -test-xalloc-die: memory exhausted
27422         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
27423         Use program to avoid that.
27424         * modules/xalloc-die-tests (Depends-on): Add progname.
27425         * tests/test-xalloc-die.c: Include progname.h".
27426         (program_name): Remove decl.
27427         (main): Call set_program_name.
27428         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
27429
27430 2009-11-26  Richard Jones  <rjones@redhat.com>
27431
27432         w32sock: leave win32 error in place.
27433         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
27434
27435 2009-11-26  Eric Blake  <ebb9@byu.net>
27436
27437         init.sh: suggest to use skip_ and fail_ functions in comments
27438         * tests/init.sh: Add a sentence.
27439
27440 2009-11-25  Bruno Haible  <bruno@clisp.org>
27441
27442         init.sh: add documentation in comments
27443         * tests/init.sh: Add some developer and user documentation.
27444
27445 2009-11-26  Jim Meyering  <meyering@redhat.com>
27446
27447         init.sh: accommodate even those who specify bogus srcdir manually
27448         * tests/init.sh: Normally, srcdir is guaranteed by automake and
27449         configure-time tests to be sanitized, so that there is no need to
27450         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
27451         (with no double quotes) suffices.  However, since tests may be
27452         invoked manually, and since you may explicitly set srcdir to the
27453         name of a directory containing spaces, do quote its uses here.
27454         * tests/test-pread.sh: Likewise.
27455         Suggested by Bruno Haible.
27456
27457         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
27458         * tests/test-pread.sh: Write no data into the pipe, because
27459         test-pread actually reads none.  This avoids a diagnostic,
27460         "bash: echo: write error: Broken pipe", that arises in the unusual
27461         event something is ignoring SIGPIPE, and might be interpreted
27462         as some sort of failure.  Reported by Bruno Haible.
27463
27464 2009-11-25  Jim Meyering  <meyering@redhat.com>
27465
27466         test-pread: cover failure with ESPIPE and EINVAL
27467         * tests/test-pread.c (main): Test for failure, too.
27468         * tests/test-pread.sh: Invoke with stdin on a pipe.
27469         Suggested by Eric Blake.
27470
27471         pread: improvement and fix
27472         * modules/pread (Depends-on): Depend on lseek, for portability to
27473         e.g., mingw.  Suggested by Eric Blake.
27474         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
27475
27476         unistd.in.h: correct declaration of pread
27477         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
27478         Reported by Richard W.M. Jones.
27479
27480         test-pread.sh: distribute the test script
27481         * modules/pread-tests (Files): Include test-pread.sh.
27482
27483         test-pread.sh: clean up
27484         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
27485         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
27486         That is unnecessary, since it's always ".".
27487         Suggestion from Eric Blake.
27488
27489         test-pread.sh: make executable
27490         * tests/test-pread.sh: Set executable bit.
27491         Reported by Eric Blake.
27492
27493         correct typo in test-pread.sh
27494         * tests/test-pread.sh: Add #! line.
27495
27496         test pread
27497         * tests/test-pread.c: New file.
27498         * tests/test-pread.sh: Likewise.
27499         * modules/pread-tests: Likewise.
27500
27501         pread: new module
27502         * modules/pread: New file.
27503         * lib/unistd.in.h (pread): Define/declare.
27504         * lib/pread.c (pread): New file.
27505         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
27506         * modules/unistd (Makefile.am): Substitute witnesses.
27507         * doc/posix-functions/pread.texi (pread): Update.
27508         * MODULES.html.sh: Add pread.
27509
27510 2009-11-25  Jim Meyering  <meyering@redhat.com>
27511
27512         tests/init.sh: new file to be used via most *.sh tests
27513         * tests/init.sh: New file.
27514
27515 2009-11-25  Eric Blake  <ebb9@byu.net>
27516
27517         utimens: work around older Linux failure with symlinks
27518         * lib/utimens.c (lutimensat_works_really): New variable.
27519         (fdutimens, lutimens): Use it to manage kernels that support
27520         nanosecond times on files, but not on symlinks.
27521         Reported by OndÅ™ej Vašík.
27522
27523         utimes: fix configure grammar
27524         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
27525
27526 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
27527
27528         regex: Fix fastmap for multibyte character ranges.
27529         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
27530         characters when a multibyte character range is included.
27531
27532 2009-11-22  Andy Wingo  <wingo@pobox.com>
27533
27534         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
27535         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
27536
27537 2009-11-24  Bruno Haible  <bruno@clisp.org>
27538
27539         doc: Most *_l functions exist in MacOS X 10.5.
27540         * doc/posix-functions/duplocale.texi: Update platforms list.
27541         * doc/posix-functions/freelocale.texi: Likewise.
27542         * doc/posix-functions/newlocale.texi: Likewise.
27543         * doc/posix-functions/uselocale.texi: Likewise.
27544         * doc/posix-functions/isalnum_l.texi: Likewise.
27545         * doc/posix-functions/isalpha_l.texi: Likewise.
27546         * doc/posix-functions/isblank_l.texi: Likewise.
27547         * doc/posix-functions/iscntrl_l.texi: Likewise.
27548         * doc/posix-functions/isdigit_l.texi: Likewise.
27549         * doc/posix-functions/isgraph_l.texi: Likewise.
27550         * doc/posix-functions/islower_l.texi: Likewise.
27551         * doc/posix-functions/isprint_l.texi: Likewise.
27552         * doc/posix-functions/ispunct_l.texi: Likewise.
27553         * doc/posix-functions/isspace_l.texi: Likewise.
27554         * doc/posix-functions/isupper_l.texi: Likewise.
27555         * doc/posix-functions/iswalnum_l.texi: Likewise.
27556         * doc/posix-functions/iswalpha_l.texi: Likewise.
27557         * doc/posix-functions/iswblank_l.texi: Likewise.
27558         * doc/posix-functions/iswcntrl_l.texi: Likewise.
27559         * doc/posix-functions/iswctype_l.texi: Likewise.
27560         * doc/posix-functions/iswdigit_l.texi: Likewise.
27561         * doc/posix-functions/iswgraph_l.texi: Likewise.
27562         * doc/posix-functions/iswlower_l.texi: Likewise.
27563         * doc/posix-functions/iswprint_l.texi: Likewise.
27564         * doc/posix-functions/iswpunct_l.texi: Likewise.
27565         * doc/posix-functions/iswspace_l.texi: Likewise.
27566         * doc/posix-functions/iswupper_l.texi: Likewise.
27567         * doc/posix-functions/iswxdigit_l.texi: Likewise.
27568         * doc/posix-functions/isxdigit_l.texi: Likewise.
27569         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
27570         * doc/posix-functions/strcasecmp_l.texi: Likewise.
27571         * doc/posix-functions/strcoll_l.texi: Likewise.
27572         * doc/posix-functions/strfmon_l.texi: Likewise.
27573         * doc/posix-functions/strftime_l.texi: Likewise.
27574         * doc/posix-functions/strncasecmp_l.texi: Likewise.
27575         * doc/posix-functions/strxfrm_l.texi: Likewise.
27576         * doc/posix-functions/tolower_l.texi: Likewise.
27577         * doc/posix-functions/toupper_l.texi: Likewise.
27578         * doc/posix-functions/towctrans_l.texi: Likewise.
27579         * doc/posix-functions/towlower_l.texi: Likewise.
27580         * doc/posix-functions/towupper_l.texi: Likewise.
27581         * doc/posix-functions/wcscoll_l.texi: Likewise.
27582         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
27583         * doc/posix-functions/wctrans_l.texi: Likewise.
27584         * doc/posix-functions/wctype_l.texi: Likewise.
27585         * doc/glibc-functions/strptime_l.texi: Likewise.
27586         * doc/glibc-functions/strtod_l.texi: Likewise.
27587         * doc/glibc-functions/strtof_l.texi: Likewise.
27588         * doc/glibc-functions/strtol_l.texi: Likewise.
27589         * doc/glibc-functions/strtold_l.texi: Likewise.
27590         * doc/glibc-functions/strtoll_l.texi: Likewise.
27591         * doc/glibc-functions/strtoul_l.texi: Likewise.
27592         * doc/glibc-functions/strtoull_l.texi: Likewise.
27593         * doc/glibc-functions/wcsftime_l.texi: Likewise.
27594         * doc/glibc-functions/wcstod_l.texi: Likewise.
27595         * doc/glibc-functions/wcstof_l.texi: Likewise.
27596         * doc/glibc-functions/wcstol_l.texi: Likewise.
27597         * doc/glibc-functions/wcstold_l.texi: Likewise.
27598         * doc/glibc-functions/wcstoll_l.texi: Likewise.
27599         * doc/glibc-functions/wcstoul_l.texi: Likewise.
27600         * doc/glibc-functions/wcstoull_l.texi: Likewise.
27601
27602 2009-11-24  Bruno Haible  <bruno@clisp.org>
27603
27604         duplocale: Fix logic bug.
27605         * lib/duplocale.c: Don't include <langinfo.h>.
27606         (_NL_LOCALE_NAME): Remove macro.
27607         (rpl_duplocale): Use setlocale instead of nl_langinfo.
27608         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
27609
27610 2009-11-23  Jim Meyering  <meyering@redhat.com>
27611
27612         test-update-copyright: don't hard-code /usr/bin/perl
27613         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
27614         perl to print the current year.  Gilles Espinasse reported that
27615         the replaced use of perl was hard-coded as /usr/bin/perl.
27616
27617 2009-11-23  Bruno Haible  <bruno@clisp.org>
27618
27619         duplocale: Add support for glibc 2.3.x.
27620         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
27621
27622 2009-11-22  Bruno Haible  <bruno@clisp.org>
27623
27624         vasnprintf: Tiny optimization.
27625         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
27626         MacOS X.
27627
27628 2009-11-22  Bruno Haible  <bruno@clisp.org>
27629
27630         Tests for module 'duplocale'.
27631         * modules/duplocale-tests: New file.
27632         * tests/test-duplocale.c: New file.
27633
27634         New module 'duplocale'.
27635         * m4/duplocale.m4: New file.
27636         * lib/locale.in.h (duplocale): New declaration.
27637         * lib/duplocale.c: New file.
27638         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
27639         gl_LOCALE_H_DEFAULTS): New macros.
27640         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
27641         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
27642         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
27643         REPLACE_DUPLOCALE.
27644         * modules/duplocale: New file.
27645         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
27646
27647 2009-11-22  Bruno Haible  <bruno@clisp.org>
27648
27649         * modules/locale-tests (configure.ac): Test for newlocale function.
27650         * tests/test-locale.c: When the system has extended locale functions,
27651         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
27652
27653         locale: Make locale_t available when possible.
27654         * lib/locale.in.h: Include <xlocale.h> when it exists.
27655         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
27656         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
27657         * modules/locale (Depends-on): Add extensions.
27658         (Makefile.am): Also substitute HAVE_XLOCALE_H.
27659         * doc/posix-headers/locale.texi: Document the problem with locale_t.
27660
27661 2009-11-22  Bruno Haible  <bruno@clisp.org>
27662
27663         Add comments.
27664         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
27665         invocation.
27666         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
27667         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
27668         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27669
27670 2009-11-22  Bruno Haible  <bruno@clisp.org>
27671
27672         error: account for the possibility of freopen (stdout).
27673         * lib/error.c: Include <unistd.h>.
27674         (flush_stdout): New function, extracted from error and error_at_line.
27675         Determine stdout's fd dynamically.
27676         (error, error_at_line): Invoke flush_stdout.
27677         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
27678         * modules/error (Depends-on): Add unistd.
27679
27680 2009-11-22  Bruno Haible  <bruno@clisp.org>
27681
27682         diffseq: Add comment.
27683         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
27684
27685 2009-11-22  Jim Meyering  <meyering@redhat.com>
27686
27687         c-stack: avoid defining an unused static function
27688         * lib/c-stack.c (find_stack_direction): Do not define this function
27689         when it will not be used.
27690
27691         diffseq: avoid spurious gcc warnings
27692         * lib/diffseq.h (IF_LINT2): Define.
27693         (compareseq): Use it to initialize two members of "part".
27694         This avoids two used-uninitialized warnings.
27695
27696 2009-11-21  Jim Meyering  <meyering@redhat.com>
27697
27698         c-stack: avoid "ignoring return value of `write'" warning
27699         * lib/c-stack.c: Include "ignore-value.h".
27700         (die): Explicitly ignore each write return value.
27701         * modules/c-stack (Depends-on): Add ignore-value.
27702
27703 2009-11-21  Bruno Haible  <bruno@clisp.org>
27704
27705         diffseq: reduce scope of variable 'best'.
27706         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
27707         variable, earlier used for two different purposes.
27708
27709 2009-11-21  Jim Meyering  <meyering@redhat.com>
27710
27711         diffseq: remove useless assignment to "best"
27712         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
27713         assignment.  At that point "best" is already guaranteed to be zero.
27714
27715 2009-11-20  Eric Blake  <ebb9@byu.net>
27716
27717         build: mention ftp redirector in release announcements
27718         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
27719         values that used to come from cfg.mk; mention FTP redirect URL.
27720         * build-aux/announce-gen: Mention the mirror list.
27721         Suggested by Karl Berry.
27722
27723         nanosleep: improve port to mingw
27724         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
27725         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
27726         LIB_NANOSLEEP, but only when needed.
27727         * modules/select (Link): Document LIBSOCKET.
27728         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
27729         enough.
27730
27731         nanosleep: work around cygwin bug
27732         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
27733         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
27734         bug.
27735         (getnow): Delete, not needed.
27736         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
27737         LIB_CLOCK_GETTIME.
27738         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
27739         clock-time, gettime.
27740         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
27741         bug.
27742         * modules/nanosleep-tests: New test.
27743         * tests/test-nanosleep.c: New file.
27744
27745         sleep: work around cygwin bug
27746         * lib/sleep.c (rpl_sleep): Work around the bug.
27747         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
27748         (gl_PREREQ_SLEEP): Delete unused macro.
27749         * modules/sleep (Depends-on): Add verify.
27750         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
27751         * modules/unistd (Makefile.am): Substitute witness.
27752         * lib/unistd.in.h (sleep): Update prototype.
27753         * doc/posix-functions/sleep.texi (sleep): Document the bug.
27754         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
27755         * modules/sleep-tests (Depends-on): Check for alarm.
27756
27757 2009-11-20  Jim Meyering  <meyering@redhat.com>
27758
27759         maint.mk: improve sc_prohibit_magic_number_exit
27760         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
27761         so it does not match uses like System.exit(1).
27762         Add comments showing how to correct all offenders.
27763
27764 2009-11-19  Eric Blake  <ebb9@byu.net>
27765
27766         xalloc-die-tests: add missing library
27767         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
27768
27769         test-xvasprintf: silence compiler warnings
27770         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
27771         empty string from gcc.
27772
27773 2009-11-19  Jim Meyering  <meyering@redhat.com>
27774
27775         xfreopen: new module, from coreutils
27776         * modules/xfreopen: New module.
27777         * lib/xfreopen.c: New file.
27778         * lib/xfreopen.h: New file.
27779         * MODULES.html.sh (File stream based Input/Output"): Add it.
27780
27781 2009-11-19  Eric Blake  <ebb9@byu.net>
27782
27783         manywarnings: depend on warnings
27784         * modules/manywarnings (Depends-on): Add warnings.
27785
27786         build: avoid compiler warnings
27787         * lib/select.c (rpl_select): Delete unused variable.
27788         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
27789
27790 2009-11-18  Eric Blake  <ebb9@byu.net>
27791
27792         tests: avoid false negative with --with-packager
27793         * tests/test-version-etc.sh: Discard packager information.
27794         * tests/test-argp-version-etc-1.sh: Likewise.
27795         Reported by Mike Frysinger.
27796
27797         utimens: fix regression on Solaris
27798         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
27799         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
27800         can only change fd timestamps via futimesat.  Instead, use an
27801         additional witness macro to avoid BSD bug.
27802         Reported by Jim Meyering.
27803
27804 2009-11-17  Eric Blake  <ebb9@byu.net>
27805
27806         usleep: use it to simplify tests
27807         * modules/stat-time-tests (Depends-on): Add usleep.
27808         (configure.ac): Drop usleep check.
27809         * modules/chown-tests (Depends-on, configure.ac): Likewise.
27810         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
27811         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
27812         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
27813         * modules/openat-tests (Depends-on, configure.ac): Likewise.
27814         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
27815         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
27816         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
27817         Likewise.
27818         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
27819         * tests/test-lchown.h (nap): Likewise.
27820         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
27821         * tests/test-stat-time.c (nap): Likewise.
27822         * tests/test-utimens-common.h (nap): Update comments.
27823
27824         usleep: new module
27825         * modules/usleep: New file.
27826         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
27827         * lib/usleep.c (usleep): Likewise.
27828         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
27829         * modules/unistd (Makefile.am): Substitute witnesses.
27830         * lib/unistd.in.h (usleep): Add declaration.
27831         * doc/pastposix-functions/usleep.texi (usleep): Document this.
27832         * MODULES.html.sh (Date and time): Likewise.
27833         * modules/usleep-tests (Depends-on): New test.
27834         * tests/test-usleep.c: New file.
27835
27836         chown: work around OpenBSD bug
27837         * lib/chown.c (rpl_chown): Work around the bug.
27838         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
27839         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
27840         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
27841         * modules/chown (Depends-on): Add stdbool.
27842         * modules/lchown (Depends-on): Likewise.
27843         * doc/posix-functions/chown.texi (chown): Document the bug.
27844         * doc/posix-functions/lchown.texi (lchown): Likewise.
27845         * tests/test-lchown.h (test_chown): Relax test.
27846
27847         mkstemp: avoid conflict with C++ keyword template
27848         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
27849         * lib/mkostemp.c (mkostemp): Likewise.
27850         * lib/mkostemps.c (mkostemps): Likewise.
27851         * lib/mkstemp.c (mkstemp): Likewise.
27852         * lib/mkstemps.c (mkstemps): Likewise.
27853
27854         xalloc-die-tests: optimize
27855         * tests/test-xalloc-die.sh: Reduce number of processes.
27856
27857 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27858
27859         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
27860         patch from ludo@gnu.org (Ludovic Courtès).
27861
27862 2009-11-17  Jim Meyering  <meyering@redhat.com>
27863
27864         version-etc: use proper license string
27865         * modules/version-etc (License): Use LGPL, not LGPLv3+.
27866         * modules/version-etc-fsf: Likewise.
27867
27868 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27869
27870         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
27871         printed to stdout.  Deal with EOL differences.
27872
27873 2009-11-17  Eric Blake  <ebb9@byu.net>
27874
27875         unsetenv: work around Solaris bug
27876         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
27877         * lib/unsetenv.c (rpl_unsetenv): Work around it.
27878         Reported by Jim Meyering.
27879
27880         vasnprintf: avoid compiler warnings
27881         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
27882         variables.
27883         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
27884
27885 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27886
27887         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
27888         settings since xalloc-die is no longer the self test,
27889         xalloc-die.sh is.
27890
27891 2009-11-17  Jim Meyering  <meyering@redhat.com>
27892
27893         test-xalloc-die.sh: make the code agree with the commit log
27894         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
27895         at the end, just in case you happen to have a test-xalloc-die
27896         program in some other PATH directory.
27897
27898         test-xalloc-die.sh: fix a portability bug
27899         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
27900         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
27901         Otherwise, argv[0] (as often seen in diagnostics) would be too
27902         system-dependent, sometimes with, and sometimes without the leading "./".
27903
27904         version-etc-fsf: relax license to LGPLv3+
27905         * modules/version-etc-fsf (License): Relax license.
27906
27907 2009-11-16  Eric Blake  <ebb9@byu.net>
27908
27909         xalloc-die-tests: avoid printing null pointer
27910         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
27911         shell script.
27912         * tests/test-xalloc-die.c (program_name): Declare.
27913         * tests/test-xalloc-die.sh (tmpfiles): New file.
27914
27915         setenv, unsetenv: work around various bugs
27916         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
27917         (setenv) [HAVE_SETENV]: Work around bugs.
27918         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
27919         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
27920         for bugs.
27921         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
27922         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
27923         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
27924         * modules/stdlib (Makefile.am): Update substitutions.
27925         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
27926         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
27927         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
27928         * modules/setenv-tests: New test.
27929         * modules/unsetenv-tests: Likewise.
27930         * tests/test-setenv.c: New file.
27931         * tests/test-unsetenv.c: Likewise.
27932
27933 2009-11-16  Jim Meyering  <meyering@redhat.com>
27934
27935         version-etc: relax license to LGPLv3+
27936         * modules/version-etc (License): Relax license.
27937
27938         better AC_REQUIRE expanded-before-required-warning avoidance
27939         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
27940         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
27941         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
27942         which is no longer needed.
27943
27944 2009-11-16  Eric Blake  <ebb9@byu.net>
27945
27946         test-freading: clean up temporary file
27947         * tests/test-freading.c (main): Remove file on success, and use
27948         ASSERT more liberally.
27949         Reported by Jim Meyering.
27950
27951 2009-11-16  Jim Meyering  <meyering@redhat.com>
27952
27953         avoid new AC_REQUIRE expanded-before-required warnings
27954         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
27955         merely using it.
27956         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
27957         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
27958
27959 2009-11-15  Simon Josefsson  <simon@josefsson.org>
27960
27961         * tests/test-xalloc-die.c: New file.
27962         * modules/xalloc-die-tests: New file.
27963         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
27964         XFAIL_TESTS so it can be appended by modules.
27965
27966 2009-11-15  Simon Josefsson  <simon@josefsson.org>
27967
27968         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
27969         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
27970
27971 2009-11-14  Eric Blake  <ebb9@byu.net>
27972
27973         fnmatch: avoid compiler warning
27974         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
27975         to silence compiler warning about mismatch signedness in ?:.
27976         Reported by Robert Millan.
27977
27978         intprops: add double-inclusion guard
27979         * lib/intprops.h: Allow idempotent includes.
27980         Suggested by Bruce Korb.
27981
27982         openat: detect Solaris fchownat bug
27983         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
27984         penalizing glibc chownat when only lchownat is broken.
27985         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
27986         trailing slash bugs.
27987         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
27988         * modules/openat-tests (Files): Include more files.
27989         (Depends-on): Add mgetgroups, sleep, stat-time.
27990         (configure.ac): Add additional checks.
27991         (Makefile.am): Build new test.
27992         * tests/test-fchownat.c: New file.
27993
27994         lchown: detect Solaris and FreeBSD bug
27995         * lib/lchown.c (rpl_lchown): Work around bug.
27996         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
27997         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27998         * modules/unistd (Makefile.am): Populate it.
27999         * lib/unistd.in.h (lchown): Update declaration.
28000         * doc/posix-functions/lchown.texi (lchown): Document the bug.
28001         * modules/lchown-tests: New file.
28002         * tests/test-lchown.h (test_lchown): Likewise.
28003         * tests/test-lchown.c (main): Likewise.
28004
28005         chown: detect Solaris and FreeBSD bug
28006         * lib/chown.c (rpl_chown): Work around bug.
28007         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
28008         (gl_PREREQ_CHOWN): Delete.
28009         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28010         * modules/unistd (Makefile.am): Populate it.
28011         * lib/unistd.in.h (chown): Update declaration.
28012         * lib/lchown.c (chown): Update client.
28013         * modules/lchown (Depends-on): Add lstat.
28014         * doc/posix-functions/chown.texi (chown): Document the bug.
28015         * doc/posix-functions/getgroups.texi (getgroups): Document
28016         getgroups pitfall.
28017         * modules/chown-tests: New file.
28018         * tests/test-chown.h (test_chown): Likewise.
28019         * tests/test-chown.c (main): Likewise.
28020
28021 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
28022
28023         gnulib-tool: correctly detect absence of m4 directories
28024         * gnulib-tool: Avoid extra newline on data passed to wc -l.
28025
28026 2009-11-14  Jim Meyering  <meyering@redhat.com>
28027
28028         maint.mk: Prohibit inclusion of "xalloc.h" without use.
28029         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
28030
28031 2009-11-14  John W. Eaton  <jwe@gnu.org>
28032
28033         strftime.h: wrap funtion declaration in extern "C" block
28034         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
28035
28036 2009-11-13  Eric Blake  <ebb9@byu.net>
28037
28038         getgroups: avoid compiler warning
28039         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
28040
28041         getgroups: work around FreeBSD bug
28042         * lib/getgroups.c (rpl_getgroups): Work around the bug.
28043         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
28044         * doc/posix-functions/getgroups.texi (getgroups): Document it.
28045         * tests/test-getgroups.c (main): Fix buffer overrun.
28046
28047         getgroups: avoid compilation failure
28048         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
28049         * modules/getgroups (Depends-on): Add stdint.
28050
28051 2009-11-13  Jim Meyering  <meyering@redhat.com>
28052
28053         test-getgroups: avoid compilation failure
28054         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
28055
28056 2009-11-13  Eric Blake  <ebb9@byu.net>
28057
28058         mgetgroups: new module, taken from coreutils
28059         * modules/mgetgroups: New file.
28060         * lib/mgetgroups.h: Likewise.
28061         * lib/mgetgroups.c (mgetgroups): Likewise.
28062         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
28063         * MODULES.html.sh (Users and groups): Mention it.
28064
28065         getgroups: don't expose GETGROUPS_T to user
28066         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
28067         an element at a time if GETGROUPS_T is wrong size.
28068         * lib/getugroups.h (getugroups): Change signature.
28069         * lib/unistd.in.h (getgroups): Likewise.
28070         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
28071         signature needs fixing.
28072         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
28073         AC_TYPE_GETGROUPS.
28074         * modules/group-member (Depends-on): Add getgroups.
28075         * lib/group-member.c (group_info, get_group_info): Use gid_t.
28076         (group_member): Rely on getgroups replacement.
28077         * lib/getugroups.c (getugroups): Use gid_t.
28078         * tests/test-getgroups.c (main): Likewise.
28079         * NEWS: Mention the signature change.
28080         * doc/posix-functions/getgroups.texi (getgroups): Mention the
28081         problem with signature.
28082         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
28083         GETGROUPS_T is still useful for setgroups.
28084
28085         getgroups, getugroups: provide stubs for mingw
28086         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
28087         * lib/getugroups.c (getugroups): Likewise.
28088         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
28089         function.  Modernize replacement scheme.
28090         (gl_PREREQ_GETGROUPS): Delete.
28091         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
28092         * modules/getgroups (configure.ac): Declare witness.
28093         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
28094         * modules/unistd (Depends-on): Substitute witness.
28095         * lib/unistd.in.h (getgroups): Declare replacement.
28096
28097         getgroups: avoid calling exit
28098         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
28099         drop xalloc.
28100         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
28101         dependencies.
28102         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
28103         exiting, in the rare case of malloc failure.
28104
28105         getgroups: fix logic error
28106         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
28107         has more than 20 groups.
28108         * modules/getgroups-tests: New test.
28109         * tests/test-getgroups.c: New file.
28110
28111 2009-11-13  Simon Josefsson  <simon@josefsson.org>
28112
28113         * tests/test-base64.c: Improve.
28114
28115 2009-11-13  Simon Josefsson  <simon@josefsson.org>
28116
28117         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
28118         Blake <ebb9@byu.net>.
28119
28120 2009-11-13  Simon Josefsson  <simon@josefsson.org>
28121
28122         * tests/test-xvasprintf.c: Add %s%s related checks.
28123
28124 2009-11-12  Eric Blake  <ebb9@byu.net>
28125
28126         version-etc: match standards.texi style
28127         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
28128         and use <> only for URLs.
28129
28130 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
28131
28132         fts: do not fail on a submount during traversal
28133         * lib/fts.c (fts_build): Read the stat info again after opening
28134         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
28135         Original report at http://bugzilla.redhat.com/501848.
28136
28137 2009-11-12  Jim Meyering  <meyering@redhat.com>
28138
28139         bootstrap: sync from coreutils
28140         * build-aux/bootstrap (bootstrap_epilogue): New function.
28141         Use git_modules_config in one more place.  This make bootstrap's
28142         --gnulib-srcdir option more useful for testing.
28143
28144         bootstrap: generalize autoheader check
28145         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
28146         AC_CONFIG_HEADERS.
28147
28148 2009-11-11  Eric Blake  <ebb9@byu.net>
28149
28150         mkfifoat: use new modules for Solaris and BSD bugs
28151         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
28152         * lib/mkfifoat.c (mknodat): Split...
28153         * lib/mknodat.c (mknodat): ...into new file.
28154         * modules/mkfifoat (Files): Ship new file.
28155         (Depends-on): Add mkfifo, mknod.
28156         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
28157         (Depends-on): Add symlink.
28158         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
28159         redundant with test_mkfifo.h.
28160         (do_mkfifoat, do_mknodat): New helpers.
28161
28162         mknod: new module
28163         * modules/mknod: New file.
28164         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
28165         * lib/mknod.c (mknod): Likewise.
28166         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
28167         defaults.
28168         * modules/sys_stat (Makefile.am): Substitute them.
28169         * lib/sys_stat.in.h (mknod): Declare replacement.
28170         * MODULES.html.sh (Support for systems lacking POSIX:2008):
28171         Document it.
28172         * doc/posix-functions/mknod.texi (mknod): Likewise.
28173         * modules/mknod-tests: New test.
28174         * tests/test-mknod.c: Likewise.
28175
28176         mkfifo: new module
28177         * modules/mkfifo: New file.
28178         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
28179         * lib/mkfifo.c (mkfifo): Likewise.
28180         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
28181         defaults.
28182         * modules/sys_stat (Makefile.am): Substitute them.
28183         * lib/sys_stat.in.h (mkfifo): Declare replacement.
28184         * MODULES.html.sh (Support for systems lacking POSIX:2008):
28185         Document it.
28186         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
28187         * modules/mkfifo-tests: New test.
28188         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
28189         from test-mkfifoat.c.
28190         * tests/test-mkfifo.c: New file.
28191
28192         readlink: detect FreeBSD bug
28193         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
28194         slash on symlink.
28195         * doc/posix-functions/readlink.texi (readlink): Document the bug.
28196         * tests/test-readlink.h (test_readlink): Enhance test.
28197
28198         symlink: detect FreeBSD bug
28199         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
28200         slash on symlink.
28201         * doc/posix-functions/symlink.texi (symlink): Document the bug.
28202         * tests/test-symlink.h (test_symlink): Enhance test.
28203
28204 2009-11-10  Eric Blake  <ebb9@byu.net>
28205
28206         link: detect FreeBSD bug
28207         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
28208         symlink.
28209         * doc/posix-functions/link.texi (link): Document the bug.
28210         * tests/test-link.h (test_link): Enhance test.
28211         * tests/test-linkat.c (main): Update caller.
28212
28213         unlink, remove: detect FreeBSD bug
28214         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
28215         slash on symlink.
28216         * doc/posix-functions/unlink.texi (unlink): Document the bug.
28217         * doc/posix-functions/remove.texi (remove): Likewise.
28218         * tests/test-unlink.h (test_unlink): Enhance test.
28219         * tests/test-remove.c (main): Likewise.
28220
28221 2009-11-09  Eric Blake  <ebb9@byu.net>
28222
28223         rename: detect FreeBSD bug
28224         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
28225         slash on symlink.
28226         * modules/renameat-tests (Depends-on): Add filenamecat.
28227         * tests/test-rename.h (test_rename): Allow one more errno.
28228         * tests/test-renameat.c (main): Likewise.
28229         * doc/posix-functions/rename.texi (rename): Document the bug.
28230
28231         open: detect FreeBSD bug
28232         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
28233         symlink.
28234         * doc/posix-functions/open.texi (open): Document the bug.
28235         * doc/posix-functions/utimes.texi (utimes): Likewise.
28236         * tests/test-open.h (test_open): Add parameters, and test symlink
28237         handling.
28238         * tests/test-open.c (main): Adjust caller.
28239         * tests/test-fcntl-safer.c (main): Likewise.
28240         * modules/open-tests (Depends-on): Add stdbool, symlink.
28241         * modules/fcntl-safer-tests (Depends-on): Likewise.
28242         * tests/test-openat.c (main): Add test-open tests.
28243
28244         stat: detect FreeBSD bug
28245         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
28246         symlink.
28247         * doc/posix-functions/stat.texi (stat): Document the bug.
28248         * tests/test-stat.h (test_stat_func): Add argument.
28249         * tests/test-stat.c (main): Adjust caller.
28250         * tests/test-fstatat.c (main): Likewise.
28251         * modules/stat-tests (Depends-on): Add stdbool, symlink.
28252         Reported by Jim Meyering.
28253
28254 2009-11-09  James Youngman  <jay@gnu.org>
28255
28256         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
28257         * lib/strftime.c: Correct placement of #include "ignore-value.h".
28258
28259 2009-11-08  Jim Meyering  <meyering@redhat.com>
28260
28261         utimens: remove invalid futimesat call
28262         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
28263         It used the file descriptor of the target file as the DIR_FD
28264         parameter and NULL as the file name.  That caused failure with
28265         errno == EFAULT on FreeBSD-8.0-rc2
28266
28267 2009-11-07  Eric Blake  <ebb9@byu.net>
28268
28269         fflush, freadseek: use fseeko, not fseek
28270         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
28271         (clear_ungetc_buffer): Avoid potential problems on large files.
28272         * lib/freadseek.c (freadseek): Likewise.
28273         * modules/freadseek (Depends-on): Add fseeko.
28274         * modules/fseek (configure.ac): Set a witness.
28275         * tests/test-fflush.c (main): Use fseeko.
28276         * tests/test-fpurge.c (fseek): Disable link warning.
28277         * tests/test-freadable.c (fseek): Likewise.
28278         * tests/test-freading.c (fseek): Likewise.
28279         * tests/test-fseeko.c (fseek): Likewise.
28280         * tests/test-ftell.c (fseek): Likewise.
28281         * tests/test-ftello.c (fseek): Likewise.
28282         * tests/test-fwritable.c (fseek): Likewise.
28283         * tests/test-fwriting.c (fseek): Likewise.
28284
28285 2009-11-06  Simon Josefsson  <simon@josefsson.org>
28286
28287         * modules/memchr (Depends-on): Drop getpagesize dependency.
28288
28289 2009-11-06  Simon Josefsson  <simon@josefsson.org>
28290
28291         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
28292         Reported by Ludovic Courtès.
28293         * build-aux/pmccabe2html: Improve example usage.
28294         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
28295
28296 2009-11-06  Jim Meyering  <meyering@redhat.com>
28297
28298         do-release-commit-and-tag: New module.
28299         Automate the release-commit and tag process.
28300         * build-aux/do-release-commit-and-tag: New script, from coreutils.
28301         * modules/do-release-commit-and-tag: New file.
28302         * MODULES.html.sh (Support for maintaining and releasing): Add it.
28303
28304 2009-11-06  Simon Josefsson  <simon@josefsson.org>
28305
28306         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
28307         because test-select.c uses inet_pton.
28308
28309 2009-11-06  Simon Josefsson  <simon@josefsson.org>
28310
28311         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
28312         GETADDRINFO_LIB.  Bump serial number.
28313         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
28314         Suggested by Eric Blake <ebb9@byu.net>.
28315
28316 2009-11-05  Eric Blake  <ebb9@byu.net>
28317
28318         strtod: detect darwin bug
28319         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
28320         Reported by Leo Davis.
28321
28322         freopen-safer: new module
28323         * modules/freopen-safer: New module.
28324         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
28325         * lib/freopen-safer.c (freopen_safer): New file.
28326         * lib/stdio-safer.h (freopen_safer): New declaration.
28327         * lib/stdio--.h (freopen): New override.
28328         * MODULES.html.sh (File stream based Input/Output): Mention it.
28329         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
28330         freopen-safer module.
28331         * doc/posix-functions/stderr.texi (stderr): Likewise.
28332         * doc/posix-functions/stdin.texi (stdin): Likewise.
28333         * doc/posix-functions/stdout.texi (stdout): Likewise.
28334         * modules/freopen-safer-tests: New test.
28335         * tests/test-reopen-safer.c: New file.
28336
28337 2009-11-05  Jim Meyering  <meyering@redhat.com>
28338
28339         maint.mk: Prohibit inclusion of "close-stream.h" without use.
28340         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
28341
28342 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28343
28344         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
28345
28346 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28347
28348         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
28349
28350 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28351
28352         Fix link error.
28353         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
28354         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
28355
28356 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28357
28358         * tests/test-func.c: Also test value of __func__.
28359
28360 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28361
28362         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
28363         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
28364
28365 2009-11-05  Bruno Haible  <bruno@clisp.org>
28366
28367         Fix link error.
28368         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
28369         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
28370         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
28371
28372 2009-11-05  Bruno Haible  <bruno@clisp.org>
28373
28374         Tests for module 'inet_pton'.
28375         * modules/inet_pton-tests: New file.
28376         * tests/test-inet_pton.c: New file.
28377
28378 2009-11-05  Bruno Haible  <bruno@clisp.org>
28379
28380         Tests for module 'inet_ntop'.
28381         * modules/inet_ntop-tests: New file.
28382         * tests/test-inet_ntop.c: New file.
28383
28384 2009-11-04  Eric Blake  <ebb9@byu.net>
28385
28386         stdlib-safer: wrap all mkstemp variants
28387         * modules/mkostemp (configure.ac): Set witness.
28388         * modules/mkostemps (configure.ac): Likewise.
28389         * modules/mkstemps (configure.ac): Likewise.
28390         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
28391         (mkstemps_safer): Wrap more functions.
28392         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
28393         wrapping.
28394         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
28395         (mkstemps_safer): Implement the wrappers.
28396
28397         mkstemps, mkostemps: new modules
28398         * modules/mkostemps: New module.
28399         * modules/mkstemps: Likewise.
28400         * lib/mkostemps.c (mkostemps): New file.
28401         * lib/mkstemps.c (mkstemps): Likewise.
28402         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
28403         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
28404         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
28405         * modules/stdlib (Makefile.am): Substitute them.
28406         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
28407         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
28408         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
28409         * doc/gnulib.texi (Glibc stdlib.h): Include them.
28410         * MODULES.html.sh (File system functions): Mention them.
28411
28412         tempname: resync from glibc
28413         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
28414         same values for __GT_FILE as glibc.  Abort even when assertions
28415         are disabled.
28416         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
28417         match its value otherwise.  Allow idempotent inclusion.
28418         * lib/mkdtemp.c (mkdtemp): Adjust caller.
28419         * lib/mkostemp.c (mkostemp): Likewise.
28420         * lib/mkstemp.c (mkstemp): Likewise.
28421         * lib/tmpfile.c (tmpfile): Likewise.
28422         * NEWS: Document this.
28423
28424         utimens: fix use of futimens on older Linux
28425         * lib/utimens.c (fdutimens): Use updated, rather than original,
28426         timespec to avoid bug in older Linux kernel.
28427         Reported by Simon Josefsson.
28428
28429 2009-11-04  Bruno Haible  <bruno@clisp.org>
28430
28431         Make num_processors more flexible and consistent.
28432         * lib/nproc.h (enum nproc_query): New type.
28433         (num_processors): Add a 'query' argument.
28434         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
28435         (num_processors): Add a 'query' argument. Test the value of the
28436         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
28437         mingw, count the number of CPUs available for the current process.
28438         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
28439         Check for sched_getaffinity and sched_getaffinity_np.
28440         * modules/nproc (Depends-on): Add c-ctype, extensions.
28441         * NEWS: Mention the change.
28442
28443 2009-11-03  Bruno Haible  <bruno@clisp.org>
28444
28445         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
28446
28447 2009-11-03  Jim Meyering  <meyering@redhat.com>
28448
28449         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
28450         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
28451         if it is defined.
28452
28453 2009-11-02  Eric Blake  <ebb9@byu.net>
28454
28455         mktime, timegm: share common declaration
28456         * lib/mktime-internal.h: New file.
28457         * lib/mktime.c: Use it rather than open-coding a declaration.
28458         * lib/timegm.c: Likewise.
28459         * modules/mktime (Files): Ship it.
28460         * modules/timegm (Files): Likewise.
28461         Suggested by Bruno Haible.
28462
28463         test-update-copyright: update test to match script changes
28464         * tests/test-update-copyright.sh: Avoid hard-coding perl
28465         location.  Don't update *.bak created by earlier runs.
28466
28467 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
28468             Simon Josefsson  <simon@josefsson.org>
28469             Bruno Haible  <bruno@clisp.org>
28470
28471         Fix link error on Solaris 8.
28472         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
28473         also in libnsl. Define also INET_PTON_LIB.
28474         * modules/inet_pton (Link): New section.
28475
28476 2009-11-02  Simon Josefsson  <simon@josefsson.org>
28477             Bruno Haible  <bruno@clisp.org>
28478
28479         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
28480         * modules/inet_ntop (Link): New section.
28481         Reported by Boyan Kasarov <bkasarov@gmail.com>.
28482
28483 2009-11-02  Eric Blake  <ebb9@byu.net>
28484
28485         maint: avoid compiler warnings in m4 macros
28486         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
28487         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
28488
28489 2009-11-02  Simon Josefsson  <simon@josefsson.org>
28490
28491         * m4/pmccabe2html.m4: Remove file.
28492         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
28493         function.  Change maintainer.
28494         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
28495         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
28496         Courtès).
28497
28498 2009-10-31  Eric Blake  <ebb9@byu.net>
28499
28500         fseeko: fix m4 regression
28501         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
28502         regression from 2009-10-27.
28503         Reported by Ralf Wildenhues.
28504
28505 2009-10-31  Jim Meyering  <meyering@redhat.com>
28506
28507         inttostr: aesthetics and improved (compile-time) safety
28508         Define inttype_is_signed rather than inttype_is_unsigned,
28509         since the sole use is via "#if inttype_is_signed".
28510         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
28511         inttype_is_unsigned.
28512         * lib/offtostr.c (inttype_is_signed): Likewise.
28513         * lib/uinttostr.c (inttype_is_signed): Likewise.
28514         * lib/umaxtostr.c (inttype_is_signed): Likewise.
28515         * lib/inttostr.c (inttostr): Use verify to cross-check the
28516         inttype_is_signed value and the signedness of the actual type.
28517         * modules/inttostr (Depends-on): Add verify.
28518
28519 2009-10-30  Eric Blake  <ebb9@byu.net>
28520
28521         build: avoid compiler warnings
28522         * lib/fchmodat.c (lchmod): Mark unused variables.
28523         * lib/getopt.c (_getopt_initialize): Likewise.
28524         * lib/mktime.c (__mktime_internal): Provide prototype.
28525         * lib/inttostr.c (inttostr): Avoid compiler warning even with
28526         older gcc that do not understand #pragma GCC diagnostic.
28527         * lib/uinttostr.c (inttype_is_unsigned): Define.
28528         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
28529
28530 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
28531
28532         stat: fix compilation on AIX
28533         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
28534         only see struct stat64.
28535
28536 2009-10-30  Eric Blake  <ebb9@byu.net>
28537
28538         exclude: make more robust
28539         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
28540         rather than masking a coding bug.
28541         Suggested by Bruno Haible.
28542
28543 2009-10-30  Jim Meyering  <meyering@redhat.com>
28544
28545         perl scripts: remove #!/usr/bin/perl in favor of more portable...
28546         Rather than putting #!/usr/bin/perl on the first line,
28547         start with a variant of what's recommended by "man perlrun" that
28548         invokes the first "perl" program from your shell's search path.
28549         * build-aux/gitlog-to-changelog: Replace #!... as above.
28550         Add a "Local Variables" perl mode setting.
28551         Prompted by a patch from Ludovic Courtès.
28552         Improved by Eric Blake.
28553         * build-aux/useless-if-before-free: Likewise.
28554         * build-aux/announce-gen: Likewise.
28555         * build-aux/update-copyright: Likewise.
28556
28557 2009-10-29  Eric Blake  <ebb9@byu.net>
28558
28559         filenamecat-lgpl: adjust clients
28560         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
28561         filenamecat.
28562         * modules/renameat (Depends-on): Likewise.
28563
28564         filenamecat: split into filenamecat-lgpl
28565         * modules/filenamecat-lgpl: New module.
28566         * modules/filenamecat (Files): Move library-safe files into
28567         filenamecat-lgpl.
28568         (Depends-on): Add filenamecat-lgpl.
28569         (configure.ac): Declare witness.
28570         * lib/filenamecat.h (file_name_concat): Only declare when using
28571         GPL module.
28572         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
28573         Move...
28574         * lib/filenamecat-lgpl.c: ...into new file.
28575         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
28576         (gl_FILE_NAME_CONCAT): Use it.
28577         * MODULES.html.sh (File system functions): Mention new module.
28578
28579         argp: avoid memory leak
28580         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
28581         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
28582         base_name, since the latter malloc()s and can call exit().
28583         Leak introduced 2006-07-03.
28584
28585         dirname-lgpl: adjust clients that don't need full dirname
28586         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
28587         * modules/filenamecat (Depends-on): Likewise.
28588         * modules/linkat (Depends-on): Likewise.
28589         * modules/mkancesdirs (Depends-on): Likewise.
28590         * modules/mkdir (Depends-on): Likewise.
28591         * modules/openat (Depends-on): Likewise.
28592         * modules/savewd (Depends-on): Likewise.
28593         * modules/rename (Depends-on): Likewise.
28594         (License): Relax license.
28595         * modules/mkdir-tests (Depends-on): Drop progname.
28596         (Makefile.am): Delete unneeded LDADD.
28597         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
28598
28599         dirname: split into dirname-lgpl
28600         * modules/dirname-lgpl: New module.
28601         * modules/dirname (Files): Move library-safe files into
28602         dirname-lgpl.
28603         (Depends-on): Add dirname-lgpl.
28604         (configure.ac): Declare witness.
28605         * modules/double-slash-root (License): Relax license.
28606         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
28607         module.
28608         * lib/dirname.c (dir_len, mdir_name): Move...
28609         * lib/dirname-lgpl.c: ...into new file.
28610         * lib/basename.c (last_component, base_len): Move...
28611         * lib/basename-lgpl.c: ...into new file.
28612         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
28613         (gl_DIRNAME): Use it.
28614         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
28615         Mention new module.
28616         * modules/dirname-tests (Depends-on): Add progname.
28617         * tests/test-dirname.c (program_name): Delete.
28618
28619         mkdir: make safe for libraries
28620         * modules/mkdir (Depends-on): Drop xalloc.
28621         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
28622         exit.
28623
28624         tests: avoid some compiler warnings
28625         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
28626         literals.
28627         * tests/test-memchr.c (main): Avoid type mismatch.
28628         * tests/test-arpa_inet.c (main): Avoid unused parameters.
28629         * tests/test-base64.c (main): Likewise.
28630         * tests/test-getdelim.c (main): Likewise.
28631         * tests/test-gethostname.c (main): Likewise.
28632         * tests/test-getline.c (main): Likewise.
28633         * tests/test-netinet_in.c (main): Likewise.
28634         * tests/test-select.c (open_server_socket, main): Likewise.
28635         * tests/test-select-stdin.c (main): Likewise.
28636         * tests/test-sockets.c (main): Likewise.
28637         * tests/test-strsignal.c (main): Likewise.
28638         * tests/test-sys_select.c (main): Likewise.
28639         * tests/test-sys_socket.c (main): Likewise.
28640         * tests/test-u64.c (main): Likewise.
28641         * tests/test-xfprintf-posix.c (main): Likewise.
28642         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
28643
28644         sockets: avoid compiler warning
28645         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
28646
28647         maint: detect usage(1) and other suspicious exits
28648         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
28649
28650 2009-10-29  Jim Meyering  <meyering@redhat.com>
28651
28652         timespec: long-to-int truncation could make timespec_cmp malfunction
28653         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
28654         a multiple of 2^32 nanoseconds as no difference.
28655
28656 2009-10-28  Jim Meyering  <meyering@redhat.com>
28657
28658         fprintftime: wrap macro code argument in "do {...} while(0)"
28659         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
28660         cpy macro must be a statement that can be followed by a semicolon.
28661         Now that the else clause contains a comment and is hence longer
28662         than one line, I require curly braces.  That in turn requires
28663         that we wrap this code block in the standard do...while(0).
28664
28665         fprintftime: remove stray semicolon from previous change
28666         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
28667
28668         fprintftime: avoid a warning about ignored fwrite return value
28669         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
28670         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
28671         that is unsafe.
28672         * modules/fprintftime (Depends-on): Add ignore-value.
28673
28674         exclude: avoid an unwarranted warning
28675         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
28676
28677 2009-10-27  Eric Blake  <ebb9@byu.net>
28678
28679         fseek: avoid compilation failure when fflush is replaced
28680         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
28681         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
28682         module is in use.
28683         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
28684         module is not in use; since REPLACE_FSEEK worked otherwise.
28685         (GNULIB_FTELLO): Likewise for ftell.
28686         Reported by Ian Beckwith and others.
28687
28688 2009-10-27  Bruno Haible  <bruno@clisp.org>
28689
28690         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
28691         Reported by Jim Meyering.
28692
28693 2009-10-27  Jim Meyering  <jim@meyering.net>
28694             Bruno Haible  <bruno@clisp.org>
28695
28696         Avoid warning despite dropping the return value of fwrite.
28697         * lib/unicodeio.c: Include ignore-value.h.
28698         (fwrite_success_callback): Explicitly ignore fwrite's return value.
28699         * modules/unicodeio (Depends-on): Add ignore-value.
28700
28701 2009-10-26  Eric Blake  <ebb9@byu.net>
28702
28703         areadlinkat: fix fallback path
28704         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
28705         pointer and zero.
28706
28707 2009-10-22  Pádraig Brady  <P@draigBrady.com>
28708
28709         Use a better IO block size for modern systems
28710         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
28711         * lib/md2.c: Likewise.
28712         * lib/md4.c: Likewise.
28713         * lib/md5.c: Likewise.
28714         * lib/sha1.c: Likewise.
28715         * lib/sha256.c: Likewise.
28716         * lib/sha512.c: Likewise.
28717
28718 2009-10-22  Eric Blake  <ebb9@byu.net>
28719
28720         tests: avoid several compiler warnings
28721         * tests/test-getcwd.c (main): Avoid buffer underflow.
28722         * tests/test-getdate.c (main): String literals are not safe with
28723         putenv, so use setenv.  Declare unused argument.
28724         * modules/getdate-tests (Depends-on): Add setenv.
28725         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
28726         problems with string literals in char *.
28727         * tests/test-hash.c (main): Avoid shadowing declaration.
28728         (insert_new): Treat string literals as char const *.
28729         * tests/test-getopt.h (test_getopt): Likewise.
28730         (getopt_loop): Alter types to minimize casting elsewhere.
28731         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
28732         (test_getopt_long_posix): Likewise.
28733         (do_getopt_long): Add wrapper to minimize casting.
28734         * tests/test-atexit.c (clear_temp_file): Use void.
28735         * tests/test-areadlink-with-size.c (main): Declare unused
28736         arguments.
28737         * tests/test-areadlink.c (main): Likewise.
28738         * tests/test-areadlinkat-with-size.c (main): Likewise.
28739         * tests/test-areadlinkat.c (main): Likewise.
28740         * tests/test-canonicalize-lgpl.c (main): Likewise.
28741         * tests/test-canonicalize.c (main): Likewise.
28742         * tests/test-dirent-safer.c (main): Likewise.
28743         * tests/test-dirname.c (main): Likewise.
28744         * tests/test-dup2.c (main): Likewise.
28745         * tests/test-fchdir.c (main): Likewise.
28746         * tests/test-fcntl-h.c (main): Likewise.
28747         * tests/test-fcntl-safer.c (main): Likewise.
28748         * tests/test-fdopendir.c (main): Likewise.
28749         * tests/test-fdutimensat.c (main): Likewise.
28750         * tests/test-fflush.c (main): Likewise.
28751         * tests/test-filenamecat.c (main): Likewise.
28752         * tests/test-filevercmp.c (main): Likewise.
28753         * tests/test-fopen-safer.c (main): Likewise.
28754         * tests/test-fopen.c (main): Likewise.
28755         * tests/test-fpending.c (main): Likewise.
28756         * tests/test-fpurge.c (main): Likewise.
28757         * tests/test-freading.c (main): Likewise.
28758         * tests/test-fstatat.c (main): Likewise.
28759         * tests/test-fsync.c (main): Likewise.
28760         * tests/test-futimens.c (main): Likewise.
28761         * tests/test-getndelim2.c (main): Likewise.
28762         * tests/test-gettimeofday.c (main): Likewise.
28763         * tests/test-getopt.c (main): Likewise.
28764         * tests/test-i-ring.c (main): Likewise.
28765         * tests/test-inttypes.c (main): Likewise.
28766         * tests/test-link.c (main): Likewise.
28767         * tests/test-lstat.c (main): Likewise.
28768         * tests/test-math.c (main): Likewise.
28769         * tests/test-md5.c (main): Likewise.
28770         * tests/test-memchr2.c (main): Likewise.
28771         * tests/test-memrchr.c (main): Likewise.
28772         * tests/test-mkdir.c (main): Likewise.
28773         * tests/test-mkdirat.c (main): Likewise.
28774         * tests/test-mkfifoat.c (main): Likewise.
28775         * tests/test-open.c (main): Likewise.
28776         * tests/test-openat-safer.c (main): Likewise.
28777         * tests/test-openat.c (main): Likewise.
28778         * tests/test-quotearg.c (main): Likewise.
28779         * tests/test-rawmemchr.c (main): Likewise.
28780         * tests/test-readlink.c (main): Likewise.
28781         * tests/test-remove.c (main): Likewise.
28782         * tests/test-rename.c (main): Likewise.
28783         * tests/test-renameat.c (main): Likewise.
28784         * tests/test-rmdir.c (main): Likewise.
28785         * tests/test-sha1.c (main): Likewise.
28786         * tests/test-signal.c (main): Likewise.
28787         * tests/test-sigaction.c (main): Likewise.
28788         * tests/test-stat.c (main): Likewise.
28789         * tests/test-stat-time.c (main): Likewise.
28790         * tests/test-stddef.c (main): Likewise.
28791         * tests/test-stdint.c (main): Likewise.
28792         * tests/test-stdio.c (main): Likewise.
28793         * tests/test-stdlib.c (main): Likewise.
28794         * tests/test-strchrnul.c (main): Likewise.
28795         * tests/test-strerror.c (main): Likewise.
28796         * tests/test-string.c (main): Likewise.
28797         * tests/test-strtod.c (main): Likewise.
28798         * tests/test-strverscmp.c (main): Likewise.
28799         * tests/test-symlink.c (main): Likewise.
28800         * tests/test-symlinkat.c (main): Likewise.
28801         * tests/test-sys_stat.c (main): Likewise.
28802         * tests/test-sys_time.c (main): Likewise.
28803         * tests/test-time.c (main): Likewise.
28804         * tests/test-unistd.c (main): Likewise.
28805         * tests/test-unlink.c (main): Likewise.
28806         * tests/test-unlinkat.c (main): Likewise.
28807         * tests/test-utimens.c (main): Likewise.
28808         * tests/test-utimensat.c (main): Likewise.
28809         * tests/test-version-etc.c (main): Likewise.
28810         * tests/test-wchar.c (main): Likewise.
28811         * tests/test-wctype.c (main): Likewise.
28812         * tests/test-xprintf-posix.c (main): Likewise.
28813         * tests/test-posixtm.c (main): Likewise.
28814         (STREQ): Delete unused macro.
28815         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
28816         shadowed variables.
28817         * tests/test-memchr.c (main): Likewise.
28818
28819 2009-10-21  Eric Blake  <ebb9@byu.net>
28820
28821         areadlinkat: avoid failure on older glibc
28822         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
28823         rather than mis-comparing 0 against FUNC_RESULT of char*.
28824
28825 2009-10-21  Bruno Haible  <bruno@clisp.org>
28826
28827         * modules/stpncpy (License): Relicense under LGPLv2+.
28828         Reported by David Lutterkort <lutter@redhat.com>.
28829
28830 2009-10-20  Eric Blake  <ebb9@byu.net>
28831
28832         utimensat: work around Solaris 9 bug
28833         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
28834         has trailing slash bugs.
28835         * tests/test-lutimens.h (test_lutimens): Enhance test.
28836         * tests/test-utimens.h (test_utimens): Likewise.
28837         * doc/posix-functions/utime.texi (utime): Enhance documentation.
28838         * doc/posix-functions/utimes.texi (utimes): Likewise.
28839         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28840         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
28841         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
28842         * doc/posix-functions/futimens.texi (futimens): Likewise.
28843
28844         fdutimensat: new module
28845         * modules/fdutimensat: New file.
28846         * lib/fdutimensat.c (fdutimensat): Likewise.
28847         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
28848         * MODULES.html.sh (File system functions): Mention module.
28849         * modules/fdutimensat-tests: New test.
28850         * tests/test-fdutimensat.c: Likewise.
28851
28852         doc: regenerate INSTALL
28853         * doc/INSTALL: Reflect recent autoconf update.
28854         * doc/INSTALL.ISO: Likewise.
28855         * doc/INSTALL.UTF-8: Likewise.
28856
28857 2009-10-20  Pádraig Brady  <P@draigBrady.com>
28858
28859         acl: warn if ACL support is not detected
28860         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
28861
28862 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
28863
28864         * lib/nproc.h: Add extern "C" block for C++.
28865
28866 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
28867             Bruno Haible  <bruno@clisp.org>
28868
28869         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
28870         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
28871         * doc/posix-functions/isalpha.texi: Likewise.
28872         * doc/posix-functions/isblank.texi: Likewise.
28873         * doc/posix-functions/iscntrl.texi: Likewise.
28874         * doc/posix-functions/isdigit.texi: Likewise.
28875         * doc/posix-functions/isgraph.texi: Likewise.
28876         * doc/posix-functions/islower.texi: Likewise.
28877         * doc/posix-functions/isprint.texi: Likewise.
28878         * doc/posix-functions/ispunct.texi: Likewise.
28879         * doc/posix-functions/isspace.texi: Likewise.
28880         * doc/posix-functions/isupper.texi: Likewise.
28881         * doc/posix-functions/isxdigit.texi: Likewise.
28882
28883 2009-10-18  Bruno Haible  <bruno@clisp.org>
28884
28885         Tests for module 'isblank'.
28886         * modules/isblank-tests: New file.
28887         * tests/test-isblank.c: New file.
28888
28889         New module 'isblank'.
28890         * lib/isblank.c: New file.
28891         * m4/isblank.m4: New file.
28892         * modules/isblank: New file.
28893         * doc/posix-functions/isblank.texi: Mention the new module.
28894
28895 2009-10-18  Bruno Haible  <bruno@clisp.org>
28896
28897         New module 'ctype'.
28898         * lib/ctype.in.h: New file.
28899         * m4/ctype.m4: New file.
28900         * modules/ctype: New file.
28901         * doc/posix-headers/ctype.texi: Mention the new module.
28902
28903 2009-10-18  Jim Meyering  <meyering@redhat.com>
28904
28905         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
28906         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
28907         right after its initialization, rather than farther down.
28908         Keeping these in close proximity makes it easier to ensure
28909         that each such variable is initialized.  E.g.,
28910
28911             LIB_CLOCK_GETTIME=
28912             AC_SUBST([LIB_CLOCK_GETTIME])
28913
28914         This change also increments these serial numbers.
28915         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
28916         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
28917         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28918
28919 2009-10-18  Bruno Haible  <bruno@clisp.org>
28920
28921         Don't let environment variables perturb build.
28922         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
28923         (gl_PREREQ_GETHRXTIME): ... not here.
28924
28925 2009-10-18  Bruno Haible  <bruno@clisp.org>
28926
28927         Avoid symlink attack in localcharset module.
28928         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
28929         (O_NOFOLLOW): Define fallback.
28930         (get_charset_aliases): Don't open the file if it is a symbolic link.
28931         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
28932         gl_FCNTL_H.
28933         (gl_FCNTL_H): Require it.
28934         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
28935         * modules/localcharset (Files): Add m4/fcntl_h.m4.
28936         Reported by Fergal Glynn <fglynn@veracode.com>.
28937
28938 2009-10-18  Bruno Haible  <bruno@clisp.org>
28939
28940         Implement nproc for mingw.
28941         * lib/nproc.c: Include <windows.h>
28942         (num_processors): On native Windows platforms, try GetSystemInfo.
28943
28944 2009-10-18  Bruno Haible  <bruno@clisp.org>
28945
28946         Implement nproc for IRIX.
28947         * lib/nproc.c: Include <sys/sysmp.h>.
28948         (num_processors): On IRIX systems, try sysmp.
28949         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
28950
28951 2009-10-18  Bruno Haible  <bruno@clisp.org>
28952
28953         Implement nproc for HP-UX.
28954         * lib/nproc.c: Include <sys/pstat.h>
28955         (num_processors): On HP-UX systems, try pstat_getdynamic.
28956         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
28957         pstat_getdynamic.
28958
28959 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
28960             Bruno Haible  <bruno@clisp.org>
28961
28962         Implement nproc for NetBSD, OpenBSD.
28963         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
28964         (ARRAY_SIZE): New macro.
28965         (num_processors): On BSD systems, try sysctl of HW_NCPU.
28966         * m4/nproc.m4: New file.
28967         * modules/nproc (Files): Add m4/nproc.m4.
28968         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
28969         (Makefile.am): Instead, augment lib_SOURCES.
28970
28971 2009-10-18  Bruno Haible  <bruno@clisp.org>
28972
28973         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
28974         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
28975         sys/param.h.
28976
28977 2009-10-16  Eric Blake  <ebb9@byu.net>
28978
28979         utimensat: new module
28980         * modules/utimensat: New file.
28981         * lib/utimensat.c (utimensat): Likewise.
28982         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28983         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
28984         so we can work around Linux bugs.
28985         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28986         * modules/sys_stat (Makefile.am): Substitute them.
28987         * lib/sys_stat.in.h (utimensat): Declare it.
28988         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28989         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28990         * modules/utimensat-tests: New test.
28991         * tests/test-utimensat.c: Likewise.
28992
28993         utimens: let lutimens work on non-symlinks
28994         * lib/utimens.c (lutimens): Fall back to utimens rather than
28995         failing with ENOSYS, when file is not a symlink.
28996         (utimens): Reduce redirection.
28997         * tests/test-lutimens.h (test_lutimens): Update test to cover
28998         non-symlinks.
28999         * tests/test-utimens.h (test_utimens): Update test to cover
29000         symlinks.
29001         * tests/test-utimens.c (main): Update caller.
29002
29003         utimens: cache whether utimensat syscall works
29004         * lib/utimens.c (utimensat_works_really): New cache variable.
29005         (fdutimens, lutimens): Use it to avoid failing syscall.
29006
29007         test-stat-time, test-utimens: improve portability
29008         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
29009         ext4 on alpha, and for cygwin.
29010         * tests/test-utimens-common.h: New file.
29011         (nap): Factor delays into single function.
29012         * tests/test-lutimens.h (test_lutimens): Use new header.
29013         * tests/test-futimens.h (test_futimens): Likewise.
29014         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
29015         timestamps to occur from same machine, as was done previously for
29016         test_utimens.
29017         * modules/utimens-tests (Files): Ship new file.
29018         * modules/futimens-tests (Files): Likewise.
29019         Reported in part by Jim Meyering.
29020
29021         sys_stat: sort replacement declarations
29022         * lib/sys_stat.in.h: Sort declarations.
29023         * lib/futimens.c (futimens): Fix typo.
29024
29025 2009-10-15  Jim Meyering  <meyering@redhat.com>
29026
29027         don't let environment settings perturb build
29028         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
29029         could cause a configure-time and/or build-time malfunction.
29030         Typically, a configure-time function-in-library test is performed
29031         via code like this:
29032
29033           LIB_VAR=
29034           AC_SUBST([LIB_VAR])
29035           prefix_saved_LIBS=$LIBS
29036             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
29037                        [test "$ac_cv_search_FUNC" = "none required" ||
29038                         LIB_VAR=$ac_cv_search_FUNC])
29039           LIBS=$prefix_saved_LIBS
29040
29041         However, in each of the files affected by this change, the LIB_VAR=
29042         initialization was omitted.  Thus, when set in the environment, its
29043         value would propagate into generated Makefiles when FUNC is not found
29044         in LIB_NAME.
29045         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
29046         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
29047         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
29048
29049 2009-10-14  Eric Blake  <ebb9@byu.net>
29050
29051         fchdir: avoid infinite recursion in mingw
29052         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
29053         recursing.
29054
29055         test-stat-time: port to mingw
29056         * tests/test-stat-time.c (force_unlink): Return a value.
29057         (test_ctime) [W32]: Fix compilation error.
29058         (nap): Don't call usleep with too large an argument.  Use
29059         force_unlink.
29060         * doc/pastposix-functions/usleep.texi (usleep): Document the
29061         portability issue.
29062
29063 2009-10-13  Jim Meyering  <meyering@redhat.com>
29064
29065         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
29066         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
29067         * modules/pipe-filter-ii: Likewise.
29068         * modules/sys_socket-tests: Likewise.
29069         * modules/tsearch-tests: Likewise.
29070         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
29071         (check): Depend on it.
29072
29073 2009-10-12  Eric Blake  <ebb9@byu.net>
29074
29075         utimens-tests: port to NFS file systems
29076         * tests/test-utimens.h (test_utimens): Refactor utimecmp
29077         comparisons to avoid spurious failures from timestamp drift
29078         between NFS machines.
29079
29080 2009-10-12  Eric Blake  <ebb9@byu.net>
29081
29082         stat-time-tests: minor cleanups
29083         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
29084         * tests/test-stat-time.c (nap): Separate assignment from call.
29085         Suggested by Paolo Bonzini and Bruno Haible.
29086
29087         sys_stat: guarantee struct timespec
29088         * lib/sys_stat.in.h (includes): Always include <time.h>
29089         * modules/sys_stat (Depends-on): Add time.
29090         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
29091         mode_t permission values.
29092         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
29093         get at subsecond timestamps.
29094
29095 2009-10-10  Eric Blake  <ebb9@byu.net>
29096
29097         futimens: new module
29098         * modules/futimens: New file.
29099         * lib/futimens.c (futimens): Likewise.
29100         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
29101         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
29102         we can work around Linux bugs.
29103         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29104         * modules/sys_stat (Makefile.am): Substitute them.
29105         * lib/sys_stat.in.h (futimens): Declare it.
29106         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29107         * doc/posix-functions/futimens.texi (futimens): Likewise.
29108         * modules/futimens-tests: New test.
29109         * tests/test-futimens.c: Likewise.
29110
29111         utimens: introduce fdutimens
29112         * lib/utimens.h (fdutimens): New prototype.
29113         * lib/utimens.c (gl_futimens): Move guts...
29114         (fdutimens): ...to new interface.
29115         * tests/test-utimens.c (do_fdutimens): Use it.
29116
29117         utimens: add UTIME_NOW and UTIME_OMIT support
29118         * lib/utimens.c (validate_timespec, update_timespec): New helper
29119         functions.
29120         (gl_futimens, lutimens): Use them.
29121         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
29122         stdbool, sys_stat.
29123         (Link): Mention resulting library dependency.
29124         * modules/utimecmp (Link): Likewise.
29125         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
29126         (Makefile.am): Pick up library dependency.
29127         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
29128         definition.
29129         * tests/test-sys_stat.c: Test the definitions.
29130         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
29131         * NEWS: Document library dependency.
29132
29133         utimecmp: support symlink timestamps
29134         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
29135         hashing when possible.  Use pathconf when available.
29136         (SYSCALL_RESOLUTION): Recognize tighter resolution.
29137         * modules/utimecmp (Depends-on): Add lstat.
29138
29139         utimens: add lutimens interface
29140         * lib/utimens.c (lutimens): New function.
29141         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
29142         * lib/utimens.h (lutimens): Declare new interface.
29143         * tests/test-utimens.c (main): Enhance test.
29144         * tests/test-lutimens.h (test_lutimens): New file.
29145         * modules/utimens-tests (Files): Distribute it.
29146         (Depends-on): Add symlink.
29147         (configure.ac): Check for usleep.
29148
29149         utimens: validate futimens usage
29150         * lib/utimens.c (gl_futimens): Require valid fd up front, using
29151         fewer syscalls on failure later on.  Avoid compiler warning on
29152         mingw.
29153         * modules/utimens (Depends-on): Add dup2.
29154
29155         utimens: add test
29156         * modules/utimens-tests: New test.
29157         * tests/test-utimens.h: New file.
29158         * tests/test-futimens.h: Likewise.
29159         * tests/test-utimens.c: Likewise.
29160
29161         doc: mention timestamp portability issues
29162         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
29163         instead.
29164         * doc/posix-functions/utime.texi (utime): Likewise.
29165         * doc/posix-functions/utimes.texi (utimes): Likewise.
29166         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
29167         instead.
29168         * doc/posix-functions/futimens.texi (futimens): Mention utimens
29169         module.
29170         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
29171         Mention weakness with symlink timestamps.
29172         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
29173         to utimensat/futimens instead.
29174         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
29175
29176         test-dup2: enhance test
29177         * tests/test-dup2.c (main): Also check AT_FDCWD.
29178
29179         test-stat-time: avoid more spurious failures
29180         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
29181         xfs; and avoid race if the two timestamps cross quantization edge.
29182
29183         relocatable: prefer 'file system' over 'filesystem'
29184         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
29185         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
29186         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
29187         * doc/relocatable.texi (Enabling Relocatability): Likewise.
29188         * lib/relocatable.c (compute_curr_prefix): Likewise.
29189
29190 2009-10-10  Jim Meyering  <meyering@redhat.com>
29191
29192         stat-time-tests: check for the usleep function
29193         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
29194
29195 2009-10-10  Bruno Haible  <bruno@clisp.org>
29196
29197         * modules/xnanosleep: Put the Link section after the Include section.
29198
29199 2009-10-09  Eric Blake  <ebb9@byu.net>
29200
29201         dup2: work around FreeBSD 6.1 bug
29202         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
29203         * doc/posix-functions/dup2.texi (dup2): Document it.
29204         Reported by Nelson H. F. Beebe and Jim Meyering.
29205
29206         test-stat-time: port to buggy NFS clients
29207         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
29208         (test_ctime): Also skip test if mtime and ctime are skewed.
29209
29210         maint: prefer 'file system' over 'filesystem'
29211         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
29212         * doc/posix-functions/lstat.texi (lstat): Likewise.
29213         * lib/file-has-acl.c (file_has_acl): Likewise.
29214         * lib/fwriteerror.c [TEST]: Likewise.
29215         * tests/test-areadlink.h (test_areadlink): Likewise.
29216         * tests/test-areadlinkat-with-size.c (main): Likewise.
29217         * tests/test-areadlinkat.c (main): Likewise.
29218         * tests/test-canonicalize-lgpl.c (main): Likewise.
29219         * tests/test-canonicalize.c (main): Likewise.
29220         * tests/test-fstatat.c (main): Likewise.
29221         * tests/test-linkat.c (main): Likewise.
29222         * tests/test-lstat.h (test_lstat_func): Likewise.
29223         * tests/test-mkdir.h (test_mkdir): Likewise.
29224         * tests/test-readlink.h (test_readlink): Likewise.
29225         * tests/test-remove.c (main): Likewise.
29226         * tests/test-rename.h (test_rename): Likewise.
29227         * tests/test-renameat.c (main): Likewise.
29228         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29229         * tests/test-symlink.h (test_symlink): Likewise.
29230         * tests/test-symlinkat.c (main): Likewise.
29231         * tests/test-unlink.h (test_unlink_func): Likewise.
29232         * tests/test-unlinkat.c (main): Likewise.
29233
29234         maint: make realtime library usage explicit
29235         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
29236         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
29237         * modules/settime (Link): Likewise.
29238         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
29239
29240         test-stat-time: speed up execution
29241         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
29242         warning on mingw.
29243         (nap): New helper function.
29244         (prepare_test): Use it to reduce sleep time.
29245         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
29246         execution.
29247         * modules/stat-time-tests (configure.ac): Check for usleep.
29248
29249 2009-10-09  Jim Meyering  <meyering@redhat.com>
29250
29251         selinux-h: always use getfilecon wrappers
29252         * lib/getfilecon.c: New file.
29253         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
29254         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
29255         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
29256         (fgetfilecon): Provide a stub.
29257         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
29258         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
29259         file unconditionally.
29260         When <selinux/selinux.h> is found, arrange to use wrappers.
29261         * modules/selinux-h (Files): Add getfilecon.c.
29262         (Makefile.am): Substitute include-next-related bits
29263         into the now-always-generated selinux/selinux.h file.
29264         * doc/glibc-functions/lgetfilecon.texi: New file.
29265         * doc/glibc-functions/fgetfilecon.texi: New file.
29266         * doc/glibc-functions/getfilecon.texi: New file.
29267         * doc/glibc-functions/getfilecon-desc.texi: New file.
29268         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
29269         which to pull in the new files.
29270         * MODULES.html.sh (Misc): Add selinux-h.
29271
29272 2009-10-08  Jim Meyering  <meyering@redhat.com>
29273
29274         unistd: fix comment typo
29275         * lib/unistd.in.h (euidaccess): Fix a comment typo.
29276
29277 2009-10-08  Eric Blake  <ebb9@byu.net>
29278
29279         areadlink: use SIZE_MAX consistently
29280         * modules/areadlink (Depends-on): Add stdint.
29281         * modules/areadlink-with-size (Depends-on): Likewise.
29282         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
29283         gives NULL; drop sys/types, since unistd gives size_t; and add
29284         stdint for SIZE_MAX.
29285         (SIZE_MAX): Rely on headers.
29286         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
29287         and add stdint.
29288         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
29289         (SIZE_MAX): Likewise.
29290         (INITIAL_BUF_SIZE): Turn into enum.
29291         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
29292
29293 2009-10-08  Jim Meyering  <meyering@redhat.com>
29294
29295         areadlinkat: avoid compilation failure
29296         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
29297         Fix typo in comment.
29298
29299 2009-10-07  Eric Blake  <ebb9@byu.net>
29300
29301         areadlinkat-with-size: new module
29302         * modules/areadlinkat-with-size: New module.
29303         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
29304         * lib/areadlink.h (areadlinkat): Declare it.
29305         * MODULES.html.sh (File system functions): Mention it.
29306         * modules/areadlinkat-with-size-tests: New test.
29307         * tests/test-areadlinkat-with-size.c: New file.
29308
29309         xreadlinkat: new module
29310         * modules/xreadlinkat: New module.
29311         * lib/xreadlinkat.c (xreadlinkat): New file.
29312         * lib/xreadlink.h (xreadlinkat): Declare it.
29313         * MODULES.html.sh (File system functions): Mention it.
29314
29315         areadlinkat: new module
29316         * lib/at-func.c (FUNC_FAIL): New define.
29317         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
29318         * modules/areadlinkat: New module.
29319         * lib/linkat.c (areadlinkat): Move...
29320         * lib/areadlinkat.c (areadlinkat): ...to new file.
29321         * lib/areadlink.h (areadlinkat): Declare it.
29322         * modules/linkat (Depends-on): Add areadlinkat.
29323         * MODULES.html.sh (File system functions): Mention it.
29324         * modules/areadlinkat-tests: New test.
29325         * tests/test-areadlinkat.c: New file.
29326
29327         areadlink, areadlink-with-size: add tests
29328         * modules/areadlink-tests: New test.
29329         * modules/areadlink-with-size-tests: Likewise.
29330         * tests/test-areadlink.h: New file.
29331         * tests/test-areadlink.c: Likewise.
29332         * tests/test-areadlink-with-size.c: Likewise.
29333
29334         maint: minor cleanups
29335         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
29336         _UNUSED_PARAMETER_ instead.
29337         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
29338         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
29339         * modules/linkat-tests (Files): Distribute test-link.h.
29340
29341         openat, utimens: whitespace cleanup
29342         * lib/openat.c: Prefer space throughout, rather than mix of 8
29343         spaces vs. tabs.
29344         * lib/at-func.c: Likewise.
29345         * lib/utimens.c: Likewise.
29346
29347         openat: avoid using wrong fd
29348         * lib/openat.c (openat_permissive): Reject user's fd if saving the
29349         working directory chooses same fd.
29350         * lib/at-func.c (AT_FUNC_NAME): Likewise.
29351
29352         mkdir, mkdirat: fix cygwin 1.5.x bug
29353         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
29354         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
29355         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
29356         bug.
29357         (gl_PREREQ_MKDIR): Delete unused macro.
29358         * modules/mkdir (Files): Track file rename.
29359         (configure.ac): Update macro name.
29360         * modules/openat (Depends-on): Add mkdir.
29361         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
29362
29363         mkdir, mkdirat: add tests
29364         * modules/mkdir-tests: New test.
29365         * tests/test-mkdir.h: New file.
29366         * tests/test-mkdir.c: Likewise.
29367         * tests/test-mkdirat.c: Likewise.
29368         * modules/openat-tests (Files): Add new files.
29369         (Makefile.am): Run new test.
29370
29371 2009-10-06  Eric Blake  <ebb9@byu.net>
29372
29373         doc: tweak *at function documentation
29374         * doc/posix-functions/faccessat.texi (faccessat): Mention
29375         known issue with replacement.
29376         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
29377         * doc/posix-functions/linkat.texi (linkat): Likewise.
29378         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
29379         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
29380         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29381         * doc/posix-functions/renameat.texi (renameat): Likewise.
29382         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
29383
29384         openat: fix GNU/Hurd bug in unlinkat
29385         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
29386         broken.
29387         * doc/posix-functions/unlink.texi (unlink): Document this.
29388         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
29389
29390         fdopendir: fix GNU/Hurd bug
29391         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
29392         allowing non-directory fds.
29393         * lib/fdopendir.c (rpl_fdopendir): Work around it.
29394         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
29395         * modules/dirent (Makefile.am): Substitute it.
29396         * lib/dirent.in.h (fdopendir): Declare replacement.
29397         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
29398         * tests/test-fdopendir.c (main): Test something other than
29399         /dev/null, since on Hurd that behaves like a directory.
29400
29401         test-symlink: port to GNU/Hurd
29402         * tests/test-symlink.h (test_symlink): Relax expected errno.
29403
29404         doc: tweak more cygwin information
29405         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
29406         now compatible with glibc.
29407         * doc/posix-functions/getopt.texi (getopt): Likewise.
29408
29409         getopt-gnu: add another test
29410         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
29411         guarantee behavior relied on by m4.
29412         * tests/test-getopt.c (main): Use it.
29413         * modules/getopt-posix-tests (Depends-on): Add setenv.
29414         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
29415
29416         getopt: fix compilation on darwin
29417         * lib/getopt.in.h (includes): Leave breadcrumbs during system
29418         include.
29419         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
29420         Reported by Ludovic Courtès.
29421
29422 2009-10-06  Bruno Haible  <bruno@clisp.org>
29423
29424         * modules/size_max (Description): Discourage its use.
29425         Reported by Simon Josefsson.
29426
29427 2009-10-06  Jim Meyering  <meyering@redhat.com>
29428
29429         linkat: avoid compilation failure
29430         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
29431
29432 2009-10-05  Eric Blake  <ebb9@byu.net>
29433
29434         linkat: support Linux 2.6.17
29435         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
29436         linkat on Linux, but allow cache variable override.
29437         * lib/linkat.c (rpl_linkat): Define override.
29438         * modules/linkat (Depends-on): Add symlinkat.
29439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
29440         * modules/unistd (Makefile.am): Substitute it.
29441         * lib/unistd.in.h (linkat): Declare replacement.
29442         Reported by Pádraig Brady.
29443
29444         quotearg: port test to systems with C.UTF-8 locale
29445         * tests/test-quotearg.c (struct result_strings): Add another
29446         member, differentiating between C.ASCII and C.UTF-8 handling.
29447         (compare_strings): Add parameter.
29448         (main): Adjust all callers.
29449
29450         getopt: avoid clash with FreeBSD _getopt_internal
29451         * lib/getopt.in.h (_getopt_internal): Override the name.
29452         * lib/getopt_int.h (includes): Pick up any overrides.
29453         Reported by Reuben Thomas.
29454
29455         hash: allow C89 compilation
29456         * lib/hash.c (check_tuning): Move declaration before statement.
29457         Reported by Reuben Thomas.
29458
29459 2009-10-05  Karl Berry  <karl@gnu.org>
29460
29461         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
29462
29463 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
29464             Bruno Haible  <bruno@clisp.org>
29465
29466         * lib/uname.c (uname): Use a table-driven algorithm to compute
29467         Windows NT versions.
29468
29469 2009-10-04  Bruno Haible  <bruno@clisp.org>
29470
29471         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
29472         program_invocation_short_name.
29473         * modules/progname (configure.ac): Test for presence of
29474         program_invocation_short_name.
29475         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
29476
29477 2009-10-04  Bruno Haible  <bruno@clisp.org>
29478
29479         * lib/progname.c (set_program_name): Fix comment.
29480         Reported by Jim Meyering.
29481
29482 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
29483             Bruno Haible  <bruno@clisp.org>
29484
29485         * lib/uname.c: Include <string.h>.
29486         (uname): Do only one call to GetVersionEx in the common case.
29487
29488 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
29489             Bruno Haible  <bruno@clisp.org>
29490
29491         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
29492         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
29493         (uname): Add support for Windows CE and various non-x86 CPU types.
29494
29495 2009-10-03  Bruno Haible  <bruno@clisp.org>
29496
29497         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
29498         invocation to tests/configure.ac.
29499         Reported by Ian Beckwith <ianb@erislabs.net>.
29500
29501 2009-10-02  Eric Blake  <ebb9@byu.net>
29502
29503         fchdir: avoid compiler warning
29504         * lib/fchdir.c (canonicalize_file_name)
29505         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
29506
29507         test-open: support mingw errno values
29508         * tests/test-open.h (test_open): Relax test.
29509         * tests/test-fopen.h (test_fopen): Likewise.
29510         * tests/test-openat-safer.c (main): Likewise.
29511
29512         open: fix opening directory on mingw
29513         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
29514
29515         test-open: on GNU/Hurd, /dev/null is a directory
29516         * tests/test-fopen.h (main): Rename...
29517         (test_fopen): ...to this.  Use a guaranteed non-directory when
29518         confirming open behavior on trailing slash.
29519         * tests/test-openat-safer.c (main): Likewise.
29520         * tests/test-open.h (main): Likewise....
29521         (test_open): ...to this.
29522         * tests/test-fopen.c (main): Adjust caller.
29523         * tests/test-fopen-safer.c (main): Likewise.
29524         * tests/test-open.c (main): Likewise.
29525         * tests/test-fcntl-safer.c (main): Likewise.
29526         Reported by Samuel Thibault.
29527
29528         rename, fchdir: don't ignore chdir failure
29529         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
29530         * lib/rename.c (rpl_rename) [W32]: Likewise.
29531         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
29532         an empty destination directory if source cannot be renamed,
29533         although there is still possibility for failure.
29534         * doc/posix-functions/rename.texi (rename): Document the race.
29535         Reported by Jim Meyering.
29536
29537         maint: cleanup whitespace in recent commits
29538         * lib/rename.c (rpl_rename): Remove tabs.
29539         * tests/test-link.h (test_link): Likewise.
29540         * lib/fchdir.c (get_name): Likewise.
29541         Reported by Jim Meyering.
29542
29543 2009-10-02  Ben Pfaff  <blp@gnu.org>
29544
29545         relocatable-prog-wrapper: Add missing dependency on
29546         double-slash-root.
29547         * modules/relocatable-prog-wrapper: Add dependency.
29548         Reported by Ian Beckwith <ianb@erislabs.net>.
29549
29550 2009-10-02  Eric Blake  <ebb9@byu.net>
29551
29552         renameat: fix Solaris bugs
29553         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
29554         needed fixing.
29555         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
29556         * modules/stdio (Makefile.am): Substitute it.
29557         * lib/stdio.in.h (renameat): Declare replacement.
29558         * lib/renameat.c (rpl_renameat): Implement fix.
29559
29560         renameat: new module
29561         * modules/renameat: New file.
29562         * lib/renameat.c (renameat): Likewise.
29563         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
29564         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
29565         * modules/stdio (Makefile.am): Substitute them.
29566         * lib/stdio.in.h (renameat): Declare it.
29567         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29568         * doc/posix-functions/renameat.texi (renameat): Likewise.
29569         * modules/renameat-tests: New test.
29570         * tests/test-renameat.c: Likewise.
29571
29572         rename: fix mingw bugs
29573         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
29574         directory overwrite bugs.
29575
29576         rename: fix another cygwin 1.5 bug
29577         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
29578         checks.
29579         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
29580         unnecessary cygwin workarounds.  Also work around bug with moving
29581         full directory onto an empty one.
29582         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
29583
29584         rename-dest-slash: merge into rename module
29585         * modules/rename-dest-slash (Status): Mark obsolete.
29586         (Depends-on): Add rename.
29587         (Files): Let rename do it all.
29588         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
29589         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
29590         * m4/rename-dest-slash.m4: ...so this file can be deleted.
29591         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
29592         * lib/rename.c (rpl_rename): Update comments.
29593
29594         rename: fix cygwin 1.5.x bugs
29595         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
29596         * lib/rename.c (rpl_rename): Work around them.
29597         * modules/rename (Depends-on): Add same-inode.
29598
29599         rename: fix Solaris 10 bug
29600         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
29601         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
29602         was the only bug.
29603
29604         rename: fix Solaris 9 bug
29605         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
29606         on non-directory.  Avoid calling exit.
29607         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
29608         strdup.
29609         * modules/rename-tests (Depends-on): Drop lstat.
29610         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
29611         (gl_PREREQ_RENAME): Delete unused macro.
29612
29613         rename-dest-slash: fix NetBSD bug
29614         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
29615         links.
29616         * modules/rename-dest-slash (Depends-on): Add same-inode.
29617
29618         rename-tests: new test, exposes several platform bugs
29619         * modules/rename-tests: New file.
29620         * tests/test-rename.h: Likewise.
29621         * tests/test-rename.c: Likewise.
29622         * doc/posix-functions/rename.texi (rename): Improve documentation,
29623         including bugs that will eventually be fixed in gnulib.
29624
29625 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
29626
29627         * lib/uname.c: Include <stdlib.h>
29628         (uname): Assume version info is available.
29629
29630 2009-10-02  Jim Meyering  <meyering@redhat.com>
29631
29632         gnu-web-doc-update: correct --help output
29633         * build-aux/gnu-web-doc-update: Make --help output relevant.
29634
29635         gnu-web-doc-update: add standard options
29636         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
29637
29638         gnu-web-doc-update: New module.
29639         Use this script to automatically update the on-line web documentation
29640         for your GNU project at http://www.gnu.org/software/$pkg/manual/
29641         * modules/gnu-web-doc-update: New file, from coreutils.
29642         * build-aux/gnu-web-doc-update: New script.
29643
29644 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
29645
29646         link: LoadLibrary is not needed.
29647         * lib/link.c: Use GetModuleHandle.
29648
29649 2009-10-01  Eric Blake  <ebb9@byu.net>
29650
29651         getopt: bump serial number
29652         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
29653         change.
29654
29655         tests: tighten link, rmdir, and remove tests
29656         * tests/test-link.h (includes): No need to use <config.h> here.
29657         Clean up if directory hard link was created, otherwise test for
29658         trailing '.'.
29659         * tests/test-linkat.c (main): Simplify.
29660         * tests/test-remove.c (main): Enhance test for trailing '.'.
29661         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29662
29663 2009-10-01  Jim Meyering  <meyering@redhat.com>
29664
29665         maint.mk: requiring "make major" was annoying, for a "minor" release.
29666         What is intended is "stable", to contrast with alpha and beta,
29667         so require "make stable", not "make major".
29668         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
29669         (get_tool_versions): Likewise.
29670         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
29671
29672 2009-09-30  Ben Pfaff  <blp@gnu.org>
29673
29674         Fix broken build of replacement for Windows tmpfile().
29675         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
29676         flags argument added along with the 'mkostemp' module.
29677
29678 2009-09-28  Bruno Haible  <bruno@clisp.org>
29679
29680         Avoid identifier clash with POSIX function 'remove' defined as a macro.
29681         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
29682         to 'remove_elt'.
29683         (gl_list_remove): Update.
29684         * lib/gl_list.c (gl_list_remove): Update.
29685         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
29686         to 'remove_elt'.
29687         (gl_oset_remove): Update.
29688         * lib/gl_list.c (gl_oset_remove): Update.
29689         Reported by Eric Blake.
29690
29691 2009-09-28  Eric Blake  <ebb9@byu.net>
29692
29693         doc: mention yet more cygwin 1.7 status
29694         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
29695         cygwin.
29696         * doc/glibc-functions/execvpe.texi (execvpe): New file.
29697         * doc/gnulib.texi (Glibc unistd.h): Mention it.
29698
29699         argp: fix test failure
29700         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
29701         that are not upper-case.  Pass correct range to tolower.
29702
29703 2009-09-27  Jim Meyering  <meyering@redhat.com>
29704
29705         test-yesno: work around sparc-dash here-document infelicity
29706         Without this change, the literal \177 byte in a here document
29707         would make dash 0.5.5.1-3 access uninitialized memory.
29708         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
29709         Instead, use a marker, "@", and filter through tr to create the desired
29710         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
29711
29712 2009-09-27  Bruno Haible  <bruno@clisp.org>
29713
29714         Disable untested support for new flavours of ACLs on AIX.
29715         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
29716         progress.
29717         * lib/set-mode-acl.c (qset_acl): Likewise.
29718
29719 2008-12-07  Bruno Haible  <bruno@clisp.org>
29720
29721         Add support for new flavours of ACLs on AIX. (Untested.)
29722         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
29723         (file_has_acl): Add support for newer AIX.
29724         * lib/set-mode-acl.c (qset_acl): Likewise.
29725         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
29726         Rainer Tammer <tammer@tammer.net>.
29727
29728 2009-09-26  Eric Blake  <ebb9@byu.net>
29729
29730         argp: fix compilation of getopt
29731         * lib/getopt.in.h (includes): Use different guard than glibc.
29732         Reported by Sergey Poznyakoff.
29733
29734         doc: mention more cygwin 1.7 status
29735         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
29736         bug.
29737         * doc/posix-functions/execl.texi (execl): Likewise.
29738         * doc/posix-functions/execle.texi (execle): Likewise.
29739         * doc/posix-functions/execlp.texi (execlp): Likewise.
29740         * doc/posix-functions/execv.texi (execv): Likewise.
29741         * doc/posix-functions/execve.texi (execve): Likewise.
29742         * doc/posix-functions/execvp.texi (execvp): Likewise.
29743         * doc/glibc-functions/canonicalize_file_name.texi
29744         (canonicalize_file_name): Cygwin 1.7 now provides this.
29745         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
29746         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
29747         on AT_SYMLINK_NOFOLLOW.
29748
29749 2009-09-24  Eric Blake  <ebb9@byu.net>
29750
29751         test-linkat: make test more robust
29752         * tests/test-linkat.c (main): Avoid collision with EEXIST.
29753
29754         getopt: fix inclusion guards for cygwin
29755         * modules/getopt-posix (Depends-on): Add include-next.
29756         (Makefile.am): Substitute more items in replacement header.
29757         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
29758         <getopt.h>.
29759         * lib/getopt.in.h (includes): Use split inclusion guard, and
29760         prefer <getopt.h> over include <unistd.h> when one is present.
29761         (option): Also override name of 'struct option'.
29762
29763         same-inode: revert prior change; it is not yet ready
29764         * NEWS: Undo mention of this change.
29765         * lib/same-inode.h (same-inode.h): Undo tri-state change.
29766         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
29767         * lib/cycle-check.c (cycle_check): Likewise.
29768         * lib/same.c (same_name): Likewise.
29769         * lib/at-func2.c (at_func2): Likewise.
29770
29771 2009-09-23  Eric Blake  <ebb9@byu.net>
29772
29773         linkat: new module
29774         * modules/linkat: New file.
29775         * lib/at-func2.c (at_func2): Likewise.
29776         * lib/linkat.c (linkat): Likewise.
29777         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
29778         * lib/openat-priv.h (at_func2): Add declaration.
29779         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
29780         * modules/unistd (Makefile.am): Substitute them.
29781         * lib/unistd.in.h (linkat): Declare it.
29782         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29783         * doc/posix-functions/linkat.texi (linkat): Likewise.
29784         * doc/posix-functions/link.texi (link): Tweak wording.
29785         * tests/test-link.c (main): Move guts...
29786         * tests/test-link.h (test_link): ...into new file.
29787         * modules/linkat-tests: New test.
29788         * tests/test-linkat.c: Likewise.
29789         * modules/link-tests (Files): Ship new file.
29790         (Depends-on): Add stdbool.
29791
29792         dirname: add library-safe mdir_name
29793         * lib/dirname.h (mdir_name): New prototype.
29794         * lib/dirname.c (dir_name): Move guts...
29795         (mdir_name): ...to new function that avoids xalloc_die.
29796
29797         fchdir: another mingw fix
29798         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
29799         * lib/fchdir.c (get_name): New helper method; skips canonicalize
29800         on mingw (where it has not yet been ported), and make it optional
29801         elsewhere.
29802         (_gl_register_fd): Use it.
29803
29804         same-inode: make SAME_INODE tri-state, to port to mingw
29805         * NEWS: Mention this change.
29806         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
29807         st_ino always being 0.
29808         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
29809         * lib/cycle-check.c (cycle_check): Likewise.
29810         * lib/same.c (same_name): Likewise.
29811
29812         lstat: avoid mingw compilation error
29813         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
29814         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
29815         lstat ourselves.
29816         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
29817         was adequate.
29818         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
29819         the checks for lstat.
29820         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
29821
29822         link: fix test failure on Solaris 9
29823         * lib/link.c (rpl_link): Don't assume link will catch bogus
29824         trailing slash on source.
29825
29826         test-symlinkat: enhance test
29827         * tests/test-readlink.c (main): Move guts...
29828         * tests/test-readlink.h (test_readlink): ...into new file.
29829         * tests/test-symlink.c (main): Move guts...
29830         * tests/test-symlink.h (test_symlink): ...into new file.
29831         * tests/test-symlinkat.c (main): Use new files for further
29832         coverage.
29833         (do_symlink, do_readlink): New helper functions.
29834         * modules/symlink-tests (Files): Ship new file.
29835         (Depends-on): Add stdbool.
29836         * modules/readlink-tests (Files): Ship new file.
29837         (Depends-on): Add stdbool.
29838         * modules/symlinkat-tests (Files): Use new files.
29839
29840 2009-09-23  Eric Blake  <ebb9@byu.net>
29841
29842         readlink: document portability issue with symlink length
29843         * doc/posix-functions/lstat.texi (lstat): Mention that some file
29844         systems have bogus st_size on symlinks, and mention the
29845         areadlink-with-size module.
29846         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
29847         * doc/posix-functions/readlink.texi (readlink): Mention the
29848         areadlink module, and ERANGE failure.
29849         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29850         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
29851
29852         readlink: fix Solaris 9 bug with trailing slash
29853         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
29854         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
29855         * doc/posix-functions/readlink.texi (readlink): Document this.
29856         * modules/readlink-tests: New test.
29857         * tests/test-readlink.c: Likewise.
29858
29859         readlink: fix cygwin 1.5.x bug with return type
29860         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
29861         * lib/unistd.in.h (readlink): Use ssize_t.
29862         * lib/readlink.c (readlink): Likewise.
29863         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29864         * modules/unistd (Makefile.am): Substitute it.
29865         * lib/unistd.in.h (readlink): Declare replacement.
29866         * doc/posix-functions/readlink.texi (readlink): Document this.
29867
29868         symlink: use throughout gnulib
29869         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
29870         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
29871         symlink is not used.
29872         * modules/symlinkat (Depends-on): Add symlink.
29873         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29874         * modules/canonicalize-tests (Depends-on): Likewise.
29875         * modules/lstat-tests (Depends-on): Likewise.
29876         * modules/openat-tests (Depends-on): Likewise.
29877         * modules/remove-tests (Depends-on): Likewise.
29878         * modules/rmdir-tests (Depends-on): Likewise.
29879         * modules/unlink-tests (Depends-on): Likewise.
29880         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
29881         * tests/test-canonicalize.c (symlink): Likewise.
29882         * tests/test-fstatat.c (symlink): Likewise.
29883         * tests/test-lstat.c (symlink): Likewise.
29884         * tests/test-remove.c (symlink): Likewise.
29885         * tests/test-rmdir.c (symlink): Likewise.
29886         * tests/test-unlink.c (symlink): Likewise.
29887         * tests/test-unlinkat.c (symlink): Likewise.
29888
29889         symlink: new module, for Solaris 9 bug
29890         * modules/symlink: New file.
29891         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
29892         * lib/symlink.c: Likewise.
29893         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
29894         * modules/unistd (Makefile.am): Substitute them.
29895         * lib/unistd.in.h (symlink): Declare replacement.
29896         * MODULES.html.sh (File system functions): Mention it.
29897         * doc/posix-functions/symlink.texi (symlink): Likewise.
29898         * modules/symlink-tests: New test.
29899         * tests/test-symlink.c: Likewise.
29900
29901 2009-09-23  Bruno Haible  <bruno@clisp.org>
29902
29903         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
29904         when needed.
29905         Test case: gnulib-tool --import --with-tests atexit inttypes.
29906         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
29907
29908 2009-09-23  Bruno Haible  <bruno@clisp.org>
29909
29910         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
29911         subcommand, not in a subshell.
29912
29913 2009-09-22  Eric Blake  <ebb9@byu.net>
29914
29915         unistd: sort replacement declarations
29916         * lib/unistd.in.h: Sort declarations.
29917
29918         open, openat: minor optimization
29919         * lib/open.c (open): If open succeeded, len is non-zero.
29920         * lib/openat.c (rpl_openat): Likewise.
29921
29922         link-follow: ensure correct result
29923         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
29924         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
29925         distinguish between possible failures.
29926
29927 2009-09-21  Eric Blake  <ebb9@byu.net>
29928
29929         fts: avoid compiler warning
29930         * lib/fts.c (dirent_inode_sort_may_be_useful)
29931         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
29932
29933 2009-09-19  Bruno Haible  <bruno@clisp.org>
29934
29935         * lib/progreloc.c (canonicalize_file_name): New declaration.
29936
29937 2009-09-19  Eric Blake  <ebb9@byu.net>
29938
29939         link: fix quoting
29940         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
29941
29942         openat: fix openat bugs on Solaris 9
29943         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
29944         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
29945         * modules/openat (Depends-on): Add open.
29946         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
29947         * modules/fcntl-h (Makefile.am): Substitute it.
29948         * lib/fcntl.in.h (openat): Declare replacement.
29949         * doc/posix-functions/openat.texi (openat): Document this.
29950
29951         openat: move fstatat and unlinkat into correct files
29952         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
29953         compiled.
29954         * lib/openat.c (fstatat, unlinkat): Move...
29955         * lib/fstatat.c (fstatat): ...into correct files.
29956         * lib/unlinkat.c (unlinkat): Likewise.
29957
29958         openat: fix unlinkat bugs on Solaris 9
29959         * lib/unlinkat.c (unlinkat): New file.
29960         * modules/openat (Depends-on): Add unlink.
29961         (Files): Distribute it.
29962         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
29963         trailing slash behavior is broken.
29964         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29965         * modules/unistd (Makefile.am): Substitute it.
29966         * lib/unistd.in.h (unlinkat): Declare replacement.
29967         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
29968
29969         openat: fix fstatat bugs on Solaris 9
29970         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
29971         stat.
29972         * doc/posix-functions/fstatat.texi (fstatat): Document this.
29973
29974         test-unlinkat: enhance test, to expose Solaris 9 bug
29975         * tests/test-unlink.c (main): Factor guts...
29976         * tests/test-unlink.h (test_rmdir_func): ...into new file.
29977         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
29978         * tests/test-rmdir.c (main): Adjust caller.
29979         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
29980         (unlinker): New helper function.
29981         (rmdirat): Enhance check.
29982         * modules/rmdir-tests (Depends-on): Add stdbool.
29983         * modules/unlink-tests (Depends-on): Likewise.
29984         (Files): Add test-unlink.h.
29985         * modules/openat-tests (Files): Likewise.
29986         (Depends-on): Add unlinkdir.
29987
29988         test-fstatat: new test, to expose Solaris 9 bugs
29989         * tests/test-stat.c (main): Factor guts...
29990         * tests/test-stat.h (test_stat_func): ...into new file.
29991         * tests/test-lstat.c (main): Factor guts...
29992         * tests/test-lstat.h (test_lstat_func): ...into new file.
29993         * tests/test-fstatat.c: New file.
29994         * modules/stat-tests (Files): Add test-stat.h.
29995         * modules/lstat-tests (Files): Add test-lstat.h.
29996         (Depends-on): Add stdbool.
29997         * modules/openat-tests (Depends-on): Add pathmax.
29998         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
29999         (Makefile.am): Run new test.
30000
30001         remove: new module, for mingw and Solaris 9 bugs
30002         * modules/remove: New file.
30003         * lib/remove.c: Likewise.
30004         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
30005         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
30006         * modules/stdio (Makefile.am): Use them.
30007         * lib/stdio.in.h (remove): Declare replacement.
30008         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30009         * doc/posix-functions/remove.texi (remove): Likewise.
30010         * modules/remove-tests: New test.
30011         * tests/test-remove.c: Likewise.
30012
30013         unlink: new module, for Solaris 9 bug
30014         * modules/unlink: New file.
30015         * lib/unlink.c: Likewise.
30016         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
30017         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
30018         * modules/unistd (Makefile.am): Use them.
30019         * lib/unistd.in.h (stat): Declare replacement.
30020         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30021         * doc/posix-functions/unlink.texi (unlink): Likewise.
30022         * modules/unlink-tests: New test.
30023         * tests/test-unlink.c: Likewise.
30024
30025         lstat: fix Solaris 9 bug
30026         * lib/lstat.c (lstat): Also check for trailing slash on
30027         non-symlink, non-directories.  Use stat module to simplify logic.
30028         * doc/posix-functions/lstat.texi (lstat): Document it.
30029         * modules/lstat-tests (Depends-on): Add errno, same-inode.
30030         (configure.ac): Check for symlink.
30031         * tests/test-lstat.c (main): Add more tests.
30032
30033         stat: add as dependency to other modules
30034         * modules/chown (Depends-on): Add stat.
30035         * modules/euidaccess (Depends-on): Likewise.
30036         * modules/fchdir (Depends-on): Likewise.
30037         * modules/isdir (Depends-on): Likewise.
30038         * modules/link (Depends-on): Likewise.
30039         * modules/lstat (Depends-on): Likewise.
30040         * modules/mkdir-p (Depends-on): Likewise.
30041         * modules/modechange (Depends-on): Likewise.
30042         * modules/open (Depends-on): Likewise.
30043         * modules/readlink (Depends-on): Likewise.
30044         * modules/same (Depends-on): Likewise.
30045
30046         stat: fix Solaris 9 bug
30047         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
30048         slash.
30049         * lib/stat.c (rpl_stat): Work around it.
30050         * doc/posix-functions/stat.texi (stat): Update documentation.
30051
30052         stat: new module, for mingw bug
30053         * modules/stat: New file.
30054         * lib/stat.c: Likewise.
30055         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
30056         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30057         * modules/sys_stat (Makefile.am): Use them.
30058         * lib/sys_stat.in.h (stat): Declare replacement.
30059         * lib/openat.c (fstatat): Deal with lstat and stat being function
30060         macros.
30061         * modules/openat (Depends-on): Add inline.
30062         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30063         * doc/posix-functions/stat.texi (stat): Likewise.
30064         * modules/stat-tests: New test.
30065         * tests/test-stat.c: Likewise.
30066
30067 2009-09-19  Jim Meyering  <meyering@redhat.com>
30068
30069         syntax-check: detect unnecessary inclusion of canonicalize.h
30070         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
30071
30072 2009-09-19  Eric Blake  <ebb9@byu.net>
30073
30074         canonicalize-lgpl: adjust clients to use correct header
30075         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
30076         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
30077         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
30078         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
30079         * lib/progreloc.c (includes): Likewise.
30080
30081 2009-09-19  Jim Meyering  <meyering@redhat.com>
30082
30083         test-posixtm.c: correct a comment
30084         * tests/test-posixtm.c: Correct first-line comment.
30085         Spotted by Eric Blake.
30086
30087 2009-09-16  Jim Meyering  <meyering@redhat.com>
30088
30089         posixtm-tests: make T const-correct; add a test case
30090         * tests/test-posixtm.c (T): Declare const.
30091         Add a test for -(2^31+1).
30092         Remove useless can-succeed-only-in-2002 test.
30093
30094         posixtm-tests: adjust the sole failing test
30095         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
30096         expected output matches what mktime now produces.  Cross-checked via
30097         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
30098
30099         posixtm: move #ifdef'd tests into a new module
30100         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
30101         * tests/test-posixtm.c: ... this new file.
30102         * modules/posixtm-tests: New module.
30103
30104 2009-09-19  Eric Blake  <ebb9@byu.net>
30105
30106         openat: simplify use of at-func.c
30107         * lib/at-func.c (includes): Include prerequisites here, to
30108         simplify requirements on client files.
30109         * lib/openat-priv.h: Add double-inclusion guard.
30110         * lib/faccessat.c (includes): Simplify.
30111         * lib/fchmodat.c (includes): Likewise.
30112         * lib/fchownat.c (includes): Likewise.
30113         * lib/mkdirat.c (includes): Likewise.
30114         * lib/mkfifoat.c (includes): Likewise.
30115         * lib/symlinkat.c (includes): Likewise.
30116
30117         openat: allow return of fd 0
30118         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
30119         * modules/save-cwd (Depends-on): Replace fcntl-safer with
30120         unistd-safer.
30121         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
30122         <fcntl.h>; this module does not leak fds.
30123         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
30124         must be allowed to return 0, leaving openat_safer to add the
30125         safety.
30126         (openat_permissive): Avoid writing to just-opened fd 2 if
30127         restoring the current directory fails.
30128         * lib/openat-die.c (openat_restore_fail): Add comment.
30129         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
30130         (save_cwd): Guarantee safe fd, but without use of open_safer.
30131         * tests/test-openat.c: New test.
30132         * modules/openat-tests (Files, Makefile.am): Distribute and build
30133         new file.
30134
30135         relocatable-prog-wrapper: fix build
30136         * modules/relocatable-prog-wrapper (Files): Update name of
30137         canonicalize m4 file, broken on 2009-09-17.
30138         Reported by emad hajjar <aleppos@hotmail.com>.
30139
30140 2009-09-19  Bruno Haible  <bruno@clisp.org>
30141
30142         * lib/safe-alloc.h: Use the standard header with GPL copyright.
30143         * lib/safe-alloc.c: Likewise.
30144         Reported by Ian Beckwith <ianb@erislabs.net>.
30145
30146 2009-09-18  Bruno Haible  <bruno@clisp.org>
30147
30148         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
30149         Reported by <erobles@sensacd.com.mx>.
30150
30151 2009-09-17  Eric Blake  <ebb9@byu.net>
30152
30153         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
30154         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
30155         slashes when checking if last component is missing.
30156         * tests/test-canonicalize.c (main): Test this.
30157
30158         canonicalize, canonicalize-lgpl: honor // if distinct from /
30159         * modules/canonicalize (Files): Add double-slash-root.m4.
30160         * modules/canonicalize-lgpl (Files): Likewise.
30161         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
30162         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
30163         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
30164         fallback definition.
30165         (canonicalize_filename_mode): Use it to protect //.
30166         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
30167         (__realpath): Likewise.
30168         * tests/test-canonicalize.c (main): Test this.
30169         * tests/test-canonicalize-lgpl.c (main): Likewise.
30170         * modules/canonicalize-tests (Depends-on): Add same-inode.
30171         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
30172
30173         canonicalize-lgpl: fix glibc bug with trailing slash
30174         * m4/canonicalize-lgpl.m4: Move contents...
30175         * m4/canonicalize.m4: ...here.
30176         (gl_CANONICALIZE_LGPL): Factor realpath check...
30177         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
30178         glibc 2.3.5 bug, fixed 2005-04-27.
30179         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
30180         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
30181         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
30182         * modules/canonicalize-lgpl (Files): Manage file rename.
30183         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
30184         * modules/stdlib (Makefile.am): Substitute witness.
30185         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
30186         is needed.
30187         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
30188         replacement is required.
30189         * lib/canonicalize.c (canonicalize_file_name): Likewise.
30190         * doc/glibc-functions/canonicalize_file_name.texi
30191         (canonicalize_file_name): Document this.
30192         * doc/posix-functions/realpath.texi (realpath): Likewise.
30193
30194         canonicalize-lgpl: reject non-directory with trailing slash
30195         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
30196         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
30197         catches failures in glibc 2.3.5.
30198         * tests/test-canonicalize.c (main): Likewise.
30199
30200         canonicalize-lgpl: use native realpath if it works
30201         * lib/canonicalize-lgpl.c (realpath): Guard with
30202         FUNC_REALPATH_WORKS.
30203         * lib/stdlib.in.h (realpath): Make declaration optional based on
30204         HAVE_REALPATH.
30205         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
30206         native realpath works.
30207         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
30208         * modules/stdlib (Makefile.am): Substitute witness.
30209
30210         canonicalize, canonicalize-lgpl: use <stdlib.h>
30211         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
30212         (Include): Mention <stdlib.h>.
30213         (configure.ac): Mention functions we provide.
30214         * modules/canonicalize (configure.ac): Likewise.
30215         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
30216         realpath if canonicalize_file_name is missing.
30217         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
30218         * modules/stdlib (Makefile.am): Substitute witnesses.
30219         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
30220         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
30221         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
30222         * NEWS: Document this.
30223         * doc/glibc-functions/canonicalize_file_name.texi
30224         (canonicalize_file_name): Likewise.
30225         * doc/posix-functions/realpath.texi (realpath): Likewise.
30226         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
30227
30228         test-canonicalize: consolidate into single C program
30229         * tests/test-canonicalize.sh: Delete; move setup into...
30230         * tests/test-canonicalize.c (main): ...the program, making it
30231         easier to run in debugger.  Add some tests.
30232         * modules/canonicalize-tests (Files): Remove unused file.
30233         (Depends-on): Add progname.
30234         (configure.ac, Makefile.am): Simplify.
30235
30236         test-canonicalize-lgpl: consolidate into single C program
30237         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
30238         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
30239         easier to run in debugger.  Add some tests.
30240         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
30241         (configure.ac, Makefile.am): Simplify.
30242
30243         canonicalize: avoid resolvepath
30244         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
30245         unnecessary checks.
30246         * lib/canonicalize.c (includes): Simplify.
30247         (canonicalize_file_name): Drop resolvepath implementation.
30248         * modules/canonicalize (Depends-on): Drop filenamecat.
30249
30250         canonicalize: don't lose errno
30251         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
30252         over calls to free.
30253
30254         canonicalize: simplify errno handling
30255         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
30256         assignment.
30257
30258         canonicalize, canonicalize-lgpl: update module dependencies
30259         * modules/canonicalize (Depends-on): Add extensions, lstat,
30260         pathmax, stdlib.
30261         (Files): Drop pathmax.h.
30262         (configure.ac): Adjust macro name.
30263         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
30264         lstat, stdlib, sys_stat.
30265         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
30266         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
30267         extensions.
30268         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
30269         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
30270         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
30271         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
30272         declaration, if available.
30273         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
30274         we can rely on the readlink module.
30275         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
30276         (includes): Use <unistd.h> unconditionally.
30277
30278 2009-09-17  Eric Blake  <ebb9@byu.net>
30279
30280         maint: make Include sections of modules consistent
30281         * modules/alloca: Use only header name; no need to list #include.
30282         * modules/alloca-opt: Likewise.
30283         * modules/arpa_inet: Likewise.
30284         * modules/canon-host: Likewise.
30285         * modules/configmake: Likewise.
30286         * modules/dirent: Likewise.
30287         * modules/eealloc: Likewise.
30288         * modules/environ: Likewise.
30289         * modules/fchdir: Likewise.
30290         * modules/fcntl: Likewise.
30291         * modules/fcntl-h: Likewise.
30292         * modules/gethrxtime: Likewise.
30293         * modules/gettime: Likewise.
30294         * modules/ignore-value: Likewise.
30295         * modules/inet_ntop: Likewise.
30296         * modules/inet_pton: Likewise.
30297         * modules/inttypes: Likewise.
30298         * modules/isnand-nolibm: Likewise.
30299         * modules/isnanf-nolibm: Likewise.
30300         * modules/mbchar: Likewise.
30301         * modules/mbfile: Likewise.
30302         * modules/mbiter: Likewise.
30303         * modules/mbuiter: Likewise.
30304         * modules/netdb: Likewise.
30305         * modules/netinet_in: Likewise.
30306         * modules/nproc: Likewise.
30307         * modules/pagealign_alloc: Likewise.
30308         * modules/poll: Likewise.
30309         * modules/printf-frexp: Likewise.
30310         * modules/pthread: Likewise.
30311         * modules/putenv: Likewise.
30312         * modules/random_r: Likewise.
30313         * modules/relocatable-prog: Likewise.
30314         * modules/search: Likewise.
30315         * modules/select: Likewise.
30316         * modules/selinux-h: Likewise.
30317         * modules/settime: Likewise.
30318         * modules/signal: Likewise.
30319         * modules/size_max: Likewise.
30320         * modules/socklen: Likewise.
30321         * modules/ssize_t: Likewise.
30322         * modules/stdarg: Likewise.
30323         * modules/stdbool: Likewise.
30324         * modules/stddef: Likewise.
30325         * modules/stdint: Likewise.
30326         * modules/stdio: Likewise.
30327         * modules/stdlib: Likewise.
30328         * modules/string: Likewise.
30329         * modules/strings: Likewise.
30330         * modules/sys_file: Likewise.
30331         * modules/sys_ioctl: Likewise.
30332         * modules/sys_select: Likewise.
30333         * modules/sys_socket: Likewise.
30334         * modules/sys_stat: Likewise.
30335         * modules/sys_time: Likewise.
30336         * modules/sys_times: Likewise.
30337         * modules/sys_utsname: Likewise.
30338         * modules/sys_wait: Likewise.
30339         * modules/sysexits: Likewise.
30340         * modules/time: Likewise.
30341         * modules/times: Likewise.
30342         * modules/tmpfile: Likewise.
30343         * modules/trim: Likewise.
30344         * modules/unistd: Likewise.
30345         * modules/wchar: Likewise.
30346         * modules/wctype: Likewise.
30347
30348 2009-09-17  Bruno Haible  <bruno@clisp.org>
30349
30350         Make getdate.y compile on QNX and NetBSD 5 / i386.
30351         * m4/getdate.m4 (gl_GETDATE): Conditionally define
30352         TIME_T_FITS_IN_LONG_INT.
30353         * lib/getdate.y (long_time_t): New type.
30354         (relative_time): Change type of 'seconds' field to long_time_t.
30355         (get_date): Update types of local variables. Check against overflow
30356         during conversion from long_time_t to time_t.
30357         Reported by Matt Kraai <kraai@ftbfs.org>
30358         and Hasso Tepper <hasso@netbsd.org>.
30359
30360 2009-09-17  Bruno Haible  <bruno@clisp.org>
30361
30362         * modules/COPYING: Update copyright years.
30363         * modules/README: Likeiwse.
30364         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
30365         Reported by Ian Beckwith <ianb@erislabs.net>.
30366
30367 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
30368
30369         * users.txt: Update references for gnuit package.
30370
30371 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
30372
30373         * m4/getdelim.m4: Fix typo in copyright line.
30374
30375 2009-09-17  Bruno Haible  <bruno@clisp.org>
30376
30377         * lib/atoll.c: Use the standard header with GPL copyright.
30378         * lib/argz.in.h: Likewise.
30379         * lib/glob.c: Likewise.
30380         * lib/glob-libc.h: Likewise.
30381         * lib/random_r.c: Likewise.
30382         * lib/siglist.h: Likewise.
30383         * lib/strsignal.c: Likewise.
30384         Reported by Ian Beckwith <ianb@erislabs.net>.
30385
30386 2009-09-17  Eric Blake  <ebb9@byu.net>
30387
30388         rmdir: ensure correct dependency order
30389         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
30390
30391 2009-09-17  Bruno Haible  <bruno@clisp.org>
30392
30393         Disable assertion that fails on NetBSD 5 / i386.
30394         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
30395         Reported by Sam Steingold <sds@gnu.org>
30396         and Hasso Tepper <hasso@netbsd.org>.
30397
30398 2009-09-16  Eric Blake  <ebb9@byu.net>
30399
30400         unlinkdir: port to mingw
30401         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
30402         on which no one can unlink a directory.
30403
30404         stdlib: sort witness names
30405         * modules/stdlib (Makefile.am): Sort replacements.
30406         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
30407         * lib/stdlib.in.h: Likewise.
30408
30409         parse-duration-tests: avoid link failure
30410         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
30411         LIBINTL.
30412         Reported by Tom G. Christensen.
30413
30414         openat-tests: ensure unlinkat behaves like rmdir
30415         * tests/test-rmdir.c (main): Factor guts...
30416         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
30417         * modules/rmdir-tests (Files): Ship new file.
30418         * modules/openat-tests: New test.
30419         * tests/test-unlinkat.c: Likewise.
30420
30421         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
30422         * modules/rmdir-errno (Status, Notice): Now obsolete.
30423
30424         rmdir: work around cygwin 1.5.x and mingw bugs
30425         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
30426         * lib/rmdir.c (rmdir): Work around it.
30427         * modules/rmdir (Status, Notice): No longer obsolete.
30428         (Files): Add dos.m4.
30429         (Depends-on): Add unistd.
30430         (configure.ac): Set witnesses.
30431         (License): Relax to LGPLv2+.
30432         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
30433         * modules/unistd (Makefile.am): Substitute witnesses.
30434         * lib/unistd.in.h (rmdir): Declare replacement.
30435         * doc/posix-functions/rmdir.texi (rmdir): Document this.
30436         * modules/rmdir-tests: New tests.
30437         * tests/test-rmdir.c: Likewise.
30438
30439 2009-09-15  Eric Blake  <ebb9@byu.net>
30440
30441         fchdir: improve use of replacement functions
30442         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
30443         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
30444         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
30445         REPLACE_CLOSEDIR.
30446         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
30447         * modules/sys_stat (Makefile.am): Substitute correct witness.
30448         * modules/dirent (Makefile.am): Likewise.
30449         * modules/unistd (Makefile.am): Likewise.
30450         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
30451         * lib/unistd.in.h (dup): Likewise.
30452         * lib/sys_stat.in.h (fstat): Likewise.
30453
30454         maint: ignore gnulib-tool temp files
30455         * .gitignore: Ignore files created during gnulib-tool --test.
30456
30457 2009-09-13  Jim Meyering  <meyering@redhat.com>
30458
30459         posixtm: don't reject a time that specify "60" as the number of seconds
30460         * lib/posixtm.c (posixtime): The code to reject invalid dates
30461         would also reject a time specified with the .60 suffix.
30462         But POSIX allows that, in order to accommodate leap seconds.
30463         So don't reject it.
30464         (main): Adjust tests accordingly.
30465         * modules/posixtm (Depends-on): Add stpcpy.
30466
30467 2009-09-11  Jim Meyering  <meyering@redhat.com>
30468
30469         announce-gen: include [$release_type] in emitted Subject:
30470         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
30471         e.g., [stable] in the emitted Subject: line.
30472
30473 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30474
30475         Remove obsolete macros from several modules.
30476         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
30477         obsolete Autoconf macros with their modern counterparts.
30478         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
30479         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
30480         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
30481         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
30482         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
30483         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
30484         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
30485         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
30486         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
30487         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
30488         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
30489         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
30490         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
30491         * m4/sockets.m4 (gl_SOCKETS): Likewise.
30492         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
30493         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
30494         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
30495         * m4/time_r.m4 (gl_TIME_R): Likewise.
30496         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
30497         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
30498         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
30499
30500         Fix copyright header in build-aux scripts.
30501         * build-aux/git-version-gen: Fix copyright header to match GPLv3
30502         recommendation.
30503         * build-aux/ncftpput-ftp: Likewise.
30504         * build-aux/update-copyright: Likewise.
30505
30506 2009-09-09  Eric Blake  <ebb9@byu.net>
30507
30508         test-link: allow Linux choice of errno
30509         * tests/test-link.c (main): Relax test for alternate error.
30510
30511         strndup: fix improper m4 caching
30512         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
30513         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
30514         (gl_PREREQ_STRNDUP): Delete.
30515         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
30516         * modules/string (Makefile.am): Substitute it.
30517         * lib/string.in.h (strndup): Modernize prototype.
30518
30519         getcwd: port to mingw
30520         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
30521         different from the POSIX assumptions made throughout the getcwd
30522         module; fortunately, the mingw getcwd does not need replacement.
30523         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
30524         * modules/getcwd-tests: New test.
30525         * tests/test-getcwd.c: Likewise.
30526
30527         link: fix platform bugs
30528         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
30529         * lib/link.c (link): Work around them.  Fix related mingw bug.
30530         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
30531         * modules/unistd (Makefile.am): Substitute it.
30532         * lib/unistd.in.h (link): Declare replacement.
30533         * doc/posix-functions/link.texi (link): Document this.
30534         * modules/link (Depends-on): Add strdup-posix, sys_stat.
30535
30536         test-link: consolidate into single C program, test more cases
30537         * tests/test-link.sh: Delete.
30538         * tests/test-link.c: Test more error conditions.  Exposes bugs on
30539         at least Cygwin and Solaris.
30540         * modules/link-tests (Files): Remove unused file.
30541         (Depends-on): Add errno, sys_stat.
30542         (Makefile.am): Simplify.
30543
30544 2009-09-08  Bruno Haible  <bruno@clisp.org>
30545
30546         Work around towlower, towupper bug on mingw.
30547         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
30548         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
30549         * doc/posix-functions/towlower.texi: Mention the mingw bug.
30550         * doc/posix-functions/towupper.texi: Likewise.
30551         Reported by Eric Blake.
30552
30553 2009-09-08  Jim Meyering  <meyering@redhat.com>
30554
30555         build: don't try to run autoheader if we don't use it
30556         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
30557         is not used in configure.ac.
30558
30559 2009-09-08  Eric Blake  <ebb9@byu.net>
30560
30561         euidaccess: fix compilation error
30562         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
30563
30564         rawmemchr: relax license
30565         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
30566         okay.
30567         Reported by Jim Meyering.
30568
30569         mkfifoat: new module
30570         * modules/mkfifoat: New file.
30571         * lib/mkfifoat.c: Likewise.
30572         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
30573         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30574         * modules/sys_stat (Makefile.am): Use them.
30575         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
30576         * MODULES.html.sh (File system functions): Mention module.
30577         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
30578         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
30579         * modules/mkfifoat-tests: New test.
30580         * tests/test-mkfifoat.c: Likewise.
30581
30582         strchrnul: relax license
30583         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
30584         okay.
30585         Reported by Jim Meyering.
30586
30587 2009-09-08  Eric Blake  <ebb9@byu.net>
30588
30589         fstatat: fix compilation on Solaris
30590         * lib/fstatat.c (includes): Add fcntl.h.
30591         Reported by Pádraig Brady.
30592
30593 2009-09-07  Eric Blake  <ebb9@byu.net>
30594
30595         rename: modernize replacement
30596         * modules/rename (Depends-on): Add stdio.
30597         (configure.ac): Declare witness.
30598         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
30599         stdio take care of replacement.
30600         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
30601         * modules/stdio (Makefile.am): Substitute them.
30602         * lib/stdio.in.h (rename): Declare replacement.
30603         * lib/rename.c (includes): Allow cross-compilation to non-windows
30604         machines.
30605         * doc/posix-functions/rename.texi (rename): Improve
30606         documentation.
30607
30608         stdio: sort witness names
30609         * modules/stdio (Makefile.am): Sort replacements.
30610         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30611         * lib/stdio.in.h: Likewise.
30612
30613         getcwd: minor cleanups
30614         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
30615         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
30616
30617         openat: provide more convenience names
30618         * modules/faccessat (configure.ac): Add C witness.
30619         * lib/unistd.in.h (readlinkat): Fix typo.
30620         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
30621         convenience wrappers.
30622         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
30623         wrappers in syntax checks.
30624
30625 2009-09-06  Eric Blake  <ebb9@byu.net>
30626
30627         doc: fix comments in recent patches
30628         * lib/faccessat.c: Mention correct function.
30629         * lib/fchmodat.c: Likewise.
30630         * lib/fchownat.c: Likewise.
30631         * lib/symlinkat.c: Likewise.
30632         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
30633         constants.
30634
30635         faccessat, symlinkat: continue cleanup of previous patch
30636         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
30637         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
30638         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
30639         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
30640         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
30641         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
30642         set.
30643
30644 2009-09-06  Bruno Haible  <bruno@clisp.org>
30645
30646         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
30647         (fstatat): Declare if GNULIB_FSTATAT is set.
30648         (mkdirat): Declare if GNULIB_MKDIRAT is set.
30649         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
30650         (unlinkat): Declare if GNULIB_UNLINKAT is set.
30651         * modules/fcntl-h (Files): Remove m4/openat.m4.
30652         * modules/sys_stat (Files): Remove m4/openat.m4.
30653         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
30654         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
30655         * modules/unistd (Files): Remove m4/openat.m4.
30656         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
30657         GNULIB_OPENAT.
30658         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
30659         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
30660         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
30661         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
30662         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
30663         gl_OPENAT_DEFAULTS.
30664         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
30665         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
30666         Don't require gl_OPENAT_DEFAULTS.
30667         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
30668         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
30669         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
30670         (gl_OPENAT_DEFAULTS): Remove macro.
30671
30672 2009-09-06  Bruno Haible  <bruno@clisp.org>
30673
30674         * modules/openat (configure.ac): Remove unneeded witness.
30675
30676 2009-09-06  Bruno Haible  <bruno@clisp.org>
30677
30678         Set errno to ENOSYS when a function is entirely unsupported.
30679         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
30680         EOPNOTSUPP.
30681         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
30682         * modules/chown (Depends-on): Remove errno.
30683
30684 2009-09-06  Bruno Haible  <bruno@clisp.org>
30685
30686         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
30687
30688 2009-09-06  Bruno Haible  <bruno@clisp.org>
30689
30690         * lib/sys_stat.in.h: Fix preprocessor command indentation.
30691
30692 2009-09-06  Ben Pfaff  <blp@gnu.org>
30693             Bruno Haible  <bruno@clisp.org>
30694
30695         Work around a glibc bug in strtok_r.
30696         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
30697         Undefine if UNDEFINE_STRTOK_R is set.
30698         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
30699         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30700         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
30701         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
30702         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
30703         UNDEFINE_STRTOK_R.
30704         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
30705
30706 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
30707
30708         exclude: minor fix
30709         * lib/exclude.c: Include wctype.h
30710
30711 2009-09-06  Akim Demaille  <demaille@gostai.com>
30712
30713         bootstrap: improve error message
30714         * build-aux/bootstrap (find_tool): Upon failure, report the list
30715         of candidates.
30716         Honor the initial value of the envvar.
30717
30718 2009-09-05  Eric Blake  <ebb9@byu.net>
30719
30720         symlinkat: new module
30721         * modules/symlinkat: New file.
30722         * lib/symlinkat.c: Likewise.
30723         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
30724         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
30725         * modules/unistd (Makefile.am): Use them.
30726         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
30727         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
30728         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
30729         * MODULES.html.sh (File system functions): Mention module.
30730         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30731         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30732         * modules/symlinkat-tests: New test.
30733         * tests/test-symlinkat.c: Likewise.
30734
30735         test-openat-safer: add more checks
30736         * tests/test-openat-safer.c (main): Check more code paths.
30737
30738 2009-09-05  Jim Meyering  <meyering@redhat.com>
30739
30740         syntax-check: detect unnecessary inclusion of openat.h
30741         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
30742
30743 2009-09-05  Bruno Haible  <bruno@clisp.org>
30744
30745         Support towlower, towupper.
30746         * doc/posix-functions/towlower.texi: Mention module wctype.
30747         * doc/posix-functions/towupper.texi: Likewise.
30748         * lib/wctype.in.h (towlower, towupper): New functions.
30749         * tests/test-wctype.c: Include stdio.h, stdlib.h.
30750         (ASSERT): New macro.
30751         (e): New variable.
30752         (main): Test also towlower, towupper. Test WEOF argument.
30753         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30754
30755 2009-09-05  Bruno Haible  <bruno@clisp.org>
30756
30757         Fix conversion behaviour when the input is invalid.
30758         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
30759         mark occurring in first pass of indirect conversion.
30760         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
30761         input.
30762         Found by clang's static analyzer.
30763
30764 2009-09-05  Bruno Haible  <bruno@clisp.org>
30765
30766         * tests/test-striconveh.c (main): Test indirect conversion on platforms
30767         where direct conversion is possible.
30768
30769 2009-09-04  Eric Blake  <ebb9@byu.net>
30770
30771         openat: fail with ENOENT on empty name
30772         * lib/openat-proc.c (openat_proc_name): Special-case the empty
30773         buffer.
30774
30775         link-follow: fix logic bug in prior patch
30776         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
30777         reversed sense of yes and no in prior patch.  Avoid confusing
30778         compilation failure with desired semantics.
30779
30780         link-follow: accomodate mingw and cross-compilation
30781         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
30782         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
30783         cross-compilation results to -1, to make linkat easier to
30784         implement when cross-compiling.  Trivially support mingw.
30785         * modules/link-follow (configure.ac): Call new name.
30786         * NEWS: Mention this.
30787
30788 2009-09-03  Eric Blake  <ebb9@byu.net>
30789
30790         faccessat: compile replacement
30791         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
30792         needed.
30793
30794         fts: fix compilation error
30795         * lib/fts.c (includes): Re-add "openat.h", for
30796         openat_needs_fchdir.
30797
30798         faccessat: new module
30799         * modules/faccessat: New file.
30800         * lib/faccessat.c: Likewise.
30801         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
30802         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30803         * modules/unistd (Makefile.am): Use it.
30804         * lib/unistd.in.h (faccessat): Declare it.
30805         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
30806         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
30807         * MODULES.html.sh (File system functions): Mention it.
30808         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
30809         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
30810
30811         euidaccess: prefer POSIX over non-standard implementation
30812         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
30813         * lib/euidaccess.c (euidaccess): Use it if available.
30814
30815         openat: make template easier to use
30816         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
30817         AT_FUNC_F2 to be undefined.
30818         (VALIDATE_FLAG): New macro; use it to reject bad flags.
30819         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
30820         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
30821         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
30822         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
30823         Likewise.
30824         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
30825         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
30826         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
30827         Likewise.
30828
30829         openat: declare in POSIX headers
30830         * NEWS: Mention this.
30831         * modules/openat (configure.ac): Declare witnesses.
30832         (Depends-on): Add fcntl-h, sys_stat, unistd.
30833         (Include): Mention correct headers.
30834         * modules/fcntl-h (Depends-on): Add link-warning.
30835         (Files): Add openat.m4.
30836         (Makefile.am): Substitute witnesses.
30837         * modules/sys_stat (Files, Makefile.am): Likewise.
30838         * modules/unistd (Files, Makefile.am): Likewise.
30839         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
30840         (gl_OPENAT_DEFAULTS): New macro.
30841         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
30842         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
30843         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
30844         (SYS_STAT_H): Remove unused variable.
30845         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
30846         * lib/fcntl--.h (includes): Remove unneeded header.
30847         * lib/openat-safer.c (includes): Likewise.
30848         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
30849         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
30850         appropriate headers.
30851         (__OPENAT_PREFIX): Delete.
30852         * lib/fcntl.in.h (openat): Provide declaration.
30853         (AT_FDCWD): Fix Solaris bug.
30854         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
30855         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
30856         * lib/fchmodat.c (includes):  Adjust to find declaration.
30857         * lib/fchownat.c (includes): Likewise.
30858         * lib/mkdirat.c (includes): Likewise.
30859         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
30860         still visible.
30861
30862 2009-09-02  Eric Blake  <ebb9@byu.net>
30863
30864         errno: use consistently
30865         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
30866         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
30867         * lib/canonicalize.c (ELOOP): Likewise.
30868         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
30869         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
30870         * lib/lchown.c (EOPNOTSUPP): Likewise.
30871         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
30872         * lib/savewd.c (ESTALE): Likewise.
30873         * lib/settime.c (ENOSYS): Likewise.
30874         * lib/utimens.c (ENOSYS): Likewise.
30875         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
30876         * lib/chdir-safer.c (ELOOP): Likewise.
30877         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
30878         * modules/c-stack (Depends-on): Add errno.
30879         * modules/canonicalize (Depends-on): Likewise.
30880         * modules/chdir-safer (Depends-on): Likewise.
30881         * modules/fdopendir (Depends-on): Likewise.
30882         * modules/inet_ntop (Depends-on): Likewise.
30883         * modules/inet_pton (Depends-on): Likewise.
30884         * modules/lchown (Depends-on): Likewise.
30885         * modules/openat (Depends-on): Likewise.
30886         * modules/savewd (Depends-on): Likewise.
30887         * modules/settime (Depends-on): Likewise.
30888         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
30889
30890         fts: avoid leaking fds
30891         * modules/fts (Depends-on): Add cloexec.
30892         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
30893         flag.
30894
30895         fts: make directory fds more robust
30896         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
30897         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
30898
30899         backupfile, chdir-long, fts, savedir: make safer
30900         * lib/backupfile.c (includes): Use "dirent--.h", since
30901         numbered_backup can write to stderr during readdir.
30902         * lib/savedir.c (includes): Likewise.
30903         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
30904         emulation can write to stderr on failure.
30905         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
30906         * lib/getcwd.c: Document why opendir_safer is unused.
30907         * lib/glob.c: Likewise.
30908         * lib/scandir.c: Likewise.
30909         * lib/openat-proc.c: Likewise, for open_safer.
30910         * modules/backupfile (Depends-on): Add dirent-safer.
30911         * modules/savedir (Depends-on): Likewise.
30912         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
30913         * modules/chdir-long (Depends-on): Add openat-safer.
30914
30915         openat-safer: new module
30916         * modules/openat-safer: New file.
30917         * lib/openat-safer.c: Likewise.
30918         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
30919         * lib/fcntl-safer.h (openat_safer): Declare.
30920         * lib/fcntl--.h (openat): Override.
30921         * MODULES.html.sh (File descriptor based I/O): Mention it.
30922         * lib/openat.h: Add double-inclusion guards.
30923         * lib/openat.c (includes): Only include "fcntl-safer.h", not
30924         "fcntl--.h", so we can implement openat.
30925         * modules/openat-safer-tests: New test.
30926         * tests/test-openat-safer.c: New file.
30927
30928         dirent-safer: new module
30929         * modules/dirent-safer: New file.
30930         * lib/dirent--.h: Likewise.
30931         * lib/dirent-safer.h: Likewise.
30932         * lib/opendir-safer.c: Likewise.
30933         * m4/dirent-safer.m4: Likewise.
30934         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
30935         * modules/dirent-safer-tests: New test.
30936         * tests/test-dirent-safer.c: New file.
30937         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
30938
30939         fdopendir: optimize on mingw
30940         * lib/unistd.in.h (_gl_directory_name): New prototype.
30941         * lib/fchdir.c (_gl_directory_name): Implement it.
30942         (fchdir): Use it to simplify implementation.
30943         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
30944         fchdir, when available, to avoid calling [f]chdir().
30945
30946         fdopendir: split into its own module
30947         * lib/openat.c (fdopendir): Move...
30948         * lib/fdopendir.c: ...into new file.
30949         * modules/fdopendir: New module.
30950         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
30951         * modules/openat (Depends-on): Add fdopendir.
30952         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
30953         fdopendir here.
30954         * modules/savedir (Depends-on): Only need fdopendir, not full
30955         openat.
30956         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
30957         * lib/openat.h (fdopendir): Drop prototype.
30958         * lib/dirent.in.h (fdopendir): Provide prototype.
30959         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
30960         * modules/dirent (Makefile.am): Substitute them.
30961         * MODULES.html.sh (File system functions): Mention it.
30962         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
30963         * modules/fdopendir-tests: New file.
30964         * tests/test-fdopendir.c: Likewise.
30965
30966         fchdir: use more consistent macro convention
30967         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
30968         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
30969         REPLACE_FCHDIR, rather than relying on config.h macros.
30970         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
30971         inside a single make-time REPLACE_FCHDIR block, rather than using
30972         the config.h FCHDIR_REPLACEMENT.
30973         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
30974         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
30975         Manage fstat replacement.
30976         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
30977         REPLACE_FCHDIR.
30978         * modules/sys_stat (Files): Add m4/unistd_h.m4.
30979         (Makefile.am): Substitute REPLACE_FCHDIR.
30980         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
30981         FCHDIR_REPLACEMENT.
30982         * lib/dup-safer.c (dup_safer): Likewise.
30983         * lib/dup2.c (rpl_dup2): Likewise.
30984         * lib/dup3.c (rpl_dup3): Likewise.
30985         * lib/open.c (rpl_open): Likewise.
30986
30987         fchdir: simplify error handling, and support dup3
30988         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
30989         stdbool, malloc-posix, realloc-posix.
30990         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
30991         (ensure_dirs_slot): Return false on allocation failure.
30992         (rpl_dup2): Delete.
30993         (_gl_register_dup): New function.
30994         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
30995         (_gl_register_fd): Close fd on allocation failure.
30996         * lib/fcntl.in.h (_gl_register_fd): Update signature.
30997         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
30998         prototype.
30999         (rpl_dup2_fchdir): Delete prototype.
31000         * lib/open.c (open): Update caller.
31001         * lib/dup2.c (dup2): Track fchdir metadata.
31002         * lib/dup3.c (dup3): Likewise.
31003         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
31004         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
31005
31006 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31007
31008         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
31009         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
31010         don't pass arguments to AC_OUTPUT.
31011
31012 2009-09-02  Bruno Haible  <bruno@clisp.org>
31013
31014         * modules/mkdtemp (License): Relicense under LGPLv2+.
31015         Reported by Paolo Bonzini.
31016
31017 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31018
31019         Replace uses of obsolete autoconf macros in Jim's modules.
31020         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
31021         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
31022         can evoke a warning from autoconf when run with -Wobsolete
31023         enabled.  They were declared obsolete for good reasons (see
31024         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
31025         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
31026         should not continue using the deprecated macros.
31027         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
31028         obsolete Autoconf macros with modern counterparts.
31029         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
31030         * m4/dos.m4 (gl_AC_DOS): Likewise.
31031         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
31032         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
31033         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
31034         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
31035         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
31036         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
31037         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
31038         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
31039         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
31040         Likewise.
31041         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
31042         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
31043         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
31044         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
31045         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
31046         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
31047
31048 2009-09-01  Eric Blake  <ebb9@byu.net>
31049
31050         fchdir: fix off-by-one bug in previous patch
31051         * lib/fchdir.c (rpl_fstat): Use correct bounds.
31052         (_gl_unregister_fd): Delete useless if.
31053
31054 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
31055
31056         maint.mk: sort the list of syntax-check rules
31057         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
31058         easier to get a sense of progress when the rules are run sequentially
31059         and take a long time.
31060
31061 2009-09-01  Simon Josefsson  <simon@josefsson.org>
31062
31063         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
31064         * modules/netinet_in: Likewise.
31065         * modules/sys_file: Likewise.
31066         * modules/sys_ioctl: Likewise.
31067         * modules/sys_select: Likewise.
31068         * modules/sys_socket: Likewise.
31069         * modules/sys_stat: Likewise.
31070         * modules/sys_time: Likewise.
31071         * modules/sys_times: Likewise.
31072         * modules/sys_utsname: Likewise.
31073         * modules/sys_wait: Likewise.
31074
31075 2009-09-01  Jim Meyering  <meyering@redhat.com>
31076
31077         fts: help ensure that return values are not ignored
31078         * lib/fts_.h (__GNUC_PREREQ): Define.
31079         (__attribute_warn_unused_result__): Define.
31080         (fts_children, fts_close, fts_open, fts_read): Declare with
31081         __attribute_warn_unused_result__.
31082
31083         fts: fts_close now fails also when closing a dir file descriptor fails
31084         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
31085         and propagate to caller, along with errno.
31086
31087         announce-gen: correct formatting in --help output
31088         * build-aux/announce-gen (usage): Move the one-line description in
31089         --help output "up", to where it belongs, just after Usage:.
31090
31091 2009-08-31  Eric Blake  <ebb9@byu.net>
31092
31093         fchdir: port to mingw
31094         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
31095         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
31096         opened, then use a substitute.
31097         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
31098         replacement.
31099         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
31100         (_gl_register_fd): No need to check stat if open already filters
31101         all directories.
31102         (fchdir): Fix error condition to match POSIX.
31103         * modules/fchdir (Depends-on): Add sys_stat.
31104         * doc/posix-functions/open.texi (open): Document the limitation.
31105         * modules/fchdir-tests: New file.
31106         * tests/test-fchdir.c: Likewise.
31107
31108         canonicalize: allow cross-testing from cygwin to mingw
31109         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
31110         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
31111         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
31112         Likewise.
31113         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
31114         target does not support symlinks.
31115         * tests/test-canonicalize-lgpl.sh: Likewise.
31116
31117         chown: avoid compilation warning on mingw
31118         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
31119         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
31120         mingw.
31121         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
31122         * modules/chown (Depends-on): Add errno.
31123
31124 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
31125
31126         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
31127         command.
31128
31129 2009-08-31  Jim Meyering  <meyering@redhat.com>
31130
31131         canonicalize: remove useless initialization
31132         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
31133         initialization of local, "end".
31134
31135 2009-08-30  Bruno Haible  <bruno@clisp.org>
31136
31137         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
31138         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
31139         ENOSYS.
31140
31141 2009-08-30  Bruno Haible  <bruno@clisp.org>
31142
31143         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
31144         /usr/xpg4/bin/tr when it exists.
31145         * tests/test-pipe-filter-gi1.sh: Likewise.
31146
31147 2009-08-30  Bruno Haible  <bruno@clisp.org>
31148
31149         Work around deficient /usr/bin/id program on Solaris.
31150         * tests/test-file-has-acl.sh (ID): New variable.
31151         * tests/test-set-mode-acl.sh (ID): Likewise.
31152         * tests/test-copy-acl.sh (ID): Likewise.
31153         * tests/test-copy-file.sh (ID): Likewise.
31154
31155 2009-08-30  Bruno Haible  <bruno@clisp.org>
31156
31157         New module 'xstriconveh'.
31158         * lib/xstriconveh.h: New file.
31159         * lib/xstriconveh.c: New file.
31160         * modules/xstriconveh: New file.
31161
31162 2009-08-30  Bruno Haible  <bruno@clisp.org>
31163
31164         Make it easier to use mem_cd_iconveh.
31165         * lib/striconveh.h (iconveh_t): New type.
31166         (iconveh_open, iconveh_close): New declarations.
31167         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
31168         with a single 'const iconveh_t *' argument.
31169         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
31170         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
31171         with a single 'const iconveh_t *' argument.
31172         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
31173         * tests/test-striconveh.c (main): Update.
31174         * NEWS: Mention the change.
31175
31176 2009-08-30  Bruno Haible  <bruno@clisp.org>
31177
31178         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
31179         problem.
31180
31181 2009-08-30  Bruno Haible  <bruno@clisp.org>
31182
31183         Work around iconv_open problem on Solaris.
31184         * lib/iconv_open-solaris.gperf: New file.
31185         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
31186         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
31187         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
31188         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
31189         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
31190         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
31191
31192 2009-08-29  Jim Meyering  <meyering@redhat.com>
31193
31194         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
31195         * top/maint.mk (cvs-check): Remove target; it was just an alias
31196         to the better-named vc-diff-check.
31197         (maintainer-distcheck): Remove rule.  It was used only from
31198         the (alpha/beta/major) target, and all of its commands but one
31199         were coreutils-specific.
31200         (vc-dist): Remove rule.
31201         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
31202         Run vc-diff-check, not vc-dist.
31203         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
31204
31205 2009-08-27  Bruno Haible  <bruno@clisp.org>
31206
31207         * tests/test-bitrotate.c (main): Remove test that uses a shift count
31208         of 0.
31209
31210 2009-08-27  Bruno Haible  <bruno@clisp.org>
31211
31212         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
31213         compilers.
31214         * doc/func.texi: Document the SunPRO C bug.
31215
31216 2009-08-27  Bruno Haible  <bruno@clisp.org>
31217
31218         Fix link error on Solaris.
31219         * tests/test-parse-duration.c (xstrdup): Remove function.
31220
31221 2009-08-26  Pádraig Brady  <P@draigbrady.com>
31222
31223         ignore-value: handle pointer types, too
31224         * lib/ignore-value.h (__attribute__): Remove definition.
31225         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
31226         of a more concise and more-often effective "(void) i" statement.
31227         (ignore_ptr): New function to suppress warnings from functions that
31228         return pointers, and to make it explicit that one function doesn't
31229         handle all cases.
31230
31231 2009-08-25  Bruno Haible  <bruno@clisp.org>
31232
31233         dup2: work around a Linux bug.
31234         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
31235         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
31236         * doc/posix-functions/dup2.texi: Mention the Linux bug.
31237         Reported by Simon Josefsson.
31238
31239 2009-08-25  Jim Meyering  <meyering@redhat.com>
31240
31241         libguestfs uses gnulib
31242         * users.txt: Add libguestfs.
31243
31244 2009-08-24  Eric Blake  <ebb9@byu.net>
31245
31246         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
31247         * lib/pipe2.c (includes): Add binary-io.h.
31248         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
31249
31250 2009-08-24  Bruno Haible  <bruno@clisp.org>
31251
31252         Tolerate declared but missing accept4 syscall.
31253         * lib/accept4.c (accept4): Invoke original accept4 function first, if
31254         available.
31255         * lib/sys_socket.in.h (accept4): If the function is already present,
31256         override it.
31257         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
31258         * modules/accept4 (Makefile.am): Compile accept4.c always.
31259         Reported by Paolo Bonzini and Eric Blake.
31260
31261 2009-08-23  Bruno Haible  <bruno@clisp.org>
31262
31263         New module 'accept4'.
31264         * lib/sys_socket.in.h (accept4): New declaration.
31265         * lib/accept4.c: New file.
31266         * m4/accept4.m4: New file.
31267         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
31268         GNULIB_ACCEPT4, HAVE_ACCEPT4.
31269         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
31270         HAVE_ACCEPT4.
31271         * modules/accept4: New file.
31272         * doc/glibc-functions/accept4.texi: Mention the new module.
31273
31274 2009-08-24  Jim Meyering  <meyering@redhat.com>
31275
31276         progname: also set global program_invocation_name, when possible
31277         Before this change, a libtool-enabled program that calls glibc's
31278         error function would report the program name as
31279         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
31280         * modules/progname (configure.ac): Check for a declaration of
31281         program_invocation_name.
31282         * lib/progname.c:  Include <errno.h>.
31283         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
31284         Set program_invocation_name.
31285
31286 2009-08-23  Bruno Haible  <bruno@clisp.org>
31287
31288         * lib/dup3.c: Include <string.h>.
31289
31290 2009-08-23  Bruno Haible  <bruno@clisp.org>
31291
31292         * lib/dup3.c (dup3): Test only once whether the system actually exists.
31293         * lib/pipe2.c (pipe2): Likewise.
31294         Suggested by Eric Blake.
31295
31296 2009-08-23  Bruno Haible  <bruno@clisp.org>
31297
31298         Tolerate declared but missing dup3 syscall.
31299         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
31300         * lib/unistd.in.h (dup3): If the function is already present,
31301         override it.
31302         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
31303         * modules/dup3 (Makefile.am): Compile dup3.c always.
31304         Reported by Paolo Bonzini.
31305
31306 2009-08-23  Bruno Haible  <bruno@clisp.org>
31307
31308         Tolerate declared but missing pipe2 syscall.
31309         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
31310         available.
31311         * lib/unistd.in.h (pipe2): If the function is already present,
31312         override it.
31313         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
31314         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
31315         Reported by Paolo Bonzini.
31316
31317 2009-08-23  Bruno Haible  <bruno@clisp.org>
31318
31319         * lib/pipe2.c (pipe2): Move #ifs inside function.
31320
31321 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
31322
31323         quotearg: document limitations of quote_these_too
31324         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
31325         those limitations are created.
31326         * lib/quotearg.h (set_char_quoting): Document that digits and
31327         letters that are special after backslash are not permitted.
31328         (quotearg_char): Cross-reference set_char_quoting documentation.
31329
31330 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
31331
31332         quotearg: implement custom_quoting_style
31333         * lib/quotearg.c: (struct quoting_options): Add left_quote and
31334         right_quote fields.
31335         (set_custom_quoting): New public function.
31336         (quotearg_buffer_restyled): Add left_quote and right_quote
31337         arguments, handle them very much like locale quoting, and update
31338         all uses.
31339         (quotearg_n_custom): New public function.
31340         (quotearg_n_custom_mem): New public function.
31341         (quotearg_custom): New public function.
31342         (quotearg_custom_mem): New public function.
31343         * lib/quotearg.h: Prototype and document new public functions.
31344         (enum quoting_style): For escape_quoting_style and
31345         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
31346         ignored even though they're otherwise like c_quoting_style.
31347         Add custom_quoting_style member and document with comparison to
31348         clocale_quoting_style.
31349         * tests/test-quotearg.c (custom_quotes): New array.
31350         (custom_results): New array.
31351         (main): Extend to test custom quoting.
31352
31353 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
31354
31355         quotearg: fix right quote escaping when it's in quote_these_too
31356         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
31357         quote, be sure to prepend only one backslash.
31358         * tests/test-quotearg.c (use_quote_double_quotes): New function.
31359         (main): Test it.
31360
31361 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
31362
31363         quotearg-tests: test escaping of embedded locale quotes
31364         * tests/test-quotearg.c (struct result_strings): Add member for
31365         new input.
31366         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
31367         (inputs): Add new input.
31368         (results_g): Add expected results.
31369         (flag_results): Likewise.
31370         (locale_results): Likewise.
31371         (compare_strings): Check those.
31372
31373 2009-08-23  Bruno Haible  <bruno@clisp.org>
31374
31375         Tests for module 'dup3'.
31376         * modules/dup3-tests: New file.
31377         * tests/test-dup3.c: New file.
31378
31379         New module 'dup3'.
31380         * lib/unistd.in.h (dup3): New declaration.
31381         * lib/dup3.c: New file.
31382         * m4/dup3.m4: New file.
31383         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
31384         HAVE_DUP3.
31385         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
31386         * modules/dup3: New file.
31387         * doc/glibc-functions/dup3.texi: Mention the new module.
31388
31389 2009-08-23  Bruno Haible  <bruno@clisp.org>
31390
31391         Tweak the dup2 test.
31392         * tests/test-dup2.c (main): Create the test file empty. Verify that an
31393         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
31394         the test file is still empty. Fix argument order of lseek.
31395
31396 2009-08-23  Bruno Haible  <bruno@clisp.org>
31397
31398         Avoid test link errors when the modules getopt-gnu, gettext are used.
31399         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
31400         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31401
31402 2009-08-23  Bruno Haible  <bruno@clisp.org>
31403
31404         Fix getdtablesize() on mingw.
31405         * lib/getdtablesize.c (getdtablesize): Implement differently.
31406         * lib/unistd.in.h (getdtablesize): Improve comment.
31407
31408 2009-08-23  Bruno Haible  <bruno@clisp.org>
31409
31410         New module 'mkostemp'.
31411         Based on Ulrich Drepper's 2007-08-10 change in glibc.
31412         * lib/stdlib.in.h (mksotemp): New declaration.
31413         * lib/mkostemp.c: New file, from glibc with modifications.
31414         * lib/tempname.h (GT_FILE): Remove outdated comment.
31415         (gen_tempname): Add flags argument.
31416         * lib/tempname.c (__GT_BIGFILE): Remove macro.
31417         (__GT_FILE): Map to 1.
31418         (small_open, large_open): Remove macros.
31419         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
31420         * lib/mkstemp.c (mkstemp): Update.
31421         * lib/mkdtemp.c (mkdtemp): Likewise.
31422         * m4/mkostemp.m4: New file.
31423         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
31424         HAVE_MKOSTEMP.
31425         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
31426         HAVE_MKOSTEMP.
31427         * modules/mkostemp: New file, based on modules/mkstemp.
31428         * doc/glibc-functions/mkostemp.texi: Mention the new module.
31429         * NEWS: Mention the change.
31430
31431 2009-08-23  Bruno Haible  <bruno@clisp.org>
31432
31433         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
31434         Reported by Eric Blake.
31435
31436 2009-08-23  Bruno Haible  <bruno@clisp.org>
31437
31438         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
31439         Reported by Eric Blake.
31440
31441 2009-08-23  Bruno Haible  <bruno@clisp.org>
31442
31443         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
31444         * modules/pipe2 (Depends-on): Likewise.
31445
31446 2009-08-23  Eric Blake  <ebb9@byu.net>
31447
31448         fcntl-h: add O_TTY_INIT support
31449         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
31450         * tests/test-fcntl-h.c (o): Test it.
31451         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31452
31453         fcntl-h: rename from fcntl, in preparation for fcntl(2)
31454         * modules/fcntl: Move <fcntl.h> header replacement...
31455         * modules/fcntl-h: ...to new name, so as not to collide with
31456         like-named function.
31457         * tests/test-fcntl.c: Rename...
31458         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
31459         * modules/fcntl-tests: Rename...
31460         * modules/fcntl-h-tests: ...to this.  Update test file name.
31461         * modules/chdir-long (Depends-on): Update clients.
31462         * modules/chdir-safer (Depends-on): Likewise.
31463         * modules/fcntl-safer (Depends-on): Likewise.
31464         * modules/fts (Depends-on): Likewise.
31465         * modules/mkancesdirs (Depends-on): Likewise.
31466         * modules/mkdir-p (Depends-on): Likewise.
31467         * modules/open (Depends-on): Likewise.
31468         * modules/savewd (Depends-on): Likewise.
31469         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
31470         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31471
31472 2009-08-22  Bruno Haible  <bruno@clisp.org>
31473
31474         * modules/binary-io (License): Relicense under LGPL.
31475         * modules/pipe2 (License): Likewise.
31476
31477 2009-08-22  Bruno Haible  <bruno@clisp.org>
31478
31479         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
31480         return value.
31481         * lib/pipe-filter-gi.c (filter_init): Likewise.
31482         Reported by Eric Blake.
31483
31484 2009-08-22  Bruno Haible  <bruno@clisp.org>
31485
31486         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
31487         * modules/pipe (Depends-on): Add pipe2.
31488
31489 2009-08-22  Bruno Haible  <bruno@clisp.org>
31490
31491         Tests for module 'pipe2'.
31492         * modules/pipe2-tests: New file.
31493         * tests/test-pipe2.c: New file.
31494
31495         New module 'pipe2'.
31496         * lib/unistd.in.h (pipe2): New declaration.
31497         * lib/pipe2.c: New file.
31498         * m4/pipe2.m4: New file.
31499         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
31500         HAVE_PIPE2.
31501         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
31502         * modules/pipe2: New file.
31503         * doc/glibc-functions/pipe2.texi: Mention the new module.
31504
31505 2009-08-22  Bruno Haible  <bruno@clisp.org>
31506
31507         Reference some new glibc functions.
31508         * doc/glibc-functions/accept4.texi: New file.
31509         * doc/glibc-functions/dup3.texi: New file.
31510         * doc/glibc-functions/mkostemp.texi: New file.
31511         * doc/glibc-functions/pipe2.texi: New file.
31512         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
31513         (Glibc sys/socket.h): Refer to accept4.
31514         (Glibc unistd.h): Refer to dup3, pipe2.
31515         Reported by Eric Blake.
31516
31517 2009-08-22  Jim Meyering  <meyering@redhat.com>
31518             Bruno Haible  <bruno@clisp.org>
31519
31520         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
31521         This makes it so packages using automake-1.11's silent-rules option
31522         can print e.g., a single "GEN    configmake.h" line, rather than
31523         the 30+ statements that perform the job.  If you want to see the
31524         actual commands, you can still run "make V=1".
31525         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
31526         so that make output is abbreviated when those variables are defined
31527         appropriately.
31528         * modules/argz: Likewise.
31529         * modules/arpa_inet: Likewise.
31530         * modules/byteswap: Likewise.
31531         * modules/configmake: Likewise.
31532         * modules/dirent: Likewise.
31533         * modules/errno: Likewise.
31534         * modules/fcntl: Likewise.
31535         * modules/float: Likewise.
31536         * modules/fnmatch: Likewise.
31537         * modules/getopt-posix: Likewise.
31538         * modules/glob: Likewise.
31539         * modules/iconv_open: Likewise.
31540         * modules/inttypes: Likewise.
31541         * modules/localcharset: Likewise.
31542         * modules/locale: Likewise.
31543         * modules/math: Likewise.
31544         * modules/netdb: Likewise.
31545         * modules/netinet_in: Likewise.
31546         * modules/poll: Likewise.
31547         * modules/posix_spawnp-tests: Likewise.
31548         * modules/sched: Likewise.
31549         * modules/search: Likewise.
31550         * modules/selinux-h: Likewise.
31551         * modules/signal: Likewise.
31552         * modules/spawn: Likewise.
31553         * modules/stdarg: Likewise.
31554         * modules/stdbool: Likewise.
31555         * modules/stddef: Likewise.
31556         * modules/stdint: Likewise.
31557         * modules/stdio: Likewise.
31558         * modules/stdlib: Likewise.
31559         * modules/string: Likewise.
31560         * modules/strings: Likewise.
31561         * modules/sys_file: Likewise.
31562         * modules/sys_ioctl: Likewise.
31563         * modules/sys_select: Likewise.
31564         * modules/sys_socket: Likewise.
31565         * modules/sys_stat: Likewise.
31566         * modules/sys_time: Likewise.
31567         * modules/sys_times: Likewise.
31568         * modules/sys_utsname: Likewise.
31569         * modules/sys_wait: Likewise.
31570         * modules/sysexits: Likewise.
31571         * modules/time: Likewise.
31572         * modules/unistd: Likewise.
31573         * modules/wchar: Likewise.
31574         * modules/wctype: Likewise.
31575
31576 2009-08-22  Jim Meyering  <meyering@redhat.com>
31577
31578         announce-gen: detect write failure
31579         * build-aux/announce-gen: Add Coda at end.
31580         Remove equivalent-but-more-verbose block at top.
31581
31582 2009-08-19  Akim Demaille  <demaille@gostai.com>
31583
31584         bootstrap: --help to stdout.
31585         * bootstrap (usage): Don't send --help to stderr.
31586         Use a here doc instead of a long string.
31587
31588 2009-08-21  Eric Blake  <ebb9@byu.net>
31589
31590         test-popen-safer: split from test-popen
31591         * tests/test-popen.c (main): Move...
31592         * tests/test-popen.h: ...into new file.
31593         * tests/test-popen-safer2.c: New file.
31594         * modules/popen-tests (Files): Add test-popen.h.
31595         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
31596         Suggested by Bruno Haible.
31597
31598         test-fcntl-safer: split from test-open
31599         * tests/test-open.c (main): Move...
31600         * tests/test-open.h: ...into new file.
31601         * tests/test-fcntl-safer.c: New file.
31602         * modules/open-tests (Files): Add test-open.h.
31603         * modules/fcntl-safer-tests: New file.
31604         Suggested by Bruno Haible.
31605
31606         test-fopen-safer: split from test-fopen
31607         * tests/test-fopen.c (main): Move...
31608         * tests/test-fopen.h: ...into new file.
31609         * tests/test-fopen-safer.c: New file.
31610         * modules/fopen-tests (Files): Add test-fopen.h.
31611         * modules/fopen-safer-tests: New file.
31612         Suggested by Bruno Haible.
31613
31614 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
31615
31616         popen-safer: test O_CLOEXEC at run-time.
31617         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
31618
31619 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
31620
31621         fcntl: move more flags to the header
31622         * lib/cloexec.c: Do not define FD_CLOEXEC here.
31623         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
31624         * lib/fcntl.in.h: Do both things here.
31625
31626 2009-08-21  Jim Meyering  <meyering@redhat.com>
31627
31628         consistently remove $@-t before redirecting to it
31629         * modules/argz: Remove $@-t and $@ before redirecting to the former.
31630         * modules/alloca-opt: Likewise.
31631         * modules/byteswap: Likewise.
31632         * modules/fnmatch: Likewise.
31633         * modules/getopt-posix: Likewise.
31634         * modules/glob: Likewise.
31635         * modules/poll: Likewise.
31636         * modules/posix_spawnp-tests: Likewise.
31637         * modules/sys_socket: Likewise.
31638         * modules/sysexits: Likewise.
31639
31640 2009-08-21  Eric Blake  <ebb9@byu.net>
31641
31642         popen: simplify access to original popen
31643         * lib/popen.c (rpl_popen): No need to worry about popen being a
31644         macro.
31645         Reported by Bruno Haible.
31646
31647 2009-08-20  Eric Blake  <ebb9@byu.net>
31648
31649         build: avoid some compiler warnings
31650         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
31651         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
31652         type.
31653         (new_exclude_segment, excluded_file_pattern_p)
31654         (excluded_file_name_p): Reduce scope.
31655         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
31656         old-style declaration.
31657
31658 2009-08-20  Simon Josefsson  <simon@josefsson.org>
31659
31660         * tests/test-exclude1.sh: Handle Windows EOL.
31661         * tests/test-exclude2.sh: Likewise.
31662         * tests/test-exclude3.sh: Likewise.
31663         * tests/test-exclude4.sh: Likewise.
31664         * tests/test-exclude5.sh: Likewise.
31665         * tests/test-exclude6.sh: Likewise.
31666         * tests/test-exclude7.sh: Likewise.
31667
31668 2009-08-19  Akim Demaille  <demaille@gostai.com>
31669
31670         bootstrap: find sha1sum when named gsha1sum.
31671         * bootstrap (find_tool): New.
31672         ($SHA1SUM): New.
31673         Use it.
31674
31675 2009-08-20  Jim Meyering  <meyering@redhat.com>
31676
31677         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
31678         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
31679         expression that converts "." in a file name to "\." in the resulting
31680         regexp.  Start with a dummy statement, so that prior shell variable
31681         definitions are expanded portably.  Reported by Simon Josefsson.
31682
31683 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
31684
31685         Fix polling for writeability of a screen buffer.
31686         * lib/poll.c: Distinguish input and screen buffers for the
31687         Win32 implementation.
31688         * lib/select.c: Likewise.
31689
31690 2009-08-19  Eric Blake  <ebb9@byu.net>
31691
31692         popen-safer: prevent popen from clobbering std descriptors
31693         * modules/popen-safer: New file.
31694         * lib/popen-safer.c: Likewise.
31695         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
31696         * lib/stdio--.h (popen): Provide override.
31697         * lib/stdio-safer.h (popen_safer): Provide declaration.
31698         * tests/test-popen.c (includes): Partially test this.
31699         * modules/popen-safer-tests: New file, for more tests.
31700         * tests/test-popen-safer.c: Likewise.
31701         * MODULES.html.sh (file stream based Input/Output): Mention it.
31702
31703         tests: test some of the *-safer modules
31704         * modules/fopen-safer (Depends-on): Add fopen.
31705         * modules/fcntl-safer (Depends-on): Add fcntl.
31706         * modules/stdlib-safer (Depends-on): Add stdlib.
31707         (configure.ac): Set indicator.
31708         * modules/unistd-safer (configure.ac): Likewise.
31709         * modules/tmpfile-safer (configure.ac): Likewise.
31710         (Depends-on): Add tmpfile.
31711         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
31712         active.
31713         * tests/test-fopen.c (includes): Test safer versions when they are
31714         in use.
31715         * tests/test-open.c (includes): Likewise.
31716
31717         popen: fix cygwin 1.5 bug when stdin closed
31718         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
31719         * modules/popen: New file.
31720         * modules/popen-tests: Likewise.
31721         * tests/test-popen.c: Likewise.
31722         * m4/popen.m4: Likewise.
31723         * lib/popen.c: Likewise.
31724         * lib/stdio.in.h (popen): New declaration.
31725         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
31726         * modules/stdio (Makefile.am): Likewise.
31727         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
31728
31729 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
31730
31731         maint.mk: give full control over update-copyright exclusions
31732         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
31733         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
31734         (update-copyright): Don't force inclusion of top-level
31735         ChangeLog.  Don't force exclusion of all COPYING files, but make
31736         them the default exclusion instead.
31737
31738 2009-08-16  Bruno Haible  <bruno@clisp.org>
31739
31740         Fix test failures on Solaris 10.
31741         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
31742         tests when Solaris iconv() is used.
31743         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
31744         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
31745         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
31746         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
31747         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
31748
31749 2009-08-16  Bruno Haible  <bruno@clisp.org>
31750
31751         Fix test failures on Solaris 10.
31752         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
31753         'tr' program and pass it as first argument.
31754         * tests/test-pipe-filter-gi1.sh: Likewise.
31755         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
31756         program as first argument.
31757         * tests/test-pipe-filter-gi1.c (main): Likewise.
31758
31759 2009-08-16  Eric Blake  <ebb9@byu.net>
31760
31761         fpurge: fix previous commits
31762         * modules/fpurge (Makefile.am): Make replacement conditional,
31763         partially reverting 2007-04-29 change; missed in previous
31764         attempt.
31765         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
31766         is missing.
31767
31768 2009-08-16  Bruno Haible  <bruno@clisp.org>
31769
31770         Clarify fpurge's effect on the file position.
31771         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
31772         * tests/test-fpurge.c (main): Make a second pass for checking the file
31773         position.
31774
31775 2009-08-16  Bruno Haible  <bruno@clisp.org>
31776
31777         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
31778         declaration of fpurge is missing.
31779         * tests/test-fpurge.c (main): Check that the file has not more contents
31780         than expected. Close the file before removing it.
31781
31782 2009-08-15  Eric Blake  <ebb9@byu.net>
31783
31784         fpurge: don't wrap working cygwin implementation
31785         * lib/fpurge.c (fpurge): Fix comment typo.
31786         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
31787         1.7 to avoid replacement.
31788         * tests/test-fpurge.c (main): Enhance test.
31789
31790 2009-08-15  Eric Blake  <ebb9@byu.net>
31791         and Jim Meyering  <meyering@redhat.com>
31792
31793         test-update-copyright: skip if perl is insufficient
31794         * tests/test-update-copyright.sh: Failure to run maintainer tool
31795         should not cause testsuite failure on cygwin 1.5.
31796
31797 2009-08-14  Eric Blake  <ebb9@byu.net>
31798
31799         doc: mention more functions added in cygwin 1.7.0
31800         * doc/posix-headers/limits.texi (limits.h): Update for recent
31801         cygwin additions.
31802         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
31803         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
31804         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
31805         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
31806         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
31807
31808 2009-08-14  Eric Blake  <ebb9@byu.net>
31809
31810         maint.mk: simplify update-copyright rule
31811         * top/maint.mk (update-copyright-local): Delete, and document how
31812         to do it in cfg.mk instead.
31813         (update-copyright-exclude-regexp): Delete, and document how to do
31814         it in .x-update-copyright instead.
31815         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
31816         exclude ChangeLog.
31817
31818 2009-08-14  Bruno Haible  <bruno@clisp.org>
31819
31820         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
31821
31822 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31823
31824         maint.mk: support update-copyright-env
31825         * top/maint.mk (update-copyright-env): Define place-holder.
31826         (update-copyright): Expand $(update-copyright-env) before
31827         invoking update-copyright.
31828
31829 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31830
31831         update-copyright: implement forced reformatting
31832         * build-aux/update-copyright: Implement and document
31833         UPDATE_COPYRIGHT_FORCE.
31834         * tests/test-update-copyright.sh: Test it.
31835
31836 2009-08-14  Eric Blake  <ebb9@byu.net>
31837         and Bruno Haible  <bruno@clisp.org>
31838
31839         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
31840         * tests/test-locale.c: Revert previous patch related to NULL.
31841         * tests/test-stdio.c: Likewise.
31842         * tests/test-stdlib.c: Likewise.
31843         * tests/test-string.c: Likewise.
31844         * tests/test-unistd.c: Likewise.
31845         * modules/time-tests (Depends-on): Add verify.
31846         * modules/wchar-tests (Depends-on): Likewise.
31847         * tests/test-time.c: Test for NULL compliance.
31848         * tests/test-wchar.c: Likewise.
31849         * modules/locale (Depends-on): Add stddef.
31850         * modules/stdio (Depends-on): Likewise.
31851         * modules/stdlib (Depends-on): Likewise.
31852         * modules/string (Depends-on): Likewise.
31853         * modules/time (Depends-on): Likewise.
31854         * modules/unistd (Depends-on): Likewise.
31855         * modules/wchar (Depends-on): Likewise.
31856         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
31857         * lib/stdlib.in.h (includes): Likewise.
31858         * lib/string.in.h (includes): Likewise.
31859         * lib/time.in.h (includes): Likewise.
31860         * lib/unistd.in.h (includes): Likewise.
31861         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
31862         replaced.
31863         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31864         * m4/stddef_h.m4: New file.
31865         * modules/stddef: Likewise.
31866         * lib/stddef.in.h: Likewise.
31867         * modules/stddef-tests: Likewise.
31868         * tests/test-stddef.c: Likewise.
31869         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
31870         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
31871         * doc/posix-headers/locale.texi (locale.h): Likewise.
31872         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
31873         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
31874         * doc/posix-headers/string.texi (string.h): Likewise.
31875         * doc/posix-headers/time.texi (time.h): Likewise.
31876         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
31877         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
31878
31879 2009-08-14  Eric Blake  <ebb9@byu.net>
31880
31881         doc: improve git diff of texinfo files
31882         * .gitattributes: Add rule for *.texi files, with hint on how to
31883         use it.
31884         Copied from m4, and based on a report by Bruno Haible.
31885
31886 2009-08-14  Bruno Haible  <bruno@clisp.org>
31887
31888         Disable multithread support by default on Cygwin 1.5.x for real.
31889         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
31890
31891 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31892
31893         update-copyright: much ado about intervals
31894         * build-aux/update-copyright: Implement and document
31895         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
31896         of copyright year intervals.
31897         Also, document UPDATE_COPYRIGHT_YEAR.
31898         * tests/test-update-copyright.sh: Test it.
31899
31900         update-copyright: convert 2-digit to 4-digit years
31901         * build-aux/update-copyright: Implement and document.
31902         * tests/test-update-copyright.sh: Update.
31903
31904 2009-08-14  Jim Meyering  <meyering@redhat.com>
31905
31906         test-exclude: avoid coreutils "make check" failure
31907         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
31908         just as in test-argmatch.c.
31909
31910 2009-08-13  Eric Blake  <ebb9@byu.net>
31911
31912         test-dup2: fix bad assumption
31913         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
31914         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
31915
31916         test-version-etc: fix CRLF portability issue
31917         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
31918         recognize \r.
31919         * tests/test-argp-version-etc-1.sh: Likewise.
31920
31921         getopt: update client modules
31922         * modules/argp (Depends-on): Use getopt-gnu.
31923         * modules/git-merge-changelog (Depends-on): Likewise.
31924         * modules/long-options (Depends-on): Likewise.
31925         * modules/xstrtol (Depends-on): Likewise.
31926
31927 2009-08-13  Simon Josefsson  <simon@josefsson.org>
31928
31929         * tests/test-version-etc.sh: Don't fail on different
31930         project/version.  Don't fail on CRLF differences.  Rewrite to use
31931         multiple -e instead of multiple sed forks, suggested by Eric Blake
31932         <ebb9@byu.net>.
31933         * tests/test-argp-version-etc-1.sh: Likewise.
31934
31935 2009-08-13  Simon Josefsson  <simon@josefsson.org>
31936
31937         * tests/test-version-etc.sh: Don't fail on different
31938         project/version.
31939
31940 2009-08-12  Bruno Haible  <bruno@clisp.org>
31941
31942         Tests for modules 'getopt-posix', 'getopt-gnu'.
31943         * modules/getopt-posix-tests: New file.
31944         * tests/test-getopt.c: New file.
31945         * tests/test-getopt.h: New file.
31946         * tests/test-getopt_long.h: New file.
31947
31948         New modules 'getopt-posix', 'getopt-gnu'.
31949         * modules/getopt-gnu: New file, renamed from modules/getopt.
31950         * modules/getopt-posix: New file.
31951         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
31952         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
31953         (gl_GETOPT): Remove macro.
31954         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
31955         Disable the test against BSD systems that declare optreset. Test
31956         against mingw bug. Test against lack of support of optional arguments
31957         on many platforms.
31958         * doc/glibc-headers/getopt.texi: Update module name and list of
31959         relevant platforms.
31960         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
31961         'getopt-gnu' and more portability problems.
31962         * NEWS: Mention the changes.
31963
31964 2009-08-12  Bruno Haible  <bruno@clisp.org>
31965
31966         Ensure that optarg etc. get declared by <unistd.h>.
31967         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
31968         AC_USE_SYSTEM_EXTENSIONS.
31969         * modules/getopt (Depends-on): Add 'extensions'.
31970
31971 2009-08-12  Bruno Haible  <bruno@clisp.org>
31972
31973         Avoid test link errors.
31974         * modules/pipe-filter-ii-tests (Makefile.am): Define
31975         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
31976         * modules/pipe-filter-gi-tests (Makefile.am): Define
31977         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
31978         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31979
31980 2009-08-12  Bruno Haible  <bruno@clisp.org>
31981
31982         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
31983         gl_GETOPT_SUBSTITUTE before.
31984         (gl_GETOPT): Use it.
31985         * m4/argp.m4 (gl_ARGP): Update.
31986         Reported by Sergey Poznyakoff.
31987
31988         * m4/getopt.m4: Reorder macros.
31989         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
31990         (gl_GETOPT_SUBSTITUTE): Remove macro.
31991
31992 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31993
31994         Minor improvement in gitlog-to-changelog
31995
31996         * build-aux/gitlog-to-changelog: New option `--format' makes
31997         output format string configurable.
31998
31999 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
32000
32001         Optimize exclude: use hash tables for non-wildcard patterns.
32002
32003         * lib/exclude.c: Include hash.h and mbuiter.h
32004         (struct exclude_pattern, exclude_segment): New data types.
32005         (struct exclude): Rewrite.
32006         (fnmatch_pattern_has_wildcards): New function.
32007         (new_exclude_segment, free_exclude_segment): New functions.
32008         (excluded_file_pattern_p, excluded_file_name_p): New functions.
32009         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
32010         * lib/exclude.h (is_fnmatch_pattern): New prototype.
32011         * modules/exclude: Depend on hash and mbuiter.
32012
32013         * modules/exclude-tests: New file.
32014         * tests/test-exclude.c: New file.
32015         * tests/test-exclude1.sh: New file.
32016         * tests/test-exclude2.sh: New file.
32017         * tests/test-exclude3.sh: New file.
32018         * tests/test-exclude4.sh: New file.
32019         * tests/test-exclude5.sh: New file.
32020         * tests/test-exclude6.sh: New file.
32021         * tests/test-exclude7.sh: New file.
32022
32023 2009-08-12  Bruno Haible  <bruno@clisp.org>
32024
32025         Ensure that getopt() gets declared by <unistd.h>.
32026         * lib/unistd.in.h: Conditionally include getopt.h.
32027         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
32028         Set GNULIB_UNISTD_H_GETOPT.
32029         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32030         GNULIB_UNISTD_H_GETOPT.
32031         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
32032
32033 2009-08-12  Bruno Haible  <bruno@clisp.org>
32034
32035         Clarify logic.
32036         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
32037         gl_replace_getopt instead of GETOPT_H.
32038
32039 2009-08-12  Bruno Haible  <bruno@clisp.org>
32040
32041         * m4/getopt.m4: Add comments.
32042
32043 2009-08-12  Bruno Haible  <bruno@clisp.org>
32044
32045         Disable multithread support by default on Cygwin 1.5.x.
32046         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
32047         set gl_use_threads=no if not specified otherwise.
32048
32049 2009-08-11  Bruno Haible  <bruno@clisp.org>
32050
32051         Avoid compilation error on NetBSD 5.0.
32052         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
32053         * tests/test-stdio.c: Likewise.
32054         * tests/test-stdlib.c: Likewise.
32055         * tests/test-string.c: Likewise.
32056         * tests/test-unistd.c: Likewise.
32057         Reported by Greg Troxel <gdt@ir.bbn.com>
32058         at <https://savannah.gnu.org/support/?106973>.
32059
32060 2009-08-11  Bruno Haible  <bruno@clisp.org>
32061
32062         * modules/dup2-tests (Depends-on): Remove close.
32063
32064         Undo 2009-07-19 commit.
32065         * modules/acl-tests (Depends-on): Remove close.
32066         * modules/binary-io-tests (Depends-on): Likewise.
32067         * modules/closein-tests (Depends-on): Likewise.
32068         * modules/flock-tests (Depends-on): Likewise.
32069         * modules/fsync-tests (Depends-on): Likewise.
32070         * modules/lseek-tests (Depends-on): Likewise.
32071         * modules/pipe-tests (Depends-on): Likewise.
32072         * modules/posix_spawn-tests (Depends-on): Likewise.
32073         * modules/posix_spawnp-tests (Depends-on): Likewise.
32074         * modules/stat-time-tests (Depends-on): Likewise.
32075         * modules/yesno-tests (Depends-on): Likewise.
32076
32077 2009-08-10  Bruno Haible  <bruno@clisp.org>
32078
32079         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
32080
32081 2009-08-10  Bruno Haible  <bruno@clisp.org>
32082
32083         Fix a gcc warning.
32084         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
32085
32086 2009-08-10  Bruno Haible  <bruno@clisp.org>
32087
32088         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
32089         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
32090         not only the first time.
32091         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
32092         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
32093         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
32094         is 1, not only the the first time.
32095
32096 2009-08-10  Bruno Haible  <bruno@clisp.org>
32097
32098         Make it possible to use module 'gethostname' without module 'close'.
32099         * lib/unistd.in.h (close): Evoke a link error only if
32100         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
32101         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32102         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32103         * modules/unistd (Makefile.am): Substitute
32104         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32105         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
32106         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
32107         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
32108         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32109         * modules/sys_ioctl (Makefile.am): Substitute
32110         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32111         * modules/socket (configure.ac): On native Windows, set
32112         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
32113         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32114         Reported by Sam Steingold <sds@gnu.org>.
32115
32116 2009-08-10  Bruno Haible  <bruno@clisp.org>
32117
32118         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
32119         * modules/ioctl (configure.ac): Likewise.
32120
32121 2009-08-10  Bruno Haible  <bruno@clisp.org>
32122
32123         Avoid collision between gnulib wrapper and libintl wrapper.
32124         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
32125         already defined in intl/printf.c.
32126         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
32127         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
32128
32129 2009-08-09  Bruno Haible  <bruno@clisp.org>
32130
32131         Make <sys/select.h> really self-contained, also on Solaris 10.
32132         * lib/sys_select.in.h: Include <string.h>.
32133         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
32134         Solaris 10 problem.
32135         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
32136         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
32137         Reported by Jim Meyering.
32138
32139 2009-08-09  Bruno Haible  <bruno@clisp.org>
32140
32141         Avoid warnings from 'aclocal' that are due to a use of macro name
32142         AM_XGETTEXT_OPTION that is not defined in automake.
32143         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
32144         automake.
32145         * modules/error (configure.ac): Likewise.
32146         * modules/propername (configure.ac): Likewise.
32147         * modules/vasprintf (configure.ac): Likewise.
32148         * modules/verror (configure.ac): Likewise.
32149         * modules/xprintf (configure.ac): Likewise.
32150         * modules/xvasprintf (configure.ac): Likewise.
32151
32152 2009-08-08  Bruno Haible  <bruno@clisp.org>
32153
32154         Avoid compilation error in C++ mode.
32155         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
32156         Reported by Sam Steingold <sds@gnu.org>.
32157
32158 2009-08-08  Bruno Haible  <bruno@clisp.org>
32159
32160         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
32161         for the various Unix platforms.
32162         * doc/posix-headers/limits.texi: Update platforms list regarding
32163         HOST_NAME_MAX.
32164         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32165
32166 2009-08-07  Jim Meyering  <meyering@redhat.com>
32167
32168         selinux-at: fix typo in a comment
32169         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
32170         Spotted by Paolo Bonzini.
32171
32172         selinux-at: remove redundant m4 code, add documentation
32173         * modules/selinux-at (configure.ac): Remove redundant code.
32174         LIB_SELINUX is already set via the dependent module, selinux-h.
32175         (Include): Add quotes around selinux-at.h.
32176         * lib/selinux-at.h: Add documentation.
32177         Reported by Bruno Haible in
32178         http://marc.info/?l=gnulib-bug&m=124958988300749
32179
32180 2009-08-07  Bruno Haible  <bruno@clisp.org>
32181
32182         Avoid link error on MacOS X 10.3 and 10.4.
32183         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
32184         on non-ELF systems.
32185         * lib/argp-pv.c (argp_program_version): Likewise.
32186         Reported by Simon Josefsson.
32187
32188 2009-08-07  Simon Josefsson  <simon@josefsson.org>
32189
32190         * tests/test-version-etc.sh: Use $EXEEXT.
32191
32192 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
32193
32194         update-copyright: update documentation to point to maint.mk
32195         * build-aux/update-copyright: Here.
32196
32197 2009-08-06  Jim Meyering  <meyering@redhat.com>
32198
32199         maint.mk: support update-copyright-local
32200         * top/maint.mk (update-copyright-local): Define place-holder.
32201         (update-copyright): Depend on $(update-copyright-local).
32202
32203 2009-08-06  Jim Meyering  <meyering@redhat.com>
32204
32205         selinux-at: new module
32206         Initially written for coreutils, this module will soon be
32207         used by findutils, too.
32208         * MODULES.html.sh [Misc]: Add selinux-at.
32209         * lib/selinux-at.h: New file, from coreutils.
32210         * lib/selinux-at.c: Likewise.
32211         * modules/selinux-at: Likewise.
32212         (License): Change from LGPL to GPL, since it depends
32213         on the GPL'd openat module.
32214
32215         doc: update README
32216         * README: Remove references to cogito.
32217         Remove cvs-repo-updating instructions from 2007.
32218         Don't imply that CVS is better if you have limited disk space.
32219
32220 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
32221
32222         update-copyright: support C-style comments
32223         * build-aux/update-copyright: Implement and document.
32224         * tests/test-update-copyright.sh: Test.
32225
32226 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
32227
32228         update-copyright: support omitted "(C)"
32229         * build-aux/update-copyright: Implement and document.  Also,
32230         allow variable whitespace before "(C)".
32231         * tests/test-update-copyright.sh: Test.
32232
32233 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
32234
32235         update-copyright: don't trip on non-FSF copyright statements
32236         * build-aux/update-copyright: Fix so that the first correctly
32237         formatted FSF copyright statement is recognized no matter what
32238         appears before it.  Update documentation.
32239         * tests/test-update-copyright.sh: Test that.
32240
32241 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
32242
32243         update-copyright: clean up code a little
32244         * build-aux/update-copyright: Append "_re" to the name of any
32245         variable holding a regular expression.
32246         Replace "old" and "new" with "stmt" in variable names.
32247         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
32248         handled correctly.
32249         Format code more consistently.
32250
32251 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
32252
32253         update-copyright-tests: improve portability
32254         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
32255         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
32256
32257 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
32258
32259         update-copyright: support @copyright{} and &copy;
32260         * build-aux/update-copyright: Implement and document.
32261         * tests/test-update-copyright.sh: Test.
32262
32263 2009-08-04  Jim Meyering  <meyering@redhat.com>
32264
32265         update-copyright-tests: correctly test EOL=\r\n handling
32266         * tests/test-update-copyright.sh: Put \r at the end of some lines
32267         for the dos-eol tests.  Based on a patch by Joel E. Denny.
32268
32269         maint.mk: make update-copyright exclusion list more configurable
32270         * top/maint.mk (update-copyright): Default to excluding COPYING,
32271         but allow an override, in case someone does want to update that file.
32272
32273         maint.mk: don't update copyright date in COPYING
32274         * top/maint.mk (update-copyright): Exclude COPYING.
32275
32276         maint.mk: add a copyright-updating rule
32277         * top/maint.mk (update-copyright): New rule.
32278         Derived from coreutils/Makefile.am.
32279
32280         update-copyright: rename some variables
32281         * build-aux/update-copyright: Rename a few variables for clarity.
32282         Tweak syntax.  List Joel E. Denny as coauthor.
32283
32284 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
32285
32286         update-copyright: fix bug for 2-digit last year and add tests
32287         * build-aux/update-copyright: Fix bug.
32288         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
32289         specified.
32290         * modules/update-copyright-tests: New
32291         * tests/test-update-copyright.sh: New.
32292
32293 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
32294
32295         update-copyright: handle leading tabs in line prefix
32296         * build-aux/update-copyright: Count leading tabs as 8 spaces
32297         when computing margin.  This helps with the formatting of
32298         ChangeLogs, for example.
32299         Fix documentation a little.
32300
32301 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
32302
32303         update-copyright: support EOL=\r\n
32304         * build-aux/update-copyright: Implement that.
32305
32306 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
32307
32308         update-copyright: automatically format copyright statements
32309         * build-aux/update-copyright: Implement that.
32310         Also, be a little more predictable and safer by always failing
32311         when the full copyright format is not perfectly recognized as an
32312         unbroken whole.  Discussed at
32313         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
32314         Rewrite documentation.
32315
32316 2009-08-03  Bruno Haible  <bruno@clisp.org>
32317
32318         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
32319
32320 2009-08-02  Bruno Haible  <bruno@clisp.org>
32321
32322         Tests for module 'uname'.
32323         * modules/uname-tests: New file.
32324         * tests/test-uname.c: New file.
32325
32326         New module 'uname'.
32327         * lib/uname.c: New file.
32328         * m4/uname.m4: New file.
32329         * modules/uname: New file.
32330         * doc/posix-functions/uname.texi: Mention the new module.
32331
32332 2009-08-02  Bruno Haible  <bruno@clisp.org>
32333
32334         Tests for module 'sys_utsname'.
32335         * modules/sys_utsname-tests: New file.
32336         * tests/test-sys_utsname.c: New file.
32337
32338         New module 'sys_utsname'.
32339         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
32340         * m4/sys_utsname_h.m4: New file.
32341         * modules/sys_utsname: New file.
32342         * doc/posix-headers/sys_utsname.texi: Mention the new module.
32343
32344 2009-08-02  Bruno Haible  <bruno@clisp.org>
32345
32346         Implicitly initialize the sockets library.
32347         * lib/gethostname.c: Include sockets.h.
32348         (rpl_gethostname): Invoke gl_sockets_startup.
32349         * lib/socket.c: Include sockets.h.
32350         (rpl_socket): Invoke gl_sockets_startup.
32351         * modules/gethostname (Depends-on): Add sockets.
32352         * modules/socket (Depends-on): Likewise.
32353         * tests/test-poll.c: Don't include sockets.h.
32354         (main): Don't invoke gl_sockets_startup.
32355         * tests/test-select.c: Don't include sockets.h.
32356         (main): Don't invoke gl_sockets_startup.
32357
32358 2009-08-02  Bruno Haible  <bruno@clisp.org>
32359
32360         Allow multiple calls to gl_sockets_startup.
32361         * lib/sockets.c (initialized_sockets_version): New variable.
32362         (gl_sockets_startup): Do nothing if already called for this or a higher
32363         version.
32364         (gl_sockets_cleanup): Reset initialized_sockets_version.
32365
32366 2009-08-03  Simon Josefsson  <simon@josefsson.org>
32367
32368         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
32369         different project/version.
32370
32371 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
32372             Bruno Haible  <bruno@clisp.org>
32373
32374         Tests for module 'pipe-filter-gi'.
32375         * modules/pipe-filter-gi-tests: New file.
32376         * tests/test-pipe-filter-gi1.sh: New file.
32377         * tests/test-pipe-filter-gi1.c: New file.
32378         * tests/test-pipe-filter-gi2.sh: New file.
32379         * tests/test-pipe-filter-gi2-main.c: New file.
32380         * tests/test-pipe-filter-gi2-child.c: New file.
32381
32382         New module 'pipe-filter-gi'.
32383         * lib/pipe-filter-gi.c: New file.
32384         * modules/pipe-filter-gi: New file.
32385
32386 2009-08-02  Bruno Haible  <bruno@clisp.org>
32387             Paolo Bonzini  <bonzini@gnu.org>
32388
32389         Tests for module 'pipe-filter-ii'.
32390         * modules/pipe-filter-ii-tests: New file.
32391         * tests/test-pipe-filter-ii1.sh: New file.
32392         * tests/test-pipe-filter-ii1.c: New file.
32393         * tests/test-pipe-filter-ii2.sh: New file.
32394         * tests/test-pipe-filter-ii2-main.c: New file.
32395         * tests/test-pipe-filter-ii2-child.c: New file.
32396
32397         New module 'pipe-filter-ii'.
32398         * lib/pipe-filter.h: New file.
32399         * lib/pipe-filter-ii.c: New file.
32400         * lib/pipe-filter-aux.h: New file.
32401         * modules/pipe-filter-ii: New file.
32402
32403 2009-08-02  Simon Josefsson  <simon@josefsson.org>
32404
32405         * lib/gc-libgcrypt.c: Change copyright to FSF.
32406         * lib/gc-gnulib.c: Likewise.
32407
32408 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
32409
32410         * lib/gethostname.c: Include limits.h.
32411
32412 2009-08-02  Simon Josefsson  <simon@josefsson.org>
32413             Bruno Haible  <bruno@clisp.org>
32414
32415         Ensure HOST_NAME_MAX as part of the gethostname module.
32416         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
32417         define also HOST_NAME_MAX.
32418         * tests/test-gethostname.c: Include <limits.h>.
32419         (main): Check also HOST_NAME_MAX.
32420         * doc/posix-headers/limits.texi: Document the mingw problem.
32421
32422 2009-08-02  Bruno Haible  <bruno@clisp.org>
32423
32424         * lib/gethostname.c (gethostname): Fix handling of large len argument.
32425         Add comments.
32426
32427 2009-03-31  Simon Josefsson  <simon@josefsson.org>
32428
32429         * lib/gethostname.c: Add Windows wrapper.
32430         * m4/gethostname.m4: Look for gethostname in -lws2_32.
32431         * modules/gethostname: Depend on sys_socket & errno, for also
32432         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
32433         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
32434
32435 2009-07-31  Jim Meyering  <meyering@redhat.com>
32436
32437         getloadavg: fix symbol name in comment
32438         * lib/getloadavg.c: Correct a typo I introduced when adding
32439         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
32440         Matt Kraai spotted the problem.
32441
32442 2009-07-29  Matt Kraai  <mkraai@beckman.com>
32443
32444         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
32445         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
32446         code also if ! defined N_NAME_POINTER.
32447         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
32448         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
32449         but the n_name member is a 12-byte array.
32450
32451 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
32452
32453         update-copyright: generalize comment handling
32454         * build-aux/update-copyright: Handle copyright statements
32455         within more comment styles.
32456         Document usage.
32457         Report any file with an external copyright holder or parse failure.
32458
32459 2009-07-29  Jim Meyering  <meyering@redhat.com>
32460
32461         mktime: correct setting of REPLACE_MKTIME
32462         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
32463
32464         update-copyright: new module
32465         * modules/update-copyright: New file.
32466         * build-aux/update-copyright: New file.
32467         * MODULES.html.sh (maint+release support): Add update-copyright.
32468
32469 2009-07-27  Bruno Haible  <bruno@clisp.org>
32470
32471         Fix compilation error when <ctime> is used and mktime is replaced.
32472         * lib/time.in.h (mktime): New declaration.
32473         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
32474         REPLACE_MKTIME instead of defining mktime in config.h.
32475         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
32476         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
32477         Reported by Ross McFarland <rwmcfa1@neces.com>.
32478
32479 2009-07-27  Bruno Haible  <bruno@clisp.org>
32480
32481         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
32482         Reported by Matt Kraai <mkraai@beckman.com>.
32483
32484 2009-07-25  Jim Meyering  <meyering@redhat.com>
32485
32486         maint.mk: avoid warnings about missing files
32487         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
32488         diagnostic when .prev-version does not exist.
32489         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
32490         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
32491         nonexistent cfg.mk.
32492         Suggestions from Simon Josefsson.
32493
32494 2009-07-25  Bruno Haible  <bruno@clisp.org>
32495
32496         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
32497         defined as macros. Needed on QNX 6.4.1.
32498         Reported by Matt Kraai <mkraai@beckman.com>.
32499
32500 2009-07-23  Jim Meyering  <meyering@redhat.com>
32501
32502         maint.mk: invoke "make dist" with a working value of XZ_OPT
32503         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
32504
32505 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
32506
32507         Make fseeko.c compile on QNX.
32508         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
32509
32510 2009-07-22  Peter Simons  <simons@cryp.to>
32511
32512         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
32513         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
32514         * lib/md4.h: Likewise.
32515         * lib/md5.h: Likewise.
32516         * lib/sha1.h: Likewise.
32517         * lib/sha256.h: Likewise.
32518         * lib/sha512.h: Likewise.
32519
32520         tests-sha1: don't assign literal string to 'char *' variable
32521         * tests/test-sha1.c (main): Declare locals with "const" to match
32522         attributes of the right hand side.
32523
32524 2009-07-21  Eric Blake  <ebb9@byu.net>
32525
32526         dup2: fix more mingw problems
32527         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
32528         fd to itself.
32529         * doc/posix-functions/dup2.texi (dup2): Document the bug.
32530         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
32531         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
32532         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
32533         care of mingw bugs.
32534
32535 2009-07-21  Jim Meyering  <meyering@redhat.com>
32536
32537         vc-list-files: avoid failure when /bin/sh is dash
32538         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
32539         On some Debian based systems, /bin/sh is a symlink to dash, and running
32540         this command would omit the "/" following each 'tests' prefix:
32541           dash -x build-aux/vc-list-files -C . tests
32542         That is because bash and dash work differently:
32543           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
32544           bash ok
32545           dash odd
32546
32547 2009-07-21  Eric Blake  <ebb9@byu.net>
32548
32549         dup2-tests: test previous patch
32550         * modules/dup2-tests: New file.
32551         * tests/test-dup2.c: Likewise.
32552         * tests/test-open.c (main): Avoid unspecified behavior.
32553         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
32554         test.
32555
32556         dup2: work around mingw and cygwin 1.5 bug
32557         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
32558         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32559         * modules/unistd (Makefile.am): Substitute it.
32560         * lib/unistd.in.h (dup2): Declare the replacement.
32561         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
32562         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
32563         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
32564         * modules/execute (Depends-on): Add dup2.
32565         * modules/fseterr (Depends-on): Likewise.
32566         * modules/pipe (Depends-on): Likewise.
32567         * modules/posix_spawn-internal (Depends-on): Likewise.
32568
32569 2009-07-21  Bruno Haible  <bruno@clisp.org>
32570
32571         * modules/.gitattributes: New file.
32572
32573 2009-07-20  Bruno Haible  <bruno@clisp.org>
32574
32575         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
32576         (main): Use it.
32577
32578 2009-07-20  Eric Blake  <ebb9@byu.net>
32579
32580         test-pipe: make a bit more robust.
32581         * tests/test-pipe.c (myerr): Allow error messages regardless of
32582         what we do to stderr.
32583         (test_pipe): Rearrange to avoid deadlock.
32584         (child_main): Try a larger read, to ensure we avoided deadlock.
32585         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
32586         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
32587         if misused.
32588
32589 2009-07-19  Jim Meyering  <meyering@redhat.com>
32590
32591         fts: avoid false-positive cycle-detection
32592         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
32593         for each new command line argument.
32594
32595 2009-07-19  Bruno Haible  <bruno@clisp.org>
32596
32597         Fix build error on mingw with the modules sys_select and unistd.
32598         * modules/acl-tests (Depends-on): Add close.
32599         * modules/binary-io-tests (Depends-on): Likewise.
32600         * modules/closein-tests (Depends-on): Likewise.
32601         * modules/flock-tests (Depends-on): Likewise.
32602         * modules/fsync-tests (Depends-on): Likewise.
32603         * modules/lseek-tests (Depends-on): Likewise.
32604         * modules/pipe-tests (Depends-on): Likewise.
32605         * modules/posix_spawn-tests (Depends-on): Likewise.
32606         * modules/posix_spawnp-tests (Depends-on): Likewise.
32607         * modules/stat-time-tests (Depends-on): Likewise.
32608         * modules/yesno-tests (Depends-on): Likewise.
32609
32610 2009-07-19  Bruno Haible  <bruno@clisp.org>
32611
32612         Unify conditionals.
32613         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
32614         macros, not at the compiler macros.
32615         * lib/pipe.c: Likewise.
32616         * lib/execute.c: Likewise.
32617         * lib/spawni.c: Likewise.
32618
32619 2009-07-19  Bruno Haible  <bruno@clisp.org>
32620
32621         Fix handling of closed stdin/stdout/stderr on mingw.
32622         * lib/w32spawn.h: Include unistd.h.
32623         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
32624         file descriptor with O_NOINHERIT flag.
32625         (fd_safer_noinherit): New function, based on fd-safer.c.
32626         (dup_safer_noinherit): New function, based on dup-safer.c.
32627         (undup_safer_noinherit): New function.
32628         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
32629         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
32630         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
32631         instead of fd_safer.
32632         * tests/test-pipe.c: Include <windows.h>.
32633         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
32634         result.
32635
32636         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
32637         from main.
32638         (test_pipe): Pass an extra argument for disambiguation.
32639         (main): Invoke parent_main or child_main.
32640
32641         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
32642         consistently.
32643
32644 2009-07-18  Eric Blake  <ebb9@byu.net>
32645
32646         test-pipe: fix mingw build
32647         * tests/test-pipe.c (main): Avoid fcntl on mingw.
32648
32649 2009-07-18  Bruno Haible  <bruno@clisp.org>
32650
32651         * modules/pipe-tests (Makefile.am): Fix typo.
32652
32653 2009-07-18  Eric Blake  <ebb9@byu.net>
32654
32655         error: fix mingw build
32656         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
32657         Reported by Bruno Haible.
32658
32659         error: avoid undefined use of stdout
32660         * lib/error.c (error, error_at_line): Check that fd 1 is open
32661         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
32662         is handling faults and the close_stdout module wants to report the
32663         detection of closed stdout as an error.
32664
32665 2009-07-17  Eric Blake  <ebb9@byu.net>
32666
32667         pipe: be robust in face of closed fds
32668         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
32669         should cause child to misbehave.
32670         * modules/pipe-tests: New module.
32671         * tests/test-pipe.c: New file.
32672         * tests/test-pipe.sh: New file.
32673         Reported by Akim Demaille.
32674
32675 2009-07-14  Bruno Haible  <bruno@clisp.org>
32676
32677         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
32678         Reported by anonymous kc.
32679
32680 2009-07-07  Jim Meyering  <meyering@redhat.com>
32681
32682         maint.mk: don't look for translatable strings in *.m4 or *.mk
32683         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
32684         when searching for translatable strings.
32685
32686 2009-07-05  Jim Meyering  <meyering@redhat.com>
32687
32688         remove superfluous parentheses in STREQ definition
32689         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
32690         * lib/getugroups.c (STREQ): Likewise.
32691         * lib/fnmatch.c (STREQ): Likewise.
32692         Spotted by Bruno Haible.
32693
32694 2009-07-04  Jim Meyering  <meyering@redhat.com>
32695
32696         argv-iter: new module
32697         * MODULES.html.sh: Add argv-iter.
32698         * lib/argv-iter.c, lib/argv-iter.h: New files.
32699         * modules/argv-iter: New file.
32700         * modules/argv-iter-tests: New file.
32701         * tests/test-argv-iter.c: Test it.
32702
32703 2009-07-04  Bruno Haible  <bruno@clisp.org>
32704
32705         Fix assertion.
32706         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
32707         contains more exact copies of a given entry than file2, leave the extra
32708         copies unpaired rather than aborting.
32709         Reported by Eric Blake.
32710
32711 2009-07-02  Bruno Haible  <bruno@clisp.org>
32712
32713         Speedup git-merge-changelog for git cherry-pick.
32714         * lib/git-merge-changelog.c (struct entries_mapping): New type.
32715         (entries_mapping_get): New function, extracted from compute_mapping.
32716         (entries_mapping_reverse_get): New function.
32717         (compute_mapping): Add a 'full' argument. Return the result in a
32718         'struct entries_mapping'.
32719         (main): Update. Access the mappings through entries_mapping_get.
32720         Reported by Eric Blake.
32721
32722 2009-07-02  Bruno Haible  <bruno@clisp.org>
32723
32724         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
32725         best_i.
32726
32727 2009-07-02  Bruno Haible  <bruno@clisp.org>
32728
32729         Speed up approximate search for matching ChangeLog entries.
32730         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
32731         argument. Call fstrcmp_bounded instead of fstrcmp.
32732         (compute_mapping, try_split_merged_entry, main): Update callers.
32733
32734 2009-07-02  Bruno Haible  <bruno@clisp.org>
32735
32736         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
32737
32738 2009-06-30  Bruno Haible  <bruno@clisp.org>
32739
32740         Reduce the number of uc_is_cased calls.
32741         * lib/unicase.h (casing_suffix_context_t): Add
32742         'first_char_except_ignorable' field.
32743         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
32744         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
32745         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
32746         Update initializer.
32747         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
32748         case-ignorable characters.
32749         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
32750         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
32751         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
32752         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
32753         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
32754
32755 2009-06-30  Bruno Haible  <bruno@clisp.org>
32756
32757         Tests for module 'unicase/ignorable'.
32758         * modules/unicase/ignorable-tests: New file.
32759         * tests/unicase/test-ignorable.c: New file, generated by
32760         gen-uni-tables.
32761
32762         Tests for module 'unicase/cased'.
32763         * modules/unicase/cased-tests: New file.
32764         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
32765         * tests/unicase/test-predicate-part1.h: New file, derived from
32766         tests/unictype/test-predicate-part1.h.
32767         * tests/unicase/test-predicate-part2.h: New file, same as
32768         tests/unictype/test-predicate-part2.h.
32769
32770         Fix evaluation of "Before C" condition of FINAL_SIGMA.
32771         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
32772         (output_casing_properties): New function.
32773         (main): Call it.
32774         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
32775         * lib/unicase/cased.c: Include unictype/bitmap.h.
32776         (uc_is_cased): Define through a bitmap lookup.
32777         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
32778         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
32779         (uc_is_case_ignorable): Define through a bitmap lookup.
32780         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
32781         lib/unictype/bitmap.h.
32782         (Depends-on): Add inline. Clean up.
32783         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
32784         lib/unictype/bitmap.h.
32785         (Depends-on): Add inline. Clean up.
32786         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
32787         recognition.
32788         * tests/unicase/test-u16-tolower.c (main): Likewise.
32789         * tests/unicase/test-u32-tolower.c (main): Likewise.
32790
32791 2009-06-30  Bruno Haible  <bruno@clisp.org>
32792
32793         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
32794         * lib/unicase/u16-casemap.c: Likewise.
32795         * lib/unicase/u32-casemap.c: Likewise.
32796
32797 2009-06-29  Bruno Haible  <bruno@clisp.org>
32798
32799         Define u32_casefold as a wrapper around u32_ct_casefold.
32800         * lib/unicase/u32-casefold.c: Update.
32801         * modules/unicase/u32-casefold (Depends-on): Add
32802         unicase/u32-ct-casefold, unicase/empty-prefix-context,
32803         unicase/empty-suffix-context. Clean up.
32804
32805         Define u16_casefold as a wrapper around u16_ct_casefold.
32806         * lib/unicase/u16-casefold.c: Update.
32807         * modules/unicase/u16-casefold (Depends-on): Add
32808         unicase/u16-ct-casefold, unicase/empty-prefix-context,
32809         unicase/empty-suffix-context. Clean up.
32810
32811         Define u8_casefold as a wrapper around u8_ct_casefold.
32812         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
32813         * lib/unicase/u8-casefold.c: Update.
32814         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
32815         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32816
32817         Define u32_totitle as a wrapper around u32_ct_totitle.
32818         * lib/unicase/u32-totitle.c: Update.
32819         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
32820         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32821
32822         Define u16_totitle as a wrapper around u16_ct_totitle.
32823         * lib/unicase/u16-totitle.c: Update.
32824         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
32825         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32826
32827         Define u8_totitle as a wrapper around u8_ct_totitle.
32828         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
32829         functions.
32830         (FUNC): Delegate to U_CT_TOTITLE.
32831         * lib/unicase/u8-totitle.c: Update.
32832         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
32833         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32834
32835         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
32836         invocation.
32837         * modules/unicase/u32-tolower (Depends-on): Add
32838         unicase/empty-prefix-context, unicase/empty-suffix-context.
32839
32840         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
32841         invocation.
32842         * modules/unicase/u16-tolower (Depends-on): Add
32843         unicase/empty-prefix-context, unicase/empty-suffix-context.
32844
32845         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
32846         * modules/unicase/u8-tolower (Depends-on): Add
32847         unicase/empty-prefix-context, unicase/empty-suffix-context.
32848
32849         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
32850         invocation.
32851         * modules/unicase/u32-toupper (Depends-on): Add
32852         unicase/empty-prefix-context, unicase/empty-suffix-context.
32853
32854         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
32855         invocation.
32856         * modules/unicase/u16-toupper (Depends-on): Add
32857         unicase/empty-prefix-context, unicase/empty-suffix-context.
32858
32859         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
32860         * modules/unicase/u8-toupper (Depends-on): Add
32861         unicase/empty-prefix-context, unicase/empty-suffix-context.
32862
32863         New module 'unicase/u32-ct-casefold'.
32864         * lib/unicase/u32-ct-casefold.c: New file.
32865         * modules/unicase/u32-ct-casefold: New file.
32866
32867         New module 'unicase/u16-ct-casefold'.
32868         * lib/unicase/u16-ct-casefold.c: New file.
32869         * modules/unicase/u16-ct-casefold: New file.
32870
32871         New module 'unicase/u8-ct-casefold'.
32872         * lib/unicase/u8-ct-casefold.c: New file.
32873         * lib/unicase/u-ct-casefold.h: New file, derived from
32874         lib/unicase/u-casefold.h.
32875         * modules/unicase/u8-ct-casefold: New file.
32876
32877         New module 'unicase/u32-ct-totitle'.
32878         * lib/unicase/u32-ct-totitle.c: New file.
32879         * modules/unicase/u32-ct-totitle: New file.
32880
32881         New module 'unicase/u16-ct-totitle'.
32882         * lib/unicase/u16-ct-totitle.c: New file.
32883         * modules/unicase/u16-ct-totitle: New file.
32884
32885         New module 'unicase/u8-ct-totitle'.
32886         * lib/unicase/u8-ct-totitle.c: New file.
32887         * lib/unicase/u-ct-totitle.h: New file, derived from
32888         lib/unicase/u-totitle.h.
32889         * modules/unicase/u8-ct-totitle: New file.
32890
32891         New module 'unicase/u32-ct-tolower'.
32892         * lib/unicase/u32-ct-tolower.c: New file.
32893         * modules/unicase/u32-ct-tolower: New file.
32894
32895         New module 'unicase/u16-ct-tolower'.
32896         * lib/unicase/u16-ct-tolower.c: New file.
32897         * modules/unicase/u16-ct-tolower: New file.
32898
32899         New module 'unicase/u8-ct-tolower'.
32900         * lib/unicase/u8-ct-tolower.c: New file.
32901         * modules/unicase/u8-ct-tolower: New file.
32902
32903         New module 'unicase/u32-ct-toupper'.
32904         * lib/unicase/u32-ct-toupper.c: New file.
32905         * modules/unicase/u32-ct-toupper: New file.
32906
32907         New module 'unicase/u16-ct-toupper'.
32908         * lib/unicase/u16-ct-toupper.c: New file.
32909         * modules/unicase/u16-ct-toupper: New file.
32910
32911         New module 'unicase/u8-ct-toupper'.
32912         * lib/unicase/u8-ct-toupper.c: New file.
32913         * modules/unicase/u8-ct-toupper: New file.
32914
32915         Add context arguments to u*_casemap functions.
32916         * lib/unicase/unicasemap.h: Include unicase.h.
32917         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
32918         suffix_context arguments.
32919         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
32920         functions.
32921         (FUNC): Add prefix_context and suffix_context arguments. Use
32922         uc_is_cased and uc_is_case_ignorable.
32923         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
32924         * lib/unicase/u16-casemap.c: Likewise.
32925         * lib/unicase/u32-casemap.c: Likewise.
32926         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
32927         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32928         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
32929         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32930         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
32931         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32932
32933         New module 'unicase/u32-suffix-context'.
32934         * lib/unicase/u32-suffix-context.c: New file.
32935         * modules/unicase/u32-suffix-context: New file.
32936
32937         New module 'unicase/u16-suffix-context'.
32938         * lib/unicase/u16-suffix-context.c: New file.
32939         * modules/unicase/u16-suffix-context: New file.
32940
32941         New module 'unicase/u8-suffix-context'.
32942         * lib/unicase/u8-suffix-context.c: New file.
32943         * lib/unicase/u-suffix-context.h: New file.
32944         * modules/unicase/u8-suffix-context: New file.
32945
32946         New module 'unicase/empty-suffix-context'.
32947         * lib/unicase/empty-suffix-context.c: New file.
32948         * modules/unicase/empty-suffix-context: New file.
32949
32950         New module 'unicase/u32-prefix-context'.
32951         * lib/unicase/u32-prefix-context.c: New file.
32952         * modules/unicase/u32-prefix-context: New file.
32953
32954         New module 'unicase/u16-prefix-context'.
32955         * lib/unicase/u16-prefix-context.c: New file.
32956         * modules/unicase/u16-prefix-context: New file.
32957
32958         New module 'unicase/u8-prefix-context'.
32959         * lib/unicase/u8-prefix-context.c: New file.
32960         * lib/unicase/u-prefix-context.h: New file.
32961         * lib/unicase/context.h: New file.
32962         * modules/unicase/u8-prefix-context: New file.
32963
32964         New module 'unicase/empty-prefix-context'.
32965         * lib/unicase/empty-prefix-context.c: New file.
32966         * modules/unicase/empty-prefix-context: New file.
32967
32968         New module 'unicase/ignorable'.
32969         * lib/unicase/ignorable.c: New file.
32970         * modules/unicase/ignorable: New file.
32971
32972         New module 'unicase/cased'.
32973         * lib/unicase/caseprop.h: New file.
32974         * lib/unicase/cased.c: New file.
32975         * modules/unicase/cased: New file.
32976
32977         New functions for case mapping of substrings.
32978         * lib/unicase.h (casing_prefix_context_t): New type.
32979         (unicase_empty_prefix_context): New variable.
32980         (u8_casing_prefix_context, u16_casing_prefix_context,
32981         u32_casing_prefix_context, u8_casing_prefixes_context,
32982         u16_casing_prefixes_context, u32_casing_prefixes_context): New
32983         declarations.
32984         (casing_suffix_context_t): New type.
32985         (unicase_empty_suffix_context): New variable.
32986         (u8_casing_suffix_context, u16_casing_suffix_context,
32987         u32_casing_suffix_context, u8_casing_suffixes_context,
32988         u16_casing_suffixes_context, u32_casing_suffixes_context,
32989         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
32990         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
32991         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
32992         declarations.
32993
32994 2009-06-28  Jim Meyering  <meyering@redhat.com>
32995
32996         boostrap: indent only with spaces
32997         * build-aux/bootstrap: Indent only with spaces, never TABs.
32998
32999         bootstrap: split long lines
33000         * build-aux/bootstrap: Keep line length < 80.
33001
33002         bootstrap: sync from coreutils
33003         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
33004         just as autoreconf does.  Verify a list of prerequisite
33005         package-name,version-number pairs if defined in bootstrap.conf.
33006         Refer to README-prereq, if prerequisites are not satisfied.
33007
33008 2009-06-27  Eric Blake  <ebb9@byu.net>
33009
33010         tests: add test for bogus NULL definition
33011         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
33012         * tests/test-stdlib.c: Likewise.
33013         * tests/test-string.c: Likewise.
33014         * tests/test-locale.c: Likewise.
33015         * tests/test-unistd.c: Likewise.
33016         * modules/stdio-tests (Depends-on): Add verify.
33017         * modules/stdlib-tests (Depends-on): Likewise.
33018         * modules/string-tests (Depends-on): Likewise.
33019         * modules/locale-tests (Depends-on): Likewise.
33020         * modules/unistd-tests (Depends-on): Likewise.
33021
33022 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
33023
33024         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
33025         self-explaining comment.
33026         * m4/selinux-selinux-h: Update serial.
33027         (gl_LIBSELINUX): New macro, adding a warning for missing development
33028         packages to code extracted from...
33029         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
33030         Add warning for missing development packages here, too.
33031
33032 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
33033
33034         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
33035
33036 2009-06-25  Eric Blake  <ebb9@byu.net>
33037
33038         version-etc: fix regression
33039         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
33040         gcc.
33041         (version_etc): Use it, to catch bugs with trailing NULL.
33042         * lib/version-etc.c (version_etc_arn): Delete unused argument.
33043         (version_etc_va): Fix logic bug.
33044         * modules/version-etc-tests: Add test.
33045         * tests/test-version-etc.c: New file.
33046         * tests/test-version-etc.sh: Likewise.
33047
33048 2009-06-25  Sam Steingold  <sds@gnu.org>
33049
33050         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
33051         mbtowc declaration.
33052
33053 2009-06-25  Eric Blake  <ebb9@byu.net>
33054
33055         fpurge: migrate into <stdio.h>
33056         * lib/fpurge.h: Delete...
33057         * lib/stdio.in.h (fpurge): ...and declare here, instead.
33058         * lib/fpurge.c (fpurge): Change declaring header.
33059         * modules/fpurge (Files): Drop deleted file.
33060         (Depends-on): Add stdio.
33061         (configure.ac): Set witness.
33062         * modules/stdio (Makefile.am): Support fpurge macros.
33063         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
33064         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
33065         * lib/fflush.c: Update client.
33066         * tests/test-fpurge.c: Likewise.
33067         * NEWS: Mention the change.
33068
33069 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
33070
33071         * lib/argp-version-etc.c (program_authors): Add const
33072         qualifier.
33073         * lib/version-etc.c: Fix typos in the comments.
33074         * modules/argp-version-etc: Depends on version-etc.
33075
33076 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
33077
33078         argp-version-etc: new module.
33079
33080         * lib/argp-version-etc.c: New file.
33081         * lib/argp-version-etc.h: New file.
33082         * modules/argp-version-etc: New file.
33083         * modules/argp-version-etc-tests: New file.
33084         * tests/test-argp-version-etc.c: New test.
33085         * tests/test-argp-version-etc-1.sh: New test.
33086
33087 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
33088
33089         Provide additional interfaces and documentation for version-etc
33090         module.
33091
33092         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
33093         interfaces.
33094         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
33095         prototypes.
33096
33097 2009-06-24  Bruno Haible  <bruno@clisp.org>
33098
33099         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
33100         HAVE_LIB${NAME} macro.
33101         Reported by Sam Steingold <sds@gnu.org>.
33102
33103 2009-06-23  Simon Josefsson  <simon@josefsson.org>
33104
33105         * modules/hash-tests (test_hash_LDADD): Link to libintl when
33106         needed.
33107
33108 2009-06-21  Bruno Haible  <bruno@clisp.org>
33109
33110         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
33111         work.
33112         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
33113         together with LIB${NAME}, LTLIB${NAME}.
33114         Reported by Sam Steingold <sds@gnu.org>.
33115
33116 2009-06-20  Jim Meyering  <meyering@redhat.com>
33117
33118         tests: make sc_require_test_exit_idiom more generic
33119         * top/maint.mk (Exit_witness_file): New overridable variable.
33120         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
33121         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
33122
33123 2009-06-19  Jim Meyering  <meyering@redhat.com>
33124
33125         hash: reverse order of src/dst parameters in an internal interface
33126         * lib/hash.c (transfer_entries): Reverse order of parameters to
33127         put DST before SRC.  Adjust callers.
33128
33129         tests: test-hash: avoid wholesale duplication
33130         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
33131         Instead, use a loop and add a single conditional.
33132
33133         tests: test-hash: allow seed selection via a command line argument
33134         * tests/test-hash.c (get_seed): New function.
33135         (main): Use it.
33136
33137 2009-06-19  Eric Blake  <ebb9@byu.net>
33138
33139         hash: avoid memory leak on allocation failure
33140         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
33141         failure.  Factor repeated algorithm...
33142         (transfer_entries): ...into new helper routine.
33143         (hash_delete): React to hash_rehash return value.
33144
33145         hash: reduce memory pressure in hash_rehash no-op case
33146         * lib/hash.c (next_prime): Avoid overflow.
33147         (hash_initialize): Factor bucket size computation...
33148         (compute_bucket_size): ...into new helper function.
33149         (hash_rehash): Use new function and open coding to reduce memory
33150         pressure, and avoid a memory leak in USE_OBSTACK code.
33151         Reported by Jim Meyering.
33152
33153 2009-06-18  Eric Blake  <ebb9@byu.net>
33154
33155         hash: make rotation more obvious
33156         * modules/hash (Depends-on): Add bitrotate and stdint.
33157         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
33158         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
33159         (SIZE_MAX): Rely on headers for definition.
33160         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
33161         (raw_hasher): Use rotr_sz.
33162         Suggested by Jim Meyering.
33163
33164         hash: fix memory leak in last patch
33165         * lib/hash.c (hash_rehash): Avoid memory leak.
33166
33167         hash: avoid no-op rehashing
33168         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
33169
33170         hash: provide default callback functions
33171         * lib/hash.c (raw_hasher, raw_comparator): New functions.
33172         (hash_initialize): Use them as defaults.
33173         * tests/test-hash.c (main): Test this.
33174
33175         hash: minor optimization
33176         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
33177         when possible.
33178         (hash_initialize): Document this promise.
33179         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
33180         * tests/test-hash.c (hash_compare_strings): Test this.
33181
33182 2009-06-18  Bruno Haible  <bruno@clisp.org>
33183
33184         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
33185         going to be replaced anyway.
33186
33187 2009-06-18  Bruno Haible  <bruno@clisp.org>
33188
33189         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
33190         in one place.
33191         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
33192         be replaced anyway.
33193
33194 2009-06-18  Eric Blake  <ebb9@byu.net>
33195
33196         hash: check for resize before insertion
33197         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
33198         threshold before insertion, so that a pathological hash_rehash
33199         that fills every bucket can still trigger another rehash.
33200
33201 2009-06-18  Jim Meyering  <meyering@redhat.com>
33202
33203         hash-tests: add a loop around the small tests
33204         * tests/test-hash.c (main): Repeat small tests with selected
33205         small initial table sizes.
33206
33207 2009-06-17  Eric Blake  <ebb9@byu.net>
33208
33209         hash: minor cleanups
33210         * lib/hash.h (hash_entry): Make opaque, by moving...
33211         * lib/hash.c (hash_entry): ...here.
33212         (hash_insert): Clarify restrictions on what can be inserted.
33213         (hash_get_next): Clarify when it is safe to remove an element
33214         during traversal.
33215         (check_tuning): Skip verification when tuning is known safe.
33216         (hash_initialize): Clarify restrictions on tuning.
33217
33218 2009-06-17  Jim Meyering  <jim@meyering.net>
33219         and Eric Blake  <ebb9@byu.net>
33220
33221         hash-tests: new module
33222         * modules/hash-tests: New file.
33223         * tests/test-hash.c: New file.
33224
33225 2009-06-17  Eric Blake  <ebb9@byu.net>
33226
33227         strstr-simple: document new module
33228         * MODULES.html.sh: Document new module.
33229
33230         strstr, strcasestr: replace on platforms with broken memchr
33231         * modules/strstr: Split into...
33232         * modules/strstr-simple: ...new module that does not care about
33233         performance, but does care about glibc bug.
33234         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
33235         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
33236         if platform memchr is broken, per Debian bug 521737.
33237         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
33238         memchr.
33239         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
33240         * doc/posix-functions/strstr.texi (strstr): Document the fix.
33241         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
33242         * modules/mountlist (Depends-on): Add strstr-simple.
33243         * modules/gen-uni-tables (Depends-on): Likewise.
33244         * modules/argz (Depends-on): Add strstr.
33245
33246 2009-06-17  Bruno Haible  <bruno@clisp.org>
33247
33248         * modules/posix_spawn-internal (Depends-on): Add errno.
33249
33250 2009-06-17  Bruno Haible  <bruno@clisp.org>
33251
33252         Define missing ESTALE on Interix 3.5.
33253         * lib/errno.in.h (ESTALE): Assign a value if missing.
33254         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
33255         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
33256         missing.
33257         * doc/posix-headers/errno.texi: Mention the Interix bug.
33258         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
33259
33260 2009-06-15  Eric Blake  <ebb9@byu.net>
33261
33262         memchr, memchr2: add valgrind exception
33263         * lib/memchr.valgrind: New file.
33264         * lib/memchr2.valgrind: New file.
33265         * modules/memchr (Files): Distribute valgrind file.
33266         * modules/memchr2 (Files): Likewise.
33267
33268         docs: memchr is no longer obsolete
33269         * MODULES.html.sh: Move memchr from obsolete to string.h section.
33270         * lib/string.in.h (memchr): Simplify logic.
33271
33272 2009-06-14  Jim Meyering  <meyering@redhat.com>
33273
33274         link-follow: fix the "checking..." message to not mention trailing slash
33275         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
33276         never considered trailing slashes.
33277
33278 2009-06-14  Bruno Haible  <bruno@clisp.org>
33279
33280         * m4/memchr.m4: Mention also the bug on IA-64.
33281         * doc/posix-functions/memchr.texi: Likewise.
33282
33283 2009-06-12  Eric Blake  <ebb9@byu.net>
33284
33285         memchr: detect broken x86_64 and alpha implementations
33286         * modules/memchr-tests (Depends-on): Move mmap detection...
33287         * modules/memchr (Depends-on): ...here.
33288         (configure.ac): Set indicator.
33289         * lib/string.in.h (memchr): Declare replacement.
33290         * modules/string (Makefile.am): Trigger replacement.
33291         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
33292         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
33293         bugs.
33294         * doc/posix-functions/memchr.texi (memchr): Document the bug.
33295         * modules/getpagesize (License): Relax license.
33296
33297 2009-06-11  Bruno Haible  <bruno@clisp.org>
33298
33299         * lib/idpriv.h: Add more references.
33300
33301 2009-06-08  Bruno Haible  <bruno@clisp.org>
33302
33303         Tests for module 'idpriv-droptemp'.
33304         * modules/idpriv-droptemp-tests: New file.
33305         * tests/test-idpriv-droptemp.sh: New file.
33306         * tests/test-idpriv-droptemp.su.sh: New file.
33307         * tests/test-idpriv-droptemp.c: New file.
33308
33309         New module 'idpriv-droptemp'.
33310         * lib/idpriv-droptemp.c: New file.
33311         * modules/idpriv-droptemp: New file.
33312
33313 2009-06-08  Bruno Haible  <bruno@clisp.org>
33314
33315         Tests for module 'idpriv-drop'.
33316         * modules/idpriv-drop-tests: New file.
33317         * tests/test-idpriv-drop.sh: New file.
33318         * tests/test-idpriv-drop.su.sh: New file.
33319         * tests/test-idpriv-drop.c: New file.
33320
33321         New module 'idpriv-drop'.
33322         * lib/idpriv.h: New file.
33323         * lib-idpriv-drop.c: New file.
33324         * m4/idpriv.m4: New file.
33325         * modules/idpriv-drop: New file.
33326
33327 2009-06-08  Bruno Haible  <bruno@clisp.org>
33328
33329         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
33330         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33331         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33332         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33333         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33334         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33335         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
33336
33337 2009-06-08  Eric Blake  <ebb9@byu.net>
33338
33339         test-strstr: use memory fence, when possible
33340         * tests/test-strstr.c (main): Use memory fence, in order to be
33341         more likely to trigger Debian bug 521737.
33342         * modules/strstr-tests (Files): Pull in additional files.
33343
33344         memchr: no longer obsolete, for wider field testing
33345         * modules/memchr (Status, Notice): Delete, this module is no
33346         longer obsolete.
33347         * modules/vasnprintf (Depends-on): Add memchr.
33348
33349 2009-06-07  Jim Meyering  <meyering@redhat.com>
33350
33351         hash: declare some functions with the warn_unused_result attribute
33352         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
33353
33354 2009-06-07  Bruno Haible  <bruno@clisp.org>
33355
33356         * tests/test-alignof.c: Don't test int64_t if it does not exist.
33357         Reported by Eric Blake.
33358
33359 2009-06-06  Eric Blake  <ebb9@byu.net>
33360
33361         test-alignof: fix typo with long double
33362         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
33363         compiler error.
33364
33365 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
33366
33367         Escape non-texinfo { and }s.
33368         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
33369         markup error.
33370
33371 2009-06-04  Jim Meyering  <meyering@redhat.com>
33372
33373         gitlog-to-changelog: don't infloop on an empty commit log
33374         * build-aux/gitlog-to-changelog: Warn about an empty log message.
33375         Reported by Boris Petersen <transacid@centerim.org>.
33376
33377 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
33378
33379         version-etc: extend for packagers
33380         Add three new configure options, intended for packagers:
33381           --with-packager="packager name"
33382           --with-packager-version="packager-specific version"
33383           --with-packager-bug-reports="packager bug reporting"
33384         An example with coreutils:
33385           $ ./configure \
33386             --with-packager=Gentoo \
33387             --with-packager-bug-report=http://bugs.gentoo.org/ \
33388             --with-packager-version="patchset 1.6"
33389           $ ./src/ls --version | head -n2
33390           ls (GNU coreutils) 7.1-dirty
33391           Packaged by Gentoo (patchset 1.6)
33392         Note that the bug reporting info via --help doesn't show up because
33393         coreutils uses its own custom emit_bug_reporting_address() implementation
33394         in src/system.h.  If it didn't, it'd look like:
33395           $ ./src/ls --help | tail -n4
33396           Report bugs to <bug-coreutils@gnu.org>.
33397           Report Gentoo bugs to <http://bugs.gentoo.org/>.
33398           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
33399           General help using GNU software: <http://www.gnu.org/gethelp/>.
33400         * lib/version-etc.c: Print new information, if provided.
33401         * m4/version-etc.m4: New file.
33402         * modules/version-etc (Files): Add m4/version-etc.m4.
33403         (configure.ac): Add gl_VERSION_ETC.
33404
33405 2009-05-31  Bruno Haible  <bruno@clisp.org>
33406
33407         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
33408         and 'int64_t'.
33409         * modules/alignof-tests (Dependencies): Add stdint.
33410         Reported by Eric Blake.
33411
33412 2009-05-31  Bruno Haible  <bruno@clisp.org>
33413
33414         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
33415         restriction due to compiler bugs.
33416         Reported by Eric Blake.
33417
33418 2009-05-31  Simon Josefsson  <simon@josefsson.org>
33419             Bruno Haible  <bruno@clisp.org>
33420
33421         Fix test-alignof failure.
33422         * lib/alignof.h (alignof_slot): New macro.
33423         (alignof_type): New macro, with the same semantics as the previous
33424         'alignof'.
33425         (alignof): Alias to alignof_slot.
33426         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
33427         check that the results are usable as constant expressions.
33428
33429 2009-05-31  Bruno Haible  <bruno@clisp.org>
33430
33431         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
33432         * tests/test-memchr.c (main): Check that memchr does not read past the
33433         first occurrence of the byte.
33434         * tests/test-strstr.c (main): Update comment.
33435         Suggested by Eric Blake.
33436
33437 2009-05-30  Bruno Haible  <bruno@clisp.org>
33438
33439         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
33440         detail how to use dumpbin.
33441         Reported by David Byron <dbyron@dbyron.com>.
33442
33443 2009-06-02  Simon Josefsson  <simon@josefsson.org>
33444
33445         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
33446
33447 2009-06-02  Simon Josefsson  <simon@josefsson.org>
33448
33449         * m4/manywarnings.m4: Add GCC 4.4 warnings.
33450
33451 2009-05-28  Bruno Haible  <bruno@clisp.org>
33452
33453         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
33454         build-aux/ files.
33455
33456 2009-05-28  Simon Josefsson  <simon@josefsson.org>
33457
33458         * gnulib-tool (func_import): Transform license on build-aux/ files too.
33459
33460 2009-05-27  Simon Josefsson  <simon@josefsson.org>
33461
33462         * gnulib-tool (sed_transform_main_lib_file)
33463         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
33464         regexps.
33465
33466 2009-05-26  Simon Josefsson  <simon@josefsson.org>
33467
33468         * tests/test-strstr.c: Add another self-test.
33469         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
33470         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
33471
33472 2009-05-23  Bruno Haible  <bruno@clisp.org>
33473
33474         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
33475         change.
33476
33477 2009-05-21  Bruno Haible  <bruno@clisp.org>
33478
33479         Simplify use of mode_t varargs.
33480         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
33481         uses 'mode_t' or 'int'.
33482         * lib/openat.c (openat): Likewise.
33483         * lib/open-safer.c (open_safer): Likewise.
33484         * m4/mode_t.m4: New file.
33485         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
33486         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
33487         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
33488         * modules/open (Files): Add m4/mode_t.m4.
33489         * modules/openat (Files): Likewise.
33490         * modules/fcntl-safer (Files): Likewise.
33491         Suggested by Eric Blake.
33492
33493 2009-05-21  Pádraig Brady  <P@draigbrady.com>
33494
33495         * doc/glibc-functions/fallocate.texi: New file.
33496         * doc/gnulib.texi: Include it.
33497
33498 2009-05-21  Eric Blake  <ebb9@byu.net>
33499             Bruno Haible  <bruno@clisp.org>
33500
33501         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
33502         invocations.
33503         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
33504
33505 2009-05-21  Eric Blake  <ebb9@byu.net>
33506             Bruno Haible  <bruno@clisp.org>
33507
33508         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
33509         include_next. Fix of 2008-11-20 commit.
33510         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
33511         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
33512         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
33513         NEXT_MATH_H.
33514         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
33515         instead of NEXT_MATH_H.
33516
33517 2009-05-21  Bruno Haible  <bruno@clisp.org>
33518
33519         Avoid redefinition warnings for SIZE_MAX.
33520         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
33521         Reported by Simon Josefsson.
33522
33523 2009-05-21  Bruno Haible  <bruno@clisp.org>
33524
33525         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
33526         AC_CACHE_VAL.
33527
33528 2009-05-20  Bruno Haible  <bruno@clisp.org>
33529
33530         Make zeroptr.h work on mingw.
33531         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
33532         mprotect.
33533         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
33534         * modules/memchr2-tests (configure.ac): Likewise.
33535         * modules/memcmp-tests (configure.ac): Likewise.
33536         * modules/memmem-tests (configure.ac): Likewise.
33537         * modules/memrchr-tests (configure.ac): Likewise.
33538         Reported by Simon Josefsson.
33539
33540 2009-05-20  Simon Josefsson  <simon@josefsson.org>
33541
33542         * tests/test-glob.c: Include string.h for strcmp prototype.
33543
33544 2009-05-20  Simon Josefsson  <simon@josefsson.org>
33545
33546         * modules/getdelim (Depends-on): Add explicit stdint, although it
33547         was implicitly already pulled in via realloc-posix.
33548         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
33549
33550 2009-05-20  Simon Josefsson  <simon@josefsson.org>
33551
33552         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
33553         G. Christensen" <tgc@jupiterrise.com>.
33554         * m4/sys_socket_h.m4: Check for sa_family_t.
33555         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
33556         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
33557         * tests/test-sys_socket.c: Check that sa_family_t works.
33558
33559 2009-05-18  Eric Blake  <ebb9@byu.net>
33560
33561         maint.mk: allow gnulib_dir in VPATH build
33562         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
33563
33564 2009-05-15  Jim Meyering  <meyering@redhat.com>
33565
33566         maint.mk: Give gnulib_dir a default definition.
33567         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
33568         Thus, most packages no longer need to specify this variable in cfg.mk
33569
33570 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
33571
33572         rename.m4: fix typos that would make non-mingw cross-configure fail
33573         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
33574
33575 2009-05-13  Eric Blake  <ebb9@byu.net>
33576
33577         mmap-anon: avoid out-of-order autoconf expansion
33578         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
33579         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
33580         * modules/memchr-tests (Depends-on): Add extensions.
33581         * modules/memchr2-tests (Depends-on): Add extensions.
33582         * modules/memcmp-tests (Depends-on): Add extensions.
33583         * modules/memmem-tests (Depends-on): Add extensions.
33584         * modules/memrchr-tests (Depends-on): Add extensions.
33585
33586 2009-05-13  Bruno Haible  <bruno@clisp.org>
33587
33588         Make some tests ISO C 99 compliant.
33589         * tests/zerosize-ptr.h: New file.
33590         * tests/test-memchr.c: Include zerosize-ptr.h.
33591         (main): Use a zero-size object pointer instead of NULL.
33592         * tests/test-memchr2.c: Include zerosize-ptr.h.
33593         (main): Use a zero-size object pointer instead of NULL.
33594         * tests/test-memcmp.c: Include zerosize-ptr.h.
33595         (main): Use a zero-size object pointer instead of NULL.
33596         * tests/test-memmem.c: Include zerosize-ptr.h.
33597         (main): Use a zero-size object pointer instead of NULL.
33598         * tests/test-memrchr.c: Include zerosize-ptr.h.
33599         (main): Use a zero-size object pointer instead of NULL.
33600         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
33601         m4/mmap-anon.m4.
33602         (Depends-on): Add getpagesize.
33603         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33604         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
33605         m4/mmap-anon.m4.
33606         (Depends-on): Add getpagesize.
33607         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33608         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
33609         m4/mmap-anon.m4.
33610         (Depends-on): Add getpagesize.
33611         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33612         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
33613         m4/mmap-anon.m4.
33614         (Depends-on): Add getpagesize.
33615         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33616         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
33617         m4/mmap-anon.m4.
33618         (Depends-on): Add getpagesize.
33619         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33620
33621 2009-05-12  Bruno Haible  <bruno@clisp.org>
33622
33623         Tests for module 'alignof'.
33624         * modules/alignof-tests: New file.
33625         * tests/test-alignof.c: New file.
33626
33627 2009-05-12  Bruno Haible  <bruno@clisp.org>
33628
33629         Fix alignof macro.
33630         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
33631         vendor compilers that are always correct.
33632
33633 2009-05-12  Bruno Haible  <bruno@clisp.org>
33634
33635         Make the MAP_ANONYMOUS detection work on HP-UX 11.
33636         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
33637         not whether its fully works.
33638
33639 2009-05-12  Bruno Haible  <bruno@clisp.org>
33640
33641         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
33642
33643 2009-05-12  Jim Meyering  <meyering@redhat.com>
33644
33645         * top/maint.mk: Adjust backslash alignment.
33646
33647 2009-05-11  Simon Josefsson  <simon@josefsson.org>
33648
33649         * top/maint.mk: Make $(srcdir)/build-aux configurable.
33650
33651 2009-05-11  Eric Blake  <ebb9@byu.net>
33652
33653         argp: avoid undefined behavior
33654         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
33655         macros.
33656
33657 2009-05-08  Simon Josefsson  <simon@josefsson.org>
33658
33659         * tests/test-vc-list-files-git.sh: Do git config of user.email and
33660         user.name to prevent git commit from complaining.
33661
33662 2009-05-10  Bruno Haible  <bruno@clisp.org>
33663
33664         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
33665         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
33666         it rewrites every file name only once.
33667         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
33668
33669 2009-05-08  Bruno Haible  <bruno@clisp.org>
33670
33671         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
33672         instead of 'max'.
33673
33674 2009-05-08  Simon Josefsson  <simon@josefsson.org>
33675
33676         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
33677         sockaddr_storage test.
33678
33679 2009-05-07  Simon Josefsson  <simon@josefsson.org>
33680
33681         * modules/sys_socket (Makefile.am): Substitute
33682         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
33683         * m4/sys_socket_h.m4: Check for sockaddr_storage.
33684         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
33685         * tests/test-sys_socket.c: Check sockaddr_storage.
33686
33687 2009-05-08  Bruno Haible  <bruno@clisp.org>
33688
33689         New module 'alignof'.
33690         * lib/alignof.h: New file.
33691         * modules/alignof: New file.
33692
33693 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33694             Bruno Haible  <bruno@clisp.org>
33695
33696         Fix test-file-has-acl on FreeBSD.
33697         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
33698         mask is implicitly added.
33699         * tests/test-file-has-acl.c: Include <signal.h>.
33700         (main): Terminate the test after 5 seconds.
33701         * modules/acl-tests (configure.ac): Check for alarm function.
33702
33703 2009-05-04  Bruno Haible  <bruno@clisp.org>
33704
33705         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
33706         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
33707         * modules/errno (configure.ac): Drop AC_REQUIRE.
33708         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
33709         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
33710
33711 2009-05-04  Simon Josefsson  <simon@josefsson.org>
33712
33713         * modules/glob-tests: New module.
33714         * tests/test-glob.c: Add.
33715
33716 2009-05-04  Simon Josefsson  <simon@josefsson.org>
33717
33718         * modules/fnmatch-tests: New module.
33719         * tests/test-fnmatch.c: Add.
33720
33721 2009-05-04  Eric Blake  <ebb9@byu.net>
33722
33723         maint: make the new no-submodule-changes rule VPATH-safe
33724         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
33725
33726 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33727             Bruno Haible  <bruno@clisp.org>
33728
33729         acl: Fix infinite loop on FreeBSD.
33730         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
33731         of return value from acl_get_entry.
33732         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
33733         Likewise.
33734
33735 2009-05-03  Bruno Haible  <bruno@clisp.org>
33736
33737         * lib/acl-internal.h (acl_entries): Clarify return value.
33738         * lib/acl_entries.c (acl_entries): Likewise.
33739
33740 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33741
33742         Bug fix in acl module.
33743         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
33744
33745 2009-05-03  Bruno Haible  <bruno@clisp.org>
33746
33747         Create gperf-generated file in the source dir, not in the build dir.
33748         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
33749         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
33750         * modules/unicase/locale-language (unicase/locale-languages.h):
33751         Likewise.
33752         * modules/unicase/special-casing (unicase/special-casing-table.h):
33753         Likewise.
33754         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
33755         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
33756         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
33757         Reported by Ralf Wildenhues.
33758
33759 2009-05-03  Bruno Haible  <bruno@clisp.org>
33760
33761         * modules/fnmatch (Description, configure.ac): Taken from
33762         fnmatch-posix.
33763         * modules/fnmatch-posix: Turn into a symbolic reference to the
33764         'fnmatch' module, and deprecate.
33765         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
33766
33767 2009-05-03  Bruno Haible  <bruno@clisp.org>
33768
33769         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
33770         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
33771         Reported by Ralf Wildenhues.
33772
33773 2009-05-04  Simon Josefsson  <simon@josefsson.org>
33774
33775         * m4/fnmatch.m4: Fix fnmatch re-define.
33776
33777 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33778
33779         priv-set: new module and tests; adapt write-any-file
33780         * lib/priv-set.c: New file.
33781         * lib/priv-set.h: New file.
33782         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
33783         * lib/write-any-file.c: Simplify by using priv-set module.
33784         * m4/priv-set.m4: New file.
33785         * modules/priv-set: New file.
33786         * modules/unlinkdir: Add dependency on priv-set module.
33787         * modules/write-any-file: Likewise.
33788
33789         Tests for module 'priv-set'.
33790         * modules/priv-set-tests: New file.
33791         * tests/test-priv-set.c: New file.
33792
33793 2009-05-03  Jim Meyering  <meyering@redhat.com>
33794             Bruno Haible  <bruno@clisp.org>
33795
33796         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
33797         use the converted UTF-8 variant of the name instead.
33798
33799 2009-05-03  Jim Meyering  <meyering@redhat.com>
33800
33801         tests: tighten some getdate tests
33802         * tests/test-getdate.c (main): Tighten tests: require equality,
33803         not just greater than.  Set TZ envvar to UTC0.
33804
33805 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
33806
33807         getdate: correctly interpret "next monday" when run on a Monday
33808         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
33809         that e.g., "next tues" (when run on a tuesday) results in a date
33810         that is one week in the future, and not today's date.
33811         I.e., add a week when the wday is the same as the current one.
33812         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
33813         and earlier by Martin Bernreuther and Jan Minář.
33814         * tests/test-getdate.c (main): Check that "next DAY" is always in
33815         the future and that "last DAY" is always in the past.
33816
33817 2009-05-02  Jim Meyering  <meyering@redhat.com>
33818
33819         build: ensure that a release build fails when a submodule is unclean
33820         * top/maint.mk (no-submodule-changes): New rule.
33821         (alpha beta major): Depend on it.
33822
33823 2009-05-02  Bruno Haible  <bruno@clisp.org>
33824
33825         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
33826         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
33827         shell variable gl_fnmatch_required to detect which variant is
33828         requested.
33829         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
33830         gl_FUNC_FNMATCH_POSIX.
33831         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
33832         exclude fnmatch-posix.
33833
33834 2009-05-02  Bruno Haible  <bruno@clisp.org>
33835
33836         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
33837         * modules/mbsrtowcs (License): Change to LGPLv2+.
33838         * modules/strnlen1 (License): Likewise.
33839         Reported by Simon Josefsson.
33840
33841 2009-05-02  Bruno Haible  <bruno@clisp.org>
33842
33843         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
33844         "cross".
33845         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
33846         gnulib-tool was called with option --source-base=lib.
33847
33848 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33849
33850         Use automake *-local hooks without commands, for extensibility.
33851         * modules/localcharset (Makefile.am): Rename install-exec-local
33852         rule to install-exec-localcharset, and make it a prerequisite of
33853         install-exec-local.  Likewise, rename the uninstall-local rule to
33854         uninstall-localcharset, and make it a prerequisite of the former.
33855
33856 2009-05-01  Bruno Haible  <bruno@clisp.org>
33857
33858         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
33859         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
33860         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
33861         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
33862         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
33863         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
33864         m4/locale-zh.m4, m4/codeset.m4.
33865
33866         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
33867         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
33868         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
33869         m4/locale-zh.m4.
33870
33871         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
33872         REPLACE_WCRTOMB if mbstate_t must be replaced.
33873         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
33874         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
33875
33876 2009-05-01  Bruno Haible  <bruno@clisp.org>
33877
33878         Avoid compiler warnings when redefining macros defined by <libintl.h>.
33879         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
33880         dngettext, dcngettext, textdomain, bindtextdomain,
33881         bind_textdomain_codeset): Undefine before redefining.
33882
33883 2009-04-30  Bruno Haible  <bruno@clisp.org>
33884
33885         Fix bug introduced on 2009-04-25.
33886         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
33887         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
33888         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
33889         is defined.
33890         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
33891         is defined.
33892         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
33893         is defined.
33894         Reported by Elbert_Pol <elbert.pol@gmail.com>.
33895
33896 2009-04-28  Bruno Haible  <bruno@clisp.org>
33897
33898         Comment tweaks.
33899         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
33900         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
33901         * lib/unicase.h (u*_casexfrm): Likewise.
33902         Reported by Paolo Bonzini.
33903
33904 2009-04-28  Bruno Haible  <bruno@clisp.org>
33905
33906         Fix a compilation error.
33907         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
33908         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
33909         Reported by Jim Meyering.
33910
33911 2009-04-27  Bruno Haible  <bruno@clisp.org>
33912
33913         New module 'libunistring'.
33914         * modules/libunistring: New file.
33915         * m4/libunistring.m4: New file.
33916         * MODULES.html.sh (Unicode string functions): Add it.
33917
33918 2009-04-27  Eric Blake  <ebb9@byu.net>
33919
33920         maint.mk: allow package-specific header to provide <config.h>
33921         * top/maint.mk (sc_require_config_h): New variable.
33922         (sc_require_config_h, sc_require_config_h_first): Use it.
33923
33924 2009-04-27  Simon Josefsson  <simon@josefsson.org>
33925
33926         * top/maint.mk (sc_avoid_if_before_free): Except
33927         useless-if-before-free script.
33928
33929 2009-04-27  Eric Blake  <ebb9@byu.net>
33930
33931         maintainer-makefile: depend on all required helper scripts
33932         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
33933         useless-if-before-free.
33934         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
33935         version, rather than assuming gnulib checkout is available.
33936         Reported by Simen Josefsson.
33937
33938 2009-04-26  Bruno Haible  <bruno@clisp.org>
33939
33940         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
33941         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
33942         "../" or "..".
33943
33944 2009-04-26  Bruno Haible  <bruno@clisp.org>
33945
33946         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
33947         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
33948         AC_LIB_HAVE_LINKFLAGS.
33949
33950 2009-04-26  Bruno Haible  <bruno@clisp.org>
33951
33952         Simplify calling convention of u*_conv_from_encoding.
33953         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
33954         u32_conv_from_encoding): Expect a resultbuf argument and return the
33955         result directly as a pointer.
33956         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
33957         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
33958         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
33959         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
33960         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
33961         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
33962         Update.
33963         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
33964         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
33965         * lib/vasnprintf.c (VASNPRINTF): Update.
33966         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
33967         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
33968         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
33969         * NEWS: Mention the change.
33970
33971 2009-04-26  Bruno Haible  <bruno@clisp.org>
33972
33973         Simplify calling convention of u*_conv_to_encoding.
33974         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
33975         u32_conv_to_encoding): Expect a resultbuf argument and return the
33976         result directly as a pointer.
33977         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
33978         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
33979         freeing scaled_offsets if mem_iconveha failed.
33980         * lib/unicase/u-casexfrm.h (FUNC): Update.
33981         * lib/uninorm/u-normxfrm.h (FUNC): Update.
33982         * lib/vasnprintf.c (VASNPRINTF): Update.
33983         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
33984         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
33985         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
33986         * NEWS: Mention the change.
33987
33988 2009-04-26  Bruno Haible  <bruno@clisp.org>
33989
33990         Avoid test failures on AIX and OSF/1.
33991         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
33992         malloc(0).
33993         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
33994         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
33995         Likewise.
33996         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
33997         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
33998         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
33999         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
34000         * doc/posix-functions/malloc.texi: Document the portability problem
34001         related to malloc(0).
34002
34003 2009-04-26  Bruno Haible  <bruno@clisp.org>
34004
34005         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
34006         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
34007         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
34008
34009 2009-04-25  Bruno Haible  <bruno@clisp.org>
34010
34011         Avoid link error when creating a namespace clean library.
34012         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
34013         as macro with arguments if already defined as an alias.
34014         * lib/signbitf.c (gl_signbitf): Don't undefine.
34015         * lib/signbitd.c (gl_signbitd): Don't undefine.
34016         * lib/signbitl.c (gl_signbitl): Don't undefine.
34017
34018 2009-04-25  Jim Meyering  <meyering@redhat.com>
34019
34020         vc-list-files: fix another quoting bug
34021         * build-aux/vc-list-files: Avoid sed backslash expansion
34022         of pathological directory names.
34023
34024 2009-04-25  Eric Blake  <ebb9@byu.net>
34025
34026         vc-list-files: fix shell quoting error
34027         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
34028         timestamp.
34029
34030 2009-04-25  Jim Meyering  <meyering@redhat.com>
34031
34032         vc-list-files: restore lost functionality with subdir argument
34033         * build-aux/vc-list-files: When given a non-"." sub-directory
34034         argument, substitute the $dir/ prefix back onto each resulting name.
34035         Otherwise, coreutils' root_tests check would fail.
34036
34037 2009-04-24  Eric Blake  <ebb9@byu.net>
34038
34039         vc-list-files: ignore git symlinks
34040         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
34041         than ls-files, to ignore git symlinks.
34042
34043         maint.mk: import improvements from m4
34044         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
34045         (move_if_change): Delete unused macro.
34046         (news-date-check, vc-diff-check): Support VPATH builds.
34047         (announcement): Likewise.  Split --bootstrap-tools list...
34048         (boostrap-tools): ...into separate list, which can be overridden
34049         in cfg.mk.
34050         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
34051         requiring dependency on useless-if-before-free module.
34052         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
34053         Support VPATH builds.
34054
34055 2009-04-24  Jim Meyering  <meyering@redhat.com>
34056
34057         maint.mk: remove coreutils-specific rules and variables
34058         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
34059         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
34060         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
34061
34062         maint.mk: remove obsolete rule
34063         * top/maint.mk (rel-check): Remove rule.
34064         (WGET, WGETFLAGS): Remove now-unused variables.
34065
34066 2009-04-24  Simon Josefsson  <simon@josefsson.org>
34067
34068         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
34069         consistency.
34070
34071         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
34072         '$(PATH_SEPARATOR)' instead of ':'.
34073
34074 2009-04-24  Simon Josefsson  <simon@josefsson.org>
34075
34076         * lib/getopt1.c (main): Use 'const' for static array.
34077
34078 2009-04-24  Simon Josefsson  <simon@josefsson.org>
34079
34080         * top/maint.mk: Sync with coreutils.
34081         * NEWS: Explain incompatibilities.
34082
34083 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34084             Bruno Haible  <bruno@clisp.org>
34085
34086         Fix cross-compilation results.
34087         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
34088         statement, as third argument of AC_TRY_RUN.
34089         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
34090         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
34091         Likewise.
34092         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
34093         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
34094         Likewise.
34095         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
34096         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
34097         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
34098
34099 2009-04-20  Bruno Haible  <bruno@clisp.org>
34100
34101         Avoid test failure on mingw.
34102         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
34103
34104 2009-04-20  Bruno Haible  <bruno@clisp.org>
34105
34106         Avoid compilation error on mingw.
34107         * modules/localename-tests (Depends-on): Add locale.
34108
34109 2009-04-19  Bruno Haible  <bruno@clisp.org>
34110
34111         Support for building a shared library on Windows platforms.
34112         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
34113         (main): Test the presence of UNINORM_NFC here.
34114         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
34115         (main): Test the presence of UNINORM_NFD here.
34116         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
34117         (main): Test the presence of UNINORM_NFKC here.
34118         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
34119         (main): Test the presence of UNINORM_NFKD here.
34120
34121 2009-04-19  Bruno Haible  <bruno@clisp.org>
34122
34123         Avoid a compiler warning.
34124         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
34125         Change type of variable 'sequence'.
34126
34127 2009-04-19  Bruno Haible  <bruno@clisp.org>
34128
34129         * modules/configmake (Makefile.am): When the contents of configmake.h
34130         does not change, arrange to preserve its modification time.
34131
34132 2009-04-17  Simon Josefsson  <simon@josefsson.org>
34133
34134         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
34135         gettext domain.
34136
34137 2009-04-16  Jim Meyering  <meyering@redhat.com>
34138
34139         useless-if-before-free: improve conversion code
34140         * build-aux/useless-if-before-free: Adjust code-in-comment to match
34141         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
34142
34143 2009-04-14  Bruno Haible  <bruno@clisp.org>
34144
34145         * modules/fcntl (Depends-on): Add extensions.
34146         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
34147
34148 2009-04-12  Ben Pfaff  <blp@gnu.org>
34149
34150         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
34151         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
34152
34153 2009-03-20  Ben Pfaff  <blp@gnu.org>
34154
34155         Make rename replace existing destinations on Windows.
34156         * m4/rename.m4: Add test for Mingw.
34157         * lib/rename.c: Add rename replacement that uses MoveFileEx with
34158         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
34159         * doc/posix-functions/rename.texi: Document.
34160
34161 2009-04-10  Bruno Haible  <bruno@clisp.org>
34162
34163         New include file "iconveh.h".
34164         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
34165         * lib/striconveh.h: Include it.
34166         (enum iconv_ilseq_handler): Remove definition.
34167         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
34168         striconveh.h.
34169         * lib/striconveha.c: Include striconveh.h.
34170         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
34171         * modules/striconveh (Files): Add lib/iconveh.h.
34172         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
34173         lib/striconveh.h.
34174
34175 2009-04-10  Bruno Haible  <bruno@clisp.org>
34176
34177         * lib/uniconv.h: Update comment.
34178
34179 2009-04-10  Bruno Haible  <bruno@clisp.org>
34180
34181         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
34182         always.
34183         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
34184         * lib/unistr/u16-mbtouc-aux.c: Likewise.
34185         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
34186         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
34187         "unistring-notinline.h", so that the function gets defined always.
34188         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
34189         * lib/unistr/u8-uctomb.c: Likewise.
34190         * lib/unistr/u16-mbtouc.c: Likewise.
34191         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
34192         * lib/unistr/u16-uctomb.c: Likewise.
34193         * lib/unistr/u32-mbtouc.c: Likewise.
34194         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
34195         * lib/unistr/u32-uctomb.c: Likewise.
34196
34197 2009-04-10  Bruno Haible  <bruno@clisp.org>
34198
34199         Mark 'utime' obsolete.
34200         * modules/utime (Status, Notice): New sections.
34201         Suggested by Jim Meyering.
34202
34203         Fix cross-compile guess for utime test.
34204         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
34205         autoconf.
34206         * doc/posix-functions/utime.texi: Give more precisions.
34207         Reported by Jan <ipif@ymail.com>.
34208
34209 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
34210
34211         filevercmp: correct today's change
34212         * lib/filevercmp.c: Also handle coreutils' test inputs.
34213         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
34214
34215         Fix regression in 'filevercmp' module. Thanks Sven Joachim
34216         for reporting it.
34217         * lib/filevercmp.c: Special handle for "", "." and "..".
34218         * tests/test-filevercmp.c: Enlarge the set suite.
34219
34220 2009-04-07  Jim Meyering  <meyering@redhat.com>
34221
34222         useless-if-before-free: show how to remove braced useless free, too
34223         * build-aux/useless-if-before-free: still only in a comment, though.
34224
34225 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
34226
34227         maint.mk: import changes to syntax-check macros from coreutils
34228         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
34229         Use them in the relevant macros.
34230
34231 2009-04-06  Bruno Haible  <bruno@clisp.org>
34232
34233         Fix unportable use of bit-fields.
34234         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
34235         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
34236         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
34237
34238 2009-04-06  Bruno Haible  <bruno@clisp.org>
34239
34240         Avoid test failures on AIX and OSF/1.
34241         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
34242         that malloc(0) = NULL.
34243         * tests/unicase/test-u8-tolower.c (check): Likewise.
34244         * tests/unicase/test-u8-totitle.c (check): Likewise.
34245         * tests/unicase/test-u8-toupper.c (check): Likewise.
34246         * tests/unicase/test-u16-casefold.c (check): Likewise.
34247         * tests/unicase/test-u16-tolower.c (check): Likewise.
34248         * tests/unicase/test-u16-totitle.c (check): Likewise.
34249         * tests/unicase/test-u16-toupper.c (check): Likewise.
34250         * tests/unicase/test-u32-casefold.c (check): Likewise.
34251         * tests/unicase/test-u32-tolower.c (check): Likewise.
34252         * tests/unicase/test-u32-totitle.c (check): Likewise.
34253         * tests/unicase/test-u32-toupper.c (check): Likewise.
34254         * tests/uninorm/test-u8-nfc.c (check): Likewise.
34255         * tests/uninorm/test-u8-nfd.c (check): Likewise.
34256         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
34257         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
34258         * tests/uninorm/test-u16-nfc.c (check): Likewise.
34259         * tests/uninorm/test-u16-nfd.c (check): Likewise.
34260         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
34261         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
34262         * tests/uninorm/test-u32-nfc.c (check): Likewise.
34263         * tests/uninorm/test-u32-nfd.c (check): Likewise.
34264         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
34265         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
34266
34267 2009-04-05  Bruno Haible  <bruno@clisp.org>
34268
34269         Work around an autoconf limitation.
34270         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
34271         comment line if it would be longer than 3 KB.
34272
34273 2009-04-05  Bruno Haible  <bruno@clisp.org>
34274
34275         Avoid test failure with libiconv-1.13.
34276         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
34277         of the expected test results.
34278
34279 2009-04-05  Bruno Haible  <bruno@clisp.org>
34280
34281         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
34282         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
34283         that it should be installed.
34284
34285 2009-04-05  Bruno Haible  <bruno@clisp.org>
34286
34287         * gnulib-tool: New option --copy-file.
34288         (func_usage): Document it.
34289         (func_dest_tmpfilename): Moved out of func_import.
34290         (func_add_file, func_update_file): New functions, extracted from
34291         func_import.
34292         (func_import): Update.
34293
34294 2009-04-05  Karl Berry  <karl@gnu.org>
34295
34296         * README: prominently mention gnulib-tool.
34297         Rearrange sections so getting the code is near the top.
34298
34299 2009-04-05  Bruno Haible  <bruno@clisp.org>
34300
34301         * lib/unicase.h: Mention u*_cmp2.
34302         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
34303         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
34304         * lib/unicase/ulc-casecmp.c: Likewise.
34305         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
34306         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
34307         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
34308         unistr/u8-cmp.
34309         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
34310         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
34311         unistr/u16-cmp.
34312         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
34313         unistr/u32-cmp.
34314
34315         * lib/uninorm.h: Mention u*_cmp2.
34316         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
34317         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
34318         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
34319         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
34320         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
34321         unistr/u8-cmp.
34322         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
34323         unistr/u16-cmp.
34324         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
34325         unistr/u32-cmp.
34326
34327         New module 'unistr/u32-cmp2'.
34328         * lib/unistr/u32-cmp2.c: New file.
34329         * modules/unistr/u32-cmp2: New file.
34330
34331         New module 'unistr/u16-cmp2'.
34332         * lib/unistr/u16-cmp2.c: New file.
34333         * modules/unistr/u16-cmp2: New file.
34334
34335         New module 'unistr/u8-cmp2'.
34336         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
34337         * lib/unistr/u8-cmp2.c: New file.
34338         * lib/unistr/u-cmp2.h: New file.
34339         * modules/unistr/u8-cmp2: New file.
34340
34341 2009-04-05  Bruno Haible  <bruno@clisp.org>
34342
34343         * lib/unictype.h (uc_property_is_valid): New macro.
34344         * tests/unictype/test-pr_byname.c (main): Use it.
34345
34346         * lib/unistr.h: Doc fixes.
34347         * lib/uniconv.h: Doc fixes.
34348         * lib/unictype.h: Doc fixes.
34349
34350 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
34351
34352         Port coreutils 7.2 to Solaris 8.
34353
34354         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
34355         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
34356         for Solaris 8.  This is a bit of a hack, as it means it's the
34357         caller's responsibility to add -lnsl if needed, but most likely it
34358         won't be needed since only getaddrinfo uses this and getaddrinfo
34359         isn't needed on Solaris 8.
34360
34361         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
34362         problem to Solaris 8 encountered with coreutils 7.2, which
34363         resulted in a message "fnmatch.c:292: warning: passing argument 4
34364         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
34365         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
34366
34367 2009-04-03  Simon Josefsson  <simon@josefsson.org>
34368
34369         * m4/ld-version-script.m4: Add FIXME comment.
34370
34371 2009-04-02  Simon Josefsson  <simon@josefsson.org>
34372
34373         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
34374         SOVERSION variable.
34375
34376 2009-04-02  Bruno Haible  <bruno@clisp.org>
34377
34378         * Makefile (info, html, dvi, pdf): Combine the rules.
34379         Suggested by Jim Meyering.
34380
34381 2009-04-01  Bruno Haible  <bruno@clisp.org>
34382
34383         * Makefile (info, html, dvi, pdf): New targets.
34384         Reported by Reuben Thomas <rrt@sc3d.org>.
34385
34386 2009-04-01  Bruno Haible  <bruno@clisp.org>
34387
34388         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
34389         can be put into PATH.
34390         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
34391
34392 2009-04-01  Bruno Haible  <bruno@clisp.org>
34393
34394         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
34395
34396 2009-04-01  Bruno Haible  <bruno@clisp.org>
34397
34398         Rename module 'visibility'.
34399         * modules/lib-symbol-visibility: Renamed from modules/visibility.
34400         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
34401         * doc/gnulib.texi: Update.
34402         * MODULES.html.sh (Misc): Update.
34403         * NEWS: Mention the change.
34404
34405 2009-04-01  Simon Josefsson  <simon@josefsson.org>
34406
34407         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
34408         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
34409         Eric Blake <ebb9@byu.net> for review.
34410         * MODULES.html.sh: Add lib-msvc-compat.
34411         * doc/gnulib.texi: Link to new section.
34412         * m4/ld-output-def.m4: New file.
34413         * doc/ld-output-def.texi: New file.
34414
34415 2009-04-01  Simon Josefsson  <simon@josefsson.org>
34416
34417         Rename ld-version-script to lib-symbol-versions.  Suggested by
34418         Bruno Haible <bruno@clisp.org>.
34419         * modules/ld-version-script: Renamed to lib-symbol-versions.
34420         * doc/ld-version-script.texi: Fix module name.
34421         * MODULES.html.sh: Add lib-symbol-versions.
34422
34423 2009-03-31  Simon Josefsson  <simon@josefsson.org>
34424
34425         * modules/u64-tests: New file.
34426         * tests/test-u64.c: New file.
34427
34428 2009-03-04  Simon Josefsson  <simon@josefsson.org>
34429
34430         * MODULES.html.sh: Mention u64.
34431         * modules/u64: New module.
34432         * modules/crypto/sha512: Depend on u64 module instead of providing
34433         u64.h.
34434
34435 2009-03-27  Eric Blake  <ebb9@byu.net>
34436
34437         test-strerror: make debugging EAI_SYSTEM easier
34438         * modules/getaddrinfo-tests (Depends-on): Add strerror.
34439         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
34440         failure was EAI_SYSTEM.
34441
34442 2009-03-25  Bruno Haible  <bruno@clisp.org>
34443
34444         Fix a problem with --enable-relocatable on Solaris 7.
34445         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
34446         since 2008-02-24.
34447
34448 2009-03-25  Eric Blake  <ebb9@byu.net>
34449
34450         test-sockets: avoid gcc warning
34451         * tests/test-sockets.c (main): Silence compiler warning.
34452
34453 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
34454
34455         New modules nproc, pthread, contributed by Glen Lenker.
34456
34457         * MODULES.html.sh: Add pthread, nproc.
34458         * lib/nproc.c: New file.
34459         * lib/nproc.h: New file.
34460         * lib/pthread.in.h: New file.
34461         * m4/pthread.m4: New file.
34462         * modules/nproc: New file.
34463         * modules/pthread: New file.
34464
34465 2009-03-24  Simon Josefsson  <simon@josefsson.org>
34466
34467         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
34468         New variable.
34469
34470 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
34471
34472         filevercmp: handle simple~ and numbered.~3~ backup suffixes
34473         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
34474         * tests/test-filevercmp.c: Add tests for backup suffixes.
34475
34476 2009-03-24  Simon Josefsson  <simon@josefsson.org>
34477
34478         * modules/stdlib (Depends-on): Add stdint, needed when defining
34479         struct random_data on, for example, HP-UX 10.20.  Reported by
34480         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34481
34482 2009-03-24  Simon Josefsson  <simon@josefsson.org>
34483
34484         * lib/readline.c (readline): Call fflush on stdout after printing
34485         prompt.
34486
34487 2009-03-20  Bruno Haible  <bruno@clisp.org>
34488
34489         Remove dependency from 'close' module to -lws2_32 on native Windows.
34490         * lib/close-hook.h: New file.
34491         * lib/close-hook.c: New file.
34492         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
34493         w32sock.h.
34494         (_gl_close_fd_maybe_socket): Remove function.
34495         (rpl_close): Invoke execute_all_close_hooks instead of
34496         _gl_close_fd_maybe_socket.
34497         * lib/sockets.c: Include close-hook.h, w32sock.h.
34498         (close_fd_maybe_socket): New function, essentially from lib/close.c.
34499         (close_sockets_hook): New variable.
34500         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
34501         (gl_sockets_cleanup): Unregister it.
34502         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
34503         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
34504         * modules/close-hook: New file.
34505         * modules/close (Files): Remove lib/w32sock.h.
34506         (Depends-on): Add close-hook.
34507         (Link): Remove section.
34508         * modules/sockets (Files): Add lib/w32sock.h.
34509         (Depends-on): Add close-hook.
34510         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
34511         invocation.
34512         * NEWS: Mention that LIB_CLOSE is gone.
34513
34514 2009-03-23  Eric Blake  <ebb9@byu.net>
34515
34516         signal-tests: test previous patch
34517         * tests/test-signal.c: New file.
34518         * modules/signal-tests: Likewise.
34519
34520         signal.h: always support 'volatile sig_atomic_t'
34521         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
34522         (gl_SIGNAL_H_DEFAULTS): Add a default.
34523         * modules/signal (Makefile.am): Substitute if needed.
34524         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
34525         users can blindly add volatile.
34526         * doc/posix-headers/signal.texi (signal.h): Document it.
34527         Reported by Matthew Woehlke.
34528
34529 2009-03-23  Jim Meyering  <meyering@redhat.com>
34530
34531         pathmax: PATH_MAX: use pathconf only when available
34532         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
34533         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
34534         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
34535         This avoids a link failure in a PSP cross-compilation environment
34536         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
34537
34538         * lib/vasnprintf.c (divide): Fix typo in comment.
34539
34540 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34541
34542         * gnulib-tool (func_filter_filelist): Fix comment.
34543
34544 2009-03-20  Bruno Haible  <bruno@clisp.org>
34545
34546         Make sockets.h self-contained.
34547         * lib/sockets.c: Include sockets.h first.
34548         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
34549
34550 2009-03-19  Eric Blake  <ebb9@byu.net>
34551
34552         doc: mention more functions added in cygwin 1.7.0
34553         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
34554         addition.
34555         * doc/posix-functions/log2f.texi: Likewise.
34556
34557 2009-03-19  Jim Meyering  <meyering@redhat.com>
34558
34559         fsusage: avoid syntax error due to statement-before-declaration
34560         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
34561         after all declarations.  Reported by Matthew Woehlke in
34562         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
34563
34564 2009-03-18  Eric Blake  <ebb9@byu.net>
34565
34566         build-aux/compile: sync from automake
34567         * build-aux/compile: New file, from automake.
34568         * config/srclist.txt: Mention build-aux/compile.
34569
34570 2009-03-17  Bruno Haible  <bruno@clisp.org>
34571
34572         * lib/git-merge-changelog.c: Fix typo in comment.
34573         Reported by Reuben Thomas <rrt@sc3d.org>.
34574
34575 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
34576
34577         * m4/regex.m4: update and improve help for
34578         --without-included-regex.
34579
34580 2009-03-17  Simon Josefsson  <simon@josefsson.org>
34581
34582         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
34583         failure on missing include files.
34584
34585 2009-03-17  Eric Blake  <ebb9@byu.net>
34586
34587         doc: mention more functions added in cygwin 1.7.0
34588         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
34589         addition.
34590         * doc/posix-functions/fwscanf.texi: Likewise.
34591         * doc/posix-functions/swprintf.texi: Likewise.
34592         * doc/posix-functions/swscanf.texi: Likewise.
34593         * doc/posix-functions/vfwprintf.texi: Likewise.
34594         * doc/posix-functions/vfwscanf.texi: Likewise.
34595         * doc/posix-functions/vswprintf.texi: Likewise.
34596         * doc/posix-functions/vswscanf.texi: Likewise.
34597         * doc/posix-functions/vwprintf.texi: Likewise.
34598         * doc/posix-functions/vwscanf.texi: Likewise.
34599         * doc/posix-functions/wcscasecmp.texi: Likewise.
34600         * doc/posix-functions/wcsdup.texi: Likewise.
34601         * doc/posix-functions/wcsftime.texi: Likewise.
34602         * doc/posix-functions/wcsncasecmp.texi: Likewise.
34603         * doc/posix-functions/wprintf.texi: Likewise.
34604         * doc/posix-functions/wscanf.texi: Likewise.
34605         * doc/glibc-functions/gethostbyname2.texi: Likewise.
34606
34607 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34608
34609         maint.mk: really add $(AM_MAKEFLAGS)
34610         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
34611         was inadvertently omitted in the last commit.
34612         Spotted by Bruno Haible.
34613
34614         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
34615         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
34616         $(AM_MAKEFLAGS)' rather than plain `make'.
34617
34618         gnulib-tool: execute $MAKE not make
34619         * gnulib-tool: Default $MAKE to 'make'.
34620         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
34621         than make.  Initialize $MAKE in the do-autobuild script.
34622
34623         gnulib-tool: use $MAKE not make in generated files
34624         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
34625         make, in generated files.  Initialize $MAKE in the do-autobuild
34626         script.
34627
34628         * top/GNUmakefile (_have-git-version-gen): Fix typo.
34629
34630         GNUmakefile: disable parallelism only for multiple, recursive targets
34631         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
34632         additions in the Makefile.
34633         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
34634         by Automake.
34635         (.NOTPARALLEL): Only disable parallel builds if multiple targets
34636         are listed on the command line and at least one of them is
34637         listed in $(ALL_RECURSIVE_TARGETS).
34638
34639 2009-03-14  Bruno Haible  <bruno@clisp.org>
34640
34641         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
34642         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
34643         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
34644         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
34645         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
34646         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
34647         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
34648         unistr/u8-uctomb.
34649         * modules/unistr/u8-strchr (Depends-on): Likewise.
34650         * modules/unistr/u8-strrchr (Depends-on): Likewise.
34651         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
34652         unistr/u16-uctomb.
34653         * modules/unistr/u16-strchr (Depends-on): Likewise.
34654         * modules/unistr/u16-strrchr (Depends-on): Likewise.
34655
34656 2009-03-12  Bruno Haible  <bruno@clisp.org>
34657
34658         Work around select() bug on Interix 3.5.
34659         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
34660         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
34661         * m4/select.m4: New file.
34662         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
34663         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
34664         * modules/select (Files): Add m4/select.m4.
34665         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
34666         * modules/nanosleep (Depends-on): Add select.
34667         * modules/poll (Depends-on): Likewise.
34668         * doc/posix-functions/select.texi: Mention the Interix bug.
34669         Reported by Markus Duft <mduft@gentoo.org>.
34670
34671         * lib/select.c: Renamed from lib/winsock-select.c.
34672         * modules/select (Files): Add lib/select.c, remove
34673         lib/winsock-select.c.
34674         (configure.ac): Update.
34675
34676 2009-03-12  Jim Meyering  <meyering@redhat.com>
34677
34678         avoid gcc warnings about unused macro definitions
34679         * lib/readtokens.c (STREQ): Remove unused definition.
34680         * lib/xmalloc.c (SIZE_MAX): Likewise.
34681         * lib/openat-die.c (N_): Likewise.
34682         * lib/mountlist.c (SIZE_MAX): Remove definition.
34683         Instead, include <stdint.h>.
34684         * lib/readutmp.c: Likewise.
34685         * modules/readutmp (Depends-on): Add stdint.
34686         * modules/mountlist (Depends-on): Add stdint.
34687         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
34688
34689 2009-03-10  Bruno Haible  <bruno@clisp.org>
34690
34691         Tests for module 'mbmemcasecoll'.
34692         * modules/mbmemcasecoll-tests: New file.
34693         * tests/test-mbmemcasecoll1.sh: New file.
34694         * tests/test-mbmemcasecoll2.sh: New file.
34695         * tests/test-mbmemcasecoll3.sh: New file.
34696         * tests/test-mbmemcasecoll.c: New file.
34697
34698         New module 'mbmemcasecoll'.
34699         * lib/mbmemcasecoll.h: New file.
34700         * lib/mbmemcasecoll.c: New file.
34701         * modules/mbmemcasecoll: New file.
34702
34703         * tests/test-mbmemcasecmp.h: New file, extracted from
34704         tests/test-mbmemcasecmp.c.
34705         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
34706         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
34707         (main): Update.
34708         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
34709
34710 2009-03-09  Bruno Haible  <bruno@clisp.org>
34711
34712         Tests for module 'mbmemcasecmp'.
34713         * modules/mbmemcasecmp-tests: New file.
34714         * tests/test-mbmemcasecmp1.sh: New file.
34715         * tests/test-mbmemcasecmp2.sh: New file.
34716         * tests/test-mbmemcasecmp3.sh: New file.
34717         * tests/test-mbmemcasecmp.c: New file.
34718
34719         New module 'mbmemcasecmp'.
34720         * lib/mbmemcasecmp.h: New file.
34721         * lib/mbmemcasecmp.c: New file.
34722         * modules/mbmemcasecmp: New file.
34723
34724 2009-03-09  Bruno Haible  <bruno@clisp.org>
34725
34726         Tests for module 'unicase/ulc-casecoll'.
34727         * modules/unicase/ulc-casecoll-tests: New file.
34728         * tests/unicase/test-ulc-casecoll1.sh: New file.
34729         * tests/unicase/test-ulc-casecoll2.sh: New file.
34730         * tests/unicase/test-ulc-casecoll.c: New file.
34731
34732         New module 'unicase/ulc-casecoll'.
34733         * lib/unicase.h (ulc_casecoll): New declaration.
34734         * lib/unicase/ulc-casecoll.c: New file.
34735         * modules/unicase/ulc-casecoll: New file.
34736
34737         New module 'unicase/ulc-casexfrm'.
34738         * lib/unicase.h (ulc_casexfrm): New declaration.
34739         * lib/unicase/ulc-casexfrm.c: New file.
34740         * modules/unicase/ulc-casexfrm: New file.
34741
34742 2009-03-09  Bruno Haible  <bruno@clisp.org>
34743
34744         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
34745         invocations.
34746
34747         * m4/mbscasecmp.m4: Remove file.
34748         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
34749         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
34750
34751         * m4/mbscasestr.m4: Remove file.
34752         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
34753         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
34754
34755         * m4/mbschr.m4: Remove file.
34756         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
34757         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
34758
34759         * m4/mbscspn.m4: Remove file.
34760         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
34761         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
34762
34763         * m4/mbslen.m4: Remove file.
34764         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
34765         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
34766
34767         * m4/mbsncasecmp.m4: Remove file.
34768         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
34769         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
34770
34771         * m4/mbsnlen.m4: Remove file.
34772         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
34773         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
34774
34775         * m4/mbspbrk.m4: Remove file.
34776         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
34777         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
34778
34779         * m4/mbspcasecmp.m4: Remove file.
34780         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
34781         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
34782
34783         * m4/mbsrchr.m4: Remove file.
34784         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
34785         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
34786
34787         * m4/mbssep.m4: Remove file.
34788         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
34789         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
34790
34791         * m4/mbsspn.m4: Remove file.
34792         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
34793         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
34794
34795         * m4/mbsstr.m4: Remove file.
34796         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
34797         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
34798
34799         * m4/mbstok_r.m4: Remove file.
34800         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
34801         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
34802
34803         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
34804
34805         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
34806         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
34807
34808         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
34809
34810 2009-03-08  Bruno Haible  <bruno@clisp.org>
34811
34812         Tests for module 'unicase/ulc-casecmp'.
34813         * modules/unicase/ulc-casecmp-tests: New file.
34814         * tests/unicase/test-ulc-casecmp1.sh: New file.
34815         * tests/unicase/test-ulc-casecmp2.sh: New file.
34816         * tests/unicase/test-ulc-casecmp.c: New file.
34817
34818         New module 'unicase/ulc-casecmp'.
34819         * lib/unicase.h (ulc_casecmp): New declaration.
34820         * lib/unicase/ulc-casecmp.c: New file.
34821         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
34822         'const SRC_UNIT *'.
34823         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
34824         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
34825         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
34826         * modules/unicase/ulc-casecmp: New file.
34827
34828         Tests for module 'unicase/u32-is-cased'.
34829         * modules/unicase/u32-is-cased-tests: New file.
34830         * tests/unicase/test-u32-is-cased.c: New file.
34831
34832         Tests for module 'unicase/u16-is-cased'.
34833         * modules/unicase/u16-is-cased-tests: New file.
34834         * tests/unicase/test-u16-is-cased.c: New file.
34835
34836         Tests for module 'unicase/u8-is-cased'.
34837         * modules/unicase/u8-is-cased-tests: New file.
34838         * tests/unicase/test-u8-is-cased.c: New file.
34839         * tests/unicase/test-is-cased.h: New file.
34840
34841         New module 'unicase/u32-is-cased'.
34842         * lib/unicase/u32-is-cased.c: New file.
34843         * modules/unicase/u32-is-cased: New file.
34844
34845         New module 'unicase/u16-is-cased'.
34846         * lib/unicase/u16-is-cased.c: New file.
34847         * modules/unicase/u16-is-cased: New file.
34848
34849         New module 'unicase/u8-is-cased'.
34850         * lib/unicase/u8-is-cased.c: New file.
34851         * lib/unicase/u-is-cased.h: New file.
34852         * modules/unicase/u8-is-cased: New file.
34853
34854         Tests for module 'unicase/u32-is-casefolded'.
34855         * modules/unicase/u32-is-casefolded-tests: New file.
34856         * tests/unicase/test-u32-is-casefolded.c: New file.
34857
34858         Tests for module 'unicase/u16-is-casefolded'.
34859         * modules/unicase/u16-is-casefolded-tests: New file.
34860         * tests/unicase/test-u16-is-casefolded.c: New file.
34861
34862         Tests for module 'unicase/u8-is-casefolded'.
34863         * modules/unicase/u8-is-casefolded-tests: New file.
34864         * tests/unicase/test-u8-is-casefolded.c: New file.
34865         * tests/unicase/test-is-casefolded.h: New file.
34866
34867         New module 'unicase/u32-is-casefolded'.
34868         * lib/unicase/u32-is-casefolded.c: New file.
34869         * modules/unicase/u32-is-casefolded: New file.
34870
34871         New module 'unicase/u16-is-casefolded'.
34872         * lib/unicase/u16-is-casefolded.c: New file.
34873         * modules/unicase/u16-is-casefolded: New file.
34874
34875         New module 'unicase/u8-is-casefolded'.
34876         * lib/unicase/u8-is-casefolded.c: New file.
34877         * modules/unicase/u8-is-casefolded: New file.
34878
34879         Tests for module 'unicase/u32-is-titlecase'.
34880         * modules/unicase/u32-is-titlecase-tests: New file.
34881         * tests/unicase/test-u32-is-titlecase.c: New file.
34882
34883         Tests for module 'unicase/u16-is-titlecase'.
34884         * modules/unicase/u16-is-titlecase-tests: New file.
34885         * tests/unicase/test-u16-is-titlecase.c: New file.
34886
34887         Tests for module 'unicase/u8-is-titlecase'.
34888         * modules/unicase/u8-is-titlecase-tests: New file.
34889         * tests/unicase/test-u8-is-titlecase.c: New file.
34890         * tests/unicase/test-is-titlecase.h: New file.
34891
34892         New module 'unicase/u32-is-titlecase'.
34893         * lib/unicase/u32-is-titlecase.c: New file.
34894         * modules/unicase/u32-is-titlecase: New file.
34895
34896         New module 'unicase/u16-is-titlecase'.
34897         * lib/unicase/u16-is-titlecase.c: New file.
34898         * modules/unicase/u16-is-titlecase: New file.
34899
34900         New module 'unicase/u8-is-titlecase'.
34901         * lib/unicase/u8-is-titlecase.c: New file.
34902         * modules/unicase/u8-is-titlecase: New file.
34903
34904         Tests for module 'unicase/u32-is-lowercase'.
34905         * modules/unicase/u32-is-lowercase-tests: New file.
34906         * tests/unicase/test-u32-is-lowercase.c: New file.
34907
34908         Tests for module 'unicase/u16-is-lowercase'.
34909         * modules/unicase/u16-is-lowercase-tests: New file.
34910         * tests/unicase/test-u16-is-lowercase.c: New file.
34911
34912         Tests for module 'unicase/u8-is-lowercase'.
34913         * modules/unicase/u8-is-lowercase-tests: New file.
34914         * tests/unicase/test-u8-is-lowercase.c: New file.
34915         * tests/unicase/test-is-lowercase.h: New file.
34916
34917         New module 'unicase/u32-is-lowercase'.
34918         * lib/unicase/u32-is-lowercase.c: New file.
34919         * modules/unicase/u32-is-lowercase: New file.
34920
34921         New module 'unicase/u16-is-lowercase'.
34922         * lib/unicase/u16-is-lowercase.c: New file.
34923         * modules/unicase/u16-is-lowercase: New file.
34924
34925         New module 'unicase/u8-is-lowercase'.
34926         * lib/unicase/u8-is-lowercase.c: New file.
34927         * modules/unicase/u8-is-lowercase: New file.
34928
34929         Tests for module 'unicase/u32-is-uppercase'.
34930         * modules/unicase/u32-is-uppercase-tests: New file.
34931         * tests/unicase/test-u32-is-uppercase.c: New file.
34932
34933         Tests for module 'unicase/u16-is-uppercase'.
34934         * modules/unicase/u16-is-uppercase-tests: New file.
34935         * tests/unicase/test-u16-is-uppercase.c: New file.
34936
34937         Tests for module 'unicase/u8-is-uppercase'.
34938         * modules/unicase/u8-is-uppercase-tests: New file.
34939         * tests/unicase/test-u8-is-uppercase.c: New file.
34940         * tests/unicase/test-is-uppercase.h: New file.
34941
34942         New module 'unicase/u32-is-uppercase'.
34943         * lib/unicase/u32-is-uppercase.c: New file.
34944         * modules/unicase/u32-is-uppercase: New file.
34945
34946         New module 'unicase/u16-is-uppercase'.
34947         * lib/unicase/u16-is-uppercase.c: New file.
34948         * modules/unicase/u16-is-uppercase: New file.
34949
34950         New module 'unicase/u8-is-uppercase'.
34951         * lib/unicase/u8-is-uppercase.c: New file.
34952         * modules/unicase/u8-is-uppercase: New file.
34953
34954         New module 'unicase/u32-is-invariant'.
34955         * lib/unicase/u32-is-invariant.c: New file.
34956         * modules/unicase/u32-is-invariant: New file.
34957
34958         New module 'unicase/u16-is-invariant'.
34959         * lib/unicase/u16-is-invariant.c: New file.
34960         * modules/unicase/u16-is-invariant: New file.
34961
34962         New module 'unicase/u8-is-invariant'.
34963         * lib/unicase/u8-is-invariant.c: New file.
34964         * lib/unicase/invariant.h: New file.
34965         * lib/unicase/u-is-invariant.h: New file.
34966         * modules/unicase/u8-is-invariant: New file.
34967
34968         Tests for module 'unicase/u32-casecoll'.
34969         * modules/unicase/u32-casecoll-tests: New file.
34970         * tests/unicase/test-u32-casecoll.c: New file.
34971
34972         Tests for module 'unicase/u16-casecoll'.
34973         * modules/unicase/u16-casecoll-tests: New file.
34974         * tests/unicase/test-u16-casecoll.c: New file.
34975
34976         Tests for module 'unicase/u8-casecoll'.
34977         * modules/unicase/u8-casecoll-tests: New file.
34978         * tests/unicase/test-u8-casecoll.c: New file.
34979
34980         New module 'unicase/u32-casecoll'.
34981         * lib/unicase/u32-casecoll.c: New file.
34982         * modules/unicase/u32-casecoll: New file.
34983
34984         New module 'unicase/u16-casecoll'.
34985         * lib/unicase/u16-casecoll.c: New file.
34986         * modules/unicase/u16-casecoll: New file.
34987
34988         New module 'unicase/u8-casecoll'.
34989         * lib/unicase/u8-casecoll.c: New file.
34990         * lib/unicase/u-casecoll.h: New file.
34991         * modules/unicase/u8-casecoll: New file.
34992
34993         New module 'unicase/u32-casexfrm'.
34994         * lib/unicase/u32-casexfrm.c: New file.
34995         * modules/unicase/u32-casexfrm: New file.
34996
34997         New module 'unicase/u16-casexfrm'.
34998         * lib/unicase/u16-casexfrm.c: New file.
34999         * modules/unicase/u16-casexfrm: New file.
35000
35001         New module 'unicase/u8-casexfrm'.
35002         * lib/unicase/u8-casexfrm.c: New file.
35003         * lib/unicase/u-casexfrm.h: New file.
35004         * modules/unicase/u8-casexfrm: New file.
35005
35006         Tests for module 'unicase/u32-casecmp'.
35007         * modules/unicase/u32-casecmp-tests: New file.
35008         * tests/unicase/test-u32-casecmp.c: New file.
35009
35010         Tests for module 'unicase/u16-casecmp'.
35011         * modules/unicase/u16-casecmp-tests: New file.
35012         * tests/unicase/test-u16-casecmp.c: New file.
35013
35014         Tests for module 'unicase/u8-casecmp'.
35015         * modules/unicase/u8-casecmp-tests: New file.
35016         * tests/unicase/test-u8-casecmp.c: New file.
35017         * tests/unicase/test-casecmp.h: New file.
35018
35019         New module 'unicase/u32-casecmp'.
35020         * lib/unicase/u32-casecmp.c: New file.
35021         * modules/unicase/u32-casecmp: New file.
35022
35023         New module 'unicase/u16-casecmp'.
35024         * lib/unicase/u16-casecmp.c: New file.
35025         * modules/unicase/u16-casecmp: New file.
35026
35027         New module 'unicase/u8-casecmp'.
35028         * lib/unicase/u8-casecmp.c: New file.
35029         * lib/unicase/u-casecmp.h: New file.
35030         * modules/unicase/u8-casecmp: New file.
35031
35032         Tests for module 'unicase/u32-casefold'.
35033         * modules/unicase/u32-casefold-tests: New file.
35034         * tests/unicase/test-u32-casefold.c: New file.
35035
35036         Tests for module 'unicase/u16-casefold'.
35037         * modules/unicase/u16-casefold-tests: New file.
35038         * tests/unicase/test-u16-casefold.c: New file.
35039
35040         Tests for module 'unicase/u8-casefold'.
35041         * modules/unicase/u8-casefold-tests: New file.
35042         * tests/unicase/test-u8-casefold.c: New file.
35043
35044         New module 'unicase/u32-casefold'.
35045         * lib/unicase/u32-casefold.c: New file.
35046         * modules/unicase/u32-casefold: New file.
35047
35048         New module 'unicase/u16-casefold'.
35049         * lib/unicase/u16-casefold.c: New file.
35050         * modules/unicase/u16-casefold: New file.
35051
35052         New module 'unicase/u8-casefold'.
35053         * lib/unicase/u8-casefold.c: New file.
35054         * lib/unicase/u-casefold.h: New file.
35055         * modules/unicase/u8-casefold: New file.
35056
35057         New module 'unicase/tocasefold'.
35058         * lib/unicase/casefold.h: New file.
35059         * lib/unicase/tocasefold.c: New file.
35060         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
35061         * modules/unicase/tocasefold: New file.
35062
35063         Tests for module 'unicase/u32-totitle'.
35064         * modules/unicase/u32-totitle-tests: New file.
35065         * tests/unicase/test-u32-totitle.c: New file.
35066
35067         Tests for module 'unicase/u16-totitle'.
35068         * modules/unicase/u16-totitle-tests: New file.
35069         * tests/unicase/test-u16-totitle.c: New file.
35070
35071         Tests for module 'unicase/u8-totitle'.
35072         * modules/unicase/u8-totitle-tests: New file.
35073         * tests/unicase/test-u8-totitle.c: New file.
35074
35075         New module 'unicase/u32-totitle'.
35076         * lib/unicase/u32-totitle.c: New file.
35077         * modules/unicase/u32-totitle: New file.
35078
35079         New module 'unicase/u16-totitle'.
35080         * lib/unicase/u16-totitle.c: New file.
35081         * modules/unicase/u16-totitle: New file.
35082
35083         New module 'unicase/u8-totitle'.
35084         * lib/unicase/u8-totitle.c: New file.
35085         * lib/unicase/u-totitle.h: New file.
35086         * modules/unicase/u8-totitle: New file.
35087
35088         Tests for module 'unicase/u32-tolower'.
35089         * modules/unicase/u32-tolower-tests: New file.
35090         * tests/unicase/test-u32-tolower.c: New file.
35091
35092         Tests for module 'unicase/u16-tolower'.
35093         * modules/unicase/u16-tolower-tests: New file.
35094         * tests/unicase/test-u16-tolower.c: New file.
35095
35096         Tests for module 'unicase/u8-tolower'.
35097         * modules/unicase/u8-tolower-tests: New file.
35098         * tests/unicase/test-u8-tolower.c: New file.
35099
35100         New module 'unicase/u32-tolower'.
35101         * lib/unicase/u32-tolower.c: New file.
35102         * modules/unicase/u32-tolower: New file.
35103
35104         New module 'unicase/u16-tolower'.
35105         * lib/unicase/u16-tolower.c: New file.
35106         * modules/unicase/u16-tolower: New file.
35107
35108         New module 'unicase/u8-tolower'.
35109         * lib/unicase/u8-tolower.c: New file.
35110         * modules/unicase/u8-tolower: New file.
35111
35112         Tests for module 'unicase/u32-toupper'.
35113         * modules/unicase/u32-toupper-tests: New file.
35114         * tests/unicase/test-u32-toupper.c: New file.
35115
35116         Tests for module 'unicase/u16-toupper'.
35117         * modules/unicase/u16-toupper-tests: New file.
35118         * tests/unicase/test-u16-toupper.c: New file.
35119
35120         Tests for module 'unicase/u8-toupper'.
35121         * modules/unicase/u8-toupper-tests: New file.
35122         * tests/unicase/test-u8-toupper.c: New file.
35123
35124         New module 'unicase/u32-toupper'.
35125         * lib/unicase/u32-toupper.c: New file.
35126         * modules/unicase/u32-toupper: New file.
35127
35128         New module 'unicase/u16-toupper'.
35129         * lib/unicase/u16-toupper.c: New file.
35130         * modules/unicase/u16-toupper: New file.
35131
35132         New module 'unicase/u8-toupper'.
35133         * lib/unicase/u8-toupper.c: New file.
35134         * modules/unicase/u8-toupper: New file.
35135
35136         New module 'unicase/u32-casemap'.
35137         * lib/unicase/u32-casemap.c: New file.
35138         * modules/unicase/u32-casemap: New file.
35139
35140         New module 'unicase/u16-casemap'.
35141         * lib/unicase/u16-casemap.c: New file.
35142         * modules/unicase/u16-casemap: New file.
35143
35144         New module 'unicase/u8-casemap'.
35145         * lib/unicase/unicasemap.h: New file.
35146         * lib/unicase/u8-casemap.c: New file.
35147         * lib/unicase/u-casemap.h: New file.
35148         * modules/unicase/u8-casemap: New file.
35149
35150         New module 'unicase/special-casing'.
35151         * lib/unicase/special-casing.h: New file.
35152         * lib/unicase/special-casing.c: New file.
35153         * lib/unicase/special-casing-table.gperf: New file, generated by
35154         gen-uni-tables.c.
35155         * modules/unicase/special-casing: New file.
35156
35157         Tests for module 'unicase/locale-language'.
35158         * modules/unicase/locale-language-tests: New file.
35159         * tests/unicase/test-locale-language.sh: New file.
35160         * tests/unicase/test-locale-language.c: New file.
35161
35162         New module 'unicase/locale-language'.
35163         * lib/unicase/locale-language.c: New file.
35164         * lib/unicase/locale-languages.gperf: New file.
35165         * modules/unicase/locale-language: New file.
35166
35167         Generate more tables for case conversion and case folding.
35168         * lib/gen-uni-tables.c (SCC_*): New enum items.
35169         (struct special_casing_rule): New type.
35170         (casing_rules, num_casing_rules, allocated_casing_rules): New
35171         variables.
35172         (add_casing_rule, fill_casing_rules): New functions.
35173         (struct casefold_rule): New type.
35174         (casefolding_rules, num_casefolding_rules,
35175         allocated_casefolding_rules): New variables.
35176         (fill_casefolding_rules): New function.
35177         (unicode_casefold): New variable.
35178         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
35179         sort_casing_rules, output_casing_rules): New functions.
35180         (main): Accept to more arguments: SpecialCasing.txt and
35181         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
35182         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
35183         Output mapping for casefolding.
35184
35185         * lib/unicase.h: Include stdbool.h, uninorm.h.
35186         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
35187         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
35188         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
35189         arguments.
35190         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
35191         resultp arguments.
35192         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
35193         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
35194         resultp arguments.
35195         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
35196         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
35197         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
35198         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
35199         declarations.
35200         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
35201
35202 2009-03-08  Bruno Haible  <bruno@clisp.org>
35203
35204         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
35205         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
35206         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
35207         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
35208
35209 2009-03-07  Bruno Haible  <bruno@clisp.org>
35210
35211         Adjust u*_normcmp, u*_normcoll API.
35212         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
35213         u16_normcoll, u32_normcoll): Change failure conventions.
35214         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
35215         errno and return -1.
35216         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
35217
35218 2009-03-07  Bruno Haible  <bruno@clisp.org>
35219
35220         Tests for module 'uninorm/u32-normcoll'.
35221         * modules/uninorm/u32-normcoll-tests: New file.
35222         * tests/uninorm/test-u32-normcoll.c: New file.
35223
35224         Tests for module 'uninorm/u16-normcoll'.
35225         * modules/uninorm/u16-normcoll-tests: New file.
35226         * tests/uninorm/test-u16-normcoll.c: New file.
35227
35228         Tests for module 'uninorm/u8-normcoll'.
35229         * modules/uninorm/u8-normcoll-tests: New file.
35230         * tests/uninorm/test-u8-normcoll.c: New file.
35231
35232 2009-03-07  Bruno Haible  <bruno@clisp.org>
35233
35234         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
35235         tests/uninorm/test-u32-normcmp.c.
35236         * tests/uninorm/test-u32-normcmp.c: Include it.
35237         (test_nonascii): New function, extracted from main. Add some more
35238         tests.
35239         (main): Invoke test_ascii and test_nonascii.
35240         * modules/uninorm/u32-normcmp-tests (Files): Add
35241         tests/uninorm/test-u32-normcmp.h.
35242         (Depends-on): Remove uninorm/u32-normcmp.
35243
35244         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
35245         tests/uninorm/test-u16-normcmp.c.
35246         * tests/uninorm/test-u16-normcmp.c: Include it.
35247         (test_nonascii): New function, extracted from main. Add some more
35248         tests.
35249         (main): Invoke test_ascii and test_nonascii.
35250         * modules/uninorm/u16-normcmp-tests (Files): Add
35251         tests/uninorm/test-u16-normcmp.h.
35252         (Depends-on): Remove uninorm/u16-normcmp.
35253
35254         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
35255         tests/uninorm/test-u8-normcmp.c.
35256         * tests/uninorm/test-u8-normcmp.c: Include it.
35257         (test_nonascii): New function, extracted from main. Add some more
35258         tests.
35259         (main): Invoke test_ascii and test_nonascii.
35260         * modules/uninorm/u8-normcmp-tests (Files): Add
35261         tests/uninorm/test-u8-normcmp.h.
35262         (Depends-on): Remove uninorm/u8-normcmp.
35263
35264 2009-03-07  Bruno Haible  <bruno@clisp.org>
35265
35266         New module 'uninorm/u32-normcoll'.
35267         * lib/uninorm/u32-normcoll.c: New file.
35268         * modules/uninorm/u32-normcoll: New file.
35269
35270         New module 'uninorm/u16-normcoll'.
35271         * lib/uninorm/u16-normcoll.c: New file.
35272         * modules/uninorm/u16-normcoll: New file.
35273
35274         New module 'uninorm/u8-normcoll'.
35275         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
35276         declarations.
35277         * lib/uninorm/u8-normcoll.c: New file.
35278         * lib/uninorm/u-normcoll.h: New file.
35279         * modules/uninorm/u8-normcoll: New file.
35280
35281         New module 'uninorm/u32-normxfrm'.
35282         * lib/uninorm/u32-normxfrm.c: New file.
35283         * modules/uninorm/u32-normxfrm: New file.
35284
35285         New module 'uninorm/u16-normxfrm'.
35286         * lib/uninorm/u16-normxfrm.c: New file.
35287         * modules/uninorm/u16-normxfrm: New file.
35288
35289         New module 'uninorm/u8-normxfrm'.
35290         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
35291         declarations.
35292         * lib/uninorm/u8-normxfrm.c: New file.
35293         * lib/uninorm/u-normxfrm.h: New file.
35294         * modules/uninorm/u8-normxfrm: New file.
35295
35296 2009-03-07  Bruno Haible  <bruno@clisp.org>
35297
35298         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
35299         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
35300         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
35301
35302 2009-03-07  Bruno Haible  <bruno@clisp.org>
35303
35304         New module 'memxfrm'.
35305         * lib/memxfrm.h: New file.
35306         * lib/memxfrm.c: New file.
35307         * modules/memxfrm: New file.
35308
35309 2009-03-07  Bruno Haible  <bruno@clisp.org>
35310
35311         New module 'memcmp2'.
35312         * lib/memcmp2.h: New file.
35313         * lib/memcmp2.c: New file.
35314         * modules/memcmp2: New file.
35315
35316 2009-03-07  Bruno Haible  <bruno@clisp.org>
35317
35318         Tests for module 'uninorm/decomposing-form'.
35319         * modules/uninorm/decomposing-form-tests: New file.
35320         * tests/uninorm/test-decomposing-form.c: New file.
35321
35322         New module 'uninorm/decomposing-form'.
35323         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
35324         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
35325         Add 'decomposing_variant' field.
35326         * lib/uninorm/decomposing-form.c: New file.
35327         * lib/uninorm/nfc.c (uninorm_nfc): Update.
35328         * lib/uninorm/nfd.c (uninorm_nfd): Update.
35329         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
35330         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
35331         * modules/uninorm/decomposing-form: New file.
35332         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
35333         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
35334
35335 2009-03-07  Bruno Haible  <bruno@clisp.org>
35336
35337         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
35338         strings.
35339
35340 2009-03-06  Bruno Haible  <bruno@clisp.org>
35341
35342         Tests for module 'uninorm/u32-normcmp'.
35343         * tests/uninorm/test-u32-normcmp.c: New file.
35344         * modules/uninorm/u32-normcmp-tests: New file.
35345
35346         Tests for module 'uninorm/u16-normcmp'.
35347         * tests/uninorm/test-u16-normcmp.c: New file.
35348         * modules/uninorm/u16-normcmp-tests: New file.
35349
35350         Tests for module 'uninorm/u8-normcmp'.
35351         * tests/uninorm/test-u8-normcmp.c: New file.
35352         * modules/uninorm/u8-normcmp-tests: New file.
35353
35354         New module 'uninorm/u32-normcmp'.
35355         * lib/uninorm/u32-normcmp.c: New file.
35356         * modules/uninorm/u32-normcmp: New file.
35357
35358         New module 'uninorm/u16-normcmp'.
35359         * lib/uninorm/u16-normcmp.c: New file.
35360         * modules/uninorm/u16-normcmp: New file.
35361
35362         New module 'uninorm/u8-normcmp'.
35363         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
35364         declarations.
35365         * lib/uninorm/u8-normcmp.c: New file.
35366         * lib/uninorm/u-normcmp.h: New file.
35367         * modules/uninorm/u8-normcmp: New file.
35368
35369 2009-03-06  Bruno Haible  <bruno@clisp.org>
35370
35371         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
35372         Reported by Eric Blake.
35373
35374 2009-03-06  Eric Blake  <ebb9@byu.net>
35375             Bruno Haible  <bruno@clisp.org>
35376
35377         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
35378         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
35379         condition.
35380         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
35381         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
35382         condition.
35383         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
35384
35385 2009-03-06  Eric Blake  <ebb9@byu.net>
35386
35387         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
35388         to avoid compiler warnings.
35389         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
35390
35391 2009-03-05  Bruno Haible  <bruno@clisp.org>
35392
35393         * tests/test-ftell.c (main): Disable test beyond end of file on
35394         FreeMiNT.
35395         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
35396
35397 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
35398
35399         * lib/filevercmp.c: Move hidden files up in ordering.
35400         * tests/test-filevercmp.c: Add tests for hidden files.
35401
35402 2009-03-04  Bruno Haible  <bruno@clisp.org>
35403
35404         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
35405         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
35406         AM_CFLAGS.
35407         Reported by Simon Josefsson.
35408
35409 2009-03-03  Bruno Haible  <bruno@clisp.org>
35410
35411         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
35412         Reported by Simon Josefsson.
35413
35414         * doc/ld-version-script.texi: Update node reference.
35415
35416 2009-03-03  Bruno Haible  <bruno@clisp.org>
35417
35418         * modules/visibility (License): Change to 'unlimited'.
35419         Suggested by Simon Josefsson.
35420
35421 2009-03-03  Jim Meyering  <meyering@redhat.com>
35422
35423         unlinkdir: cannot_unlink_dir may modify process state
35424         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
35425         it's neither thread-safe nor appropriate for use in a library.
35426
35427 2009-03-03  Eric Blake  <ebb9@byu.net>
35428
35429         test-closein: silence test under Darwin
35430         * tests/test-closein.sh: Ignore stderr from cat, since we don't
35431         care if it dies from EPIPE or EBADF.
35432
35433 2009-03-03  Bruno Haible  <bruno@clisp.org>
35434
35435         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
35436         earlier.
35437         * doc/visibility.texi: Fix @node and @section.
35438
35439 2009-03-03  Simon Josefsson  <simon@josefsson.org>
35440
35441         * doc/gnulib.texi: Link to sections for ld version script and
35442         visibility.
35443         * doc/visibility.texi: Add @node and @section.
35444         * modules/ld-version-script: New module.
35445         * m4/ld-version-script.m4: New file.
35446         * doc/ld-version-script.texi: New file.
35447
35448 2009-03-02  David Lutterkort  <lutter@redhat.com>
35449
35450         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
35451         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35452
35453 2009-03-02  Bruno Haible  <bruno@clisp.org>
35454
35455         * doc/visibility.texi: Mention libtool's -export-symbols option.
35456
35457 2009-03-02  Jim Meyering  <meyering@redhat.com>
35458
35459         announce-gen: new option: --no-print-checksums
35460         * build-aux/announce-gen (usage): Describe it.
35461         (print_checksums): Print a newline here, not in the [*] footnote.
35462         (main): Honor it.
35463
35464 2009-03-01  Bruno Haible  <bruno@clisp.org>
35465
35466         Use socklen_t in the native Windows replacements prototypes.
35467         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
35468         instead of 'int'.
35469         * lib/getsockopt.c (rpl_getsockopt): Likewise.
35470         * lib/setsockopt.c (rpl_setsockopt): Likewise.
35471         * modules/getsockopt (Depends-on): Add socklen.
35472         * modules/setsockopt (Depends-on): Add socklen.
35473
35474 2009-03-01  Bruno Haible  <bruno@clisp.org>
35475
35476         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
35477         least 4.2.
35478
35479 2009-03-01  Eric Blake  <ebb9@byu.net>
35480             Bruno Haible  <bruno@clisp.org>
35481
35482         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
35483         error messages.
35484         * lib/wait-process.c (wait_subprocess): Omit error message about
35485         deadly signal sent to the child of termsigp != NULL.
35486
35487 2009-03-01  Eric Blake  <ebb9@byu.net>
35488
35489         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
35490
35491 2009-03-01  Bruno Haible  <bruno@clisp.org>
35492
35493         Avoid a gcc warning.
35494         * tests/test-sched.c (b): Make global.
35495         Reported by Eric Blake.
35496
35497 2009-01-19  Martin Lambers  <marlam@marlam.de>
35498
35499         Provide POSIX semantics for socket timeout options on W32.
35500         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
35501         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
35502         * modules/setsockopt: Depend on sys_time module for struct timeval.
35503         * modules/getsockopt: Depend on sys_time module for struct timeval.
35504
35505 2009-03-01  Simon Josefsson  <simon@josefsson.org>
35506
35507         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
35508         __USE_GNU, for consistency with netdb.in.h.
35509         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35510
35511 2009-03-01  Bruno Haible  <bruno@clisp.org>
35512
35513         More support for FreeMiNT.
35514         * lib/fseeko.c (rpl_fseeko): Complete last commit.
35515         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35516
35517 2009-03-01  Bruno Haible  <bruno@clisp.org>
35518
35519         More support for FreeMiNT.
35520         * lib/fpurge.c (fpurge): Correct last commit.
35521         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35522
35523 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35524
35525         Fix unportable awk script in vc-list-files.
35526         * build-aux/vc-list-files: In the replacement awk script, use
35527         substr with a second argument of 1, not zero.
35528         Report by Simon Josefsson.
35529
35530 2009-02-28  Bruno Haible  <bruno@clisp.org>
35531
35532         More support for FreeMiNT.
35533         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
35534         to FreeMiNT today.
35535         * lib/fwriting.c (fwriting): Likewise.
35536         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
35537
35538 2009-02-28  Bruno Haible  <bruno@clisp.org>
35539
35540         * tests/test-freadseek.c (main): Disable test beyond end of file on
35541         FreeMiNT.
35542         * tests/test-ftello.c (main): Likewise.
35543         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
35544
35545 2009-02-28  Bruno Haible  <bruno@clisp.org>
35546
35547         Add tentative support for FreeMiNT.
35548         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
35549         * lib/fpurge.c (fpurge): Likewise.
35550         * lib/freadable.c (freadable): Likewise.
35551         * lib/freading.c (freading): Likewise.
35552         * lib/freadptr.c (freadptr): Likewise.
35553         * lib/freadseek.c (freadptrinc): Likewise.
35554         * lib/fseeko.c (rpl_fseeko): Likewise.
35555         * lib/fseterr.c (fseterr): Likewise.
35556         * lib/fwritable.c (fwritable): Likewise.
35557         * lib/fwriting.c (fwriting): Likewise.
35558         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
35559         Hourihane.
35560         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35561
35562 2009-02-28  Bruno Haible  <bruno@clisp.org>
35563
35564         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
35565         SIGCHLD.
35566         Reported by Jim Meyering.
35567
35568 2009-02-28  Bruno Haible  <bruno@clisp.org>
35569
35570         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
35571         Mention the results of these tests on various platforms.
35572         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
35573         order.
35574         * doc/posix-functions/printf.texi: Likewise.
35575         * doc/posix-functions/snprintf.texi: Likewise.
35576         * doc/posix-functions/sprintf.texi: Likewise.
35577         * doc/posix-functions/vfprintf.texi: Likewise.
35578         * doc/posix-functions/vprintf.texi: Likewise.
35579         * doc/posix-functions/vsnprintf.texi: Likewise.
35580         * doc/posix-functions/vsprintf.texi: Likewise.
35581         * doc/glibc-functions/obstack_printf.texi: Likewise.
35582         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
35583
35584 2009-02-28  Bruno Haible  <bruno@clisp.org>
35585
35586         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
35587         Reported by Loïc Minier <lool@dooz.org>.
35588
35589 2009-02-27  Bruno Haible  <bruno@clisp.org>
35590
35591         * gnulib-tool (func_import): Make the sed expression used to create the
35592         sed script for updating the .gitignore file POSIX compliant.
35593         Reported by Eric Blake.
35594
35595 2009-02-27  Bruno Haible  <bruno@clisp.org>
35596
35597         * gnulib-tool (sed): Don't alias as "sed --posix".
35598         Reported by Eric Blake.
35599
35600 2009-02-27  Bruno Haible  <bruno@clisp.org>
35601
35602         Avoid test link errors.
35603         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
35604         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
35605         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
35606         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
35607         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35608
35609 2009-02-27  Bruno Haible  <bruno@clisp.org>
35610
35611         Avoid spurious "(cached)" in configure output.
35612         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
35613         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
35614         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
35615         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
35616         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
35617         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
35618         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
35619         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
35620         Reported by Eric Blake.
35621
35622 2009-02-27  Eric Blake  <ebb9@byu.net>
35623
35624         printf: fix regression in previous patch
35625         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
35626
35627 2009-02-27  Bruno Haible  <bruno@clisp.org>
35628
35629         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
35630         value.
35631         * lib/stdint.in.h: Likewise.
35632         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
35633
35634 2009-02-27  Eric Blake  <ebb9@byu.net>
35635
35636         doc: mention more functions added in cygwin 1.7.0
35637         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
35638         addition.
35639         * doc/posix-functions/open_wmemstream.texi: Likewise.
35640         * doc/posix-functions/wcsnlen.texi: Likewise.
35641         * doc/posix-functions/wcsnrtombs.texi: Likewise.
35642         * doc/posix-functions/wcstod.texi: Likewise.
35643         * doc/posix-functions/wcstof.texi: Likewise.
35644         * doc/posix-functions/wcstoimax.texi: Likewise.
35645         * doc/posix-functions/wcstok.texi: Likewise.
35646         * doc/posix-functions/wcstoumax.texi: Likewise.
35647
35648         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
35649         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
35650         * doc/posix-functions/fprintf.texi: Update.
35651         * doc/posix-functions/printf.texi: Update.
35652         * doc/posix-functions/snprintf.texi: Update.
35653         * doc/posix-functions/sprintf.texi: Update.
35654         * doc/posix-functions/vfprintf.texi: Update.
35655         * doc/posix-functions/vprintf.texi: Update.
35656         * doc/posix-functions/vsnprintf.texi: Update.
35657         * doc/posix-functions/vsprintf.texi: Update.
35658         * doc/glibc-functions/obstack_printf.texi: Update.
35659         * doc/glibc-functions/obstack_vprintf.texi: Update.
35660
35661 2009-02-26  Eric Blake  <ebb9@byu.net>
35662
35663         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
35664         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
35665         compilation bug by using runtime conversion.
35666         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
35667         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
35668         * modules/ceill-tests (Files): Use nan.h.
35669         * modules/floorl-tests (Files): Likewise.
35670         * modules/frexpl-tests (Files): Likewise.
35671         * modules/isnanl-tests (Files): Likewise.
35672         * modules/ldexpl-tests (Files): Likewise.
35673         * modules/roundl-tests (Files): Likewise.
35674         * modules/truncl-tests (Files): Likewise.
35675         * tests/test-ceill.c (main): Use a working NaN.
35676         * tests/test-floorl.c (main): Likewise.
35677         * tests/test-frexpl.c (main): Likewise.
35678         * tests/test-isnan.c (test_long_double): Likewise.
35679         * tests/test-isnanl.h (main): Likewise.
35680         * tests/test-ldexpl.h (main): Likewise.
35681         * tests/test-roundl.h (main): Likewise.
35682         * tests/test-truncl.h (main): Likewise.
35683         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
35684
35685 2009-02-26  Eric Blake  <ebb9@byu.net>
35686             Bruno Haible  <bruno@clisp.org>
35687
35688         Work around a *printf bug with %ls on Solaris.
35689         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
35690         precision is specified, sprintf stops converting the wide string
35691         argument when the number of bytes that have been produced by this
35692         conversion equals or exceeds the precision.
35693         * doc/posix-functions/fprintf.texi: Update.
35694         * doc/posix-functions/printf.texi: Update.
35695         * doc/posix-functions/snprintf.texi: Update.
35696         * doc/posix-functions/sprintf.texi: Update.
35697         * doc/posix-functions/vfprintf.texi: Update.
35698         * doc/posix-functions/vprintf.texi: Update.
35699         * doc/posix-functions/vsnprintf.texi: Update.
35700         * doc/posix-functions/vsprintf.texi: Update.
35701         * doc/glibc-functions/obstack_printf.texi: Update.
35702         * doc/glibc-functions/obstack_vprintf.texi: Update.
35703
35704 2009-02-26  Eric Blake  <ebb9@byu.net>
35705
35706         stdlib: favor compiler check of random.h
35707         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
35708         to avoid an ObjC random.h installed by Swarm.
35709
35710 2009-02-26  Bruno Haible  <bruno@clisp.org>
35711
35712         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
35713         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
35714         Reported by Gary V. Vaughan <gary@gnu.org>.
35715
35716 2009-02-26  Bruno Haible  <bruno@clisp.org>
35717
35718         Fix *printf behaviour regarding the %ls directive.
35719         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
35720         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
35721         NEED_PRINTF_DIRECTIVE_LS.
35722         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
35723         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
35724         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35725         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
35726         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
35727         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
35728         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
35729         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35730         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35731         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35732         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35733         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
35734         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35735         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35736         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35737         * doc/posix-functions/fprintf.texi: Update.
35738         * doc/posix-functions/printf.texi: Update.
35739         * doc/posix-functions/snprintf.texi: Update.
35740         * doc/posix-functions/sprintf.texi: Update.
35741         * doc/posix-functions/vfprintf.texi: Update.
35742         * doc/posix-functions/vprintf.texi: Update.
35743         * doc/posix-functions/vsnprintf.texi: Update.
35744         * doc/posix-functions/vsprintf.texi: Update.
35745         * doc/glibc-functions/obstack_printf.texi: Update.
35746         * doc/glibc-functions/obstack_vprintf.texi: Update.
35747         Reported by Eric Blake.
35748
35749 2009-02-25  Bruno Haible  <bruno@clisp.org>
35750
35751         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
35752         with known value.
35753         Reported by Gary V. Vaughan <gary@gnu.org>.
35754
35755 2009-02-25  Bruno Haible  <bruno@clisp.org>
35756
35757         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
35758         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
35759         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
35760         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
35761         Reported by Gary V. Vaughan <gary@gnu.org>.
35762
35763 2009-02-25  Bruno Haible  <bruno@clisp.org>
35764
35765         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
35766         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
35767         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
35768         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
35769         Reported by Gary V. Vaughan <gary@gnu.org>.
35770
35771 2009-02-25  Eric Blake  <ebb9@byu.net>
35772
35773         tests: skip fseek/ftell tests if ungetc is broken
35774         * m4/ungetc.m4: New file.
35775         * modules/fseek-tests: Split test, so ungetc dependency is
35776         separate from rest of test.
35777         * modules/fseeko-tests: Likewise.
35778         * modules/ftell-tests: Likewise.
35779         * modules/ftello-tests: Likewise.
35780         * tests/test-fseek.c (main): Isolate ungetc dependency.
35781         * tests/test-fseeko.c (main): Likewise.
35782         * tests/test-ftell.c (main): Likewise.
35783         * tests/test-ftello.c (main): Likewise.
35784         * tests/test-fseek2.sh: New file.
35785         * tests/test-fseeko2.sh: Likewise.
35786         * tests/test-ftell2.sh: Likewise.
35787         * tests/test-ftello2.sh: Likewise.
35788
35789 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
35790
35791         test-getaddrinfo: fix usage of skip return code 77
35792         * tests/test-gettaddrinfo.c: Return skip code 77 only
35793         for first occurance of skip (4x77 is not 77)
35794
35795 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
35796
35797         strtod: avoid C99 decl-after-statement
35798         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
35799
35800 2009-02-24  Eric Blake  <ebb9@byu.net>
35801
35802         strtod: detect HP-UX 11.31 bug
35803         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
35804         Reported by Gary V. Vaughan.
35805
35806 2009-02-23  Bruno Haible  <bruno@clisp.org>
35807
35808         Fix invalid read past end of memory block.
35809         * lib/vasnprintf.c (DCHAR_SET): Define.
35810         (local_wcslen): Define only when needed.
35811         (local_strnlen, local_wcsnlen): New functions.
35812         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
35813         directives that involve a conversion ourselves.
35814         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
35815         wcsnlen, mbrtowc, wcrtomb.
35816         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
35817         * tests/test-vasprintf-posix.c (test_function): Likewise.
35818         * tests/test-snprintf-posix.h (test_function): Likewise.
35819         * tests/test-sprintf-posix.h (test_function): Likewise.
35820         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35821
35822 2009-02-22  Bruno Haible  <bruno@clisp.org>
35823
35824         Implement new clarified decomposition of Hangul syllables.
35825         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
35826         of type LTV, return only a pairwise decomposition.
35827         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
35828         Likewise.
35829         * tests/uninorm/test-decomposition.c (main): Updated expected result.
35830         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
35831         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
35832
35833 2009-02-22  Bruno Haible  <bruno@clisp.org>
35834
35835         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
35836         zero-length results and shrink excess allocated memory.
35837         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
35838         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
35839         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
35840         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
35841         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
35842         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
35843         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
35844         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
35845         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
35846         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
35847         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
35848         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
35849
35850 2009-02-21  Bruno Haible  <bruno@clisp.org>
35851
35852         * doc/gnulib.texi: Include safe-alloc.texi earlier.
35853         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
35854         spaces after a period. Put a space between a macro name and its
35855         argument list. Trivial rewordings.
35856         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
35857         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
35858         (main): Return 0 explicitly.
35859
35860 2009-02-21  Bruno Haible  <bruno@clisp.org>
35861
35862         Tests for module 'uninorm/filter'.
35863         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
35864         * modules/uninorm/filter-tests: New file.
35865
35866         New module 'uninorm/filter'.
35867         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
35868         uninorm_filter_flush, uninorm_filter_free): New declarations.
35869         * lib/uninorm/uninorm-filter.c: New file.
35870         * modules/uninorm/filter: New file.
35871
35872 2009-02-21  Bruno Haible  <bruno@clisp.org>
35873
35874         Tests for module 'uninorm/nfkc'.
35875         * tests/uninorm/test-nfkc.c: New file.
35876         * tests/uninorm/test-u8-nfkc.c: New file.
35877         * tests/uninorm/test-u16-nfkc.c: New file.
35878         * tests/uninorm/test-u32-nfkc.c: New file.
35879         * tests/uninorm/test-u32-nfkc-big.sh: New file.
35880         * tests/uninorm/test-u32-nfkc-big.c: New file.
35881         * modules/uninorm/nfkc-tests: New file.
35882
35883         New module 'uninorm/nfkc'.
35884         * lib/uninorm/nfkc.c: New file.
35885         * modules/uninorm/nfkc: New file.
35886
35887         Tests for module 'uninorm/nfkd'.
35888         * tests/uninorm/test-nfkd.c: New file.
35889         * tests/uninorm/test-u8-nfkd.c: New file.
35890         * tests/uninorm/test-u16-nfkd.c: New file.
35891         * tests/uninorm/test-u32-nfkd.c: New file.
35892         * tests/uninorm/test-u32-nfkd-big.sh: New file.
35893         * tests/uninorm/test-u32-nfkd-big.c: New file.
35894         * modules/uninorm/nfkd-tests: New file.
35895
35896         New module 'uninorm/nfkd'.
35897         * lib/uninorm/nfkd.c: New file.
35898         * modules/uninorm/nfkd: New file.
35899
35900         Tests for module 'uninorm/nfc'.
35901         * tests/uninorm/test-nfc.c: New file.
35902         * tests/uninorm/test-u8-nfc.c: New file.
35903         * tests/uninorm/test-u16-nfc.c: New file.
35904         * tests/uninorm/test-u32-nfc.c: New file.
35905         * tests/uninorm/test-u32-nfc-big.sh: New file.
35906         * tests/uninorm/test-u32-nfc-big.c: New file.
35907         * modules/uninorm/nfc-tests: New file.
35908
35909         New module 'uninorm/nfc'.
35910         * lib/uninorm/nfc.c: New file.
35911         * modules/uninorm/nfc: New file.
35912
35913         Tests for module 'uninorm/nfd'.
35914         * tests/uninorm/test-nfd.c: New file.
35915         * tests/uninorm/test-u8-nfd.c: New file.
35916         * tests/uninorm/test-u16-nfd.c: New file.
35917         * tests/uninorm/test-u32-nfd.c: New file.
35918         * tests/uninorm/test-u32-nfd-big.sh: New file.
35919         * tests/uninorm/test-u32-nfd-big.c: New file.
35920         * tests/uninorm/test-u32-normalize-big.h: New file.
35921         * tests/uninorm/test-u32-normalize-big.c: New file.
35922         * tests/uninorm/NormalizationTest.txt: New file, created from
35923         Unicode 5.1.0 NormalizationTest.txt.
35924         * modules/uninorm/nfd-tests: New file.
35925
35926         New module 'uninorm/nfd'.
35927         * lib/uninorm/nfd.c: New file.
35928         * modules/uninorm/nfd: New file.
35929
35930         New module 'uninorm/u32-normalize'.
35931         * lib/uninorm/u32-normalize.c: New file.
35932         * modules/uninorm/u32-normalize: New file.
35933
35934         New module 'uninorm/u16-normalize'.
35935         * lib/uninorm/u16-normalize.c: New file.
35936         * modules/uninorm/u16-normalize: New file.
35937
35938         New module 'uninorm/u8-normalize'.
35939         * lib/uninorm/u8-normalize.c: New file.
35940         * lib/uninorm/normalize-internal.h: New file.
35941         * lib/uninorm/u-normalize-internal.h: New file.
35942         * modules/uninorm/u8-normalize: New file.
35943
35944         New module 'uninorm/decompose-internal'.
35945         * lib/uninorm/decompose-internal.c: New file.
35946         * modules/uninorm/decompose-internal: New file.
35947
35948         Tests for module 'uninorm/composition'.
35949         * tests/uninorm/test-composition.c: New file.
35950         * modules/uninorm/composition-tests: New file.
35951
35952         New module 'uninorm/composition'.
35953         * lib/uninorm/composition.c: New file.
35954         * lib/uninorm/composition-table.gperf: New file, generated by
35955         gen-uni-tables.
35956         * modules/uninorm/composition: New file.
35957
35958         Tests for module 'uninorm/compat-decomposition'.
35959         * tests/uninorm/test-compat-decomposition.c: New file.
35960         * modules/uninorm/compat-decomposition-tests: New file.
35961
35962         New module 'uninorm/compat-decomposition'.
35963         * lib/uninorm/decompose-internal.h: New file.
35964         * lib/uninorm/compat-decomposition.c: New file.
35965         * modules/uninorm/compat-decomposition: New file.
35966
35967         Tests for module 'uninorm/canonical-decomposition'.
35968         * tests/uninorm/test-canonical-decomposition.c: New file.
35969         * modules/uninorm/canonical-decomposition-tests: New file.
35970
35971         New module 'uninorm/canonical-decomposition'.
35972         * lib/uninorm/canonical-decomposition.c: New file.
35973         * modules/uninorm/canonical-decomposition: New file.
35974
35975         Tests for module 'uninorm/decomposition'.
35976         * tests/uninorm/test-decomposition.c: New file.
35977         * modules/uninorm/decomposition-tests: New file.
35978
35979         New module 'uninorm/decomposition'.
35980         * lib/uninorm/decomposition.c: New file.
35981         * modules/uninorm/decomposition: New file.
35982
35983         New module 'uninorm/decomposition-table'.
35984         * lib/uninorm/decomposition-table.h: New file.
35985         * lib/uninorm/decomposition-table.c: New file.
35986         * lib/uninorm/decomposition-table1.h: New file, generated by
35987         gen-uni-tables.
35988         * lib/uninorm/decomposition-table2.h: New file, generated by
35989         gen-uni-tables.
35990         * modules/uninorm/decomposition-table: New file.
35991
35992         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
35993         (UC_DECOMP_*): New enumeration items.
35994         (get_decomposition): New function.
35995         (struct decomp_table): New type.
35996         (output_decomposition, output_decomposition_tables): New functions.
35997         (unicode_composition_exclusions): New variable.
35998         (fill_composition_exclusions, debug_output_composition_tables): New
35999         functions.
36000         (main): Accept one more argument. Invoke fill_composition_exclusions.
36001         Output decomposition and composition tables.
36002
36003         New module 'uninorm/base'.
36004         * lib/uninorm.h: New file.
36005         * lib/unictype.h: Update comment.
36006         * modules/uninorm/base: New file.
36007
36008 2009-02-21  David Lutterkort  <lutter@redhat.com>
36009
36010         Tests for module 'safe-alloc'.
36011         * tests/test-safe-alloc.c: New file.
36012         * modules/safe-alloc-tests: New file.
36013
36014         New module 'safe-alloc'.
36015         * lib/safe-alloc.h: New file.
36016         * lib/safe-alloc.c: New file.
36017         * m4/safe-alloc.m4: New file.
36018         * modules/safe-alloc: New file.
36019         * doc/safe-alloc.texi: New file.
36020         * doc/gnulib.texi: Include it.
36021         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
36022         safe-alloc.
36023
36024 2009-02-18  Bruno Haible  <bruno@clisp.org>
36025
36026         Fix link error on non-glibc systems.
36027         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
36028         variable.
36029         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36030
36031 2009-02-18  Jim Meyering  <meyering@redhat.com>
36032
36033         fts: avoid used-uninitialized error due to recent change
36034         * lib/fts.c (fts_read): Guard uses of the new member,
36035         parent->fts_n_dirs_remaining, since it's not relevant for
36036         the parent of a directory specified on the command-line.
36037
36038 2009-02-17  James Youngman  <jay@gnu.org>
36039             Bruno Haible  <bruno@clisp.org>
36040
36041         * m4/include_next.m4: Reformulate comment.
36042
36043 2009-02-16  Jim Meyering  <meyering@redhat.com>
36044
36045         fts: add #if guards so that the fts_lgpl module still builds
36046         * lib/fts.c: Guard just-added hash-table-using parts with
36047         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
36048         Reported by Simon Josefsson.
36049
36050 2009-02-15  Bruno Haible  <bruno@clisp.org>
36051
36052         * modules/array-mergesort-tests: New file.
36053         * tests/test-array-mergesort.c: New file.
36054
36055         New module 'array-mergesort'.
36056         * modules/array-mergesort: New file.
36057         * lib/array-mergesort.h: New file.
36058
36059 2009-02-15  Bruno Haible  <bruno@clisp.org>
36060
36061         Fix 2009-02-07 commit.
36062         * lib/gen-uni-tables.c (output_predicate, output_category,
36063         output_combclass, output_bidi_category, output_decimal_digit,
36064         output_digit, output_numeric, output_mirror, output_scripts,
36065         output_ident_category, output_simple_mapping): Fix format directives.
36066         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
36067
36068 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
36069
36070         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
36071         fixes are available from IBM.
36072
36073 2009-02-13  Jim Meyering  <meyering@redhat.com>
36074
36075         fts: arrange not to stat non-directories in more cases
36076         This makes GNU find (when it doesn't need to stat each file)
36077         *much* more efficient at traversing reiserfs file systems.
36078         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
36079         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
36080         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
36081         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
36082         (leaf_optimization_applies): New function.
36083         (LCO_hash, LCO_compare): New helper functions.
36084         (link_count_optimize_ok): New function.
36085         (fts_stat): Initialize new member (if dir).
36086         (fts_read): Decrement parent's fts_n_dirs_remaining count if
36087         we've just stat'ed a directory.  Skip the stat call when possible.
36088         ---
36089         Note this AFS-related exchange:
36090         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
36091         and note find's pioctl call in find/fstype.c.
36092         But that is necessary only if you want to enable the
36093         optimization for AFS, and for now, I don't.
36094
36095         fts: move a function definition "up" (no semantic change)
36096         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
36097         "up" to precede upcoming use of a related function.
36098
36099 2009-02-11  Jim Meyering  <meyering@redhat.com>
36100
36101         fts: correct internal computation of nlinks (optimization-related)
36102         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
36103         whether the current entry is a directory, so don't test it.
36104
36105 2009-02-10  Bruno Haible  <bruno@clisp.org>
36106
36107         Tests for module 'uniwbrk/ulc-wordbreaks'.
36108         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
36109         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
36110         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
36111
36112         Tests for module 'uniwbrk/u32-wordbreaks'.
36113         * modules/uniwbrk/u32-wordbreaks-tests: New file.
36114         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
36115
36116         Tests for module 'uniwbrk/u16-wordbreaks'.
36117         * modules/uniwbrk/u16-wordbreaks-tests: New file.
36118         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
36119
36120         Tests for module 'uniwbrk/u8-wordbreaks'.
36121         * modules/uniwbrk/u8-wordbreaks-tests: New file.
36122         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
36123
36124 2009-02-10  Bruno Haible  <bruno@clisp.org>
36125
36126         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
36127         property.
36128         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
36129         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
36130         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
36131
36132 2009-02-10  Simon Josefsson  <simon@josefsson.org>
36133
36134         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
36135         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
36136
36137 2009-02-10  Bruno Haible  <bruno@clisp.org>
36138
36139         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
36140         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
36141         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
36142         * lib/unilbrk/u8-possible-linebreaks.c: Update.
36143         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
36144         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
36145
36146 2009-02-09  Simon Josefsson  <simon@josefsson.org>
36147
36148         * lib/sockets.h (gl_fd_to_handle): New function.
36149
36150         * tests/test-sockets.c: Call gl_fd_to_handle.
36151
36152 2009-02-09  Bruno Haible  <bruno@clisp.org>
36153
36154         * doc/havelib.texi: Document the conventions on bi-arch systems.
36155
36156 2009-02-08  Bruno Haible  <bruno@clisp.org>
36157
36158         Document the AC_LIB_LINKFLAGS macro.
36159         * doc/havelib.texi: New file, mostly written on 2005-05-24.
36160         * doc/gnulib.texi: Include it.
36161
36162 2009-02-08  Bruno Haible  <bruno@clisp.org>
36163
36164         Fix wrong order of sections, compared to TOC.
36165         * doc/gnulib.texi: Include relocatable-maint.texi after the
36166         "Regular expressions" node, not before.
36167
36168 2009-02-08  Bruno Haible  <bruno@clisp.org>
36169
36170         Tests for module 'unicase/totitle'.
36171         * modules/unicase/totitle-tests: New file.
36172
36173         Tests for module 'unicase/tolower'.
36174         * modules/unicase/tolower-tests: New file.
36175
36176         Tests for module 'unicase/toupper'.
36177         * modules/unicase/toupper-tests: New file.
36178         * tests/unicase/test-mapping-part1.h: New file.
36179         * tests/unicase/test-mapping-part2.h: New file.
36180
36181         New module 'unicase/totitle'.
36182         * modules/unicase/totitle: New file.
36183         * lib/unicase/totitle.c: New file.
36184
36185         New module 'unicase/tolower'.
36186         * modules/unicase/tolower: New file.
36187         * lib/unicase/tolower.c: New file.
36188
36189         New module 'unicase/toupper'.
36190         * modules/unicase/toupper: New file.
36191         * lib/unicase/toupper.c: New file.
36192         * lib/unicase/simple-mapping.h: New file.
36193
36194         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
36195         (mapping_table): New structure.
36196         (output_simple_mapping): New function.
36197         (main): Invoke output_simple_mapping_test and output_simple_mapping.
36198         * modules/gen-uni-tables (Description): Update.
36199         * lib/unicase/toupper.h: New file, automatically generated by
36200         gen-uni-tables.
36201         * lib/unicase/tolower.h: New file, automatically generated by
36202         gen-uni-tables.
36203         * lib/unicase/totitle.h: New file, automatically generated by
36204         gen-uni-tables.
36205         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
36206         gen-uni-tables.
36207         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
36208         gen-uni-tables.
36209         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
36210         gen-uni-tables.
36211
36212         New module 'unicase/base'.
36213         * modules/unicase/base: New file.
36214         * lib/unicase.h: New file.
36215
36216 2009-02-08  Bruno Haible  <bruno@clisp.org>
36217
36218         New module 'uniwbrk/ulc-wordbreaks'.
36219         * modules/uniwbrk/ulc-wordbreaks: New file.
36220         * lib/uniwbrk/ulc-wordbreaks.c: New file.
36221
36222         New module 'uniwbrk/u32-wordbreaks'.
36223         * modules/uniwbrk/u32-wordbreaks: New file.
36224         * lib/uniwbrk/u32-wordbreaks.c: New file.
36225
36226         New module 'uniwbrk/u16-wordbreaks'.
36227         * modules/uniwbrk/u16-wordbreaks: New file.
36228         * lib/uniwbrk/u16-wordbreaks.c: New file.
36229
36230         New module 'uniwbrk/u8-wordbreaks'.
36231         * modules/uniwbrk/u8-wordbreaks: New file.
36232         * lib/uniwbrk/u8-wordbreaks.c: New file.
36233         * lib/uniwbrk/u-wordbreaks.h: New file.
36234
36235         New module 'uniwbrk/table'.
36236         * modules/uniwbrk/table: New file.
36237         * lib/uniwbrk/wbrktable.h: New file.
36238         * lib/uniwbrk/wbrktable.c: New file.
36239
36240         New module 'uniwbrk/wordbreak-property'.
36241         * modules/uniwbrk/wordbreak-property: New file.
36242         * lib/uniwbrk/wordbreak-property.c: New file.
36243
36244         * lib/gen-uni-tables.c (WBP_*): New enum items.
36245         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
36246         (unicode_org_wbp): New variable.
36247         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
36248         New functions.
36249         (wbp_table): New structure.
36250         (output_wbp, output_wbrk_tables): New functions.
36251         (main): Accept additional argument. Invoke fill_org_wbp,
36252         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
36253         output_wbrk_tables.
36254         * modules/gen-uni-tables (Description): Update.
36255         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
36256         gen-uni-tables.
36257
36258         New module 'uniwbrk/base'.
36259         * modules/uniwbrk/base: New file.
36260         * lib/uniwbrk.h: New file.
36261
36262 2009-02-08  Bruno Haible  <bruno@clisp.org>
36263
36264         Update to Unicode 5.1.0.
36265         * lib/gen-uni-tables.c (is_property_alphabetic): Include
36266         U+2185..U+2188.
36267         (is_property_default_ignorable_code_point): Don't include characters
36268         of category Cc or Cs and not-a-characters.
36269         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
36270         U+0D79, U+109E, U+109F, U+A60C.
36271         * lib/unictype/bidi_of.h: Regenerated.
36272         * lib/unictype/blocks.h: Regenerated.
36273         * lib/unictype/categ_C.h: Regenerated.
36274         * lib/unictype/categ_Cf.h: Regenerated.
36275         * lib/unictype/categ_Cn.h: Regenerated.
36276         * lib/unictype/categ_L.h: Regenerated.
36277         * lib/unictype/categ_Ll.h: Regenerated.
36278         * lib/unictype/categ_Lm.h: Regenerated.
36279         * lib/unictype/categ_Lo.h: Regenerated.
36280         * lib/unictype/categ_Lu.h: Regenerated.
36281         * lib/unictype/categ_M.h: Regenerated.
36282         * lib/unictype/categ_Mc.h: Regenerated.
36283         * lib/unictype/categ_Me.h: Regenerated.
36284         * lib/unictype/categ_Mn.h: Regenerated.
36285         * lib/unictype/categ_N.h: Regenerated.
36286         * lib/unictype/categ_Nd.h: Regenerated.
36287         * lib/unictype/categ_Nl.h: Regenerated.
36288         * lib/unictype/categ_No.h: Regenerated.
36289         * lib/unictype/categ_P.h: Regenerated.
36290         * lib/unictype/categ_Pd.h: Regenerated.
36291         * lib/unictype/categ_Pe.h: Regenerated.
36292         * lib/unictype/categ_Pf.h: Regenerated.
36293         * lib/unictype/categ_Pi.h: Regenerated.
36294         * lib/unictype/categ_Po.h: Regenerated.
36295         * lib/unictype/categ_Ps.h: Regenerated.
36296         * lib/unictype/categ_S.h: Regenerated.
36297         * lib/unictype/categ_Sk.h: Regenerated.
36298         * lib/unictype/categ_Sm.h: Regenerated.
36299         * lib/unictype/categ_So.h: Regenerated.
36300         * lib/unictype/categ_of.h: Regenerated.
36301         * lib/unictype/combining.h: Regenerated.
36302         * lib/unictype/ctype_alnum.h: Regenerated.
36303         * lib/unictype/ctype_alpha.h: Regenerated.
36304         * lib/unictype/ctype_graph.h: Regenerated.
36305         * lib/unictype/ctype_lower.h: Regenerated.
36306         * lib/unictype/ctype_print.h: Regenerated.
36307         * lib/unictype/ctype_punct.h: Regenerated.
36308         * lib/unictype/ctype_upper.h: Regenerated.
36309         * lib/unictype/decdigit.h: Regenerated.
36310         * lib/unictype/digit.h: Regenerated.
36311         * lib/unictype/mirror.h: Regenerated.
36312         * lib/unictype/numeric.h: Regenerated.
36313         * lib/unictype/pr_alphabetic.h: Regenerated.
36314         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
36315         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
36316         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
36317         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
36318         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
36319         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
36320         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
36321         * lib/unictype/pr_combining.h: Regenerated.
36322         * lib/unictype/pr_dash.h: Regenerated.
36323         * lib/unictype/pr_decimal_digit.h: Regenerated.
36324         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
36325         * lib/unictype/pr_deprecated.h: Regenerated.
36326         * lib/unictype/pr_diacritic.h: Regenerated.
36327         * lib/unictype/pr_extender.h: Regenerated.
36328         * lib/unictype/pr_format_control.h: Regenerated.
36329         * lib/unictype/pr_grapheme_base.h: Regenerated.
36330         * lib/unictype/pr_grapheme_extend.h: Regenerated.
36331         * lib/unictype/pr_grapheme_link.h: Regenerated.
36332         * lib/unictype/pr_id_continue.h: Regenerated.
36333         * lib/unictype/pr_id_start.h: Regenerated.
36334         * lib/unictype/pr_ideographic.h: Regenerated.
36335         * lib/unictype/pr_ignorable_control.h: Regenerated.
36336         * lib/unictype/pr_lowercase.h: Regenerated.
36337         * lib/unictype/pr_math.h: Regenerated.
36338         * lib/unictype/pr_numeric.h: Regenerated.
36339         * lib/unictype/pr_other_alphabetic.h: Regenerated.
36340         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
36341         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
36342         * lib/unictype/pr_other_id_continue.h: Regenerated.
36343         * lib/unictype/pr_other_lowercase.h: Regenerated.
36344         * lib/unictype/pr_other_math.h: Regenerated.
36345         * lib/unictype/pr_punctuation.h: Regenerated.
36346         * lib/unictype/pr_sentence_terminal.h: Regenerated.
36347         * lib/unictype/pr_soft_dotted.h: Regenerated.
36348         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
36349         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
36350         * lib/unictype/pr_unified_ideograph.h: Regenerated.
36351         * lib/unictype/pr_uppercase.h: Regenerated.
36352         * lib/unictype/pr_xid_continue.h: Regenerated.
36353         * lib/unictype/pr_xid_start.h: Regenerated.
36354         * lib/unictype/pr_zero_width.h: Regenerated.
36355         * lib/unictype/scripts.h: Regenerated.
36356         * lib/unictype/scripts_byname.gperf: Regenerated.
36357         * lib/unictype/sy_java_ident.h: Regenerated.
36358         * lib/unilbrk/lbrkprop1.h: Regenerated.
36359         * lib/unilbrk/lbrkprop2.h: Regenerated.
36360         * tests/unictype/test-categ_C.c: Regenerated.
36361         * tests/unictype/test-categ_Cf.c: Regenerated.
36362         * tests/unictype/test-categ_Cn.c: Regenerated.
36363         * tests/unictype/test-categ_L.c: Regenerated.
36364         * tests/unictype/test-categ_Ll.c: Regenerated.
36365         * tests/unictype/test-categ_Lm.c: Regenerated.
36366         * tests/unictype/test-categ_Lo.c: Regenerated.
36367         * tests/unictype/test-categ_Lu.c: Regenerated.
36368         * tests/unictype/test-categ_M.c: Regenerated.
36369         * tests/unictype/test-categ_Mc.c: Regenerated.
36370         * tests/unictype/test-categ_Me.c: Regenerated.
36371         * tests/unictype/test-categ_Mn.c: Regenerated.
36372         * tests/unictype/test-categ_N.c: Regenerated.
36373         * tests/unictype/test-categ_Nd.c: Regenerated.
36374         * tests/unictype/test-categ_Nl.c: Regenerated.
36375         * tests/unictype/test-categ_No.c: Regenerated.
36376         * tests/unictype/test-categ_P.c: Regenerated.
36377         * tests/unictype/test-categ_Pd.c: Regenerated.
36378         * tests/unictype/test-categ_Pe.c: Regenerated.
36379         * tests/unictype/test-categ_Pf.c: Regenerated.
36380         * tests/unictype/test-categ_Pi.c: Regenerated.
36381         * tests/unictype/test-categ_Po.c: Regenerated.
36382         * tests/unictype/test-categ_Ps.c: Regenerated.
36383         * tests/unictype/test-categ_S.c: Regenerated.
36384         * tests/unictype/test-categ_Sk.c: Regenerated.
36385         * tests/unictype/test-categ_Sm.c: Regenerated.
36386         * tests/unictype/test-categ_So.c: Regenerated.
36387         * tests/unictype/test-ctype_alnum.c: Regenerated.
36388         * tests/unictype/test-ctype_alpha.c: Regenerated.
36389         * tests/unictype/test-ctype_graph.c: Regenerated.
36390         * tests/unictype/test-ctype_lower.c: Regenerated.
36391         * tests/unictype/test-ctype_print.c: Regenerated.
36392         * tests/unictype/test-ctype_punct.c: Regenerated.
36393         * tests/unictype/test-ctype_upper.c: Regenerated.
36394         * tests/unictype/test-decdigit.h: Regenerated.
36395         * tests/unictype/test-digit.h: Regenerated.
36396         * tests/unictype/test-numeric.h: Regenerated.
36397         * tests/unictype/test-pr_alphabetic.c: Regenerated.
36398         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
36399         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
36400         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
36401         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
36402         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
36403         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
36404         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
36405         * tests/unictype/test-pr_combining.c: Regenerated.
36406         * tests/unictype/test-pr_dash.c: Regenerated.
36407         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
36408         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
36409         * tests/unictype/test-pr_deprecated.c: Regenerated.
36410         * tests/unictype/test-pr_diacritic.c: Regenerated.
36411         * tests/unictype/test-pr_extender.c: Regenerated.
36412         * tests/unictype/test-pr_format_control.c: Regenerated.
36413         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
36414         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
36415         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
36416         * tests/unictype/test-pr_id_continue.c: Regenerated.
36417         * tests/unictype/test-pr_id_start.c: Regenerated.
36418         * tests/unictype/test-pr_ideographic.c: Regenerated.
36419         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
36420         * tests/unictype/test-pr_lowercase.c: Regenerated.
36421         * tests/unictype/test-pr_math.c: Regenerated.
36422         * tests/unictype/test-pr_numeric.c: Regenerated.
36423         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
36424         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
36425         Regenerated.
36426         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
36427         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
36428         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
36429         * tests/unictype/test-pr_other_math.c: Regenerated.
36430         * tests/unictype/test-pr_punctuation.c: Regenerated.
36431         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
36432         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
36433         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
36434         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
36435         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
36436         * tests/unictype/test-pr_uppercase.c: Regenerated.
36437         * tests/unictype/test-pr_xid_continue.c: Regenerated.
36438         * tests/unictype/test-pr_xid_start.c: Regenerated.
36439         * tests/unictype/test-pr_zero_width.c: Regenerated.
36440
36441         Update to Unicode 5.1.0.
36442         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
36443         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
36444         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
36445         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
36446         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
36447         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
36448         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
36449         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
36450         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
36451         (nonspacing_table_ind): Update.
36452         * tests/uniwidth/test-uc_width2.sh: Update expected result.
36453
36454         Update to Unicode 5.1.0.
36455         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
36456         code transform.
36457         * lib/uniname/uniname.c (unicode_character_name,
36458         unicode_name_character): Add the range 0x1Fxxx to the code transform.
36459         * lib/uniname/uninames.h: Regenerated.
36460         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
36461
36462 2009-02-07  Bruno Haible  <bruno@clisp.org>
36463
36464         Merge gen-ctype and gen-lbrk into a single program.
36465         * lib/gen-uni-tables.c: New file, incorporating
36466         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
36467         Add directory prefixes to the names of the generated files.
36468         * lib/unictype/gen-ctype.c: Remove file.
36469         * lib/unilbrk/gen-lbrk.c: Remove file.
36470         * modules/gen-uni-tables: New file.
36471         * modules/unictype/gen-ctype: Remove file.
36472         * modules/unilbrk/gen-lbrk: Remove file.
36473
36474 2009-02-07  Bruno Haible  <bruno@clisp.org>
36475
36476         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
36477
36478         New module 'unistr/u32-strcoll'.
36479         * modules/unistr/u32-strcoll: New file.
36480         * lib/unistr/u32-strcoll.c: New file.
36481
36482         New module 'unistr/u16-strcoll'.
36483         * modules/unistr/u16-strcoll: New file.
36484         * lib/unistr/u16-strcoll.c: New file.
36485
36486         New module 'unistr/u8-strcoll'.
36487         * modules/unistr/u8-strcoll: New file.
36488         * lib/unistr/u8-strcoll.c: New file.
36489         * lib/unistr/u-strcoll.h: New file.
36490
36491 2009-02-07  Bruno Haible  <bruno@clisp.org>
36492
36493         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
36494         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
36495         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
36496         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
36497         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
36498         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
36499
36500 2009-02-07  Bruno Haible  <bruno@clisp.org>
36501
36502         Make 64-bit clean.
36503         * lib/unictype/gen-ctype.c (output_predicate, output_category,
36504         output_combclass, output_bidi_category, output_decimal_digit,
36505         output_digit, output_numeric, output_mirror, output_scripts,
36506         output_ident_category): Use proper width specifier in format strings.
36507
36508 2009-02-07  Bruno Haible  <bruno@clisp.org>
36509
36510         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
36511         failure behaviour.
36512
36513 2009-02-07  Jim Meyering  <meyering@redhat.com>
36514
36515         regex: avoid compilation failure with upcoming gcc-4.4
36516         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
36517         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
36518         "... error: integer overflow in preprocessor expression".
36519
36520 2009-02-05  Ben Pfaff  <blp@gnu.org>
36521
36522         Fix link errors on Windows when close module is used.
36523         * modules/close: Add $(LIB_CLOSE) to Link section.
36524         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
36525         $(LIB_CLOSE) on Windows.
36526
36527 2009-02-05  Jim Meyering  <meyering@redhat.com>
36528
36529         still avoid unused-parameter warnings, but do it cleanly
36530         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
36531         (get_fs_usage): Cast to void instead.
36532         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
36533         (dev_from_mount_options, read_file_system_list): Cast to void.
36534         Prompted by Bruno Haible.
36535
36536 2009-02-04  Jim Meyering  <meyering@redhat.com>
36537
36538         fsusage.c: correct copyright year
36539         * lib/fsusage.c: Reflect year in which the change is pushed into
36540
36541         avoid misc. warnings
36542         * lib/fsusage.c (UNUSED_PARAM): Define.
36543         (get_fs_usage): Mark parameter "disk" as unused.
36544         * lib/getugroups.c (getgrent): Use "void" in prototype.
36545         * lib/mountlist.c: Mark unused parameters.
36546         (read_file_system_list): Declare a local with "const".
36547         * lib/nanosleep.c (getnow): Declare static.
36548         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
36549
36550         dirfd: set errno upon failure
36551         * lib/dirfd.c: Include <errno.h>.
36552         Set errno to ENOTSUP when returning -1.
36553         * modules/dirfd (Depends-on): Add errno.
36554         Suggested by John Kodis <kodis@comcast.net>.
36555
36556 2009-02-01  Bruno Haible  <bruno@clisp.org>
36557
36558         Don't assume sizeof (long) >= sizeof (void *).
36559         * lib/memcmp.c: Include stdint.h.
36560         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
36561         srcp2 to 'const byte *'.
36562         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
36563         types to uintptr_t.
36564         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
36565         * modules/memcmp (Depends-on): Add stdint.
36566         Reported by Ozkan Sezer <sezeroz@gmail.com>.
36567
36568 2009-01-30  Eric Blake  <ebb9@byu.net>
36569
36570         fix more require-before-expand issues
36571         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
36572         expand, AC_PROG_AWK.
36573         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
36574
36575 2009-01-28  Eric Blake  <ebb9@byu.net>
36576
36577         version-etc: use consistent URL formatting
36578         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
36579         Improve formatting.  Use fputs for string without %.
36580
36581 2009-01-28  Jim Meyering  <meyering@redhat.com>
36582
36583         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
36584         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
36585         "underquoted definition of NAME" from autoconf-2.59.
36586
36587 2009-01-28  Bruno Haible  <bruno@clisp.org>
36588
36589         * doc/gnulib.texi: Add "Obsolete modules" to index.
36590
36591 2009-01-28  Jim Meyering  <meyering@redhat.com>
36592
36593         useless-if-before-free: recognize more variants
36594         * build-aux/useless-if-before-free: Also recognize e.g.,
36595         if (NULL != p) free (p);
36596
36597 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
36598
36599         test-getaddrinfo: skip (don't fail) this test when there's no network
36600         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
36601         on the presumption that it means you lack network access.
36602
36603 2009-01-26  Jim Meyering  <meyering@redhat.com>
36604
36605         fflush: avoid warnings on modern systems
36606         * lib/fflush.c (rpl_fflush): Move declarations of locals,
36607         pos and result, into scopes where they're used.
36608
36609 2009-01-26  Eric Blake  <ebb9@byu.net>
36610
36611         Silence warning reintroduced by recent extensions patch.
36612         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
36613         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
36614         autoconf.
36615
36616         Backport improved autoconf semantics of AC_DEFUN_ONCE.
36617         * m4/00gnulib.m4: New file.
36618         * gnulib-tool (func_get_filelist): Always use it.
36619         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
36620         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
36621
36622 2009-01-25  Bruno Haible  <bruno@clisp.org>
36623
36624         Make test-quotearg work on MacOS X and AIX.
36625         * tests/test-quotearg.sh: New file.
36626         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
36627         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
36628         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
36629         include <libintl.h>.
36630         (fake_locale): Remove variable.
36631         (gettext, dgettext, dcgettext): Remove functions.
36632         (main): Instead of setting a fake locale, set a real locale. Call
36633         textdomain and bindtextdomain.
36634         * modules/quotearg-tests (Files): Add the new files.
36635         (Depends-on): Add gettext, setenv, unsetenv.
36636         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
36637         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
36638         Augment TESTS_ENVIRONMENT.
36639
36640 2009-01-25  Bruno Haible  <bruno@clisp.org>
36641
36642         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
36643         fr_FR.ISO8859-1 locale on MacOS X.
36644         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
36645         ja_JP.eucJP locale on MacOS X.
36646         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
36647         zh_CN.GB18030 locale on MacOS X.
36648
36649 2009-01-25  Bruno Haible  <bruno@clisp.org>
36650
36651         Avoid link errors on MacOS X 10.3.
36652         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
36653         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
36654
36655 2009-01-25  Bruno Haible  <bruno@clisp.org>
36656
36657         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
36658         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
36659         * modules/pipe (Files): Remove m4/posix_spawn.m4.
36660         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
36661         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
36662         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
36663         posix_spawnattr_init, posix_spawnattr_setsigmask,
36664         posix_spawnattr_setflags, posix_spawnattr_destroy.
36665
36666         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
36667         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
36668         * modules/execute (Files): Remove m4/posix_spawn.m4.
36669         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
36670         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
36671         posix_spawnattr_init, posix_spawnattr_setsigmask,
36672         posix_spawnattr_setflags, posix_spawnattr_destroy.
36673
36674 2009-01-25  Bruno Haible  <bruno@clisp.org>
36675
36676         * lib/glthread/threadlib.c: Include <stdlib.h>.
36677
36678 2009-01-25  Bruno Haible  <bruno@clisp.org>
36679
36680         * lib/glthread/threadlib.c (dummy): New declaration.
36681
36682 2009-01-25  Bruno Haible  <bruno@clisp.org>
36683
36684         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
36685         multibyte characters also for the GB18030 encoding. Don't crash when
36686         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
36687
36688 2009-01-25  Bruno Haible  <bruno@clisp.org>
36689
36690         Avoid redefining 'struct random_data' on OSF/1 5.1.
36691         * lib/stdlib.in.h: Include <random.h> if it exists.
36692         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
36693         HAVE_RANDOM_H. Include <random.h> when testing whether
36694         'struct random_data' exists.
36695         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
36696
36697 2009-01-25  Bruno Haible  <bruno@clisp.org>
36698
36699         Don't install charset.alias on MacOS X >= 10.3.
36700         * lib/localcharset.c (DARWIN7): New macro.
36701         (get_charset_aliases): Hardcode the result for Darwin7.
36702         * modules/localcharset (install-exec-local): Don't install
36703         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
36704
36705 2009-01-25  Bruno Haible  <bruno@clisp.org>
36706
36707         Don't install charset.alias on mingw and Cygwin.
36708         * modules/localcharset (install-exec-local): Don't install
36709         charset.alias on mingw and Cygwin, if the file does not yet exist.
36710         The result for these platforms is hardcoded in localcharset.c.
36711
36712 2009-01-25  Bruno Haible  <bruno@clisp.org>
36713
36714         Make it possible again to use AC_GNU_SOURCE together with gnulib.
36715         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
36716         before requiring AC_USE_SYSTEM_EXTENSIONS.
36717
36718 2009-01-25  Jim Meyering  <meyering@redhat.com>
36719
36720         c-strtod: avoid warnings
36721         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
36722         "assignment discards qualifiers from pointer target type" warnings.
36723
36724 2009-01-24  Bruno Haible  <bruno@clisp.org>
36725
36726         Add support for non-UTF-8 locales on MacOS X.
36727         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
36728         canonical encodings. For Darwin 7 and newer, don't map traditional
36729         encodings to UTF-8.
36730         Reported by Vincent Lefevre <vincent@vinc17.org>
36731         at <http://savannah.gnu.org/bugs/?25235>.
36732
36733 2009-01-24  Bruno Haible  <bruno@clisp.org>
36734
36735         * doc/gnulib.texi (Obsolete modules): New section.
36736         Reported by Mike Frysinger <vapier@gentoo.org>.
36737
36738 2009-01-24  Bruno Haible  <bruno@clisp.org>
36739
36740         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
36741         (%.dvi): New rule.
36742
36743 2009-01-24  Bruno Haible  <bruno@clisp.org>
36744
36745         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
36746         Reported by Eric Blake.
36747
36748 2009-01-24  Bruno Haible  <bruno@clisp.org>
36749
36750         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
36751         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
36752         Reported by Gary V. Vaughan <gary@gnu.org>.
36753
36754 2009-01-24  Bruno Haible  <bruno@clisp.org>
36755
36756         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
36757
36758 2009-01-23  Bruno Haible  <bruno@clisp.org>
36759
36760         Make c-strtod, c-strtold usable in libraries.
36761         * lib/c-strtod.c: Include string.h instead of xalloc.h.
36762         (C_STRTOD): Call strdup instead of xstrdup.
36763         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
36764         * modules/c-strtold (Depends-on): Likewise.
36765         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
36766         * NEWS: Mention the change.
36767         Reported by Michael Gold <mgold@ncf.ca>.
36768
36769 2009-01-23  Jim Meyering  <meyering@redhat.com>
36770
36771         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
36772         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
36773         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
36774
36775 2009-01-23  Simon Josefsson  <simon@josefsson.org>
36776
36777         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
36778         GNU CoreUtils.
36779         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
36780         * modules/version-etc (Description): Update.
36781
36782 2009-01-22  Bruno Haible  <bruno@clisp.org>
36783
36784         Cache the C locale object.
36785         * lib/c-strtod.c (c_locale_cache): New variable.
36786         (c_locale): New function.
36787         (C_STRTOD): Use it, and don't call freelocale.
36788         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
36789         Suggested by Paolo Bonzini.
36790
36791 2009-01-21  Bruno Haible  <bruno@clisp.org>
36792
36793         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
36794         conditions other than overflow.
36795
36796 2009-01-21  Bruno Haible  <bruno@clisp.org>
36797
36798         * lib/c-strtod.c: Include errno.h.
36799         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
36800         value from STRTOD_L and STRTOD.
36801
36802 2009-01-21  Bruno Haible  <bruno@clisp.org>
36803         and Jim Meyering  <meyering@redhat.com>
36804
36805         nanosleep: skip configure test (fail it) for apple universal builds
36806         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
36807         universal builds, assume that nanosleep does not work.
36808         * modules/nanosleep (Depends-on): Add multiarch.
36809
36810         mktime: skip configure test (fail it) for apple universal builds
36811         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
36812         universal builds, assume that mktime does not work.
36813         * modules/mktime (Depends-on): Add multiarch.
36814
36815 2009-01-21  Eric Blake  <ebb9@byu.net>
36816
36817         multiarch: avoid expand-before-require warning
36818         * modules/multiarch (configure.ac): Require, rather than expand,
36819         gl_MULTIARCH.
36820         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
36821         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
36822         enforce that all clients require it.  Partial reversion of
36823         2008-12-29 patch.
36824
36825         error: avoid expand-before-require warning
36826         * modules/errno (configure.ac): Require, rather than expand,
36827         gl_HEADER_ERRNO_H.
36828         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
36829         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
36830         enforce that all clients require it.
36831
36832         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
36833         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
36834         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
36835         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
36836
36837 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
36838
36839         Revert:
36840         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
36841
36842         regex: do not depend on obsolete modules.
36843         * modules/regex: Remove memcmp and memmove.
36844
36845 2009-01-20  Bruno Haible  <bruno@clisp.org>
36846
36847         Make the 'link' module link on Windows NT 4.
36848         * lib/link.c (_WIN32_WINNT): Don't define.
36849         (CreateHardLinkFuncType): New type.
36850         (CreateHardLinkFunc, initialized): New variables.
36851         (initialize): New function.
36852         (link): Invoke CreateHardLink indirectly through the function pointer.
36853
36854 2009-01-20  Bruno Haible  <bruno@clisp.org>
36855
36856         Fix compilation failure on mingw.
36857         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
36858
36859 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
36860
36861         * doc/c-strtod.texi: Mention a couple of restrictions.
36862
36863 2009-01-20  Jim Meyering  <meyering@redhat.com>
36864
36865         gettimeofday: move more declarations out of functions
36866         * lib/gettimeofday.c: Move extern declarations of tzset and
36867         gmtime out of containing functions.  Prompted by Bruno Haible.
36868
36869 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
36870
36871         regex: do not depend on obsolete modules.
36872         * modules/regex: Remove memcmp and memmove.
36873
36874 2009-01-19  Bruno Haible  <bruno@clisp.org>
36875
36876         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
36877         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
36878         gl_BIGENDIAN, not AC_C_BIGENDIAN.
36879         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
36880         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
36881
36882 2009-01-19  Bruno Haible  <bruno@clisp.org>
36883
36884         * tests/test-link.c: Include <errno.h>.
36885         (main): Exit with code 77 when a hard link cannot be created due to
36886         the file system.
36887         * tests/test-link.sh: Skip test when a hard link cannot be created due
36888         to the file system.
36889         Suggested by Eric Blake.
36890
36891 2009-01-19  Martin Lambers  <marlam@marlam.de>
36892
36893         * modules/link-tests: New file.
36894         * tests/test-link.sh: New file.
36895         * tests/test-link.c: New file.
36896
36897 2009-01-19  Eric Blake  <ebb9@byu.net>
36898
36899         doc: mention another function added in cygwin 1.7.0
36900         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
36901         Another new function in cygwin 1.7.
36902
36903 2009-01-19  Bruno Haible  <bruno@clisp.org>
36904
36905         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
36906         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
36907         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
36908         gl_BIGENDIAN, not AC_C_BIGENDIAN.
36909         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
36910         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
36911         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
36912         * m4/md4.m4 (gl_MD4): Likewise.
36913         * m4/md5.m4 (gl_MD5): Likewise.
36914         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
36915         * m4/sha1.m4 (gl_SHA1): Likewise.
36916         * m4/sha256.m4 (gl_SHA256): Likewise.
36917         * m4/sha512.m4 (gl_SHA512): Likewise.
36918
36919 2009-01-19  Bruno Haible  <bruno@clisp.org>
36920
36921         * modules/uniname/uniname-tests (Depends-on): Add progname.
36922         * tests/uniname/test-uninames.c: Include progname.h.
36923         (main): Call set_program_name.
36924
36925         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
36926         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
36927         (main): Call set_program_name.
36928
36929         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
36930         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
36931         (main): Call set_program_name.
36932
36933         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
36934         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
36935         (main): Call set_program_name.
36936
36937         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
36938         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
36939         (main): Call set_program_name.
36940
36941         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
36942         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
36943         (main): Call set_program_name.
36944
36945         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
36946         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
36947         (main): Call set_program_name.
36948
36949         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
36950         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
36951         (main): Call set_program_name.
36952
36953         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
36954         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
36955         (main): Call set_program_name.
36956
36957 2009-01-19  Eric Blake  <ebb9@byu.net>
36958
36959         test-unistd: test previous patch
36960         * tests/test-unistd.c: Test *_FILENO macros.
36961
36962         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
36963         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36964         Guarantee a definition.
36965         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
36966         * modules/unistd-safer (Depends-on): Add dependency on unistd.
36967         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
36968         * lib/dup-safer.c (STDERR_FILENO): Likewise.
36969         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36970         Likewise.
36971         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
36972         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
36973         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36974         Likewise.
36975         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
36976         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
36977         (STDERR_FILENO): Likewise.
36978         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
36979         (STDERR_FILENO): Likewise.
36980         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
36981         (STDERR_FILENO): Likewise.
36982         Reported by Elbert Pol.
36983
36984 2009-01-19  Eric Blake  <ebb9@byu.net>
36985
36986         doc: mention more functions added in cygwin 1.7.0
36987         * doc/posix-functions/abort.texi (abort): Update wording related
36988         to cygwin.
36989         * doc/posix-functions/daylight.texi (daylight): Likewise.
36990         * doc/posix-functions/optarg.texi (optarg): Likewise.
36991         * doc/posix-functions/optarg.texi (opterr): Likewise.
36992         * doc/posix-functions/optarg.texi (optind): Likewise.
36993         * doc/posix-functions/optarg.texi (optopt): Likewise.
36994         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
36995         worked in 1.5.x, and was withdrawn in 1.7.
36996         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
36997         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
36998         cygwin versions.
36999         * doc/posix-functions/perror.texi (perror): Likewise.
37000         * doc/posix-functions/printf.texi (printf): Likewise.
37001         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
37002         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
37003         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
37004         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
37005         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
37006         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
37007         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
37008         Likewise.
37009         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
37010         Likewise.
37011         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
37012         this function.
37013         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
37014         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
37015         Likewise.
37016         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
37017         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
37018         * doc/posix-functions/confstr.texi (confstr): Likewise.
37019         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
37020         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
37021         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
37022         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
37023         * doc/posix-functions/fputws.texi (fputws): Likewise.
37024         * doc/posix-functions/fwide.texi (fwide): Likewise.
37025         * doc/posix-functions/getwc.texi (getwc): Likewise.
37026         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
37027         * doc/posix-functions/putwc.texi (putwc): Likewise.
37028         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
37029         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
37030         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
37031         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
37032         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
37033         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
37034         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
37035         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
37036         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
37037         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
37038         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
37039
37040 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
37041
37042         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
37043         * lib/ioctl.c: Include <sys/ioctl.h>.
37044
37045 2009-01-19  Simon Josefsson  <simon@josefsson.org>
37046
37047         * modules/getdate-tests (Depends-on): Add progname.
37048         * tests/test-getdate.c: Use progname module, to avoid link errors
37049         on non-glibc systems.
37050
37051 2009-01-18  Simon Josefsson  <simon@josefsson.org>
37052
37053         * modules/filenamecat-tests (Depends-on): Add progname.
37054         * modules/fstrcmp-tests (Depends-on): Likewise.
37055
37056         * tests/test-filenamecat.c: Use progname module, to avoid link
37057         errors on non-glibc systems.
37058         * tests/test-fstrcmp.c: Likewise.
37059
37060 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
37061
37062         gettimeofday: avoid warning: nested extern declaration of 'localtime'
37063         * lib/gettimeofday.c: Move extern declaration out of function.
37064
37065 2009-01-18  Bruno Haible  <bruno@clisp.org>
37066
37067         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
37068         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
37069         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
37070
37071 2009-01-18  Bruno Haible  <bruno@clisp.org>
37072
37073         * lib/strftime.c (MEMPCPY): Remove unused macro.
37074         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
37075
37076 2009-01-18  Martin Lambers  <marlam@marlam.de>
37077
37078         New module 'link'.
37079         * lib/unistd.in.h (link): New declaration.
37080         * lib/link.c: New file.
37081         * m4/link.m4: New file.
37082         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
37083         HAVE_LINK.
37084         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
37085         * modules/link: New file.
37086         * doc/posix-functions/link.texi: Mention the new module.
37087
37088 2009-01-18  Bruno Haible  <bruno@clisp.org>
37089
37090         * tests/test-avltree_list.c (main): Call set_program_name.
37091         * tests/test-avltree_oset.c (main): Likewise.
37092         * tests/test-obstack-printf.c: Include progname.h.
37093         (main): Call set_program_name.
37094         * tests/test-quotearg.c: Include progname.h.
37095         (main): Call set_program_name.
37096         * tests/test-xmemdup0.c: Include progname.h.
37097         (main): Call set_program_name.
37098
37099 2009-01-18  Bruno Haible  <bruno@clisp.org>
37100
37101         New module 'alphasort'.
37102         * lib/dirent.in.h (alphasort): New declaration.
37103         * lib/alphasort.c: New file, from glibc with modifications.
37104         * m4/alphasort.m4: New file.
37105         * modules/alphasort: New file.
37106         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
37107         HAVE_ALPHASORT.
37108         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
37109         HAVE_ALPHASORT.
37110         * doc/posix-functions/alphasort.texi: Mention the new module and the
37111         portability problems.
37112
37113 2009-01-18  Bruno Haible  <bruno@clisp.org>
37114
37115         New module 'scandir'.
37116         * lib/dirent.in.h (scandir): New declaration.
37117         * lib/scandir.c: New file, from glibc with modifications.
37118         * m4/scandir.m4: New file.
37119         * modules/scandir: New file.
37120         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
37121         HAVE_SCANDIR.
37122         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
37123         HAVE_SCANDIR.
37124         * doc/posix-functions/scandir.texi: Mention the new module and the
37125         portability problems.
37126
37127 2009-01-17  Bruno Haible  <bruno@clisp.org>
37128
37129         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
37130         Update documentation.
37131         (func_remove_suffix): Escape all dots in the suffix. Update
37132         documentation.
37133         (func_filter_filelist): Update documentation.
37134         Reported by Ralf Wildenhues.
37135
37136 2009-01-17  Bruno Haible  <bruno@clisp.org>
37137
37138         * modules/dprintf-posix-tests: New file.
37139         * tests/test-dprintf-posix.sh: New file.
37140         * tests/test-dprintf-posix.c: New file.
37141
37142         New modules 'dprintf', 'dprintf-posix'.
37143         * lib/stdio.in.h (dprintf): New declaration.
37144         * lib/dprintf.c: New file.
37145         * m4/dprintf.m4: New file.
37146         * m4/dprintf-posix.m4: New file.
37147         * modules/dprintf: New file.
37148         * modules/dprintf-posix: New file.
37149         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
37150         HAVE_DPRINTF, REPLACE_DPRINTF.
37151         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
37152         HAVE_DPRINTF, REPLACE_DPRINTF.
37153         * doc/posix-functions/dprintf.texi: Mention the new modules.
37154
37155 2009-01-17  Bruno Haible  <bruno@clisp.org>
37156
37157         * modules/vdprintf-posix-tests: New file.
37158         * tests/test-vdprintf-posix.sh: New file.
37159         * tests/test-vdprintf-posix.c: New file.
37160
37161         New modules 'vdprintf', 'vdprintf-posix'.
37162         * lib/stdio.in.h (vdprintf): New declaration.
37163         * lib/vdprintf.c: New file.
37164         * m4/vdprintf.m4: New file.
37165         * m4/vdprintf-posix.m4: New file.
37166         * modules/vdprintf: New file.
37167         * modules/vdprintf-posix: New file.
37168         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
37169         HAVE_VDPRINTF, REPLACE_VDPRINTF.
37170         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
37171         HAVE_VDPRINTF, REPLACE_VDPRINTF.
37172         * doc/posix-functions/vdprintf.texi: Mention the new modules.
37173
37174 2009-01-17  Bruno Haible  <bruno@clisp.org>
37175
37176         Fix replacement of fopen on mingw.
37177         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
37178         mingw.
37179
37180 2009-01-17  Bruno Haible  <bruno@clisp.org>
37181
37182         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
37183         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
37184
37185 2009-01-17  Bruno Haible  <bruno@clisp.org>
37186
37187         Avoid test-fflush2.sh failure on mingw.
37188         * tests/test-fflush2.c: Include binary-io.h.
37189         (main): Put standard input into binary mode.
37190         * modules/fflush-tests (Depends-on): Add binary-io.
37191
37192 2009-01-17  Bruno Haible  <bruno@clisp.org>
37193
37194         * lib/wchar.in.h: In another particular situation, include only the
37195         system's <wchar.h> file.
37196         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
37197         Reported by Albert Chin-A-Young <china@thewrittenword.com>
37198         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
37199
37200 2009-01-17  Bruno Haible  <bruno@clisp.org>
37201
37202         Support for stripping executables in --enable-relocatable.
37203         * build-aux/install-reloc: Expect one more argument, or an environment
37204         variable RELOC_STRIP_PROG. If set, strip the destination program and
37205         its wrapper.
37206         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
37207         RELOC_STRIP_PROG.
37208         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
37209         to set RELOCATABLE_STRIP.
37210         * NEWS: Mention the new Makefile requirement.
37211
37212 2009-01-17  Bruno Haible  <bruno@clisp.org>
37213
37214         * build-aux/install-reloc: Remove debugging information left over by
37215         C compiler on MacOS X.
37216
37217 2009-01-17  Bruno Haible  <bruno@clisp.org>
37218
37219         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
37220         * lib/progreloc.c (find_executable): Fix type of pointer passed to
37221         _NSGetExecutablePath.
37222
37223 2009-01-16  Jim Meyering  <meyering@redhat.com>
37224
37225         strerror: avoid warnings about discarding "const"
37226         * lib/strerror.c (rpl_strerror): Instead of returning a const
37227         string from each and every "case", use a variable, and add a single
37228         cast after the switch.
37229
37230 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
37231
37232         * lib/arpa_inet.in.h: Add extern "C" block for C++.
37233
37234 2009-01-16  Bruno Haible  <bruno@clisp.org>
37235
37236         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
37237         array initializer syntax that also works in C++ mode.
37238         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37239
37240 2009-01-16  Jim Meyering  <meyering@redhat.com>
37241
37242         poll: suppress a warning
37243         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
37244         to ignore "...unsigned expression < 0 is always false" warnings.
37245
37246 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
37247
37248         poll: remove declarations of unused variables
37249         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
37250         sockbuf and optlen.
37251
37252 2009-01-15  Bruno Haible  <bruno@clisp.org>
37253
37254         Make fflush-after-ungetc POSIX compliant on BSD systems.
37255         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
37256         (clear_ungetc_buffer): Implement also for other systems.
37257         (rpl_fflush): On glibc systems, invoke
37258         clear_ungetc_buffer_preserving_position. Otherwise, invoke
37259         clear_ungetc_buffer after fetching the stream's position, not before.
37260
37261 2009-01-15  Bruno Haible  <bruno@clisp.org>
37262
37263         Make fflush-after-ungetc POSIX compliant on glibc systems.
37264         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
37265         after ungetc.
37266         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
37267         (rpl_fflush): On glibc systems, simply call the system's fflush
37268         function after clearing the ungetc buffer.
37269         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
37270         Instead, lseek only to the end of file, then use the system's fseeko
37271         for the rest. On glibc systems, reset the EOF indicator bit.
37272
37273 2009-01-15  Jim Meyering  <meyering@redhat.com>
37274
37275         openmp.m4: revert quote-adding change, for portability to older autoconf
37276         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
37277         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
37278         Simon Josefsson noticed the problem when using autoconf-2.61.
37279
37280 2009-01-15  Bruno Haible  <bruno@clisp.org>
37281
37282         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
37283         * tests/test-fflush2.c (ASSERT): Always fail.
37284         (main): Add two tests for fflush() after ungetc(), taking into account
37285         the Austin Group's clarification.
37286         Suggested by Eric Blake.
37287
37288 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
37289
37290         mktime.m4: remove K&R-style function prototypes
37291         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
37292         for the Sun C++ compiler.
37293
37294 2009-01-14  Bruno Haible  <bruno@clisp.org>
37295
37296         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
37297         while including <wchar.h>.
37298         * lib/wchar.in.h: In two particular situations on HP-UX, include only
37299         the system's <wchar.h> file.
37300         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37301
37302 2009-01-14  Bruno Haible  <bruno@clisp.org>
37303
37304         * m4/csharp.m4: Don't mention gettext on the serial number line.
37305         * m4/csharpexec.m4: Likewise.
37306         * m4/eaccess.m4: Likewise.
37307         * m4/javaexec.m4: Likewise.
37308         * m4/sig_atomic_t.m4: Likewise.
37309         * m4/tmpdir.m4: Likewise.
37310         * m4/intldir.m4: Bump gettext version.
37311         * m4/lib-ld.m4: Likewise.
37312
37313 2009-01-14  Bruno Haible  <bruno@clisp.org>
37314
37315         * lib/progname.c (set_program_name): Add more comments.
37316         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
37317
37318 2009-01-14  Simon Josefsson  <simon@josefsson.org>
37319
37320         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
37321         were sys/stat.h does not define it.
37322
37323 2009-01-14  Jim Meyering  <meyering@redhat.com>
37324
37325         many *.m4 files: improve m4 quoting
37326         99% of this change was performed by running the following commands:
37327         git ls-files | grep '\.m4$' | xargs perl -pi \
37328           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
37329           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
37330           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
37331           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
37332         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
37333         The remainder were to add Copyright dates, increment serial numbers,
37334         undo some changes in comments, exclude m4/intl.m4, and add quotes
37335         around the "1" in ",1" where the unusual spacing prohibited the
37336         above regexps from doing the job.  For more details, see
37337         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
37338         * m4/acl.m4: Modified.
37339         * m4/afs.m4: Likewise.
37340         * m4/alloca.m4: Likewise.
37341         * m4/argp.m4: Likewise.
37342         * m4/argz.m4: Likewise.
37343         * m4/atexit.m4: Likewise.
37344         * m4/bison-i18n.m4: Likewise.
37345         * m4/bison.m4: Likewise.
37346         * m4/byteswap.m4: Likewise.
37347         * m4/c-stack.m4: Likewise.
37348         * m4/c-strtod.m4: Likewise.
37349         * m4/calloc.m4: Likewise.
37350         * m4/canonicalize-lgpl.m4: Likewise.
37351         * m4/chown.m4: Likewise.
37352         * m4/clock_time.m4: Likewise.
37353         * m4/codeset.m4: Likewise.
37354         * m4/copy-file.m4: Likewise.
37355         * m4/csharp.m4: Likewise.
37356         * m4/csharpcomp.m4: Likewise.
37357         * m4/csharpexec.m4: Likewise.
37358         * m4/d-ino.m4: Likewise.
37359         * m4/d-type.m4: Likewise.
37360         * m4/dirfd.m4: Likewise.
37361         * m4/double-slash-root.m4: Likewise.
37362         * m4/eaccess.m4: Likewise.
37363         * m4/eealloc.m4: Likewise.
37364         * m4/environ.m4: Likewise.
37365         * m4/errno_h.m4: Likewise.
37366         * m4/euidaccess.m4: Likewise.
37367         * m4/execute.m4: Likewise.
37368         * m4/fatal-signal.m4: Likewise.
37369         * m4/fchdir.m4: Likewise.
37370         * m4/fcntl_h.m4: Likewise.
37371         * m4/fileblocks.m4: Likewise.
37372         * m4/filenamecat.m4: Likewise.
37373         * m4/findprog.m4: Likewise.
37374         * m4/flexmember.m4: Likewise.
37375         * m4/fnmatch.m4: Likewise.
37376         * m4/fopen.m4: Likewise.
37377         * m4/fpending.m4: Likewise.
37378         * m4/fprintf-posix.m4: Likewise.
37379         * m4/free.m4: Likewise.
37380         * m4/frexp.m4: Likewise.
37381         * m4/frexpl.m4: Likewise.
37382         * m4/fsusage.m4: Likewise.
37383         * m4/ftruncate.m4: Likewise.
37384         * m4/gc-camellia.m4: Likewise.
37385         * m4/gc-random.m4: Likewise.
37386         * m4/gc.m4: Likewise.
37387         * m4/getaddrinfo.m4: Likewise.
37388         * m4/getcwd-abort-bug.m4: Likewise.
37389         * m4/getcwd-path-max.m4: Likewise.
37390         * m4/getdate.m4: Likewise.
37391         * m4/getdomainname.m4: Likewise.
37392         * m4/getgroups.m4: Likewise.
37393         * m4/gethostname.m4: Likewise.
37394         * m4/gethrxtime.m4: Likewise.
37395         * m4/getline.m4: Likewise.
37396         * m4/getloadavg.m4: Likewise.
37397         * m4/getndelim2.m4: Likewise.
37398         * m4/getpass.m4: Likewise.
37399         * m4/gettext.m4: Likewise.
37400         * m4/gettime.m4: Likewise.
37401         * m4/gettimeofday.m4: Likewise.
37402         * m4/gnulib-common.m4: Likewise.
37403         * m4/group-member.m4: Likewise.
37404         * m4/host-os.m4: Likewise.
37405         * m4/iconv.m4: Likewise.
37406         * m4/iconv_open.m4: Likewise.
37407         * m4/inet_ntop.m4: Likewise.
37408         * m4/inet_pton.m4: Likewise.
37409         * m4/inline.m4: Likewise.
37410         * m4/intldir.m4: Likewise.
37411         * m4/intlmacosx.m4: Likewise.
37412         * m4/intmax.m4: Likewise.
37413         * m4/intmax_t.m4: Likewise.
37414         * m4/inttypes.m4: Likewise.
37415         * m4/inttypes_h.m4: Likewise.
37416         * m4/inttypes-pri.m4: Likewise.
37417         * m4/isapipe.m4: Likewise.
37418         * m4/isnand.m4: Likewise.
37419         * m4/isnanf.m4: Likewise.
37420         * m4/isnanl.m4: Likewise.
37421         * m4/javacomp.m4: Likewise.
37422         * m4/javaexec.m4: Likewise.
37423         * m4/jm-winsz1.m4: Likewise.
37424         * m4/jm-winsz2.m4: Likewise.
37425         * m4/lchown.m4: Likewise.
37426         * m4/lcmessage.m4: Likewise.
37427         * m4/ldexpl.m4: Likewise.
37428         * m4/lib-ld.m4: Likewise.
37429         * m4/lib-link.m4: Likewise.
37430         * m4/libsigsegv.m4: Likewise.
37431         * m4/link-follow.m4: Likewise.
37432         * m4/localcharset.m4: Likewise.
37433         * m4/locale-fr.m4: Likewise.
37434         * m4/locale-ja.m4: Likewise.
37435         * m4/locale-tr.m4: Likewise.
37436         * m4/locale-zh.m4: Likewise.
37437         * m4/lock.m4: Likewise.
37438         * m4/longlong.m4: Likewise.
37439         * m4/ls-mntd-fs.m4: Likewise.
37440         * m4/lstat.m4: Likewise.
37441         * m4/malloc.m4: Likewise.
37442         * m4/mathl.m4: Likewise.
37443         * m4/mbrtowc.m4: Likewise.
37444         * m4/mbstate_t.m4: Likewise.
37445         * m4/mbswidth.m4: Likewise.
37446         * m4/memchr.m4: Likewise.
37447         * m4/memcmp.m4: Likewise.
37448         * m4/memcpy.m4: Likewise.
37449         * m4/memmem.m4: Likewise.
37450         * m4/memmove.m4: Likewise.
37451         * m4/mempcpy.m4: Likewise.
37452         * m4/memrchr.m4: Likewise.
37453         * m4/memset.m4: Likewise.
37454         * m4/minmax.m4: Likewise.
37455         * m4/mkdir-slash.m4: Likewise.
37456         * m4/mkdtemp.m4: Likewise.
37457         * m4/mktime.m4: Likewise.
37458         * m4/mmap-anon.m4: Likewise.
37459         * m4/mountlist.m4: Likewise.
37460         * m4/nanosleep.m4: Likewise.
37461         * m4/nls.m4: Likewise.
37462         * m4/nocrash.m4: Likewise.
37463         * m4/open.m4: Likewise.
37464         * m4/openat.m4: Likewise.
37465         * m4/openmp.m4: Likewise.
37466         * m4/pathmax.m4: Likewise.
37467         * m4/perl.m4: Likewise.
37468         * m4/physmem.m4: Likewise.
37469         * m4/pipe.m4: Likewise.
37470         * m4/po.m4: Likewise.
37471         * m4/poll.m4: Likewise.
37472         * m4/posixtm.m4: Likewise.
37473         * m4/posixver.m4: Likewise.
37474         * m4/printf-frexp.m4: Likewise.
37475         * m4/printf-frexpl.m4: Likewise.
37476         * m4/printf-posix.m4: Likewise.
37477         * m4/printf-posix-rpl.m4: Likewise.
37478         * m4/printf.m4: Likewise.
37479         * m4/progtest.m4: Likewise.
37480         * m4/putenv.m4: Likewise.
37481         * m4/readline.m4: Likewise.
37482         * m4/readlink.m4: Likewise.
37483         * m4/readutmp.m4: Likewise.
37484         * m4/realloc.m4: Likewise.
37485         * m4/regex.m4: Likewise.
37486         * m4/relocatable.m4: Likewise.
37487         * m4/relocatable-lib.m4: Likewise.
37488         * m4/rename-dest-slash.m4: Likewise.
37489         * m4/rename.m4: Likewise.
37490         * m4/rmdir-errno.m4: Likewise.
37491         * m4/rmdir.m4: Likewise.
37492         * m4/roundf.m4: Likewise.
37493         * m4/roundl.m4: Likewise.
37494         * m4/rpmatch.m4: Likewise.
37495         * m4/save-cwd.m4: Likewise.
37496         * m4/selinux-selinux-h.m4: Likewise.
37497         * m4/setenv.m4: Likewise.
37498         * m4/settime.m4: Likewise.
37499         * m4/sig2str.m4: Likewise.
37500         * m4/sig_atomic_t.m4: Likewise.
37501         * m4/signalblocking.m4: Likewise.
37502         * m4/signbit.m4: Likewise.
37503         * m4/sigpipe.m4: Likewise.
37504         * m4/sockets.m4: Likewise.
37505         * m4/sockpfaf.m4: Likewise.
37506         * m4/st_dm_mode.m4: Likewise.
37507         * m4/stat-time.m4: Likewise.
37508         * m4/stdbool.m4: Likewise.
37509         * m4/stdint.m4: Likewise.
37510         * m4/stdint_h.m4: Likewise.
37511         * m4/stpcpy.m4: Likewise.
37512         * m4/stpncpy.m4: Likewise.
37513         * m4/strcase.m4: Likewise.
37514         * m4/strchrnul.m4: Likewise.
37515         * m4/strcspn.m4: Likewise.
37516         * m4/strdup.m4: Likewise.
37517         * m4/strftime.m4: Likewise.
37518         * m4/strndup.m4: Likewise.
37519         * m4/strnlen.m4: Likewise.
37520         * m4/strpbrk.m4: Likewise.
37521         * m4/strptime.m4: Likewise.
37522         * m4/strsep.m4: Likewise.
37523         * m4/strtod.m4: Likewise.
37524         * m4/strtoimax.m4: Likewise.
37525         * m4/strtok_r.m4: Likewise.
37526         * m4/strtol.m4: Likewise.
37527         * m4/strtoll.m4: Likewise.
37528         * m4/strtoul.m4: Likewise.
37529         * m4/strtoull.m4: Likewise.
37530         * m4/strtoumax.m4: Likewise.
37531         * m4/strverscmp.m4: Likewise.
37532         * m4/threadlib.m4: Likewise.
37533         * m4/timegm.m4: Likewise.
37534         * m4/tm_gmtoff.m4: Likewise.
37535         * m4/tmpdir.m4: Likewise.
37536         * m4/tmpfile.m4: Likewise.
37537         * m4/tzset.m4: Likewise.
37538         * m4/uintmax_t.m4: Likewise.
37539         * m4/unlinkdir.m4: Likewise.
37540         * m4/unlocked-io.m4: Likewise.
37541         * m4/uptime.m4: Likewise.
37542         * m4/userspec.m4: Likewise.
37543         * m4/utimbuf.m4: Likewise.
37544         * m4/utime.m4: Likewise.
37545         * m4/utimes-null.m4: Likewise.
37546         * m4/utimes.m4: Likewise.
37547         * m4/vararrays.m4: Likewise.
37548         * m4/vasnprintf.m4: Likewise.
37549         * m4/vfprintf-posix.m4: Likewise.
37550         * m4/vprintf-posix.m4: Likewise.
37551         * m4/wait-process.m4: Likewise.
37552         * m4/wchar_t.m4: Likewise.
37553         * m4/wint_t.m4: Likewise.
37554         * m4/write-any-file.m4: Likewise.
37555         * m4/yield.m4: Likewise.
37556
37557 2009-01-13  Bruno Haible  <bruno@clisp.org>
37558
37559         Avoid test-copy-file.sh failures when ACL support insufficient.
37560         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
37561         TESTS_ENVIRONMENT.
37562         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
37563         Reported by Jim Meyering.
37564
37565 2009-01-13  Bruno Haible  <bruno@clisp.org>
37566
37567         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
37568         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
37569         * modules/unistdio/u8-printf-parse (Files): Likewise.
37570         * modules/unistdio/u32-printf-parse (Files): Likewise.
37571         * modules/unistdio/ulc-printf-parse (Files): Likewise.
37572
37573 2009-01-13  Simon Josefsson  <simon@josefsson.org>
37574
37575         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
37576         and m4/inttypes_h.m4 too.
37577
37578 2009-01-12  Eric Blake  <ebb9@byu.net>
37579
37580         tests: IRIX 6.2 cc can't compile -0.0 into .data
37581         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
37582         rather than at compile-time.
37583         * tests/test-floorl.c (minus_zero): Likewise.
37584         * tests/test-frexpl.c (minus_zero): Likewise.
37585         * tests/test-isnan.c (minus_zerol): Likewise.
37586         * tests/test-isnanl.h (minus_zero): Likewise.
37587         * tests/test-ldexpl.c (minus_zero): Likewise.
37588         * tests/test-roundl.c (minus_zero): Likewise.
37589         * tests/test-signbit.c (minus_zerol): Likewise.
37590         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
37591         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
37592         * tests/test-truncl.c (minus_zero): Likewise.
37593         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
37594         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
37595         Reported by Tom G. Christensen and Nelson H. F. Beebe.
37596
37597 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
37598
37599         regex: fix glibc bug 9697
37600         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
37601         handling.
37602
37603 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
37604
37605         regex: fix glibc bug 697
37606         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
37607         being NULL also if there are no backreferences.
37608
37609 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
37610
37611         regex: merge glibc changes
37612         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
37613         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
37614         re_string_skip_chars, re_string_reconstruct): Likewise.
37615         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
37616
37617 2009-01-07  Jim Meyering  <meyering@redhat.com>
37618
37619         poll: filter through cppi
37620         * lib/poll.c: Indent cpp directives to reflect nesting.
37621
37622 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
37623
37624         poll: don't return uninitialized
37625         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
37626
37627 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
37628
37629         avoid compile failure on AIX 6.1
37630         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
37631         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
37632
37633 2009-01-04  Jim Meyering  <meyering@redhat.com>
37634
37635         remove duplicate inclusion of <stdio.h>
37636         * tests/test-fprintf-posix.c: Likewise.
37637         * tests/test-printf-posix.c: Likewise.
37638         * tests/test-snprintf-posix.c: Likewise.
37639         * tests/test-sprintf-posix.c: Likewise.
37640         * tests/test-vasprintf-posix.c: Likewise.
37641         * tests/test-vfprintf-posix.c: Likewise.
37642         * tests/test-vprintf-posix.c: Likewise.
37643         * tests/test-vsnprintf-posix.c: Likewise.
37644         * tests/test-vsprintf-posix.c: Likewise.
37645
37646 2009-01-03  Jim Meyering  <meyering@redhat.com>
37647
37648         gnulib-tool: fix sed-based filtering
37649         * gnulib-tool (func_filter_filelist): Remove extra backslash
37650         in sed_fff_filter definition.
37651
37652 2009-01-02  Jim Meyering  <meyering@redhat.com>
37653
37654         strftime: avoid compilation failure on Solaris 2.6
37655         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
37656         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
37657         Don't #define mbrlen or mbsinit, since now they're guaranteed to
37658         be available.  Reported by Tom G. Christensen.  Details in
37659         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
37660
37661 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37662             Bruno Haible  <bruno@clisp.org>
37663
37664         Speed up gnulib-tool by doing more string processing through shell
37665         built-ins.
37666         * gnulib-tool (fast_func_append): New variable.
37667         (func_remove_prefix, func_remove_suffix): New functions.
37668         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
37669         (func_filter_filelist): New function.
37670         (func_get_dependencies): Use func_remove_suffix instead of sed.
37671         (func_get_automake_snippet): Use func_filter_filelist instead of a
37672         subshell and sed invocation.
37673
37674 2009-01-01  Bruno Haible  <bruno@clisp.org>
37675
37676         Fix a security bug.
37677         * gnulib-tool (func_import, import, update): Don't allow the characters
37678         '"', '$', '`', '\' in macro arguments that become part of commands that
37679         are evaluated.
37680
37681 2009-01-01  Bruno Haible  <bruno@clisp.org>
37682
37683         * gnulib-tool (func_reset_sigpipe): Add more comments.
37684
37685 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37686
37687         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
37688         func_emit_tests_Makefile_am, func_import): Abort loops early if we
37689         already know the answer.
37690
37691 2009-01-01  Jim Meyering  <meyering@redhat.com>
37692
37693         * lib/version-etc.c (version_etc_va): Update copyright year.
37694
37695 2008-12-30  Bruno Haible  <bruno@clisp.org>
37696
37697         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
37698         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
37699         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
37700
37701 2008-12-29  Eric Blake  <ebb9@byu.net>
37702
37703         multiarch: avoid autoconf AC_REQUIRE bug
37704         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
37705         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
37706         2.63 and older.
37707         Reported by Bruno Haible, and analyzed in
37708         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
37709
37710 2008-12-29  Bruno Haible  <bruno@clisp.org>
37711
37712         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
37713         files in subdirectories correctly.
37714         Reported by Ralf Wildenhues.
37715
37716 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37717
37718         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
37719         rather than 'join FILE -', for Solaris join.
37720
37721 2008-12-29  Bruno Haible  <bruno@clisp.org>
37722
37723         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
37724         quoting.
37725         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
37726         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
37727         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
37728         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
37729         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
37730         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
37731         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
37732         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
37733         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
37734         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
37735         * m4/nls.m4 (AM_NLS): Likewise.
37736         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
37737         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
37738         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
37739         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
37740         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
37741         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
37742         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
37743         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
37744         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
37745         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
37746         * m4/xsize.m4 (gl_XSIZE): Likewise.
37747         Suggested by Jim Meyering.
37748
37749 2008-11-17  Bruce Korb  <bkorb@gnu.org>
37750
37751         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
37752         * lib/parse-duration.c: use a switch instead of cascading if's.
37753
37754 2008-12-29  Eric Blake  <ebb9@byu.net>
37755
37756         wchar.h: supply WEOF on Irix 5.3
37757         * lib/wchar.in.h (wint_t): Also supply WEOF.
37758         * lib/wctype.in.h (wint_t): Likewise.
37759         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
37760         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
37761         Reported by Tom G. Christensen.
37762
37763 2008-12-26  Bruno Haible  <bruno@clisp.org>
37764
37765         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
37766         i486, i586, i686.
37767
37768 2008-12-26  Bruno Haible  <bruno@clisp.org>
37769
37770         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
37771
37772 2008-12-26  Bruno Haible  <bruno@clisp.org>
37773
37774         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
37775         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
37776         not __STDC_CONSTANT_MACROS.
37777         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
37778
37779 2008-12-25  Bruno Haible  <bruno@clisp.org>
37780
37781         Add support for universal builds to vasnprintf.
37782         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
37783         universal builds, guess no.
37784         * modules/vasnprintf-posix (Depends-on): Add multiarch.
37785         * modules/vasprintf-posix (Depends-on): Likewise.
37786         * modules/fprintf-posix (Depends-on): Likewise.
37787         * modules/vfprintf-posix (Depends-on): Likewise.
37788         * modules/snprintf-posix (Depends-on): Likewise.
37789         * modules/vsnprintf-posix (Depends-on): Likewise.
37790         * modules/sprintf-posix (Depends-on): Likewise.
37791         * modules/vsprintf-posix (Depends-on): Likewise.
37792         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
37793         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37794         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37795         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37796         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37797         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37798         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37799
37800         Add support for universal builds to <inttypes.h>.
37801         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
37802         _SCNu64_PREFIX): In Apple
37803         universal builds, define directly, using _LP64.
37804         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
37805         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
37806         * modules/inttypes (Depends-on): Add multiarch.
37807         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
37808
37809         Add support for universal builds to <stdint.h>.
37810         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
37811         universal builds, define directly, using _LP64.
37812         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
37813         Apple universal builds, don't test for the size and suffix of ptrdiff_t
37814         and size_t.
37815         * modules/stdint (Depends-on): Add multiarch.
37816         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
37817
37818         New module 'multiarch'.
37819         * modules/multiarch: New file.
37820         * m4/multiarch.m4: New file.
37821
37822 2008-12-25  Bruno Haible  <bruno@clisp.org>
37823
37824         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
37825
37826 2008-12-25  Bruno Haible  <bruno@clisp.org>
37827
37828         * modules/btowc (License): Relicense under LGPLv2+.
37829         * modules/mbsinit (License): Likewise.
37830         * modules/mbrtowc (License): Likewise.
37831         * modules/wcrtomb (License): Likewise.
37832         * modules/streq (License): Likewise.
37833         Reported by David Lutterkort <lutter@redhat.com>.
37834
37835 2008-12-23  Bruno Haible  <bruno@clisp.org>
37836
37837         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
37838
37839 2008-12-23  Bruno Haible  <bruno@clisp.org>
37840
37841         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
37842         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
37843         GETADDRINFO_LIB, not in LIBS.
37844         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
37845         * modules/canon-host (Link): Likewise.
37846         * NEWS: Mention the change.
37847         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
37848         GETADDRINFO_LIB.
37849
37850 2008-12-22  Bruno Haible  <bruno@clisp.org>
37851
37852         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
37853         * doc/posix-functions/iswalpha_l.texi: Likewise.
37854         * doc/posix-functions/iswblank_l.texi: Likewise.
37855         * doc/posix-functions/iswcntrl_l.texi: Likewise.
37856         * doc/posix-functions/iswctype_l.texi: Likewise.
37857         * doc/posix-functions/iswdigit_l.texi: Likewise.
37858         * doc/posix-functions/iswgraph_l.texi: Likewise.
37859         * doc/posix-functions/iswlower_l.texi: Likewise.
37860         * doc/posix-functions/iswprint_l.texi: Likewise.
37861         * doc/posix-functions/iswpunct_l.texi: Likewise.
37862         * doc/posix-functions/iswspace_l.texi: Likewise.
37863         * doc/posix-functions/iswupper_l.texi: Likewise.
37864         * doc/posix-functions/iswxdigit_l.texi: Likewise.
37865         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
37866         * doc/posix-functions/open_wmemstream.texi: Likewise.
37867         * doc/posix-functions/swscanf.texi: Likewise.
37868         * doc/posix-functions/towctrans_l.texi: Likewise.
37869         * doc/posix-functions/towlower.texi: Likewise.
37870         * doc/posix-functions/towlower_l.texi: Likewise.
37871         * doc/posix-functions/towupper.texi: Likewise.
37872         * doc/posix-functions/towupper_l.texi: Likewise.
37873         * doc/posix-functions/vfwprintf.texi: Likewise.
37874         * doc/posix-functions/vfwscanf.texi: Likewise.
37875         * doc/posix-functions/vswscanf.texi: Likewise.
37876         * doc/posix-functions/vwprintf.texi: Likewise.
37877         * doc/posix-functions/vwscanf.texi: Likewise.
37878         * doc/posix-functions/wcpcpy.texi: Likewise.
37879         * doc/posix-functions/wcpncpy.texi: Likewise.
37880         * doc/posix-functions/wcscasecmp.texi: Likewise.
37881         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
37882         * doc/posix-functions/wcscoll_l.texi: Likewise.
37883         * doc/posix-functions/wcsdup.texi: Likewise.
37884         * doc/posix-functions/wcsncasecmp.texi: Likewise.
37885         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
37886         * doc/posix-functions/wcsnlen.texi: Likewise.
37887         * doc/posix-functions/wcsnrtombs.texi: Likewise.
37888         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
37889         * doc/posix-functions/wctrans_l.texi: Likewise.
37890         * doc/posix-functions/wctype_l.texi: Likewise.
37891         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
37892         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
37893         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
37894         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
37895         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
37896         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
37897         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
37898         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
37899         * doc/glibc-functions/wcschrnul.texi: Likewise.
37900         * doc/glibc-functions/wcsftime_l.texi: Likewise.
37901         * doc/glibc-functions/wcstod_l.texi: Likewise.
37902         * doc/glibc-functions/wcstof_l.texi: Likewise.
37903         * doc/glibc-functions/wcstol_l.texi: Likewise.
37904         * doc/glibc-functions/wcstold_l.texi: Likewise.
37905         * doc/glibc-functions/wcstoll_l.texi: Likewise.
37906         * doc/glibc-functions/wcstoq.texi: Likewise.
37907         * doc/glibc-functions/wcstoul_l.texi: Likewise.
37908         * doc/glibc-functions/wcstoull_l.texi: Likewise.
37909         * doc/glibc-functions/wcstouq.texi: Likewise.
37910         * doc/glibc-functions/wmempcpy.texi: Likewise.
37911
37912 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
37913             Eric Blake  <ebb9@byu.net>
37914             Paolo Bonzini  <bonzini@gnu.org>
37915             Bruno Haible  <bruno@clisp.org>
37916
37917         Make c-stack work on Haiku.
37918         * lib/c-stack.c (SA_ONSTACK): Define fallback.
37919         (c_stack_action): Use SA_ONSTACK flag.
37920
37921 2008-12-22  Bruno Haible  <bruno@clisp.org>
37922
37923         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
37924
37925 2008-12-22  Bruno Haible  <bruno@clisp.org>
37926
37927         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
37928         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
37929         being overridden.
37930         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
37931         New macros.
37932         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
37933         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
37934         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
37935         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
37936
37937 2008-12-22  Bruno Haible  <bruno@clisp.org>
37938
37939         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
37940         from test code.
37941
37942 2008-12-22  Eric Blake  <ebb9@byu.net>
37943
37944         Avoid gcc warnings on cygwin.
37945         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
37946         Avoid unused variable.
37947         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
37948         Likewise.
37949
37950 2008-12-22  Bruno Haible  <bruno@clisp.org>
37951
37952         Remove HAVE_MBRTOWC conditionals.
37953         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
37954         (mbscasecmp): Assume mbrtowc function.
37955         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
37956         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
37957         * lib/mbschr.c: Include mbuiter.h unconditionally.
37958         (mbschr): Assume mbrtowc function.
37959         * lib/mbscspn.c: Include mbuiter.h unconditionally.
37960         (mbscspn): Assume mbrtowc function.
37961         * lib/mbslen.c: Include mbuiter.h unconditionally.
37962         (mbslen): Assume mbrtowc function.
37963         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
37964         (mbsncasecmp): Assume mbrtowc function.
37965         * lib/mbsnlen.c: Include mbiter.h unconditionally.
37966         (mbsnlen): Assume mbrtowc function.
37967         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
37968         (mbspbrk): Assume mbrtowc function.
37969         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
37970         (mbspcasecmp): Assume mbrtowc function.
37971         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
37972         (mbsrchr): Assume mbrtowc function.
37973         * lib/mbssep.c: Include mbuiter.h unconditionally.
37974         (mbssep): Assume mbrtowc function.
37975         * lib/mbsspn.c: Include mbuiter.h unconditionally.
37976         (mbsspn): Assume mbrtowc function.
37977         * lib/mbsstr.c: Include mbuiter.h unconditionally.
37978         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
37979         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
37980         (mbstok_r): Assume mbrtowc function.
37981         * lib/propername.c: Include mbuiter.h unconditionally.
37982         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
37983         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
37984         (trim2): Assume mbrtowc function.
37985         * lib/mbswidth.c (mbsinit): Remove fallback definition.
37986         (mbsnwidth): Assume mbrtowc function.
37987         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
37988         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
37989         fallback definitions.
37990         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
37991
37992 2008-12-22  Bruno Haible  <bruno@clisp.org>
37993
37994         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
37995
37996 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
37997
37998         * modules/regex: Request emulations for the mb*/wc* functions we need.
37999         * m4/regex.m4: Don't look for those functions here.
38000         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
38001
38002 2008-12-22  Bruno Haible  <bruno@clisp.org>
38003
38004         * modules/fnmatch (Depends-on): Remove duplicated dependency.
38005
38006 2008-12-21  Bruno Haible  <bruno@clisp.org>
38007
38008         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
38009         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
38010         (Include): Remove conditionalization.
38011         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
38012         (Include): Remove conditionalization.
38013         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
38014         (Include): Remove conditionalization.
38015         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
38016         * m4/mbfile.m4 (gl_MBFILE): Likewise.
38017         * NEWS: Mention the change.
38018         Reported by Alan Hourihane <alanh@fairlite.co.uk>
38019         via Sergey Poznyakoff <gray@gnu.org.ua>.
38020
38021 2008-12-21  Bruno Haible  <bruno@clisp.org>
38022
38023         * MODULES.html.sh (Extended multibyte and wide character utilities
38024         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
38025         wcrtomb, wcsrtombs.
38026         (Support for systems lacking POSIX:2008): Add accept, bind, close,
38027         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
38028         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
38029         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
38030
38031 2008-12-21  Bruno Haible  <bruno@clisp.org>
38032
38033         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
38034
38035 2008-12-21  Bruno Haible  <bruno@clisp.org>
38036
38037         * modules/wcsnrtombs-tests: New file.
38038         * tests/test-wcsnrtombs1.sh: New file.
38039         * tests/test-wcsnrtombs2.sh: New file.
38040         * tests/test-wcsnrtombs3.sh: New file.
38041         * tests/test-wcsnrtombs4.sh: New file.
38042         * tests/test-wcsnrtombs.c: New file.
38043
38044         New module 'wcsnrtombs'.
38045         * lib/wchar.in.h (wcsnrtombs): New declaration.
38046         * lib/wcsnrtombs.c: New file.
38047         * lib/wcsrtombs-state.c: New file.
38048         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
38049         (internal_state): Remove variable.
38050         * m4/wcsnrtombs.m4: New file.
38051         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
38052         compilation units.
38053         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
38054         HAVE_WCSNRTOMBS.
38055         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
38056         HAVE_WCSNRTOMBS.
38057         * modules/wcsnrtombs: New file.
38058         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
38059         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
38060
38061 2008-12-21  Bruno Haible  <bruno@clisp.org>
38062
38063         * modules/wcsrtombs-tests: New file.
38064         * tests/test-wcsrtombs1.sh: New file.
38065         * tests/test-wcsrtombs2.sh: New file.
38066         * tests/test-wcsrtombs3.sh: New file.
38067         * tests/test-wcsrtombs4.sh: New file.
38068         * tests/test-wcsrtombs.c: New file.
38069
38070         New module 'wcsrtombs'.
38071         * lib/wchar.in.h (wcsrtombs): New declaration.
38072         * lib/wcsrtombs.c: New file.
38073         * m4/wcsrtombs.m4: New file.
38074         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
38075         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
38076         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
38077         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
38078         * modules/wcsrtombs: New file.
38079         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
38080         bugs.
38081
38082 2008-12-21  Bruno Haible  <bruno@clisp.org>
38083
38084         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
38085         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
38086         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
38087         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
38088         if not correct.
38089         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
38090         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
38091         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
38092         m4/locale-zh.m4, m4/codeset.m4.
38093         * doc/posix-functions/wcrtomb.texi: Document the bug.
38094
38095 2008-12-21  Bruno Haible  <bruno@clisp.org>
38096
38097         Work around a btowc() bug on IRIX 6.5.
38098         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
38099         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
38100         REPLACE_WTOBC if not.
38101         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
38102         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
38103         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
38104
38105 2008-12-21  Bruno Haible  <bruno@clisp.org>
38106
38107         * modules/wcrtomb-tests: New file.
38108         * tests/test-wcrtomb.sh: New file.
38109         * tests/test-wcrtomb.c: New file.
38110
38111         New module 'wcrtomb'.
38112         * lib/wchar.in.h (wcrtomb): New declaration.
38113         * lib/wcrtomb.c: New file.
38114         * m4/wcrtomb.m4: New file.
38115         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
38116         HAVE_WCRTOMB.
38117         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
38118         HAVE_WCRTOMB.
38119         * modules/wcrtomb: New file.
38120         * doc/posix-functions/wcrtomb.texi: Mention the new module.
38121
38122 2008-12-21  Bruno Haible  <bruno@clisp.org>
38123
38124         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
38125         * modules/mbsrtowcs (Files): Likewise.
38126         * modules/wctob (Files): Likewise.
38127         * modules/c-strcase-tests (Files): Likewise.
38128         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
38129         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
38130         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
38131         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
38132         * modules/vasnprintf-posix-tests (Files): Likewise.
38133
38134 2008-12-21  William Pursell  <bill.pursell@gmail.com>
38135
38136         gitlog-to-changelog: pass all command-line arguments to git-log
38137         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
38138         it is sometimes convenient to filter the commits in various ways.
38139         gitlog-to-changelog only allows --since to specify a start date,
38140         but git-log itself supports many other filtering mechanisms.
38141         At the moment, I want to filter by branch name.  Rather than
38142         adding a --branch option to gitlog-to-changelog, it seems more
38143         flexible to simply pass all options directly to git-log and let
38144         git do the work.  Notice that this effectively makes --since a
38145         redundant option for gitlog-to-changelog, but removing it would
38146         require current usage to change since calls would then require
38147         an additional '--'.
38148
38149 2008-12-21  Bruno Haible  <bruno@clisp.org>
38150
38151         * modules/mbsnrtowcs-tests: New file.
38152         * tests/test-mbsnrtowcs1.sh: New file.
38153         * tests/test-mbsnrtowcs2.sh: New file.
38154         * tests/test-mbsnrtowcs3.sh: New file.
38155         * tests/test-mbsnrtowcs4.sh: New file.
38156         * tests/test-mbsnrtowcs.c: New file.
38157
38158         New module 'mbsnrtowcs'.
38159         * lib/wchar.in.h (mbsnrtowcs): New declaration.
38160         * lib/mbsnrtowcs.c: New file.
38161         * lib/mbsrtowcs-state.c: New file.
38162         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
38163         (internal_state): Remove variable.
38164         * m4/mbsnrtowcs.m4: New file.
38165         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
38166         compilation units.
38167         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
38168         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
38169         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
38170         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
38171         * modules/mbsnrtowcs: New file.
38172         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
38173         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
38174         portability problem.
38175
38176 2008-12-21  Bruno Haible  <bruno@clisp.org>
38177
38178         Work around mbsrtowcs bug.
38179         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
38180         (gl_FUNC_MBSRTOWCS): Invoke it.
38181         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
38182         m4/locale-zh.m4.
38183         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
38184
38185 2008-12-21  Bruno Haible  <bruno@clisp.org>
38186
38187         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
38188
38189 2008-12-21  Bruno Haible  <bruno@clisp.org>
38190
38191         Update doc for AIX.
38192         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
38193         16-bit wchar_t type.
38194         * doc/posix-functions/btowc.texi: Likewise.
38195         * doc/posix-functions/fgetwc.texi: Likewise.
38196         * doc/posix-functions/fgetws.texi: Likewise.
38197         * doc/posix-functions/fputwc.texi: Likewise.
38198         * doc/posix-functions/fputws.texi: Likewise.
38199         * doc/posix-functions/fwide.texi: Likewise.
38200         * doc/posix-functions/fwprintf.texi: Likewise.
38201         * doc/posix-functions/fwscanf.texi: Likewise.
38202         * doc/posix-functions/getwchar.texi: Likewise.
38203         * doc/posix-functions/getwc.texi: Likewise.
38204         * doc/posix-functions/iswalnum.texi: Likewise.
38205         * doc/posix-functions/iswalpha.texi: Likewise.
38206         * doc/posix-functions/iswblank.texi: Likewise.
38207         * doc/posix-functions/iswcntrl.texi: Likewise.
38208         * doc/posix-functions/iswctype.texi: Likewise.
38209         * doc/posix-functions/iswdigit.texi: Likewise.
38210         * doc/posix-functions/iswgraph.texi: Likewise.
38211         * doc/posix-functions/iswlower.texi: Likewise.
38212         * doc/posix-functions/iswprint.texi: Likewise.
38213         * doc/posix-functions/iswpunct.texi: Likewise.
38214         * doc/posix-functions/iswspace.texi: Likewise.
38215         * doc/posix-functions/iswupper.texi: Likewise.
38216         * doc/posix-functions/iswxdigit.texi: Likewise.
38217         * doc/posix-functions/mbrtowc.texi: Likewise.
38218         * doc/posix-functions/mbsrtowcs.texi: Likewise.
38219         * doc/posix-functions/mbstowcs.texi: Likewise.
38220         * doc/posix-functions/mbtowc.texi: Likewise.
38221         * doc/posix-functions/putwchar.texi: Likewise.
38222         * doc/posix-functions/putwc.texi: Likewise.
38223         * doc/posix-functions/swprintf.texi: Likewise.
38224         * doc/posix-functions/tolower.texi: Likewise.
38225         * doc/posix-functions/toupper.texi: Likewise.
38226         * doc/posix-functions/towctrans.texi: Likewise.
38227         * doc/posix-functions/ungetwc.texi: Likewise.
38228         * doc/posix-functions/vswprintf.texi: Likewise.
38229         * doc/posix-functions/wcrtomb.texi: Likewise.
38230         * doc/posix-functions/wcscat.texi: Likewise.
38231         * doc/posix-functions/wcschr.texi: Likewise.
38232         * doc/posix-functions/wcscmp.texi: Likewise.
38233         * doc/posix-functions/wcscoll.texi: Likewise.
38234         * doc/posix-functions/wcscpy.texi: Likewise.
38235         * doc/posix-functions/wcscspn.texi: Likewise.
38236         * doc/posix-functions/wcsftime.texi: Likewise.
38237         * doc/posix-functions/wcslen.texi: Likewise.
38238         * doc/posix-functions/wcsncat.texi: Likewise.
38239         * doc/posix-functions/wcsncmp.texi: Likewise.
38240         * doc/posix-functions/wcsncpy.texi: Likewise.
38241         * doc/posix-functions/wcspbrk.texi: Likewise.
38242         * doc/posix-functions/wcsrchr.texi: Likewise.
38243         * doc/posix-functions/wcsrtombs.texi: Likewise.
38244         * doc/posix-functions/wcsspn.texi: Likewise.
38245         * doc/posix-functions/wcsstr.texi: Likewise.
38246         * doc/posix-functions/wcstod.texi: Likewise.
38247         * doc/posix-functions/wcstof.texi: Likewise.
38248         * doc/posix-functions/wcstoimax.texi: Likewise.
38249         * doc/posix-functions/wcstok.texi: Likewise.
38250         * doc/posix-functions/wcstold.texi: Likewise.
38251         * doc/posix-functions/wcstoll.texi: Likewise.
38252         * doc/posix-functions/wcstol.texi: Likewise.
38253         * doc/posix-functions/wcstombs.texi: Likewise.
38254         * doc/posix-functions/wcstoull.texi: Likewise.
38255         * doc/posix-functions/wcstoul.texi: Likewise.
38256         * doc/posix-functions/wcstoumax.texi: Likewise.
38257         * doc/posix-functions/wcswidth.texi: Likewise.
38258         * doc/posix-functions/wcsxfrm.texi: Likewise.
38259         * doc/posix-functions/wctob.texi: Likewise.
38260         * doc/posix-functions/wctomb.texi: Likewise.
38261         * doc/posix-functions/wctrans.texi: Likewise.
38262         * doc/posix-functions/wctype.texi: Likewise.
38263         * doc/posix-functions/wcwidth.texi: Likewise.
38264         * doc/posix-functions/wmemchr.texi: Likewise.
38265         * doc/posix-functions/wmemcmp.texi: Likewise.
38266         * doc/posix-functions/wmemcpy.texi: Likewise.
38267         * doc/posix-functions/wmemmove.texi: Likewise.
38268         * doc/posix-functions/wmemset.texi: Likewise.
38269         * doc/posix-functions/wprintf.texi: Likewise.
38270         * doc/posix-functions/wscanf.texi: Likewise.
38271
38272 2008-12-21  Bruno Haible  <bruno@clisp.org>
38273
38274         Update doc for HP-UX 11.11.
38275         * doc/posix-functions/btowc.texi: Clarify that the function is missing
38276         in HP-UX version 11.00, not in all versions of HP-UX 11.
38277         * doc/posix-functions/fwide.texi: Likewise.
38278         * doc/posix-functions/fwprintf.texi: Likewise.
38279         * doc/posix-functions/fwscanf.texi: Likewise.
38280         * doc/posix-functions/inet_ntop.texi: Likewise.
38281         * doc/posix-functions/inet_pton.texi: Likewise.
38282         * doc/posix-functions/mbrlen.texi: Likewise.
38283         * doc/posix-functions/mbrtowc.texi: Likewise.
38284         * doc/posix-functions/mbsinit.texi: Likewise.
38285         * doc/posix-functions/mbsrtowcs.texi: Likewise.
38286         * doc/posix-functions/swprintf.texi: Likewise.
38287         * doc/posix-functions/swscanf.texi: Likewise.
38288         * doc/posix-functions/towctrans.texi: Likewise.
38289         * doc/posix-functions/vfwprintf.texi: Likewise.
38290         * doc/posix-functions/vswprintf.texi: Likewise.
38291         * doc/posix-functions/vwprintf.texi: Likewise.
38292         * doc/posix-functions/wcrtomb.texi: Likewise.
38293         * doc/posix-functions/wcsrtombs.texi: Likewise.
38294         * doc/posix-functions/wcsstr.texi: Likewise.
38295         * doc/posix-functions/wctob.texi: Likewise.
38296         * doc/posix-functions/wctrans.texi: Likewise.
38297         * doc/posix-functions/wmemchr.texi: Likewise.
38298         * doc/posix-functions/wmemcmp.texi: Likewise.
38299         * doc/posix-functions/wmemcpy.texi: Likewise.
38300         * doc/posix-functions/wmemmove.texi: Likewise.
38301         * doc/posix-functions/wmemset.texi: Likewise.
38302         * doc/posix-functions/wprintf.texi: Likewise.
38303         * doc/posix-functions/wscanf.texi: Likewise.
38304
38305 2008-12-21  Bruno Haible  <bruno@clisp.org>
38306
38307         Work around a portability problem.
38308         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
38309         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
38310
38311 2008-12-20  Bruno Haible  <bruno@clisp.org>
38312
38313         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
38314         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
38315         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
38316         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
38317         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
38318
38319         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
38320         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
38321         set.
38322         (GNULIB_defined_mbstate_t): New macro.
38323         (mbsinit): Redefine if REPLACE_MBSINIT is set.
38324         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
38325         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
38326         reuses the system's mbrtowc function but works around the bugs.
38327         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
38328         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
38329         macros.
38330         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
38331         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
38332         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
38333         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
38334         REPLACE_MBSINIT if mbsinit needs to be overridden.
38335         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
38336         REPLACE_MBSINIT, REPLACE_MBRTOWC.
38337         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
38338         REPLACE_MBSINIT, REPLACE_MBRTOWC.
38339         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
38340         m4/locale-zh.m4.
38341         (Depends): Add mbsinit.
38342         * modules/mbsinit (Depends): Add mbrtowc.
38343         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
38344
38345 2008-12-20  Bruno Haible  <bruno@clisp.org>
38346
38347         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
38348         so that there are no conversion errors on AIX.
38349         * tests/test-mbsrtowcs.c (main): LIkewise.
38350
38351 2008-12-20  Bruno Haible  <bruno@clisp.org>
38352
38353         Work around wctob bug on Solaris <= 9.
38354         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
38355         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
38356         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
38357         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
38358         * modules/wctob (Files): Add m4/locale-fr.m4.
38359         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
38360
38361 2008-12-20  Bruno Haible  <bruno@clisp.org>
38362
38363         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
38364         /dev/null.
38365         * tests/test-select-in.sh: Likewise.
38366         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38367
38368 2008-12-20  Bruno Haible  <bruno@clisp.org>
38369
38370         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
38371         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
38372         Cygwin 1.5.x.
38373
38374 2008-12-20  Bruno Haible  <bruno@clisp.org>
38375
38376         Ensure mbstate_t is defined on HP-UX 11.11.
38377         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
38378         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
38379         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
38380         AC_USE_SYSTEM_EXTENSIONS.
38381         * modules/fnmatch (Depends-on): Add extensions.
38382         * modules/mbrlen (Depends-on): Likewise.
38383         * modules/mbrtowc (Depends-on): Likewise.
38384         * modules/mbsinit (Depends-on): Likewise.
38385         * modules/mbsrtowcs (Depends-on): Likewise.
38386         * modules/mbswidth (Depends-on): Likewise.
38387         * modules/quotearg (Depends-on): Likewise.
38388         * modules/strftime (Depends-on): Likewise.
38389
38390 2008-12-20  Bruno Haible  <bruno@clisp.org>
38391
38392         Ensure wctob is declared on IRIX 6.5.
38393         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
38394         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
38395         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
38396         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
38397         of HAVE_WCTOB.
38398         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
38399         HAVE_WCTOB.
38400         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
38401
38402 2008-12-19  Bruno Haible  <bruno@clisp.org>
38403
38404         * modules/mbsrtowcs-tests: New file.
38405         * tests/test-mbsrtowcs1.sh: New file.
38406         * tests/test-mbsrtowcs2.sh: New file.
38407         * tests/test-mbsrtowcs3.sh: New file.
38408         * tests/test-mbsrtowcs4.sh: New file.
38409         * tests/test-mbsrtowcs.c: New file.
38410
38411         New module 'mbsrtowcs'.
38412         * lib/wchar.in.h (mbsrtowcs): New declaration.
38413         * lib/mbsrtowcs.c: New file.
38414         * m4/mbsrtowcs.m4: New file.
38415         * modules/mbsrtowcs: New file.
38416         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
38417         HAVE_MBSRTOWCS.
38418         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
38419         HAVE_MBSRTOWCS.
38420         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
38421
38422 2008-12-19  Bruno Haible  <bruno@clisp.org>
38423
38424         New module 'mbrlen'.
38425         * lib/wchar.in.h (mbrlen): New declaration.
38426         * lib/mbrlen.c: New file.
38427         * m4/mbrlen.m4: New file.
38428         * modules/mbrlen: New file.
38429         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
38430         HAVE_MBRLEN.
38431         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
38432         HAVE_MBRLEN.
38433         * doc/posix-functions/mbrlen.texi: Document the new module.
38434
38435 2008-12-19  Bruno Haible  <bruno@clisp.org>
38436
38437         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
38438         * modules/mbrtowc (Depends-on): Add verify.
38439         Suggested by Paul Eggert.
38440
38441 2008-12-18  Bruno Haible  <bruno@clisp.org>
38442
38443         * modules/mbsinit-tests: New file.
38444         * tests/test-mbsinit.sh: New file.
38445         * tests/test-mbsinit.c: New file.
38446
38447 2008-12-18  Bruno Haible  <bruno@clisp.org>
38448
38449         * modules/mbrtowc-tests: New file.
38450         * tests/test-mbrtowc1.sh: New file.
38451         * tests/test-mbrtowc2.sh: New file.
38452         * tests/test-mbrtowc3.sh: New file.
38453         * tests/test-mbrtowc4.sh: New file.
38454         * tests/test-mbrtowc.c: New file.
38455
38456         New module 'mbrtowc'.
38457         * lib/wchar.in.h (mbstate_t): Override when the system does not have
38458         mbsinit and mbrtowc.
38459         (mbrtowc): New declaration.
38460         * lib/mbrtowc.c: New file.
38461         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
38462         * modules/mbrtowc: New file.
38463         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
38464         HAVE_MBRTOWC.
38465         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
38466         HAVE_MBRTOWC.
38467         * doc/posix-functions/mbrtowc.texi: Document the new module.
38468
38469 2008-12-18  Bruno Haible  <bruno@clisp.org>
38470
38471         New module 'wctob'.
38472         * lib/wchar.in.h (wctob): New declaration.
38473         * lib/wctob.c: New file.
38474         * m4/wctob.m4: New file.
38475         * modules/wctob: New file.
38476         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
38477         HAVE_WCTOB.
38478         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
38479         * doc/posix-functions/wctob.texi: Document the new module.
38480
38481 2008-12-18  Bruno Haible  <bruno@clisp.org>
38482
38483         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
38484         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
38485
38486 2008-12-18  Simon Josefsson  <simon@josefsson.org>
38487
38488         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
38489         G. Christensen" <tgc@jupiterrise.com>.
38490
38491         * lib/flock.c: Need to include errno.h.  Reported by "Tom
38492         G. Christensen" <tgc@jupiterrise.com>.
38493
38494         * lib/flock.c: Need to include string.h.  Reported by "Tom
38495         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
38496         <ebb9@byu.net>.
38497
38498 2008-12-18  Bruno Haible  <bruno@clisp.org>
38499
38500         * m4/locale-ja.m4: New file, from GNU gettext.
38501
38502 2008-12-17  Bruno Haible  <bruno@clisp.org>
38503
38504         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
38505         Suggested by Eric Blake.
38506
38507 2008-12-17  Bruno Haible  <bruno@clisp.org>
38508
38509         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
38510
38511 2008-12-17  Bruno Haible  <bruno@clisp.org>
38512
38513         * lib/mbsinit.c: Include verify.h. Verify an assumption.
38514         * modules/mbsinit (Depends-on): Add verify.
38515         Suggested by Paul Eggert.
38516
38517 2008-12-17  Bruno Haible  <bruno@clisp.org>
38518
38519         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
38520         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
38521         gl_FUNC_MBRTOWC.
38522         * m4/mbiter.m4 (gl_MBITER): LIkewise.
38523         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
38524         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
38525         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
38526         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
38527         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
38528         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
38529         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
38530         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
38531         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
38532         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
38533         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
38534         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
38535         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
38536         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
38537         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
38538         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
38539         * modules/trim (configure.ac): Likewise.
38540
38541 2008-12-17  Bruno Haible  <bruno@clisp.org>
38542
38543         * modules/btowc-tests: New file.
38544         * tests/test-btowc1.sh: New file.
38545         * tests/test-btowc2.sh: New file.
38546         * tests/test-btowc.c: New file.
38547
38548         New module 'btowc'.
38549         * lib/wchar.in.h (btowc): New declaration.
38550         * lib/btowc.c: New file.
38551         * m4/btowc.m4: New file.
38552         * modules/btowc: New file.
38553         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
38554         HAVE_BTOWC.
38555         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
38556         * doc/posix-functions/btowc.texi: Document the new module.
38557
38558 2008-12-17  Bruno Haible  <bruno@clisp.org>
38559
38560         New module 'mbsinit'.
38561         * lib/wchar.in.h (mbsinit): New declaration.
38562         * lib/mbsinit.c: New file.
38563         * m4/mbsinit.m4: New file.
38564         * modules/mbsinit: New file.
38565         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
38566         HAVE_MBSINIT.
38567         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
38568         HAVE_MBSINIT.
38569         * doc/posix-functions/mbsinit.texi: Document the new module.
38570
38571 2008-12-16  Bruno Haible  <bruno@clisp.org>
38572
38573         * lib/unistd.in.h: Add comment.
38574         * tests/test-environ.c: Don't include <stdlib.h>.
38575
38576 2008-12-16  Bruno Haible  <bruno@clisp.org>
38577
38578         * lib/parse-duration.h (parse_duration): Document return value
38579         convention.
38580         * lib/parse-duration.c: Include specification header first. Add
38581         comments.
38582         (_): Remove macro.
38583         (parse_year_month_day, parse_hour_minute_second): Move side effects
38584         outside of strchr call.
38585         (parse_non_iso8601): Move side effects outside of isspace call.
38586         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
38587         call.
38588
38589 2008-12-16  Bruno Haible  <bruno@clisp.org>
38590
38591         * tests/test-parse-duration.sh: Produce no output when the test
38592         succeeds.
38593
38594 2008-12-16  Bruno Haible  <bruno@clisp.org>
38595
38596         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
38597         expressions.
38598
38599 2008-12-15  Bruno Haible  <bruno@clisp.org>
38600
38601         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
38602         * doc/glibc-functions/flistxattr.texi: Likewise.
38603         * doc/glibc-functions/fopencookie.texi: Likewise.
38604         * doc/glibc-functions/fremovexattr.texi: Likewise.
38605         * doc/glibc-functions/fsetxattr.texi: Likewise.
38606         * doc/glibc-functions/getxattr.texi: Likewise.
38607         * doc/glibc-functions/lgetxattr.texi: Likewise.
38608         * doc/glibc-functions/listxattr.texi: Likewise.
38609         * doc/glibc-functions/llistxattr.texi: Likewise.
38610         * doc/glibc-functions/lremovexattr.texi: Likewise.
38611         * doc/glibc-functions/lsetxattr.texi: Likewise.
38612         * doc/glibc-functions/removexattr.texi: Likewise.
38613         * doc/glibc-functions/setxattr.texi: Likewise.
38614         * doc/posix-functions/open_memstream.texi: Likewise.
38615
38616 2008-12-15  Eric Blake  <ebb9@byu.net>
38617
38618         Update doc for cygwin 1.7.
38619         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
38620         functions.
38621         * doc/posix-functions/fchmodat.texi: Likewise.
38622         * doc/posix-functions/fchownat.texi: Likewise.
38623         * doc/posix-functions/fdopendir.texi: Likewise.
38624         * doc/posix-functions/fmemopen.texi: Likewise.
38625         * doc/posix-functions/freeaddrinfo.texi: Likewise.
38626         * doc/posix-functions/fstatat.texi: Likewise.
38627         * doc/posix-functions/futimens.texi: Likewise.
38628         * doc/posix-functions/gai_strerror.texi: Likewise.
38629         * doc/posix-functions/getaddrinfo.texi: Likewise.
38630         * doc/posix-functions/getnameinfo.texi: Likewise.
38631         * doc/posix-functions/if_freenameindex.texi: Likewise.
38632         * doc/posix-functions/if_indextoname.texi: Likewise.
38633         * doc/posix-functions/if_nameindex.texi: Likewise.
38634         * doc/posix-functions/if_nametoindex.texi: Likewise.
38635         * doc/posix-functions/insque.texi: Likewise.
38636         * doc/posix-functions/linkat.texi: Likewise.
38637         * doc/posix-functions/llrint.texi: Likewise.
38638         * doc/posix-functions/llrintf.texi: Likewise.
38639         * doc/posix-functions/llrintl.texi: Likewise.
38640         * doc/posix-functions/lockf.texi: Likewise.
38641         * doc/posix-functions/lrintl.texi: Likewise.
38642         * doc/posix-functions/mkdirat.texi: Likewise.
38643         * doc/posix-functions/mkfifoat.texi: Likewise.
38644         * doc/posix-functions/mknodat.texi: Likewise.
38645         * doc/posix-functions/mq_close.texi: Likewise.
38646         * doc/posix-functions/mq_getattr.texi: Likewise.
38647         * doc/posix-functions/mq_notify.texi: Likewise.
38648         * doc/posix-functions/mq_open.texi: Likewise.
38649         * doc/posix-functions/mq_receive.texi: Likewise.
38650         * doc/posix-functions/mq_send.texi: Likewise.
38651         * doc/posix-functions/mq_setattr.texi: Likewise.
38652         * doc/posix-functions/mq_timedreceive.texi: Likewise.
38653         * doc/posix-functions/mq_timedsend.texi: Likewise.
38654         * doc/posix-functions/mq_unlink.texi: Likewise.
38655         * doc/posix-functions/open_memstream.texi: Likewise.
38656         * doc/posix-functions/openat.texi: Likewise.
38657         * doc/posix-functions/posix_fadvise.texi: Likewise.
38658         * doc/posix-functions/posix_fallocate.texi: Likewise.
38659         * doc/posix-functions/posix_madvise.texi: Likewise.
38660         * doc/posix-functions/posix_memalign.texi: Likewise.
38661         * doc/posix-functions/posix_openpt.texi: Likewise.
38662         * doc/posix-functions/readlinkat.texi: Likewise.
38663         * doc/posix-functions/remque.texi: Likewise.
38664         * doc/posix-functions/renameat.texi: Likewise.
38665         * doc/posix-functions/rintl.texi: Likewise.
38666         * doc/posix-functions/sem_unlink.texi: Likewise.
38667         * doc/posix-functions/shm_open.texi: Likewise.
38668         * doc/posix-functions/shm_unlink.texi: Likewise.
38669         * doc/posix-functions/signgam.texi: Likewise.
38670         * doc/posix-functions/sigset.texi: Likewise.
38671         * doc/posix-functions/stpcpy.texi: Likewise.
38672         * doc/posix-functions/stpncpy.texi: Likewise.
38673         * doc/posix-functions/strerror.texi: Likewise.
38674         * doc/posix-functions/strtod.texi: Likewise.
38675         * doc/posix-functions/symlinkat.texi: Likewise.
38676         * doc/posix-functions/unlinkat.texi: Likewise.
38677         * doc/posix-functions/utimensat.texi: Likewise.
38678         * doc/glibc-functions/bindresvport.texi: Likewise.
38679         * doc/glibc-functions/dn_expand.texi: Likewise.
38680         * doc/glibc-functions/exp10.texi: Likewise.
38681         * doc/glibc-functions/exp10f.texi: Likewise.
38682         * doc/glibc-functions/fgetxattr.texi: Likewise.
38683         * doc/glibc-functions/flistxattr.texi: Likewise.
38684         * doc/glibc-functions/fopencookie.texi: Likewise.
38685         * doc/glibc-functions/freeifaddrs.texi: Likewise.
38686         * doc/glibc-functions/fremovexattr.texi: Likewise.
38687         * doc/glibc-functions/fsetxattr.texi: Likewise.
38688         * doc/glibc-functions/getifaddrs.texi: Likewise.
38689         * doc/glibc-functions/getxattr.texi: Likewise.
38690         * doc/glibc-functions/lgetxattr.texi: Likewise.
38691         * doc/glibc-functions/listxattr.texi: Likewise.
38692         * doc/glibc-functions/llistxattr.texi: Likewise.
38693         * doc/glibc-functions/lremovexattr.texi: Likewise.
38694         * doc/glibc-functions/lsetxattr.texi: Likewise.
38695         * doc/glibc-functions/pow10.texi: Likewise.
38696         * doc/glibc-functions/pow10f.texi: Likewise.
38697         * doc/glibc-functions/rcmd_af.texi: Likewise.
38698         * doc/glibc-functions/removexattr.texi: Likewise.
38699         * doc/glibc-functions/res_init.texi: Likewise.
38700         * doc/glibc-functions/res_mkquery.texi: Likewise.
38701         * doc/glibc-functions/res_query.texi: Likewise.
38702         * doc/glibc-functions/res_querydomain.texi: Likewise.
38703         * doc/glibc-functions/res_send.texi: Likewise.
38704         * doc/glibc-functions/rresvport_af.texi: Likewise.
38705         * doc/glibc-functions/setxattr.texi: Likewise.
38706         * doc/glibc-functions/strcasestr.texi: Likewise.
38707
38708 2008-12-15  Bruno Haible  <bruno@clisp.org>
38709
38710         Fix compilation error on OSF/1 4.0.
38711         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
38712         <sys/time.h>, simply delegate to the system header.
38713         Reported by Daniel Richard G. <oss@teragram.com>.
38714
38715 2008-12-15  Bruno Haible  <bruno@clisp.org>
38716
38717         * doc/posix-functions/openat.texi: Mention the 'openat' module.
38718         * doc/posix-functions/fchmodat.texi: Likewise.
38719         * doc/posix-functions/fchownat.texi: Likewise.
38720         * doc/posix-functions/fdopendir.texi: Likewise.
38721         * doc/posix-functions/fstatat.texi: Likewise.
38722         * doc/posix-functions/mkdirat.texi: Likewise.
38723         * doc/posix-functions/unlinkat.texi: Likewise.
38724
38725 2008-12-14  Bruno Haible  <bruno@clisp.org>
38726
38727         Update doc for POSIX:2008.
38728         * doc/posix-functions/faccessat.texi: New file.
38729         * doc/posix-functions/fchmodat.texi: New file.
38730         * doc/posix-functions/fchownat.texi: New file.
38731         * doc/posix-functions/fdopendir.texi: New file.
38732         * doc/posix-functions/fstatat.texi: New file.
38733         * doc/posix-functions/futimens.texi: New file.
38734         * doc/posix-functions/linkat.texi: New file.
38735         * doc/posix-functions/mkdirat.texi: New file.
38736         * doc/posix-functions/mkfifoat.texi: New file.
38737         * doc/posix-functions/mknodat.texi: New file.
38738         * doc/posix-functions/open_wmemstream.texi: New file.
38739         * doc/posix-functions/openat.texi: New file.
38740         * doc/posix-functions/psiginfo.texi: New file.
38741         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
38742         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
38743         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
38744         * doc/posix-functions/readlinkat.texi: New file.
38745         * doc/posix-functions/renameat.texi: New file.
38746         * doc/posix-functions/strerror_l.texi: New file.
38747         * doc/posix-functions/symlinkat.texi: New file.
38748         * doc/posix-functions/unlinkat.texi: New file.
38749         * doc/posix-functions/utimensat.texi: New file.
38750         * doc/gnulib.texi (Function Substitutes): Add these subsections.
38751
38752 2008-12-14  Bruno Haible  <bruno@clisp.org>
38753
38754         Update doc for POSIX:2008.
38755         * doc/posix-functions/alphasort.texi: Renamed from
38756         doc/glibc-functions/alphasort.texi.
38757         * doc/posix-functions/dirfd.texi: Renamed from
38758         doc/glibc-functions/dirfd.texi.
38759         * doc/posix-functions/dprintf.texi: Renamed from
38760         doc/glibc-functions/dprintf.texi.
38761         * doc/posix-functions/duplocale.texi: Renamed from
38762         doc/glibc-functions/duplocale.texi.
38763         * doc/posix-functions/fexecve.texi: Renamed from
38764         doc/glibc-functions/fexecve.texi.
38765         * doc/posix-functions/fmemopen.texi: Renamed from
38766         doc/glibc-functions/fmemopen.texi.
38767         * doc/posix-functions/freelocale.texi: Renamed from
38768         doc/glibc-functions/freelocale.texi.
38769         * doc/posix-functions/getdate_err.texi: Renamed from
38770         doc/glibc-functions/getdate_err.texi.
38771         * doc/posix-functions/isalnum_l.texi: Renamed from
38772         doc/glibc-functions/isalnum_l.texi.
38773         * doc/posix-functions/isalpha_l.texi: Renamed from
38774         doc/glibc-functions/isalpha_l.texi.
38775         * doc/posix-functions/isblank_l.texi: Renamed from
38776         doc/glibc-functions/isblank_l.texi.
38777         * doc/posix-functions/iscntrl_l.texi: Renamed from
38778         doc/glibc-functions/iscntrl_l.texi.
38779         * doc/posix-functions/isdigit_l.texi: Renamed from
38780         doc/glibc-functions/isdigit_l.texi.
38781         * doc/posix-functions/isgraph_l.texi: Renamed from
38782         doc/glibc-functions/isgraph_l.texi.
38783         * doc/posix-functions/islower_l.texi: Renamed from
38784         doc/glibc-functions/islower_l.texi.
38785         * doc/posix-functions/isprint_l.texi: Renamed from
38786         doc/glibc-functions/isprint_l.texi.
38787         * doc/posix-functions/ispunct_l.texi: Renamed from
38788         doc/glibc-functions/ispunct_l.texi.
38789         * doc/posix-functions/isspace_l.texi: Renamed from
38790         doc/glibc-functions/isspace_l.texi.
38791         * doc/posix-functions/isupper_l.texi: Renamed from
38792         doc/glibc-functions/isupper_l.texi.
38793         * doc/posix-functions/iswalnum_l.texi: Renamed from
38794         doc/glibc-functions/iswalnum_l.texi.
38795         * doc/posix-functions/iswalpha_l.texi: Renamed from
38796         doc/glibc-functions/iswalpha_l.texi.
38797         * doc/posix-functions/iswblank_l.texi: Renamed from
38798         doc/glibc-functions/iswblank_l.texi.
38799         * doc/posix-functions/iswcntrl_l.texi: Renamed from
38800         doc/glibc-functions/iswcntrl_l.texi.
38801         * doc/posix-functions/iswctype_l.texi: Renamed from
38802         doc/glibc-functions/iswctype_l.texi.
38803         * doc/posix-functions/iswdigit_l.texi: Renamed from
38804         doc/glibc-functions/iswdigit_l.texi.
38805         * doc/posix-functions/iswgraph_l.texi: Renamed from
38806         doc/glibc-functions/iswgraph_l.texi.
38807         * doc/posix-functions/iswlower_l.texi: Renamed from
38808         doc/glibc-functions/iswlower_l.texi.
38809         * doc/posix-functions/iswprint_l.texi: Renamed from
38810         doc/glibc-functions/iswprint_l.texi.
38811         * doc/posix-functions/iswpunct_l.texi: Renamed from
38812         doc/glibc-functions/iswpunct_l.texi.
38813         * doc/posix-functions/iswspace_l.texi: Renamed from
38814         doc/glibc-functions/iswspace_l.texi.
38815         * doc/posix-functions/iswupper_l.texi: Renamed from
38816         doc/glibc-functions/iswupper_l.texi.
38817         * doc/posix-functions/iswxdigit_l.texi: Renamed from
38818         doc/glibc-functions/iswxdigit_l.texi.
38819         * doc/posix-functions/isxdigit_l.texi: Renamed from
38820         doc/glibc-functions/isxdigit_l.texi.
38821         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
38822         doc/glibc-functions/mbsnrtowcs.texi.
38823         * doc/posix-functions/mkdtemp.texi: Renamed from
38824         doc/glibc-functions/mkdtemp.texi.
38825         * doc/posix-functions/newlocale.texi: Renamed from
38826         doc/glibc-functions/newlocale.texi.
38827         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
38828         doc/glibc-functions/nl_langinfo_l.texi.
38829         * doc/posix-functions/open_memstream.texi: Renamed from
38830         doc/glibc-functions/open_memstream.texi.
38831         * doc/posix-functions/opterr.texi: Renamed from
38832         doc/glibc-functions/opterr.texi.
38833         * doc/posix-functions/optind.texi: Renamed from
38834         doc/glibc-functions/optind.texi.
38835         * doc/posix-functions/optopt.texi: Renamed from
38836         doc/glibc-functions/optopt.texi.
38837         * doc/posix-functions/psignal.texi: Renamed from
38838         doc/glibc-functions/psignal.texi.
38839         * doc/posix-functions/scandir.texi: Renamed from
38840         doc/glibc-functions/scandir.texi.
38841         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
38842         doc/glibc-functions/sched_get_priority_min.texi.
38843         * doc/posix-functions/signgam.texi: Renamed from
38844         doc/glibc-functions/signgam.texi.
38845         * doc/posix-functions/stpcpy.texi: Renamed from
38846         doc/glibc-functions/stpcpy.texi.
38847         * doc/posix-functions/stpncpy.texi: Renamed from
38848         doc/glibc-functions/stpncpy.texi.
38849         * doc/posix-functions/strcasecmp_l.texi: Renamed from
38850         doc/glibc-functions/strcasecmp_l.texi.
38851         * doc/posix-functions/strcoll_l.texi: Renamed from
38852         doc/glibc-functions/strcoll_l.texi.
38853         * doc/posix-functions/strfmon_l.texi: Renamed from
38854         doc/glibc-functions/strfmon_l.texi.
38855         * doc/posix-functions/strftime_l.texi: Renamed from
38856         doc/glibc-functions/strftime_l.texi.
38857         * doc/posix-functions/strncasecmp_l.texi: Renamed from
38858         doc/glibc-functions/strncasecmp_l.texi.
38859         * doc/posix-functions/strndup.texi: Renamed from
38860         doc/glibc-functions/strndup.texi.
38861         * doc/posix-functions/strnlen.texi: Renamed from
38862         doc/glibc-functions/strnlen.texi.
38863         * doc/posix-functions/strsignal.texi: Renamed from
38864         doc/glibc-functions/strsignal.texi.
38865         * doc/posix-functions/strxfrm_l.texi: Renamed from
38866         doc/glibc-functions/strxfrm_l.texi.
38867         * doc/posix-functions/timer_gettime.texi: Renamed from
38868         doc/glibc-functions/timer_gettime.texi.
38869         * doc/posix-functions/tolower_l.texi: Renamed from
38870         doc/glibc-functions/tolower_l.texi.
38871         * doc/posix-functions/toupper_l.texi: Renamed from
38872         doc/glibc-functions/toupper_l.texi.
38873         * doc/posix-functions/towctrans_l.texi: Renamed from
38874         doc/glibc-functions/towctrans_l.texi.
38875         * doc/posix-functions/towlower_l.texi: Renamed from
38876         doc/glibc-functions/towlower_l.texi.
38877         * doc/posix-functions/towupper_l.texi: Renamed from
38878         doc/glibc-functions/towupper_l.texi.
38879         * doc/posix-functions/uselocale.texi: Renamed from
38880         doc/glibc-functions/uselocale.texi.
38881         * doc/posix-functions/vdprintf.texi: Renamed from
38882         doc/glibc-functions/vdprintf.texi.
38883         * doc/posix-functions/wcpcpy.texi:
38884         Renamed from doc/glibc-functions/wcpcpy.texi.
38885         * doc/posix-functions/wcpncpy.texi: Renamed from
38886         doc/glibc-functions/wcpncpy.texi.
38887         * doc/posix-functions/wcscasecmp.texi: Renamed from
38888         doc/glibc-functions/wcscasecmp.texi.
38889         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
38890         doc/glibc-functions/wcscasecmp_l.texi.
38891         * doc/posix-functions/wcscoll_l.texi: Renamed from
38892         doc/glibc-functions/wcscoll_l.texi.
38893         * doc/posix-functions/wcsdup.texi: Renamed from
38894         doc/glibc-functions/wcsdup.texi.
38895         * doc/posix-functions/wcsncasecmp.texi: Renamed from
38896         doc/glibc-functions/wcsncasecmp.texi.
38897         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
38898         doc/glibc-functions/wcsncasecmp_l.texi.
38899         * doc/posix-functions/wcsnlen.texi: Renamed from
38900         doc/glibc-functions/wcsnlen.texi.
38901         * doc/posix-functions/wcsnrtombs.texi: Renamed from
38902         doc/glibc-functions/wcsnrtombs.texi.
38903         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
38904         doc/glibc-functions/wcsxfrm_l.texi.
38905         * doc/posix-functions/wctrans_l.texi: Renamed from
38906         doc/glibc-functions/wctrans_l.texi.
38907         * doc/posix-functions/wctype_l.texi: Renamed from
38908         doc/glibc-functions/wctype_l.texi.
38909         * doc/gnulib.texi (Function Substitutes): Add these subsections.
38910         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
38911         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
38912         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
38913         these subsections.
38914         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
38915         Remove sections.
38916
38917 2008-12-14  Bruno Haible  <bruno@clisp.org>
38918
38919         Update doc for POSIX:2008.
38920         * doc/posix-functions/*.texi: Update URL of POSIX specification.
38921
38922 2008-12-14  Bruno Haible  <bruno@clisp.org>
38923
38924         Update doc for POSIX:2008.
38925         * doc/pastposix-functions/bcmp.texi: Renamed from
38926         doc/posix-functions/bcmp.texi.
38927         * doc/pastposix-functions/bcopy.texi: Renamed from
38928         doc/posix-functions/bcopy.texi.
38929         * doc/pastposix-functions/bsd_signal.texi: Renamed from
38930         doc/posix-functions/bsd_signal.texi.
38931         * doc/pastposix-functions/bzero.texi: Renamed from
38932         doc/posix-functions/bzero.texi.
38933         * doc/pastposix-functions/ecvt.texi: Renamed from
38934         doc/posix-functions/ecvt.texi.
38935         * doc/pastposix-functions/fcvt.texi: Renamed from
38936         doc/posix-functions/fcvt.texi.
38937         * doc/pastposix-functions/ftime.texi: Renamed from
38938         doc/posix-functions/ftime.texi.
38939         * doc/pastposix-functions/gcvt.texi: Renamed from
38940         doc/posix-functions/gcvt.texi.
38941         * doc/pastposix-functions/getcontext.texi: Renamed from
38942         doc/posix-functions/getcontext.texi.
38943         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
38944         doc/posix-functions/gethostbyaddr.texi.
38945         * doc/pastposix-functions/gethostbyname.texi: Renamed from
38946         doc/posix-functions/gethostbyname.texi.
38947         * doc/pastposix-functions/getwd.texi: Renamed from
38948         doc/posix-functions/getwd.texi.
38949         * doc/pastposix-functions/h_errno.texi: Renamed from
38950         doc/posix-functions/h_errno.texi.
38951         * doc/pastposix-functions/index.texi: Renamed from
38952         doc/posix-functions/index.texi.
38953         * doc/pastposix-functions/makecontext.texi: Renamed from
38954         doc/posix-functions/makecontext.texi.
38955         * doc/pastposix-functions/mktemp.texi: Renamed from
38956         doc/posix-functions/mktemp.texi.
38957         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
38958         doc/posix-functions/pthread_attr_getstackaddr.texi.
38959         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
38960         doc/posix-functions/pthread_attr_setstackaddr.texi.
38961         * doc/pastposix-functions/rindex.texi: Renamed from
38962         doc/posix-functions/rindex.texi.
38963         * doc/pastposix-functions/scalb.texi: Renamed from
38964         doc/posix-functions/scalb.texi.
38965         * doc/pastposix-functions/setcontext.texi: Renamed from
38966         doc/posix-functions/setcontext.texi.
38967         * doc/pastposix-functions/swapcontext.texi: Renamed from
38968         doc/posix-functions/swapcontext.texi.
38969         * doc/pastposix-functions/ualarm.texi: Renamed from
38970         doc/posix-functions/ualarm.texi.
38971         * doc/pastposix-functions/usleep.texi: Renamed from
38972         doc/posix-functions/usleep.texi.
38973         * doc/pastposix-functions/vfork.texi: Renamed from
38974         doc/posix-functions/vfork.texi.
38975         * doc/pastposix-functions/wcswcs.texi: Renamed from
38976         doc/posix-functions/wcswcs.texi.
38977         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
38978         (Function Substitutes): Update.
38979
38980 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38981
38982         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
38983         m4/strerror.m4.
38984
38985 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38986             Bruno Haible  <bruno@clisp.org>
38987
38988         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
38989
38990 2008-12-13  Bruno Haible  <bruno@clisp.org>
38991
38992         * modules/strtoull (Depends-on): Remove unistd.
38993
38994 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38995
38996         * modules/strtoull (Depends-on): Add stdlib.
38997
38998 2008-12-11  Simon Josefsson  <simon@josefsson.org>
38999
39000         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
39001
39002 2008-12-10  Jim Meyering  <meyering@redhat.com>
39003
39004         gl_ASSERT: don't say assertions are disabled when they're not
39005         * m4/assert.m4 (gl_ASSERT): Do not make configure report
39006         "checking whether to enable assertions... no", when they are in
39007         fact enabled.  This is solely a bug in the output of configure.
39008         In spite of saying "no", NDEBUG was not defined in that case.
39009         Also, as noted by Eric Blake, leave assertions enabled upon
39010         --enable-assert=INVALID.
39011
39012 2008-12-10  Bruno Haible  <bruno@clisp.org>
39013
39014         Change MODULES.html to refer to POSIX:2008 where possible.
39015         * MODULES.html.sh (POSIX2008_URL): New variable.
39016         (posix_headers): Remove sys/timeb, ucontext.
39017         (posix2001_headers): New variable.
39018         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
39019         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
39020         index, makecontext, mktemp, pthread_attr_getstackaddr,
39021         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
39022         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
39023         (posix2001_functions): New variable.
39024         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
39025         otherwise.
39026
39027 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39028
39029         add missing include to parse-duration.c
39030         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
39031         * modules/parse-duration (Depends-on): Add xalloc.
39032
39033         fix sed script reading maint.mk
39034         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
39035         (syntax-check-rules): Use it.
39036
39037 2008-12-09  Bruno Haible  <bruno@clisp.org>
39038
39039         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
39040         MacOS X 10.4/PowerPC.
39041         Reported by Simon Josefsson.
39042
39043 2008-12-08  Jim Meyering  <meyering@redhat.com>
39044
39045         work around mingw's lack of some S_IF definitions
39046         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
39047         Reported by Simon Josefsson.
39048
39049 2008-12-08  Bruno Haible  <bruno@clisp.org>
39050
39051         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
39052         applied to variables. Needed on MacOS X 10.4/PowerPC.
39053         Reported by Simon Josefsson.
39054
39055 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
39056         and Eric Blake  <ebb9@byu.net>
39057
39058         assert: honor --enable-assert
39059         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
39060         order to honor --enable-assert, rather than treating it as a
39061         synonym for --disable-assert.
39062
39063 2008-12-08  Jim Meyering  <meyering@redhat.com>
39064
39065         * lib/posixtm.c: Remove now-useless declaration of mktime.
39066
39067         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
39068
39069 2008-12-07  Bruno Haible  <bruno@clisp.org>
39070
39071         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
39072         test_once): Mark functions as static.
39073         * tests/test-tls.c (test_tls): Likewise.
39074
39075 2008-12-07  Bruno Haible  <bruno@clisp.org>
39076
39077         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
39078         iconv_register_autodetect.
39079
39080 2008-12-07  Jim Meyering  <meyering@redhat.com>
39081
39082         posixtm.c: avoid a warning
39083         * lib/posixtm.c (posixtime): Don't initialize tm0.
39084         It's no longer needed to placate gcc4's -Wuninitialized,
39085         and the attempt to placate would elicit a new warning.
39086
39087         unicodeio.c: mark unused parameters
39088         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
39089         (fallback_failure_callback): Likewise.
39090
39091 2008-12-07  Bruno Haible  <bruno@clisp.org>
39092
39093         * gnulib-tool (func_create_testdir): When building the tests
39094         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
39095         Reported by Simon Josefsson.
39096
39097 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39098
39099         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
39100
39101 2008-12-06  Bruno Haible  <bruno@clisp.org>
39102
39103         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
39104         Suggested by Eric Blake.
39105
39106 2008-12-06  Bruno Haible  <bruno@clisp.org>
39107
39108         Fix a c-stack test failure on MacOS X.
39109         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
39110         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
39111         handler for SIGBUS as well.
39112         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
39113         install a signal handler for SIGBUS as well.
39114         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
39115
39116 2008-12-06  Bruno Haible  <bruno@clisp.org>
39117
39118         Advocacy documentation.
39119         * doc/gnulib-intro.texi (Benefits): New section.
39120         * doc/gnulib.texi: Update.
39121
39122 2008-12-06  Bruno Haible  <bruno@clisp.org>
39123
39124         Document the 'manywarnings' module.
39125         * doc/manywarnings.texi: New file.
39126         * doc/gnulib.texi: Include it.
39127
39128 2008-12-05  Eric Blake  <ebb9@byu.net>
39129
39130         tests: silence some gcc warnings
39131         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
39132         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
39133         type mismatches.
39134
39135 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39136             Bruno Haible  <bruno@clisp.org>
39137
39138         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
39139
39140 2008-11-29  Jim Meyering  <meyering@redhat.com>
39141
39142         unicodeio.c: mark unused parameters
39143         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
39144         (fallback_failure_callback): Likewise.
39145
39146         fts: fix a thinko
39147         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
39148         (set_stat_type): Return S_IF*-valued "type" directly.
39149         Prompted by James Youngman's spotting a related bug.
39150         Confirmed by further testing through find.
39151
39152         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
39153         * lib/fts.c (D_TYPE): Define.
39154         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
39155         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
39156         (s_ifmt_shift_bits): New function.
39157         (set_stat_type): New function.
39158         (fts_build): When not calling fts_stat, call set_stat_type
39159         to propagate dirent.d_type info to fts_read caller.
39160         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
39161         fts_statp->st_mode type information may be valid.
39162
39163 2008-11-28  Simon Josefsson  <simon@josefsson.org>
39164
39165         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
39166         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
39167         <sds@gnu.org>.
39168
39169 2008-11-20  Bruno Haible  <bruno@clisp.org>
39170
39171         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
39172         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
39173         INCLUDE_NEXT.
39174         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
39175         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
39176         * modules/math (Makefile.am): Substitute
39177         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
39178         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39179
39180 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
39181             Bruno Haible  <bruno@clisp.org>
39182
39183         * lib/stdint.in.h: Define all type macros so that their expansion is
39184         a single typedef'ed token. Fixes a compilation failure in Boost which
39185         does "using ::int8_t;".
39186
39187 2008-11-18  Simon Josefsson  <simon@josefsson.org>
39188
39189         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
39190         gl_MANYWARN_ALL_GCC.
39191         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
39192         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
39193         * modules/manywarnings: New file.
39194         * MODULES.html.sh: Mention manywarnings module.
39195
39196 2008-11-18  Bruno Haible  <bruno@clisp.org>
39197
39198         * doc/gnulib-tool.texi (Unit tests): New section.
39199
39200 2008-11-18  Simon Josefsson  <simon@josefsson.org>
39201
39202         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
39203         paths like 'lib/po/foo.po'.
39204
39205 2008-11-17  Simon Josefsson  <simon@josefsson.org>
39206
39207         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
39208         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
39209
39210 2008-11-17  Simon Josefsson  <simon@josefsson.org>
39211
39212         * m4/warnings.m4: Use CPPFLAGS to really check whether the
39213         parameter works.
39214
39215 2008-11-17  Simon Josefsson  <simon@josefsson.org>
39216
39217         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
39218
39219 2008-11-17  Bruce Korb  <bkorb@gnu.org>
39220
39221         * modules/parse-duration-tests: New file.
39222         * tests/test-parse-duration.sh: New file.
39223         * tests/test-parse-duration.c: New file.
39224
39225         New module 'parse-duration'.
39226         * lib/parse-duration.h: New file.
39227         * lib/parse-duration.c: New file.
39228         * modules/parse-duration: New file.
39229
39230 2008-11-17  Bruno Haible  <bruno@clisp.org>
39231
39232         * tests/test-select-out.sh: Comment out the first pipe test.
39233         Reported by Simon Josefsson.
39234
39235 2008-11-17  Bruno Haible  <bruno@clisp.org>
39236
39237         * modules/getaddrinfo (Depends-on): Add servent, hostent.
39238         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
39239         gl_HOSTENT.
39240
39241 2008-11-17  Bruno Haible  <bruno@clisp.org>
39242
39243         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
39244         -lnetwork and -lnet. Needed for Haiku and BeOS.
39245
39246 2008-11-16  Bruno Haible  <bruno@clisp.org>
39247
39248         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
39249
39250 2008-11-16  Bruno Haible  <bruno@clisp.org>
39251
39252         Avoid test failure on Haiku.
39253         * tests/test-fsync.c: Include <errno.h>.
39254         (main): Don't require that fsync (0) fails.
39255
39256 2008-11-15  Bruno Haible  <bruno@clisp.org>
39257
39258         New module 'hostent'.
39259         * modules/hostent: New file.
39260         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
39261
39262 2008-11-15  Bruno Haible  <bruno@clisp.org>
39263
39264         New module 'servent'.
39265         * modules/servent: New file.
39266         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
39267
39268 2008-11-15  Bruno Haible  <bruno@clisp.org>
39269
39270         Avoid generating same test program with two different rules.
39271         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
39272         test-frexp to test-frexp-nolibm.
39273         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
39274         test-frexpl to test-frexpl-nolibm.
39275
39276 2008-11-15  Bruno Haible  <bruno@clisp.org>
39277
39278         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
39279         $(FREXPL_LIBM).
39280
39281 2008-11-15  Bruno Haible  <bruno@clisp.org>
39282
39283         * lib/netdb.in.h: Activate the definitions also when the system's
39284         <netdb.h> has 'struct addrinfo'.
39285         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
39286         EAI_OVERFLOW or AI_NUMERICSERV.
39287         * doc/posix-headers/netdb.texi: Document the problem.
39288
39289 2008-11-15  Bruno Haible  <bruno@clisp.org>
39290
39291         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
39292
39293         Make the 'sched' module work on platforms where <sched.h> exists but
39294         is incomplete (such as Haiku).
39295         * lib/sched.in.h; Include the system's <sched.h> if it exists.
39296         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
39297         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
39298         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
39299         HAVE_STRUCT_SCHED_PARAM.
39300         * modules/sched (Depends-on): Add include_next.
39301         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
39302         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
39303         * doc/posix-headers/sched.texi: Document the issue.
39304
39305 2008-11-13  Jim Meyering  <meyering@redhat.com>
39306
39307         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
39308         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
39309         test would fail due to the difference in the Report bugs to ...
39310         line.  The expected address is empty, "<>", while the actual
39311         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
39312
39313 2008-11-12  Bruno Haible  <bruno@clisp.org>
39314
39315         lstat: don't compile lstat.c on systems lacking lstat
39316         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
39317         which don't have lstat; this is handled by lib/sys_stat.in.h already.
39318         Reported by Daniel P. Berrange via Jim Meyering.
39319
39320 2008-11-12  Jim Meyering  <meyering@redhat.com>
39321
39322         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
39323
39324 2008-11-12  Simon Josefsson  <simon@josefsson.org>
39325
39326         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
39327         instead.
39328
39329 2008-11-12  Bruno Haible  <bruno@clisp.org>
39330
39331         * lib/unicodeio.c: Include unistr.h.
39332         (utf8_wctomb): Remove function.
39333         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
39334
39335 2008-11-12  Simon Josefsson  <simon@josefsson.org>
39336
39337         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
39338         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
39339         <bruno@clisp.org>.
39340         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
39341
39342 2008-11-12  Simon Josefsson  <simon@josefsson.org>
39343
39344         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
39345         * doc/gnulib.texi: Add section for warnings.
39346
39347 2008-11-11  Bruno Haible  <bruno@clisp.org>
39348
39349         * lib/sockets.h: Add a comment.
39350
39351 2008-11-11  Karl Berry  <karl@gnu.org>
39352
39353         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
39354
39355 2008-11-11  Eric Blake  <ebb9@byu.net>
39356
39357         fdl.texi: avoid git symlinks
39358         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
39359
39360 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
39361
39362         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
39363
39364 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
39365
39366         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
39367         (gl_WARN_ADD): Substitute $2 if literal.
39368
39369 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
39370
39371         * m4/warning.m4: Remove.
39372
39373 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
39374
39375         * m4/warnings.m4: Almost complete rewrite. :-)
39376
39377 2008-11-10  Simon Josefsson  <simon@josefsson.org>
39378
39379         * modules/warnings: New module.
39380         * m4/warnings.m4: New file.
39381         * MODULES.html.sh: Mention warnings module.
39382         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
39383         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39384
39385 2008-11-10  Eric Blake  <ebb9@byu.net>
39386
39387         fdl.texi: make a symlink to the latest version
39388         * doc/standards.texi: Revert today's earlier change.
39389         * doc/fdl-1.2.texi: Rename from old fdl.texi...
39390         * doc/fdl.texi: ...and replace this with a symlink to the newer
39391         fdl-1.3.texi.
39392
39393 2008-11-10  Bruno Haible  <bruno@clisp.org>
39394
39395         * tests/test-select-fd.c (main): Accept the result file name as fourth
39396         argument.
39397         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
39398         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
39399
39400 2008-11-10  Bruno Haible  <bruno@clisp.org>
39401
39402         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
39403         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
39404         as autoconf-substituted macros.
39405         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
39406         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
39407         gl_NETDB_H_DEFAULTS. Set these variables.
39408         * modules/netdb (Makefile.am): Substitute these variables.
39409
39410 2008-11-10  Eric Blake  <ebb9@byu.net>
39411
39412         standards.texi: include correct file for FDL 1.3
39413         * doc/standards.texi (GNU Free Documentation License): Change
39414         include file to pull in FDL 1.3, not 1.2.
39415
39416         fdl.texi: revert accidental change to license
39417         * doc/fdl.texi: This is FDL 1.2, not 1.3.
39418
39419 2008-11-10  Bruno Haible  <bruno@clisp.org>
39420
39421         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
39422         cross-compiling guesses also when the native compile gives no result.
39423
39424 2008-11-10  Bruno Haible  <bruno@clisp.org>
39425
39426         * lib/spawni.c (__spawni): Force variable into the stack.
39427
39428 2008-11-10  Bruno Haible  <bruno@clisp.org>
39429
39430         Add support for Haiku.
39431         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
39432         glibc and BeOS, but also on Haiku.
39433         * lib/fpurge.c (fpurge): Likewise.
39434         * lib/freadable.c (freadable): Likewise.
39435         * lib/freadahead.c (freadahead): Likewise.
39436         * lib/freading.c (freading): Likewise.
39437         * lib/freadptr.c (freadptr): Likewise.
39438         * lib/freadseek.c (freadptrinc): Likewise.
39439         * lib/fseeko.c (rpl_fseeko): Likewise.
39440         * lib/fseterr.c (fseterr): Likewise.
39441         * lib/fwritable.c (fwritable): Likewise.
39442         * lib/fwriting.c (fwriting): Likewise.
39443         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
39444
39445 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
39446
39447         * lib/config.charset: Treat Haiku like BeOS.
39448
39449 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
39450
39451         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
39452         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
39453
39454 2008-11-08  Bruno Haible  <bruno@clisp.org>
39455
39456         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
39457         AC_CACHE_CHECK.
39458
39459 2008-11-08  Bruno Haible  <bruno@clisp.org>
39460
39461         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
39462
39463 2008-11-08  Bruno Haible  <bruno@clisp.org>
39464
39465         * tests/test-select-fd.c: New file.
39466         * tests/test-select-in.sh: New file.
39467         * tests/test-select-out.sh: New file.
39468         * tests/test-select-stdin.c: New file.
39469         * modules/select-tests (Files): Add the new files.
39470         (Depends-on): Add gettimeofday.
39471         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
39472         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
39473         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
39474
39475 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
39476             Bruno Haible  <bruno@clisp.org>
39477
39478         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
39479
39480 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
39481
39482         * build-aux/pmccabe2html: Added support for C++ source files.
39483
39484 2008-11-05  Ben Pfaff  <blp@gnu.org>
39485
39486         Fix lib/close.c build on Windows.
39487         * modules/close (Files): Add lib/w32sock.h.
39488
39489 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
39490
39491         Accept Bison's NEWS format.
39492         * build-aux/announce-gen (print_news_deltas): Tweak
39493         $re_prefix.
39494
39495 2008-11-04  Bruno Haible  <bruno@clisp.org>
39496
39497         * modules/random_r (Maintainer): Add glibc.
39498
39499 2008-11-04  Simon Josefsson  <simon@josefsson.org>
39500
39501         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
39502         by karl@freefriends.org (Karl Berry).
39503         * doc/alloca.texi: Likewise.
39504         * doc/c-ctype.texi: Likewise.
39505         * doc/c-strcase.texi: Likewise.
39506         * doc/c-strcaseeq.texi: Likewise.
39507         * doc/c-strcasestr.texi: Likewise.
39508         * doc/c-strstr.texi: Likewise.
39509         * doc/c-strtod.texi: Likewise.
39510         * doc/c-strtold.texi: Likewise.
39511         * doc/ctime.texi: Likewise.
39512         * doc/error.texi: Likewise.
39513         * doc/fdl.texi: Likewise.
39514         * doc/gcd.texi: Likewise.
39515         * doc/getdate.texi: Likewise.
39516         * doc/gnulib-intro.texi: Likewise.
39517         * doc/gnulib-tool.texi: Likewise.
39518         * doc/gnulib.texi: Likewise.
39519         * doc/inet_ntoa.texi: Likewise.
39520         * doc/maintain.texi: Likewise.
39521         * doc/make-stds.texi: Likewise.
39522         * doc/quote.texi: Likewise.
39523         * doc/regexprops-generic.texi: Likewise.
39524         * doc/standards.texi: Likewise.
39525         * doc/verify.texi: Likewise.
39526         * doc/visibility.texi: Likewise.
39527         * doc/gnulib.texi (GNU Free Documentation License): Include
39528         fdl-1.3.texi instead of fdl.texi.
39529
39530 2008-11-04  Simon Josefsson  <simon@josefsson.org>
39531
39532         * doc/fdl-1.3.texi: New file, from
39533         <http://www.gnu.org/licenses/fdl-1.3.texi>.
39534         * modules/fdl-1.3: Add.
39535         * MODULES.html.sh: Add fdl-1.3.
39536
39537 2008-11-03  Bruno Haible  <bruno@clisp.org>
39538
39539         Make determination of absolute name of header file work with AIX xlc.
39540         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
39541         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
39542         preprocessing.
39543         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39544         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
39545
39546 2008-11-03  Simon Josefsson  <simon@josefsson.org>
39547
39548         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
39549         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
39550         <ludo@gnu.org>.
39551
39552 2008-11-02  Bruno Haible  <bruno@clisp.org>
39553
39554         Mark 'strpbrk' obsolete.
39555         * modules/strpbrk (Status, Notice): New sections.
39556         * modules/strtok_r (Depends-on): Add strpbrk.
39557
39558 2008-11-02  Bruno Haible  <bruno@clisp.org>
39559
39560         Mark 'strdup' obsolete.
39561         * modules/strdup (Status, Notice): New sections.
39562         * modules/findprog (Depends-on): Add strdup.
39563         * modules/getaddrinfo (Depends-on): Likewise.
39564         * modules/localename (Depends-on): Likewise.
39565         * modules/relocatable-lib (Depends-on): Likewise.
39566         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
39567         * modules/relocatable-prog (Depends-on): Likewise.
39568         * modules/trim (Depends-on): Likewise.
39569         * modules/unictype/gen-ctype (Depends-on): Likewise.
39570         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
39571
39572 2008-11-02  Bruno Haible  <bruno@clisp.org>
39573
39574         Mark 'strcspn' obsolete.
39575         * modules/strcspn (Status, Notice): New sections.
39576
39577 2008-11-02  Bruno Haible  <bruno@clisp.org>
39578
39579         Mark 'rmdir' obsolete.
39580         * modules/rmdir (Status, Notice): New sections.
39581         * modules/clean-temp (Depends-on): Add rmdir.
39582         * modules/openat (Depends-on): Likewise.
39583
39584 2008-11-02  Bruno Haible  <bruno@clisp.org>
39585
39586         Mark 'raise' obsolete.
39587         * modules/raise (Status, Notice): New sections.
39588         (Include): Specify <signal.h>.
39589         * modules/stdio (Depends-on): Add raise.
39590         * modules/write (Depends-on): Likewise.
39591
39592 2008-11-02  Bruno Haible  <bruno@clisp.org>
39593
39594         Mark 'memset' obsolete.
39595         * modules/memset (Status, Notice): New sections.
39596
39597 2008-11-02  Bruno Haible  <bruno@clisp.org>
39598
39599         Mark 'memmove' obsolete.
39600         * modules/memmove (Status, Notice): New sections.
39601         * modules/argp (Depends-on): Add memmove.
39602         * modules/argz (Depends-on): Likewise.
39603         * modules/canonicalize (Depends-on): Likewise.
39604         * modules/canonicalize-lgpl (Depends-on): Likewise.
39605         * modules/fts (Depends-on): Likewise.
39606         * modules/getcwd (Depends-on): Likewise.
39607         * modules/human (Depends-on): Likewise.
39608         * modules/regex (Depends-on): Likewise.
39609         * modules/striconveh (Depends-on): Likewise.
39610         * modules/trim (Depends-on): Likewise.
39611         * modules/unistr/u8-move (Depends-on): Likewise.
39612         * modules/unistr/u16-move (Depends-on): Likewise.
39613         * modules/unistr/u32-move (Depends-on): Likewise.
39614
39615 2008-11-02  Bruno Haible  <bruno@clisp.org>
39616
39617         Mark 'memcpy' obsolete.
39618         * modules/memcpy (Status, Notice): New sections.
39619
39620 2008-11-02  Bruno Haible  <bruno@clisp.org>
39621
39622         Mark 'memcmp' obsolete.
39623         * modules/memcmp (Status, Notice): New sections.
39624         * modules/argmatch (Depends-on): Add memchr.
39625         * modules/backupfile (Depends-on): Likewise.
39626         * modules/c-strcasestr (Depends-on): Likewise.
39627         * modules/crypto/des (Depends-on): Likewise.
39628         * modules/csharpcomp (Depends-on): Likewise.
39629         * modules/fnmatch (Depends-on): Likewise.
39630         * modules/git-merge-changelog (Depends-on): Likewise.
39631         * modules/isnand (Depends-on): Likewise.
39632         * modules/isnand-nolibm (Depends-on): Likewise.
39633         * modules/isnanf (Depends-on): Likewise.
39634         * modules/isnanf-nolibm (Depends-on): Likewise.
39635         * modules/isnanl (Depends-on): Likewise.
39636         * modules/isnanl-nolibm (Depends-on): Likewise.
39637         * modules/mbchar (Depends-on): Likewise.
39638         * modules/memcoll (Depends-on): Likewise.
39639         * modules/quotearg (Depends-on): Likewise.
39640         * modules/regex (Depends-on): Likewise.
39641         * modules/relocatable-prog (Depends-on): Likewise.
39642         * modules/same (Depends-on): Likewise.
39643         * modules/signbit (Depends-on): Likewise.
39644         * modules/strcasestr-simple (Depends-on): Likewise.
39645         * modules/unictype/gen-ctype (Depends-on): Likewise.
39646         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
39647         * modules/uniname/uniname (Depends-on): Likewise.
39648         * modules/unistr/u8-cmp (Depends-on): Likewise.
39649
39650 2008-11-02  Bruno Haible  <bruno@clisp.org>
39651
39652         Mark 'memchr' obsolete.
39653         * modules/memchr (Status, Notice): New sections.
39654         * modules/argp (Depends-on): Add memchr.
39655         * modules/base64 (Depends-on): Likewise.
39656         * modules/c-strcasestr (Depends-on): Likewise.
39657         * modules/chdir-long (Depends-on): Likewise.
39658         * modules/fnmatch (Depends-on): Likewise.
39659         * modules/getsubopt (Depends-on): Likewise.
39660         * modules/git-merge-changelog (Depends-on): Likewise.
39661         * modules/glob (Depends-on): Likewise.
39662         * modules/strcasestr-simple (Depends-on): Likewise.
39663         * modules/strnlen (Depends-on): Likewise.
39664
39665 2008-11-02  Bruno Haible  <bruno@clisp.org>
39666
39667         Mark 'atexit' obsolete.
39668         * modules/atexit (Status, Notice): New sections.
39669         * modules/chdir-long (Depends-on): Add atexit.
39670         * modules/wait-process (Depends-on): Likewise.
39671
39672 2008-11-02  Bruno Haible  <bruno@clisp.org>
39673
39674         * gnulib-tool: New option --with-obsolete.
39675         (func_usage): Document it.
39676         (func_modules_transitive_closure): Drop obsolete dependencies if
39677         incobsolete is not true.
39678         (func_import): Read and save the incobsolete variable to the cache.
39679
39680 2008-11-02  Bruno Haible  <bruno@clisp.org>
39681
39682         * modules/TEMPLATE-EXTENDED: New field 'Status'.
39683         * gnulib-tool: New option --extract-status.
39684         (func_usage): Document it.
39685         (sed_extract_prog): Recognize it.
39686         (func_get_status): New function.
39687
39688 2008-10-30  Simon Josefsson  <simon@josefsson.org>
39689
39690         * modules/sockets (License): Change from LGPL to LGPLv2+.
39691
39692 2008-10-28  Simon Josefsson  <simon@josefsson.org>
39693
39694         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
39695
39696 2008-10-28  Simon Josefsson  <simon@josefsson.org>
39697
39698         * MODULES.html.sh (Support for systems lacking POSIX:2001):
39699         Mention times and sys_times.
39700         * modules/sys_times, modules/sys_times-tests: New modules.
39701         * modules/times, modules/times-tests: Likewise
39702         * m4/sys_times_h.m4: New file.
39703         * lib/sys_times.in.h: Likewise
39704         * lib/times.c: Likewise.
39705         * tests/test-sys_times.c: Likewise.
39706         * tests/test-times.c: Likewise.
39707         * doc/posix-headers/sys_times.texi: Update.
39708         * doc/posix-functions/times.texi: Update.
39709
39710 2008-10-28  Jim Meyering  <meyering@redhat.com>
39711
39712         * modules/tempname (Depends-on): Add lstat.
39713
39714         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
39715
39716 2008-10-28  Simon Josefsson  <simon@josefsson.org>
39717
39718         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
39719         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
39720         using idiom used elsewhere in gnulib.
39721
39722 2008-10-27  Jim Meyering  <meyering@redhat.com>
39723
39724         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
39725
39726 2008-10-27  Simon Josefsson  <simon@josefsson.org>
39727
39728         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
39729         TESTS_ENVIRONMENT, for shell scripts that needs to call built
39730         programs.
39731         * tests/test-argp-2.sh: Use $EXEEXT when needed.
39732
39733 2008-10-27  Simon Josefsson  <simon@josefsson.org>
39734
39735         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
39736
39737 2008-10-27  Bruno Haible  <bruno@clisp.org>
39738
39739         * tests/test-lstat.c: Include <stdio.h>.
39740
39741 2008-10-27  Simon Josefsson  <simon@josefsson.org>
39742
39743         * modules/lstat-tests: New module.
39744         * tests/test-lstat.c: New file.
39745
39746 2008-10-26  Jim Meyering  <meyering@redhat.com>
39747
39748         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
39749
39750 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39751             Bruno Haible  <bruno@clisp.org>
39752
39753         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
39754         * modules/configmake (Include): Add a note that the include must come
39755         after all system headers.
39756         * lib/javaversion.c: Include configmake.h after all other includes.
39757
39758 2008-10-26  Bruno Haible  <bruno@clisp.org>
39759
39760         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
39761         HAVE_STRUCT_RANDOM_DATA to 1.
39762         (gl_STDLIB_H): Simplify.
39763
39764 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39765
39766         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
39767         substitute HAVE_STRUCT_RANDOM_DATA.
39768         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
39769         random_data.
39770         * modules/stdlib (Makefile.am): Substitute
39771         HAVE_STRUCT_RANDOM_DATA.
39772
39773 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39774
39775         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
39776         * doc/gnulib-intro.texi (Copyright): Likewise.
39777
39778 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39779
39780         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
39781         findings.
39782
39783 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
39784             Bruno Haible  <bruno@clisp.org>
39785
39786         * lib/unistd.in.h: Include <winsock2.h>.
39787         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
39788         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
39789         Provide dummy declarations.
39790         (gethostname): Override.
39791         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
39792         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
39793         gl_PREREQ_SYS_H_WINSOCK2.
39794         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
39795         * doc/posix-functions/gethostname.texi: More details.
39796
39797 2008-10-25  Bruno Haible  <bruno@clisp.org>
39798
39799         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
39800         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
39801         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
39802
39803         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
39804         here ...
39805         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
39806         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
39807         gl_UNISTD_H_DEFAULTS.
39808
39809 2008-10-25  Eric Blake  <ebb9@byu.net>
39810
39811         signbit: avoid spurious compiler failure
39812         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
39813         declarations inside function.
39814
39815 2008-10-24  Simon Josefsson  <simon@josefsson.org>
39816             Bruno Haible  <bruno@clisp.org>
39817
39818         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
39819         * modules/random_r (Depends-on): Add stdint.
39820
39821 2008-10-24  Bruno Haible  <bruno@clisp.org>
39822
39823         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
39824         Eggert.
39825         * modules/strerror (License): Likewise.
39826
39827 2008-10-24  Jim Meyering  <meyering@redhat.com>
39828
39829         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
39830         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
39831
39832 2008-10-24  Eric Blake  <ebb9@byu.net>
39833
39834         getgroups: fix compilation when getgroups is available
39835         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
39836         but with <config.h> override of getgroups disabled.
39837
39838 2008-10-24  Simon Josefsson  <simon@josefsson.org>
39839
39840         * doc/gnulib.texi (Header files): Add note about C++ problems.
39841         Explained by Bruno Haible <bruno@clisp.org>.
39842
39843 2008-10-23  Bruno Haible  <bruno@clisp.org>
39844
39845         Define a dummy SA_NODEFER macro on Interix.
39846         * lib/signal.in.h (SA_NODEFER): Define fallback.
39847         Reported by Aleksey Cheusov <cheusov@tut.by> via
39848         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
39849
39850 2008-10-23  Bruno Haible  <bruno@clisp.org>
39851
39852         * modules/freadahead (License): Change to LGPLv2+.
39853         Suggested by Simon Josefsson.
39854
39855 2008-10-23  Jim Meyering  <meyering@redhat.com>
39856
39857         random_r: new module
39858         * modules/random_r: New file.
39859         * m4/random_r.m4: New file.
39860         * lib/random_r.c: New file, from glibc.
39861         * modules/random_r-tests: New file.
39862         * tests/test-random_r.c: New file.
39863         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
39864          Declare.
39865         (RAND_MAX): Define.
39866         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
39867         * modules/stdlib: Substitute them, too.
39868         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
39869         * doc/glibc-functions/initstate_r.texi: Mention the new module.
39870         * doc/glibc-functions/random_r.texi: Likewise.
39871         * doc/glibc-functions/setstate_r.texi: Likewise.
39872         * doc/glibc-functions/srandom_r.texi: Likewise.
39873         * config/srclist.txt: Mention it.
39874
39875 2008-10-23  David Lutterkort  <lutter@redhat.com>
39876
39877         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
39878         link requirement
39879
39880 2008-10-23  Jim Meyering  <meyering@redhat.com>
39881
39882         selinux-h: mark parameters of stub functions as intentionally unused
39883         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
39884         * lib/se-context.in.h: Likewise.
39885
39886 2008-10-22  Simon Josefsson  <simon@josefsson.org>
39887
39888         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
39889
39890 2008-10-22  Simon Josefsson  <simon@josefsson.org>
39891
39892         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
39893
39894 2008-10-22  Eric Blake  <ebb9@byu.net>
39895
39896         glthread/thread: avoid compiler warning
39897         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
39898         Add unreachable abort to silence compiler.
39899
39900 2008-10-22  Eric Blake  <ebb9@byu.net>
39901
39902         netdb: also supply struct addrinfo for cygwin 1.5.x
39903         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
39904         older cygwin.
39905         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
39906         cygwin.
39907         * doc/posix-headers/netdb.texi (netdb.h): Document this.
39908
39909 2008-10-22  Bruno Haible  <bruno@clisp.org>
39910
39911         * users.txt: Update entry about pspp.
39912
39913 2008-10-21  Bruno Haible  <bruno@clisp.org>
39914
39915         Simplification.
39916         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
39917         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
39918
39919         Simplification.
39920         * lib/ioctl.c (ioctl): Don't undefine.
39921         * lib/socket.c (socket): Don't undefine.
39922
39923         Remove unused module indicator macros.
39924         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
39925         GNULIB_$1 as a C macro.
39926
39927         * doc/posix-functions/close.texi: Undo last change.
39928         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
39929         Windows platforms.
39930
39931 2008-10-21  Bruno Haible  <bruno@clisp.org>
39932
39933         Add gethostname() declaration to <unistd.h>.
39934         * lib/unistd.in.h (gethostname): New declaration.
39935         * lib/gethostname.c: Include <unistd.h>.
39936         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
39937         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
39938         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
39939         and HAVE_GETHOSTNAME.
39940         * modules/gethostname (Depends-on): Add unistd.
39941         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39942         (Include): Specify <unistd.h>.
39943         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
39944         HAVE_GETHOSTNAME.
39945         * tests/test-gethostname.c: Include <unistd.h> first.
39946
39947 2008-10-21  Bruno Haible  <bruno@clisp.org>
39948
39949         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
39950         * modules/select-tests (Depends-on): Likewise.
39951         Reported by Simon Josefsson.
39952
39953 2008-10-21  Simon Josefsson  <simon@josefsson.org>
39954
39955         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
39956         * lib/accept.c: New file, based on winsock.c.
39957         * lib/bind.c: New file, based on winsock.c.
39958         * lib/connect.c: New file, based on winsock.c.
39959         * lib/getpeername.c: New file, based on winsock.c.
39960         * lib/getsockname.c: New file, based on winsock.c.
39961         * lib/getsockopt.c: New file, based on winsock.c.
39962         * lib/ioctl.c: New file, based on winsock.c.
39963         * lib/listen.c: New file, based on winsock.c.
39964         * lib/recv.c: New file, based on winsock.c.
39965         * lib/recvfrom.c: New file, based on winsock.c.
39966         * lib/send.c: New file, based on winsock.c.
39967         * lib/sendto.c: New file, based on winsock.c.
39968         * lib/setsockopt.c: New file, based on winsock.c.
39969         * lib/shutdown.c: New file, based on winsock.c.
39970         * lib/socket.c: New file, based on winsock.c.
39971         * lib/w32sock.h: New file, based on winsock.c.
39972         * lib/winsock.c: Remove file.
39973         * modules/accept: Likewise.
39974         * modules/bind: Likewise.
39975         * modules/connect: Likewise.
39976         * modules/getpeername: Likewise.
39977         * modules/getsockname: Likewise.
39978         * modules/getsockopt: Likewise.
39979         * modules/ioctl: Likewise.
39980         * modules/listen: Likewise.
39981         * modules/recv: Likewise.
39982         * modules/recvfrom: Likewise.
39983         * modules/send: Likewise.
39984         * modules/sendto: Likewise.
39985         * modules/setsockopt: Likewise.
39986         * modules/shutdown: Likewise.
39987         * modules/socket: Use socket.c instead of winsock.c.
39988         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
39989         * doc/posix-functions/accept.texi: Doc fix.
39990         * doc/posix-functions/bind.texi: Doc fix.
39991         * doc/posix-functions/close.texi: Doc fix.
39992         * doc/posix-functions/connect.texi: Doc fix.
39993         * doc/posix-functions/getpeername.texi: Doc fix.
39994         * doc/posix-functions/getsockname.texi: Doc fix.
39995         * doc/posix-functions/getsockopt.texi: Doc fix.
39996         * doc/posix-functions/ioctl.texi: Doc fix.
39997         * doc/posix-functions/listen.texi: Doc fix.
39998         * doc/posix-functions/recv.texi: Doc fix.
39999         * doc/posix-functions/recvfrom.texi: Doc fix.
40000         * doc/posix-functions/send.texi: Doc fix.
40001         * doc/posix-functions/sendto.texi: Doc fix.
40002         * doc/posix-functions/setsockopt.texi: Doc fix.
40003         * doc/posix-functions/shutdown.texi: Doc fix.
40004         * doc/posix-functions/socket.texi: Doc fix.
40005
40006 2008-10-20  Bruno Haible  <bruno@clisp.org>
40007
40008         Take into account the role of SIGABRT_COMPAT on Windows 2008.
40009         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
40010         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
40011         as an alias for SIGABRT.
40012         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
40013         (sigaction): Map it to SIGABRT.
40014         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
40015
40016 2008-10-20  Bruno Haible  <bruno@clisp.org>
40017
40018         * lib/fts.c: Don't include lstat.h.
40019         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
40020
40021         Move the lstat() declaration to <sys/stat.h>.
40022         * lib/lstat.h: Remove file.
40023         * lib/sys_stat.in.h: Add special invocation convention.
40024         (lstat): New declaration.
40025         * lib/lstat.c (orig_lstat): New function.
40026         (rpl_lstat): Use orig_lstat instead of lstat.
40027         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
40028         AC_C_INLINE. Set REPLACE_LSTAT.
40029         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
40030         and REPLACE_LSTAT.
40031         * modules/lstat (Files): Remove lib/lstat.h.
40032         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
40033         (Include): Specify <sys/stat.h> instead of lstat.h.
40034         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
40035         REPLACE_LSTAT.
40036         * NEWS: Mention the change.
40037
40038 2008-10-20  Bruno Haible  <bruno@clisp.org>
40039
40040         * modules/posix_spawn-tests: New file.
40041         * tests/test-posix_spawn3.c: New file.
40042
40043 2008-10-20  Bruno Haible  <bruno@clisp.org>
40044
40045         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
40046         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
40047         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
40048         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
40049         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
40050
40051 2008-10-20  Bruno Haible  <bruno@clisp.org>
40052
40053         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
40054         of posix_spawn on AIX 5.3.
40055
40056 2008-10-20  Bruno Haible  <bruno@clisp.org>
40057
40058         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
40059
40060 2008-10-20  Bruno Haible  <bruno@clisp.org>
40061
40062         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
40063         of AC_LANG_PROGRAM.
40064
40065 2008-10-20  Simon Josefsson  <simon@josefsson.org>
40066
40067         * lib/netdb.in.h: Don't define GNU specific constants until they
40068         are supported or needed.  Reported by Bruno Haible
40069         <bruno@clisp.org>.
40070
40071 2008-10-20  Simon Josefsson  <simon@josefsson.org>
40072
40073         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
40074
40075 2008-10-20  Simon Josefsson  <simon@josefsson.org>
40076
40077         * lib/getaddrinfo.h: Remove file.
40078         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
40079         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
40080         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
40081         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
40082         * modules/netdb: Substitute GNULIB_GETADDRINFO.
40083         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
40084         * tests/test-getaddrinfo.c: Likewise.
40085         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
40086         * NEWS: Mention change.
40087
40088 2008-10-19  Bruno Haible  <bruno@clisp.org>
40089
40090         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
40091
40092 2008-10-19  Bruno Haible  <bruno@clisp.org>
40093
40094         * lib/wait-process.c: Include simply <sys/wait.h>.
40095         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
40096         WIFSTOPPED): Remove fallback definitions.
40097         * modules/wait-process (Depends-on): Add sys_wait.
40098
40099         New module 'sys_wait'.
40100         * modules/sys_wait: New file.
40101         * lib/sys_wait.in.h: New file, partially copied from
40102         lib/wait-process.c.
40103         * m4/sys_wait_h.m4: New file.
40104         * doc/posix-headers/sys_wait.texi: Mention the new module.
40105
40106 2008-10-19  Bruno Haible  <bruno@clisp.org>
40107
40108         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
40109
40110 2008-10-19  Bruno Haible  <bruno@clisp.org>
40111
40112         Assume that waitpid() fills an 'int' status, not a 'union wait'.
40113         * lib/wait-process.c (WAIT_T): Remove type.
40114         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
40115         (wait_subprocess): Update.
40116
40117 2008-10-19  Bruno Haible  <bruno@clisp.org>
40118
40119         New module 'atoll'.
40120         * modules/atoll: New file.
40121         * lib/stdlib.in.h (atoll): New declaration.
40122         * lib/atoll.c: New file, from glibc with modifications.
40123         * m4/atoll.m4: New file.
40124         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
40125         HAVE_ATOLL.
40126         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
40127         * doc/posix-functions/atoll.texi: Mention the new module.
40128
40129 2008-10-19  Bruno Haible  <bruno@clisp.org>
40130
40131         Add strtoull() declaration to <stdlib.h>.
40132         * lib/stdlib.in.h (strtoull): New declaration.
40133         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
40134         Set HAVE_STRTOULL.
40135         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
40136         HAVE_STRTOULL.
40137         * modules/strtoull (Depends-on): Add stdlib.
40138         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40139         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
40140         HAVE_STRTOULL.
40141
40142 2008-10-19  Bruno Haible  <bruno@clisp.org>
40143
40144         Add strtoll() declaration to <stdlib.h>.
40145         * lib/stdlib.in.h (strtoll): New declaration.
40146         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
40147         Set HAVE_STRTOLL.
40148         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
40149         HAVE_STRTOLL.
40150         * modules/strtoll (Depends-on): Add stdlib.
40151         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40152         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
40153
40154 2008-10-19  Bruno Haible  <bruno@clisp.org>
40155
40156         * modules/bcopy (Depends-on): Add strings.
40157         (Include): Specify <strings.h>.
40158
40159 2008-10-19  Bruno Haible  <bruno@clisp.org>
40160
40161         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
40162
40163 2008-10-19  Bruno Haible  <bruno@clisp.org>
40164
40165         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
40166         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
40167         mingw.
40168
40169 2008-10-19  Bruno Haible  <bruno@clisp.org>
40170
40171         * lib/atanl.c: Don't include isnanl.h.
40172         * lib/cosl.c: Likewise.
40173         * lib/ldexpl.c: Likewise.
40174         * lib/logl.c: Likewise.
40175         * lib/sinl.c: Likewise.
40176         * lib/sqrtl.c: Likewise.
40177         * lib/tanl.c: Likewise.
40178
40179         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
40180         * lib/isnanf.h: Remove file.
40181         * lib/isnand.h: Remove file.
40182         * lib/isnanl.h: Remove file.
40183         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
40184         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
40185         macros.
40186         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
40187         HAVE_ISNANF, don't define it as a C macro.
40188         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
40189         HAVE_ISNAND, don't define it as a C macro.
40190         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
40191         HAVE_ISNANL, don't define it as a C macro.
40192         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
40193         HAVE_ISNAN[FDL].
40194         * modules/isnanf (Files): Remove lib/isnanf.h.
40195         (Depends-on): Add math.
40196         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
40197         (Include): Specify <math.h> instead of isnanf.h.
40198         * modules/isnand (Files): Remove lib/isnand.h.
40199         (Depends-on): Add math.
40200         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
40201         (Include): Specify <math.h> instead of isnand.h.
40202         * modules/isnanl (Files): Remove lib/isnanl.h.
40203         (Depends-on): Add math.
40204         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
40205         (Include): Specify <math.h> instead of isnanl.h.
40206         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
40207         HAVE_ISNAN[FDL].
40208         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
40209         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
40210         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
40211         * NEWS: Mention the change.
40212
40213 2008-10-18  Bruno Haible  <bruno@clisp.org>
40214
40215         Add getusershell(), setusershell(), endusershell() declarations to
40216         <unistd.h>.
40217         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
40218         declarations.
40219         * lib/getusershell.c: Include unistd.h.
40220         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
40221         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
40222         HAVE_GETUSERSHELL.
40223         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
40224         and HAVE_GETUSERSHELL.
40225         * modules/getusershell (Depends-on): Add unistd, extensions.
40226         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40227         (Include): Specify <unistd.h>.
40228         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
40229         HAVE_GETUSERSHELL.
40230
40231 2008-10-18  Bruno Haible  <bruno@clisp.org>
40232
40233         Add a getloadavg() declaration to <stdlib.h>.
40234         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
40235         getloadavg declaration.
40236         (getloadavg): New declaration.
40237         * lib/getloadavg.c: Include <stdlib.h> first.
40238         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
40239         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
40240         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
40241         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
40242         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
40243         * modules/getloadavg (Depends-on): Add stdlib, extensions.
40244         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40245         (Include): Specify <stdlib.h>.
40246         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
40247         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
40248
40249 2008-10-18  Bruno Haible  <bruno@clisp.org>
40250
40251         * lib/dirchownmod.c: Don't include lchmod.h.
40252
40253         Move the lchmod() declaration to <sys/stat.h>.
40254         * lib/lchmod.h: Remove file.
40255         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
40256         (lchmod): New declaration, moved here from lib/lchown.h.
40257         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
40258         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
40259         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
40260         and HAVE_LCHMOD.
40261         * modules/lchmod (Files): Remove lib/lchmod.h.
40262         (Depends-on): Add sys_stat, extensions.
40263         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
40264         (Include): Specify <sys/stat.h> instead of lchmod.h.
40265         * modules/sys_stat (Depends-on): Add link-warning.
40266         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
40267         definition of GL_LINK_WARNING.
40268         * NEWS: Mention the change.
40269
40270 2008-10-18  Bruno Haible  <bruno@clisp.org>
40271
40272         * lib/fchdir.c: Don't include dirfd.h.
40273         * lib/fts.c: Likewise.
40274         * lib/getcwd.c: Likewise.
40275         * lib/glob.c: Likewise.
40276
40277         Move the dirfd() declaration to <dirent.h>.
40278         * lib/dirfd.h: Remove file.
40279         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
40280         (dirfd): New declaration.
40281         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
40282         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
40283         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
40284         HAVE_DECL_DIRFD.
40285         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
40286         HAVE_DECL_DIRFD.
40287         * modules/dirfd (Files): Remove lib/dirfd.h.
40288         (Depends-on): Add dirent, extensions.
40289         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
40290         (Include): Specify <dirent.h> instead of dirfd.h.
40291         * modules/dirent (Depends-on): Add link-warning.
40292         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
40293         definition of GL_LINK_WARNING.
40294         * NEWS: Mention the change.
40295
40296 2008-10-18  Bruno Haible  <bruno@clisp.org>
40297
40298         Move the euidaccess() declaration to <unistd.h>.
40299         * lib/euidaccess.h: Remove file.
40300         * lib/unistd.in.h (euidaccess): New declaration.
40301         * lib/euidaccess.c: Don't include euidaccess.h.
40302         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
40303         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
40304         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
40305         and HAVE_EUIDACCESS.
40306         * modules/euidaccess (Files): Remove lib/euidaccess.h.
40307         (Depends-on): Add unistd.
40308         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40309         (Include): Specify <unistd.h> instead of euidaccess.h.
40310         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
40311         HAVE_EUIDACCESS.
40312         * NEWS: Mention the change.
40313
40314 2008-10-18  Bruno Haible  <bruno@clisp.org>
40315
40316         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
40317
40318         Move the getdomainname() declaration to <unistd.h>.
40319         * lib/getdomainname.h: Remove file.
40320         * lib/unistd.in.h (getdomainname): New declaration.
40321         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
40322         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
40323         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
40324         HAVE_GETDOMAINNAME.
40325         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40326         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
40327         * modules/getdomainname (Files): Remove lib/getdomainname.h.
40328         (Depends-on): Add unistd, extensions.
40329         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40330         (Includes): Specify <unistd.h> instead of getdomainname.h.
40331         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
40332         HAVE_GETDOMAINNAME.
40333         * NEWS: Mention the change.
40334
40335 2008-10-18  Bruno Haible  <bruno@clisp.org>
40336
40337         * modules/dirent: New file.
40338         * m4/dirent_h.m4: New file.
40339         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
40340         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
40341         * modules/fchdir (Files): Remove lib/dirent.in.h.
40342         (Depends-on): Add dirent.
40343         (Makefile.am): Move rules to modules/dirent.
40344         * doc/posix-headers/dirent.texi: Mention the new module.
40345
40346 2008-10-18  Bruno Haible  <bruno@clisp.org>
40347
40348         Avoid -Wunused-parameter warnings in public gnulib header files.
40349         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
40350         macro.
40351         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
40352
40353 2008-10-18  Bruno Haible  <bruno@clisp.org>
40354
40355         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
40356         * doc/glibc-functions/error.texi: Mention the module 'error'.
40357         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
40358         * doc/glibc-functions/getdomainname.texi: Mention the module
40359         'getdomainname'.
40360         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
40361         * doc/glibc-functions/getpagesize.texi: Mention the module
40362         'getpagesize'.
40363         * doc/glibc-functions/getusershell.texi: Mention the module
40364         'getusershell'.
40365         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
40366         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
40367         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
40368         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
40369         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
40370         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
40371         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
40372         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
40373         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
40374         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
40375         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
40376         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
40377         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
40378         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
40379
40380 2008-10-17  Bruno Haible  <bruno@clisp.org>
40381
40382         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
40383         HP-UX and IRIX, use -0.0L.
40384         * tests/test-ceill.c (minus_zero): Likewise.
40385         * tests/test-floorl.c (minus_zero): Likewise.
40386         * tests/test-frexpl.c (minus_zero): Likewise.
40387         * tests/test-isnan.c (minus_zerol): Likewise.
40388         * tests/test-isnanl.h (minus_zero): Likewise.
40389         * tests/test-ldexpl.c (minus_zero): Likewise.
40390         * tests/test-roundl.c (minus_zero): Likewise.
40391         * tests/test-signbit.c (minus_zerol): Likewise.
40392         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
40393         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
40394         * tests/test-truncl.c (minus_zero): Likewise.
40395         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
40396         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
40397         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
40398         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
40399
40400 2008-10-17  Bruno Haible  <bruno@clisp.org>
40401
40402         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
40403         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
40404         that it gets activated only for gcc >= 3.0.
40405         * lib/dirent.in.h: Likewise.
40406         * lib/errno.in.h: Likewise.
40407         * lib/fcntl.in.h: Likewise.
40408         * lib/float.in.h: Likewise.
40409         * lib/iconv.in.h: Likewise.
40410         * lib/inttypes.in.h: Likewise.
40411         * lib/locale.in.h: Likewise.
40412         * lib/math.in.h: Likewise.
40413         * lib/netdb.in.h: Likewise.
40414         * lib/netinet_in.in.h: Likewise.
40415         * lib/search.in.h: Likewise.
40416         * lib/signal.in.h: Likewise.
40417         * lib/spawn.in.h: Likewise.
40418         * lib/stdarg.in.h: Likewise.
40419         * lib/stdint.in.h: Likewise.
40420         * lib/stdio.in.h: Likewise.
40421         * lib/stdlib.in.h: Likewise.
40422         * lib/string.in.h: Likewise.
40423         * lib/strings.in.h: Likewise.
40424         * lib/sys_file.in.h: Likewise.
40425         * lib/sys_ioctl.in.h: Likewise.
40426         * lib/sys_select.in.h: Likewise.
40427         * lib/sys_socket.in.h: Likewise.
40428         * lib/sys_stat.in.h: Likewise.
40429         * lib/sys_time.in.h: Likewise.
40430         * lib/sysexits.in.h: Likewise.
40431         * lib/time.in.h: Likewise.
40432         * lib/unistd.in.h: Likewise.
40433         * lib/wchar.in.h: Likewise.
40434         * lib/wctype.in.h: Likewise.
40435         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
40436
40437 2008-10-17  Jim Meyering  <meyering@redhat.com>
40438
40439         ignore-value: don't depend on inline module
40440         * modules/ignore-value (Depends-on): Remove 'inline'.
40441         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
40442         Suggestion from Bruno Haible.
40443
40444 2008-10-17  Bruno Haible  <bruno@clisp.org>
40445
40446         New implementation of condition variables for Win32.
40447         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
40448         (gl_linked_waitqueue_t): New type.
40449         (gl_cond_t): Use it.
40450         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
40451         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
40452         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
40453         (glthread_cond_init_func, glthread_cond_wait_func,
40454         glthread_cond_timedwait_func, glthread_cond_signal_func,
40455         glthread_cond_broadcast_func, glthread_cond_destroy_func):
40456         Reimplemented on the basis of gl_linked_waitqueue_t.
40457         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
40458         gl_waitqueue_t.
40459         (gl_rwlock_t): Update.
40460         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
40461
40462 2008-10-17  Simon Josefsson  <simon@josefsson.org>
40463
40464         * modules/recvfrom (Depends-on): Add dependency on getpeername.
40465         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
40466
40467 2008-10-17  Jim Meyering  <meyering@redhat.com>
40468
40469         ignore-value: new module
40470         * modules/ignore-value: New file.
40471         * lib/ignore-value.h: New file.
40472         * MODULES.html.sh (Compiler warning management): New section,
40473         just for this module.  More to come.
40474
40475 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
40476
40477         open-safer.c: avoid 'signed and unsigned in conditional...' warning
40478         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
40479         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
40480
40481 2008-10-16  Jim Meyering  <meyering@redhat.com>
40482
40483         openat-die.c: avoid 'no previous prototype' warning
40484         * lib/openat-die.c: Include "openat.h".
40485         Reported by Reuben Thomas <rrt@sc3d.org>.
40486
40487 2008-10-16  Simon Josefsson  <simon@josefsson.org>
40488
40489         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
40490         * lib/netdb.in.h: Fix typo.
40491         Reported by Bruno Haible  <bruno@clisp.org>
40492
40493         * lib/netdb.in.h: Include sys/socket.h for platforms without
40494         netdb.h, to get structures like hostent on MinGW.
40495         * modules/netdb (Depends-on): Add sys_socket.
40496
40497 2008-10-15  Simon Josefsson  <simon@josefsson.org>
40498
40499         * modules/netdb, modules/netdb-tests: New file.
40500         * m4/netdb_h.m4: New file.
40501         * lib/netdb.in.h: Add, currently just an empty file pending
40502         definitions.
40503         * tests/test-netdb.c: New file.
40504         * doc/posix-headers/netdb.texi: Mention that we replace it if
40505         needed.
40506         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40507         netdb.
40508
40509 2008-10-15  Simon Josefsson  <simon@josefsson.org>
40510
40511         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
40512         with code.
40513
40514 2008-10-13  Bruno Haible  <bruno@clisp.org>
40515
40516         * lib/glthread/cond.c (glthread_cond_wait_func,
40517         glthread_cond_timedwait_func): Add a comment.
40518
40519 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40520
40521         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
40522         * tests/test-select.c: Likewise,
40523
40524 2008-10-13  Bruno Haible  <bruno@clisp.org>
40525
40526         * lib/glthread/cond.c (glthread_cond_wait_func,
40527         glthread_cond_timedwait_func): Fix variable name.
40528         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
40529
40530 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
40531
40532         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
40533         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
40534         struct sockaddr.sa_len.
40535         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
40536
40537 2008-10-13  Simon Josefsson  <simon@josefsson.org>
40538
40539         * build-aux/pmccabe2html: Add css and css_url parameters.
40540
40541 2008-10-12  Bruno Haible  <bruno@clisp.org>
40542
40543         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
40544         calling aclx_get.
40545         Reported by Rainer Tammer <tammer@tammer.net>.
40546
40547 2008-10-12  Bruno Haible  <bruno@clisp.org>
40548
40549         Use msvcrt aware primitives for creation/termination of Win32 threads.
40550         * lib/glthread/thread.c: Include <process.h>.
40551         (glthread_create_func): Use _beginthreadex instead of CreateThread.
40552         (wrapper_func): Update signature.
40553         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
40554
40555 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40556             Bruno Haible  <bruno@clisp.org>
40557
40558         Provide a Win32 implementation of the 'cond' module.
40559         * lib/glthread/cond.h [USE_WIN32]: New implementation.
40560         * lib/glthread/cond.c (glthread_cond_init_func,
40561         glthread_cond_wait_func, glthread_cond_timedwait_func,
40562         glthread_cond_signal_func, glthread_cond_broadcast_func,
40563         glthread_cond_destroy_func) [USE_WIN32]: New functions.
40564         * modules/cond (Dependencies): Add gettimeofday.
40565
40566 2008-10-11  Bruno Haible  <bruno@clisp.org>
40567
40568         Make sleep work on older versions of mingw.
40569         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
40570         only whether it exists.
40571         * doc/posix-functions/sleep.texi: Mention the problem with older
40572         versions of mingw.
40573
40574 2008-10-11  Bruno Haible  <bruno@clisp.org>
40575
40576         New module 'shutdown'.
40577         * modules/shutdown: New file.
40578         * lib/sys_socket.in.h (shutdown): New declaration.
40579         * lib/winsock.c (shutdown): New function.
40580         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
40581         GNULIB_SHUTDOWN.
40582         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
40583         * doc/posix-functions/shutdown.texi: Document the new module.
40584
40585 2008-10-11  Jim Meyering  <meyering@redhat.com>
40586
40587         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
40588
40589 2008-10-11  Bruno Haible  <bruno@clisp.org>
40590
40591         New module 'fclose'.
40592         * modules/fclose: New file.
40593         * lib/stdio.in.h (fclose): New declaration.
40594         * lib/fclose.c: New file.
40595         * m4/fclose.m4: New file.
40596         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
40597         REPLACE_FCLOSE.
40598         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
40599         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
40600         REPLACE_FCLOSE.
40601         * modules/close (Depends-on): fclose.
40602         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
40603
40604 2008-10-11  Bruno Haible  <bruno@clisp.org>
40605
40606         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
40607         set errno and don't call _close.
40608
40609 2008-10-10  Bruno Haible  <bruno@clisp.org>
40610
40611         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
40612         ACL, not afterwards. Fixes test failure on Cygwin.
40613
40614 2008-10-09  Ben Pfaff  <blp@gnu.org>
40615
40616         * build-aux/announce-gen: Fix gnulib version related part of usage
40617         message.  Die with a useful error message if no tarballs are
40618         found.
40619
40620 2008-10-10  Jim Meyering  <meyering@redhat.com>
40621
40622         bootstrap: use git's --depth=N option only if it's supported
40623         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
40624         recognize the --depth option.  Reported by Pádraig Brady.
40625
40626 2008-10-09  Bruno Haible  <bruno@clisp.org>
40627
40628         New module 'ioctl'.
40629         * modules/ioctl: New file.
40630         * lib/sys_socket.in.h (ioctl): Remove declaration.
40631         * lib/winsock.c: Include <sys/ioctl.h>.
40632         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
40633         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
40634         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
40635         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
40636         * doc/posix-functions/ioctl.texi: Mention the new module.
40637
40638 2008-10-09  Bruno Haible  <bruno@clisp.org>
40639
40640         New module 'sys_ioctl'.
40641         * lib/sys_ioctl.in.h: New file.
40642         * m4/sys_ioctl_h.m4: New file.
40643         * modules/sys_ioctl: New file.
40644         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
40645
40646 2008-10-09  Bruno Haible  <bruno@clisp.org>
40647
40648         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
40649         * lib/winsock.c: Include <stdarg.h>.
40650         (rpl_ioctl): Change to second argument 'int' and then varargs.
40651
40652 2008-10-09  Bruno Haible  <bruno@clisp.org>
40653
40654         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
40655         when the sys_socket module is present and the system has <winsock2.h>.
40656
40657 2008-10-09  Bruno Haible  <bruno@clisp.org>
40658
40659         * doc/posix-functions/close.texi: Mention module 'close' instead of
40660         module 'sys_socket'.
40661
40662 2008-10-09  Bruno Haible  <bruno@clisp.org>
40663
40664         * doc/glibc-headers/sys_ioctl.texi: New file.
40665         * doc/gnulib.texi: Include it.
40666
40667 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40668             Bruno Haible  <bruno@clisp.org>
40669
40670         Combine the two replacements of 'close'.
40671         * lib/sys_socket.in.h (close): Define to a reminder to include
40672         <unistd.h>.
40673         (_gl_close_fd_maybe_socket): New declaration.
40674         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
40675         * lib/winsock.c (close): Remove undefinition.
40676         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
40677         needed for the gnulib module 'close'.
40678         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
40679         define to an error symbol or to a warning, if suitable.
40680         * lib/close.c: Include <sys/socket.h>.
40681         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
40682         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
40683         UNISTD_H_HAVE_WINSOCK2_H.
40684         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
40685         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40686         UNISTD_H_HAVE_WINSOCK2_H.
40687         * modules/sys_socket (Files): Add m4/unistd_h.m4.
40688         (configure.ac): Set a module indicator.
40689         (Makefile.am): Substitute GNULIB_CLOSE.
40690         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
40691         * modules/poll-tests (Depends-on): Add close.
40692         * modules/select-tests (Depends-on): Likewise.
40693
40694 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40695             Bruno Haible  <bruno@clisp.org>
40696
40697         New module 'close'.
40698         * modules/close: New file.
40699         * lib/unistd.in.h (close): Move declaration out of the
40700         FCHDIR_REPLACEMENT scope.
40701         (_gl_unregister_fd): New declaration.
40702         * lib/close.c: New file.
40703         * lib/fchdir.c (rpl_close): Remove function.
40704         * m4/close.m4: New file.
40705         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
40706         close.
40707         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
40708         REPLACE_CLOSE.
40709         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
40710         REPLACE_CLOSE.
40711         * modules/fchdir (Depends-on): Add close.
40712
40713 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40714             Bruno Haible  <bruno@clisp.org>
40715
40716         * lib/fcntl.in.h (open): Simplify conditionals.
40717         (_gl_register_fd): New declaration.
40718         * lib/fchdir.c (rpl_open): Remove function.
40719         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
40720         also.
40721         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
40722         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
40723         open.
40724
40725 2008-10-09  Jim Meyering  <meyering@redhat.com>
40726
40727         GNUmakefile: use the more name-space-friendly "_version"
40728         * top/GNUmakefile (_dummy): Update.
40729         (_version): Rename from "version".
40730
40731 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40732             Bruno Haible  <bruno@clisp.org>
40733
40734         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
40735         rpl_close.
40736         (_gl_register_fd): New function, extracted from rpl_open.
40737         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
40738         (rpl_open, rpl_opendir): Use _gl_register_fd.
40739
40740 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40741
40742         Fix organization of 'open' replacement.
40743         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
40744         (gl_FUNC_OPEN): Use it.
40745         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
40746
40747 2008-10-08  Bruno Haible  <bruno@clisp.org>
40748
40749         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
40750
40751 2008-10-08  Simon Josefsson  <simon@josefsson.org>
40752
40753         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
40754         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
40755         listen).
40756
40757 2008-10-08  Eric Blake  <ebb9@byu.net>
40758
40759         GNUmakefile: add 'make version' target
40760         * top/GNUmakefile (_curr-ver): Split version update rules...
40761         (version): ...into a target.
40762
40763 2008-10-07  Bruno Haible  <bruno@clisp.org>
40764
40765         Use a more portable replacement expression for -0.0L.
40766         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
40767         instead of -0.0L. Fix m4 quotation.
40768
40769         * tests/test-signbit.c: Include <float.h>.
40770         (minus_zero): New variable.
40771         (test_signbitl): Use minus_zero instead of -zero.
40772         * modules/signbit-tests (Depends-on): Add float.
40773
40774         * tests/test-ceill.c: Include <float.h>.
40775         (zero): Remove variable.
40776         (minus_zero): New variable.
40777         (main): Use minus_zero instead of -zero.
40778         * modules/ceill-tests (Depends-on): Add float.
40779
40780         * tests/test-floorl.c: Include <float.h>.
40781         (zero): Remove variable.
40782         (minus_zero): New variable.
40783         (main): Use minus_zero instead of -zero.
40784         * modules/floorl-tests (Depends-on): Add float.
40785
40786         * tests/test-roundl.c: Include <float.h>.
40787         (zero): Remove variable.
40788         (minus_zero): New variable.
40789         (main): Use minus_zero instead of -zero.
40790         * modules/roundl-tests (Depends-on): Add float.
40791
40792         * tests/test-truncl.c: Include <float.h>.
40793         (zero): Remove variable.
40794         (minus_zero): New variable.
40795         (main): Use minus_zero instead of -zero.
40796         * modules/truncl-tests (Depends-on): Add float.
40797
40798         * tests/test-frexpl.c (zero): Remove variable.
40799         (minus_zero): New variable.
40800         (main): Use minus_zero instead of -zero.
40801         * modules/frexpl-tests (Depends-on): Add float.
40802
40803         * tests/test-isnan.c (zerol): Remove variable.
40804         (minus_zerol): New variable.
40805         (test_long_double): Use minus_zerol instead of -zerol.
40806         * modules/isnan-tests (Depends-on): Add float.
40807
40808         * tests/test-isnanl.h (zero): Remove variable.
40809         (minus_zero): New variable.
40810         (main): Use minus_zero instead of -zero.
40811         * modules/isnanl-nolibm-tests (Depends-on): Add float.
40812         * modules/isnanl-tests (Depends-on): Add float.
40813
40814         * tests/test-ldexpl.c (zero): Remove variable.
40815         (minus_zero): New variable.
40816         (main): Use minus_zero instead of -zero.
40817         * modules/ldexpl-tests (Depends-on): Add float.
40818
40819         * tests/test-snprintf-posix.h (zerol): Remove variable.
40820         (minus_zerol): New variable.
40821         (test_function): Use minus_zerol instead of -zerol.
40822         * modules/snprintf-posix-tests (Depends-on): Add float.
40823         * modules/vsnprintf-posix-tests (Depends-on): Add float.
40824
40825         * tests/test-sprintf-posix.h (zerol): Remove variable.
40826         (minus_zerol): New variable.
40827         (test_function): Use minus_zerol instead of -zerol.
40828         * modules/sprintf-posix-tests (Depends-on): Add float.
40829         * modules/vsprintf-posix-tests (Depends-on): Add float.
40830
40831         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
40832         (minus_zerol): New variable.
40833         (test_function): Use minus_zerol instead of -zerol.
40834         * modules/vasnprintf-posix-tests (Depends-on): Add float.
40835
40836         * tests/test-vasprintf-posix.c (zerol): Remove variable.
40837         (minus_zerol): New variable.
40838         (test_function): Use minus_zerol instead of -zerol.
40839         * modules/vasprintf-posix-tests (Depends-on): Add float.
40840
40841 2008-10-07  Simon Josefsson  <simon@josefsson.org>
40842
40843         * MODULES.html.sh (Support for building documentation): Mention
40844         pmccabe2html.  Sort entries.
40845
40846         Add pmccabe2html module, from gnupdf.
40847         * build-aux/pmccabe.css: New file.
40848         * build-aux/pmccabe2html: New file.
40849         * m4/pmccabe2html.m4: New file.
40850         * modules/pmccabe2html: New file.
40851
40852 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
40853
40854         flock: new module
40855         * MODULES.html.sh: Add to list of modules.
40856         * lib/flock.c: flock implementation for Windows and Unix systems
40857         which have fcntl.
40858         * doc/glibc-functions/flock.texi: Update documentation.
40859         * lib/sys_file.in.h: <sys/file.h> header file.
40860         * m4/flock.m4: M4 macros.
40861         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
40862         * modules/flock: flock module.
40863         * modules/flock-tests: flock tests module.
40864         * modules/sys_file: sys/file.h module.
40865         * tests/test-flock.c: test suite for flock.
40866
40867 2008-10-06  Jim Meyering  <meyering@redhat.com>
40868
40869         bootstrap: check for LT_INIT more portably still ;-)
40870         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
40871         Spotted by Bruno Haible.
40872
40873 2008-10-06  Eric Blake  <ebb9@byu.net>
40874
40875         test-signbit: avoid tripping Irix cc bug on -0.0L
40876         * tests/test-signbit.c (minus_zerol): Delete, and replace with
40877         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
40878         entire testsuite consistent and avoids an Irix 6.2 bug.
40879
40880 2008-10-05  Bruno Haible  <bruno@clisp.org>
40881             Jim Meyering  <jim@meyering.net>
40882
40883         Add an option for ignoring EPIPE during close_stdout.
40884         * lib/closeout.h: Include <stdbool.h>.
40885         (close_stdout_set_ignore_EPIPE): New declaration.
40886         * lib/closeout.c: Include <stdbool.h>.
40887         (ignore_EPIPE): New variable.
40888         (close_stdout_set_ignore_EPIPE): New function.
40889         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
40890         * lib/close-stream.c (close_stream): Mention the possible EPIPE
40891         failure.
40892         * modules/closeout (Depends-on): Add stdbool.
40893
40894 2008-10-05  Bruno Haible  <bruno@clisp.org>
40895
40896         * modules/accept: New file.
40897         * modules/bind: New file.
40898         * modules/connect: New file.
40899         * modules/getpeername: New file.
40900         * modules/getsockname: New file.
40901         * modules/getsockopt: New file.
40902         * modules/listen: New file.
40903         * modules/recv: New file.
40904         * modules/recvfrom: New file.
40905         * modules/send: New file.
40906         * modules/sendto: New file.
40907         * modules/setsockopt: New file.
40908         * modules/socket: New file.
40909         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
40910         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
40911         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
40912         the particular module is requested. Add a link warning when the
40913         particular module is not requested.
40914         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
40915         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
40916         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
40917         the particular module is requested.
40918         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
40919         gl_SYS_SOCKET_H_DEFAULTS): New macros.
40920         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
40921         * modules/sys_socket (Depends-on): Add link-warning.
40922         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
40923         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
40924         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
40925         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
40926         GL_LINK_WARNING.
40927         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
40928         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
40929         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
40930         * doc/posix-functions/getpeername.texi: Mention the new module
40931         'getpeername'.
40932         * doc/posix-functions/getsockname.texi: Mention the new module
40933         'getsockname'.
40934         * doc/posix-functions/getsockopt.texi: Mention the new module
40935         'getsockopt'.
40936         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
40937         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
40938         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
40939         * doc/posix-functions/send.texi: Mention the new module 'send'.
40940         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
40941         * doc/posix-functions/setsockopt.texi: Mention the new module
40942         'setsockopt'.
40943         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
40944         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
40945         listen, connect, accept.
40946         * modules/select-tests (Depends-on): Likewise.
40947
40948 2008-10-05  Bruno Haible  <bruno@clisp.org>
40949
40950         * lib/winsock.c (strerror): Remove unused #undef.
40951         (rpl_close): Remove unused local variable.
40952
40953         * modules/sys_socket (Depends-on); Add errno.
40954
40955 2008-10-05  Bruno Haible  <bruno@clisp.org>
40956
40957         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
40958         (select): Add a link warning when the 'select' module is not used.
40959         * modules/sys_select (Depends-on): Add link-warning.
40960         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
40961         Suggested by Paolo Bonzini.
40962
40963 2008-10-05  Jim Meyering  <meyering@redhat.com>
40964
40965         bootstrap: check for LT_INIT more portably
40966         * build-aux/bootstrap: Avoid using grep -E, since it's not
40967         portable enough.  Suggestion from Bruno Haible.
40968
40969 2008-10-05  Bruno Haible  <bruno@clisp.org>
40970
40971         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
40972         as being fixed by gnulib.
40973
40974 2008-10-05  Bruno Haible  <bruno@clisp.org>
40975
40976         * modules/select-tests: New file, mostly copied from
40977         modules/sys_select-tests.
40978         * tests/test-select.c: New file, mostly copied from
40979         tests/test-sys_select.c.
40980         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
40981         * modules/sys_select-tests (Depends-on): Remove all dependencies.
40982         (Makefile.am): Remove test_sys_select_LDADD.
40983
40984         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
40985         to an undefined symbol, for an error message.
40986         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
40987         (gl_SYS_SELECT_H_DEFAULTS): New macro.
40988         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
40989         winsock-select.c here.
40990         * modules/sys_select (Files): Remove lib/winsock-select.c.
40991         (Depends-on): Remove alloca.
40992         (Makefile.am): Substitute GNULIB_SELECT.
40993         * modules/select: New file.
40994         * doc/posix-functions/select.texi: Update.
40995
40996 2008-10-05  Bruno Haible  <bruno@clisp.org>
40997
40998         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
40999         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
41000         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
41001         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
41002         getdtablesize.
41003         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
41004         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
41005
41006 2008-10-05  Bruno Haible  <bruno@clisp.org>
41007
41008         * modules/getdtablesize-tests: New file.
41009         * tests/test-getdtablesize.c: New file.
41010
41011         New module 'getdtablesize'.
41012         * lib/unistd.in.h (getdtablesize): New declaration.
41013         * lib/getdtablesize.c: New file.
41014         * m4/getdtablesize.m4: New file.
41015         * modules/getdtablesize: New file.
41016         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41017         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
41018         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
41019         HAVE_GETDTABLESIZE.
41020         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
41021
41022 2008-10-05  Bruno Haible  <bruno@clisp.org>
41023
41024         * modules/sched (Makefile.am): Fix typo.
41025         Reported by Simon Josefsson.
41026
41027 2008-10-05  Jim Meyering  <meyering@redhat.com>
41028
41029         bootstrap: check for LT_INIT, too
41030         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
41031         are deprecated.  Suggestion from Ralf Wildenhues.
41032
41033 2008-10-05  Bruno Haible  <bruno@clisp.org>
41034
41035         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
41036         overriding them by ours.
41037         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
41038
41039 2008-10-05  Jim Meyering  <meyering@redhat.com>
41040
41041         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
41042         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
41043         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
41044
41045 2008-10-04  Bruno Haible  <bruno@clisp.org>
41046
41047         * modules/dup2 (License): Change to LGPLv2+.
41048         * modules/sleep (License): Likewise.
41049         * modules/perror (License): Likewise.
41050         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
41051         Blake.
41052         * modules/signal (License): Likewise.
41053         * modules/sigprocmask (License): Likewise.
41054         * modules/raise (License): Change to LGPLv2+, with approval by Jim
41055         Meyering.
41056
41057 2008-10-04  Bruno Haible  <bruno@clisp.org>
41058
41059         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
41060         Reported by Rainer Tammer <tammer@tammer.net>.
41061
41062 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
41063             Bruno Haible  <bruno@clisp.org>
41064
41065         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
41066         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
41067         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
41068
41069 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
41070
41071         filevercmp: new module
41072         * lib/filevercmp.h: New function filevercmp comparing version strings.
41073         * lib/filevercmp.c: Implementation of filevercmp function.
41074         * modules/filevercmp: Module metadata.
41075         * tests/test-filevercmp.c: Unit test for new module.
41076         * modules/filevercmp-tests: Unit test metadata.
41077         * MODULES.html.sh: Add filevercmp module.
41078
41079 2008-10-03  Bruno Haible  <bruno@clisp.org>
41080
41081         * lib/c-ctype.h: Add comment.
41082         Reported by Jim Meyering.
41083
41084 2008-10-02  Bruno Haible  <bruno@clisp.org>
41085
41086         * modules/posix_spawn-internal (Depends-on): Add 'open'.
41087
41088 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
41089
41090         * build-aux/bootstrap: Allow renaming bootstrap, and change the
41091         name of bootstrap.conf accordingly.
41092
41093 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
41094
41095         * build-aux/bootstrap: Install git-merge-changelog configuration
41096         items into .gitconfig if needed.
41097
41098 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
41099
41100         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
41101         git repository, and initialize/update it accordingly.
41102
41103 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
41104
41105         * modules/fsync-tests: New file.
41106         * tests/test-fsync.c: New file.
41107
41108         New module 'fsync'.
41109         * lib/fsync.c: New file.
41110         * m4/fsync.m4: New file.
41111         * modules/fsync: New file.
41112         * lib/unistd.in.h (fsync): New declaration.
41113         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
41114         GNULIB_FSYNC and HAVE_FSYNC.
41115         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
41116         * MODULES.html.sh (posix_functions): Add fsync.
41117         * doc/posix-functions/fsync.texi: Mention the new module.
41118
41119 2008-10-02  Jim Meyering  <meyering@redhat.com>
41120
41121         fts.c: sync with similar code from coreutils' remove.c
41122         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
41123         Guard also with "#if defined __linux__", since for now at least,
41124         this code is Linux-kernel-specific.
41125
41126 2008-10-02  Jim Meyering  <meyering@redhat.com>
41127
41128         fts: bug fixes
41129         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
41130         Include <sys/vfs.h>, not <sys/statfs.h>.
41131
41132         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
41133         Include <sys/vfs.h>, not <sys/statfs.h>.
41134
41135 2008-10-01  Bruno Haible  <bruno@clisp.org>
41136
41137         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
41138         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
41139         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
41140         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
41141         * doc/posix-functions/posix_spawnp.texi: Likewise.
41142         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
41143         whether posix_spawn actually works.
41144         * m4/pipe.m4 (gl_PIPE): Likewise.
41145         * modules/execute (Files): Add m4/posix_spawn.m4.
41146         * modules/pipe (Files): Add m4/posix_spawn.m4.
41147         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
41148
41149 2008-10-01  Jim Meyering  <meyering@redhat.com>
41150
41151         remove trailing spaces
41152         * NEWS: Likewise.
41153         * lib/poll.c (poll): Likewise.
41154         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
41155         * lib/winsock.c (rpl_close): Likewise.
41156         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
41157         * modules/yield: Likewise.
41158         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
41159         * tests/test-sys_select.c (connect_to_socket): Likewise.
41160
41161         fts.c: adjust a new interface to be more generally useful
41162         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
41163         (fts_build): Adjust caller.
41164
41165 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41166
41167         * modules/cond-tests: New file.
41168         * tests/test-cond.c: New file.
41169
41170 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41171             Bruno Haible  <bruno@clisp.org>
41172
41173         * modules/cond (Dependencies): Add errno, time.
41174         * lib/glthread/cond.h: Include <time.h>.
41175         (gl_cond_define, gl_cond_define_initialized): Use the same definition
41176         across platforms.
41177
41178 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41179             Bruno Haible  <bruno@clisp.org>
41180
41181         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
41182
41183 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41184             Bruno Haible  <bruno@clisp.org>
41185
41186         * modules/tls-tests (Depends-on): Add thread, yield.
41187         (configure.ac): Remove all checks.
41188         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
41189         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
41190         gl_thread_self): Remove definitions. Include glthread/thread.h and
41191         glthread/yield.h instead.
41192         (test_tls): Pass an additional NULL argument to gl_thread_join.
41193
41194 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41195             Bruno Haible  <bruno@clisp.org>
41196
41197         * modules/lock-tests (Depends-on): Add thread, yield.
41198         (configure.ac): Remove all checks.
41199         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
41200         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
41201         gl_thread_self): Remove definitions. Include glthread/thread.h and
41202         glthread/yield.h instead.
41203         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
41204         additional NULL argument to gl_thread_join.
41205
41206 2008-09-30  Bruno Haible  <bruno@clisp.org>
41207
41208         Fix the Win32 implementation of the 'thread' module.
41209         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
41210         pointer type.
41211         (gl_thread_self): Invoke gl_thread_self_func.
41212         (gl_thread_self_func): New declaration.
41213         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
41214         (do_init_self_key, init_self_key): New functions.
41215         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
41216         Remove some fields.
41217         (running_threads, running_lock): Remove variables.
41218         (get_current_thread_handle): New function.
41219         (gl_thread_self_func, wrapper_func, glthread_create_func,
41220         glthread_join_func, gl_thread_exit_func): Largely rewritten and
41221         simplified.
41222
41223 2008-09-30  Bruno Haible  <bruno@clisp.org>
41224
41225         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
41226         files.
41227
41228 2008-09-30  Jim Meyering  <meyering@redhat.com>
41229
41230         fts.m4: correct the test for statfs.f_type
41231         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
41232         when checking for statfs.f_type.
41233
41234 2008-09-15  Simon Josefsson  <simon@josefsson.org>
41235
41236         tests: avoid some compiler warnings
41237         * tests/test-memchr.c (main): Pass NULL indirectly.
41238         * tests/test-getdate.c (main): Remove unused variable 'ret'.
41239
41240 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
41241
41242         getdate.y: disallow countable dayshifts like "4 yesterday ago"
41243         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
41244         exactly specified dayshifts.
41245         (dayshift): New rule.
41246         (rel): Add dayshift.
41247         (relative_time_table) [tomorrow, yesterday, today, now]:
41248         Use tDAY_SHIFT in place of tDAY_UNIT.
41249         * tests/test-getdate.c: Add tests for now-disallowed countable
41250         dayshifts, e.g., "4 yesterday ago".
41251
41252 2008-09-29  Bruno Haible  <bruno@clisp.org>
41253
41254         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
41255         * tests/test-posix_spawn1.in.sh: Renamed from
41256         tests/test-posix_spawn.in.sh.
41257         * tests/test-posix_spawn2.c: New file.
41258         * tests/test-posix_spawn2.in.sh: New file.
41259         * modules/posix_spawnp-tests (Files): Update.
41260         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
41261
41262 2008-09-29  Bruno Haible  <bruno@clisp.org>
41263
41264         Propagate effects of putenv/setenv/unsetenv to child processes.
41265         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
41266         * lib/pipe.c (create_pipe): Likewise.
41267
41268 2008-09-29  Bruno Haible  <bruno@clisp.org>
41269
41270         Enable use of shell scripts as executables in mingw.
41271         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
41272         run the program as a shell script.
41273         * lib/pipe.c (create_pipe): Likewise.
41274         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
41275         resulting array.
41276
41277 2008-09-29  Eric Blake  <ebb9@byu.net>
41278
41279         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
41280
41281 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
41282
41283         * doc/posix-functions/accept.texi: Update mingw problems.
41284         * doc/posix-functions/bind.texi: Update mingw problems.
41285         * doc/posix-functions/close.texi: Update mingw problems.
41286         * doc/posix-functions/connect.texi: Update mingw problems.
41287         * doc/posix-functions/getpeername.texi: Update mingw problems.
41288         * doc/posix-functions/getsockname.texi: Update mingw problems.
41289         * doc/posix-functions/getsockopt.texi: Update mingw problems.
41290         * doc/posix-functions/ioctl.texi: Update mingw problems.
41291         * doc/posix-functions/listen.texi: Update mingw problems.
41292         * doc/posix-functions/recv.texi: Update mingw problems.
41293         * doc/posix-functions/recvfrom.texi: Update mingw problems.
41294         * doc/posix-functions/select.texi: Update mingw problems.
41295         * doc/posix-functions/send.texi: Update mingw problems.
41296         * doc/posix-functions/sendto.texi: Update mingw problems.
41297         * doc/posix-functions/setsockopt.texi: Update mingw problems.
41298         * doc/posix-functions/socket.texi: Update mingw problems.
41299
41300 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
41301             Bruno Haible  <bruno@clisp.org>
41302
41303         * lib/sys_select.in.h: Include sys/time.h.
41304         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
41305         * modules/sys_select: Depend on sys_time.
41306         * tests/test-sys_select.c: Test that sys/select.h defines struct
41307         timeval fully.
41308
41309 2008-09-29  Bruno Haible  <bruno@clisp.org>
41310
41311         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
41312         * lib/sys_select.in.h: Likewise.
41313
41314 2008-09-29  Bruno Haible  <bruno@clisp.org>
41315
41316         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
41317
41318 2008-09-29  Bruno Haible  <bruno@clisp.org>
41319
41320         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
41321         Set LIBSOCKET instead of augmenting LIBS.
41322         * modules/sockets (Link): New section.
41323         * modules/sockets-tests (test_sockets_LDADD): New variable.
41324         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
41325         * modules/poll-tests (test_poll_LDADD): New variable.
41326         * NEWS: Document the change.
41327
41328 2008-09-29  Bruno Haible  <bruno@clisp.org>
41329
41330         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
41331         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
41332         ARPA_INET_H directly.
41333         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41334
41335 2008-09-28  Bruno Haible  <bruno@clisp.org>
41336
41337         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
41338         from gl_HEADER_SYS_SOCKET.
41339         (gl_HEADER_SYS_SOCKET): Invoke it.
41340         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
41341
41342 2008-09-28  Bruno Haible  <bruno@clisp.org>
41343
41344         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
41345         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
41346         Needed on OSF/1 4.0.
41347
41348 2008-09-28  Bruno Haible  <bruno@clisp.org>
41349
41350         Override open more carefully.
41351         * lib/open.c (orig_open): New function.
41352         (rpl_open): Use orig_open instead of open.
41353         * lib/fcntl.in.h: Add special invocation convention.
41354         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
41355         (gl_FUNC_OPEN): Invoke it.
41356
41357         Override freopen more carefully.
41358         * lib/freopen.c (orig_freopen): New function.
41359         (rpl_freopen): Use orig_freopen instead of freopen.
41360         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
41361         (gl_FUNC_FREOPEN): Invoke it.
41362
41363         Override fopen more carefully.
41364         * lib/fopen.c (orig_fopen): New function.
41365         (rpl_fopen): Use orig_fopen instead of fopen.
41366         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
41367         (gl_FUNC_FOPEN): Invoke it.
41368         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
41369
41370 2008-09-28  Bruno Haible  <bruno@clisp.org>
41371
41372         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
41373         SIGPIPE.
41374
41375 2008-09-28  Bruno Haible  <bruno@clisp.org>
41376
41377         * tests/test-sigaction.c (handler, main): Disable the check whether
41378         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
41379         glibc systems with LinuxThreads.
41380
41381 2008-09-28  Bruno Haible  <bruno@clisp.org>
41382
41383         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
41384
41385         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
41386         with AIX xlc.
41387         * lib/fcntl.in.h (open): Likewise.
41388         Reported by Rainer Tammer <tammer@tammer.net>.
41389
41390 2008-09-28  Bruno Haible  <bruno@clisp.org>
41391
41392         * modules/posix_spawnp-tests: New file.
41393         * tests/test-posix_spawn.c: New file.
41394         * tests/test-posix_spawn.in.sh: New file.
41395
41396         New module 'posix_spawnp'.
41397         * modules/posix_spawnp: New file.
41398         * lib/spawnp.c: New file, from GNU libc with modifications.
41399         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
41400
41401         New module 'posix_spawn'.
41402         * modules/posix_spawn: New file.
41403         * lib/spawn.c: New file, from GNU libc with modifications.
41404         * doc/posix-functions/posix_spawn.texi: Mention the new module.
41405
41406         New module 'posix_spawnattr_destroy'.
41407         * modules/posix_spawnattr_destroy: New file.
41408         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
41409         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
41410         module.
41411
41412         New module 'posix_spawnattr_setsigmask'.
41413         * modules/posix_spawnattr_setsigmask: New file.
41414         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
41415         modifications.
41416         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
41417         new module.
41418
41419         New module 'posix_spawnattr_getsigmask'.
41420         * modules/posix_spawnattr_getsigmask: New file.
41421         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
41422         modifications.
41423         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
41424         new module.
41425
41426         New module 'posix_spawnattr_setsigdefault'.
41427         * modules/posix_spawnattr_setsigdefault: New file.
41428         * lib/spawnattr_setdefault.c: New file, from GNU libc with
41429         modifications.
41430         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
41431         new module.
41432
41433         New module 'posix_spawnattr_getsigdefault'.
41434         * modules/posix_spawnattr_getsigdefault: New file.
41435         * lib/spawnattr_getdefault.c: New file, from GNU libc with
41436         modifications.
41437         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
41438         new module.
41439
41440         New module 'posix_spawnattr_setschedpolicy'.
41441         * modules/posix_spawnattr_setschedpolicy: New file.
41442         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
41443         modifications.
41444         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
41445         new module.
41446
41447         New module 'posix_spawnattr_getschedpolicy'.
41448         * modules/posix_spawnattr_getschedpolicy: New file.
41449         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
41450         modifications.
41451         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
41452         new module.
41453
41454         New module 'posix_spawnattr_setschedparam'.
41455         * modules/posix_spawnattr_setschedparam: New file.
41456         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
41457         modifications.
41458         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
41459         new module.
41460
41461         New module 'posix_spawnattr_getschedparam'.
41462         * modules/posix_spawnattr_getschedparam: New file.
41463         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
41464         modifications.
41465         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
41466         new module.
41467
41468         New module 'posix_spawnattr_setpgroup'.
41469         * modules/posix_spawnattr_setpgroup: New file.
41470         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
41471         modifications.
41472         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
41473         module.
41474
41475         New module 'posix_spawnattr_getpgroup'.
41476         * modules/posix_spawnattr_getpgroup: New file.
41477         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
41478         modifications.
41479         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
41480         module.
41481
41482         New module 'posix_spawnattr_setflags'.
41483         * modules/posix_spawnattr_setflags: New file.
41484         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
41485         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
41486         module.
41487
41488         New module 'posix_spawnattr_getflags'.
41489         * modules/posix_spawnattr_getflags: New file.
41490         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
41491         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
41492         module.
41493
41494         New module 'posix_spawnattr_init'.
41495         * modules/posix_spawnattr_init: New file.
41496         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
41497         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
41498         module.
41499
41500         New module 'posix_spawn_file_actions_destroy'.
41501         * modules/posix_spawn_file_actions_destroy: New file.
41502         * lib/spawn_faction_destroy.c: New file, from GNU libc with
41503         modifications.
41504         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
41505         the new module.
41506
41507         New module 'posix_spawn_file_actions_addopen'.
41508         * modules/posix_spawn_file_actions_addopen: New file.
41509         * lib/spawn_faction_addopen.c: New file, from GNU libc with
41510         modifications.
41511         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
41512         the new module.
41513
41514         New module 'posix_spawn_file_actions_adddup2'.
41515         * modules/posix_spawn_file_actions_adddup2: New file.
41516         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
41517         modifications.
41518         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
41519         the new module.
41520
41521         New module 'posix_spawn_file_actions_addclose'.
41522         * modules/posix_spawn_file_actions_addclose: New file.
41523         * lib/spawn_faction_addclose.c: New file, from GNU libc with
41524         modifications.
41525         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
41526         the new module.
41527
41528         New module 'posix_spawn_file_actions_init'.
41529         * modules/posix_spawn_file_actions_init: New file.
41530         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
41531         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
41532         new module.
41533
41534         New module 'posix_spawn-internal'.
41535         * modules/posix_spawn-internal: New file.
41536         * lib/spawn_int.h: New file, from GNU libc with modifications.
41537         * lib/spawni.c: New file, from GNU libc with modifications.
41538         * m4/posix_spawn.m4: New file.
41539
41540         New module 'spawn'.
41541         * modules/spawn: New file.
41542         * lib/spawn.in.h: New file, from GNU libc with modifications.
41543         * m4/spawn_h.m4: New file.
41544         * doc/posix-headers/spawn.texi: Mention the new module.
41545
41546 2008-09-28  Bruno Haible  <bruno@clisp.org>
41547
41548         * modules/sched-tests: New file.
41549         * tests/test-sched.c: New file.
41550
41551         New module 'sched'.
41552         * modules/sched: New file.
41553         * lib/sched.in.h: New file.
41554         * m4/sched_h.m4: New file.
41555         * doc/posix-headers/sched.texi: Mention the new module.
41556
41557 2008-09-27  Eric Blake  <ebb9@byu.net>
41558
41559         Fix previous patch, and tweak references to $0.
41560         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
41561         (func_version, func_gnulib_dir): Don't call this program
41562         gnulib-tool.
41563         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
41564         with using $0 in function.
41565         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
41566         (func_fatal_error): Reuse the name the user invoked us with.
41567
41568 2008-09-27  Bruno Haible  <bruno@clisp.org>
41569
41570         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
41571         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
41572         (gl_ICONV_H): Not here.
41573         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
41574         instead of assigning ICONV_H directly.
41575
41576         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
41577         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
41578         WCHAR_H directly.
41579
41580 2008-09-27  Bruno Haible  <bruno@clisp.org>
41581
41582         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
41583         * modules/arpa_inet (Depends-on): Add link-warning.
41584         (Makefile.am): Insert the definition of GL_LINK-WARNING.
41585         * modules/unistd (Makefile.am): Likewise.
41586
41587 2008-09-26  Bruno Haible  <bruno@clisp.org>
41588
41589         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
41590         variables.
41591         (func_version): Essentially copied from gnulib-tool.
41592         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
41593         func_readlink): Copied from gnulib-tool.
41594
41595 2008-09-26  Bruno Haible  <bruno@clisp.org>
41596
41597         * gnulib-tool (func_version): Change directory to $gnulib_dir before
41598         invoking git-version-gen.
41599
41600 2008-09-26  Bruno Haible  <bruno@clisp.org>
41601
41602         * posix-modules: Update to directory names changed on 2008-01-19.
41603         Remove commas in output before splitting into words. No more need to
41604         avoid 'ftruncate' since 2007-02-19.
41605
41606 2008-09-26  Bruno Haible  <bruno@clisp.org>
41607
41608         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
41609
41610 2008-09-26  Bruno Haible  <bruno@clisp.org>
41611
41612         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
41613         * modules/fwriteerror (Depends-on): Add errno.
41614
41615 2008-09-26  Bruno Haible  <bruno@clisp.org>
41616
41617         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
41618         * tests/test-vc-list-files-cvs.sh: Likewise.
41619
41620 2008-09-26  Bruno Haible  <bruno@clisp.org>
41621
41622         * doc/posix-headers/sys_resource.texi: Reorder items.
41623
41624 2008-09-26  Jim Meyering  <meyering@redhat.com>
41625
41626         fts: tweak inode comparison function
41627         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
41628         inode numbers, as documented.
41629
41630         fts: sort dirent entries on inode number before traversing
41631         This avoids a quadratic, seek-related performance penalty when
41632         operating on a directory containing many entries (measurable at 10k;
41633         3.5 hours at 2 million entries with a cold cache) on certain types
41634         of file systems, including ext3 and ext4, but not tmpfs.
41635         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
41636         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
41637         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
41638         (fs_handles_readdir_ordered_dirents_efficiently): New function.
41639         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
41640         (fts_build): Set the stat.st_ino member from D_INO.
41641         If it is likely to be useful, sort dirent entries on inode number.
41642
41643         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
41644         and the struct statfs.f_type member.
41645         * modules/fts (Depends-on): Add d-ino.
41646
41647 2008-09-26  Bruno Haible  <bruno@clisp.org>
41648
41649         * modules/sigpipe-die (Depends-on): Add sigpipe.
41650
41651         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
41652         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
41653         and GNULIB_STDIO_H_SIGPIPE are set.
41654         * lib/stdio-write.c: New file.
41655         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
41656         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
41657         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
41658         REPLACE_STDIO_WRITE_FUNCS.
41659         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
41660         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
41661         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
41662         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
41663         * modules/stdio (Files): Add lib/stdio-write.c.
41664         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
41665         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
41666         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
41667         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
41668         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
41669         REPLACE_FPRINTF_POSIX.
41670         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
41671         REPLACE_PRINTF_POSIX.
41672         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
41673         REPLACE_VFPRINTF_POSIX.
41674         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
41675         REPLACE_VPRINTF_POSIX.
41676         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
41677         SIGPIPE issue.
41678         * doc/posix-functions/fputc.texi: Likewise.
41679         * doc/posix-functions/fputs.texi: Likewise.
41680         * doc/posix-functions/fwrite.texi: Likewise.
41681         * doc/posix-functions/printf.texi: Likewise.
41682         * doc/posix-functions/putc.texi: Likewise.
41683         * doc/posix-functions/putchar.texi: Likewise.
41684         * doc/posix-functions/puts.texi: Likewise.
41685         * doc/posix-functions/vfprintf.texi: Likewise.
41686         * doc/posix-functions/vprintf.texi: Likewise.
41687
41688         * modules/safe-write (Depends-on): Add write.
41689
41690         * modules/sigpipe-tests: New file.
41691         * tests/test-sigpipe.c: New file.
41692         * tests/test-sigpipe.sh: New file.
41693
41694         * modules/write: New file.
41695         * lib/unistd.in.h: Include <sys/types.h>.
41696         (write): New declaration.
41697         * lib/write.c: New file.
41698         * m4/write.m4: New file.
41699         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41700         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
41701         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
41702         GNULIB_WRITE, REPLACE_WRITE.
41703         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
41704         and the SIGPIPE issue.
41705
41706         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
41707         (raise): New declaration.
41708         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
41709         (ext_signal): New function.
41710         (rpl_raise): New function.
41711         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
41712         GNULIB_SIGNAL_H_SIGPIPE.
41713         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
41714         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
41715
41716         * modules/sigpipe: New file.
41717         * m4/sigpipe.m4: New file.
41718
41719 2008-09-25  Derek Price  <derek@ximbiot.com>
41720             Bruno Haible  <bruno@clisp.org>
41721
41722         * gnulib-tool (func_import): Report all license incompatibilities, not
41723         just the first one.
41724
41725 2008-09-25  Bruno Haible  <bruno@clisp.org>
41726
41727         * gnulib-tool (func_import): When computing the edits, consider not
41728         only the Makefile.ams that exist but also those that will be generated.
41729
41730 2008-09-25  Simon Josefsson  <simon@josefsson.org>
41731
41732         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
41733         fixes gnulib-tool --test warning about duplicate dependency.
41734
41735 2008-09-25  Bruno Haible  <bruno@clisp.org>
41736
41737         * gnulib-tool: Don't ask the user to perform edits in the generated
41738         Makefile.ams.
41739         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
41740         apply to the Makefile.am being generated.
41741         (func_emit_tests_Makefile_am): Execute edits that apply to the
41742         Makefile.am being generated.
41743         (func_import): Setup list of Makefile.am edits before emitting the
41744         Makefile.ams, not at the end.
41745         (func_create_testdir): Update.
41746         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41747
41748 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41749
41750         * gnulib-tool (func_import): Store the --tests-base option in the
41751         comment in gnulib-cache.m4.
41752
41753 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
41754
41755         * NEWS: Document increased portability that sys_select now provides.
41756
41757         * lib/sys_select.in.h: Install select wrapper.
41758         * lib/sys_socket.in.h: Use more descriptive name when there is no
41759         select wrapper.
41760         * lib/winsock-select.c: New.
41761         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
41762         Require gl_HEADER_SYS_SOCKET.
41763         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
41764         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
41765         * tests/test-sys_select.c: Add functional tests.
41766
41767 2008-09-24  Eric Blake  <ebb9@byu.net>
41768
41769         open, fopen: close fd leak in last patch
41770         * lib/open.c (rpl_open): Close fd before returning error.
41771         * lib/fopen.c (rpl_fopen): Close fd before returning error.
41772         * doc/posix-functions/open.texi (open): Document that Irix also
41773         has the bug.
41774         * doc/posix-functions/fopen.texi (fopen): Likewise.
41775         Reported by Paolo Bonzini.
41776
41777 2008-09-24  Bruno Haible  <bruno@clisp.org>
41778
41779         Ensure that a filename ending in a slash cannot be used to access a
41780         non-directory.
41781         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
41782         to check whether it's really a directory.
41783         * lib/fopen.c: Include fcntl.h, unistd.h.
41784         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
41785         and fdopen().
41786         * modules/fopen (Depends-on): Add unistd.
41787         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
41788         * tests/test-fopen.c (main): Likewise.
41789         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
41790         * doc/posix-functions/fopen.texi: Likewise.
41791         Reported by Eric Blake.
41792
41793 2008-09-23  Eric Blake  <ebb9@byu.net>
41794
41795         c-stack: avoid compiler optimizations when provoking overflow
41796         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
41797         recursion harder to optimize, to ensure a stack overflow occurs.
41798         * tests/test-c-stack.c (recurse): Likewise.
41799         Borrowed from libsigsegv.
41800
41801         c-stack: work around Irix sigaltstack bug
41802         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
41803         whether sigaltstack uses wrong end of stack_t (copied in part from
41804         libsigsegv).
41805         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
41806         Irix bug, without requiring an over-allocation.
41807         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
41808         bug.
41809
41810         fopen: document mingw bug on directories
41811         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
41812         not allowing a stream visiting a directory, even though reading
41813         from such a stream is not portable.
41814
41815 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41816
41817         * lib/poll.c: Rewrite.
41818         * modules/poll: Depend on alloca.
41819
41820 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41821
41822         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
41823         instead define prototypes for a full set of wrappers.  Ensure
41824         that Cygwin does not use the compatibility code, which is only
41825         for MinGW.
41826         * lib/winsock.c: New.
41827         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
41828         * modules/sys_socket: Add lib/winsock.c.
41829
41830         * modules/poll-tests: Add errno and perror.
41831         * tests/test-poll.c: Use ioctl, not ioctlsocket.
41832
41833 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41834
41835         * tests/test-poll.c: Downgrade minimum needed Winsock version.
41836
41837 2008-09-23  Bruno Haible  <bruno@clisp.org>
41838
41839         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
41840         * doc/glibc-functions/*: Likewise.
41841
41842 2008-09-23  Simon Josefsson  <simon@josefsson.org>
41843
41844         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
41845         success.
41846
41847 2008-09-22  Eric Blake  <ebb9@byu.net>
41848             Bruno Haible  <bruno@clisp.org>
41849
41850         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
41851         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
41852         supply %A but mishandle pseudo-NaN.
41853         Reported by Simon Josefsson.
41854
41855 2008-09-21  Bruno Haible  <bruno@clisp.org>
41856
41857         * tests/test-lock.c (main): Tweak skip message.
41858         * tests/test-tls.c (main): Likewise.
41859
41860 2008-09-21  Bruno Haible  <bruno@clisp.org>
41861
41862         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
41863         whether 'struct sigaction' has sa_sigaction here...
41864         (gl_PREREQ_SIG_HANDLER_H): ... not here.
41865         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
41866
41867 2008-09-21  Bruno Haible  <bruno@clisp.org>
41868
41869         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
41870         section.
41871         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
41872         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
41873         the new section.
41874         (Support for obsolete systems lacking POSIX:2001): New section.
41875         (String handling <string.h>): Move strdup to the new section.
41876         Suggested by Simon Josefsson and Paolo Bonzini.
41877
41878 2008-09-21  Bruno Haible  <bruno@clisp.org>
41879
41880         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
41881         exponents in %e and %g results on 'long double'. Needed for mingw's
41882         improved *printf functions.
41883         * tests/test-vasprintf-posix.c (test_function): Likewise.
41884         * tests/test-snprintf-posix.h (test_function): Likewise.
41885         * tests/test-sprintf-posix.h (test_function): Likewise.
41886         Reported by Eric Blake.
41887
41888 2008-09-21  Bruno Haible  <bruno@clisp.org>
41889
41890         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
41891         * tests/test-sprintf-posix.h (test_function): Likewise.
41892
41893 2008-09-21  Bruno Haible  <bruno@clisp.org>
41894
41895         * modules/getpass (Depends-on): Add strdup-posix.
41896
41897         New module 'strdup-posix'.
41898         * modules/strdup-posix: New file.
41899         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
41900         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
41901         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41902         REPLACE_STRDUP.
41903         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
41904         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
41905         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41906         strdup-posix.
41907
41908         * modules/strdup (Depends-on): Remove malloc-posix.
41909
41910 2008-09-20  Bruno Haible  <bruno@clisp.org>
41911
41912         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
41913         Wildenhues.
41914
41915 2008-09-20  Bruno Haible  <bruno@clisp.org>
41916
41917         Ensure that wint_t gets defined on IRIX 5.3.
41918         * lib/wchar.in.h (wint_t): Define if not defined by the system.
41919         * lib/wctype.in.h (wint_t): Likewise.
41920         (__wctype_wint_t): Remove type.
41921         (isw*): Use wint_t instead of __wctype_wint_t.
41922         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
41923         * modules/wchar (Files): Add m4/wint_t.m4.
41924         (Makefile.am): Substitute HAVE_WINT_T.
41925         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
41926         * tests/test-wctype.c: Check that wint_t is defined.
41927         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
41928         * doc/posix-headers/wctype.texi: Likewise.
41929         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41930
41931 2008-09-18  Bruno Haible  <bruno@clisp.org>
41932
41933         * gnulib-tool (func_exit): Update comment.
41934
41935 2008-09-18  Simon Josefsson  <simon@josefsson.org>
41936
41937         * modules/getaddrinfo (Depends-on): Remove strdup, this module
41938         assumes strdup exists and does not depend on strdup to return
41939         ENOMEM on out of memory conditions.
41940
41941 2008-09-18  Bruno Haible  <bruno@clisp.org>
41942
41943         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
41944         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
41945         digits for the exponent.
41946
41947 2008-09-18  Jim Meyering  <meyering@redhat.com>
41948             Bruno Haible  <bruno@clisp.org>
41949
41950         * lib/vasnprintf.c (decimal_point_char): Define also if
41951         NEED_PRINTF_INFINITE_LONG_DOUBLE.
41952
41953 2008-09-16  Bruno Haible  <bruno@clisp.org>
41954         and Eric Blake  <ebb9@byu.net>
41955
41956         vasnprintf: support Irix 5.3
41957         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
41958         that mishandle long double infinity.
41959         Reported by Tom G. Christensen.
41960
41961 2008-09-16  Bruno Haible  <bruno@clisp.org>
41962
41963         * doc/glibc-functions/scandir.texi: Mention the function is missing on
41964         Solaris 9.
41965         * doc/glibc-functions/alphasort.texi: Likewise.
41966         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
41967
41968 2008-09-16  Jim Meyering  <meyering@redhat.com>
41969
41970         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
41971         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
41972         a umask modification leak out of a subshell.  Otherwise, the
41973         opensolaris /bin/sh would be accepted and thus cause unwarranted
41974         failures in the coreutils test suite.
41975
41976 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
41977
41978         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
41979         to succeed.
41980
41981 2008-09-16  Jim Meyering  <meyering@redhat.com>
41982
41983         avoid spurious test failure when library is built without ACL support
41984         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
41985         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
41986         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
41987         * tests/test-copy-acl.sh: Likewise.
41988
41989 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41990
41991         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
41992         based on character occurrence counts.
41993
41994 2008-09-15  Eric Blake  <ebb9@byu.net>
41995
41996         tests: avoid some compiler warnings
41997         * tests/test-memchr.c (main): Pass NULL indirectly.
41998         * tests/test-closein.c (main): Avoid unused variable.
41999
42000 2008-09-15  Bruno Haible  <bruno@clisp.org>
42001
42002         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
42003         are missing on OpenBSD 4.0 individually.
42004         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42005
42006 2008-09-15  Bruno Haible  <bruno@clisp.org>
42007
42008         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
42009         * doc/posix-functions/strerror.texi: Mention also Cygwin.
42010         * doc/posix-functions/perror.texi: Likewise.
42011         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
42012         is missing.
42013         Reported by Eric Blake.
42014
42015         * lib/errno.in.h: Use replacement values >= 2000.
42016         Reported by Eric Blake.
42017
42018 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42019
42020         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
42021         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
42022         limit.
42023         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
42024         compareseq was aborted.
42025
42026 2008-09-14  Bruno Haible  <bruno@clisp.org>
42027
42028         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
42029         yvec_edit_count.
42030         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
42031         (fstrcmp_bounded): Simplify result computation accordingly.
42032
42033 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42034
42035         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
42036         (fstrcmp): Define in terms of fstrcmp_bounded.
42037         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
42038         lower_bound argument.
42039         Return quickly if the result is certainly < lower_bound.
42040         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
42041
42042 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42043
42044         * lib/diffseq.h (EARLY_ABORT): New macro.
42045         (compareseq): Change return type to bool. Return true when EARLY_ABORT
42046         evaluates to true.
42047
42048 2008-09-14  Bruno Haible  <bruno@clisp.org>
42049
42050         * modules/perror-tests: New file.
42051         * tests/test-perror.sh: New file.
42052         * tests/test-perror.c: New file.
42053
42054         New module 'perror'.
42055         * lib/stdio.in.h (perror): New declaration.
42056         * lib/perror.c: New file.
42057         * m4/perror.m4: New file.
42058         * modules/perror: New file.
42059         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
42060         * doc/posix-functions/perror.texi: Mention the perror module.
42061         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
42062         REPLACE_PERROR.
42063         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
42064         REPLACE_PERROR.
42065
42066 2008-09-14  Bruno Haible  <bruno@clisp.org>
42067
42068         * modules/stdio (Makefile.am): Reorder to match the order in
42069         lib/stdio.in.h.
42070         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42071
42072 2008-09-13  Bruno Haible  <bruno@clisp.org>
42073
42074         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
42075
42076 2008-09-13  Bruno Haible  <bruno@clisp.org>
42077
42078         Extend strerror to cover the added errno values.
42079         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
42080         (rpl_strerror): Provide error messages for the added errno values and
42081         for the WSA* values.
42082         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
42083         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
42084         strerror.
42085         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
42086         * modules/strerror (Depends-on): Add errno.
42087         * doc/posix-functions/strerror.texi: Document the change.
42088         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
42089         and EOVERFLOW.
42090
42091 2008-09-13  Bruno Haible  <bruno@clisp.org>
42092
42093         * modules/EOVERFLOW: Remove file.
42094         * m4/eoverflow.m4: Remove file.
42095         * modules/EOVERFLOW-tests: Remove file.
42096         * tests/test-EOVERFLOW.c: Remove file.
42097         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
42098         * modules/ftell (Depends-on): Likewise.
42099         * modules/getdelim (Depends-on): Likewise.
42100         * modules/getugroups (Depends-on): Likewise.
42101         * modules/poll (Depends-on): Likewise.
42102         * modules/snprintf (Depends-on): Likewise.
42103         * modules/sprintf-posix (Depends-on): Likewise.
42104         * modules/vasnprintf (Depends-on): Likewise.
42105         * modules/vasprintf (Depends-on): Likewise.
42106         * modules/vfprintf-posix (Depends-on): Likewise.
42107         * modules/vsnprintf (Depends-on): Likewise.
42108         * modules/vsprintf-posix (Depends-on): Likewise.
42109         * modules/xvasprintf (Depends-on): Likewise.
42110         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42111         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
42112         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
42113         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
42114         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42115         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
42116         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
42117         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
42118         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42119         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
42120         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
42121         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
42122         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42123         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
42124         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
42125         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
42126         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42127         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
42128         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
42129         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
42130         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42131         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
42132         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
42133         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
42134         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
42135         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42136         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
42137         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
42138         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
42139         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
42140         * MODULES.html.sh: Remove EOVERFLOW.
42141         * NEWS: Mention the change.
42142
42143 2008-09-13  Bruno Haible  <bruno@clisp.org>
42144
42145         * modules/errno-tests: New file.
42146         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
42147
42148         * lib/errno.in.h: New file.
42149         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
42150         * modules/errno: New file.
42151         * doc/posix-headers/errno.texi: Update documentation.
42152         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
42153
42154 2008-09-13  Bruno Haible  <bruno@clisp.org>
42155
42156         * tests/test-poll.c: Use #if for native Windows, rather than testing
42157         __MSVCRT__.
42158
42159 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42160             Bruno Haible  <bruno@clisp.org>
42161
42162         * lib/glob.c: Don't include <pwd.h> on native Windows.
42163         (WINDOWS32): New macro.
42164         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
42165
42166 2008-09-13  Bruno Haible  <bruno@clisp.org>
42167
42168         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
42169         (ETIMEDOUT): Remove macro.
42170         (glthread_cond_timedwait_multithreaded): New declaration.
42171         (glthread_cond_timedwait): Use it.
42172         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
42173         (glthread_cond_timedwait_multithreaded): New function.
42174
42175 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
42176
42177         * modules/poll-tests: Do not check for io.h.
42178         * tests/test-poll.c: Check for __MSVCRT__ instead.
42179
42180 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
42181
42182         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
42183         * modules/poll-tests: Add inet_pton, stdbool, sockets.
42184         * tests/test-poll.c: Use them.  Use _pipe on Windows.
42185
42186 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
42187
42188         * modules/poll-tests: New.
42189         * tests/test-poll.c: New.
42190
42191 2008-09-12  Eric Blake  <ebb9@byu.net>
42192
42193         frexp: test for NetBSD failure on -0.0
42194         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
42195         not all, bugs from NetBSD 3.0 have been fixed.
42196         * doc/posix-functions/frexp.texi (frexp): Document bug.
42197         Reported by Thomas Klausner.
42198
42199         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
42200         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
42201         literal -0.0.
42202         Reported by Jonathan C. Patschke <jp@centtech.com>.
42203
42204 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42205
42206         * lib/glthread/cond.h: Use dummy implementation also if
42207         USE_WIN32_THREADS.
42208
42209 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42210
42211         * modules/fnmatch-posix (License): Change to LGPLv2+.
42212         * modules/fnmatch-gnu (License): Likewise.
42213
42214 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42215
42216         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
42217
42218 2008-09-11  Jim Meyering  <meyering@redhat.com>
42219
42220         * users.txt: Add gtk-vnc.
42221
42222 2008-09-08  Simon Josefsson  <simon@josefsson.org>
42223
42224         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
42225         rotate amounts.
42226
42227         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
42228         required for 16-bit and 8-bit rotates.
42229         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
42230         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
42231         UINT8_MAX instead of hard-coded constants.
42232         Suggested by Paul Eggert.
42233
42234 2008-09-07  Bruno Haible  <bruno@clisp.org>
42235
42236         * tests/test-striconveh.c (main): Check behaviour when converting from
42237         UTF-7.
42238
42239         Make striconveh work better with stateful encodings.
42240         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
42241         that iconv does not increment the inptr when returning -1/EINVAL.
42242
42243 2008-09-07  Bruno Haible  <bruno@clisp.org>
42244
42245         * build-aux/config.rpath: Update according to libtool-2.2.6.
42246         * build-aux/config.libpath: Likewise.
42247
42248 2008-09-06  Bruno Haible  <bruno@clisp.org>
42249
42250         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
42251         * lib/freadptr.c (freadptr): Likewise.
42252         * lib/freadseek.c (freadptrinc): Likewise.
42253         Reported by Simon Josefsson.
42254
42255 2008-09-06  Bruno Haible  <bruno@clisp.org>
42256
42257         * modules/freadptr (License): Change to LGPLv2+.
42258         * modules/freadseek (License): Likewise.
42259         Suggested by Eric Blake.
42260
42261         * modules/memchr2 (License): Change to LGPLv2+.
42262         Approved by Eric Blake.
42263
42264 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42265             Bruno Haible  <bruno@clisp.org>
42266
42267         Make gnulib-tool work with native 'sed' on AIX.
42268         * gnulib-tool (sed_noop): New variable.
42269         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
42270         func_add_or_update, func_create_testdir): Use it to initialize sed
42271         script variables.
42272         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42273
42274 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
42275             Bruno Haible  <bruno@clisp.org>
42276
42277         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
42278         also works after #include directives.
42279
42280 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
42281
42282         getdate.y: reject an out-of-range timezone value
42283         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
42284         the range [-24...+24].  When specified with only one or two digits,
42285         * tests/test-getdate.c: Tests for the fix.
42286         * doc/getdate.texi: Document this change.
42287
42288 2008-09-03  Bruno Haible  <bruno@clisp.org>
42289
42290         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
42291
42292 2008-09-02  Simon Josefsson  <simon@josefsson.org>
42293
42294         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
42295         <bruce.korb@gmail.com> with ideas from Ben Pfaff
42296         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
42297         Blake <ebb9@byu.net>.
42298
42299         * tests/test-bitrotate.c: Add more test vectors.
42300
42301 2008-09-02  Eric Blake  <ebb9@byu.net>
42302
42303         vasnprintf-posix: handle large precision via %.*d
42304         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
42305         when handling it ourselves.
42306         * tests/test-vasnprintf-posix.c (test_function): Add test.
42307         * tests/test-snprintf-posix.h (test_function): Likewise.
42308         * tests/test-sprintf-posix.h (test_function): Likewise.
42309         * tests/test-vasprintf-posix.c (test_function): Likewise.
42310         Reported by Alain Guibert.
42311
42312 2008-09-01  Eric Blake  <ebb9@byu.net>
42313
42314         c-stack: make configure-time check more robust
42315         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
42316         successful sigaction call.
42317         Reported by Tom G. Christensen.
42318
42319 2008-09-01  Bruno Haible  <bruno@clisp.org>
42320
42321         New module 'findprog-lgpl'.
42322         * modules/findprog-lgpl: New file.
42323         * lib/findprog-lgpl.c: New file.
42324         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
42325         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
42326         to decide whether to use strdup or xstrdup, concatenated_filename or
42327         xconcatenated_filename.
42328
42329 2008-09-01  Bruno Haible  <bruno@clisp.org>
42330
42331         Split module 'concat-filename' into 'concat-filename' (LGPL) and
42332         'xconcat-filename' (GPL).
42333         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
42334         (License): Change to LGPLv2+.
42335         * modules/xconcat-filename: New file.
42336         * lib/concat-filename.h (concatenated_filename): Change specification.
42337         (xconcatenated_filename): New declaration.
42338         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
42339         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
42340         memory situations.
42341         * lib/xconcat-filename.c: New file.
42342         * NEWS: Mention the change.
42343         * lib/findprog.c: Include concat-filename.h, not filename.h.
42344         (find_in_path): Use xconcatenated_filename instead of
42345         concatenated_filename.
42346         * lib/javacomp.c: Include concat-filename.h, not filename.h.
42347         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
42348         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
42349         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
42350         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
42351         instead of concatenated_filename.
42352         * lib/javaexec.c: Include concat-filename.h, not filename.h.
42353         (execute_java_class): Use xconcatenated_filename instead of
42354         concatenated_filename.
42355         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
42356         * modules/javacomp (Depends-on): Likewise.
42357         * modules/javaexec (Depends-on): Likewise.
42358
42359 2008-09-01  Bruno Haible  <bruno@clisp.org>
42360
42361         Split module 'filename' into 'filename' and 'concat-filename'.
42362         * modules/filename: Keep only lib/filename.h.
42363         (License): Change to LGPLv2+.
42364         * modules/concat-filename: New file, extracted from modules/filename.
42365         * lib/filename.h (concatenated_filename): Remove declaration.
42366         * lib/concat-filename.h: New file, extracted from lib/filename.h.
42367         * lib/concat-filename.c: Include concat-filename.h.
42368         * NEWS: Mention the change.
42369
42370 2008-09-01  Simon Josefsson  <simon@josefsson.org>
42371
42372         * lib/bitrotate.h (rotl8, rotr8): Add.
42373
42374         * modules/bitrotate (configure.ac): Need
42375         AC_REQUIRE([AC_C_INLINE]).
42376         (Description): Mention stdint.h.  Reported by Bruno Haible
42377         <bruno@clisp.org>.
42378
42379         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
42380         Paolo Bonzini <bonzini@gnu.org>.
42381
42382 2008-08-31  Bruno Haible  <bruno@clisp.org>
42383
42384         Assume Solaris specific bi-arch conventions on Solaris systems.
42385         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
42386         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
42387         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
42388         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
42389         like acl_libdirstem.
42390         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
42391         acl_libdirstem.
42392         * NEWS: Mention the change.
42393         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
42394
42395 2008-08-31  Jim Meyering  <meyering@redhat.com>
42396
42397         * lib/strftime.h: Add comments describing the two added arguments.
42398
42399         remove duplicate #include directives
42400         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
42401         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
42402
42403 2008-08-31  Bruno Haible  <bruno@clisp.org>
42404
42405         New module 'sigpipe-die'.
42406         * modules/sigpipe-die: New file.
42407         * lib/sigpipe-die.h: New file.
42408         * lib/sigpipe-die.c: New file.
42409         * MODULES.html.sh (Signal handling): Add sigpipe-die.
42410
42411 2008-08-31  Bruno Haible  <bruno@clisp.org>
42412
42413         Don't override previously installed signal handlers.
42414         * lib/fatal-signal.c (saved_sigactions): New variable.
42415         (uninstall_handlers): Reset the signal to the saved handler, not
42416         to SIG_DFL (except when ignored).
42417         (install_handlers): Save the previous handlers.
42418
42419 2008-08-30  Bruno Haible  <bruno@clisp.org>
42420
42421         * gnulib-tool (func_reset_sigpipe): New function.
42422         (func_get_automake_snippet, func_modules_transitive_closure,
42423         func_import): Invoke it before a join command that reads from stdin,
42424         to avoid "echo: write error: Broken pipe" error messages on stderr.
42425         Reported by Sam Steingold <sds@gnu.org>.
42426
42427 2008-08-30  Bruno Haible  <bruno@clisp.org>
42428
42429         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
42430         Code copied from m4/open.m4.
42431         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
42432         access and the filename ends in a slash. Code copied from lib/open.c.
42433         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
42434         * tests/test-fopen.c (main): Check against bug with trailing slash.
42435
42436 2008-08-29  Bruno Haible  <bruno@clisp.org>
42437
42438         Avoid some "gcc -pedantic" warnings.
42439         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
42440         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
42441         * lib/dirent.in.h: Likewise.
42442         * lib/fcntl.in.h: Likewise.
42443         * lib/float.in.h: Likewise.
42444         * lib/iconv.in.h: Likewise.
42445         * lib/inttypes.in.h: Likewise.
42446         * lib/locale.in.h: Likewise.
42447         * lib/math.in.h: Likewise.
42448         * lib/netinet_in.in.h: Likewise.
42449         * lib/search.in.h: Likewise.
42450         * lib/signal.in.h: Likewise.
42451         * lib/stdarg.in.h: Likewise.
42452         * lib/stdint.in.h: Likewise.
42453         * lib/stdio.in.h: Likewise.
42454         * lib/stdlib.in.h: Likewise.
42455         * lib/string.in.h: Likewise.
42456         * lib/strings.in.h: Likewise.
42457         * lib/sys_select.in.h: Likewise.
42458         * lib/sys_socket.in.h: Likewise.
42459         * lib/sys_stat.in.h: Likewise.
42460         * lib/sys_time.in.h: Likewise.
42461         * lib/sysexits.in.h: Likewise.
42462         * lib/time.in.h: Likewise.
42463         * lib/unistd.in.h: Likewise.
42464         * lib/wchar.in.h: Likewise.
42465         * lib/wctype.in.h: Likewise.
42466         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
42467         * modules/fchdir (Makefile.am): Likewise.
42468         * modules/fcntl (Makefile.am): Likewise.
42469         * modules/float (Makefile.am): Likewise.
42470         * modules/iconv_open (Makefile.am): Likewise.
42471         * modules/inttypes (Makefile.am): Likewise.
42472         * modules/locale (Makefile.am): Likewise.
42473         * modules/math (Makefile.am): Likewise.
42474         * modules/netinet_in (Makefile.am): Likewise.
42475         * modules/search (Makefile.am): Likewise.
42476         * modules/signal (Makefile.am): Likewise.
42477         * modules/stdarg (Makefile.am): Likewise.
42478         * modules/stdint (Makefile.am): Likewise.
42479         * modules/stdio (Makefile.am): Likewise.
42480         * modules/stdlib (Makefile.am): Likewise.
42481         * modules/string (Makefile.am): Likewise.
42482         * modules/strings (Makefile.am): Likewise.
42483         * modules/sys_select (Makefile.am): Likewise.
42484         * modules/sys_socket (Makefile.am): Likewise.
42485         * modules/sys_stat (Makefile.am): Likewise.
42486         * modules/sys_time (Makefile.am): Likewise.
42487         * modules/sysexits (Makefile.am): Likewise.
42488         * modules/time (Makefile.am): Likewise.
42489         * modules/unistd (Makefile.am): Likewise.
42490         * modules/wchar (Makefile.am): Likewise.
42491         * modules/wctype (Makefile.am): Likewise.
42492         Reported by Reuben Thomas <rrt@sc3d.org>.
42493
42494 2008-08-29  Bruno Haible  <bruno@clisp.org>
42495
42496         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
42497         any more.
42498
42499 2008-08-29  Simon Josefsson  <simon@josefsson.org>
42500
42501         * MODULES.html.sh (Misc): Add bitrotate.
42502
42503         * modules/bitrotate: New file.
42504
42505         * lib/bitrotate.h: New file.
42506
42507         * modules/bitrotate-tests: New file.
42508
42509         * tests/test-bitrotate.c: New file.
42510
42511         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
42512         on the bitrotate module.
42513
42514         * lib/arctwo.c: Use new bitrotate module.
42515
42516 2008-08-29  Jim Meyering  <meyering@redhat.com>
42517
42518         bootstrap: merge changes from coreutils
42519         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
42520         of copied files.  Remove a kludge, now that this is fixed.
42521         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
42522         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
42523         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
42524
42525 2008-08-29  Bruno Haible  <bruno@clisp.org>
42526
42527         * MODULES.html.sh: Remove --cvs-urls option.
42528
42529 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
42530
42531         maint.mk: adjust to file name change
42532         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
42533
42534 2008-08-28  Jim Meyering  <meyering@redhat.com>
42535
42536         * modules/getndelim2 (License): Relicense to LGPLv2+.
42537         Approved by Richard Stallman for the version of 1995, and by
42538         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
42539
42540 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
42541
42542         * lib/getdelim.c (flockfile, funlockfile): Make all of them
42543         dummy if one is not available.  Do not touch them if
42544         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
42545         (getc_maybe_unlocked): New.
42546         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
42547
42548 2008-08-26  Eric Blake  <ebb9@byu.net>
42549
42550         doc/INSTALL: resync from autoconf
42551         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
42552         (INSTALL_PRELUDE): Delete; this is done more efficiently by
42553         moving...
42554         * install.texi [!autoconf]: ...here.  Resync from autoconf.
42555         * INSTALL: Regenerate.
42556         * INSTALL.ISO: New file.
42557         * INSTALL.UTF-8: Likewise.
42558
42559 2008-08-26  Jim Meyering  <meyering@redhat.com>
42560
42561         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
42562         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
42563         these definitions conditional, so that they may be overridden, too.
42564
42565 2008-08-26  Bruno Haible  <bruno@clisp.org>
42566
42567         Generate INSTALL file variants with prettier quotes.
42568         * doc/Makefile (INSTALL_PRELUDE): New macro.
42569         (INSTALL): Use it.
42570         (INSTALL.ISO, INSTALL.UTF-8): New rules.
42571
42572 2008-08-26  Bruno Haible  <bruno@clisp.org>
42573
42574         Run makeinfo in an English locale.
42575         * doc/Makefile (MAKEINFO): New variable.
42576
42577 2008-08-26  Bruno Haible  <bruno@clisp.org>
42578
42579         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
42580         Suggested by Eric Blake.
42581
42582 2008-08-25  Bruno Haible  <bruno@clisp.org>
42583
42584         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
42585
42586 2008-08-25  Eric Blake  <ebb9@byu.net>
42587
42588         c-stack: test that stack overflow can be caught
42589         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
42590         that platform allows handling stack overflow; at least OS/2 EMX
42591         has sigaltstack, but crashes before transferring control to
42592         handler on stack overflow.
42593         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
42594         check for HAVE_STACK_OVERFLOW_HANDLING.
42595         Reported by Elbert Pol.
42596
42597 2008-08-25  Bruno Haible  <bruno@clisp.org>
42598
42599         * doc/posix-functions/strftime.texi: Fix description of strftime
42600         module.
42601
42602 2008-08-24  Bruno Haible  <bruno@clisp.org>
42603
42604         * tests/uniwidth/test-uc_width2.c: New file.
42605         * tests/uniwidth/test-uc_width2.sh: New file.
42606         * modules/uniwidth/width-tests (Files): Add the new files.
42607         (TESTS): Add uniwidth/test-uc_width2.sh.
42608         (TESTS_ENVIRONMENT): New variable.
42609         (check_PROGRAMS): Add test-uc_width2.
42610         (test_uc_width2_SOURCES): New variable.
42611
42612         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
42613         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
42614         not 0x00AB.
42615         Reported by Alexander V. Lukyanov <lav@netis.ru>.
42616
42617 2008-08-22  Eric Blake  <ebb9@byu.net>
42618
42619         test-lock, test-tls: mention why a test is skipped
42620         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
42621         skipped.
42622         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
42623
42624         count-one-bits: relax license
42625         * modules/count-one-bits (License): Relicense to LGPLv2+.
42626         Suggested by Ludovic Courtès, approved by Ben Pfaff.
42627
42628 2008-08-22  Andreas Schwab  <schwab@suse.de>
42629
42630         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
42631         Remove spurious space in assignment.
42632
42633 2008-08-21  Simon Josefsson  <simon@josefsson.org>
42634
42635         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
42636         Paul Eggert <eggert@CS.UCLA.EDU>.
42637
42638 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
42639
42640         * modules/gettext: Add m4/threadlib.m4.
42641
42642 2008-08-19  Eric Blake  <ebb9@byu.net>
42643
42644         test-c-stack: fix compilation failure on FreeBSD 5.0
42645         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
42646         headers before <sys/resource.h>.
42647         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
42648         the bug.
42649         Reported by Nelson H. F. Beebe.
42650
42651         strverscmp: migrate from "strverscmp.h" to <string.h>
42652         * modules/string (Makefile.am): Add new hooks.
42653         * modules/strverscmp (Files): Remove strverscmp.h.
42654         (Depends-on): Add string.
42655         (configure.ac): Add indicator.
42656         (Include): Mention new header.
42657         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
42658         defaults.
42659         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
42660         results.
42661         * lib/strverscmp.h: Delete.
42662         * lib/string.in.h (strverscmp): Provide declaration, when needed.
42663         * tests/test-strverscmp.c (includes): Adjust client.
42664         * lib/check-version.c (includes): Likewise.
42665         * NEWS: Document the change.
42666
42667         strverscmp: add unit test
42668         * modules/strverscmp-tests: New file.
42669         * tests/test-strverscmp.c: Likewise.
42670
42671 2008-08-19  Simon Josefsson  <simon@josefsson.org>
42672
42673         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
42674         regarding Windows crypto stuff, from Mono.
42675
42676 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
42677
42678         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
42679         if present, for intel RND.  Return error on failures.
42680
42681 2008-08-18  Ben Pfaff  <blp@gnu.org>
42682
42683         gitlog-to-changelog: give better diagnostic for failed pipe-open
42684         * build-aux/gitlog-to-changelog: Improve error message: suggest
42685         that the version of Git may be too old.
42686
42687 2008-08-18  Simon Josefsson  <simon@josefsson.org>
42688
42689         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
42690         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
42691
42692 2008-08-18  Bruno Haible  <bruno@clisp.org>
42693
42694         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
42695         pthread_in_use().
42696
42697 2008-08-18  Bruno Haible  <bruno@clisp.org>
42698
42699         * lib/glthread/threadlib.c: Include <pthread.h>.
42700
42701 2008-08-18  Bruno Haible  <bruno@clisp.org>
42702
42703         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
42704         glthread_recursive_lock_* macros.
42705         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
42706         Fix syntax error.
42707
42708 2008-08-18  Bruno Haible  <bruno@clisp.org>
42709
42710         * lib/glthread/thread.c: Avoid forcing a context switch right after
42711         thread creation.
42712
42713 2008-08-17  Bruno Haible  <bruno@clisp.org>
42714
42715         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
42716         * lib/glthread/thread.h: Provide Win32 specific implementation.
42717         * modules/thread (Files): Add lib/glthread/thread.c.
42718         (Depends-on): Add lock.
42719         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
42720
42721 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42722
42723         New module 'yield'.
42724         * modules/yield: New file.
42725         * lib/glthread/yield.h: New file.
42726         * m4/yield.m4: New file.
42727         * MODULES.html.sh (Multithreading): Add yield.
42728
42729 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42730
42731         New module 'thread'.
42732         * modules/thread: New file.
42733         * lib/glthread/thread.h: New file.
42734         * m4/thread.m4: New file.
42735         * MODULES.html.sh (Multithreading): Add thread.
42736
42737 2008-08-17  Bruno Haible  <bruno@clisp.org>
42738
42739         * lib/glthread/lock.h: Include <stdlib.h> always.
42740         * lib/glthread/tls.h: Likewise.
42741         * lib/glthread/cond.h: Likewise.
42742
42743 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42744
42745         New module 'cond'.
42746         * modules/cond: New file.
42747         * lib/glthread/cond.h: New file.
42748         * lib/glthread/cond.c: New file.
42749         * m4/cond.m4: New file.
42750         * MODULES.html.sh (Multithreading): Add cond.
42751
42752 2008-08-16  Eric Blake  <ebb9@byu.net>
42753
42754         c-stack: fix regression on Irix 5.3 from 2008-06-21
42755         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
42756         sa_sigaction...
42757         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
42758         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
42759         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
42760         * modules/signal (Makefile.am): Use the value.
42761         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
42762         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
42763         * doc/posix-headers/signal.texi (signal.h): Document this
42764         portability issue.
42765         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
42766         Reported by Tom G. Christensen.
42767
42768 2008-08-17  Bruno Haible  <bruno@clisp.org>
42769
42770         New module 'threadlib'.
42771         * modules/threadlib: New file.
42772         * lib/glthread/threadlib.c: New file, extracted from
42773         lib/glthread/lock.c.
42774         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
42775         functions.
42776         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
42777         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
42778         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
42779         macros.
42780         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
42781         (gl_DISABLE_THREADS): Remove macro.
42782         * modules/lock (Files): Remove build-aux/config.rpath.
42783         (Depends-on): Remove havelib. Add threadlib.
42784         (configure.ac-early): Remove section.
42785         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
42786         * modules/tls (Depends-on): Remove lock. Add threadlib.
42787         (Link): New section, copied from threadlib.
42788         * MODULES.html.sh (Multithreading): Add threadlib.
42789
42790 2008-08-14  Bruno Haible  <bruno@clisp.org>
42791
42792         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
42793         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
42794         glthread_rwlock_unlock, glthread_rwlock_destroy,
42795         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
42796         glthread_recursive_lock_destroy): Define as macros always.
42797         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
42798         glthread_lock_lock.
42799         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
42800         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
42801         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
42802         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
42803         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
42804         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
42805         (glthread_recursive_lock_lock_func): Renamed from
42806         glthread_recursive_lock_lock.
42807         (glthread_recursive_lock_unlock_func): Renamed from
42808         glthread_recursive_lock_unlock.
42809         (glthread_recursive_lock_destroy_func): Renamed from
42810         glthread_recursive_lock_destroy.
42811
42812 2008-08-14  Bruno Haible  <bruno@clisp.org>
42813
42814         * lib/glthread/lock.h: Renamed from lib/lock.h.
42815         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
42816         * lib/glthread/tls.h: Renamed from lib/tls.h.
42817         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
42818         * lib/fstrcmp.c: Update includes.
42819         * lib/strsignal.c: Update includes.
42820         * modules/lock (Files, Makefile.am): Update.
42821         (Include): Change to "glthread/lock.h".
42822         * modules/tls (Files, Makefile.am): Update.
42823         (Include): Change to "glthread/tls.h".
42824         * tests/test-lock.c: Update includes.
42825         * tests/test-tls.c: Update includes.
42826         * NEWS: Mention the renamed header files.
42827
42828 2008-08-11  Jim Meyering  <meyering@redhat.com>
42829
42830         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
42831
42832 2008-08-11  Eric Blake  <ebb9@byu.net>
42833
42834         test-c-stack: avoid C99-ism
42835         * tests/test-c-stack.c (main): Fix whitespace, move declaration
42836         before statement.
42837         Reported by Alain Guibert.
42838
42839 2008-08-10  Jim Meyering  <meyering@redhat.com>
42840
42841         ensure that return value of uinttostr et al are not ignored
42842         * lib/inttostr.h (__GNUC_PREREQ): Define.
42843         (__attribute_warn_unused_result__): Define.
42844         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
42845
42846 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
42847
42848         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
42849         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
42850
42851 2008-08-07  Jim Meyering  <meyering@redhat.com>
42852
42853         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
42854
42855         * modules/mkstemp (License): Relicense under LGPLv2+.
42856         * modules/tempname (License): Likewise.
42857
42858 2008-08-06  Bruno Haible  <bruno@clisp.org>
42859
42860         * lib/poll.c (poll): Further micro-optimization.
42861
42862 2008-08-06  Jim Meyering  <meyering@redhat.com>
42863
42864         inet_pton.c: use locale-independent tolower
42865         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
42866         (inet_pton6): Use c_tolower rather than tolower.
42867         * modules/inet_pton (Depends-on): Add c-ctype.
42868
42869 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
42870
42871         * lib/poll.c (poll): Avoid division when timeout is 0, cache
42872         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
42873
42874 2008-08-06  Jim Meyering  <meyering@redhat.com>
42875
42876         * modules/inet_pton (License): Relicense under LGPLv2+.
42877
42878 2008-08-03  Bruno Haible  <bruno@clisp.org>
42879
42880         Additional non-aborting API for lock and tls.
42881         * lib/lock.h: Include <errno.h>.
42882         (glthread_lock_init): New macro/function.
42883         (gl_lock_init): Define as wrapper around glthread_lock_init.
42884         (glthread_lock_lock): New macro/function.
42885         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
42886         (glthread_lock_unlock): New macro/function.
42887         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
42888         (glthread_lock_destroy): New macro/function.
42889         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
42890         (glthread_rwlock_init): New macro/function.
42891         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
42892         (glthread_rwlock_rdlock): New macro/function.
42893         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
42894         (glthread_rwlock_wrlock): New macro/function.
42895         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
42896         (glthread_rwlock_unlock): New macro/function.
42897         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
42898         (glthread_rwlock_destroy): New macro/function.
42899         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
42900         (glthread_recursive_lock_init): New macro/function.
42901         (gl_recursive_lock_init): Define as wrapper around
42902         glthread_recursive_lock_init.
42903         (glthread_recursive_lock_lock): New macro/function.
42904         (gl_recursive_lock_lock): Define as wrapper around
42905         glthread_recursive_lock_lock.
42906         (glthread_recursive_lock_unlock): New macro/function.
42907         (gl_recursive_lock_unlock): Define as wrapper around
42908         glthread_recursive_lock_unlock.
42909         (glthread_recursive_lock_destroy): New macro/function.
42910         (gl_recursive_lock_destroy): Define as wrapper around
42911         glthread_recursive_lock_destroy.
42912         (glthread_once): New macro/function.
42913         (gl_once): Define as wrapper around glthread_once.
42914         Update function declarations.
42915         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
42916         glthread_rwlock_init. Return error code.
42917         (glthread_rwlock_rdlock_multithreaded): Renamed from
42918         glthread_rwlock_rdlock. Return error code.
42919         (glthread_rwlock_wrlock_multithreaded): Renamed from
42920         glthread_rwlock_wrlock. Return error code.
42921         (glthread_rwlock_unlock_multithreaded): Renamed from
42922         glthread_rwlock_unlock. Return error code.
42923         (glthread_rwlock_destroy_multithreaded): Renamed from
42924         glthread_rwlock_destroy. Return error code.
42925         (glthread_recursive_lock_init_multithreaded): Renamed from
42926         glthread_recursive_lock_init. Return error code.
42927         (glthread_recursive_lock_lock_multithreaded): Renamed from
42928         glthread_recursive_lock_lock. Return error code.
42929         (glthread_recursive_lock_unlock_multithreaded): Renamed from
42930         glthread_recursive_lock_unlock. Return error code.
42931         (glthread_recursive_lock_destroy_multithreaded): Renamed from
42932         glthread_recursive_lock_destroy. Return error code.
42933         (glthread_once_call): Make static.
42934         (glthread_once_multithreaded): Renamed from glthread_once.
42935         * lib/tls.h: Include <errno.h>.
42936         (glthread_tls_key_init): New macro/function.
42937         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
42938         (glthread_tls_set): New macro/function.
42939         (gl_tls_set): Define as wrapper around glthread_tls_set.
42940         (glthread_tls_key_destroy): New macro/function.
42941         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
42942         Update function declarations.
42943         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
42944         glthread_tls_get.
42945         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42946
42947 2008-08-04  Eric Blake  <ebb9@byu.net>
42948
42949         gnumakefile: use space, not TAB, outside of targets
42950         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
42951
42952 2008-08-02  Jim Meyering  <meyering@redhat.com>
42953
42954         getdate.y: avoid locale-dependent date parsing failure
42955         In Turkish locales, getdate would fail to recognize keywords
42956         containing a lowercase "i".  The solution is not to rely on
42957         locale-sensitive case-conversion.
42958         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
42959         (lookup_word): Use c_toupper in place of toupper.
42960         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
42961         Reported by Vefa Bicakci <bicave@superonline.com> in
42962         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
42963         * modules/getdate (Depends-on): Add c-ctype.
42964
42965 2008-08-02  Bruno Haible  <bruno@clisp.org>
42966
42967         * gnulib-tool (func_import): When updating or creating a .gitignore
42968         file, prepend each added line with a slash, and ignore leading slashes
42969         from the existing lines.
42970         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
42971
42972 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42973
42974         Portability fix for GNU make 3.79.1.
42975         * top/GNUmakefile: Avoid 'else COND', which older GNU make
42976         versions do not understand.
42977
42978 2008-08-01  Bruno Haible  <bruno@clisp.org>
42979
42980         Work around bug of HP-UX 10.20 cc with -0.0 literal.
42981         * tests/test-isnanf.h (zero): New variable.
42982         (main): Avoid literal -0.0f.
42983         * tests/test-isnand.h (zero): New variable.
42984         (main): Avoid literal -0.0.
42985         * tests/test-isnanl.h (zero): New variable.
42986         (main): Avoid literal -0.0L.
42987         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
42988         (test_float, test_double, test_long_double): Avoid literals -0.0f,
42989         -0.0, -0.0L.
42990         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
42991         (test_signbitd): Avoid literal -0.0.
42992         (test_signbitl): Avoid literal -0.0L.
42993         * tests/test-ceilf1.c (zero): New variable.
42994         (main): Avoid literal -0.0f.
42995         * tests/test-ceill.c (zero): New variable.
42996         (main): Avoid literal -0.0L.
42997         * tests/test-floorf1.c (zero): New variable.
42998         (main): Avoid literal -0.0f.
42999         * tests/test-floorl.c (zero): New variable.
43000         (main): Avoid literal -0.0L.
43001         * tests/test-roundf1.c (zero): New variable.
43002         (main): Avoid literal -0.0f.
43003         * tests/test-round1.c (zero): New variable.
43004         (main): Avoid literal -0.0.
43005         * tests/test-roundl.c (zero): New variable.
43006         (main): Avoid literal -0.0L.
43007         * tests/test-truncf1.c (zero): New variable.
43008         (main): Avoid literal -0.0f.
43009         * tests/test-trunc1.c (zero): New variable.
43010         (main): Avoid literal -0.0.
43011         * tests/test-truncl.c (zero): New variable.
43012         (main): Avoid literal -0.0L.
43013         * tests/test-frexp.c (zero): New variable.
43014         (main): Avoid literal -0.0.
43015         * tests/test-frexpl.c (zero): New variable.
43016         (main): Avoid literal -0.0L.
43017         * tests/test-ldexpl.c (zero): New variable.
43018         (main): Avoid literal -0.0L.
43019         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
43020         (zerod, zerol): New variables.
43021         (test_function): Avoid literals -0.0, -0.0L.
43022         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
43023         (zerod, zerol): New variables.
43024         (test_function): Avoid literals -0.0, -0.0L.
43025         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
43026         (zerod, zerol): New variables.
43027         (test_function): Avoid literals -0.0, -0.0L.
43028         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
43029         (zerod, zerol): New variables.
43030         (test_function): Avoid literals -0.0, -0.0L.
43031         * tests/test-strtod.c (zero): New variable.
43032         (main): Avoid literal -0.0.
43033         Reported by Jonathan C. Patschke <jp@centtech.com>.
43034
43035 2008-07-31  Jim Meyering  <meyering@redhat.com>
43036
43037         sha256.h: correct definition of SHA224_DIGEST_SIZE
43038         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
43039         Reported by Paulie Pena IV <paulie4@gmail.com>.
43040         Define as 224 / 8, rather than as a literal.
43041         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
43042         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
43043         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
43044
43045 2008-07-31  Bruno Haible  <bruno@clisp.org>
43046
43047         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
43048         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
43049         Reported by Jonathan Patschke <jp@centtech.com>.
43050
43051 2008-07-31  Bruno Haible  <bruno@clisp.org>
43052
43053         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
43054         Reported by Paolo Bonzini <bonzini@gnu.org>.
43055
43056 2008-07-30  Eric Blake  <ebb9@byu.net>
43057
43058         test-strtod: allow compilation without -lm
43059         * tests/test-strtod.c (main): Avoid link dependence on fabs.
43060         Reported by Dennis Clarke <blastwave@gmail.com>.
43061
43062 2008-07-28  Jim Meyering  <meyering@redhat.com>
43063
43064         bootstrap: work also when there are no .po files in po/
43065         * build-aux/bootstrap (update_po_files): Complete the change
43066         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
43067
43068 2008-07-27  Jim Meyering  <meyering@redhat.com>
43069
43070         * users.txt: Add zile.
43071
43072 2008-07-26  Ben Pfaff  <blp@gnu.org>
43073
43074         Add missing dependencies on new m4/exponent[fdl].m4 files.
43075         * modules/isnanf-nolibm: Add m4/exponentf.m4.
43076         * modules/isnand-nolibm: Add m4/exponentd.m4.
43077         * modules/isnanl-nolibm: Add m4/exponentl.m4.
43078         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
43079         m4/isnan[fdl].m4, because the macros actually used moved.
43080         Reported by Jim Meyering.
43081
43082 2008-07-14  Ben Pfaff  <blp@gnu.org>
43083
43084         Add isinf module.
43085         * lib/isinf.c: New file.
43086         * lib/math.in.h: Define isinf macro if we have decided to replace
43087         it.
43088         * m4/isinf.m4: New file.
43089         * m4/math_h.m4: Initialize and substitute variables for isinf
43090         module.
43091         * modules/isinf: New file.
43092         * modules/isinf-tests: New file.
43093         * modules/math: Add substitutions for new module.
43094         * tests/test-isinf.c: New file.
43095         * doc/posix-functions/isinf.texi: Mention new module.
43096         * MODULES.html.sh: Mention new module.
43097
43098 2008-07-14  Ben Pfaff  <blp@gnu.org>
43099
43100         Factor out some macros for use by additional modules.
43101         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
43102         exponentf.m4.
43103         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
43104         exponentd.m4.
43105         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
43106         file exponentl.m4.
43107         * m4/exponentf.m4: New file.
43108         * m4/exponentd.m4: New file.
43109         * m4/exponentl.m4: New file.
43110         * modules/isnanf: Use new file m4/exponentf.m4.
43111         * modules/isnand: Use new file m4/exponentd.m4.
43112         * modules/isnanl: Use new file m4/exponentl.m4.
43113
43114 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
43115
43116         mktime.c: normalize tp->tm_isdst value to -1/0/1.
43117         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
43118         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
43119         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
43120
43121         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
43122         readlink on platforms without PATH_MAX.
43123
43124 2008-07-21  Eric Blake  <ebb9@byu.net>
43125
43126         Warn, not fail, on stale version.
43127         * top/GNUmakefile (_curr-ver): Tone down previous patch.
43128
43129         Don't allow installation with stale devel version number.
43130         * top/GNUmakefile (_is-install-target): New macro.
43131         (_curr-ver): Forbid installation with stale version number.
43132
43133 2008-07-20  Bruno Haible  <bruno@clisp.org>
43134
43135         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
43136         TESTS_ENVIRONMENT.
43137         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
43138
43139 2008-07-20  Bruno Haible  <bruno@clisp.org>
43140
43141         * lib/c-stack.h (c_stack_action): Add documentation.
43142         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
43143
43144 2008-07-20  Bruno Haible  <bruno@clisp.org>
43145
43146         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
43147         * modules/readlink (License): Likewise.
43148
43149 2008-07-17  Eric Blake  <ebb9@byu.net>
43150
43151         * modules/c-stack (Link): Fix typo.
43152
43153         Make c-stack use libsigsegv, when available.
43154         * modules/c-stack (Depends-on): Add libsigsegv.
43155         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
43156         needed.
43157         * lib/c-stack.c (SIGSTKSZ): Define fallback.
43158         (segv_handler, overflow_handler, c_stack_action)
43159         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
43160         implementation when libsigsegv is available, but only when using
43161         the library is necessary.
43162         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
43163         comment, explaining why XSI check fails on Linux.
43164         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
43165         * tests/test-c-stack2.sh: Tweak skip message.
43166         * NEWS: Document new link-time requirements.
43167
43168 2008-07-16  Eric Blake  <ebb9@byu.net>
43169
43170         c-stack: Expose false positives when not using libsigsegv.
43171         * modules/c-stack-tests (Files): Expand test.
43172         * tests/test-c-stack.c (main): Add means to conditionally trigger
43173         non-overflow SIGSEGV.
43174         * tests/test-c-stack2.sh: New file.
43175
43176 2008-07-14  Bruno Haible  <bruno@clisp.org>
43177
43178         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
43179         Reported by Eric Blake.
43180
43181 2008-07-14  Sam Steingold  <sds@gnu.org>
43182             Bruno Haible  <bruno@clisp.org>
43183
43184         New module libsigsegv.
43185         * modules/libsigsegv: New file.
43186         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
43187         modifications.
43188         * MODULES.html.sh (Signal handling): New section.
43189
43190 2008-07-14  Bruno Haible  <bruno@clisp.org>
43191
43192         * modules/unictype/ctype-* (Description): Add the word "function".
43193         Improves the resulting doc in MODULES.html.
43194
43195 2008-07-12  Ben Pfaff  <blp@gnu.org>
43196
43197         Add longlong module.
43198         * modules/longlong: New file.
43199
43200 2008-07-12  Bruno Haible  <bruno@clisp.org>
43201
43202         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
43203         to empty.
43204
43205 2008-07-10  Ben Pfaff  <blp@gnu.org>
43206
43207         Add isnan module.
43208         * doc/posix-functions/isnan.texi: Mention new module.
43209         * lib/math.in.h: Define isnan macro if we have decided to replace
43210         it.
43211         * m4/isnan.m4: New file.
43212         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
43213         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
43214         also.
43215         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
43216         redundancy.
43217         * m4/math_h.m4: Initialize and substitute variables for isnan
43218         module.
43219         * modules/isnan: New file.
43220         * modules/isnan-tests: New file.
43221         * modules/math: Add substitutions for new module.
43222         * tests/test-isnan.c: New file.
43223         * MODULES.html.sh: Mention new module.
43224
43225 2008-07-10  Ben Pfaff  <blp@gnu.org>
43226
43227         Add isnanf module.
43228         * lib/isnanf.m4: New file.
43229         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
43230         (gl_HAVE_ISNANF_IN_LIBM): New macro.
43231         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
43232         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
43233         * modules/isnanf: New file.
43234         * modules/isnanf-tests: New file.
43235         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
43236         files.
43237         * tests/test-isnanf-nolibm.c: factored most of its contents into
43238         new file tests/test-isnanf.h.
43239         * tests/test-isnanf.h: New file.
43240         * tests/test-isnanf.c: New file.
43241         * MODULES.html.sh: Mention new module.
43242         * doc/glibc-functions/isnanf.texi: Mention new module.
43243
43244 2008-07-10  Ben Pfaff  <blp@gnu.org>
43245
43246         Add isnand module.
43247         * lib/isnand.h: New file.
43248         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
43249         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
43250         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
43251         functionality also.
43252         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
43253         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
43254         (gl_HAVE_ISNAND_IN_LIBM): New macro.
43255         * modules/isnand: New file.
43256         * modules/isnand-tests: New file.
43257         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
43258         files.
43259         * tests/test-isnand-nolibm.c: factored most of its contents into
43260         new file tests/test-isnand.h.
43261         * tests/test-isnand.h: New file.
43262         * tests/test-isnand.c: New file.
43263         * MODULES.html.sh: Mention new module.
43264
43265 2008-07-10  Ben Pfaff  <blp@gnu.org>
43266
43267         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
43268         * lib/isnand.h: Rename lib/isnand-nolibm.h.
43269         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
43270         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
43271         * modules/isnanf-nolibm: Update references to renamed files.
43272         * modules/isnand-nolibm: Likewise.
43273         * modules/isnanf-nolibm-tests: Likewise.
43274         * modules/isnand-nolibm-tests: Likewise.
43275         * lib/frexp.c: Likewise.
43276         * lib/isfinite.c: Likewise.
43277         * lib/signbitd.c: Likewise.
43278         * lib/signbitf.c: Likewise.
43279         * lib/vasnprintf.c: Likewise.
43280         * tests/test-ceilf1.c: Likewise.
43281         * tests/test-ceilf2.c: Likewise.
43282         * tests/test-floorf1.c: Likewise.
43283         * tests/test-floorf2.c: Likewise.
43284         * tests/test-frexp.c: Likewise.
43285         * tests/test-round1.c: Likewise.
43286         * tests/test-round2.c: Likewise.
43287         * tests/test-roundf1.c: Likewise.
43288         * tests/test-strtod.c: Likewise.
43289         * tests/test-trunc1.c: Likewise.
43290         * tests/test-trunc2.c: Likewise.
43291         * tests/test-truncf1.c: Likewise.
43292         * tests/test-truncf2.c: Likewise.
43293         * NEWS: Mention the renamed header files.
43294
43295 2008-07-11  Jim Meyering  <meyering@redhat.com>
43296
43297         vc-list-files: make the last-resort awk code more portable
43298         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
43299         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
43300         does not support it.
43301
43302 2008-07-10  Eric Blake  <ebb9@byu.net>
43303
43304         Work with tar's bootstrap.
43305         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
43306         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
43307         an m4 comment.
43308
43309 2008-07-09  Jim Meyering  <meyering@redhat.com>
43310
43311         posix-shell.m4: fix typo that made this test malfunction
43312         * m4/posix-shell.m4: Remove capitalization in variable name.
43313
43314 2008-07-08  Bruno Haible  <bruno@clisp.org>
43315
43316         * m4/onceonly.m4: Update comments.
43317         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43318
43319 2008-07-04  Jim Meyering  <meyering@redhat.com>
43320
43321         * users.txt: Add vc-dwim.
43322         (bison, coreutils): Use the gitweb URL.
43323
43324 2008-07-03  Jim Meyering  <meyering@redhat.com>
43325
43326         * users.txt: Add libffcall.  From Sam Steingold.
43327
43328 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
43329
43330         getdate.y: do not ignore TZ with relative day, month or year offset
43331         * lib/getdate.y (get_date): Move the tz-handling block to follow the
43332         relative-date-handling, since otherwise, the latter would clobber the
43333         sole output (an updated Start value) of the tz-handling block.
43334         * tests/test-getdate.c: Tests for the fix
43335
43336 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43337
43338         Recognize 'foo_LIBRARIES += libgnu.a'.
43339         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
43340         makefile snippet has already specified an installation location,
43341         also using '+='.
43342
43343 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
43344
43345         getdate.y: factor out common actions
43346         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
43347         Use them in place of open-coded actions.
43348
43349 2008-07-01  Simon Josefsson  <simon@josefsson.org>
43350
43351         Add self-test for getdate module.
43352         * modules/getdate-tests: New file.
43353         * tests/test-getdate.c: New file.
43354
43355 2008-06-29  Bruno Haible  <bruno@clisp.org>
43356
43357         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
43358         .gitignore.
43359         Reported by Sylvain Beucler <beuc@beuc.net>.
43360
43361 2008-06-29  Bruno Haible  <bruno@clisp.org>
43362
43363         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
43364         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
43365
43366 2008-06-29  Bruno Haible  <bruno@clisp.org>
43367
43368         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
43369         EXTRA_DIST.
43370         Reported by Sylvain Beucler <beuc@beuc.net>.
43371
43372 2008-06-26  Jim Meyering  <meyering@redhat.com>
43373
43374         make several modules depend on the "open" module
43375         This provides slightly increased consistency when opening-for-write
43376         the name of a non-directory spelled with a trailing slash.
43377         * modules/chdir-safer: Likewise.
43378         * modules/chown: Likewise.
43379         * modules/clean-temp: Likewise.
43380         * modules/copy-file: Likewise.
43381         * modules/fchdir: Likewise.
43382         * modules/fcntl-safer: Likewise.
43383         * modules/pipe: Likewise.
43384         * modules/utime: Likewise.
43385         Prompted by Eric Blake and Bruno Haible.
43386
43387 2008-06-24  Andreas Schwab  <schwab@suse.de>
43388
43389         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
43390         literals can be used as initializers for global variables.
43391
43392 2008-06-23  Eric Blake  <ebb9@byu.net>
43393
43394         Make gnulib-cache.m4 easier to diff.
43395         * gnulib-tool (func_import): Allow newlines when reading cached
43396         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
43397
43398 2008-06-23  Bruno Haible  <bruno@clisp.org>
43399
43400         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
43401         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
43402         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
43403         m4/signalblocking.m4.
43404         (gl_PREREQ_SIGACTION): Don't invoke it.
43405         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
43406         gl_PREREQ_SIG_HANDLER_H.
43407         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
43408         Don't check for sigaction here.
43409
43410 2008-06-23  Bruno Haible  <bruno@clisp.org>
43411
43412         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
43413         (install_handlers): Don't set the SA_RESETHAND flag.
43414
43415 2008-06-23  Bruno Haible  <bruno@clisp.org>
43416
43417         * m4/sigaction.m4: Comment fixes.
43418         * lib/signal.in.h: Likewise.
43419
43420 2008-06-23  Eric Blake  <ebb9@byu.net>
43421
43422         Fix typo.
43423         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
43424
43425         Avoid SA_ namespace.
43426         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
43427         Reported by Ralf Wildenhues.
43428
43429         Avoid test failure due to SA_RESTORER.
43430         * tests/test-sigaction.c (SA_MASK): New macro.
43431         (main): Avoid failing due to extension flags being set.
43432         Reported by Jim Meyering.
43433
43434         Revert use of sig-handler.h in sigprocmask.c.
43435         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
43436         it requires the existence of struct sigaction.
43437         * lib/sigprocmask.c (handler_t): Restore typedef.
43438         (rpl_signal, old_handlers): Use local type.
43439
43440 2008-06-22  Bruno Haible  <bruno@clisp.org>
43441
43442         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
43443         conditionally.
43444         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43445
43446 2008-06-22  Bruno Haible  <bruno@clisp.org>
43447
43448         * doc/posix-functions/siginterrupt.texi: Move note.
43449
43450         * lib/signal.in.h (SA_RESTART): New macro.
43451         * lib/sigaction.c: Update comment.
43452
43453         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
43454
43455         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
43456         (gl_PREREQ_SIGPROCMASK): Invoke it.
43457         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
43458
43459         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
43460
43461         * lib/sigprocmask.c: Update a comment.
43462
43463 2008-06-21  Eric Blake  <ebb9@byu.net>
43464
43465         Use sigaction module rather than signal().
43466         * modules/c-stack (Depends-on): Add sigaction.
43467         * modules/fatal-signal (Depends-on): Likewise.
43468         * modules/nanosleep (Depends-on): Likewise.
43469         * modules/sigprocmask (Files): Add sig-handler.h.
43470         * modules/sigaction (Files): Likewise.
43471         * lib/sig-handler.h (get_handler): New file, suggested by Paul
43472         Eggert.
43473         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
43474         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
43475         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
43476         (init_fatal_signals): Likewise.
43477         * lib/nanosleep.c (rpl_nanosleep): Likewise.
43478         (siginterrupt): Delete fallback.
43479         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
43480         instead.
43481         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
43482         siginterrupt.
43483
43484         New module sigaction, for mingw.
43485         * modules/sigaction: New module...
43486         * modules/sigaction-tests: ...and its test.
43487         * m4/sigaction.m4: New file.
43488         * lib/sigaction.c: Likewise.
43489         * tests/test-sigaction.c: Likewise.
43490         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
43491         * modules/signal (Makefile.am): Likewise.
43492         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
43493         needed.
43494         * doc/posix-headers/signal.texi (signal.h): Mention provided
43495         types.
43496         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
43497         that sigaction is preferable.
43498         * doc/posix-functions/sigaction.texi (sigaction): Mention new
43499         module.
43500         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43501         sigaction.
43502
43503         Improve robustness of sigprocmask by overriding signal.
43504         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
43505         is in use.
43506         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
43507         (SIGKILL, SIGSTOP): Provide fallbacks.
43508         (rpl_signal): Implement.
43509         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
43510         signal can be called inside handlers.
43511
43512         Fix nanosleep module on mingw.
43513         * modules/nanosleep (Depends-on): Add sys_select.
43514         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
43515
43516         Fix licensing of sigprocmask.
43517         * modules/raise (License): Relicense as LGPL.
43518
43519 2008-06-21  Bruno Haible  <bruno@clisp.org>
43520
43521         * lib/propername.c (proper_name_utf8): Don't use the transliterated
43522         result if it contains question marks.
43523         Reported by Michael Geng <linux@michaelgeng.de>.
43524
43525 2008-06-19  Bruno Haible  <bruno@clisp.org>
43526
43527         Fix CVS-ism.
43528         * doc/gnulib.texi: Include updated-stamp.texi.
43529         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
43530         (updated-stamp.texi): New rule.
43531         (gnulib.info): Depend on it.
43532         * doc/.gitignore: Add updated-stamp.texi.
43533         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
43534
43535 2008-06-19  Bruno Haible  <bruno@clisp.org>
43536
43537         * doc/Makefile (gnulib.info): Update and simplify dependencies.
43538         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
43539
43540 2008-06-19  Eric Blake  <ebb9@byu.net>
43541
43542         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
43543         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
43544         Reported by Stepan Kasal.
43545
43546 2008-06-18  Bruno Haible  <bruno@clisp.org>
43547
43548         * lib/fatal-signal.c (init_fatal_signals): Add comment.
43549         Reported by Eric Blake.
43550
43551 2008-06-18  Eric Blake  <ebb9@byu.net>
43552
43553         Work around cygwin 1.5.25 strsignal bug.
43554         * tests/test-strsignal.c: Allow for const char *.
43555         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
43556
43557 2008-06-18  Simon Josefsson  <simon@josefsson.org>
43558
43559         * users.txt: Update URL to article and add author/date
43560         information.
43561
43562 2008-06-17  Bruno Haible  <bruno@clisp.org>
43563
43564         New macro gl_DISABLE_THREADS.
43565         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
43566         if the user did not pass --enable-threads or --disable-threads option.
43567         (gl_DISABLE_THREADS): New macro.
43568         Reported by Eric Blake <ebb9@byu.net>.
43569
43570 2008-06-17  Bruno Haible  <bruno@clisp.org>
43571
43572         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
43573         when the macro ignores it.
43574         Based on a patch by Eric Blake <ebb9@byu.net>.
43575
43576 2008-06-17  Bruno Haible  <bruno@clisp.org>
43577
43578         * modules/tls (License): Change to LGPLv2+.
43579         Reported by Eric Blake.
43580
43581 2008-06-17  Eric Blake  <ebb9@byu.net>
43582
43583         Simplify c-stack prerequisites.
43584         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
43585         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
43586         no longer requires <ucontext.h> to exist.  Optimize setrlimit
43587         check.
43588         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
43589         <sys/resource.h>.
43590
43591         Move c-stack test into testsuite.
43592         * modules/c-stack-tests: New file.
43593         * lib/c-stack.c [DEBUG]: Move test program...
43594         * tests/test-c-stack.c: ...into this new file.  Skip rather than
43595         fail test if sigaltstack is lacking.
43596         * tests/test-c-stack.sh: New driver file.
43597
43598 2008-06-16  Eric Blake  <ebb9@byu.net>
43599
43600         Use raise module consistently.
43601         * modules/fatal-signal (Depends-on): Add raise.
43602         * modules/sigprocmask (Depends-on): Likewise.
43603         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
43604         * lib/sigprocmask.c (sigprocmask): Likewise.
43605         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
43606         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
43607
43608         Fix compliance bug in sigpending.
43609         * lib/sigprocmask.c (sigpending): Return pending array via
43610         parameter, not return value.
43611
43612 2008-06-14  Eric Blake  <ebb9@byu.net>
43613
43614         Improve obstack-printf test code.
43615         * tests/test-obstack-printf.c (test_function): Fix comment, and
43616         simplify usage of obstack_* in macros.  Add a test for coverage.
43617         Reported by Bruno Haible.
43618
43619 2008-06-14  Bruno Haible  <bruno@clisp.org>
43620
43621         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
43622         array size as a constant, not as a const variable.
43623         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
43624         AC_USE_SYSTEM_EXTENSIONS.
43625         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
43626         Test whether the obstack_printf function actually exists.
43627         * modules/obstack-printf (Depends-on): Add extensions.
43628         (Include): Remove obstack.h.
43629         * modules/obstack-printf-posix (Depends-on): Add extensions.
43630         (Include): Remove obstack.h.
43631
43632 2008-06-13  Eric Blake  <ebb9@byu.net>
43633
43634         Add obstack-printf and obstack-printf-posix modules.
43635         * modules/obstack-printf: New file.
43636         * modules/obstack-printf-posix: Likewise.
43637         * MODULES.html.sh (Misc): Mention them.
43638         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
43639         Likewise.
43640         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
43641         Likewise.
43642         * modules/stdio (Makefile.am): Accomodate new modules.
43643         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43644         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
43645         Declare.
43646         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
43647         functions.
43648         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
43649         (gl_REPLACE_OBSTACK_PRINTF): New macros
43650         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
43651         * tests/test-obstack-printf.c: New file.
43652         * modules/obstack-printf-tests: Likewise.
43653         * modules/obstack-printf-posix-tests: Likewise.
43654
43655 2008-06-11  Bruno Haible  <bruno@clisp.org>
43656
43657         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
43658         * lib/open.c: Include errno.h.
43659         (open): Fail when attempting to write to a file that has a trailing
43660         slash.
43661         * tests/test-open.c (main): Test against trailing slash bug.
43662         * doc/posix-functions/open.texi: Mention the trailing slash bug.
43663
43664 2008-06-10  Bruno Haible  <bruno@clisp.org>
43665
43666         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
43667         for $? to work inside the trap command, with various /bin/sh-s.
43668         * tests/test-vc-list-files-cvs.sh: Likewise.
43669
43670 2008-06-10  Bruno Haible  <bruno@clisp.org>
43671
43672         * lib/acl-internal.h: Don't include gettext.h here.
43673         * lib/set-mode-acl.c: Include gettext.h here.
43674         * lib/copy-acl.c: Likewise.
43675
43676 2008-06-10  Bruno Haible  <bruno@clisp.org>
43677
43678         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
43679         * lib/wait-process.c (wait_subprocess): Likewise.
43680         * lib/execute.h (execute): Add termsigp argument.
43681         * lib/execute.c (execute): Likewise.
43682         * lib/csharpcomp.c (compile_csharp_using_pnet,
43683         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
43684         * lib/csharpexec.c (execute_csharp_using_pnet,
43685         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
43686         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
43687         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
43688         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
43689         is_jikes_present): Update.
43690         * lib/javaexec.c (execute_java_class): Update.
43691         * lib/javaversion.c (execute_and_read_line): Update.
43692         * NEWS: Document the changes.
43693         Reported by Eric Blake.
43694
43695 2008-06-10  Eric Blake  <ebb9@byu.net>
43696
43697         Add missing include.
43698         * tests/test-strstr.c (includes): Add <signal.h>.
43699         * tests/test-strcasestr.c (includes): Likewise.
43700         * tests/test-memmem.c (includes): Likewise.
43701
43702 2008-06-10  Bruno Haible  <bruno@clisp.org>
43703
43704         * lib/wait-process.c (wait_subprocess): Add an assertion.
43705
43706 2008-06-10  Bruno Haible  <bruno@clisp.org>
43707
43708         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
43709
43710 2008-06-10  Bruno Haible  <bruno@clisp.org>
43711
43712         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
43713         using alarm().
43714         * tests/test-strcasestr.c (main): Likewise.
43715         * tests/test-strstr.c (main): Likewise.
43716
43717 2008-06-09  Bruno Haible  <bruno@clisp.org>
43718
43719         Work around the Solaris 10 ACE ACLs ABI change.
43720         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
43721         declare if ACL_NO_TRIVIAL is present.
43722         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
43723         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
43724         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
43725         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
43726         define if ACL_NO_TRIVIAL is present.
43727         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
43728         and use the current ABI.
43729         (file_has_acl): Use same #if condition as elsewhere.
43730         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
43731         in use, and use the current ABI.
43732         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
43733         Reported by Jim Meyering.
43734
43735 2008-06-09  Eric Blake  <ebb9@byu.net>
43736
43737         Work around environments that (stupidly) ignore SIGALRM.
43738         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
43739         before using alarm().
43740         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43741         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
43742         Reported by Ian Beckwith <ianb@erislabs.net>.
43743
43744         Produce autobuild blurb earlier in log.
43745         * modules/autobuild (configure.ac-early): Move AB_INIT here.
43746
43747 2008-06-09  Jim Meyering  <meyering@redhat.com>
43748         and OndÅ™ej Vašík  <ovasik@redhat.com>
43749
43750         utimens.c: correct kernel bug work-around
43751         OndÅ™ej Vašík found that the invalid return value of 280 indicates
43752         failure, not success, and the kernel bug we're trying to work
43753         around affects not just the utimensat call, but also the fallback
43754         futimens call.
43755         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
43756         not success.
43757         [HAVE_FUTIMENS]: Use the same work-around, here.
43758
43759 2008-06-09  Jim Meyering  <meyering@redhat.com>
43760
43761         add more guards around definition of ACE_-related code
43762         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
43763         ALLOW and ACE_OWNER are also defined.
43764
43765 2008-06-08  Bruno Haible  <bruno@clisp.org>
43766
43767         * lib/acl-internal.h: Add me as co-author.
43768         * lib/file-has-acl.c: Likewise.
43769         * lib/set-mode-acl.c: Likewise.
43770         * lib/copy-acl.c: Likewise.
43771
43772 2008-06-08  Bruno Haible  <bruno@clisp.org>
43773
43774         Add support for AIX ACLs.
43775         * lib/acl-internal.h (acl_nontrivial): New declaration.
43776         * lib/file-has-acl.c (acl_nontrivial): New function.
43777         (file_has_acl): Add implementation using AIX 4 ACL API.
43778         * lib/set-mode-acl.c (qset_acl): Likewise.
43779         * lib/copy-acl.c (qcopy_acl): Likewise.
43780
43781 2008-06-08  Bruno Haible  <bruno@clisp.org>
43782
43783         Add support for HP-UX ACLs.
43784         * lib/acl-internal.h (acl_nontrivial): New declaration.
43785         * lib/file-has-acl.c (acl_nontrivial): New function.
43786         (file_has_acl): Add implementation using HP-UX 11 ACL API.
43787         * lib/set-mode-acl.c (qset_acl): Likewise.
43788         * lib/copy-acl.c (qcopy_acl): Likewise.
43789
43790 2008-06-08  Bruno Haible  <bruno@clisp.org>
43791
43792         Add support for Cygwin ACLs.
43793         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
43794         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
43795         the chmod_or_fchmod call.
43796         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
43797
43798 2008-06-08  Bruno Haible  <bruno@clisp.org>
43799
43800         Fix bug with setuid modes in Solaris 10+ code.
43801         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
43802         succeeded, when the mode contains some special bits.
43803
43804 2008-06-08  Bruno Haible  <bruno@clisp.org>
43805
43806         Add support for Solaris 7..10 ACLs.
43807         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
43808         declarations.
43809         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
43810         functions.
43811         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
43812         * lib/set-mode-acl.c (qset_acl): Likewise.
43813         * lib/copy-acl.c (qcopy_acl): Likewise.
43814
43815 2008-06-08  Bruno Haible  <bruno@clisp.org>
43816
43817         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
43818         declaration.
43819         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
43820         (acl_access_nontrivial): Remove MacOS X case.
43821         (file_has_acl): Use acl_extended_nontrivial.
43822         * lib/copy-acl.c (qcopy_acl): Likewise.
43823
43824 2008-06-08  Bruno Haible  <bruno@clisp.org>
43825
43826         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
43827
43828 2008-06-08  Jim Meyering  <meyering@redhat.com>
43829
43830         * modules/acl (Maintainer): Add Bruno Haible.
43831
43832 2008-06-07  Bruno Haible  <bruno@clisp.org>
43833
43834         Improve support for Tru64 ACLs.
43835         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
43836         ACL on OSF/1.
43837
43838 2008-06-07  Bruno Haible  <bruno@clisp.org>
43839
43840         Add support for MacOS X ACLs.
43841         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
43842         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
43843         * lib/set-mode-acl.c (qset_acl): Likewise.
43844         * lib/copy-acl.c (qcopy_acl): Likewise.
43845
43846 2008-06-07  Bruno Haible  <bruno@clisp.org>
43847
43848         Fix memory leak introduced on 2008-05-22.
43849         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
43850         use.
43851
43852 2008-06-07  Bruno Haible  <bruno@clisp.org>
43853
43854         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
43855         to construct an empty ACL.
43856
43857 2008-06-07  Bruno Haible  <bruno@clisp.org>
43858
43859         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
43860         precisely.
43861         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
43862
43863 2008-06-07  Bruno Haible  <bruno@clisp.org>
43864
43865         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
43866         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
43867
43868 2008-06-07  Bruno Haible  <bruno@clisp.org>
43869
43870         * doc/posix-functions/_setjmp.texi: Explain the use of this function
43871         regardless of POSIX.
43872         * doc/posix-functions/_longjmp.texi: Likewise.
43873         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
43874         SystemV platform in this case.
43875
43876 2008-06-06  Eric Blake  <ebb9@byu.net>
43877
43878         Document abort() bugs.
43879         * doc/posix-functions/abort.texi (abort): Mention anomalies.
43880
43881         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
43882         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
43883         sigsetjmp.
43884         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
43885         siglongjmp, but only as a macro.
43886         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
43887         is obsolete.
43888         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
43889
43890         Tweak documentation to cover cygwin argz bugs.
43891         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
43892         argz bug fix; no code change needed since no cygwin releases
43893         occurred between the last fix and the bug being tested.
43894         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
43895         module and recently fixed cygwin bugs.
43896         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
43897         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
43898         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
43899         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
43900         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
43901         Likewise.
43902         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
43903         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
43904         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
43905         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
43906         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
43907         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
43908         Likewise.
43909
43910         Avoid gcc warning on cygwin.
43911         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
43912         !ACL_NO_TRIVIAL]: Avoid unused variable.
43913
43914 2008-06-05  Eric Blake  <ebb9@byu.net>
43915
43916         Be tolerant of UNKNOWN version in gnulib-tool test dir.
43917         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
43918         git-version-gen fails to come up with a version.
43919         Reported by Simon Josefsson.
43920
43921 2008-06-05  Jim Meyering  <meyering@redhat.com>
43922             Paul Eggert  <eggert@cs.ucla.edu>
43923
43924         utimens.c: work around a probable Linux kernel bug
43925         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
43926         appears to be a kernel bug that causes utimensat to return 280
43927         instead of 0, indicating success.
43928
43929 2008-06-04  Bruno Haible  <bruno@clisp.org>
43930
43931         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
43932         2008-06-01 commit.
43933
43934 2008-06-04  Bruno Haible  <bruno@clisp.org>
43935
43936         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
43937         * lib/file-has-acl.c (acl_access_nontrivial): New function.
43938         (file_has_acl): Use it. Save errno afterwards.
43939         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
43940
43941 2008-06-03  Bruno Haible  <bruno@clisp.org>
43942
43943         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
43944         draft code. Simplify #ifs.
43945         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
43946         Put Solaris code after POSIX-draft code. Fix comments regarding
43947         Solaris 10, HP-UX. Mention Cygwin.
43948         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
43949
43950 2008-06-03  Eric Blake  <ebb9@byu.net>
43951
43952         Provide fallback for older kernels.
43953         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
43954         Provide runtime fallback if kernel lacks support.
43955         Reported by Mike Frysinger.
43956
43957 2008-06-02  Bruno Haible  <bruno@clisp.org>
43958
43959         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
43960         it exists.
43961
43962 2008-06-02  Bruno Haible  <bruno@clisp.org>
43963
43964         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
43965         * lib/copy-acl.c (qcopy_acl): Update comment.
43966
43967 2008-06-02  Bruno Haible  <bruno@clisp.org>
43968
43969         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
43970         like ACL APIs.
43971
43972 2008-06-02  Bruno Haible  <bruno@clisp.org>
43973
43974         * tests/test-file-has-acl.sh: Use different code for Cygwin.
43975         * tests/test-set-mode-acl.sh: Likewise.
43976         * tests/test-copy-acl.sh: Likewise.
43977         * tests/test-copy-file.sh: Likewise.
43978
43979 2008-06-02  Bruno Haible  <bruno@clisp.org>
43980
43981         * tests/test-file-has-acl.sh: Remove unused code.
43982
43983 2008-06-01  Bruno Haible  <bruno@clisp.org>
43984
43985         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
43986         (copy_acl): Just a wrapper around qcopy_acl that emits the error
43987         messages.
43988         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
43989
43990 2008-06-01  Bruno Haible  <bruno@clisp.org>
43991
43992         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
43993         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
43994         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
43995         APIs.
43996         * modules/acl-tests (configure.ac): Remove tests now contained in
43997         m4/acl.m4.
43998
43999 2008-06-02  Jim Meyering  <meyering@redhat.com>
44000
44001         announce-gen: use a better key-server host name
44002         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
44003         it may be more consistently reliable.  Suggested by Werner Koch
44004         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
44005
44006 2008-06-01  Bruno Haible  <bruno@clisp.org>
44007
44008         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
44009         Reported by Voroskoi Andras <voroskoi@gmail.com>.
44010
44011 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
44012
44013         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
44014
44015 2008-06-01  Bruno Haible  <bruno@clisp.org>
44016
44017         New ACL tests.
44018         * tests/test-file-has-acl.sh: New file.
44019         * tests/test-file-has-acl.c: New file.
44020         * tests/test-set-mode-acl.sh: New file.
44021         * tests/test-set-mode-acl.c: New file.
44022         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
44023         * tests/test-copy-acl.c: New file.
44024         * modules/acl-tests: New file, based on modules/copy-file-tests.
44025         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
44026         (Depends-on): Add acl-tests.
44027         (configure.ac): Remove checks.
44028         (Makefile.am): Don't create test-sameacls program here any more.
44029
44030 2008-06-01  Bruno Haible  <bruno@clisp.org>
44031
44032         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
44033         * tests/test-sameacls.c: Include progname.h.
44034         (main): Invoke set_program_name. Portability fixes for MacOS X,
44035         Solaris, HP-UX.
44036
44037 2008-06-01  Bruno Haible  <bruno@clisp.org>
44038
44039         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
44040         function.
44041         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
44042
44043 2008-06-01  Bruno Haible  <bruno@clisp.org>
44044
44045         * modules/rpmatch (Depends-on): Add strdup.
44046
44047 2008-06-01  Bruno Haible  <bruno@clisp.org>
44048
44049         * lib/pipe.c: Include unistd-safer.h.
44050         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
44051         * modules/pipe (Depends-on): Add unistd-safer.
44052
44053 2008-05-30  Simon Josefsson  <simon@josefsson.org>
44054
44055         * modules/autobuild (configure.ac): Call AB_INIT.
44056
44057 2008-05-30  Simon Josefsson  <simon@josefsson.org>
44058
44059         * tests/test-getaddrinfo.c: Don't print debug messages by default.
44060         Suggested by Bruno Haible <bruno@clisp.org>.
44061
44062 2008-05-30  Simon Josefsson  <simon@josefsson.org>
44063
44064         * tests/test-base64.c: Cast size_t to unsigned long when invoking
44065         printf.  Use %lu instead of %d.  Reported by Bruno Haible
44066         <bruno@clisp.org>.
44067
44068 2008-05-29  Eric Blake  <ebb9@byu.net>
44069
44070         Prefer new POSIX 200x interfaces over futimesat.
44071         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
44072         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
44073         when available.
44074         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
44075
44076 2008-05-28  Bruno Haible  <bruno@clisp.org>
44077
44078         * modules/stpcpy (License): Change to LGPLv2+.
44079         Requested by David Lutterkort <dlutter@redhat.com>.
44080
44081 2008-05-27  Bruno Haible  <bruno@clisp.org>
44082
44083         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
44084         current mingw.
44085         Reported by Jose E. Marchesi <jemarch@gnu.org>.
44086
44087 2008-05-27  Bruno Haible  <bruno@clisp.org>
44088
44089         * modules/iconv_open (Link): New section, from module 'iconv'.
44090         * modules/striconv (Link): Likewise.
44091         * modules/striconveh (Link): Likewise.
44092         * modules/xstriconv (Link): Likewise.
44093         * modules/unicodeio (Link): Likewise.
44094         * modules/propername (Link): Likewise.
44095         Reported by Jim Meyering.
44096
44097 2008-05-26  Jim Meyering  <meyering@redhat.com>
44098
44099         sha256: do not artificially restrict buffer length to be < 2^32
44100         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
44101         uint32_t to size_t.
44102         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
44103         to match.
44104
44105         avoid unaligned access errors, e.g., on sparc
44106         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
44107         direct access through a possibly-unaligned uint64* pointer.
44108         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
44109         direct access through a possibly-unaligned uint32* pointer.
44110         Prompted by this patch from Tom "spot" Callaway:
44111         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
44112
44113         sha512.c: fix typo in comment
44114         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
44115
44116 2008-05-25  Bruno Haible  <bruno@clisp.org>
44117
44118         * lib/set-mode-acl.c: Renamed from lib/acl.c.
44119         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
44120         (Makefile.am): Update lib_SOURCES.
44121
44122 2008-05-25  Bruno Haible  <bruno@clisp.org>
44123
44124         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
44125
44126 2008-05-25  Jim Meyering  <meyering@redhat.com>
44127
44128         useless-if-before-free: freed expr may have white-space differences
44129         * build-aux/useless-if-before-free: Recognize cases in which the
44130         freed expression differs from the tested one in embedded white
44131         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
44132         $1 was used, so we can't make any regexp shy.  Improved tests now
44133         detect this.
44134
44135         useless-if-before-free: accept white space in the expression.
44136         * build-aux/useless-if-before-free: For now, any white space
44137         in the expression must be identical in the free argument.
44138
44139         useless-if-before-free: efficiency tweak
44140         * build-aux/useless-if-before-free: Make the expression-matching
44141         regexp "shy".
44142         Make the *outer* regexp shy, not the expr-matching one.
44143
44144         update code-in-comment to accept cast of free arg
44145         * build-aux/useless-if-before-free: Update regexp.
44146
44147 2008-05-25  Bruno Haible  <bruno@clisp.org>
44148
44149         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
44150         * modules/copy-file-tests (Files, Makefile.am): Update.
44151         * tests/test-copy-file.c (func_test_copy): Update.
44152
44153 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
44154
44155         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
44156
44157 2008-05-23  Bruno Haible  <bruno@clisp.org>
44158
44159         Improve support for ACLs on OSF/1.
44160         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
44161         Remove fallback for unknown flavors of ACLs.
44162
44163 2008-05-22  Bruno Haible  <bruno@clisp.org>
44164
44165         Add support for ACLs on OSF/1.
44166         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
44167         replacements.
44168         (acl_free_text): New macro fallback.
44169         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
44170         acl_free.
44171         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
44172         acl_free_text function. Require AC_C_INLINE.
44173
44174 2008-05-22  Bruno Haible  <bruno@clisp.org>
44175
44176         Make copy_acl work on MacOS X 10.5.
44177         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
44178         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
44179         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
44180         If MODE_INSIDE_ACL, don't assume that every system has the same text
44181         representation for ACLs as FreeBSD.
44182         * lib/copy-acl.c (copy_acl): Add support for platforms with
44183         !MODE_INSIDE_ACL.
44184         * lib/file-has-acl.c (file_has_acl): Likewise.
44185         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
44186         FreeBSD, MacOS X, or IRIX, respectively.
44187
44188 2008-05-22  Bruno Haible  <bruno@clisp.org>
44189
44190         * lib/acl.h: Don't include <sys/acl.h>.
44191         (GETACLCNT): Move fallback to lib/acl-internal.h.
44192         * lib/acl-internal.h: Include <sys/acl.h> here.
44193         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
44194
44195 2008-05-22  Bruno Haible  <bruno@clisp.org>
44196
44197         Split off copy_acl function to separate file.
44198         * lib/copy-acl.c: New file, extracted from lib/acl.c.
44199         * lib/acl.c (copy_acl): Moved function to separate file.
44200         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
44201         * modules/acl (Files): Add lib/copy-acl.c.
44202         (Makefiles.am): Augment lib_SOURCES.
44203
44204 2008-05-22  Bruno Haible  <bruno@clisp.org>
44205
44206         * modules/copy-file-tests: New file.
44207         * tests/test-copy-file.sh: New file.
44208         * tests/test-copy-file.c: New file.
44209         * tests/test-copy-file-sameacls.c: New file.
44210
44211 2008-05-22  Eric Blake  <ebb9@byu.net>
44212
44213         Avoid gcc warning.
44214         * tests/test-memcmp.c (main): Pass NULL indirectly.
44215
44216 2008-05-21  Bruno Haible  <bruno@clisp.org>
44217
44218         Add reference doc about ACLs.
44219         * doc/acl-resources.txt: New file.
44220         * doc/acl-cygwin.txt: New file.
44221
44222 2008-05-21  Bruno Haible  <bruno@clisp.org>
44223
44224         Avoid one more warning from gcc.
44225         * lib/vasnprintf.c (IF_LINT): Update comments.
44226         (VASNPRINTF): Use it also for the 'prefix' array initializer.
44227
44228 2008-05-21  Jim Meyering  <meyering@redhat.com>
44229
44230         avoid a warning from gcc
44231         * lib/vasnprintf.c (IF_LINT): Define.
44232         (scale10_round_decimal_long_double):
44233         Use it to avoid a "may be used uninitialized" warning.
44234         (scale10_round_decimal_double): Likewise.
44235
44236 2008-05-21  Simon Josefsson  <simon@josefsson.org>
44237
44238         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
44239         declared.
44240
44241 2008-05-20  Bruno Haible  <bruno@clisp.org>
44242
44243         * tests/test-memcmp.c (main): Test also the sign of the result. Test
44244         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
44245
44246 2008-05-20  Simon Josefsson  <simon@josefsson.org>
44247
44248         * modules/memcmp-tests: New file.
44249         * tests/test-memcmp.c: New file.
44250
44251 2008-05-19  Bruno Haible  <bruno@clisp.org>
44252
44253         * modules/propername (Notice, configure.ac): Put quoted "..." into
44254         --keyword option.
44255         * lib/propername.h: Update comments accordingly.
44256         Reported by Eric Blake.
44257
44258 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
44259
44260         * modules/getpass-gnu (Depends-on): Add fseeko.
44261
44262 2008-05-19  Simon Josefsson  <simon@josefsson.org>
44263
44264         * modules/base64-tests: New file.
44265
44266 2008-05-19  Bo Borgerson <gigabo@gmail.com>
44267
44268         * lib/base64.c (base64_decode_ctx): If a decode context structure
44269         was passed in use it to ignore newlines.  If a context structure
44270         was _not_ passed in, continue to treat newlines as garbage (this
44271         is the historical behavior).  Formerly base64_decode.
44272         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
44273         takes a decode context structure.
44274         * lib/base64.h (base64_decode): Macro for four-argument calls.
44275         (base64_decode_alloc): Likewise.
44276         * lib/base64.c (base64_decode_ctx): If a decode context structure
44277         was passed in use it to ignore newlines.  If a context structure
44278         was _not_ passed in, continue to treat newlines as garbage (this
44279         is the historical behavior).  Formerly base64_decode.
44280         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
44281         takes a decode context structure.
44282         * lib/base64.h (base64_decode): Macro for four-argument calls.
44283         (base64_decode_alloc): Likewise.
44284
44285 2008-05-19  Jim Meyering  <meyering@redhat.com>
44286
44287         avoid a warning from gcc
44288         * lib/trim.c (IF_LINT): Define.
44289         (trim2): Use it to avoid a "may be used uninitialized" warning.
44290
44291         Fix doc typo.
44292         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
44293
44294 2008-05-19  Bruno Haible  <bruno@clisp.org>
44295
44296         * doc/glibc-functions/getpass.texi: Document limits of other
44297         implementations.
44298
44299 2008-05-19  Simon Josefsson  <simon@josefsson.org>
44300             Bruno Haible <bruno@clisp.org>
44301
44302         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
44303
44304 2008-05-18  Bruno Haible  <bruno@clisp.org>
44305
44306         * modules/propername: New file, from GNU gettext.
44307         * lib/propername.h: New file, from GNU gettext.
44308         * lib/propername.c: New file, from GNU gettext.
44309         * MODULES.html.sh (Internationalization functions): Add propername.
44310
44311 2008-05-16  Jim Meyering  <meyering@redhat.com>
44312             Bruno Haible  <bruno@clisp.org>
44313
44314         Avoid some warnings from "gcc -Wshadow".
44315         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
44316
44317 2008-05-15  Eric Blake  <ebb9@byu.net>
44318
44319         Extend previous patch to cygwin 1.7.0.
44320         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
44321         fast implementation in cygwin >= 1.7.0.
44322         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44323         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44324
44325 2008-05-15  Bruno Haible  <bruno@clisp.org>
44326
44327         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
44328         implementation in glibc >= 2.9.
44329         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44330         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44331
44332 2008-05-15  Bruno Haible  <bruno@clisp.org>
44333
44334         * MODULES.html.sh (Internationalization functions): Remove linebreak.
44335         (Unicode string functions): Add unilbrk/*.
44336         Reported by Karl Berry.
44337
44338 2008-05-15  Eric Blake  <ebb9@byu.net>
44339
44340         Fix violation of <stdbool.h> replacement in regex.
44341         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
44342         * lib/regexec.c (re_search_internal): Likewise.
44343         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
44344
44345 2008-05-15  Jim Meyering  <meyering@redhat.com>
44346
44347         avoid distracting test output when git or cvs is not found
44348         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
44349         * tests/test-vc-list-files-git.sh: Likewise.
44350
44351 2008-05-15  Eric Blake  <ebb9@byu.net>
44352
44353         Glibc finally accepted the memmem speedup code, bugzilla #5514.
44354         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
44355         glibc version.
44356         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
44357         * doc/posix-functions/strstr.texi (strstr): Likewise.
44358         * lib/str-two-way.h (MAX): Sychronize with glibc.
44359
44360 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
44361
44362         * lib/regcomp.c (optimize_utf8): Add a note on why we test
44363         opr.ctx_type.
44364         (calc_first): Initialize constraint field.
44365         (duplicate_node_closure): Use it instead of special casing ANCHORS.
44366         Fix grammar.
44367         (duplicate_node): Merge constraint field for all node types.
44368         (calc_eclosure_iter): Look at constraint field for all node types.
44369         * lib/regex_internal.c (create_cd_newstate): Don't look at
44370         opr.ctx_type.
44371
44372 2008-05-14  Bruno Haible  <bruno@clisp.org>
44373
44374         Help GCC to do better code generation.
44375         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
44376         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
44377         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
44378         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
44379         Declare with attribute 'malloc' if supported.
44380
44381 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
44382
44383         use "echo STR|wc -c" rather than unportable "expr length STR"
44384         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
44385         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
44386
44387 2008-05-14  Jim Meyering  <meyering@redhat.com>
44388
44389         use dd ibs=$n count=1 ... rather than less-portable head -c$n
44390         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
44391         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
44392         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
44393         via Collin Lasse.
44394
44395 2008-05-14  Eric Blake  <ebb9@byu.net>
44396
44397         Avoid quadratic growth in gl_LIBSOURCES.
44398         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
44399         Suggested by Bruno Haible.
44400
44401         Test xmemdup0.
44402         * modules/xmemdup0-tests: New file.
44403         * tests/test-xmemdup0.c: Likewise.
44404
44405 2008-05-13  Eric Blake  <ebb9@byu.net>
44406
44407         Split xmemdup0 into its own module.
44408         * modules/xmemdup0: New file.
44409         * lib/xmemdup0.h: Likewise.
44410         * lib/xmemdup0.c: Likewise.
44411         * MODULES.html.sh (Memory management functions): Add xmemdup0.
44412         * lib/xalloc.h (xmemdup0): Remove.
44413         * lib/xmalloc.c (xmemdup0): Likewise.
44414
44415 2008-05-13  Eric Blake  <ebb9@byu.net>
44416             Bruno Haible  <bruno@clisp.org>
44417
44418         Reduce number of forks required during autoconf.
44419         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
44420         and gl_LIBSOURCES_DIR.
44421         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
44422         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
44423         m4_syscmd per file.
44424         <m4_foreach_w>: Move...
44425         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
44426
44427 2008-05-13  Eric Blake  <ebb9@byu.net>
44428
44429         * gnulib-tool: Fix various comment typos.
44430
44431 2008-05-12  Bruno Haible  <bruno@clisp.org>
44432
44433         Tailor the linebreaking algorithm.
44434         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
44435
44436 2008-05-12  Bruno Haible  <bruno@clisp.org>
44437
44438         Update to Unicode 5.0.0.
44439         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
44440         LBP_JV, LBP_JT. Redistribute values.
44441         (unilbrk_table): Change size.
44442         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
44443         Unicode TR#14 rev. 22.
44444         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
44445         LBP_JV, LBP_JT. Redistribute values.
44446         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
44447         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
44448         Update.
44449         * lib/unilbrk/lbrkprop1.h: Regenerated.
44450         * lib/unilbrk/lbrkprop2.h: Regenerated.
44451         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
44452         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
44453         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
44454         Likewise.
44455         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
44456         Likewise.
44457         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
44458         result.
44459         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
44460         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
44461         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
44462         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
44463         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
44464         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
44465
44466 2008-05-11  Bruno Haible  <bruno@clisp.org>
44467
44468         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
44469
44470 2008-05-11  Bruno Haible  <bruno@clisp.org>
44471
44472         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
44473         * modules/unilbrk/gen-lbrk: New file.
44474
44475 2008-05-11  Bruno Haible  <bruno@clisp.org>
44476
44477         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
44478         * m4/sha512.m4 (gl_SHA512): Likewise.
44479
44480 2008-05-11  Jim Meyering  <meyering@redhat.com>
44481
44482         New modules: crypto/sha256, crypto/sha512 (from coreutils)
44483         * modules/crypto/sha256: New file.
44484         * modules/crypto/sha512: Likewise.
44485         * lib/sha256.c: Likewise.
44486         * lib/sha256.h: Likewise.
44487         * lib/sha512.c: Likewise.
44488         * lib/sha512.h: Likewise.
44489         * lib/u64.h: Likewise.
44490         * m4/sha256.m4: Likewise.
44491         * m4/sha512.m4: Likewise.
44492         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
44493
44494 2008-05-10  Bruno Haible  <bruno@clisp.org>
44495
44496         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
44497         (Input/Output <stdio.h>): Add xprintf.
44498         (Signal handling <signal.h>): Add strsignal.
44499         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
44500         (Core language properties): Add func.
44501         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
44502         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
44503         strings.
44504         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
44505         (Input/output): New section.
44506         (File system functions): Add openat-die, stat-macros.
44507         (Networking functions): Add sockets.
44508         (Unicode string functions): Add unictype/*.
44509         (Support for building libraries and executables): Add gperf.
44510         (Support for building documentation): Add agpl-3.0.
44511         (Misc): Add nocrash.
44512
44513 2008-05-10  Bruno Haible  <bruno@clisp.org>
44514
44515         * modules/unictype/gen-ctype: New file.
44516
44517 2008-05-10  Jim Meyering  <meyering@redhat.com>
44518
44519         Make chdir-safer.c more efficient on a system with no symlinks.
44520         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
44521         also if ELOOP is zero.  Suggested by Bruno Haible.
44522
44523         Make chdir-safer.c slightly safer.
44524         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
44525         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
44526
44527         Avoid compile failure on systems without ELOOP (like mingw).
44528         * lib/chdir-safer.c (ELOOP): Define if not already defined.
44529         Reported by Bruno Haible.
44530
44531 2008-05-10  Bruno Haible  <bruno@clisp.org>
44532
44533         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
44534         (is_utf8_encoding): Use a case-insensitive comparison.
44535         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
44536         streq.
44537
44538 2008-05-10  Bruno Haible  <bruno@clisp.org>
44539
44540         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
44541         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
44542         * lib/unilbrk/ulc-common.h (iconv_string_length,
44543         iconv_string_keeping_offsets): Remove declarations.
44544         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
44545         Don't include <iconv.h>, streq.h, xsize.h.
44546         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
44547         conversion.
44548         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
44549         <iconv.h>, streq.h, xsize.h.
44550         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
44551         conversion.
44552         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
44553         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
44554         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
44555         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
44556
44557 2008-05-10  Bruno Haible  <bruno@clisp.org>
44558
44559         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
44560         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
44561
44562         * modules/unilbrk/u32-width-linebreaks-tests: New file.
44563         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
44564
44565         * modules/unilbrk/u16-width-linebreaks-tests: New file.
44566         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
44567
44568         * modules/unilbrk/u8-width-linebreaks-tests: New file.
44569         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
44570
44571         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
44572         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
44573
44574         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
44575         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
44576
44577         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
44578         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
44579
44580         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
44581         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
44582
44583 2008-05-10  Bruno Haible  <bruno@clisp.org>
44584
44585         Split up 'linebreak' module.
44586         * lib/unilbrk.h: New file, based on lib/linebreak.h.
44587         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
44588         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
44589         modifications.
44590         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
44591         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
44592         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
44593         lib/linebreak.c.
44594         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
44595         lib/linebreak.c.
44596         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
44597         lib/linebreak.c.
44598         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
44599         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
44600         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
44601         lib/linebreak.c.
44602         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
44603         lib/linebreak.c.
44604         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
44605         lib/linebreak.c.
44606         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
44607         lib/linebreak.c.
44608         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
44609         lib/linebreak.c.
44610         * modules/unilbrk/base: New file.
44611         * modules/unilbrk/tables: New file.
44612         * modules/unilbrk/u8-possible-linebreaks: New file.
44613         * modules/unilbrk/u16-possible-linebreaks: New file.
44614         * modules/unilbrk/u32-possible-linebreaks: New file.
44615         * modules/unilbrk/ulc-common: New file.
44616         * modules/unilbrk/ulc-possible-linebreaks: New file.
44617         * modules/unilbrk/u8-width-linebreaks: New file.
44618         * modules/unilbrk/u16-width-linebreaks: New file.
44619         * modules/unilbrk/u32-width-linebreaks: New file.
44620         * modules/unilbrk/ulc-width-linebreaks: New file.
44621         * lib/linebreak.h: Remove file.
44622         * lib/linebreak.c: Remove file.
44623         * m4/linebreak.m4: Remove file.
44624         * modules/linebreak: Remove file.
44625         * NEWS: Mention the changes.
44626
44627 2008-05-09  Eric Blake  <ebb9@byu.net>
44628
44629         Add xmemdup0.
44630         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
44631         implementation.
44632         * lib/xmalloc.c (xmemdup0): New C implementation.
44633
44634 2008-05-08  Bruno Haible  <bruno@clisp.org>
44635
44636         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
44637
44638 2008-05-07  Eric Blake  <ebb9@byu.net>
44639
44640         Support cross-compilation of <wctype.h>.
44641         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
44642         AC_CACHE_CHECK.
44643
44644 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
44645
44646         * build-aux/vc-list-files: Add support for bzr.
44647
44648 2008-05-03  Jim Meyering  <meyering@redhat.com>
44649
44650         avoid failed assertion with tight malloc
44651         * tests/test-getndelim2.c: Correct an off-by-one assertion.
44652
44653 2008-05-03  Simon Josefsson  <simon@josefsson.org>
44654
44655         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
44656         are needed from arpa/inet.h.
44657         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
44658         Reported by Bruno Haible.
44659
44660 2008-05-02  Jim Meyering  <meyering@redhat.com>
44661
44662         avoid compilation error on FreeBSD 6
44663         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
44664
44665 2008-05-01  Jim Meyering  <meyering@redhat.com>
44666
44667         useless-if-before-free: correct --help's exit status description
44668         * build-aux/useless-if-before-free (usage): Like grep, exit 0
44669         for one or more matches, etc.  Reported by Bruno Haible.
44670
44671         vc-list-files: make the stand-alone gnulib test work
44672         * modules/vc-list-files-tests (configure.ac):
44673         Define and AC_SUBST abs_aux_dir.
44674         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
44675         $(abs_top_srcdir) to each script and having each of them
44676         duplicate the work of setting PATH, set PATH here, using
44677         the new variable, abs_aux_dir instead.
44678         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
44679         * tests/test-vc-list-files-git.sh: Likewise.
44680         Reported by Bruno Haible.
44681
44682 2008-05-01  Bruno Haible  <bruno@clisp.org>
44683
44684         * lib/getndelim2.c (getndelim2): Fix newsize computation during
44685         reallocation. Rename 'done' to 'found_delimiter'.
44686
44687 2008-05-01  Jim Meyering  <meyering@redhat.com>
44688
44689         vc-list-files: accommodate /bin/sh like the one from Solaris 10
44690         * build-aux/vc-list-files: Use `...`, not $(...).
44691
44692 2008-04-30  Jim Meyering  <meyering@redhat.com>
44693
44694         add tests for vc-list-files
44695         * modules/vc-list-files-tests: New module.
44696         * tests/test-vc-list-files-cvs.sh: New file.
44697         * tests/test-vc-list-files-git.sh: New file.
44698
44699         avoid a warning from gcc
44700         * lib/getndelim2.c (IF_LINT): Define.
44701         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
44702
44703         vc-list-files: work properly with build-aux/cvsu, too
44704         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
44705         to all cvs-based clauses.
44706
44707         vc-list-files: work properly in the CVS+awk case, too
44708         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
44709
44710         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
44711         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
44712         take more than one file argument, so .  Add quotes, just in case $dir
44713         ever contains a shell meta-character.  Prompted by Soren Hansen in
44714         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
44715
44716 2008-04-29  Eric Blake  <ebb9@byu.net>
44717
44718         Optimize getndelim2 to use block operations when possible.
44719         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
44720         freadseek, and memchr2.
44721         * lib/getndelim2.c (getndelim2): Use them for block reads.
44722
44723 2008-04-29  Bruno Haible  <bruno@clisp.org>
44724
44725         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
44726         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44727         * modules/inet_ntop (Depends-on): Add extensions.
44728         * modules/inet_pton (Depends-on): Likewise.
44729         Reported by Simon Josefsson.
44730
44731 2008-04-29  Jim Meyering  <meyering@redhat.com>
44732
44733         When the is more than one match in a block, match all of them.
44734         * build-aux/useless-if-before-free: Iterate through each block
44735         until there are no more matches.
44736
44737         Fix broken useless-if-before-free script.
44738         * build-aux/useless-if-before-free: Fix typo: missing "?" after
44739         the expression to match cast of argument to free-like function.
44740
44741 2008-04-29  Eric Blake  <ebb9@byu.net>
44742
44743         Use new header.
44744         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
44745
44746 2008-04-29  Jim Meyering  <meyering@redhat.com>
44747
44748         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
44749         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
44750         by gnulib to exist and to declare e.g., inet_ntop.
44751         Don't include "inet_ntop.h", now removed.
44752
44753         * m4/arpa_inet_h.m4: Remove trailing blanks.
44754
44755 2008-04-29  Eric Blake  <ebb9@byu.net>
44756
44757         Silence valgrind on safe reads beyond potential array bounds.
44758         * lib/rawmemchr.valgrind: New file.
44759         * lib/strchrnul.valgrind: Likewise.
44760         * modules/rawmemchr (Files): Distribute new file.
44761         * modules/strchrnul (Files): Likewise.
44762         Suggested by Bruno Haible.
44763
44764 2008-04-29  Bruno Haible  <bruno@clisp.org>
44765
44766         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
44767         (inet_ntop, inet_pton): Change portability warning's wording.
44768         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
44769         Invoke gl_CHECK_NEXT_HEADERS.
44770         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
44771         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
44772         set ARPA_INET_H.
44773         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44774         * modules/arpa_inet (Description): No longer only for systems that
44775         lack it.
44776         (Depends-on): Add include_next.
44777         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
44778         HAVE_ARPA_INET_H.
44779
44780 2008-04-29  Jim Meyering  <meyering@redhat.com>
44781
44782         * modules/mkdir (License): Re-license as LGPLv2+.
44783
44784 2008-04-29  Bruno Haible  <bruno@clisp.org>
44785
44786         * modules/rawmemchr (Maintainer): Set to Eric.
44787         * modules/strchrnul (Maintainer): Likewise.
44788
44789 2008-04-29  Simon Josefsson  <simon@josefsson.org>
44790
44791         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
44792         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
44793
44794         * modules/arpa_inet (arpa/inet.h): Use them.
44795
44796 2008-04-28  Eric Blake  <ebb9@byu.net>
44797
44798         Test getndelim2.
44799         * modules/getndelim2-tests: New file.
44800         * tests/test-getndelim2.c: Likewise.
44801         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
44802         stream.
44803         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
44804
44805         * MODULES.html.sh: Document new module.
44806
44807 2008-04-20  Bruno Haible  <bruno@clisp.org>
44808
44809         * lib/c-stack.c (die): Use raise.
44810         * modules/c-stack (Depends-on): Add raise.
44811
44812 2008-04-28  Bruno Haible  <bruno@clisp.org>
44813
44814         Expect rpmatch to be declared.
44815         * lib/yesno.c (rpmatch): Remove declaration.
44816
44817         Declare rpmatch.
44818         * lib/stdlib.in.h (rpmatch): New declaration.
44819         * lib/rpmatch.c: Include <stdlib.h> first.
44820         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
44821         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
44822         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
44823         HAVE_RPMATCH.
44824         * modules/rpmatch (Depends-on): Add stdlib, extensions.
44825         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44826         (Include): Set to <stdlib.h>.
44827         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
44828         HAVE_RPMATCH.
44829         * NEWS: Document the change.
44830
44831 2008-04-28  Bruno Haible  <bruno@clisp.org>
44832
44833         Change rpmatch to use nl_langinfo when appropriate.
44834         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
44835         (N_): New macro.
44836         (localized_pattern): New function/macro.
44837         (try): Remove match, nomatch arguments. Copy the pattern into safe
44838         memory before caching it.
44839         (rpmatch): Use localized_pattern. Add translator comments.
44840         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
44841         Suggested by Eric Blake.
44842         * modules/rpmatch (Depends-on): Add stdbool.
44843
44844 2008-04-28  Eric Blake  <ebb9@byu.net>
44845
44846         Add rawmemchr module, matching glibc.
44847         * modules/string (Makefile.am): New indicator.
44848         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
44849         * lib/string.in.h (rawmemchr): Declare when appropriate.
44850         * modules/rawmemchr: New file.
44851         * m4/rawmemchr.m4: Likewise.
44852         * lib/rawmemchr.c: Likewise.
44853         * modules/rawmemchr-tests: Likewise.
44854         * tests/test-rawmemchr.c: Likewise.
44855         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
44856         module.
44857         * modules/strchrnul (Depends-on): Add rawmemchr.
44858         * lib/strchrnul.c (strchrnul): Optimize a corner case.
44859
44860         Whitespace cleanup.
44861         * tests/test-strchrnul.c: Reindent.
44862         * lib/strchrnul.c: Likewise.
44863
44864         Optimize and test strchrnul.
44865         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
44866         * modules/strchrnul-tests: New file.
44867         * tests/test-strchrnul.c: Likewise.
44868
44869         Remove intprops dependency.
44870         * modules/memchr (Depends-on): Remove intprops.
44871         * modules/memrchr (Depends-on): Likewise.
44872         * modules/memchr2 (Depends-on): Likewise.
44873         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
44874         * lib/memrchr.c (__memrchr): Likewise.
44875         * lib/memrchr2.c (memchr2): Likewise.
44876         Reported by Simon Josefsson.
44877
44878 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44879
44880         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
44881         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44882
44883 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44884
44885         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
44886
44887         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
44888
44889         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
44890
44891         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
44892         declarations.
44893         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
44894
44895         * m4/inet_pton.m4: Don't check for header files.
44896
44897         * m4/inet_ntop.m4: Don't check for header files.
44898
44899 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44900
44901         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
44902         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
44903         trigger for cygwin).
44904         Reported by Bruno Haible  <bruno@clisp.org>.
44905
44906 2008-04-28  Bruno Haible  <bruno@clisp.org>
44907
44908         * doc/posix-functions/strdup.texi: Mention mingw problem.
44909
44910 2008-04-27  Bruno Haible  <bruno@clisp.org>
44911
44912         * modules/stat-time-tests (Depends-on): Add sleep.
44913         * tests/test-stat-time.c (force_unlink): New function.
44914         (cleanup): Use it.
44915         (test_mtime): Remove the ctime related tests.
44916         (test_ctime): New function, containing the ctime related tests.
44917         (main): Call test_ctime, except on native Windows platforms.
44918
44919 2008-04-27  Bruno Haible  <bruno@clisp.org>
44920
44921         * lib/rpmatch.c (rpmatch): Add some comments.
44922         Reported by James Youngman <jay@gnu.org>.
44923
44924 2008-04-27  Bruno Haible  <bruno@clisp.org>
44925
44926         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
44927         quiet NaNs.
44928
44929 2008-04-27  Bruno Haible  <bruno@clisp.org>
44930
44931         Make test-yesno.sh work on mingw.
44932         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
44933         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
44934         (main): Set stdin to binary mode.
44935         * modules/yesno-tests (Depends-on): Add binary-io.
44936
44937 2008-04-27  Bruno Haible  <bruno@clisp.org>
44938
44939         Fix 'isfinite' on x86, x86_64, ia64 platforms.
44940         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
44941         argument that lie outside the IEEE 854 domain.
44942         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
44943         (gl_ISFINITE): Use it.
44944         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
44945
44946 2008-04-27  Bruno Haible  <bruno@clisp.org>
44947
44948         Allow local renaming in config.h.
44949         * lib/memrchr.c (memrchr): Don't undefine outside libc.
44950
44951 2008-04-27  Bruno Haible  <bruno@clisp.org>
44952
44953         * lib/memchr.c (__memchr): Change type of 'i'.
44954         * lib/memchr2.c (memchr2): Likewise.
44955
44956 2008-04-26  Eric Blake  <ebb9@byu.net>
44957         and Bruno Haible  <bruno@clisp.org>
44958
44959         Optimize and test memrchr.
44960         * modules/memrchr (Depends-on): Add intprops.
44961         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
44962         * modules/memrchr-tests: New file.
44963         * tests/test-memrchr.c: New file.
44964
44965 2008-04-26  Bruno Haible  <bruno@clisp.org>
44966
44967         Add tentative support for DragonFly BSD.
44968         * lib/stdio-impl.h: Add macros for DragonFly BSD.
44969         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
44970         fp.
44971         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
44972         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
44973         * lib/fpurge.c (fpurge): Likewise.
44974         * lib/freadable.c (freaadable): Likewise.
44975         * lib/freadahead.c (freadahead): Likewise.
44976         * lib/freading.c (freading): Likewise.
44977         * lib/freadptr.c (freadptr): Likewise.
44978         * lib/freadseek.c (freadptrinc): Likewise.
44979         * lib/fseeko.c (fseeko): Likewise.
44980         * lib/fseterr.c (fseterr): Likewise.
44981         * lib/fwritable.c (fwritable): Likewise.
44982         * lib/fwriting.c (fwriting): Likewise.
44983
44984 2008-04-26  Bruno Haible  <bruno@clisp.org>
44985
44986         * lib/stdio-impl.h: New file.
44987         * lib/fbufmode.c: Include stdio-impl.h.
44988         (fbufmode): Use fp_, remove redundant #defines.
44989         * lib/fflush.c: Include stdio-impl.h.
44990         (clear_ungetc_buffer): Remove redundant #defines.
44991         * lib/fpurge.c: Include stdio-impl.h.
44992         (fpurge): Remove redundant #defines.
44993         * lib/freadable.c: Include stdio-impl.h.
44994         (freadable): Remove redundant #defines.
44995         * lib/freadahead.c: Include stdio-impl.h.
44996         (freadahead): Remove redundant #defines.
44997         * lib/freading.c: Include stdio-impl.h.
44998         (freading): Remove redundant #defines.
44999         * lib/freadptr.c: Include stdio-impl.h.
45000         (freadptr): Remove redundant #defines.
45001         * lib/freadseek.c: Include stdio-impl.h.
45002         (freadptrinc): Remove redundant #defines.
45003         * lib/fseeko.c: Include stdio-impl.h.
45004         (rpl_fseeko): Remove redundant #defines.
45005         * lib/fseterr.c: Include stdio-impl.h.
45006         (fseterr): Remove redundant #defines.
45007         * lib/fwritable.c: Include stdio-impl.h.
45008         (fwritable: Remove redundant #defines.
45009         * lib/fwriting.c: Include stdio-impl.h.
45010         (fwriting): Remove redundant #defines.
45011         * modules/fbufmode (Files): Add lib/stdio-impl.h.
45012         * modules/fflush (Files): Likewise.
45013         * modules/fpurge (Files): Likewise.
45014         * modules/freadable (Files): Likewise.
45015         * modules/freadahead (Files): Likewise.
45016         * modules/freading (Files): Likewise.
45017         * modules/freadptr (Files): Likewise.
45018         * modules/freadseek (Files): Likewise.
45019         * modules/fseeko (Files): Likewise.
45020         * modules/fseterr (Files): Likewise.
45021         * modules/fwritable (Files): Likewise.
45022         * modules/fwriting (Files): Likewise.
45023
45024 2008-04-26  Bruno Haible  <bruno@clisp.org>
45025
45026         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
45027         restore_seek_optimization, update_fpos_cache): New functions, extracted
45028         from rpl_fflush.
45029         (rpl_fflush): Use them.
45030         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
45031         (gl_REPLACE_FFLUSH): Use it.
45032
45033 2008-04-26  Bruno Haible  <bruno@clisp.org>
45034
45035         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
45036         on Solaris.
45037         * tests/test-xstrtoimax.sh: Likewise.
45038         * tests/test-xstrtoumax.sh: Likewise.
45039         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45040
45041 2008-04-26  Bruno Haible  <bruno@clisp.org>
45042
45043         * modules/memchr-tests: New file.
45044         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
45045
45046 2008-04-26  Eric Blake  <ebb9@byu.net>
45047             Bruno Haible  <bruno@clisp.org>
45048
45049         * lib/memchr.c: Include intprops.h.
45050         (__memchr): Optimize parallel detection of matching bytes. Rename local
45051         variables. Add explanatory comments.
45052
45053 2008-04-26  Bruno Haible  <bruno@clisp.org>
45054
45055         Fix module 'memchr', broken since 2000-10-28.
45056         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
45057
45058 2008-04-26  Bruno Haible  <bruno@clisp.org>
45059
45060         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
45061         comments.
45062
45063 2008-04-25  Eric Blake  <ebb9@byu.net>
45064
45065         Use native fstatat on cygwin 1.7.0.
45066         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
45067         first.
45068
45069 2008-04-23  Eric Blake  <ebb9@byu.net>
45070
45071         Improve memchr2 performance.
45072         * lib/memchr2.c (memchr2): Further optimize parallel detection of
45073         NUL bytes.
45074         * modules/memchr2 (Depends-on): Use intprops.h.
45075
45076 2008-04-23  Simon Josefsson  <simon@josefsson.org>
45077
45078         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
45079         an inline function instead of a CPP macro.  Patch by Ben Pfaff
45080         <blp@cs.stanford.edu>.
45081
45082 2008-04-23  Simon Josefsson  <simon@josefsson.org>
45083
45084         * lib/arpa_inet.in.h: New file.
45085
45086         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
45087         (Makefile.am): Sed in substitute header file.
45088
45089         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
45090         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
45091
45092         * modules/inet_ntop (configure.ac): Use
45093         gl_ARPA_INET_MODULE_INDICATOR.
45094
45095         * modules/inet_pton (configure.ac): Use
45096         gl_ARPA_INET_MODULE_INDICATOR.
45097
45098 2008-04-22  Jim Meyering  <meyering@redhat.com>
45099
45100         * modules/verify (License): Re-license as LGPLv2+.
45101
45102 2008-04-22  Simon Josefsson  <simon@josefsson.org>
45103
45104         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
45105         parameter to void* as per POSIX standard (MinGW uses char*).
45106
45107 2008-04-21  Bruno Haible  <bruno@clisp.org>
45108
45109         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
45110         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
45111         Define to replacements if REPLACE_ISWCNTRL is 1.
45112         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
45113         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
45114         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
45115         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
45116         what it fixes.
45117         * doc/posix-functions/iswalpha.texi: Likewise.
45118         * doc/posix-functions/iswblank.texi: Likewise.
45119         * doc/posix-functions/iswcntrl.texi: Likewise.
45120         * doc/posix-functions/iswdigit.texi: Likewise.
45121         * doc/posix-functions/iswgraph.texi: Likewise.
45122         * doc/posix-functions/iswlower.texi: Likewise.
45123         * doc/posix-functions/iswprint.texi: Likewise.
45124         * doc/posix-functions/iswpunct.texi: Likewise.
45125         * doc/posix-functions/iswspace.texi: Likewise.
45126         * doc/posix-functions/iswupper.texi: Likewise.
45127         * doc/posix-functions/iswxdigit.texi: Likewise.
45128         Reported by Alain Guibert.
45129
45130 2008-04-21  Bruno Haible  <bruno@clisp.org>
45131
45132         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
45133         Patch by Alain Guibert.
45134
45135 2008-04-21  Bruno Haible  <bruno@clisp.org>
45136
45137         Fix test failures on mingw.
45138         * tests/test-xstrtol.c (print_no_progname): New function.
45139         (main): Install it in error_print_progname hook.
45140         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
45141         * tests/test-xstrtoimax.sh: Likewise.
45142         * tests/test-xstrtoumax.sh: Likewise.
45143
45144 2008-04-21  Bruno Haible  <bruno@clisp.org>
45145
45146         Fix test failure on mingw.
45147         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
45148
45149 2008-04-21  Bruno Haible  <bruno@clisp.org>
45150
45151         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
45152         Actually assign a value.
45153
45154 2008-04-20  Bruno Haible  <bruno@clisp.org>
45155
45156         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
45157         take 2.
45158         * lib/canonicalize.c (canonicalize_file_name): Elide if the
45159         'canonicalize-lgpl' module is also used.
45160         * lib/canonicalize-lgpl.c: Undo last change.
45161         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
45162
45163 2008-04-20  Bruno Haible  <bruno@clisp.org>
45164
45165         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
45166         config.h. Provide _mkdir based fallback for mingw.
45167         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
45168         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
45169         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
45170         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
45171         rather than defining mkdir in config.h.
45172         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
45173         (gl_SYS_STAT_H_DEFAULTS): New macro.
45174         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
45175         HAVE_IO_H any more.
45176         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
45177         HAVE_DECL_MKDIR and HAVE_IO_H.
45178
45179 2008-04-20  Bruno Haible  <bruno@clisp.org>
45180
45181         * lib/isapipe.c: Port to native Windows platforms.
45182
45183 2008-04-20  Bruno Haible  <bruno@clisp.org>
45184
45185         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
45186
45187 2008-04-21  Eric Blake  <ebb9@byu.net>
45188
45189         Work around preprocessors that don't handle UINTMAX_MAX.
45190         * lib/memchr2.c (memchr2): Avoid embedded #if.
45191         Reported by Alain Guibert, fix suggested by Bruno Haible.
45192
45193 2008-04-21  Simon Josefsson  <simon@josefsson.org>
45194
45195         * doc/posix-functions/strftime.texi (strftime): Explain better
45196         Windows incompatibility.  Suggested by Micah Cowan
45197         <micah@cowan.name>.
45198
45199 2008-04-20  Bruno Haible  <bruno@clisp.org>
45200
45201         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
45202         unistr/u8-mblen.
45203
45204 2008-04-20  Bruno Haible  <bruno@clisp.org>
45205
45206         Fix test failure on platforms with non-GNU iconv.
45207         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
45208         (U_TO_U8): Use it, rather than u16_to_u8.
45209         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
45210         units at the end of the input string.
45211         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
45212
45213 2008-04-20  Bruno Haible  <bruno@clisp.org>
45214
45215         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
45216         when the resulting length is 0.
45217         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
45218
45219 2008-04-20  Bruno Haible  <bruno@clisp.org>
45220
45221         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
45222         works.
45223         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
45224
45225 2008-04-20  Bruno Haible  <bruno@clisp.org>
45226
45227         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
45228         * modules/tsearch-tests (configure.ac): Test for initstate function.
45229
45230 2008-04-20  Bruno Haible  <bruno@clisp.org>
45231
45232         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
45233         for nlink_t if missing.
45234         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
45235
45236 2008-04-19  Bruno Haible  <bruno@clisp.org>
45237
45238         Work around snprintf bug on Linux libc5.
45239         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
45240         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
45241         gl_SNPRINTF_SIZE1.
45242         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45243         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
45244         that test failed.
45245         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
45246         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
45247         * modules/snprintf (Files): Add m4/printf.m4.
45248         * modules/vsnprintf (Files): Likewise.
45249         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
45250         * doc/posix-functions/vsnprintf.texi: Likewise.
45251
45252 2008-04-19  Bruno Haible  <bruno@clisp.org>
45253
45254         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
45255         from 0.0058 to less than 10^-7.
45256
45257 2008-04-19  Bruno Haible  <bruno@clisp.org>
45258
45259         Fix rounding when a precision is given.
45260         * lib/vasnprintf.c (is_borderline): New function.
45261         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
45262         9...9x.
45263         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
45264         %e, %g.
45265         * tests/test-vasprintf-posix.c (test_function): Likewise.
45266         * tests/test-snprintf-posix.h (test_function): Likewise.
45267         * tests/test-sprintf-posix.h (test_function): Likewise.
45268         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
45269         * tests/test-printf-posix.h (test_function): Likewise.
45270         * tests/test-printf-posix.output: Update.
45271         Reported by John Darrington <john@darrington.wattle.id.au> via
45272         Ben Pfaff <blp@cs.stanford.edu>.
45273
45274 2008-04-18  Simon Josefsson  <simon@josefsson.org>
45275
45276         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
45277         Suggested by Bruno Haible <bruno@clisp.org>.
45278
45279 2008-04-17  Bruno Haible  <bruno@clisp.org>
45280
45281         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
45282         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
45283         implementation.
45284         Patch by Bruce Merry <bmerry@gmail.com>.
45285
45286 2008-04-17  Simon Josefsson  <simon@josefsson.org>
45287
45288         * doc/posix-functions/strftime.texi (strftime): Mention that %e
45289         doesn't work under Windows.
45290
45291 2008-04-16  Bruno Haible  <bruno@clisp.org>
45292
45293         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
45294         New macros.
45295         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
45296         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
45297         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
45298         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
45299         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
45300         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
45301         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
45302         macros.
45303         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
45304         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
45305         Northern Sotho, Uighur.
45306
45307 2008-04-16  Bruno Haible  <bruno@clisp.org>
45308
45309         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
45310         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
45311         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
45312         Reported by Daniel Bergström <daniel@octocode.com>.
45313
45314 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
45315             Bruno Haible  <bruno@clisp.org>
45316
45317         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
45318         function.
45319         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
45320         New functions, mostly extracted from gl_locale_name_default.
45321         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
45322
45323 2008-04-16  Eric Blake  <ebb9@byu.net>
45324
45325         Adjust strtod detection to catch glibc 2.7 bug.
45326         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
45327         Reported by John Gatewood Ham.
45328
45329 2008-04-16  Bruno Haible  <bruno@clisp.org>
45330
45331         Add tentative support for Linux libc5.
45332         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
45333         * lib/fpurge.c (fpurge): Likewise.
45334         * lib/freadable.c (freadable): Likewise.
45335         * lib/freadahead.c (freadahead): Likewise.
45336         * lib/freading.c (freading): Likewise.
45337         * lib/freadptr.c (freadptr): Likewise.
45338         * lib/freadseek.c (freadptrinc): Likewise.
45339         * lib/fseeko.c (rpl_fseeko): Likewise.
45340         * lib/fseterr.c (fseterr): Likewise.
45341         * lib/fwritable.c (fwritable): Likewise.
45342         * lib/fwriting.c (fwriting): Likewise.
45343         Reported by Alain Guibert <alguibert+bts@free.fr>.
45344
45345 2008-04-15  Bruno Haible  <bruno@clisp.org>
45346
45347         * modules/mathl (configure.ac): Define module indicator.
45348
45349 2008-04-15  Bruno Haible  <bruno@clisp.org>
45350
45351         * lib/logl.c (logl): Remove unused variables.
45352
45353 2008-04-15  Bruno Haible  <bruno@clisp.org>
45354
45355         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
45356         fails.
45357
45358 2008-04-15  Bruno Haible  <bruno@clisp.org>
45359
45360         * lib/trim.c (trim2): Fix argument of isspace() macro.
45361
45362 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
45363
45364         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
45365         to 0.
45366         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
45367
45368 2008-04-14  Bruno Haible  <bruno@clisp.org>
45369
45370         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
45371         AC_LANG_PROGRAM argument.
45372         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
45373         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
45374         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
45375         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
45376         * m4/math_h.m4 (gl_MATH_H): Likewise.
45377         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
45378         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
45379         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
45380         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
45381         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
45382         * m4/regex.m4 (gl_REGEX): Likewise.
45383         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
45384         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
45385         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45386         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
45387         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
45388         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45389         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
45390         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
45391
45392 2008-04-14  Jim Meyering  <meyering@redhat.com>
45393
45394         test-strtod: fix typos: s/abs/fabs/
45395         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
45396
45397 2008-04-13  Bruno Haible  <bruno@clisp.org>
45398
45399         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
45400         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
45401         module is also used and while not building the reloc-wrapper.
45402
45403 2008-04-13  Bruno Haible  <bruno@clisp.org>
45404
45405         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
45406
45407 2008-04-13  Bruno Haible  <bruno@clisp.org>
45408
45409         Fix AIX compilation failure introduced on 2008-04-02.
45410         * tests/test-frexp.c (exp): Undefine before redefining.
45411         * tests/test-frexpl.c (exp): Likewise.
45412
45413 2008-04-13  Bruno Haible  <bruno@clisp.org>
45414
45415         Work around a HP-UX stdio bug.
45416         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
45417         * tests/test-ftello.c (main): Likewise.
45418         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
45419         * doc/posix-functions/ftello.texi: Likewise.
45420
45421 2008-04-13  Bruno Haible  <bruno@clisp.org>
45422
45423         Make test-signbit pass on HP-UX/hppa.
45424         * tests/test-signbit.c (minus_zerol): New variable.
45425         (test_signbitl): Use it.
45426
45427 2008-04-13  Bruno Haible  <bruno@clisp.org>
45428
45429         Make truncl work on OSF/1 4.0.
45430         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
45431         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
45432         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
45433         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
45434         HAVE_DECL_TRUNCL.
45435         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
45436         HAVE_DECL_TRUNCL.
45437         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
45438
45439 2008-04-13  Bruno Haible  <bruno@clisp.org>
45440
45441         * lib/unictype.h: Remove trailing comma from enumeration definitions.
45442
45443 2008-04-13  Bruno Haible  <bruno@clisp.org>
45444
45445         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
45446         expression, so as to avoid HP-UX 11 cc compiler bug.
45447
45448 2008-04-13  Bruno Haible  <bruno@clisp.org>
45449
45450         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
45451
45452 2008-04-13  Bruno Haible  <bruno@clisp.org>
45453
45454         * lib/git-merge-changelog.c: Remove empty declaration outside of
45455         functions.
45456
45457 2008-04-13  Bruno Haible  <bruno@clisp.org>
45458
45459         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
45460
45461 2008-04-13  Bruno Haible  <bruno@clisp.org>
45462
45463         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
45464         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
45465         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
45466         also if it exists but lacks definitions of the SHUT_* macros.
45467         * modules/sys_socket (Description): Update.
45468         Reported by Elbert Pol <e.pol@chello.nl>.
45469
45470 2008-04-13  Bruno Haible  <bruno@clisp.org>
45471
45472         * lib/localcharset.c (OS2): Don't redefine if already defined.
45473         Reported by Elbert Pol <e.pol@chello.nl>.
45474
45475 2008-04-13  Bruno Haible  <bruno@clisp.org>
45476
45477         * lib/binary-io.h [__EMX__]: Include <io.h>.
45478         Reported by Elbert Pol <e.pol@chello.nl>.
45479
45480 2008-04-12  Bruno Haible  <bruno@clisp.org>
45481
45482         * lib/fpucw.h: Enable the definitions also for x86_64.
45483         Needed for NetBSD/x86_64.
45484         Reported by Thomas Klausner <tk@giga.or.at>.
45485
45486 2008-04-12  Bruno Haible  <bruno@clisp.org>
45487
45488         * tests/test-strtod.c: Include isnand.h.
45489         (main): Use isnand instead of isnan.
45490         Reported by Jim Meyering.
45491
45492 2008-04-12  Bruno Haible  <bruno@clisp.org>
45493
45494         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
45495         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
45496
45497 2008-04-12  Jim Meyering  <meyering@redhat.com>
45498
45499         * m4/math_h.m4 (gl_MATH_H): Fix typos.
45500
45501 2008-04-12  Bruno Haible  <bruno@clisp.org>
45502
45503         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
45504         Reported by Elbert Pol <e.pol@chello.nl>.
45505
45506 2008-04-12  Eric Blake  <ebb9@byu.net>
45507
45508         Work around Solaris 10 math.h bug.
45509         * m4/math_h.m4 (gl_MATH_H): Check for bug.
45510         (gl_MATH_H_DEFAULTS): Set up default.
45511         * modules/math (Makefile.am): Replace new indicators.
45512         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
45513         * tests/test-math.c (main): Test this.
45514         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
45515         * doc/posix-headers/math.texi (math.h): Mention bug.
45516         Reported by Nelson H. F. Beebe and Jim Meyering.
45517
45518 2008-04-11  Bruno Haible  <bruno@clisp.org>
45519
45520         Adapt to future versions of Apple GCC.
45521         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
45522         Reported by Peter O'Gorman <peter@pogma.com>.
45523
45524 2008-04-11  Bruno Haible  <bruno@clisp.org>
45525
45526         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
45527
45528 2008-04-11  Bruno Haible  <bruno@clisp.org>
45529
45530         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
45531
45532         * modules/getaddrinfo-tests (Makefile.am): Define
45533         test_getaddrinfo_LDADD.
45534
45535 2008-04-11  Bruno Haible  <bruno@clisp.org>
45536
45537         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
45538         (init): Fix syntax error.
45539         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
45540         is declared.
45541
45542 2008-04-11  Bruno Haible  <bruno@clisp.org>
45543
45544         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
45545         * modules/glob (Depends-on): Add stdbool.
45546
45547 2008-04-11  Bruno Haible  <bruno@clisp.org>
45548
45549         * lib/trim.c: Include <string.h>.
45550
45551 2008-04-11  Eric Blake  <ebb9@byu.net>
45552
45553         Avoid compile failure on OS/2.
45554         * lib/regex_internal.h (internal_function): Disable optimization
45555         on OS/2 (__EMX__), where it caused compiler error.
45556         Reported by Elbert Pol.
45557
45558 2008-04-11  Bruno Haible  <bruno@clisp.org>
45559
45560         Flush the standard error stream before aborting. Needed on mingw.
45561         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
45562         * tests/test-array_list.c (ASSERT): Likewise.
45563         * tests/test-array_oset.c (ASSERT): Likewise.
45564         * tests/test-avltree_list.c (ASSERT): Likewise.
45565         * tests/test-avltree_oset.c (ASSERT): Likewise.
45566         * tests/test-avltreehash_list.c (ASSERT): Likewise.
45567         * tests/test-binary-io.c (ASSERT): Likewise.
45568         * tests/test-byteswap.c (ASSERT): Likewise.
45569         * tests/test-c-ctype.c (ASSERT): Likewise.
45570         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
45571         * tests/test-c-strcasestr.c (ASSERT): Likewise.
45572         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
45573         * tests/test-c-strstr.c (ASSERT): Likewise.
45574         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
45575         * tests/test-canonicalize.c (ASSERT): Likewise.
45576         * tests/test-carray_list.c (ASSERT): Likewise.
45577         * tests/test-ceilf1.c (ASSERT): Likewise.
45578         * tests/test-ceilf2.c (ASSERT): Likewise.
45579         * tests/test-ceill.c (ASSERT): Likewise.
45580         * tests/test-count-one-bits.c (ASSERT): Likewise.
45581         * tests/test-fbufmode.c (ASSERT): Likewise.
45582         * tests/test-fflush2.c (ASSERT): Likewise.
45583         * tests/test-floorf1.c (ASSERT): Likewise.
45584         * tests/test-floorf2.c (ASSERT): Likewise.
45585         * tests/test-floorl.c (ASSERT): Likewise.
45586         * tests/test-fopen.c (ASSERT): Likewise.
45587         * tests/test-fpending.c (ASSERT): Likewise.
45588         * tests/test-fprintf-posix.c (ASSERT): Likewise.
45589         * tests/test-fpurge.c (ASSERT): Likewise.
45590         * tests/test-freadable.c (ASSERT): Likewise.
45591         * tests/test-freadahead.c (ASSERT): Likewise.
45592         * tests/test-freading.c (ASSERT): Likewise.
45593         * tests/test-freadptr.c (ASSERT): Likewise.
45594         * tests/test-freadptr2.c (ASSERT): Likewise.
45595         * tests/test-freadseek.c (ASSERT): Likewise.
45596         * tests/test-freopen.c (ASSERT): Likewise.
45597         * tests/test-frexp.c (ASSERT): Likewise.
45598         * tests/test-frexpl.c (ASSERT): Likewise.
45599         * tests/test-fseek.c (ASSERT): Likewise.
45600         * tests/test-fseeko.c (ASSERT): Likewise.
45601         * tests/test-fstrcmp.c (ASSERT): Likewise.
45602         * tests/test-ftell.c (ASSERT): Likewise.
45603         * tests/test-ftello.c (ASSERT): Likewise.
45604         * tests/test-func.c (ASSERT): Likewise.
45605         * tests/test-fwritable.c (ASSERT): Likewise.
45606         * tests/test-fwriting.c (ASSERT): Likewise.
45607         * tests/test-getdelim.c (ASSERT): Likewise.
45608         * tests/test-getline.c (ASSERT): Likewise.
45609         * tests/test-i-ring.c (ASSERT): Likewise.
45610         * tests/test-iconv-utf.c (ASSERT): Likewise.
45611         * tests/test-iconv.c (ASSERT): Likewise.
45612         * tests/test-isfinite.c (ASSERT): Likewise.
45613         * tests/test-isnand.c (ASSERT): Likewise.
45614         * tests/test-isnanf.c (ASSERT): Likewise.
45615         * tests/test-isnanl.h (ASSERT): Likewise.
45616         * tests/test-ldexpl.c (ASSERT): Likewise.
45617         * tests/test-linked_list.c (ASSERT): Likewise.
45618         * tests/test-linkedhash_list.c (ASSERT): Likewise.
45619         * tests/test-localename.c (ASSERT): Likewise.
45620         * tests/test-lseek.c (ASSERT): Likewise.
45621         * tests/test-mbscasecmp.c (ASSERT): Likewise.
45622         * tests/test-mbscasestr1.c (ASSERT): Likewise.
45623         * tests/test-mbscasestr2.c (ASSERT): Likewise.
45624         * tests/test-mbscasestr3.c (ASSERT): Likewise.
45625         * tests/test-mbscasestr4.c (ASSERT): Likewise.
45626         * tests/test-mbschr.c (ASSERT): Likewise.
45627         * tests/test-mbscspn.c (ASSERT): Likewise.
45628         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
45629         * tests/test-mbspbrk.c (ASSERT): Likewise.
45630         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
45631         * tests/test-mbsrchr.c (ASSERT): Likewise.
45632         * tests/test-mbsspn.c (ASSERT): Likewise.
45633         * tests/test-mbsstr1.c (ASSERT): Likewise.
45634         * tests/test-mbsstr2.c (ASSERT): Likewise.
45635         * tests/test-mbsstr3.c (ASSERT): Likewise.
45636         * tests/test-memchr2.c (ASSERT): Likewise.
45637         * tests/test-memmem.c (ASSERT): Likewise.
45638         * tests/test-open.c (ASSERT): Likewise.
45639         * tests/test-printf-frexp.c (ASSERT): Likewise.
45640         * tests/test-printf-frexpl.c (ASSERT): Likewise.
45641         * tests/test-printf-posix.c (ASSERT): Likewise.
45642         * tests/test-quotearg.c (ASSERT): Likewise.
45643         * tests/test-rbtree_list.c (ASSERT): Likewise.
45644         * tests/test-rbtree_oset.c (ASSERT): Likewise.
45645         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
45646         * tests/test-round1.c (ASSERT): Likewise.
45647         * tests/test-roundf1.c (ASSERT): Likewise.
45648         * tests/test-roundl.c (ASSERT): Likewise.
45649         * tests/test-signbit.c (ASSERT): Likewise.
45650         * tests/test-sleep.c (ASSERT): Likewise.
45651         * tests/test-snprintf-posix.c (ASSERT): Likewise.
45652         * tests/test-snprintf.c (ASSERT): Likewise.
45653         * tests/test-sprintf-posix.c (ASSERT): Likewise.
45654         * tests/test-stat-time.c (ASSERT): Likewise.
45655         * tests/test-strcasestr.c (ASSERT): Likewise.
45656         * tests/test-strerror.c (ASSERT): Likewise.
45657         * tests/test-striconv.c (ASSERT): Likewise.
45658         * tests/test-striconveh.c (ASSERT): Likewise.
45659         * tests/test-striconveha.c (ASSERT): Likewise.
45660         * tests/test-strsignal.c (ASSERT): Likewise.
45661         * tests/test-strstr.c (ASSERT): Likewise.
45662         * tests/test-strtod.c (ASSERT): Likewise.
45663         * tests/test-trunc1.c (ASSERT): Likewise.
45664         * tests/test-trunc2.c (ASSERT): Likewise.
45665         * tests/test-truncf1.c (ASSERT): Likewise.
45666         * tests/test-truncf2.c (ASSERT): Likewise.
45667         * tests/test-truncl.c (ASSERT): Likewise.
45668         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
45669         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
45670         * tests/test-vasnprintf.c (ASSERT): Likewise.
45671         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
45672         * tests/test-vasprintf.c (ASSERT): Likewise.
45673         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
45674         * tests/test-vprintf-posix.c (ASSERT): Likewise.
45675         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
45676         * tests/test-vsnprintf.c (ASSERT): Likewise.
45677         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
45678         * tests/test-wcwidth.c (ASSERT): Likewise.
45679         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
45680         * tests/test-xprintf-posix.c (ASSERT): Likewise.
45681         * tests/test-xvasprintf.c (ASSERT): Likewise.
45682         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
45683         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
45684         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
45685         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
45686         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
45687         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
45688         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
45689         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
45690         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
45691         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
45692         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
45693         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
45694         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
45695         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
45696         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
45697         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
45698         * tests/unictype/test-block_list.c (ASSERT): Likewise.
45699         * tests/unictype/test-block_of.c (ASSERT): Likewise.
45700         * tests/unictype/test-block_test.c (ASSERT): Likewise.
45701         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
45702         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
45703         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
45704         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
45705         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
45706         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
45707         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
45708         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
45709         * tests/unictype/test-combining.c (ASSERT): Likewise.
45710         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
45711         * tests/unictype/test-digit.c (ASSERT): Likewise.
45712         * tests/unictype/test-mirror.c (ASSERT): Likewise.
45713         * tests/unictype/test-numeric.c (ASSERT): Likewise.
45714         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
45715         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
45716         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
45717         * tests/unictype/test-scripts.c (ASSERT): Likewise.
45718         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
45719         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
45720         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
45721         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
45722         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
45723         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
45724         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
45725         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
45726         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
45727         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
45728         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
45729         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
45730         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
45731         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
45732         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
45733         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
45734         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
45735         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
45736         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
45737         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
45738         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
45739         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
45740         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
45741         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
45742         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
45743         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
45744         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
45745         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
45746         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
45747         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
45748         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
45749         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
45750         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
45751         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
45752         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
45753         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
45754         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
45755         Reported by Eric Blake.
45756
45757 2008-04-11  Bruno Haible  <bruno@clisp.org>
45758
45759         * lib/wchar.in.h: Tweak comment.
45760
45761 2008-04-11  Bruno Haible  <bruno@clisp.org>
45762
45763         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
45764         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
45765         gl_COMMON.
45766         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
45767
45768 2008-04-11  Bruno Haible  <bruno@clisp.org>
45769
45770         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
45771
45772 2008-04-11  Simon Josefsson  <simon@josefsson.org>
45773
45774         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
45775         of attempting to use non-existing /dev/*random.  Based on patch
45776         from Adam Strzelecki <ono@java.pl> in
45777         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
45778
45779 2008-04-08  Bruno Haible  <bruno@clisp.org>
45780
45781         Add tentative support for emx+gcc.
45782         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
45783         * lib/fpurge.c (fpurge): Likewise.
45784         * lib/freadable.c (freadable): Likewise.
45785         * lib/freadahead.c (freadahead): Likewise.
45786         * lib/freading.c (freading): Likewise.
45787         * lib/freadptr.c (freadptr): Likewise.
45788         * lib/freadseek.c (freadptrinc): Likewise.
45789         * lib/fseeko.c (rpl_fseeko): Likewise.
45790         * lib/fseterr.c (fseterr): Likewise.
45791         * lib/fwritable.c (fwritable): Likewise.
45792         * lib/fwriting.c (fwriting): Likewise.
45793         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
45794
45795 2008-04-09  Eric Blake  <ebb9@byu.net>
45796
45797         Avoid some autoconf warnings.
45798         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
45799         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
45800         * m4/afs.m4 (gl_AFS): Likewise.
45801         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
45802         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
45803         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45804         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
45805         (gl_INTEGER_TYPE_SUFFIX): Likewise.
45806         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
45807         (AC_CHECK_DECLS_ONCE): Likewise.
45808         Rename file...
45809         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
45810         gnulib-tool requires autoconf 2.59 or better.
45811         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
45812
45813 2008-04-08  Eric Blake  <ebb9@byu.net>
45814
45815         Use 'git describe --match' if present (added in git 1.5.5).
45816         * build-aux/git-version-gen: Limit result to tags that match 'v*'
45817         if possible.
45818
45819 2008-04-08  Bruno Haible  <bruno@clisp.org>
45820
45821         Add tentative support for OpenServer.
45822         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
45823         _ptr, _cnt.
45824         * lib/fpurge.c (fpurge): Likewise.
45825         * lib/freadable.c (freadable): Likewise.
45826         * lib/freadahead.c (freadahead): Likewise.
45827         * lib/freading.c (freading): Likewise.
45828         * lib/freadptr.c (freadptr): Likewise.
45829         * lib/freadseek.c (freadptrinc): Likewise.
45830         * lib/fseeko.c (rpl_fseeko): Likewise.
45831         * lib/fseterr.c (fseterr): Likewise.
45832         * lib/fwritable.c (fwritable): Likewise.
45833         * lib/fwriting.c (fwriting): Likewise.
45834         Reported by Roger Cornelius <rac@tenzing.org> and
45835         Brian K. White <brian@aljex.com>.
45836
45837 2008-04-06  Jim Meyering  <meyering@redhat.com>
45838
45839         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
45840
45841 2008-04-06  Bruno Haible  <bruno@clisp.org>
45842
45843         Avoid possible error with non-ASCII bytes in UTF-8 locales.
45844         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
45845         * tests/test-printf-posix.sh: Likewise.
45846         * tests/test-vfprintf-posix.sh: Likewise.
45847         * tests/test-vprintf-posix.sh: Likewise.
45848         * tests/test-xprintf-posix.sh: Likewise.
45849
45850 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45851
45852         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
45853         hide error from 'ls', needed on OS/2.
45854         Report by Elbert Pol <elbert.pol@gmail.com>.
45855
45856 2008-04-04  Eric Blake  <ebb9@byu.net>
45857
45858         Make test-fseeko.c failures meaningful.
45859         * tests/test-fseeko.c: Print line number on failure.
45860         * tests/test-fseek.c: Likewise.
45861         Reported by Nelson H. F. Beebe.
45862
45863         Improve strtod bug detection check.
45864         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
45865         required for Solaris 10.
45866         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
45867
45868 2008-04-04  Bruno Haible  <bruno@clisp.org>
45869
45870         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
45871         by m4/setenv.m4.
45872
45873 2008-04-03  Eric Blake  <ebb9@byu.net>
45874
45875         Ensure sane .version contents.
45876         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
45877         version string.
45878         * build-aux/git-version-gen: Improve documentation.
45879
45880         Make GNU make output nicer.
45881         * top/GNUmakefile [!_have-Makefile]: Add dependency on
45882         MAKECMDGOALS to enforce message for all command line targets.  Set
45883         srcdir for use in maint.mk.
45884
45885         Another maintainer tweak.
45886         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
45887         a target that regenerates version.
45888
45889 2008-04-03  Jim Meyering  <meyering@redhat.com>
45890
45891         vc-list-files: don't cause coreutils "make po-check" failure
45892         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
45893
45894 2008-04-03  Eric Blake  <ebb9@byu.net>
45895
45896         Allow VPATH usage of vc-list-files.
45897         * build-aux/vc-list-files (scriptversion): Add timestamp.
45898         (options): Add --help, --version, -C.
45899         (CVS): Support installed cvsu.
45900
45901 2008-04-02  Bruno Haible  <bruno@clisp.org>
45902
45903         Avoid some "statement with no effect" warnings from gcc.
45904         * tests/test-wctype.c (main): Explicitly ignore unused values.
45905         Reported by Jim Meyering.
45906
45907 2008-04-02  Jim Meyering  <meyering@redhat.com>
45908
45909         Avoid some warnings from "gcc -Wshadow".
45910         * tests/test-frexp.c (exp): Define to a different identifier.
45911         * tests/test-frexpl.c (exp): Likewise.
45912
45913 2008-04-03  Jim Meyering  <meyering@redhat.com>
45914
45915         bootstrap: remove dangling *.[ch] symlinks from lib
45916         * build-aux/bootstrap [dangling symlink removal]: Move find's
45917         -depth option to precede all others, to avoid a warning.
45918         Remove *.[ch] files too, and from "$source_base" (usually lib/).
45919
45920 2008-04-02  Bruno Haible  <bruno@clisp.org>
45921
45922         Avoid some warnings from "gcc -Wshadow".
45923         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
45924         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
45925         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
45926         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
45927         Reported by Jim Meyering.
45928
45929 2008-04-01  Bruno Haible  <bruno@clisp.org>
45930
45931         Fix test to work on IRIX 6.5 with cc.
45932         * tests/test-math.c (numeric_equal): New function.
45933         (main): Use it.
45934
45935 2008-04-01  Bruno Haible  <bruno@clisp.org>
45936
45937         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
45938
45939 2008-04-01  Bruno Haible  <bruno@clisp.org>
45940
45941         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
45942         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45943         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
45944         (Depends-on): Remove math.
45945
45946         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
45947         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45948         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
45949         (Depends-on): Remove math.
45950
45951         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
45952         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45953         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
45954         (Depends-on): Remove math.
45955         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
45956         (Depends-on): Remove math.
45957
45958         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
45959         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45960         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
45961         (Depends-on): Remove math.
45962         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
45963         (Depends-on): Remove math.
45964
45965         * tests/test-round1.c: Include nan.h.
45966         (main): Use NaNd instead of NAN.
45967         * modules/round-tests (Files): Add tests/nan.h.
45968
45969         * tests/test-trunc1.c: Include nan.h.
45970         (main): Use NaNd instead of NAN.
45971         * modules/trunc-tests (Files): Add tests/nan.h.
45972
45973         * tests/test-roundf1.c: Include nan.h.
45974         (main): Use NaNf instead of NAN.
45975         * modules/roundf-tests (Files): Add tests/nan.h.
45976
45977         * tests/test-truncf1.c: Include nan.h.
45978         (main): Use NaNf instead of NAN.
45979         * modules/truncf-tests (Files): Add tests/nan.h.
45980
45981         * tests/test-ceilf1.c: Include nan.h.
45982         (main): Use NaNf instead of NAN.
45983         * modules/ceilf-tests (Files): Add tests/nan.h.
45984
45985         * tests/test-floorf1.c: Include nan.h.
45986         (main): Use NaNf instead of NAN.
45987         * modules/floorf-tests (Files): Add tests/nan.h.
45988
45989         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
45990         (main): Use NaNf instead of NAN.
45991         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
45992
45993         * tests/test-isnand.c: Include nan.h instead of <math.h>.
45994         (main): Use NaNd instead of NAN.
45995         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
45996
45997         * tests/test-frexp.c: Include nan.h.
45998         (main): Use NaNd instead of NAN.
45999         * modules/frexp-tests (Files): Add tests/nan.h.
46000
46001         * lib/isnan.c: Don't include <math.h>.
46002         (FUNC): Don't use NAN macro.
46003         * modules/isnand-nolibm (Depends-on): Remove math.
46004         * modules/isnanf-nolibm (Depends-on): Remove math.
46005         * modules/isnanl (Depends-on): Remove math.
46006         * modules/isnanl-nolibm (Depends-on): Remove math.
46007
46008         * tests/nan.h: New file.
46009
46010 2008-04-01  Eric Blake  <ebb9@byu.net>
46011
46012         Fix typos.
46013         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
46014         values to be the right type.
46015
46016         For now, cater to gnulib strtod inaccuracies.
46017         * tests/test-strtod.c (main): Allow 1-ulp error on expected
46018         fractional results.  While not as nice from a QoI perspective, it
46019         is a quicker patch than correctly implementing decimal to binary
46020         rounding.
46021
46022 2008-03-31  Eric Blake  <ebb9@byu.net>
46023
46024         Guarantee a definition of NAN.
46025         * lib/math.in.h (NAN): Define if missing.
46026         * tests/test-math.c (main): Test it.
46027         * doc/posix-headers/math.texi (math.h): Document this.
46028         * lib/isnan.c (rpl_isnand): Use it.
46029         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
46030         * tests/test-floorf1.c (NaN): Likewise.
46031         * tests/test-frexp.c (NaN): Likewise.
46032         * tests/test-isnand.c (NaN): Likewise.
46033         * tests/test-isnanf.c (NaN): Likewise.
46034         * tests/test-round1.c (NaN): Likewise.
46035         * tests/test-roundf1.c (NaN): Likewise.
46036         * tests/test-snprintf-posix.h (NaN): Likewise.
46037         * tests/test-sprintf-posix.h (NaN): Likewise.
46038         * tests/test-trunc1.c (NaN): Likewise.
46039         * tests/test-truncf1.c (NaN): Likewise.
46040         * tests/test-vasnprintf-posix.c (NaN): Likewise.
46041         * tests/test-vasprintf-posix.c (NaN): Likewise.
46042         * modules/isnand-nolibm (Depends-on): Add math.
46043         * modules/isnanf-nolibm (Depends-on): Likewise.
46044         * modules/isnanl (Depends-on): Likewise.
46045         * modules/isnanl-nolibm (Depends-on): Likewise.
46046         * modules/snprintf-posix-tests (Depends-on): Likewise.
46047         * modules/sprintf-posix-tests (Depends-on): Likewise.
46048         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
46049         * modules/vsprintf-posix-tests (Depends-on): Likewise.
46050         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
46051         * modules/vasprintf-posix-tests (Depends-on): Likewise.
46052
46053 2008-03-31  Bruno Haible  <bruno@clisp.org>
46054
46055         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
46056         * doc/posix-functions/strtod.texi: Likewise.
46057
46058 2008-03-31  Bruno Haible  <bruno@clisp.org>
46059
46060         * tests/test-strtod.c (main): Don't use C99 syntax.
46061
46062 2008-03-31  Bruno Haible  <bruno@clisp.org>
46063
46064         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
46065         Reported by Eric Blake.
46066
46067 2008-03-31  Jim Meyering  <meyering@redhat.com>
46068
46069         Don't compare actual signbit return values.
46070         * tests/test-strtod.c (main): Rather, compare only their
46071         zero/non-zero nature.
46072
46073 2008-03-31  Eric Blake  <ebb9@byu.net>
46074
46075         More strtod documentation.
46076         * doc/posix-functions/strtod.texi (strtod): Interpret more test
46077         failures as distinct bugs.
46078
46079 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
46080
46081         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
46082         Problem reported by Erik Benada in
46083         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
46084
46085 2008-03-30  Bruno Haible  <bruno@clisp.org>
46086
46087         * tests/test-strtod.c: Add comments about which assertion fails on which
46088         platform.
46089         * doc/posix-functions/strtod.texi: Add info about many more platforms.
46090
46091 2008-03-30  Eric Blake  <ebb9@byu.net>
46092
46093         Test signbit behavior on zeros.
46094         * tests/test-signbit.c (test_signbitf): Add tests for zero.
46095         (test_signbitd, test_signbitl): Likewise.
46096
46097         More strtod touchups.
46098         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
46099         sign of negative underflow, for now.  Use .5, not .1.
46100         * doc/posix-functions/strtod.texi (strtod): Mention these
46101         limitations.
46102         Reported by Jim Meyering.
46103
46104 2008-03-30  Bruno Haible  <bruno@clisp.org>
46105
46106         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
46107         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
46108
46109 2008-03-30  Bruno Haible  <bruno@clisp.org>
46110
46111         Avoid failure when attempting to return empty iconv results on some
46112         platforms.
46113         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
46114         allocation, don't report ENOMEM when the resulting string is empty.
46115
46116 2008-03-30  Bruno Haible  <bruno@clisp.org>
46117
46118         Fix buffer overrun.
46119         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
46120         Don't consider the width for tmp_length. Check count against tmp_length
46121         before doing the padding. Ensure enough allocation during padding.
46122
46123 2008-03-30  Eric Blake  <ebb9@byu.net>
46124
46125         strtod touchups.
46126         * lib/strtod.c (strtod): Avoid compiler warnings.
46127         Reported by Jim Meyering.
46128
46129 2008-03-30  Bruno Haible  <bruno@clisp.org>
46130
46131         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
46132         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
46133         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
46134         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
46135         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
46136         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
46137         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
46138         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
46139
46140         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
46141         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
46142         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
46143         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
46144         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
46145         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
46146         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
46147         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
46148
46149         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
46150         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
46151         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
46152         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
46153         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
46154         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
46155         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
46156         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
46157
46158         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
46159         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
46160
46161         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
46162         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
46163
46164         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
46165         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
46166
46167         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
46168         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
46169         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
46170
46171         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
46172         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
46173         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
46174
46175         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
46176         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
46177         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
46178
46179         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
46180         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
46181         * modules/vasprintf (Depends-on): Add EOVERFLOW.
46182
46183         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
46184         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
46185         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
46186         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
46187         (Depends-on): Add EOVERFLOW.
46188         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
46189         (Depends-on): Add EOVERFLOW.
46190         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
46191         (Depends-on): Add EOVERFLOW.
46192         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
46193         (Depends-on): Add EOVERFLOW.
46194         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
46195         (Depends-on): Add EOVERFLOW.
46196         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
46197         (Depends-on): Add EOVERFLOW.
46198         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
46199         (Depends-on): Add EOVERFLOW.
46200         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
46201         (Depends-on): Add EOVERFLOW.
46202
46203         * lib/sprintf.c (EOVERFLOW): Remove fallback.
46204         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
46205         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
46206
46207         * lib/snprintf.c (EOVERFLOW): Remove fallback.
46208         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
46209         * modules/snprintf (Depends-on): Add EOVERFLOW.
46210
46211         * lib/poll.c (EOVERFLOW): Remove fallback.
46212         * modules/poll (Depends-on): Add EOVERFLOW.
46213
46214         * lib/getugroups.c (EOVERFLOW): Remove fallback.
46215         * modules/getugroups (Depends-on): Add EOVERFLOW.
46216
46217         * lib/getdelim.c (EOVERFLOW): Remove fallback.
46218         * modules/getdelim (Depends-on): Add EOVERFLOW.
46219
46220         * lib/ftell.c (EOVERFLOW): Remove fallback.
46221         * modules/ftell (Depends-on): Add EOVERFLOW.
46222
46223         * lib/fprintf.c (EOVERFLOW): Remove fallback.
46224         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
46225         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
46226
46227         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
46228
46229         * modules/EOVERFLOW-tests: New file.
46230         * tests/test-EOVERFLOW.c: New file.
46231
46232         * modules/EOVERFLOW: New file.
46233         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
46234
46235 2008-03-30  Bruno Haible  <bruno@clisp.org>
46236
46237         Fix bug introduced on 2007-06-10.
46238         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
46239         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
46240
46241 2008-03-30  Bruno Haible  <bruno@clisp.org>
46242
46243         Improve freadseek's efficiency after ungetc.
46244         * lib/freadseek.c: Include freadahead.h.
46245         (freadptrinc): New function, extracted from freadseek.
46246         (freadseek): Use it in a loop. Use freadahead to determine the number
46247         of loop iterations.
46248         * modules/freadseek (Depends-on): Add freadahead.
46249         (configure.ac): Require AC_C_INLINE.
46250
46251 2008-03-30  Bruno Haible  <bruno@clisp.org>
46252
46253         * lib/freadseek.c (freadseek): Don't ignore the return value of
46254         freadptr.
46255
46256 2008-03-29  Eric Blake  <ebb9@byu.net>
46257
46258         Add hex float support.
46259         * modules/strtod (Depends-on): Add c-ctype.
46260         (Link): Mention POW_LIB.
46261         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
46262         whitespace between 'e' and exponent.
46263         * tests/test-strtod.c (main): Enable hex float tests.
46264         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
46265         now provides.
46266
46267         Document various strtod bugs, with some fixes.
46268         * doc/posix-functions/strtod.texi (strtod): Document bugs with
46269         "-0x", "inf", "nan", and hex constants.
46270         * doc/posix-functions/atof.texi (atof): Likewise.
46271         * modules/stdlib (Makefile.am): Support strtod.
46272         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
46273         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
46274         detect additional strtod bugs.
46275         * lib/stdlib.in.h (rpl_strtod): Add declarations.
46276         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
46277         bool where appropriate.  Parse 'inf' and 'nan'.
46278         * tests/test-strtod.c: New file.
46279         * modules/strtod (Depends-on): Add stdbool, stdlib.
46280         (configure.ac): Turn on module indicator.
46281         * modules/strtod-tests: New module.
46282
46283 2008-03-29  Eric Blake  <ebb9@byu.net>
46284
46285         Fix ftell on mingw.
46286         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
46287         * modules/ftell-tests (Depends-on): Add binary-io.
46288         * modules/ftello-tests (Depends-on): Likewise.
46289         * tests/test-ftell.c (main): Enhance test to cover behavior after
46290         ungetc.  Enforce binary mode.
46291         * tests/test-ftello.c (main): Likewise.
46292
46293         Pass test-freadseek on cygwin.
46294         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
46295         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
46296         ungetc buffer.
46297
46298         * tests/test-fflush2.c (main): Fix typo.
46299
46300 2008-03-29  Bruno Haible  <bruno@clisp.org>
46301
46302         * tests/test-fflush2.c (main): Temporarily disable the contents of
46303         this test.
46304         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
46305         Reported by Eric Blake.
46306
46307 2008-03-28  Simon Josefsson  <simon@josefsson.org>
46308
46309         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
46310         (GC_SHA224_DIGEST_SIZE): Add.
46311
46312         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
46313         (gc_hash_digest_length): Likewise.
46314         (gc_hash_buffer): Likewise.
46315
46316 2008-03-25  Bruno Haible  <bruno@clisp.org>
46317
46318         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
46319         detail which gettext release to use.
46320         Reported by Simon Josefsson.
46321
46322 2008-03-26  Jim Meyering  <meyering@redhat.com>
46323
46324         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
46325         * modules/gnumakefile (clean-GNUmakefile): Also, use
46326         test ... && ... || : syntax rather than if-then ... fi.
46327
46328         gnumakefile: Don't double-quote-expand $(VPATH) value.
46329         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
46330
46331 2008-03-24  Eric Blake  <ebb9@byu.net>
46332
46333         Alter GNUmakefile to install into top directory.
46334         * modules/maintainer-makefile: Split, and add dependency...
46335         * modules/gnumakefile: to this new module.
46336         * build-aux/GNUmakefile: Move...
46337         * top/GNUmakefile: ...here.
46338         * build-aux/maint.mk: Move...
46339         * top/maint.mk: ...here.
46340         * MODULES.html.sh (Support for maintaining...): Document new
46341         module.
46342
46343 2008-03-23  Bruno Haible  <bruno@clisp.org>
46344
46345         * gnulib-tool: New options --vc-files, --no-vc-files.
46346         (func_usage): Document them.
46347         (vc_files): New variable.
46348         (func_import): Consider vc_files.
46349         (func_create_testdir): Set vc_files to empty.
46350         Suggested by Jim Meyering and Karl Berry.
46351
46352 2008-03-23  Bruno Haible  <bruno@clisp.org>
46353
46354         Fix regex compilation error on HP-UX 11.
46355         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
46356         * modules/regex (Files): Add m4/mbstate_t.m4.
46357         Reported by Ton Voon <ton.voon@altinity.com>.
46358
46359 2008-03-23  Bruno Haible  <bruno@clisp.org>
46360
46361         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
46362
46363 2008-03-23  Eric Blake  <ebb9@byu.net>
46364             Bruno Haible  <bruno@clisp.org>
46365
46366         Install files from top/ in the destination directory.
46367         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
46368         augmentation also for the files from top/.
46369         (func_import, func_create_testdir): Rewrite file names:
46370         top/filename -> filename.
46371
46372 2008-03-23  Bruno Haible  <bruno@clisp.org>
46373
46374         Tweak "gnulib --version" output.
46375         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
46376
46377 2008-03-23  Bruno Haible  <bruno@clisp.org>
46378
46379         Tweak "gnulib --version" output.
46380         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
46381         rather than contents of ChangeLog, when possible.
46382
46383 2008-03-21  Eric Blake  <ebb9@byu.net>
46384
46385         More --version tweaks.
46386         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
46387         date of last ChangeLog entry.
46388
46389 2008-03-21  Jim Meyering  <meyering@redhat.com>
46390
46391         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
46392
46393 2008-03-20  Eric Blake  <ebb9@byu.net>
46394
46395         VPATH fix.
46396         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
46397
46398 2008-03-20  Simon Josefsson  <simon@josefsson.org>
46399
46400         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
46401         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
46402
46403 2008-03-20  Eric Blake  <ebb9@byu.net>
46404
46405         Sync GNUmakefile with coreutils.
46406         * build-aux/GNUmakefile (have-Makefile): Rename...
46407         (_have-Makefile): ...to this, for namespace consideration.
46408         (GNUmakefile.cfg): Include, if present.
46409         (_autoreconf): Define a default.
46410         (_is-dist-target): New rule for rebuilds to pick up intra-release
46411         version.
46412         (maint-cfg.mk): Rename...
46413         (cfg.mk): ...to this.
46414
46415 2008-03-18  Jim Meyering  <meyering@redhat.com>
46416
46417         New script and module: mktempd
46418         * MODULES.html.sh (maint+release support): Add mktempd.
46419         * build-aux/mktempd: New file.
46420         * modules/mktempd: New file.
46421
46422 2008-03-15  Jim Meyering  <meyering@redhat.com>
46423
46424         Undo last change.
46425         * lib/sha1.c, lib/md5.c: 63 != ~63.
46426         Reported by Andreas Schwab.
46427
46428         sha1.c, md5.c: Hoist a redundant expression.
46429         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
46430         "ctx->buflen" only once, before calling *_process_block.
46431         * lib/md5.c (md5_process_bytes): Likewise.
46432
46433 2008-03-14  Eric Blake  <ebb9@byu.net>
46434
46435         Bump copyright year in files generated by gnulib-tool.
46436         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
46437         gnulib-tool, rather than hard-coding it.
46438
46439         Fix 'gnulib-tool --version' output to work with git.
46440         * gnulib-tool (func_gnulib_dir): New function, extracted from...
46441         (startup): ...here.
46442         (func_version): Use it to invoke git-version-gen, rather than
46443         relying on CVS keyword expansion.  Modernize wording.
46444         (cvsdatestamp, last_checkin_date, version): Kill unused
46445         variables.
46446
46447 2008-03-12  Jim Meyering  <meyering@redhat.com>
46448
46449         Recognize optional cast of the argument to free.
46450         * build-aux/useless-if-before-free: Update regexps.
46451
46452         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
46453
46454 2008-03-11  Bruno Haible  <bruno@clisp.org>
46455
46456         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
46457         by a single package.
46458         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
46459         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
46460         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
46461         Reported by Sam Steingold <sds@gnu.org>.
46462
46463 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46464
46465         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
46466         repositories.
46467
46468 2008-03-11  Bruno Haible  <bruno@clisp.org>
46469
46470         Avoid conflicts between local macro definitions.
46471         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
46472         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
46473
46474 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
46475             Bruno Haible  <bruno@clisp.org>
46476
46477         Make va_copy work with some version of xlc on AIX 5.1.
46478         * lib/stdarg.in.h: New file.
46479         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
46480         On AIX, use a <stdarg.h> file substitute.
46481         * modules/stdarg (Files): Add lib/stdarg.in.h.
46482         (Depends-on): Add include_next.
46483         (Makefile.am): Build a stdarg.h substitute if requested.
46484         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
46485
46486 2008-03-10  Bruno Haible  <bruno@clisp.org>
46487
46488         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
46489         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
46490         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
46491
46492 2008-03-10  Bruno Haible  <bruno@clisp.org>
46493
46494         * modules/stdlib (Depends-on): Add include_next, remove
46495         absolute-header.
46496
46497 2008-03-09  Bruno Haible  <bruno@clisp.org>
46498
46499         * lib/freadahead.h (freadahead): Document more precisely.
46500         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
46501         the sum of both buffer sizes.
46502         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
46503         * NEWS: Document the change.
46504
46505 2008-03-09  Bruno Haible  <bruno@clisp.org>
46506
46507         Extend freadptr to return also the buffer size.
46508         * lib/freadptr.h (freadptr): Add sizep argument.
46509         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
46510         (freadptr): Add sizep argument. Determine buffer size like freadahead
46511         does.
46512         * tests/test-freadptr.c: Don't include freadahead.h.
46513         (main): Adapt for new calling convention of freadptr.
46514         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
46515         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
46516         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
46517         tests/test-freadptr2.sh.
46518         (Depends): Remove freadahead.
46519         (TESTS): Add test-freadptr2.sh.
46520         (check_PROGRAMS): Add test-freadptr2.
46521
46522 2008-03-09  Bruno Haible  <bruno@clisp.org>
46523
46524         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
46525         Report and solution by Simon Josefsson.
46526
46527 2008-03-06  Bruno Haible  <bruno@clisp.org>
46528
46529         Make fflush after ungetc work on BSD platforms.
46530         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
46531         * tests/test-fflush2.c: New file.
46532         * tests/test-fflush2.sh: New file.
46533         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
46534         tests/test-fflush2.c.
46535         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
46536         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
46537
46538 2008-03-06  Eric Blake  <ebb9@byu.net>
46539
46540         Likewise for ftello.
46541         * modules/ftello (Dependencies): Add extensions.
46542         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
46543
46544 2008-03-06  Bruno Haible  <bruno@clisp.org>
46545
46546         * modules/fseeko (Dependencies): Add extensions.
46547         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
46548         Needed on glibc systems.
46549
46550 2008-03-06  Bruno Haible  <bruno@clisp.org>
46551
46552         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
46553         email address.
46554         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
46555
46556 2008-03-06  Bruno Haible  <bruno@clisp.org>
46557
46558         * users.txt: Add libgnupdf.
46559
46560 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
46561
46562         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
46563         (Header File Substitutes, Function Substitutes,
46564         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
46565         (Build robot for gnulib): Fix typo.
46566
46567 2008-03-06  Bruno Haible  <bruno@clisp.org>
46568
46569         * doc/gnulib-tool.texi (VCS Issues): Small updates.
46570         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
46571
46572 2008-03-06  Bruno Haible  <bruno@clisp.org>
46573
46574         * doc/func.texi: New file, extracted from doc/gnulib.texi.
46575         * doc/gnulib.texi: Include it.
46576
46577 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46578
46579         * modules/func (License): Change license to unlimited; there was
46580         no LGPL parts in the module anyway.
46581
46582 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46583
46584         * modules/__func__: Renamed to modules/func.
46585         * modules/__func__-tests: Renamed to modules/func-tests.
46586         * tests/test-__func__.c: Renamed to tests/test-func.c.
46587         * m4/__func__.m4: Renamed to m4/func.m4.
46588         * doc/gnulib.texi (__func__): Section renamed to func.
46589         Suggested by Eric Blake <ebb9@byu.net>.
46590
46591 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46592
46593         * doc/gnulib.texi (__func__): Use C99 terminology when talking
46594         about __func__.  Make example self-contained.  Suggested by Eric
46595         Blake <ebb9@byu.net>.
46596
46597         * tests/test-__func__.c (main): Avoid extraneous () around __func.
46598         Suggested by Eric Blake <ebb9@byu.net>.
46599
46600 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46601
46602         * modules/__func__: New file.
46603         * modules/__func__-tests: New file.
46604         * tests/test-__func__.c: New file.
46605         * m4/__func__.m4: New file.
46606         * doc/gnulib.texi (__func__): Document __func__ module.
46607
46608 2008-03-05  Simon Josefsson  <simon@josefsson.org>
46609
46610         * modules/byteswap (License): Re-license as LGPLv2+.
46611
46612 2008-03-05  Simon Josefsson  <simon@josefsson.org>
46613
46614         * doc/Makefile: Add pdf target.
46615
46616 2008-03-05  Simon Josefsson  <simon@josefsson.org>
46617
46618         * modules/inline (License): Use 'unlimited', since there are only
46619         *.m4 files in this module.
46620
46621 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
46622             Bruno Haible  <bruno@clisp.org>
46623
46624         Add support for HP C 7.1 on OpenVMS 8.3.
46625         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
46626
46627 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
46628
46629         Update VMS specifics.
46630         * lib/getopt.c [VMS]: Remove include of unixlib.h.
46631
46632 2008-03-02  Jim Meyering  <meyering@redhat.com>
46633
46634         Remove the last dependency on the "free" module.
46635         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
46636         Reported by Bob Proulx.
46637
46638         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
46639
46640         Remove useless "if" tests before free.  Deprecate "free" module.
46641         * doc/posix-functions/free.texi: Mention that this
46642         module is no longer useful.
46643         * modules/free (Notice): Say this module is obsolete.
46644         * modules/readutmp (Depends-on): Remove free.
46645         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
46646         * lib/putenv.c (putenv): Likewise.
46647         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
46648         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
46649         * tests/test-c-strcasestr.c (main): Likewise.
46650         * tests/test-c-strstr.c (main): Likewise.
46651         * tests/test-mbscasestr1.c (main): Likewise.
46652         * tests/test-mbscasestr2.c (main): Likewise.
46653         * tests/test-mbsstr1.c (main): Likewise.
46654         * tests/test-mbsstr2.c (main): Likewise.
46655         * tests/test-memmem.c (main): Likewise.
46656         * tests/test-strcasestr.c (main): Likewise.
46657         * tests/test-striconv.c (main): Likewise.
46658         * tests/test-striconveh.c (main): Likewise.
46659         * tests/test-striconveha.c (main): Likewise.
46660         * tests/test-strstr.c (main): Likewise.
46661
46662         * build-aux/git-version-gen: Adjust a comment and the Usage string.
46663
46664         bootstrap: sync from coreutils again
46665         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
46666
46667 2008-03-01  Jim Meyering  <meyering@redhat.com>
46668
46669         bootstrap: sync from coreutils
46670         * build-aux/bootstrap (update_po_files): Copy a .po file into place
46671         also when the target doesn't exist.
46672
46673 2008-03-01  Eric Blake  <ebb9@byu.net>
46674
46675         Fix bugs in last patch.
46676         * lib/memchr2.c (memchr2): Fix typo.
46677         * tests/test-memchr2.c: Test previous bug, and don't use GNU
46678         extension.
46679         Reported by Bruce Korb.
46680
46681         New module 'memchr2'.
46682         * modules/memchr2: New file.
46683         * modules/memchr2-tests: Likewise.
46684         * lib/memchr2.h: Likewise.
46685         * lib/memchr2.c: Likewise, based on memchr.c.
46686         * tests/test-memchr2.c: New test.
46687         * MODULES.html.sh (String handling): Add memchr2.
46688
46689 2008-02-29  Bruno Haible  <bruno@clisp.org>
46690
46691         * modules/freadseek-tests: New file.
46692         * tests/test-freadseek.sh: New file.
46693         * tests/test-freadseek.c: New file.
46694
46695         New module 'freadseek'.
46696         * modules/freadseek: New file.
46697         * lib/freadseek.h: New file.
46698         * lib/freadseek.c: New file.
46699         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
46700
46701 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
46702
46703         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
46704         wydawca.
46705
46706         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
46707         program_invocation_name and program_invocation_short_name are
46708         present.
46709
46710 2008-02-28  Bruno Haible  <bruno@clisp.org>
46711
46712         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
46713         * tests/test-freadptr.sh: Also test non-seekable stdin.
46714
46715 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
46716
46717         * build-aux/bootstrap (source_base, m4_base)
46718         (doc_base, tests_base): New variables.
46719         (gnulib_tool_options): Do not hardcode base directories, use
46720         the above variables instead.
46721
46722 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
46723
46724         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
46725
46726 2008-02-28  Bruno Haible  <bruno@clisp.org>
46727
46728         * modules/freadptr-tests: New file.
46729         * tests/test-freadptr.sh: New file.
46730         * tests/test-freadptr.c: New file.
46731
46732         New module 'freadptr'.
46733         * modules/freadptr: New file.
46734         * lib/freadptr.h: New file.
46735         * lib/freadptr.c: New file.
46736         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
46737
46738 2008-02-26  Karl Berry  <karl@freefriends.org>
46739
46740         Sync from Libtool:
46741         * libltdl/argz.c (argz_add, argz_count): New functions.
46742         * libltdl/argz.in.h: Declare them.
46743         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
46744
46745 2008-02-22  Bruno Haible  <bruno@clisp.org>
46746
46747         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
46748         is a pointer type.  Needed for HP-UX 10.
46749         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
46750         * doc/posix-functions/gmtime_r.texi: Likewise.
46751         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
46752
46753 2008-02-24  Bruno Haible  <bruno@clisp.org>
46754
46755         * modules/environ-tests: New file.
46756         * tests/test-environ.c: New file.
46757
46758         New module 'environ'.
46759         * modules/environ: New file.
46760         * lib/unistd.in.h (environ): New declaration.
46761         * m4/environ.m4: New file.
46762         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
46763         after use.
46764         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
46765         HAVE_DECL_ENVIRON.
46766         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
46767         HAVE_DECL_ENVIRON.
46768         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
46769         wrong claim that 'environ' is missing on some systems.
46770         * modules/execute (Depends-on): Add environ.
46771         * lib/execute.c (environ): Remove fallback declaration.
46772         * modules/pipe (Depends-on): Add environ.
46773         * lib/pipe.c (environ): Remove fallback declaration.
46774         * modules/setenv (Depends-on): Add environ.
46775         * lib/setenv.c (environ): Remove fallback declaration.
46776         * modules/unsetenv (Depends-on): Add environ.
46777         * lib/unsetenv.c (environ): Remove fallback declaration.
46778         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
46779         m4/environ.m4.
46780         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
46781         (gl_PREREQ_UNSETENV): Likewise.
46782
46783 2008-02-24  Bruno Haible  <bruno@clisp.org>
46784
46785         * doc/posix-functions/environ.texi: Document the MacOS X problem.
46786
46787 2008-02-20  Bob Proulx  <bob@proulx.com>
46788
46789         Enable use of older two part flavor 'git describe'.
46790         * build-aux/git-version-gen: If using the older two part flavor of
46791         git version then recreate the third part now present in the
46792         newer three part flavor of git describe.
46793
46794 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
46795
46796         * lib/fts.c (fts_build): Typo correction to comment.
46797
46798 2008-02-17  Bruno Haible  <bruno@clisp.org>
46799
46800         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
46801         generating no-op conflicts.
46802
46803 2008-02-17  Bruno Haible  <bruno@clisp.org>
46804
46805         Speed up by 10%.
46806         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
46807         result_entries, rather than an index-based loop.
46808
46809 2008-02-17  Bruno Haible  <bruno@clisp.org>
46810
46811         Speed up by 25%.
46812         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
46813         'hashcode_cached'.
46814         (entry_create): New function.
46815         (entry_hashcode): Use the cached hashcode if possible.
46816         (read_changelog_file, try_split_merged_entry): Use entry_create.
46817
46818 2008-02-17  Bruno Haible  <bruno@clisp.org>
46819
46820         Speed up from O(n^2) to O(n) for long ChangeLog files.
46821         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
46822         (read_changelog_file): Change implementation of entries_reversed list
46823         to rbtreehash.
46824         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
46825
46826 2008-02-17  Bruno Haible  <bruno@clisp.org>
46827
46828         New option --split-merged-entry.
46829         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
46830         (find_paragraph_end, try_split_merged_entry): New functions.
46831         (long_options): Add option --split-merged-entry.
46832         (usage): Document option --split-merged-entry.
46833         (main): Implement option --split-merged-entry.
46834         Reported by Eric Blake.
46835
46836 2008-02-17  Bruno Haible  <bruno@clisp.org>
46837
46838         * lib/git-merge-changelog.c: Include c-strstr.h.
46839         (main): Support the "git pull --rebase" situation.
46840         * modules/git-merge-changelog (Depends-on): Add c-strstr.
46841         Reported by Eric Blake.
46842
46843 2008-02-16  Eric Blake  <ebb9@byu.net>
46844
46845         Avoid doubling \ in common case of "c-maybe" quoting style.
46846         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
46847         eliding outer quotes.
46848         * lib/quotearg.h: Document this.
46849         * tests/test-quotearg.c (result_strings, inputs, results_g)
46850         (flag_results, locale_results): Test it by adding a new string to
46851         each test group.
46852         (compare_strings): Test new string.
46853
46854 2008-02-13  Eric Blake  <ebb9@byu.net>
46855
46856         Avoid trigraph quoting in default output.
46857         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
46858         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
46859         unless explicitly requested.
46860         * tests/test-quotearg.c (flag_results, main): Add additional tests.
46861
46862 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
46863
46864         Don't rely on signed integer overflowing to negative value.
46865         * lib/getugroups.c (getugroups): Include <limits.h>.
46866         Instead, compare against INT_MAX, and increment only if the test passes.
46867
46868 2008-02-13  Jim Meyering  <meyering@redhat.com>
46869         and Eric Blake  <ebb9@byu.net>
46870
46871         Avoid shadowing warning and compile errors on Linux.
46872         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
46873         forwarding macros on Linux.
46874         (dcgettext): Define a stub, for Linux.
46875         (results_g, main): Avoid warnings.
46876
46877 2008-02-12  Eric Blake  <ebb9@byu.net>
46878
46879         Silence warning in last patch.
46880         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
46881
46882         Quotearg part 4: add tests, fix c-maybe colon quoting.
46883         * lib/quotearg.h: Improve documentation.
46884         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
46885         escapes when adding outer quotes.  When quoting trigraphs, use
46886         valid C notation.  When quoting NUL, omit extra characters if next
46887         character is not digit.  Alter prototype.
46888         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
46889         callers.
46890         * modules/quotearg-tests: New module.
46891         * tests/test-quotearg.c: New test.
46892
46893 2008-02-07  Eric Blake  <ebb9@byu.net>
46894
46895         Quotearg part 3: add flag to control outer quote elision.
46896         * lib/quotearg.h (c_maybe_quoting_style): New style.
46897         (enum quoting_flags): Better documentation of flags.
46898         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
46899         c-maybe style.
46900         (quotearg_buffer_restyled): Handle new flag to elide outer
46901         quotes.
46902
46903         Quotearg part 2: add flag that can control NUL elision.
46904         * lib/quotearg.h (set_quoting_flags): New prototype.
46905         * lib/quotearg.c (struct quoting_options): Add flag field.
46906         (set_quoting_flags): New function.
46907         (quotearg_buffer_restyled): Add flags parameter.
46908         (quotearg_alloc_mem): Set the flag if length cannot be returned.
46909         (quotearg_n_options): Set the flag, since length cannot be
46910         returned.
46911         (quoting_options_from_style): Default flags correctly.
46912
46913         Quotearg part 1: more wrappers, restore quotearg_char state.
46914         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
46915         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
46916         (quotearg_colon_mem): New wrappers.
46917         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
46918         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
46919         functions.
46920         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
46921         (quotearg_colon_mem): New functions.
46922
46923 2008-02-11  Bruno Haible  <bruno@clisp.org>
46924
46925         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
46926         library in the current directory: it does not work with parallel make.
46927         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46928
46929 2008-02-11  Bruno Haible  <bruno@clisp.org>
46930
46931         * .gitattributes: New file.
46932
46933 2008-02-11  Jim Meyering  <meyering@redhat.com>
46934
46935         useless-if-before-free: Fix reversed exit values.
46936         * build-aux/useless-if-before-free: Use correct values
46937         for EXIT_MATCH and EXIT_NO_MATCH.
46938
46939         * build-aux/useless-if-before-free: Close stdout carefully.
46940
46941 2008-02-10  Bruno Haible  <bruno@clisp.org>
46942
46943         New module 'git-merge-changelog'.
46944         * modules/git-merge-changelog: New file.
46945         * lib/git-merge-changelog.c: New file.
46946
46947 2008-02-10  Jim Meyering  <meyering@redhat.com>
46948
46949         useless-if-before-free: New option: --list (-l).
46950
46951         useless-if-before-free: Don't exit immediately upon open failure.
46952         * build-aux/useless-if-before-free: Exit 2 for errors.
46953         Upon failure to open a file, don't exit immediately.
46954         Rather, just warn and continue with any remaining files.
46955
46956 2008-02-10  Bruno Haible  <bruno@clisp.org>
46957
46958         New abstract list operation 'node_set_value'.
46959         * lib/gl_list.h (gl_list_node_set_value): New function.
46960         (struct gl_list_implementation): New field node_set_value.
46961         * lib/gl_list.c (gl_list_node_set_value): New function.
46962         * lib/gl_array_list.c (gl_array_node_set_value): New function.
46963         (gl_array_list_implementation): Update.
46964         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
46965         (gl_carray_list_implementation): Update.
46966         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
46967         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
46968         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
46969         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
46970         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
46971         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
46972         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
46973         Update.
46974         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
46975         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
46976         (gl_sublist_list_implementation): Update.
46977
46978 2008-02-10  Bruno Haible  <bruno@clisp.org>
46979
46980         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
46981         Needed when ELEMENT is #defined to 'some_type *'.
46982
46983 2008-02-10  Jim Meyering  <meyering@redhat.com>
46984
46985         New script and module: useless-if-before-free
46986         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
46987         * build-aux/useless-if-before-free: New file.
46988         * modules/useless-if-before-free: New file.
46989
46990         * build-aux/gitlog-to-changelog: Use committer date, not author date.
46991
46992         xstrtol_error: Fix typo.
46993         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
46994         s/exit_failure/exit_status/.
46995
46996 2008-02-09  Jim Meyering  <meyering@redhat.com>
46997
46998         New script and module: gitlog-to-changelog
46999         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
47000         * modules/gitlog-to-changelog: New file.
47001         * build-aux/gitlog-to-changelog: New file.
47002
47003 2008-02-08  Jim Meyering  <meyering@redhat.com>
47004
47005         Avoid two "parameter unused" warnings.
47006         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
47007         Mark "st" as used.
47008
47009         Use "git COMMAND", not "git-COMMAND".
47010         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
47011         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
47012         * build-aux/git-version-gen: Use "git status", not "git-status".
47013
47014 2008-02-07  Bruno Haible  <bruno@clisp.org>
47015
47016         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
47017         Avoids a crash on Windows Vista.
47018         Reported by Adam Strzelecki <ono@java.pl> via
47019         Simon Josefsson <simon@josefsson.org>.
47020
47021 2008-02-06  Bruno Haible  <bruno@clisp.org>
47022
47023         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
47024         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
47025         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
47026         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
47027         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47028         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47029         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
47030         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
47031         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47032         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47033         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47034         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47035         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47036         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47037         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47038         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
47039         left-adjust flag.
47040         * tests/test-snprintf-posix.h (test_function): Likewise.
47041         * tests/test-sprintf-posix.h (test_function): Likewise.
47042         * tests/test-vasprintf-posix.c (test_function): Likewise.
47043         * doc/posix-functions/fprintf.texi: Update.
47044         * doc/posix-functions/printf.texi: Update.
47045         * doc/posix-functions/snprintf.texi: Update.
47046         * doc/posix-functions/sprintf.texi: Update.
47047         * doc/posix-functions/vfprintf.texi: Update.
47048         * doc/posix-functions/vprintf.texi: Update.
47049         * doc/posix-functions/vsnprintf.texi: Update.
47050         * doc/posix-functions/vsprintf.texi: Update.
47051         Reported by Peter Fales <psfales@alcatel-lucent.com>.
47052
47053 2008-02-06  Bruno Haible  <bruno@clisp.org>
47054
47055         Fix bug introduced on 2008-01-26.
47056         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
47057
47058 2008-02-06  Bruno Haible  <bruno@clisp.org>
47059
47060         Fix bug introduced on 2007-06-10.
47061         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
47062         !NEED_PRINTF_FLAG_ZERO.
47063
47064 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
47065
47066         getloadavg: use libperfstat on AIX5
47067         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
47068
47069 2008-02-03  Bruno Haible  <bruno@clisp.org>
47070
47071         * lib/diffseq.h: Add comments about required #includes.
47072         Reported by Michael Biggs <gnulib@doubleplum.net>.
47073
47074 2008-02-01  Bruno Haible  <bruno@clisp.org>
47075
47076         * users.txt: Add gnuit.
47077
47078 2008-01-31  Bruno Haible  <bruno@clisp.org>
47079
47080         * lib/md4.c (set_uint32): Mark as inline.
47081         * lib/md5.c (set_uint32): Likewise.
47082         * lib/sha1.c (set_uint32): Likewise.
47083         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
47084         * m4/md5.m4 (gl_MD5): Likewise.
47085         * m4/sha1.m4 (gl_SHA1): Likewise.
47086
47087 2008-01-31  Jim Meyering  <meyering@redhat.com>
47088
47089         Use "sizeof VAR", rather than a literal "4".
47090         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
47091         * lib/md4.c (md4_read_ctx): Likewise.
47092         * lib/sha1.c (sha1_read_ctx): Likewise.
47093
47094 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47095
47096         * tests/test-sha1.c: New file, based on test-md5.c.
47097
47098         * modules/crypto/sha1-tests: New file.
47099
47100 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47101
47102         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
47103
47104 2008-01-31  Jim Meyering  <meyering@redhat.com>
47105
47106         Prefer "sizeof v" over the equivalent "4".
47107         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
47108         * lib/md5.c (set_uint32): Likewise.
47109         * lib/sha1.c (set_uint32): Likewise.
47110
47111 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47112
47113         * lib/sha1.c (set_uint32): Mark function as static.
47114
47115 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47116
47117         md2: clarify comments to say that alignment is not required.
47118         * lib/md2.h: Remove warning about alignment in comment.
47119         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
47120         never been required.
47121
47122 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47123
47124         md4: adapt alignment constraint fix from sha1.
47125         * lib/md4.c (set_uint32): New function, from sha1.c
47126         (md4_read_ctx): Use it.
47127         (md4_finish_ctx): Doc fix.
47128         * lib/md4.h: Doc fix.
47129
47130 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47131
47132         md5: adapt alignment constraint fix from sha1.
47133         * lib/md5.c (set_uint32): New function, from sha1.c
47134         (md5_read_ctx): Use it.
47135         (md5_finish_ctx): Doc fix.
47136         * lib/md5.h: Doc fix.
47137
47138 2008-01-30  Peter Palfrader  <weasel@debian.org>
47139
47140         sha1: remove the result buffer alignment constraint
47141         * lib/sha1.c (set_uint32): New function.
47142         (sha1_read_ctx): Rewrite to remove the result buffer alignment
47143         constraint.
47144         (sha1_finish_ctx): Remove comment warning about alignment constraint.
47145         * lib/sha1.h: Likewise.
47146
47147 2008-01-30  Andreas Schwab  <schwab@suse.de>
47148             Bruno Haible  <bruno@clisp.org>
47149
47150         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
47151         correct definition of LDBL_MIN_EXP.
47152
47153 2008-01-30  Karl Berry  <karl@gnu.org>
47154
47155         * config/srclist-update: try to preserve x bit on updates.
47156         * config/srclistvars.sh: update for karl.
47157
47158 2008-01-29  Jim Meyering  <meyering@redhat.com>
47159
47160         vasnprintf.c: Avoid warning about unused label
47161         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
47162         "overflow" label definition and associated code with the
47163         same cpp condition that guards the sole use of that label.
47164
47165 2008-01-26  Bruno Haible  <bruno@clisp.org>
47166
47167         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
47168         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
47169         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
47170         * lib/isnanl-nolibm.h (isnanl): Likewise.
47171         Reported by Paul Eggert <eggert@cs.ucla.edu>.
47172
47173 2008-01-26  Bruno Haible  <bruno@clisp.org>
47174
47175         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
47176         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
47177
47178 2008-01-26  Bruno Haible  <bruno@clisp.org>
47179
47180         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
47181         GCC >= 4.0 built-in.
47182         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
47183
47184 2008-01-26  Bruno Haible  <bruno@clisp.org>
47185
47186         Rename isnan, applicable to 'double' only, to isnand.
47187         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
47188         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
47189         (configure.ac): Update.
47190         (Include): Replace "isnan.h" with "isnand.h".
47191         * m4/isnand.m4: Renamed from m4/isnan.m4.
47192         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
47193         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
47194         instead of isnan.c.
47195         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
47196         instead of HAVE_ISNAN_IN_LIBC.
47197         (isnand): Renamed from isnan.
47198         * lib/isnand.c: New file.
47199         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
47200         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
47201         (Makefile.am): Update.
47202         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
47203         Include isnand.h instead of isnan.h.
47204         (main): Test isnand instead of isnan.
47205         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
47206         isnan-nolibm.
47207         * modules/frexp (Depends-on): Likewise.
47208         * modules/frexp-tests (Depends-on): Likewise.
47209         * modules/frexp-nolibm (Depends-on): Likewise.
47210         * modules/frexp-nolibm-tests (Depends-on): Likewise.
47211         * modules/isfinite (Depends-on): Likewise.
47212         * modules/round-tests (Depends-on): Likewise.
47213         * modules/signbit (Depends-on): Likewise.
47214         * modules/signbit-tests (Depends-on): Likewise.
47215         * modules/snprintf-posix (Depends-on): Likewise.
47216         * modules/sprintf-posix (Depends-on): Likewise.
47217         * modules/trunc-tests (Depends-on): Likewise.
47218         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47219         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47220         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47221         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47222         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47223         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47224         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47225         * modules/vasnprintf-posix (Depends-on): Likewise.
47226         * modules/vasprintf-posix (Depends-on): Likewise.
47227         * modules/vfprintf-posix (Depends-on): Likewise.
47228         * modules/vsnprintf-posix (Depends-on): Likewise.
47229         * modules/vsprintf-posix (Depends-on): Likewise.
47230         * lib/frexp.c: Include isnand.h instead of isnan.h.
47231         (ISNAN): Set to isnand instead of isnan.
47232         * lib/isfinite.c: Include isnand.h instead of isnan.h.
47233         (gl_isfinited): Use isnand instead of isnan.
47234         * lib/signbitd.c: Include isnand.h instead of isnan.h.
47235         (gl_signbitd): Use isnand instead of isnan.
47236         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
47237         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
47238         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
47239         (main): Use isnand instead of isnan.
47240         * tests/test-round1.c: Include isnand.h.
47241         (main): Use isnand instead of isnan.
47242         * tests/test-round2.c: Include isnand.h instead of isnan.h.
47243         (ISNAN): Set to isnand instead of isnan.
47244         * tests/test-trunc1.c: Include isnand.h.
47245         (main): Use isnand instead of isnan.
47246         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
47247         (equal): Use isnand instead of isnan.
47248         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
47249         isnand-nolibm.
47250         * NEWS: Mention the change.
47251
47252 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
47253             Bruno Haible  <bruno@clisp.org>
47254
47255         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
47256         the GCC builtins for signbits are present and set
47257         REPLACE_SIGNBIT_USING_GCC if so.
47258         * lib/math.in.h (signbit): Define using GCC builtins if
47259         REPLACE_SIGNBIT_USING_GCC is set.
47260         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
47261         REPLACE_SIGNBIT_USING_GCC.
47262         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
47263
47264 2008-01-25  Jim Meyering  <meyering@redhat.com>
47265
47266         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
47267         * lib/poll.c: Include <config.h>, not "config.h".
47268         * tests/test-getaddrinfo.c: Likewise.
47269
47270 2008-01-25  Simon Josefsson  <simon@josefsson.org>
47271
47272         * modules/sockets-tests: New file.
47273
47274 2008-01-24  Simon Josefsson  <simon@josefsson.org>
47275
47276         * modules/sockets: New module, can be used to call WSA_Startup and
47277         WSA_Cleanup when needed.
47278
47279         * lib/sockets.h, lib/sockets.c: New files.
47280
47281         * m4/sockets.m4: New file.
47282
47283         * tests/test-sockets.c: New file.
47284
47285 2008-01-19  Bruno Haible  <bruno@clisp.org>
47286
47287         * doc/posix-headers: Renamed from doc/headers.
47288         * doc/posix-functions: Renamed from doc/functions.
47289         * doc/gnulib.texi: Update.
47290
47291 2008-01-19  Bruno Haible  <bruno@clisp.org>
47292
47293         * doc/glibc-functions/strcasestr.texi: Include contents of
47294         doc/functions/strcasestr.texi, fixing the list of platforms.
47295         * doc/functions/strcasestr.texi: Remove file.
47296
47297 2008-01-19  Bruno Haible  <bruno@clisp.org>
47298
47299         * doc/glibc-functions/memmem.texi: Include contents of
47300         doc/functions/memmem.texi.
47301         * doc/functions/memmem.texi: Remove file.
47302
47303 2008-01-18  Bruno Haible  <bruno@clisp.org>
47304
47305         * doc/glibc-functions/*.texi: New files.
47306         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
47307         to use the new files.
47308
47309 2008-01-17  Bruno Haible  <bruno@clisp.org>
47310
47311         * tests/test-gethostname.c (main): Fix printf statement.
47312
47313 2008-01-17  Simon Josefsson  <simon@josefsson.org>
47314
47315         * modules/gethostname-tests: New file.
47316
47317         * tests/test-gethostname.c: New file.
47318
47319 2008-01-17  Simon Josefsson  <simon@josefsson.org>
47320
47321         * lib/gethostname.c: Include string.h unconditionally, strncpy is
47322         used by the UNAME case.  Reported by Bruno Haible
47323         <bruno@clisp.org>.
47324
47325 2008-01-17  Eric Blake  <ebb9@byu.net>
47326
47327         Convert c-strcasestr to be more efficient.
47328         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
47329         (Depends-on): Add c-strcase, remove malloca, strnlen.
47330         * tests/test-c-strcasestr.c (main): Enhance test.
47331         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
47332
47333 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
47334
47335         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
47336         Use it in creating po/Makevars.
47337
47338 2008-01-15  Simon Josefsson  <simon@josefsson.org>
47339
47340         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
47341         Applications that requires it should initialize libgcrypt
47342         manually.
47343
47344 2008-01-16  Simon Josefsson  <simon@josefsson.org>
47345
47346         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
47347
47348 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
47349
47350         Fix problem with getdate on mingw32 reported by Simon Josefsson
47351         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
47352         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
47353         tzname", when deciding whether to declare tzname.
47354         * lib/strftime.c (tzname): Likewise.
47355
47356 2008-01-15  Bruno Haible  <bruno@clisp.org>
47357
47358         Work around a MacOS X 10.5 bug in frexpl().
47359         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
47360         * doc/functions/frexpl.texi: Document the bug.
47361         Reported by Elias Pipping <pipping@gentoo.org>.
47362
47363 2008-01-14  Eric Blake  <ebb9@byu.net>
47364
47365         Touch up previous patch.
47366         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
47367         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
47368
47369         Convert strcasestr module to use Two-Way algorithm.
47370         * modules/strcasestr-simple: New module, based on the old
47371         strcasestr, but with Two-Way rather than KMP.
47372         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
47373         * lib/string.in.h (rpl_strcasestr): Declare.
47374         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
47375         performance.
47376         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
47377         * modules/string (Makefile.am): Support strcasestr.
47378         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
47379         * modules/strcasestr-tests (Depends-on): Check for alarm.
47380         * tests/test-strcasestr.c: Augment test.
47381         * lib/str-two-way.h: Clean up stray macro.
47382         * NEWS: Document new module.
47383         * MODULES.html.sh (string handling): Likewise.
47384         * doc/functions/strcasestr.texi: New file.
47385         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
47386         here, since it is not a POSIX function.
47387
47388 2008-01-14  Colin Watson  <cjwatson@debian.org>
47389             Bruno Haible  <bruno@clisp.org>
47390
47391         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
47392         works fine; if not, set REPLACE_STRSIGNAL.
47393         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
47394         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47395         REPLACE_STRSIGNAL.
47396         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
47397         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
47398         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
47399
47400 2008-01-14  Bruno Haible  <bruno@clisp.org>
47401
47402         * modules/strsignal (Include): Change to <string.h>.
47403
47404 2008-01-14  Colin Watson  <cjwatson@debian.org>
47405
47406         * modules/argp (Notice): Add a notice recommending to change
47407         XGETTEXT_OPTIONS.
47408         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
47409
47410 2008-01-13  Colin Watson  <cjwatson@debian.org>
47411
47412         * modules/strsignal-tests: New file.
47413         * tests/test-strsignal.c: New file.
47414
47415         * lib/strsignal.c: New file, from glibc with modifications.
47416         * lib/siglist.h: New file, from glibc with modifications.
47417         * lib/string.in.h (strsignal): New declaration.
47418         * m4/strsignal.m4: New file.
47419         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47420         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
47421         * modules/strsignal: New file.
47422         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
47423         HAVE_DECL_STRSIGNAL.
47424
47425 2008-01-13  Bruno Haible  <bruno@clisp.org>
47426
47427         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
47428         locale encoding is not ASCII. Needed for OpenBSD 4.0.
47429         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
47430         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
47431
47432 2008-01-13  Bruno Haible  <bruno@clisp.org>
47433
47434         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
47435         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
47436         * lib/argp.h (__attribute__): Likewise.
47437         * lib/c-stack.c (__attribute__): Likewise.
47438         * lib/error.h (__attribute__): Likewise.
47439         * lib/fts.c (__attribute__): Likewise.
47440         * lib/openat.h (__attribute__): Likewise.
47441         * lib/stdio.in.h (__attribute__): Likewise.
47442         * lib/string.in.h (__attribute__): Likewise.
47443         * lib/utimens.c (__attribute__): Likewise.
47444         * lib/vasnprintf.h (__attribute__): Likewise.
47445         * lib/xalloc.h (__attribute__): Likewise.
47446         * lib/xprintf.h (__attribute__): Likewise.
47447         * lib/xstrtol.h (__attribute__): Likewise.
47448         * lib/xvasprintf.h (__attribute__): Likewise.
47449
47450 2008-01-12  Bruno Haible  <bruno@clisp.org>
47451
47452         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
47453         * doc/glibc-headers/a.out.texi: New file.
47454         * doc/glibc-headers/aliases.texi: New file.
47455         * doc/glibc-headers/alloca.texi: New file.
47456         * doc/glibc-headers/ar.texi: New file.
47457         * doc/glibc-headers/argp.texi: New file.
47458         * doc/glibc-headers/argz.texi: New file.
47459         * doc/glibc-headers/byteswap.texi: New file.
47460         * doc/glibc-headers/crypt.texi: New file.
47461         * doc/glibc-headers/endian.texi: New file.
47462         * doc/glibc-headers/envz.texi: New file.
47463         * doc/glibc-headers/err.texi: New file.
47464         * doc/glibc-headers/error.texi: New file.
47465         * doc/glibc-headers/execinfo.texi: New file.
47466         * doc/glibc-headers/fpu_control.texi: New file.
47467         * doc/glibc-headers/fstab.texi: New file.
47468         * doc/glibc-headers/fts.texi: New file.
47469         * doc/glibc-headers/getopt.texi: New file.
47470         * doc/glibc-headers/ieee754.texi: New file.
47471         * doc/glibc-headers/ifaddrs.texi: New file.
47472         * doc/glibc-headers/libintl.texi: New file.
47473         * doc/glibc-headers/mcheck.texi: New file.
47474         * doc/glibc-headers/mntent.texi: New file.
47475         * doc/glibc-headers/obstack.texi: New file.
47476         * doc/glibc-headers/paths.texi: New file.
47477         * doc/glibc-headers/printf.texi: New file.
47478         * doc/glibc-headers/pty.texi: New file.
47479         * doc/glibc-headers/resolv.texi: New file.
47480         * doc/glibc-headers/shadow.texi: New file.
47481         * doc/glibc-headers/sysexits.texi: New file.
47482         * doc/glibc-headers/ttyent.texi: New file.
47483
47484 2008-01-12  Jim Meyering  <meyering@redhat.com>
47485
47486         announce-gen: emit Gnulib's git-based version string.
47487         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
47488         New option --gnulib-version=V, where V is expected to be
47489         the output of running git describe in the gnulib directory.
47490         (get_tool_versions): Request feedback on xdelta.  I suspect it's
47491         not useful, and plan to stop publishing an xdelta file with each
47492         coreutils release.
47493
47494         * build-aux/announce-gen: Also check for lzma-compressed files.
47495
47496 2008-01-11  Bruno Haible  <bruno@clisp.org>
47497
47498         * tests/test-memmem.c (main): Increase maximum allowed time.
47499         * tests/test-strstr.c (main): Likewise.
47500
47501 2008-01-11  Bruno Haible  <bruno@clisp.org>
47502
47503         * doc/functions/memmem.texi: Add more precisions about platforms.
47504         * doc/functions/strstr.texi: Likewise.
47505
47506 2008-01-10  Eric Blake  <ebb9@byu.net>
47507
47508         * m4/strstr.m4: Delete cruft from copy-n-paste.
47509         Reported by Bruno Haible.
47510
47511 2008-01-10  Bruno Haible  <bruno@clisp.org>
47512
47513         Make c-strstr rely on strstr.
47514         * lib/c-strstr.c: Don't include str-kmp.h.
47515         (c_strstr): Define in terms of strstr.
47516         * modules/c-strstr (Files): Remove lib/str-kmp.h.
47517         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
47518
47519 2008-01-10  Bruno Haible  <bruno@clisp.org>
47520
47521         * doc/gnulib.texi (String Functions in C Locale): New section.
47522         * doc/c-ctype.texi: New file.
47523         * doc/c-strcase.texi: New file.
47524         * doc/c-strcaseeq.texi: New file.
47525         * doc/c-strcasestr.texi: New file.
47526         * doc/c-strstr.texi: New file.
47527         * doc/c-strtod.texi: New file.
47528         * doc/c-strtold.texi: New file.
47529
47530 2008-01-10  Eric Blake  <ebb9@byu.net>
47531
47532         * lib/relocatable.h: Fix a comment.
47533
47534 2008-01-10  Eric Blake  <ebb9@byu.net>
47535
47536         Share two-way algorithm.
47537         * lib/str-two-way.h: New file, merged from...
47538         * lib/memmem.c: ...here...
47539         * lib/strstr.c: ...and here.
47540         * modules/memmem (Files): Use it.
47541         * modules/strstr (Files): Likewise.
47542
47543         Avoid quadratic strstr implementations.
47544         * lib/strstr.c: New file.
47545         * m4/strstr.m4: Likewise.
47546         * modules/strstr: Likewise.
47547         * modules/strstr-tests: Likewise.
47548         * tests/test-strstr.c: Likewise.
47549         * lib/string.in.h (rpl_strstr): Declare.
47550         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
47551         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
47552         * modules/string (Makefile.am): Likewise.
47553         * MODULES.html.sh (string handling): Mention new module.
47554         * doc/functions/strstr.texi (strstr): Document the bug.
47555
47556 2008-01-10  Bruno Haible  <bruno@clisp.org>
47557
47558         * lib/relocatable.h (relocate): State whether result is freshly
47559         allocated or not.
47560         * lib/relocatable.c (relocate): Return a freshly allocated string
47561         instead of a pointer to a privately held string.
47562         Reported by Sylvain Beucler <beuc@gnu.org>.
47563
47564 2008-01-10  Colin Watson  <cjwatson@debian.org>
47565
47566         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
47567         s/S_ISNLK/S_ISLNK/.
47568
47569 2008-01-09  Bruno Haible  <bruno@clisp.org>
47570
47571         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
47572         and other files.
47573         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
47574         if it's only a guess.
47575         * modules/memmem: Simplify by depending on memmem-simple.
47576
47577 2008-01-09  Bruno Haible  <bruno@clisp.org>
47578
47579         Work around OpenBSD 4.0 tdelete() bug.
47580         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
47581         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
47582         macros and don't redefine the enum values.
47583         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
47584         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
47585         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
47586
47587 2008-01-09  Bruno Haible  <bruno@clisp.org>
47588
47589         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
47590         (main): Don't perform the tests if setlocale did not install a UTF-8
47591         locale. Needed on OpenBSD 4.0.
47592         * modules/wcwidth-tests (Depends-on): Add localcharset.
47593
47594 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47595
47596         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
47597         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
47598         * NEWS: announce this.
47599         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
47600
47601 2008-01-09  Simon Josefsson  <simon@josefsson.org>
47602         and Eric Blake  <ebb9@byu.net>
47603
47604         Add memmem-simple module.
47605         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
47606         (gl_FUNC_MEMMEM): Separate performance from presence checks.
47607         * modules/memmem-simple: New file.
47608         * modules/memmem (Description): Tweak.
47609         * MODULES.html.sh (string handling): Mention new module.
47610         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
47611         addressed by memmem-simple.
47612         * NEWS: Document the difference.
47613
47614 2008-01-09  Eric Blake  <ebb9@byu.net>
47615
47616         Give gcc some memmem optimization hints.
47617         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
47618         (strcasestr): Declare as pure.
47619         * modules/memmem (Maintainer): Claim my implementation.
47620
47621 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47622
47623         Support AIX 6.1 and higher.
47624         * build-aux/config.libpath: Likewise.
47625         * build-aux/config.rpath: Likewise.
47626
47627 2008-01-08  Jim Meyering  <meyering@redhat.com>
47628             Bruno Haible  <bruno@clisp.org>
47629
47630         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
47631         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
47632         Reported by Peter Fales in
47633         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
47634
47635 2008-01-08  Bruno Haible  <bruno@clisp.org>
47636
47637         * modules/unictype/category-of (Depends-on): Add
47638         unictype/category-none.
47639         * modules/unictype/category-and-tests (Depends-on): Add
47640         unictype/category-{L,N,Lu,Nd}.
47641         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
47642         * modules/unictype/category-or-tests (Depends-on): Add
47643         unictype/category-{L,N}.
47644         * modules/unictype/category-name-tests (Depends-on): Add
47645         unictype/category-{Z,Nl}.
47646         Reported by Simon Josefsson.
47647
47648 2008-01-08  Bruno Haible  <bruno@clisp.org>
47649
47650         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
47651         convention better.
47652         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
47653         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
47654         Reported by Peter Miller <millerp@canb.auug.org.au>.
47655
47656 2008-01-08  Eric Blake  <ebb9@byu.net>
47657
47658         Rewrite memmem to guarantee linear complexity without malloc.
47659         * lib/memmem.c (memmem): Use Two-Way rather than
47660         Knuth-Morris-Pratt, to allow O(1) space usage.
47661         (critical_factorization, two_way_short_needle)
47662         (two_way_long_needle): New functions.
47663         (knuth_morris_pratt): Delete.
47664         * modules/memmem (Depends-on): No longer need malloca or stdbool.
47665         Add stdint.
47666         * tests/test-memmem.c (main): Add tests for periodic needle and
47667         sublinear performance.
47668         * doc/functions/memmem.texi (memmem): Document other deficiencies
47669         in cygwin and older glibc.
47670
47671 2008-01-08  Bruno Haible  <bruno@clisp.org>
47672
47673         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
47674         augmentation.
47675
47676 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
47677
47678         Add a configure time option: --disable-acl.
47679         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
47680         AC_ARG_ENABLE(acl).
47681
47682 2008-01-06  Simon Josefsson  <simon@josefsson.org>
47683
47684         * tests/test-localename.c: Don't include obsolete "setenv.h".
47685
47686         * modules/localename-tests (Depends-on): Need unsetenv.
47687
47688 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47689
47690         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
47691
47692 2008-01-06  Colin Watson  <cjwatson@debian.org>
47693
47694         * users.txt: Add man-db.
47695
47696 2008-01-07  Bruno Haible  <bruno@clisp.org>
47697
47698         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
47699         previous section name.
47700
47701 2008-01-07  Bruno Haible  <bruno@clisp.org>
47702
47703         * lib/progname.c (set_program_name): Don't strip off a leading
47704         "lt-" prefix outside a .libs directory.
47705         Suggested by Paul Eggert.
47706
47707 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
47708             Bruno Haible  <bruno@clisp.org>
47709
47710         Improve memory cleanup in 'relocatable' module.
47711         * lib/relocatable.h (compute_curr_prefix): Change return type to
47712         'char *'.
47713         * lib/relocatable.c (compute_curr_prefix): Change return type to
47714         'char *'. Free curr_installdir after use.
47715         (relocate): Free curr_prefix_better after use.
47716         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
47717
47718 2008-01-01  Bruno Haible  <bruno@clisp.org>
47719
47720         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
47721         failure on older glibc systems.
47722         Reported by Peter Fales <psfales@alcatel-lucent.com>.
47723
47724 2008-01-05  Eric Blake  <ebb9@byu.net>
47725
47726         Avoid quadratic system memmem.
47727         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
47728         Reported by Ralf Wildenhues.
47729
47730         Fix memmem test for mingw.
47731         * modules/memmem-tests (configure.ac): Check for alarm.
47732         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
47733         it.
47734         * doc/functions/memmem.texi: New file.
47735         * doc/gnulib.texi (Function Substitutes): Add memmem.
47736         Reported by Bruno Haible.
47737
47738 2008-01-04  Bruno Haible  <bruno@clisp.org>
47739
47740         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
47741         Require gl_HEADER_STRINGS_H_DEFAULTS, not
47742         gl_HEADER_STRING_H_DEFAULTS.
47743
47744 2008-01-04  Eric Blake  <ebb9@byu.net>
47745
47746         Shorten duration of memmem test.
47747         * tests/test-memmem.c (main): Use alarm to declare failure if test
47748         is taking too long.
47749         Reported by Ralf Wildenhues.
47750
47751 2007-12-21  Simon Josefsson  <simon@josefsson.org>
47752
47753         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
47754         string, needed by strerror.
47755
47756 2008-01-03  Colin Watson  <cjwatson@debian.org>
47757             Bruno Haible  <bruno@clisp.org>
47758
47759         * doc/gnulib-tool.texi (Localization): New section.
47760
47761 2008-01-02  Bruno Haible  <bruno@clisp.org>
47762
47763         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
47764         variables to 'unsigned char *' type.
47765         Reported by Paul Eggert.
47766
47767 2008-01-02  Jim Meyering  <jim@meyering.net>
47768
47769         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
47770
47771 2007-12-31  Jim Meyering  <jim@meyering.net>
47772
47773         Avoid use of private FTS type name.
47774         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
47775
47776 2007-12-30  Karl Berry  <karl@gnu.org>
47777
47778         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
47779         work around defect in Texinfo and/or the standalone Info browser.
47780
47781 2007-12-30  Bruno Haible  <bruno@clisp.org>
47782
47783         Unify 5 copies of the KMP code.
47784         * lib/str-kmp.h: New file.
47785         * lib/c-strcasestr.c: Include str-kmp.h.
47786         (knuth_morris_pratt): Remove function.
47787         (c_strcasestr): Update.
47788         * lib/c-strstr.c: Include str-kmp.h.
47789         (knuth_morris_pratt): Remove function.
47790         (c_strcasestr): Update.
47791         * lib/mbscasestr.c: Include str-kmp.h.
47792         (knuth_morris_pratt_unibyte): Remove function.
47793         * lib/mbsstr.c: Include str-kmp.h.
47794         (knuth_morris_pratt_unibyte): Remove function.
47795         * lib/strcasestr.c: Include str-kmp.h.
47796         (knuth_morris_pratt): Remove function.
47797         (strcasestr): Update.
47798         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
47799         * modules/c-strstr (Files): Likewise.
47800         * modules/mbscasestr (Files): Likewise.
47801         * modules/mbsstr (Files): Likewise.
47802         * modules/strcasestr (Files): Likewise.
47803         Suggested by Paul Eggert.
47804
47805 2007-12-30  Bruno Haible  <bruno@clisp.org>
47806
47807         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
47808         defined.
47809
47810 2007-12-30  Bruno Haible  <bruno@clisp.org>
47811
47812         * lib/xmalloca.h: Include xalloc.h.
47813         (xnmalloca): New macro.
47814
47815 2007-12-30  Bruno Haible  <bruno@clisp.org>
47816
47817         * lib/malloca.h (nmalloca): New macro.
47818         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
47819         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
47820         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
47821         knuth_morris_pratt_multibyte): Likewise.
47822         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
47823         knuth_morris_pratt_multibyte): Likewise.
47824         * lib/memmem.c (knuth_morris_pratt): Likewise.
47825         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
47826
47827 2007-12-25  Bruno Haible  <bruno@clisp.org>
47828
47829         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
47830         * lib/glob.c: Don't include openat.h.
47831         (link_exists2_p): Add back the code that deals with the
47832         !GLOB_ALTDIRFUNC case.
47833         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
47834         let it do the filename concatenation.
47835         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
47836         * modules/glob (Depends-on): Remove openat.
47837
47838 2007-12-31  Bruno Haible  <bruno@clisp.org>
47839
47840         * modules/dirfd (License): Change to LGPLv2+.
47841         Approved by Jim Meyering.
47842
47843 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
47844
47845         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
47846         when multiplying M by sizeof (size_t).
47847
47848 2007-12-10  Martin Lambers  <marlam@marlam.de>
47849
47850         Override getpagesize on mingw.
47851         * lib/getpagesize.c: New file.
47852         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
47853         * modules/getpagesize (Files): Add lib/getpagesize.c.
47854         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
47855         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47856         REPLACE_GETPAGESIZE.
47857         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
47858
47859 2007-12-25  Bruno Haible  <bruno@clisp.org>
47860
47861         * modules/localcharset (Notice): New field.
47862         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
47863         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
47864
47865 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
47866             Bruno Haible  <bruno@clisp.org>
47867
47868         Avoid using the syntax symbol() in formatted documentation.
47869         * MODULES.html.sh (func_module): When replacing symbol() with a
47870         hyperlink, remove the parentheses. Show an error if some remain.
47871         Recognize and render the '...' syntax.
47872         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
47873         Rework. Add paragraph about GCC's inlining.
47874         * doc/alloca.texi: Likewise.
47875         * doc/error.texi: Remove parentheses from symbol reference.
47876         * doc/gnulib-intro.texi: Likewise.
47877         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
47878         * modules/fnmatch (Description): Reword to say "the ... function".
47879         * modules/full-read (Description): Likewise.
47880         * modules/full-write (Description): Likewise.
47881         * modules/safe-read (Description): Likewise.
47882         * modules/safe-write (Description): Likewise.
47883         * modules/strchrnul (Description): Likewise.
47884         * modules/trim (Description): Likewise.
47885         * modules/error (Description): Remove parentheses from symbol
47886         references.
47887         * modules/verror (Description): Likewise.
47888         Reported by Karl Berry.
47889
47890 2007-12-25  Bruno Haible  <bruno@clisp.org>
47891
47892         Fixup after 2007-10-16 commit.
47893         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
47894
47895 2007-12-24  Bruno Haible  <bruno@clisp.org>
47896
47897         Make --enable-relocatable work with DESTDIR.
47898         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
47899         to compute installdir from destprog.
47900         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
47901         also set the RELOC_DESTDIR variable.
47902         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
47903
47904 2007-12-24  Bruno Haible  <bruno@clisp.org>
47905
47906         Fix link error due to xalloc_die().
47907         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
47908         of xreadlink.
47909         * lib/relocwrapper.c: Update comments.
47910         * build-aux/install-reloc: Remove xreadlink.c from file list.
47911         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
47912         xreadlink.c.
47913         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
47914
47915 2007-12-24  Bruno Haible  <bruno@clisp.org>
47916
47917         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
47918         * lib/setenv.h: Remove file.
47919         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
47920         lib/setenv.h.
47921         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
47922         (Depends-on): Add stdlib.
47923         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
47924         gl_FUNC_UNSETENV.
47925         (Include): Replace setenv.h with <stdlib.h>.
47926         * modules/unsetenv: New file.
47927         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
47928         * lib/unsetenv.c: Include <stdlib.h> first.
47929         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
47930         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
47931         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
47932         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
47933         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
47934         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
47935         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
47936         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
47937         * doc/functions/unsetenv.texi: Update.
47938         * modules/xsetenv (Depends-on): Add unsetenv.
47939         * modules/getdate (Depends-on): Likewise.
47940         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
47941         * lib/xsetenv.c: Don't include setenv.h.
47942         * lib/getdate.y: Likewise.
47943         * lib/relocwrapper.c: Likewise.
47944         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
47945         (Depends-on): Add stdlib.
47946         * NEWS: Mention the changes.
47947         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
47948
47949 2007-12-23  Bruno Haible  <bruno@clisp.org>
47950
47951         * lib/memmem.c (memmem): Use lowercase variable names. Tab
47952         indentation.
47953
47954 2007-12-23  Bruno Haible  <bruno@clisp.org>
47955
47956         * lib/c-strcasestr.c: Add more comments.
47957         * lib/c-strstr.c: Likewise.
47958         * lib/mbscasestr.c: Likewise.
47959         * lib/mbsstr.c: Likewise.
47960         * lib/strcasestr.c: Likewise.
47961         * lib/memmem.c: Likewise.
47962
47963 2007-12-23  Bruno Haible  <bruno@clisp.org>
47964
47965         * tests/test-memmem.c: Include <string.h> first.
47966
47967 2007-12-22  Bruno Haible  <bruno@clisp.org>
47968
47969         * gnulib-tool (func_create_testdir): Change $auxdir while generating
47970         the contents of $testsbase.
47971         Reported by Ralf Wildenhues.
47972
47973 2007-12-22  Bruno Haible  <bruno@clisp.org>
47974
47975         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
47976         two variables local_ldadd_before, local_ldadd_last.
47977
47978 2007-12-20  Eric Blake  <ebb9@byu.net>
47979
47980         Work around circular library issue when cross-compiling.
47981         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
47982         that progname.o does not need to pull in rpl_memcmp.
47983
47984 2007-12-19  Eric Blake  <ebb9@byu.net>
47985
47986         Fix memmem to avoid O(n^2) worst-case complexity.
47987         * lib/memmem.c (knuth_morris_pratt): New function.
47988         (memmem): Use it if first few naive iterations fail.
47989         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
47990         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
47991         * modules/memchr (License): Likewise.
47992         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
47993         malloca.
47994         * tests/test-memmem.c: Rewrite, borrowing ideas from
47995         test-mbsstr1.c; the old version wouldn't even compile!
47996         * modules/memmem-tests: New file.
47997         * lib/string.in.h (rpl_memmem): Add declaration.
47998         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
47999         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
48000         REPLACE_MEMMEM.
48001
48002 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
48003
48004         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
48005         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
48006         before any system include files, and undef after them all.  This
48007         should fix a problem on VMS reported by John E. Malmberg in
48008         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
48009
48010 2007-12-17  Eric Blake  <ebb9@byu.net>
48011
48012         Revert addition of verify, for BSD/OS.
48013         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
48014         can't handle large files, for the sake of obsolete platforms.
48015         * modules/fseeko (Depends-on): Remove verify.
48016         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
48017         * doc/functions/ftello.texi (ftello): Likewise.
48018         * doc/functions/fgetpos.texi (fgetpos): Likewise.
48019         Reported by Larry Jones.
48020
48021 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
48022
48023         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
48024         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
48025
48026 2007-12-17  Jim Meyering  <meyering@redhat.com>
48027
48028         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
48029         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
48030         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
48031         * modules/getcwd (Depends-on): Add openat.
48032         Reported by Petr Salinger.
48033
48034 2007-12-17  Bruno Haible  <bruno@clisp.org>
48035
48036         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
48037         avoid a segmentation fault of the configure test on x86_64 systems.
48038
48039 2007-12-15  Jim Meyering  <meyering@redhat.com>
48040
48041         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
48042
48043 2007-12-13  Eric Blake  <ebb9@byu.net>
48044
48045         Another fseek test.
48046         * tests/test-fseek.c (main): Also test ungetc handling.
48047         * tests/test-fseeko.c (main): Likewise.
48048         * modules/fseeko (Depends-on): Add verify.
48049         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
48050         large.
48051         Reported by Larry Jones.
48052
48053         Fix fseeko on mingw.
48054         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
48055         seek.
48056
48057         Beef up fseek tests.
48058         * tests/test-fseek.c (main): Also test eof handling.
48059         * tests/test-fseeko.c (main): Likewise.
48060         Reported by Larry Jones.
48061
48062 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
48063
48064         Fix fseeko on BSD-based platforms.
48065         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
48066         successful seek.
48067
48068 2007-12-12  Eric Blake  <ebb9@byu.net>
48069
48070         Allow circular dependency of separate libtests.a
48071         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
48072         when use_libtests.
48073
48074 2007-12-11  Eric Blake  <ebb9@byu.net>
48075
48076         Fix bug with -0.0L in previous patch.
48077         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
48078         * tests/test-isnan.c (main): Also test on zeroes.
48079         * tests/test-isnanf.c (main): Likewise.
48080         * tests/test-isnanl.h (main): Likewise.
48081
48082         Detect pseudo-denormals on x86 even when cross-compiling.
48083         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
48084         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
48085         invalid bit patterns that happen to satisfy ==.
48086
48087         Avoid link failures with separate libtests.a.
48088         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
48089         last, to satisfy circular dependencies.
48090
48091 2007-12-11  Eric Blake  <ebb9@byu.net>
48092         and Bruno Haible  <bruno@clisp.org>
48093
48094         Fix OpenBSD 4.0 <float.h> handling of long double.
48095         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
48096         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
48097         * doc/headers/float.texi (float.h): Document OpenBSD bug.
48098
48099 2007-12-11  Jim Meyering  <meyering@redhat.com>
48100
48101         * users.txt: Add libvirt.
48102
48103         Support versions of autoconf prior to 2.59c.
48104         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
48105         if it is not already defined.
48106
48107 2007-12-09  Bruno Haible  <bruno@clisp.org>
48108
48109         Let 'gnulib-tool --import' collect sources needed for the tests in
48110         tests/ rather than in lib/.
48111         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
48112         argument. If true, add rules to generate libtests.a, and put libtests.a
48113         into $(LDADD). Consider source files in subdirectories and set
48114         uses_subdirs.
48115         (func_emit_initmacro_start, func_emit_initmacro_end,
48116         func_emit_initmacro_done): Pass all arguments explicitly.
48117         (func_import): Determine two module lists main_modules,
48118         testsrelated_modules. Determine use_libtests. Determine two variables
48119         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
48120         instead of just sed_transform_lib_file. Determine two variables
48121         main_files and testsrelated_files. Compute 'files' as the union of
48122         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
48123         func_add_or_update. In the generated gnulib-comp.m4, collect the
48124         object files for tests/ in different variables than those for lib/.
48125         Substitute LIBTESTS_LIBDEPS.
48126         (func_create_testdir): Combine the uses_subdirs results from
48127         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
48128
48129 2007-12-09  Bruno Haible  <bruno@clisp.org>
48130
48131         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
48132         the build-aux directory.
48133
48134 2007-12-09  Bruno Haible  <bruno@clisp.org>
48135
48136         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
48137         introduced on 2006-09-09.
48138
48139 2007-12-07  Jim Meyering  <meyering@redhat.com>
48140
48141         Let these macros work also with autoconf-2.59.
48142         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
48143         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
48144         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
48145
48146 2007-12-06  Jim Meyering  <meyering@redhat.com>
48147
48148         Avoid a configure-time syntax error in gl_FUNC_ACL.
48149         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
48150         function in each branch, before testing the cache variable.
48151
48152 2007-12-04  Eric Blake  <ebb9@byu.net>
48153
48154         Make scripts executable.
48155         * build-aux/config.guess: Add execute permissions.
48156         * build-aux/config.sub: Likewise.
48157         * build-aux/gendocs.sh: Likewise.
48158
48159         Fix frexp on mingw.
48160         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
48161         cross-compiling.
48162         * doc/functions/frexp.texi (frexp): Document the bug.
48163
48164         Make cygwin fseeko check more reliable.
48165         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
48166         version numbers, rather than unrelated feature check.
48167         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
48168         * doc/functions/ftello.texi (ftello): Likewise.
48169         Reported by Bruno Haible.
48170
48171         * m4/strerror.m4: Bump version number.
48172
48173 2007-12-03  Bruno Haible  <bruno@clisp.org>
48174
48175         * doc/functions/mprotect.texi: Mention the mingw problem.
48176
48177 2007-12-03  Eric Blake  <ebb9@byu.net>
48178
48179         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
48180         REPLACE_STRERROR is initialized before this macro.
48181
48182 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
48183
48184         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
48185         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
48186         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
48187         put -lsec in even for programs other than 'ls'.  This fixes a problem
48188         for gettext reported by Bruno Haible in
48189         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
48190         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
48191         Add support for Solaris 10.  This isn't efficient, but should get the
48192         job done for now.
48193
48194 2007-12-03  James Youngman  <jay@gnu.org>
48195
48196         * doc/regexprops-generic.texi: change "an close-group" to "a
48197         close-group" and "illegal" to "not allowed".
48198
48199 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48200
48201         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
48202         pr_byname.h. Needed for the rare case when the maintainer has done
48203         "make maintainer-clean" in the source directory and then attempts a
48204         build outside the source directory.
48205         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
48206         scripts_byname.h.
48207
48208 2007-12-02  Martin Lambers <marlam@marlam.de>
48209             Bruno Haible  <bruno@clisp.org>
48210
48211         * lib/getpagesize.h: Remove file.
48212         * lib/unistd.in.h: Include declaration of getpagesize here.
48213         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
48214         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
48215         HAVE_SYS_PARAM_H.
48216         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
48217         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
48218         * modules/getpagesize (Files): Remove lib/getpagesize.h.
48219         (Depends-on): Add unistd.
48220         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48221         (Include): Use <unistd.h> instead of getpagesize.h.
48222         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
48223         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
48224         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
48225         gl_GETPAGESIZE invocation, already handled by module dependency.
48226         * lib/pagealign_alloc.c: Don't include getpagesize.h.
48227
48228 2007-12-02  Bruno Haible  <bruno@clisp.org>
48229
48230         * modules/strings-tests: New file.
48231         * tests/test-strings.c: New file.
48232
48233         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
48234         * lib/strings.in.h: New file.
48235         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
48236         * m4/strings_h.m4: New file.
48237         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
48238         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
48239         * modules/strings: New file.
48240         * modules/string (Makefile.am): Update.
48241         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
48242         Reported by Karl Berry.
48243
48244 2007-12-01  Eric Blake  <ebb9@byu.net>
48245
48246         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
48247         accomodate fix in cygwin 1.5.25.
48248
48249 2007-12-01  Jim Meyering  <meyering@redhat.com>
48250
48251         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
48252         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
48253         that would inhibit utf8-optimization of a regexp containing line-
48254         or buffer-anchors, e.g., `^', `$'.
48255
48256 2007-11-30  Bruno Haible  <bruno@clisp.org>
48257
48258         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
48259         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
48260         glthread_recursive_lock_init.
48261         * lib/lock.c (glthread_recursive_lock_init)
48262         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
48263         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48264
48265 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
48266
48267         New function qset_acl, like set_acl but with syscall semantics.
48268         * lib/acl.h (qset_acl): New decl.
48269         * lib/acl.c (qset_acl): New function.
48270         (set_acl): Use new function.  Use more-consistent diagnostics.
48271
48272 2007-11-28  Jim Meyering  <meyering@redhat.com>
48273
48274         * modules/physmem (License): Change from GPL to LGPLv2+.
48275
48276 2007-11-26  Bruno Haible  <bruno@clisp.org>
48277
48278         * lib/vasnprintf.c (decode_long_double): Don't abort if the
48279         'long double' type has excess precision.
48280         Reported by Jim Meyering in
48281         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
48282
48283 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48284
48285         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
48286         Sync from <http://gnu.org/licenses>.
48287         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
48288         with license text from same location.
48289         * doc/maintain.texi, doc/standards.texi:  Sync from
48290         <http://savannah.gnu.org/projects/gnustandards>.
48291
48292 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
48293         and Jim Meyering  <meyering@redhat.com>
48294
48295         Adjust getdate' grammar to accept a slightly more regular language.
48296         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
48297         Before, the former was rejected.
48298         * lib/getdate.y (digits_to_date_time): New function, factored
48299         out of ...
48300         (number): ...here.  Just call digits_to_date_time.
48301         (hybrid): New non-terminal to handle an <unsigned number,
48302         signed relative offset> sequence consistently.
48303
48304 2007-11-18  Jim Meyering  <meyering@redhat.com>
48305
48306         Pull my changes from coreutils:
48307         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
48308         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
48309         use of $gnulib_tool_option_extras, so that it's separated from the
48310         preceding argument.
48311
48312         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
48313         * build-aux/bootstrap (cp_mark_as_generated): Create any required
48314         parent destination directories before copying a file into place.
48315
48316 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
48317
48318         bootstrap: work also with 4-argument variant of AC_INIT
48319         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
48320
48321 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
48322
48323         Port test-getaddrinfo to Solaris.
48324         Problem reported by Bruno Haible in
48325         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
48326         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
48327         explanation of setting 'hints'.
48328         Don't reject an implementation merely because it returns EAI_SERVICE.
48329         (EAI_SERVICE): Define to 0 if not defined.
48330
48331 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
48332
48333         The license of gnu-make and posix-shell is now "GPLed build tool".
48334         * modules/gnu-make (License): Likewise.
48335         * modules/posix-shell (License): Likewise.
48336
48337         New module posix-shell, for determining a POSIX shell
48338         or perhaps something that is close enough to a POSIX shell.
48339         * m4/posix-shell.m4: New file.
48340         * modules/posix-shell: New file.
48341
48342         * MODULES.html.sh: Mention new module.
48343
48344         New module gnu-make, for determining whether we're using GNU Make.
48345         * m4/gnu-make.m4: New file.
48346         * modules/gnu-make: New file.
48347         * MODULES.html.sh: Mention new module.
48348
48349 2007-11-14  Jim Meyering  <meyering@redhat.com>
48350
48351         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
48352         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
48353         use this macro to create a function _definition_.
48354         Remove useless "#undef ARGMATCH_DIE".
48355
48356 2007-11-14  Bruno Haible  <bruno@clisp.org>
48357
48358         * lib/config.charset: Update for OpenBSD 4.1.
48359         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
48360
48361 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
48362
48363         Document 64-bit #if problems in stdint.texi.
48364         * doc/headers/stdint.texi (stdint.h): Mention problems with
48365         64-bit-#if, and how to work around them.
48366
48367         Don't insist on 'long long int' support in the preprocessor.  It
48368         breaks too many things.  For example, PRIdMAX still uses a 'long
48369         long int' format with the latest Sun compiler, even though
48370         HAVE_LONG_LONG_INT isn't defined due to that compiler's
48371         preprocessor problem.  This causes the latest coreutils to dump
48372         core on Solaris 10 sparc with the Sun C compiler.
48373         Instead, fix the 2007-10-16 problem in a different way, by evaluating
48374         the troublesome expressions at configure-time, not at #if-time.
48375         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
48376         preprocessor.
48377         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
48378         compile-time C checks, done at 'configure'-time.
48379         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
48380         * modules/inttypes (Makefile): Substitute the new symbols that
48381         gl_INTTYPES_H now generates.
48382         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
48383
48384 2007-11-12  Bruno Haible  <bruno@clisp.org>
48385
48386         Tests for Unicode character classification functions.
48387
48388         * modules/unictype/bidicategory-byname-tests: New file.
48389         * modules/unictype/bidicategory-name-tests: New file.
48390         * modules/unictype/bidicategory-of-tests: New file.
48391         * modules/unictype/bidicategory-test-tests: New file.
48392         * modules/unictype/block-list-tests: New file.
48393         * modules/unictype/block-of-tests: New file.
48394         * modules/unictype/block-test-tests: New file.
48395         * modules/unictype/category-C-tests: New file.
48396         * modules/unictype/category-Cc-tests: New file.
48397         * modules/unictype/category-Cf-tests: New file.
48398         * modules/unictype/category-Cn-tests: New file.
48399         * modules/unictype/category-Co-tests: New file.
48400         * modules/unictype/category-Cs-tests: New file.
48401         * modules/unictype/category-L-tests: New file.
48402         * modules/unictype/category-Ll-tests: New file.
48403         * modules/unictype/category-Lm-tests: New file.
48404         * modules/unictype/category-Lo-tests: New file.
48405         * modules/unictype/category-Lt-tests: New file.
48406         * modules/unictype/category-Lu-tests: New file.
48407         * modules/unictype/category-M-tests: New file.
48408         * modules/unictype/category-Mc-tests: New file.
48409         * modules/unictype/category-Me-tests: New file.
48410         * modules/unictype/category-Mn-tests: New file.
48411         * modules/unictype/category-N-tests: New file.
48412         * modules/unictype/category-Nd-tests: New file.
48413         * modules/unictype/category-Nl-tests: New file.
48414         * modules/unictype/category-No-tests: New file.
48415         * modules/unictype/category-P-tests: New file.
48416         * modules/unictype/category-Pc-tests: New file.
48417         * modules/unictype/category-Pd-tests: New file.
48418         * modules/unictype/category-Pe-tests: New file.
48419         * modules/unictype/category-Pf-tests: New file.
48420         * modules/unictype/category-Pi-tests: New file.
48421         * modules/unictype/category-Po-tests: New file.
48422         * modules/unictype/category-Ps-tests: New file.
48423         * modules/unictype/category-S-tests: New file.
48424         * modules/unictype/category-Sc-tests: New file.
48425         * modules/unictype/category-Sk-tests: New file.
48426         * modules/unictype/category-Sm-tests: New file.
48427         * modules/unictype/category-So-tests: New file.
48428         * modules/unictype/category-Z-tests: New file.
48429         * modules/unictype/category-Zl-tests: New file.
48430         * modules/unictype/category-Zp-tests: New file.
48431         * modules/unictype/category-Zs-tests: New file.
48432         * modules/unictype/category-and-not-tests: New file.
48433         * modules/unictype/category-and-tests: New file.
48434         * modules/unictype/category-byname-tests: New file.
48435         * modules/unictype/category-name-tests: New file.
48436         * modules/unictype/category-none-tests: New file.
48437         * modules/unictype/category-of-tests: New file.
48438         * modules/unictype/category-or-tests: New file.
48439         * modules/unictype/category-test-withtable-tests: New file.
48440         * modules/unictype/combining-class-tests: New file.
48441         * modules/unictype/ctype-alnum-tests: New file.
48442         * modules/unictype/ctype-alpha-tests: New file.
48443         * modules/unictype/ctype-blank-tests: New file.
48444         * modules/unictype/ctype-cntrl-tests: New file.
48445         * modules/unictype/ctype-digit-tests: New file.
48446         * modules/unictype/ctype-graph-tests: New file.
48447         * modules/unictype/ctype-lower-tests: New file.
48448         * modules/unictype/ctype-print-tests: New file.
48449         * modules/unictype/ctype-punct-tests: New file.
48450         * modules/unictype/ctype-space-tests: New file.
48451         * modules/unictype/ctype-upper-tests: New file.
48452         * modules/unictype/ctype-xdigit-tests: New file.
48453         * modules/unictype/decimal-digit-tests: New file.
48454         * modules/unictype/digit-tests: New file.
48455         * modules/unictype/mirror-tests: New file.
48456         * modules/unictype/numeric-tests: New file.
48457         * modules/unictype/property-alphabetic-tests: New file.
48458         * modules/unictype/property-ascii-hex-digit-tests: New file.
48459         * modules/unictype/property-bidi-arabic-digit-tests: New file.
48460         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
48461         * modules/unictype/property-bidi-block-separator-tests: New file.
48462         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
48463         * modules/unictype/property-bidi-common-separator-tests: New file.
48464         * modules/unictype/property-bidi-control-tests: New file.
48465         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
48466         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
48467         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
48468         * modules/unictype/property-bidi-european-digit-tests: New file.
48469         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
48470         * modules/unictype/property-bidi-left-to-right-tests: New file.
48471         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
48472         * modules/unictype/property-bidi-other-neutral-tests: New file.
48473         * modules/unictype/property-bidi-pdf-tests: New file.
48474         * modules/unictype/property-bidi-segment-separator-tests: New file.
48475         * modules/unictype/property-bidi-whitespace-tests: New file.
48476         * modules/unictype/property-byname-tests: New file.
48477         * modules/unictype/property-combining-tests: New file.
48478         * modules/unictype/property-composite-tests: New file.
48479         * modules/unictype/property-currency-symbol-tests: New file.
48480         * modules/unictype/property-dash-tests: New file.
48481         * modules/unictype/property-decimal-digit-tests: New file.
48482         * modules/unictype/property-default-ignorable-code-point-tests: New file.
48483         * modules/unictype/property-deprecated-tests: New file.
48484         * modules/unictype/property-diacritic-tests: New file.
48485         * modules/unictype/property-extender-tests: New file.
48486         * modules/unictype/property-format-control-tests: New file.
48487         * modules/unictype/property-grapheme-base-tests: New file.
48488         * modules/unictype/property-grapheme-extend-tests: New file.
48489         * modules/unictype/property-grapheme-link-tests: New file.
48490         * modules/unictype/property-hex-digit-tests: New file.
48491         * modules/unictype/property-hyphen-tests: New file.
48492         * modules/unictype/property-id-continue-tests: New file.
48493         * modules/unictype/property-id-start-tests: New file.
48494         * modules/unictype/property-ideographic-tests: New file.
48495         * modules/unictype/property-ids-binary-operator-tests: New file.
48496         * modules/unictype/property-ids-trinary-operator-tests: New file.
48497         * modules/unictype/property-ignorable-control-tests: New file.
48498         * modules/unictype/property-iso-control-tests: New file.
48499         * modules/unictype/property-join-control-tests: New file.
48500         * modules/unictype/property-left-of-pair-tests: New file.
48501         * modules/unictype/property-line-separator-tests: New file.
48502         * modules/unictype/property-logical-order-exception-tests: New file.
48503         * modules/unictype/property-lowercase-tests: New file.
48504         * modules/unictype/property-math-tests: New file.
48505         * modules/unictype/property-non-break-tests: New file.
48506         * modules/unictype/property-not-a-character-tests: New file.
48507         * modules/unictype/property-numeric-tests: New file.
48508         * modules/unictype/property-other-alphabetic-tests: New file.
48509         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
48510         * modules/unictype/property-other-grapheme-extend-tests: New file.
48511         * modules/unictype/property-other-id-continue-tests: New file.
48512         * modules/unictype/property-other-id-start-tests: New file.
48513         * modules/unictype/property-other-lowercase-tests: New file.
48514         * modules/unictype/property-other-math-tests: New file.
48515         * modules/unictype/property-other-uppercase-tests: New file.
48516         * modules/unictype/property-paired-punctuation-tests: New file.
48517         * modules/unictype/property-paragraph-separator-tests: New file.
48518         * modules/unictype/property-pattern-syntax-tests: New file.
48519         * modules/unictype/property-pattern-white-space-tests: New file.
48520         * modules/unictype/property-private-use-tests: New file.
48521         * modules/unictype/property-punctuation-tests: New file.
48522         * modules/unictype/property-quotation-mark-tests: New file.
48523         * modules/unictype/property-radical-tests: New file.
48524         * modules/unictype/property-sentence-terminal-tests: New file.
48525         * modules/unictype/property-soft-dotted-tests: New file.
48526         * modules/unictype/property-space-tests: New file.
48527         * modules/unictype/property-terminal-punctuation-tests: New file.
48528         * modules/unictype/property-test-tests: New file.
48529         * modules/unictype/property-titlecase-tests: New file.
48530         * modules/unictype/property-unassigned-code-value-tests: New file.
48531         * modules/unictype/property-unified-ideograph-tests: New file.
48532         * modules/unictype/property-uppercase-tests: New file.
48533         * modules/unictype/property-variation-selector-tests: New file.
48534         * modules/unictype/property-white-space-tests: New file.
48535         * modules/unictype/property-xid-continue-tests: New file.
48536         * modules/unictype/property-xid-start-tests: New file.
48537         * modules/unictype/property-zero-width-tests: New file.
48538         * modules/unictype/scripts-tests: New file.
48539         * modules/unictype/syntax-c-ident-tests: New file.
48540         * modules/unictype/syntax-c-whitespace-tests: New file.
48541         * modules/unictype/syntax-java-ident-tests: New file.
48542         * modules/unictype/syntax-java-whitespace-tests: New file.
48543         * tests/unictype/test-bidi_byname.c: New file.
48544         * tests/unictype/test-bidi_name.c: New file.
48545         * tests/unictype/test-bidi_of.c: New file.
48546         * tests/unictype/test-bidi_test.c: New file.
48547         * tests/unictype/test-block_list.c: New file.
48548         * tests/unictype/test-block_of.c: New file.
48549         * tests/unictype/test-block_test.c: New file.
48550         * tests/unictype/test-categ_and.c: New file.
48551         * tests/unictype/test-categ_and_not.c: New file.
48552         * tests/unictype/test-categ_byname.c: New file.
48553         * tests/unictype/test-categ_name.c: New file.
48554         * tests/unictype/test-categ_none.c: New file.
48555         * tests/unictype/test-categ_of.c: New file.
48556         * tests/unictype/test-categ_or.c: New file.
48557         * tests/unictype/test-categ_test_withtable.c: New file.
48558         * tests/unictype/test-combining.c: New file.
48559         * tests/unictype/test-decdigit.c: New file.
48560         * tests/unictype/test-digit.c: New file.
48561         * tests/unictype/test-mirror.c: New file.
48562         * tests/unictype/test-numeric.c: New file.
48563         * tests/unictype/test-pr_byname.c: New file.
48564         * tests/unictype/test-pr_test.c: New file.
48565         * tests/unictype/test-predicate-part1.h: New file.
48566         * tests/unictype/test-predicate-part2.h: New file.
48567         * tests/unictype/test-scripts.c: New file.
48568         * tests/unictype/test-sy_c_ident.c: New file.
48569         * tests/unictype/test-sy_java_ident.c: New file.
48570
48571         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
48572         for Unicode 5.0.0.
48573         * tests/unictype/test-categ_Cc.c: Likewise.
48574         * tests/unictype/test-categ_Cf.c: Likewise.
48575         * tests/unictype/test-categ_Cn.c: Likewise.
48576         * tests/unictype/test-categ_Co.c: Likewise.
48577         * tests/unictype/test-categ_Cs.c: Likewise.
48578         * tests/unictype/test-categ_L.c: Likewise.
48579         * tests/unictype/test-categ_Ll.c: Likewise.
48580         * tests/unictype/test-categ_Lm.c: Likewise.
48581         * tests/unictype/test-categ_Lo.c: Likewise.
48582         * tests/unictype/test-categ_Lt.c: Likewise.
48583         * tests/unictype/test-categ_Lu.c: Likewise.
48584         * tests/unictype/test-categ_M.c: Likewise.
48585         * tests/unictype/test-categ_Mc.c: Likewise.
48586         * tests/unictype/test-categ_Me.c: Likewise.
48587         * tests/unictype/test-categ_Mn.c: Likewise.
48588         * tests/unictype/test-categ_N.c: Likewise.
48589         * tests/unictype/test-categ_Nd.c: Likewise.
48590         * tests/unictype/test-categ_Nl.c: Likewise.
48591         * tests/unictype/test-categ_No.c: Likewise.
48592         * tests/unictype/test-categ_P.c: Likewise.
48593         * tests/unictype/test-categ_Pc.c: Likewise.
48594         * tests/unictype/test-categ_Pd.c: Likewise.
48595         * tests/unictype/test-categ_Pe.c: Likewise.
48596         * tests/unictype/test-categ_Pf.c: Likewise.
48597         * tests/unictype/test-categ_Pi.c: Likewise.
48598         * tests/unictype/test-categ_Po.c: Likewise.
48599         * tests/unictype/test-categ_Ps.c: Likewise.
48600         * tests/unictype/test-categ_S.c: Likewise.
48601         * tests/unictype/test-categ_Sc.c: Likewise.
48602         * tests/unictype/test-categ_Sk.c: Likewise.
48603         * tests/unictype/test-categ_Sm.c: Likewise.
48604         * tests/unictype/test-categ_So.c: Likewise.
48605         * tests/unictype/test-categ_Z.c: Likewise.
48606         * tests/unictype/test-categ_Zl.c: Likewise.
48607         * tests/unictype/test-categ_Zp.c: Likewise.
48608         * tests/unictype/test-categ_Zs.c: Likewise.
48609         * tests/unictype/test-ctype_alnum.c: Likewise.
48610         * tests/unictype/test-ctype_alpha.c: Likewise.
48611         * tests/unictype/test-ctype_blank.c: Likewise.
48612         * tests/unictype/test-ctype_cntrl.c: Likewise.
48613         * tests/unictype/test-ctype_digit.c: Likewise.
48614         * tests/unictype/test-ctype_graph.c: Likewise.
48615         * tests/unictype/test-ctype_lower.c: Likewise.
48616         * tests/unictype/test-ctype_print.c: Likewise.
48617         * tests/unictype/test-ctype_punct.c: Likewise.
48618         * tests/unictype/test-ctype_space.c: Likewise.
48619         * tests/unictype/test-ctype_upper.c: Likewise.
48620         * tests/unictype/test-ctype_xdigit.c: Likewise.
48621         * tests/unictype/test-decdigit.h: Likewise.
48622         * tests/unictype/test-digit.h: Likewise.
48623         * tests/unictype/test-numeric.h: Likewise.
48624         * tests/unictype/test-pr_alphabetic.c: Likewise.
48625         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
48626         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
48627         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
48628         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
48629         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
48630         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
48631         * tests/unictype/test-pr_bidi_control.c: Likewise.
48632         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
48633         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
48634         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
48635         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
48636         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
48637         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
48638         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
48639         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
48640         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
48641         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
48642         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
48643         * tests/unictype/test-pr_combining.c: Likewise.
48644         * tests/unictype/test-pr_composite.c: Likewise.
48645         * tests/unictype/test-pr_currency_symbol.c: Likewise.
48646         * tests/unictype/test-pr_dash.c: Likewise.
48647         * tests/unictype/test-pr_decimal_digit.c: Likewise.
48648         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
48649         * tests/unictype/test-pr_deprecated.c: Likewise.
48650         * tests/unictype/test-pr_diacritic.c: Likewise.
48651         * tests/unictype/test-pr_extender.c: Likewise.
48652         * tests/unictype/test-pr_format_control.c: Likewise.
48653         * tests/unictype/test-pr_grapheme_base.c: Likewise.
48654         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
48655         * tests/unictype/test-pr_grapheme_link.c: Likewise.
48656         * tests/unictype/test-pr_hex_digit.c: Likewise.
48657         * tests/unictype/test-pr_hyphen.c: Likewise.
48658         * tests/unictype/test-pr_id_continue.c: Likewise.
48659         * tests/unictype/test-pr_id_start.c: Likewise.
48660         * tests/unictype/test-pr_ideographic.c: Likewise.
48661         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
48662         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
48663         * tests/unictype/test-pr_ignorable_control.c: Likewise.
48664         * tests/unictype/test-pr_iso_control.c: Likewise.
48665         * tests/unictype/test-pr_join_control.c: Likewise.
48666         * tests/unictype/test-pr_left_of_pair.c: Likewise.
48667         * tests/unictype/test-pr_line_separator.c: Likewise.
48668         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
48669         * tests/unictype/test-pr_lowercase.c: Likewise.
48670         * tests/unictype/test-pr_math.c: Likewise.
48671         * tests/unictype/test-pr_non_break.c: Likewise.
48672         * tests/unictype/test-pr_not_a_character.c: Likewise.
48673         * tests/unictype/test-pr_numeric.c: Likewise.
48674         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
48675         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
48676         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
48677         * tests/unictype/test-pr_other_id_continue.c: Likewise.
48678         * tests/unictype/test-pr_other_id_start.c: Likewise.
48679         * tests/unictype/test-pr_other_lowercase.c: Likewise.
48680         * tests/unictype/test-pr_other_math.c: Likewise.
48681         * tests/unictype/test-pr_other_uppercase.c: Likewise.
48682         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
48683         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
48684         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
48685         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
48686         * tests/unictype/test-pr_private_use.c: Likewise.
48687         * tests/unictype/test-pr_punctuation.c: Likewise.
48688         * tests/unictype/test-pr_quotation_mark.c: Likewise.
48689         * tests/unictype/test-pr_radical.c: Likewise.
48690         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
48691         * tests/unictype/test-pr_soft_dotted.c: Likewise.
48692         * tests/unictype/test-pr_space.c: Likewise.
48693         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
48694         * tests/unictype/test-pr_titlecase.c: Likewise.
48695         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
48696         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
48697         * tests/unictype/test-pr_uppercase.c: Likewise.
48698         * tests/unictype/test-pr_variation_selector.c: Likewise.
48699         * tests/unictype/test-pr_white_space.c: Likewise.
48700         * tests/unictype/test-pr_xid_continue.c: Likewise.
48701         * tests/unictype/test-pr_xid_start.c: Likewise.
48702         * tests/unictype/test-pr_zero_width.c: Likewise.
48703         * tests/unictype/test-sy_c_whitespace.c: Likewise.
48704         * tests/unictype/test-sy_java_whitespace.c: Likewise.
48705
48706 2007-11-12  Bruno Haible  <bruno@clisp.org>
48707
48708         Unicode character classification functions.
48709         * lib/unictype.h: New file.
48710         * modules/unictype/base: New file.
48711         * modules/unictype/category-L: New file.
48712         * modules/unictype/category-Lu: New file.
48713         * modules/unictype/category-Ll: New file.
48714         * modules/unictype/category-Lt: New file.
48715         * modules/unictype/category-Lm: New file.
48716         * modules/unictype/category-Lo: New file.
48717         * modules/unictype/category-M: New file.
48718         * modules/unictype/category-Mn: New file.
48719         * modules/unictype/category-Mc: New file.
48720         * modules/unictype/category-Me: New file.
48721         * modules/unictype/category-N: New file.
48722         * modules/unictype/category-Nd: New file.
48723         * modules/unictype/category-Nl: New file.
48724         * modules/unictype/category-No: New file.
48725         * modules/unictype/category-P: New file.
48726         * modules/unictype/category-Pc: New file.
48727         * modules/unictype/category-Pd: New file.
48728         * modules/unictype/category-Ps: New file.
48729         * modules/unictype/category-Pe: New file.
48730         * modules/unictype/category-Pi: New file.
48731         * modules/unictype/category-Pf: New file.
48732         * modules/unictype/category-Po: New file.
48733         * modules/unictype/category-S: New file.
48734         * modules/unictype/category-Sm: New file.
48735         * modules/unictype/category-Sc: New file.
48736         * modules/unictype/category-Sk: New file.
48737         * modules/unictype/category-So: New file.
48738         * modules/unictype/category-Z: New file.
48739         * modules/unictype/category-Zs: New file.
48740         * modules/unictype/category-Zl: New file.
48741         * modules/unictype/category-Zp: New file.
48742         * modules/unictype/category-C: New file.
48743         * modules/unictype/category-Cc: New file.
48744         * modules/unictype/category-Cf: New file.
48745         * modules/unictype/category-Cs: New file.
48746         * modules/unictype/category-Co: New file.
48747         * modules/unictype/category-Cn: New file.
48748         * modules/unictype/category-or: New file.
48749         * modules/unictype/category-of: New file.
48750         * modules/unictype/category-test: New file.
48751         * modules/unictype/category-test-withtable: New file.
48752         * modules/unictype/category-byname: New file.
48753         * modules/unictype/category-none: New file.
48754         * modules/unictype/category-and: New file.
48755         * modules/unictype/category-and-not: New file.
48756         * modules/unictype/category-name: New file.
48757         * modules/unictype/combining-class: New file.
48758         * modules/unictype/category-all: New file.
48759         * modules/unictype/bidicategory-all: New file.
48760         * modules/unictype/bidicategory-byname: New file.
48761         * modules/unictype/bidicategory-name: New file.
48762         * modules/unictype/bidicategory-of: New file.
48763         * modules/unictype/bidicategory-test: New file.
48764         * modules/unictype/decimal-digit: New file.
48765         * modules/unictype/digit: New file.
48766         * modules/unictype/numeric: New file.
48767         * modules/unictype/mirror: New file.
48768         * modules/unictype/property-white-space: New file.
48769         * modules/unictype/property-alphabetic: New file.
48770         * modules/unictype/property-other-alphabetic: New file.
48771         * modules/unictype/property-not-a-character: New file.
48772         * modules/unictype/property-default-ignorable-code-point: New file.
48773         * modules/unictype/property-other-default-ignorable-code-point: New
48774         file.
48775         * modules/unictype/property-deprecated: New file.
48776         * modules/unictype/property-logical-order-exception: New file.
48777         * modules/unictype/property-variation-selector: New file.
48778         * modules/unictype/property-private-use: New file.
48779         * modules/unictype/property-unassigned-code-value: New file.
48780         * modules/unictype/property-uppercase: New file.
48781         * modules/unictype/property-other-uppercase: New file.
48782         * modules/unictype/property-lowercase: New file.
48783         * modules/unictype/property-other-lowercase: New file.
48784         * modules/unictype/property-titlecase: New file.
48785         * modules/unictype/property-soft-dotted: New file.
48786         * modules/unictype/property-id-start: New file.
48787         * modules/unictype/property-other-id-start: New file.
48788         * modules/unictype/property-id-continue: New file.
48789         * modules/unictype/property-other-id-continue: New file.
48790         * modules/unictype/property-xid-start: New file.
48791         * modules/unictype/property-xid-continue: New file.
48792         * modules/unictype/property-pattern-white-space: New file.
48793         * modules/unictype/property-pattern-syntax: New file.
48794         * modules/unictype/property-join-control: New file.
48795         * modules/unictype/property-grapheme-base: New file.
48796         * modules/unictype/property-grapheme-extend: New file.
48797         * modules/unictype/property-other-grapheme-extend: New file.
48798         * modules/unictype/property-grapheme-link: New file.
48799         * modules/unictype/property-bidi-control: New file.
48800         * modules/unictype/property-bidi-left-to-right: New file.
48801         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
48802         * modules/unictype/property-bidi-arabic-right-to-left: New file.
48803         * modules/unictype/property-bidi-european-digit: New file.
48804         * modules/unictype/property-bidi-eur-num-separator: New file.
48805         * modules/unictype/property-bidi-eur-num-terminator: New file.
48806         * modules/unictype/property-bidi-arabic-digit: New file.
48807         * modules/unictype/property-bidi-common-separator: New file.
48808         * modules/unictype/property-bidi-block-separator: New file.
48809         * modules/unictype/property-bidi-segment-separator: New file.
48810         * modules/unictype/property-bidi-whitespace: New file.
48811         * modules/unictype/property-bidi-non-spacing-mark: New file.
48812         * modules/unictype/property-bidi-boundary-neutral: New file.
48813         * modules/unictype/property-bidi-pdf: New file.
48814         * modules/unictype/property-bidi-embedding-or-override: New file.
48815         * modules/unictype/property-bidi-other-neutral: New file.
48816         * modules/unictype/property-hex-digit: New file.
48817         * modules/unictype/property-ascii-hex-digit: New file.
48818         * modules/unictype/property-ideographic: New file.
48819         * modules/unictype/property-unified-ideograph: New file.
48820         * modules/unictype/property-radical: New file.
48821         * modules/unictype/property-ids-binary-operator: New file.
48822         * modules/unictype/property-ids-trinary-operator: New file.
48823         * modules/unictype/property-zero-width: New file.
48824         * modules/unictype/property-space: New file.
48825         * modules/unictype/property-non-break: New file.
48826         * modules/unictype/property-iso-control: New file.
48827         * modules/unictype/property-format-control: New file.
48828         * modules/unictype/property-dash: New file.
48829         * modules/unictype/property-hyphen: New file.
48830         * modules/unictype/property-punctuation: New file.
48831         * modules/unictype/property-line-separator: New file.
48832         * modules/unictype/property-paragraph-separator: New file.
48833         * modules/unictype/property-quotation-mark: New file.
48834         * modules/unictype/property-sentence-terminal: New file.
48835         * modules/unictype/property-terminal-punctuation: New file.
48836         * modules/unictype/property-currency-symbol: New file.
48837         * modules/unictype/property-math: New file.
48838         * modules/unictype/property-other-math: New file.
48839         * modules/unictype/property-paired-punctuation: New file.
48840         * modules/unictype/property-left-of-pair: New file.
48841         * modules/unictype/property-combining: New file.
48842         * modules/unictype/property-composite: New file.
48843         * modules/unictype/property-decimal-digit: New file.
48844         * modules/unictype/property-numeric: New file.
48845         * modules/unictype/property-diacritic: New file.
48846         * modules/unictype/property-extender: New file.
48847         * modules/unictype/property-ignorable-control: New file.
48848         * modules/unictype/property-test: New file.
48849         * modules/unictype/property-byname: New file.
48850         * modules/unictype/property-all: New file.
48851         * modules/unictype/scripts: New file.
48852         * modules/unictype/scripts-all: New file.
48853         * modules/unictype/block-of: New file.
48854         * modules/unictype/block-test: New file.
48855         * modules/unictype/block-list: New file.
48856         * modules/unictype/block-all: New file.
48857         * modules/unictype/syntax-c-whitespace: New file.
48858         * modules/unictype/syntax-java-whitespace: New file.
48859         * modules/unictype/syntax-c-ident: New file.
48860         * modules/unictype/syntax-java-ident: New file.
48861         * modules/unictype/ctype-alnum: New file.
48862         * modules/unictype/ctype-alpha: New file.
48863         * modules/unictype/ctype-cntrl: New file.
48864         * modules/unictype/ctype-digit: New file.
48865         * modules/unictype/ctype-graph: New file.
48866         * modules/unictype/ctype-lower: New file.
48867         * modules/unictype/ctype-print: New file.
48868         * modules/unictype/ctype-punct: New file.
48869         * modules/unictype/ctype-space: New file.
48870         * modules/unictype/ctype-upper: New file.
48871         * modules/unictype/ctype-xdigit: New file.
48872         * modules/unictype/ctype-blank: New file.
48873         * lib/unictype/bidi_byname.c: New file.
48874         * lib/unictype/bidi_name.c: New file.
48875         * lib/unictype/bidi_of.c: New file.
48876         * lib/unictype/bidi_test.c: New file.
48877         * lib/unictype/bitmap.h: New file.
48878         * lib/unictype/block_test.c: New file.
48879         * lib/unictype/blocks.c: New file.
48880         * lib/unictype/categ_C.c: New file.
48881         * lib/unictype/categ_Cc.c: New file.
48882         * lib/unictype/categ_Cf.c: New file.
48883         * lib/unictype/categ_Cn.c: New file.
48884         * lib/unictype/categ_Co.c: New file.
48885         * lib/unictype/categ_Cs.c: New file.
48886         * lib/unictype/categ_L.c: New file.
48887         * lib/unictype/categ_Ll.c: New file.
48888         * lib/unictype/categ_Lm.c: New file.
48889         * lib/unictype/categ_Lo.c: New file.
48890         * lib/unictype/categ_Lt.c: New file.
48891         * lib/unictype/categ_Lu.c: New file.
48892         * lib/unictype/categ_M.c: New file.
48893         * lib/unictype/categ_Mc.c: New file.
48894         * lib/unictype/categ_Me.c: New file.
48895         * lib/unictype/categ_Mn.c: New file.
48896         * lib/unictype/categ_N.c: New file.
48897         * lib/unictype/categ_Nd.c: New file.
48898         * lib/unictype/categ_Nl.c: New file.
48899         * lib/unictype/categ_No.c: New file.
48900         * lib/unictype/categ_P.c: New file.
48901         * lib/unictype/categ_Pc.c: New file.
48902         * lib/unictype/categ_Pd.c: New file.
48903         * lib/unictype/categ_Pe.c: New file.
48904         * lib/unictype/categ_Pf.c: New file.
48905         * lib/unictype/categ_Pi.c: New file.
48906         * lib/unictype/categ_Po.c: New file.
48907         * lib/unictype/categ_Ps.c: New file.
48908         * lib/unictype/categ_S.c: New file.
48909         * lib/unictype/categ_Sc.c: New file.
48910         * lib/unictype/categ_Sk.c: New file.
48911         * lib/unictype/categ_Sm.c: New file.
48912         * lib/unictype/categ_So.c: New file.
48913         * lib/unictype/categ_Z.c: New file.
48914         * lib/unictype/categ_Zl.c: New file.
48915         * lib/unictype/categ_Zp.c: New file.
48916         * lib/unictype/categ_Zs.c: New file.
48917         * lib/unictype/categ_and.c: New file.
48918         * lib/unictype/categ_and_not.c: New file.
48919         * lib/unictype/categ_byname.c: New file.
48920         * lib/unictype/categ_name.c: New file.
48921         * lib/unictype/categ_none.c: New file.
48922         * lib/unictype/categ_of.c: New file.
48923         * lib/unictype/categ_or.c: New file.
48924         * lib/unictype/categ_test.c: New file.
48925         * lib/unictype/combining.c: New file.
48926         * lib/unictype/ctype_alnum.c: New file.
48927         * lib/unictype/ctype_alpha.c: New file.
48928         * lib/unictype/ctype_blank.c: New file.
48929         * lib/unictype/ctype_cntrl.c: New file.
48930         * lib/unictype/ctype_digit.c: New file.
48931         * lib/unictype/ctype_graph.c: New file.
48932         * lib/unictype/ctype_lower.c: New file.
48933         * lib/unictype/ctype_print.c: New file.
48934         * lib/unictype/ctype_punct.c: New file.
48935         * lib/unictype/ctype_space.c: New file.
48936         * lib/unictype/ctype_upper.c: New file.
48937         * lib/unictype/ctype_xdigit.c: New file.
48938         * lib/unictype/decdigit.c: New file.
48939         * lib/unictype/digit.c: New file.
48940         * lib/unictype/identsyntaxmap.h: New file.
48941         * lib/unictype/mirror.c: New file.
48942         * lib/unictype/numeric.c: New file.
48943         * lib/unictype/pr_alphabetic.c: New file.
48944         * lib/unictype/pr_ascii_hex_digit.c: New file.
48945         * lib/unictype/pr_bidi_arabic_digit.c: New file.
48946         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
48947         * lib/unictype/pr_bidi_block_separator.c: New file.
48948         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
48949         * lib/unictype/pr_bidi_common_separator.c: New file.
48950         * lib/unictype/pr_bidi_control.c: New file.
48951         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
48952         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
48953         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
48954         * lib/unictype/pr_bidi_european_digit.c: New file.
48955         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
48956         * lib/unictype/pr_bidi_left_to_right.c: New file.
48957         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
48958         * lib/unictype/pr_bidi_other_neutral.c: New file.
48959         * lib/unictype/pr_bidi_pdf.c: New file.
48960         * lib/unictype/pr_bidi_segment_separator.c: New file.
48961         * lib/unictype/pr_bidi_whitespace.c: New file.
48962         * lib/unictype/pr_byname.c: New file.
48963         * lib/unictype/pr_byname.gperf: New file.
48964         * lib/unictype/pr_combining.c: New file.
48965         * lib/unictype/pr_composite.c: New file.
48966         * lib/unictype/pr_currency_symbol.c: New file.
48967         * lib/unictype/pr_dash.c: New file.
48968         * lib/unictype/pr_decimal_digit.c: New file.
48969         * lib/unictype/pr_default_ignorable_code_point.c: New file.
48970         * lib/unictype/pr_deprecated.c: New file.
48971         * lib/unictype/pr_diacritic.c: New file.
48972         * lib/unictype/pr_extender.c: New file.
48973         * lib/unictype/pr_format_control.c: New file.
48974         * lib/unictype/pr_grapheme_base.c: New file.
48975         * lib/unictype/pr_grapheme_extend.c: New file.
48976         * lib/unictype/pr_grapheme_link.c: New file.
48977         * lib/unictype/pr_hex_digit.c: New file.
48978         * lib/unictype/pr_hyphen.c: New file.
48979         * lib/unictype/pr_id_continue.c: New file.
48980         * lib/unictype/pr_id_start.c: New file.
48981         * lib/unictype/pr_ideographic.c: New file.
48982         * lib/unictype/pr_ids_binary_operator.c: New file.
48983         * lib/unictype/pr_ids_trinary_operator.c: New file.
48984         * lib/unictype/pr_ignorable_control.c: New file.
48985         * lib/unictype/pr_iso_control.c: New file.
48986         * lib/unictype/pr_join_control.c: New file.
48987         * lib/unictype/pr_left_of_pair.c: New file.
48988         * lib/unictype/pr_line_separator.c: New file.
48989         * lib/unictype/pr_logical_order_exception.c: New file.
48990         * lib/unictype/pr_lowercase.c: New file.
48991         * lib/unictype/pr_math.c: New file.
48992         * lib/unictype/pr_non_break.c: New file.
48993         * lib/unictype/pr_not_a_character.c: New file.
48994         * lib/unictype/pr_numeric.c: New file.
48995         * lib/unictype/pr_other_alphabetic.c: New file.
48996         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
48997         * lib/unictype/pr_other_grapheme_extend.c: New file.
48998         * lib/unictype/pr_other_id_continue.c: New file.
48999         * lib/unictype/pr_other_id_start.c: New file.
49000         * lib/unictype/pr_other_lowercase.c: New file.
49001         * lib/unictype/pr_other_math.c: New file.
49002         * lib/unictype/pr_other_uppercase.c: New file.
49003         * lib/unictype/pr_paired_punctuation.c: New file.
49004         * lib/unictype/pr_paragraph_separator.c: New file.
49005         * lib/unictype/pr_pattern_syntax.c: New file.
49006         * lib/unictype/pr_pattern_white_space.c: New file.
49007         * lib/unictype/pr_private_use.c: New file.
49008         * lib/unictype/pr_punctuation.c: New file.
49009         * lib/unictype/pr_quotation_mark.c: New file.
49010         * lib/unictype/pr_radical.c: New file.
49011         * lib/unictype/pr_sentence_terminal.c: New file.
49012         * lib/unictype/pr_soft_dotted.c: New file.
49013         * lib/unictype/pr_space.c: New file.
49014         * lib/unictype/pr_terminal_punctuation.c: New file.
49015         * lib/unictype/pr_test.c: New file.
49016         * lib/unictype/pr_titlecase.c: New file.
49017         * lib/unictype/pr_unassigned_code_value.c: New file.
49018         * lib/unictype/pr_unified_ideograph.c: New file.
49019         * lib/unictype/pr_uppercase.c: New file.
49020         * lib/unictype/pr_variation_selector.c: New file.
49021         * lib/unictype/pr_white_space.c: New file.
49022         * lib/unictype/pr_xid_continue.c: New file.
49023         * lib/unictype/pr_xid_start.c: New file.
49024         * lib/unictype/pr_zero_width.c: New file.
49025         * lib/unictype/scripts.c: New file.
49026         * lib/unictype/sy_c_ident.c: New file.
49027         * lib/unictype/sy_c_whitespace.c: New file.
49028         * lib/unictype/sy_java_ident.c: New file.
49029         * lib/unictype/sy_java_whitespace.c: New file.
49030
49031         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
49032         Unicode 5.0.0.
49033         * lib/unictype/blocks.h: Likewise.
49034         * lib/unictype/categ_C.h: Likewise.
49035         * lib/unictype/categ_Cc.h: Likewise.
49036         * lib/unictype/categ_Cf.h: Likewise.
49037         * lib/unictype/categ_Cn.h: Likewise.
49038         * lib/unictype/categ_Co.h: Likewise.
49039         * lib/unictype/categ_Cs.h: Likewise.
49040         * lib/unictype/categ_L.h: Likewise.
49041         * lib/unictype/categ_Ll.h: Likewise.
49042         * lib/unictype/categ_Lm.h: Likewise.
49043         * lib/unictype/categ_Lo.h: Likewise.
49044         * lib/unictype/categ_Lt.h: Likewise.
49045         * lib/unictype/categ_Lu.h: Likewise.
49046         * lib/unictype/categ_M.h: Likewise.
49047         * lib/unictype/categ_Mc.h: Likewise.
49048         * lib/unictype/categ_Me.h: Likewise.
49049         * lib/unictype/categ_Mn.h: Likewise.
49050         * lib/unictype/categ_N.h: Likewise.
49051         * lib/unictype/categ_Nd.h: Likewise.
49052         * lib/unictype/categ_Nl.h: Likewise.
49053         * lib/unictype/categ_No.h: Likewise.
49054         * lib/unictype/categ_P.h: Likewise.
49055         * lib/unictype/categ_Pc.h: Likewise.
49056         * lib/unictype/categ_Pd.h: Likewise.
49057         * lib/unictype/categ_Pe.h: Likewise.
49058         * lib/unictype/categ_Pf.h: Likewise.
49059         * lib/unictype/categ_Pi.h: Likewise.
49060         * lib/unictype/categ_Po.h: Likewise.
49061         * lib/unictype/categ_Ps.h: Likewise.
49062         * lib/unictype/categ_S.h: Likewise.
49063         * lib/unictype/categ_Sc.h: Likewise.
49064         * lib/unictype/categ_Sk.h: Likewise.
49065         * lib/unictype/categ_Sm.h: Likewise.
49066         * lib/unictype/categ_So.h: Likewise.
49067         * lib/unictype/categ_Z.h: Likewise.
49068         * lib/unictype/categ_Zl.h: Likewise.
49069         * lib/unictype/categ_Zp.h: Likewise.
49070         * lib/unictype/categ_Zs.h: Likewise.
49071         * lib/unictype/categ_of.h: Likewise.
49072         * lib/unictype/combining.h: Likewise.
49073         * lib/unictype/ctype_alnum.h: Likewise.
49074         * lib/unictype/ctype_alpha.h: Likewise.
49075         * lib/unictype/ctype_blank.h: Likewise.
49076         * lib/unictype/ctype_cntrl.h: Likewise.
49077         * lib/unictype/ctype_digit.h: Likewise.
49078         * lib/unictype/ctype_graph.h: Likewise.
49079         * lib/unictype/ctype_lower.h: Likewise.
49080         * lib/unictype/ctype_print.h: Likewise.
49081         * lib/unictype/ctype_punct.h: Likewise.
49082         * lib/unictype/ctype_space.h: Likewise.
49083         * lib/unictype/ctype_upper.h: Likewise.
49084         * lib/unictype/ctype_xdigit.h: Likewise.
49085         * lib/unictype/decdigit.h: Likewise.
49086         * lib/unictype/digit.h: Likewise.
49087         * lib/unictype/mirror.h: Likewise.
49088         * lib/unictype/numeric.h: Likewise.
49089         * lib/unictype/pr_alphabetic.h: Likewise.
49090         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
49091         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
49092         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
49093         * lib/unictype/pr_bidi_block_separator.h: Likewise.
49094         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
49095         * lib/unictype/pr_bidi_common_separator.h: Likewise.
49096         * lib/unictype/pr_bidi_control.h: Likewise.
49097         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
49098         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
49099         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
49100         * lib/unictype/pr_bidi_european_digit.h: Likewise.
49101         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
49102         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
49103         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
49104         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
49105         * lib/unictype/pr_bidi_pdf.h: Likewise.
49106         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
49107         * lib/unictype/pr_bidi_whitespace.h: Likewise.
49108         * lib/unictype/pr_combining.h: Likewise.
49109         * lib/unictype/pr_composite.h: Likewise.
49110         * lib/unictype/pr_currency_symbol.h: Likewise.
49111         * lib/unictype/pr_dash.h: Likewise.
49112         * lib/unictype/pr_decimal_digit.h: Likewise.
49113         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
49114         * lib/unictype/pr_deprecated.h: Likewise.
49115         * lib/unictype/pr_diacritic.h: Likewise.
49116         * lib/unictype/pr_extender.h: Likewise.
49117         * lib/unictype/pr_format_control.h: Likewise.
49118         * lib/unictype/pr_grapheme_base.h: Likewise.
49119         * lib/unictype/pr_grapheme_extend.h: Likewise.
49120         * lib/unictype/pr_grapheme_link.h: Likewise.
49121         * lib/unictype/pr_hex_digit.h: Likewise.
49122         * lib/unictype/pr_hyphen.h: Likewise.
49123         * lib/unictype/pr_id_continue.h: Likewise.
49124         * lib/unictype/pr_id_start.h: Likewise.
49125         * lib/unictype/pr_ideographic.h: Likewise.
49126         * lib/unictype/pr_ids_binary_operator.h: Likewise.
49127         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
49128         * lib/unictype/pr_ignorable_control.h: Likewise.
49129         * lib/unictype/pr_iso_control.h: Likewise.
49130         * lib/unictype/pr_join_control.h: Likewise.
49131         * lib/unictype/pr_left_of_pair.h: Likewise.
49132         * lib/unictype/pr_line_separator.h: Likewise.
49133         * lib/unictype/pr_logical_order_exception.h: Likewise.
49134         * lib/unictype/pr_lowercase.h: Likewise.
49135         * lib/unictype/pr_math.h: Likewise.
49136         * lib/unictype/pr_non_break.h: Likewise.
49137         * lib/unictype/pr_not_a_character.h: Likewise.
49138         * lib/unictype/pr_numeric.h: Likewise.
49139         * lib/unictype/pr_other_alphabetic.h: Likewise.
49140         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
49141         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
49142         * lib/unictype/pr_other_id_continue.h: Likewise.
49143         * lib/unictype/pr_other_id_start.h: Likewise.
49144         * lib/unictype/pr_other_lowercase.h: Likewise.
49145         * lib/unictype/pr_other_math.h: Likewise.
49146         * lib/unictype/pr_other_uppercase.h: Likewise.
49147         * lib/unictype/pr_paired_punctuation.h: Likewise.
49148         * lib/unictype/pr_paragraph_separator.h: Likewise.
49149         * lib/unictype/pr_pattern_syntax.h: Likewise.
49150         * lib/unictype/pr_pattern_white_space.h: Likewise.
49151         * lib/unictype/pr_private_use.h: Likewise.
49152         * lib/unictype/pr_punctuation.h: Likewise.
49153         * lib/unictype/pr_quotation_mark.h: Likewise.
49154         * lib/unictype/pr_radical.h: Likewise.
49155         * lib/unictype/pr_sentence_terminal.h: Likewise.
49156         * lib/unictype/pr_soft_dotted.h: Likewise.
49157         * lib/unictype/pr_space.h: Likewise.
49158         * lib/unictype/pr_terminal_punctuation.h: Likewise.
49159         * lib/unictype/pr_titlecase.h: Likewise.
49160         * lib/unictype/pr_unassigned_code_value.h: Likewise.
49161         * lib/unictype/pr_unified_ideograph.h: Likewise.
49162         * lib/unictype/pr_uppercase.h: Likewise.
49163         * lib/unictype/pr_variation_selector.h: Likewise.
49164         * lib/unictype/pr_white_space.h: Likewise.
49165         * lib/unictype/pr_xid_continue.h: Likewise.
49166         * lib/unictype/pr_xid_start.h: Likewise.
49167         * lib/unictype/pr_zero_width.h: Likewise.
49168         * lib/unictype/scripts.h: Likewise.
49169         * lib/unictype/scripts_byname.gperf: Likewise.
49170         * lib/unictype/sy_c_ident.h: Likewise.
49171         * lib/unictype/sy_c_whitespace.h: Likewise.
49172         * lib/unictype/sy_java_ident.h: Likewise.
49173         * lib/unictype/sy_java_whitespace.h: Likewise.
49174
49175         * lib/unictype/Makefile: New file.
49176         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
49177         glibc.
49178         * lib/unictype/3level.h: New file, copied from glibc.
49179         * lib/unictype/3levelbit.h: New file.
49180
49181 2007-11-11  Bruno Haible  <bruno@clisp.org>
49182
49183         * modules/gperf: New file.
49184         * modules/iconv_open (Depends-on): Add it.
49185         (Makefile.am): Remove the GPERF definition.
49186
49187 2007-11-11  Bruno Haible  <bruno@clisp.org>
49188
49189         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
49190         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
49191
49192 2007-11-11  Bruno Haible  <bruno@clisp.org>
49193
49194         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
49195         (usage): Remove function.
49196
49197 2007-11-11  Bruno Haible  <bruno@clisp.org>
49198
49199         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
49200         gl_FUNC_CEILF_LIBS.
49201         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
49202         gl_FUNC_CEIL_LIBS.
49203         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
49204         gl_FUNC_CEILL_LIBS.
49205         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
49206         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
49207         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
49208
49209 2007-11-11  Bruno Haible  <bruno@clisp.org>
49210
49211         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
49212         roundf were declared but do not exist on functions.
49213         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
49214         roundl were declared but do not exist on functions.
49215         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
49216         HAVE_FLOORL_AND_CEILL, respectively.
49217         Needed for Sun C on Solaris 10.
49218
49219 2007-11-11  Bruno Haible  <bruno@clisp.org>
49220
49221         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
49222         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
49223         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
49224         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
49225         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
49226         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
49227         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
49228         HAVE_DECL_ROUNDF.
49229         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
49230         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
49231         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
49232         of HAVE_DECL_ROUND*.
49233         * modules/math (Makefile.am): Update.
49234
49235 2007-11-10  Bruno Haible  <bruno@clisp.org>
49236
49237         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
49238         ptrdiff_t as m4/intl.m4.
49239
49240 2007-11-10  Jim Meyering  <meyering@redhat.com>
49241
49242         Avoid link failure for the argmatch test.
49243         * tests/test-argmatch.c (usage): Define function to avoid a link
49244         failure: argmatch_die requires a usage function.
49245
49246 2007-11-09  Bruno Haible  <bruno@clisp.org>
49247
49248         * doc/functions/snprintf.texi: Mention BeOS deficiency.
49249         * doc/functions/vsnprintf.texi: Likewise.
49250         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
49251         with a size argument < 2.
49252
49253 2007-11-09  Bruno Haible  <bruno@clisp.org>
49254
49255         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
49256         buffer. Fixes an inefficiency introduced on 2007-11-03.
49257
49258 2007-11-09  Bruno Haible  <bruno@clisp.org>
49259
49260         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
49261         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
49262
49263 2007-11-08  Jim Meyering  <meyering@redhat.com>
49264
49265         Change cache variable name prefix "jm_" to "gl_" everywhere.
49266         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
49267         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
49268         * m4/uptime.m4: s/gl_/jm_/
49269
49270 2007-11-07  Bruno Haible  <bruno@clisp.org>
49271
49272         Update to GNU gettext 0.17.
49273         * m4/intl.m4: Update to GNU gettext 0.17.
49274         * m4/po.m4: Likewise.
49275         * modules/gettext (Files): Remove m4/ulonglong.m4.
49276         (configure.ac): Require gettext infrastructure from version 0.17.
49277
49278 2007-11-06  Bruno Haible  <bruno@clisp.org>
49279
49280         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
49281         symbolic values are not defined in a public header.
49282         * lib/freadable.c (freadable) [QNX]: Likewise.
49283         * lib/freadahead.c (freadahead) [QNX]: Likewise.
49284         * lib/freading.c (freading) [QNX]: Likewise.
49285         * lib/fseterr.c (fseterr) [QNX]: Likewise.
49286         * lib/fwritable.c (fwritable) [QNX]: Likewise.
49287         * lib/fwriting.c (fwriting) [QNX]: Likewise.
49288         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
49289         Reported by Alain Magloire.
49290
49291         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
49292
49293 2007-11-05  Bruno Haible  <bruno@clisp.org>
49294
49295         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
49296         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
49297         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
49298         Reported by Eric Blake.
49299
49300 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49301             Bruno Haible  <bruno@clisp.org>
49302
49303         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
49304         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
49305         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
49306         (malloc): Undefine also before including <stdlib.h>.
49307         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
49308         Needed on OSF/1 4.0.
49309
49310 2007-11-05  Jim Meyering  <meyering@redhat.com>
49311
49312         git-version-gen: sync from coreutils.
49313         * build-aux/git-version-gen: Add comments.
49314         Change the first '-' to '.' in the snapshot version string,
49315         e.g., 6.9-377-08144 -> 6.9.377-08144
49316         Remove first parameter.
49317         Don't declare a version "-dirty" merely because a time
49318         stamp has changed.
49319
49320 2007-11-04  Bruno Haible  <bruno@clisp.org>
49321
49322         * lib/lock.h: Protect all macro definitions containing an 'if'
49323         statement through a "do { ... } while (0)".
49324         * lib/tls.h: Likewise.
49325
49326 2007-11-04  Bruno Haible  <bruno@clisp.org>
49327
49328         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
49329
49330 2007-11-04  Bruno Haible  <bruno@clisp.org>
49331
49332         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
49333         * modules/fprintf-posix (Depends-on): Add nocrash.
49334         * modules/snprintf-posix (Depends-on): Likewise.
49335         * modules/sprintf-posix (Depends-on): Likewise.
49336         * modules/vasnprintf-posix (Depends-on): Likewise.
49337         * modules/vasprintf-posix (Depends-on): Likewise.
49338         * modules/vfprintf-posix (Depends-on): Likewise.
49339         * modules/vsnprintf-posix (Depends-on): Likewise.
49340         * modules/vsprintf-posix (Depends-on): Likewise.
49341         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49342         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49343         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49344         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49345         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49346         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49347         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49348
49349 2007-11-04  Bruno Haible  <bruno@clisp.org>
49350
49351         * modules/nocrash: New file.
49352         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
49353         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
49354
49355 2007-11-04  Bruno Haible  <bruno@clisp.org>
49356
49357         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
49358         precision handling.
49359         * tests/test-vasprintf-posix.c (test_function): Likewise.
49360         * tests/test-snprintf-posix.h (test_function): Likewise.
49361         * tests/test-sprintf-posix.h (test_function): Likewise.
49362
49363         Fix *printf behaviour for large precisions on mingw and BeOS.
49364         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
49365         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
49366         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
49367         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
49368         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49369         gl_PRINTF_PRECISION and test its result. Invoke
49370         gl_PREREQ_VASNPRINTF_PRECISION.
49371         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49372         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49373         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49374         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49375         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49376         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49377         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49378         * doc/functions/fprintf.texi: Update.
49379         * doc/functions/printf.texi: Update.
49380         * doc/functions/snprintf.texi: Update.
49381         * doc/functions/sprintf.texi: Update.
49382         * doc/functions/vfprintf.texi: Update.
49383         * doc/functions/vprintf.texi: Update.
49384         * doc/functions/vsnprintf.texi: Update.
49385         * doc/functions/vsprintf.texi: Update.
49386
49387 2007-11-04  Bruno Haible  <bruno@clisp.org>
49388
49389         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
49390
49391 2007-11-04  Bruno Haible  <bruno@clisp.org>
49392
49393         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
49394         Reported by Sylvain Beucler <beuc@gnu.org>.
49395
49396 2007-11-03  Bruno Haible  <bruno@clisp.org>
49397
49398         * tests/test-fprintf-posix2.sh: New file.
49399         * tests/test-fprintf-posix2.c: New file.
49400         * modules/fprintf-posix-tests (Files): Add them.
49401         (TESTS): Add test-fprintf-posix2.sh.
49402         (configure.ac): Check for getrlimit and setrlimit.
49403         (check_PROGRAMS): Add test-fprintf-posix2.
49404
49405         * tests/test-printf-posix2.sh: New file.
49406         * tests/test-printf-posix2.c: New file.
49407         * modules/printf-posix-tests (Files): Add them.
49408         (TESTS): Add test-printf-posix2.sh.
49409         (configure.ac): Check for getrlimit and setrlimit.
49410         (check_PROGRAMS): Add test-printf-posix2.
49411
49412         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
49413         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
49414         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
49415         (decode_double): New function, copied from decode_long_double.
49416         (scale10_round_decimal_decoded): New function, extracted from
49417         scale10_round_decimal_long_double.
49418         (scale10_round_decimal_long_double): Use it.
49419         (scale10_round_decimal_double): New function.
49420         (floorlog10): New function.
49421         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
49422         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
49423         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
49424         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49425         gl_PRINTF_ENOMEM and test its result. Invoke
49426         gl_PREREQ_VASNPRINTF_ENOMEM.
49427         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49428         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49429         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49430         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49431         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49432         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49433         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49434         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
49435         * modules/snprintf-posix (Depends-on): Likewise.
49436         * modules/sprintf-posix (Depends-on): Likewise.
49437         * modules/vasnprintf-posix (Depends-on): Likewise.
49438         * modules/vasprintf-posix (Depends-on): Likewise.
49439         * modules/vfprintf-posix (Depends-on): Likewise.
49440         * modules/vsnprintf-posix (Depends-on): Likewise.
49441         * modules/vsprintf-posix (Depends-on): Likewise.
49442         * doc/functions/fprintf.texi: Update.
49443         * doc/functions/printf.texi: Update.
49444         * doc/functions/snprintf.texi: Update.
49445         * doc/functions/sprintf.texi: Update.
49446         * doc/functions/vfprintf.texi: Update.
49447         * doc/functions/vprintf.texi: Update.
49448         * doc/functions/vsnprintf.texi: Update.
49449         * doc/functions/vsprintf.texi: Update.
49450
49451 2007-11-03  Bruno Haible  <bruno@clisp.org>
49452
49453         * modules/frexp-nolibm-tests: New file.
49454
49455         * modules/frexp-nolibm: New file.
49456         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
49457
49458 2007-11-03  Bruno Haible  <bruno@clisp.org>
49459
49460         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
49461         value is C99 compliant.
49462         Needed for OSF/1 5.1.
49463
49464 2007-11-03  Bruno Haible  <bruno@clisp.org>
49465
49466         Fix out-of-memory handling of vasnprintf.
49467         * lib/printf-parse.c: Include <errno.h>.
49468         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
49469         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
49470         is already set.
49471
49472 2007-11-02  Eric Blake  <ebb9@byu.net>
49473
49474         Fix tests on cygwin.
49475         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
49476
49477 2007-11-01  Bruno Haible  <bruno@clisp.org>
49478
49479         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
49480         warning.
49481         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
49482         needed for POSIX compatibility.
49483
49484 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
49485
49486         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
49487         for compatibility with GNU.
49488
49489 2007-11-01  Bruno Haible  <bruno@clisp.org>
49490
49491         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
49492         (putenv): Renamed from rpl_putenv. Change argument type from
49493         'const char *' to 'char *'.
49494         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
49495         of defining putenv in config.h, just set REPLACE_PUTENV.
49496         * modules/putenv (Depends-on): Add stdlib.
49497         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49498         (Include): Use <stdlib.h>.
49499         * lib/stdlib.in.h (putenv): New declaration.
49500         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
49501         REPLACE_PUTENV.
49502         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
49503         REPLACE_PUTENV.
49504         Needed for MacOS X 10.5.0.
49505         Reported by Peter O'Gorman <peter@pogma.com>.
49506
49507 2007-11-01  Jim Meyering  <meyering@redhat.com>
49508
49509         Treat an empty date string exactly like "0".
49510         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
49511         if the remaining date string (to be parsed) is empty, use "0".
49512         Reported by Mischa Molhoek and discussed in this thread:
49513         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
49514
49515 2007-10-31  Bruno Haible  <bruno@clisp.org>
49516
49517         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
49518         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
49519         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
49520         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
49521         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
49522         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
49523
49524 2007-10-31  Bruno Haible  <bruno@clisp.org>
49525
49526         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
49527         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
49528         (AC_TYPE_LONG_LONG_INT): Use it.
49529         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
49530         it as well.
49531         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
49532         to m4/longlong.m4.
49533         * modules/stdint (Files): Remove m4/ulonglong.m4.
49534         * modules/strtoull (Files): Use m4/longlong.m4 instead of
49535         m4/ulonglong.m4.
49536         * modules/strtoumax (Files): Likewise.
49537
49538 2007-10-30  Bruno Haible  <bruno@clisp.org>
49539
49540         * modules/xvasprintf-posix: New file.
49541         Suggested by Eric Blake.
49542
49543 2007-10-30  Bruno Haible  <bruno@clisp.org>
49544
49545         * modules/xprintf-posix-tests: New file.
49546         * tests/test-xprintf-posix.sh: New file.
49547         * tests/test-xprintf-posix.c: New file.
49548         * tests/test-xfprintf-posix.c: New file.
49549
49550         * modules/xprintf-posix: New file.
49551
49552 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49553
49554         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
49555         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
49556         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
49557
49558 2007-10-29  Bruno Haible  <bruno@clisp.org>
49559
49560         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
49561         contain the special marker '_cv_'.
49562         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
49563         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
49564         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
49565         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
49566         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
49567         Reported by Ralf Wildenhues.
49568
49569 2007-10-29  Bruno Haible  <bruno@clisp.org>
49570
49571         * gnulib-tool (func_import): When --lgpl is not specified, set
49572         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
49573         GPLv3.
49574         Reported by Simon Josefsson.
49575
49576 2007-10-28  Bruno Haible  <bruno@clisp.org>
49577
49578         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
49579         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
49580         HAVE_DECL_ISFINITE.
49581         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
49582         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
49583         HAVE_DECL_ISFINITE.
49584
49585 2007-10-28  Bruno Haible  <bruno@clisp.org>
49586
49587         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
49588         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
49589
49590 2007-10-28  Bruno Haible  <bruno@clisp.org>
49591
49592         Fix link errors with Sun C 5.0 on Solaris 10.
49593         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
49594         function is declared but not present in the compiler's libm.
49595         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
49596         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
49597         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
49598         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
49599         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
49600         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
49601         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
49602         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
49603         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
49604         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
49605         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
49606         HAVE_DECL_FLOORL.
49607
49608 2007-10-28  Bruno Haible  <bruno@clisp.org>
49609
49610         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
49611         gl_FUNC_FLOORL. Cache the result.
49612         (gl_FUNC_FLOORL): Use it.
49613         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
49614         gl_FUNC_CEILL. Cache the result.
49615         (gl_FUNC_CEILL): Use it.
49616
49617         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
49618         gl_FUNC_FLOOR. Cache the result.
49619         (gl_FUNC_FLOOR): Use it.
49620         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
49621         gl_FUNC_CEIL. Cache the result.
49622         (gl_FUNC_CEIL): Use it.
49623
49624         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
49625         gl_FUNC_FLOORF. Cache the result.
49626         (gl_FUNC_FLOORF): Use it.
49627         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
49628         gl_FUNC_CEILF. Cache the result.
49629         (gl_FUNC_CEILF): Use it.
49630
49631 2007-10-28  Bruno Haible  <bruno@clisp.org>
49632
49633         * gnulib-tool: Allow specifying the LGPL version number through
49634         --lgpl=2 or --lgpl=3.
49635         (func_usage): Document --lgpl with argument.
49636         Handle --lgpl=... arguments.
49637         (func_import): Recognize also gl_LGPL calls with an argument. When
49638         --lgpl=2 is used and the module's license is just LGPL, report an
49639         error. Set sed_transform_lib_file according to the lgpl variable. In
49640         the generated files, use --lgpl or gl_LGPL invocations with argument,
49641         if necessary.
49642         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
49643         an LGPv2+ license.
49644         * doc/gnulib-tool.texi (Modified imports): Update explanation of
49645         gl_LGPL macro.
49646
49647 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49648             Bruno Haible  <bruno@clisp.org>
49649
49650         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
49651         (u16_uctomb_aux): Likewise.
49652         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
49653         !HAVE_INLINE.
49654         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
49655
49656 2007-10-28  Bruno Haible  <bruno@clisp.org>
49657
49658         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
49659         Invoke AM_GETTEXT_OPTION if it exists.
49660         * modules/vasprintf: Likewise.
49661         * modules/verror: Likewise.
49662         * modules/xprintf: Likewise.
49663         * modules/xvasprintf: Likewise.
49664
49665 2007-10-27  Ben Pfaff  <blp@gnu.org>
49666
49667         * lib/math.in.h: Define isfinite macro and prototypes for
49668         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
49669         implementations.
49670         * m4/math_h.m4: New substitutions for isfinite module.
49671         * lib/isfinite.c: New file.
49672         * m4/isfinite.m4: New file.
49673         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
49674         * modules/isfinite: New file.
49675         * modules/isfinite-tests: New file.
49676         * tests/tests-isfinite.c: New file.
49677         * doc/functions/isfinite.texi: Mention isfinite module.
49678         * MODULES.html.sh: Mention new module.
49679
49680 2007-10-27  Ben Pfaff  <blp@gnu.org>
49681
49682         Ralf Wildenhues reported that Tru64 4.0D declares the round
49683         functions but does not have definitions.
49684         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
49685         cannot be found in any library, set the output variable to
49686         "missing" instead of "".
49687         * m4/round.m4: Also use our substitute if we cannot find round in
49688         any library, even if it is declared.
49689         * m4/roundf.m4: Likewise for roundf.
49690         * m4/roundl.m4: Likewise for roundl.
49691         * lib/math.in.h: Undefine roundf, round, roundl before defining
49692         their replacements, to allow for hypothetical systems where these
49693         may be defined as macros but not available in libraries.
49694
49695 2007-10-27  Bruno Haible  <bruno@clisp.org>
49696
49697         * doc/gnulib.texi: Invoke @firstparagraphindent.
49698         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
49699         changes in gnulib.
49700         (Source changes): New section.
49701
49702 2007-10-26  Bruno Haible  <bruno@clisp.org>
49703
49704         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
49705         borrowed from autoconf.
49706
49707 2007-10-26  Bruno Haible  <bruno@clisp.org>
49708
49709         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
49710         strerror returned the empty string. Needed on HP-UX 11.00.
49711
49712 2007-10-24  Micah Cowan  <micah@cowan.name>
49713
49714         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
49715         * build-aux/bootstrap: Remove support for now-unnecessary option,
49716         --cvs-user, and envvars CVS_USER, CVS_RSH.
49717
49718 2007-10-24  Jim Meyering  <meyering@redhat.com>
49719
49720         Avoid diagnostics from sha1sum when there is no cached checksum.
49721         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
49722         if the po.s1 file hasn't been created yet.
49723
49724         * build-aux/bootstrap: Sync from coreutils:
49725         2007-10-24  Jim Meyering  <meyering@redhat.com>
49726         Get gnulib from the git repository, not from an obsolete cvs one.
49727         * build-aux/bootstrap: Suggestion from Micah Cowan.
49728         2007-10-04  Jim Meyering  <jim@meyering.net>
49729         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
49730         (update_po_files): Work also when there are no .po files in po/.
49731
49732 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
49733
49734         * README: Append ".git" to git and cg examples.
49735         Problem reported by Benoit Sigoure.
49736
49737 2007-10-23  Micah Cowan  <micah@cowan.name>
49738
49739         * users.txt: Add wget.
49740
49741 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49742
49743         Fix linking of some unistdio tests on FreeBSD.
49744         * modules/unistdio/u16-vsnprintf-tests
49745         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
49746         * modules/unistdio/u16-vsprintf-tests
49747         (test_u16_vsnprintf1_LDADD): Likewise.
49748         * modules/unistdio/u32-vsnprintf-tests
49749         (test_u32_vsnprintf1_LDADD): Likewise.
49750         * modules/unistdio/u32-vsprintf-tests
49751         (test_u32_vsprintf1_LDADD): Likewise.
49752         * modules/unistdio/u8-vsnprintf-tests
49753         (test_u8_vsnprintf1_LDADD): Likewise.
49754         * modules/unistdio/u8-vsprintf-tests
49755         (test_u8_vsprintf1_LDADD): Likewise.
49756         * modules/unistdio/ulc-vsnprintf-tests
49757         (test_ulc_vsnprintf1_LDADD): Likewise.
49758         * modules/unistdio/ulc-vsprintf-tests
49759         (test_ulc_vsprintf1_LDADD): Likewise.
49760
49761         Fix linking of some uniconv tests on FreeBSD.
49762         * modules/uniconv/u16-conv-from-enc-tests
49763         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
49764         * modules/uniconv/u16-conv-to-enc-tests
49765         (test_u16_conv_to_enc_LDADD): Likewise.
49766         * modules/uniconv/u16-strconv-from-enc-tests
49767         (test_u16_strconv_from_enc_LDADD): Likewise.
49768         * modules/uniconv/u16-strconv-to-enc-tests
49769         (test_u16_strconv_to_enc_LDADD): Likewise.
49770         * modules/uniconv/u32-conv-from-enc-tests
49771         (test_u32_conv_from_enc_LDADD): Likewise.
49772         * modules/uniconv/u32-conv-to-enc-tests
49773         (test_u32_conv_to_enc_LDADD): Likewise.
49774         * modules/uniconv/u32-strconv-from-enc-tests
49775         (test_u32_strconv_from_enc_LDADD): Likewise.
49776         * modules/uniconv/u32-strconv-to-enc-tests
49777         (test_u32_strconv_to_enc_LDADD): Likewise.
49778         * modules/uniconv/u8-conv-from-enc-tests
49779         (test_u8_conv_from_enc_LDADD): Likewise.
49780         * modules/uniconv/u8-conv-to-enc-tests
49781         (test_u8_conv_to_enc_LDADD): Likewise.
49782         * modules/uniconv/u8-strconv-from-enc-tests
49783         (test_u8_strconv_from_enc_LDADD): Likewise.
49784         * modules/uniconv/u8-strconv-to-enc-tests
49785         (test_u8_strconv_to_enc_LDADD): Likewise.
49786
49787 2007-10-22  Bruno Haible  <bruno@clisp.org>
49788
49789         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
49790         size.
49791
49792 2007-10-22  Eric Blake  <ebb9@byu.net>
49793
49794         Tweak x*printf documentation.
49795         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
49796         variable name and comments.
49797         Suggested by Bruno Haible.
49798
49799 2007-10-22  Bruno Haible  <bruno@clisp.org>
49800
49801         * lib/acl.c (copy_acl): Fix file name in comment.
49802
49803 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
49804
49805         Fix Tru64 problem with stdbool.h.
49806         * lib/stdbool.in.h (false, true):
49807         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
49808         Don't declare as an enum in this situation; it runs afoul of Tru64.
49809         Problem reported by Steven M. Schweda in
49810         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
49811
49812 2007-10-22  Eric Blake  <ebb9@byu.net>
49813
49814         Also wrap vf?printf.
49815         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
49816         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
49817         (xvprintf, xvfprintf): New functions.
49818
49819 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49820
49821         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
49822         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
49823
49824         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
49825         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
49826
49827 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
49828
49829         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
49830         by Bruno Haible.
49831
49832 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49833
49834         * lib/getloadavg.c
49835         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
49836         Undef `sys' after including sys/table.h, for Tru64 4.0D.
49837
49838         * tests/test-i-ring.c: Work for C89.
49839
49840 2007-10-22  Bruno Haible  <bruno@clisp.org>
49841
49842         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
49843         -1u, in preprocessor expression, so that we don't test for the bug
49844         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
49845         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
49846
49847 2007-10-22  Eric Blake  <ebb9@byu.net>
49848
49849         * tests/test-yesno.sh: Silence stderr during test.
49850
49851 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49852
49853         * modules/crypto/gc-camellia: New file.
49854
49855         * m4/gc-camellia.m4: New file.
49856
49857         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
49858
49859         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
49860
49861 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49862
49863         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
49864         --help to stdout.  Reported by sms@antinode.org (Steven
49865         M. Schweda).
49866
49867 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49868
49869         * users.txt: Fix link to libksba.
49870
49871 2007-10-21  Ben Pfaff  <blp@gnu.org>
49872
49873         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
49874         round.c roundf implementation that depends on floorf and ceilf to
49875         be tested unconditionally.
49876
49877 2007-10-21  Ben Pfaff  <blp@gnu.org>
49878
49879         * m4/check-libm-func.m4: Removed.
49880         * m4/check-math-lib.m4: New file.
49881         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
49882         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
49883         definition and lack of AC_LIBOBJ([roundf]).
49884         * m4/roundl.m4: Ditto, and similarly for roundl.
49885         * modules/round: Reference new m4 file.
49886         * modules/roundf: Ditto.
49887         * modules/roundl: Ditto.
49888         * tests/test-round2.c (main): Use ROUND instead of round.
49889         Bug report from Bruno Haible.
49890
49891 2007-10-21  Bruno Haible  <bruno@clisp.org>
49892
49893         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
49894         context.
49895
49896 2007-10-21  Bruno Haible  <bruno@clisp.org>
49897
49898         * tests/test-wcwidth.c (main): Allow negative result for some control
49899         characters.
49900
49901         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
49902         Needed on OSF/1 5.1.
49903
49904 2007-10-21  Bruno Haible  <bruno@clisp.org>
49905
49906         * tests/test-floorf1.c: Include isnanf.h.
49907         (main): Use isnanf() instead of isnan().
49908         * tests/test-ceilf1.c: Include isnanf.h.
49909         (main): Use isnanf() instead of isnan().
49910         * tests/test-truncf1.c: Include isnanf.h.
49911         (main): Use isnanf() instead of isnan().
49912         * tests/test-roundf1.c: Include isnanf.h.
49913         (main): Use isnanf() instead of isnan().
49914
49915 2007-10-21  Eric Blake  <ebb9@byu.net>
49916
49917         * users.txt: Update URL for m4.
49918
49919 2007-10-21  Bruno Haible  <bruno@clisp.org>
49920
49921         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
49922
49923 2007-10-21  Bruno Haible  <bruno@clisp.org>
49924
49925         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
49926         Git's management files if the CVS files are not present.
49927
49928 2007-10-20  Bruno Haible  <bruno@clisp.org>
49929
49930         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
49931         gcc-3.4.x.
49932
49933 2007-10-20  Ben Pfaff  <blp@gnu.org>
49934
49935         * lib/math.in.h: Declare round, roundf, roundl if we are providing
49936         implementations.
49937         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
49938         * lib/round.c: New file.
49939         * lib/roundf.c: New file.
49940         * lib/roundl.c: New file.
49941         * m4/round.m4: New file.
49942         * m4/roundf.m4: New file.
49943         * m4/roundl.m4: New file.
49944         * m4/check-libm-func-m4: New file.
49945         * modules/math: Replace round, roundf, roundl related @VARS@ in
49946         math.in.h.
49947         * modules/round: New file.
49948         * modules/round-tests: New file.
49949         * modules/roundf: New file.
49950         * modules/roundf-tests: New file.
49951         * modules/roundl: New file.
49952         * modules/roundl-tests: New file.
49953         * tests/test-round1.c: New file.
49954         * tests/test-round2.c: New file.
49955         * tests/test-roundf1.c: New file.
49956         * tests/test-roundf2.c: New file.
49957         * tests/test-roundl.c: New file.
49958         * doc/functions/round.texi: Mention round module.
49959         * doc/functions/roundf.texi: Mention roundf module.
49960         * doc/functions/roundl.texi: Mention roundl module.
49961         * MODULES.html.sh: Mention new modules.
49962         Thanks to Bruno Haible for suggestions.
49963
49964 2007-10-20  Jim Meyering  <meyering@redhat.com>
49965
49966         * lib/xprintf.c: Include <config.h> unconditionally.
49967
49968         Change xprintf's license to GPL.
49969         * modules/xprintf (License): s/LGPL/GPL/, since this module
49970         depends on modules (exit and exitfail) which are GPL.
49971         Suggestion from Bruno Haible.
49972
49973         xprintf fixes.
49974         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
49975         Use a clearer diagnostic.
49976         Patch from Bruno Haible.
49977
49978 2007-10-20  Bruno Haible  <bruno@clisp.org>
49979
49980         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
49981         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
49982         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49983
49984 2007-10-20  Bruno Haible  <bruno@clisp.org>
49985
49986         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
49987         precision in the comparison result > x - 1 or similar.
49988         * tests/test-ceilf2.c (correct_result_p): Likewise.
49989         * tests/test-truncf2.c (correct_result_p): Likewise.
49990         * tests/test-trunc2.c (correct_result_p): Likewise.
49991         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49992
49993 2007-10-20  Bruno Haible  <bruno@clisp.org>
49994
49995         * modules/ceil: New file.
49996         * m4/ceil.m4: New file.
49997         * doc/functions/ceil.texi: Mention the 'ceil' module.
49998
49999 2007-10-20  Bruno Haible  <bruno@clisp.org>
50000
50001         * modules/floor: New file.
50002         * m4/floor.m4: New file.
50003         * doc/functions/floor.texi: Mention the 'floor' module.
50004
50005 2007-10-20  Bruno Haible  <bruno@clisp.org>
50006
50007         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
50008         of %a.
50009         * modules/floorf-tests (Depends-on): Likewise.
50010         * modules/truncf-tests (Depends-on): Likewise.
50011         * modules/trunc-tests (Depends-on): Likewise.
50012         Reported by Ben Pfaff.
50013
50014 2007-10-19  Jim Meyering  <meyering@redhat.com>
50015
50016         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
50017         Don't bother testing specific errno values.  Just test ferror.
50018
50019         New module: xprintf
50020         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
50021
50022 2007-10-19  Bruno Haible  <bruno@clisp.org>
50023
50024         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
50025         syntax.
50026         * modules/javaexec (Makefile.am): Likewise.
50027         * modules/relocatable-prog (Makefile.am): Likewise.
50028         Suggested by Jim Meyering.
50029
50030 2007-10-18  Bruno Haible  <bruno@clisp.org>
50031
50032         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
50033         Reported by Jim Meyering.
50034
50035 2007-10-18  Eric Blake  <ebb9@byu.net>
50036
50037         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
50038
50039 2007-10-18  Bruno Haible  <bruno@clisp.org>
50040
50041         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
50042         the format string into writable memory. Needed in Fortify conditions.
50043
50044 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
50045             Bruno Haible  <bruno@clisp.org>
50046
50047         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
50048         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
50049         * modules/trim (Depends-on): Add mbchar.
50050         (configure.ac): Add gl_FUNC_MBRTOWC.
50051         (Makefile.am): Augment lib_SOURCES.
50052
50053 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
50054
50055         Modify glob.c to use fstatat and dirfd, to simplify it.
50056         Suggested by Eric Blake.
50057         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
50058         Don't include <stdbool.h>; not used.
50059         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
50060         (link_exists_p): Simplify implementation, since we can now assume
50061         dirfd and fstatat.
50062         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
50063
50064 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50065
50066         * gnulib-tool (func_get_dependencies): Fix sed script to
50067         match only tests.
50068
50069 2007-10-17  Bruno Haible  <bruno@clisp.org>
50070
50071         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
50072         allow locale names without encoding suffix.
50073         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
50074         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
50075
50076 2007-10-16  Bruno Haible  <bruno@clisp.org>
50077
50078         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
50079         * lib/getgroups.c (getgroups): Likewise.
50080         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
50081
50082 2007-10-16  Bruno Haible  <bruno@clisp.org>
50083
50084         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
50085         * modules/malloc-posix (License): Likewise.
50086         * modules/realloc-posix (License): Likewise.
50087         * modules/calloc-posix (License): Likewise.
50088         * modules/intprops (License): Change from GPL to LGPL, with
50089         Paul Eggert's approval.
50090
50091 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50092
50093         Merge glibc changes into lib/glob.c.
50094
50095         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
50096         2007-10-15 04:59:03 UTC.  Here are the changes:
50097
50098         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
50099
50100         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
50101
50102         * lib/glob.c: Add some branch prediction throughout.
50103
50104         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
50105
50106         [BZ #5103]
50107         * lib/glob.c (glob): Recognize patterns starting \/.
50108
50109         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
50110
50111         [BZ #3996]
50112         * lib/glob.c (attribute_hidden): Define if not defined.
50113         (glob): Unescape dirname, filename or username when needed and not
50114         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
50115         is NULL.  Handle unescaped [ in pattern without closing ].
50116         Don't pass GLOB_CHECK down to recursive glob for directories.
50117         (__glob_pattern_type): New function.
50118         (__glob_pattern_p): Implement using __glob_pattern_type.
50119         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
50120         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
50121         Remove unreachable code.
50122
50123         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
50124
50125         * lib/glob.c (glob_in_dir): Add some comments and asserts to
50126         explain why there are no leaks.
50127
50128         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
50129
50130         [BZ #3253]
50131         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
50132         time, rather allocate increasingly bigger arrays of pointers, if
50133         possible with alloca, if too large with malloc.
50134
50135 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50136
50137         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
50138         Problem reported by H.Merijn Brand in
50139         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
50140         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
50141         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
50142
50143 2007-10-15  Bruno Haible  <bruno@clisp.org>
50144
50145         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
50146         with explicit rpl_ prefix.
50147         * lib/fopen.c (fopen): Likewise.
50148         * lib/freopen.c (freopen): Likewise.
50149         * lib/iconv.c (iconv): Likewise.
50150         * lib/iconv_close.c (iconv_close): Likewise.
50151
50152 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50153
50154         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
50155
50156 2007-10-15  Bruno Haible  <bruno@clisp.org>
50157
50158         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
50159         <stddef.h> instead of <stdlib.h> since we only need NULL.
50160         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50161
50162 2007-10-15  Bruno Haible  <bruno@clisp.org>
50163
50164         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
50165         Replace paragraph talking about LIBOBJS.
50166         Reported by Colin Watson <cjwatson@debian.org>.
50167
50168 2007-10-15  Bruno Haible  <bruno@clisp.org>
50169
50170         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
50171         <stdlib.h> before using NULL.
50172
50173 2007-10-15  Simon Josefsson  <simon@josefsson.org>
50174
50175         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
50176         Reported by Albert Chin <china@thewrittenword.com>.
50177
50178 2007-10-14  Bruno Haible  <bruno@clisp.org>
50179
50180         * modules/iconv_open-utf-tests: New file.
50181         * tests/test-iconv-utf.c: New file.
50182
50183         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
50184         * modules/iconv_open-utf: New file.
50185         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
50186         (iconv, iconv_close): New declarations.
50187         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
50188         be defined.
50189         (iconv_open): Add special handling of conversion between UTF-8 and
50190         UTF-{16,32}{BE,LE}.
50191         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
50192         * lib/iconv_close.c: New file.
50193         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
50194         gl_FUNC_ICONV_OPEN.
50195         (gl_FUNC_ICONV_OPEN): Use it.
50196         (gl_FUNC_ICONV_OPEN_UTF): New macro.
50197         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
50198         and REPLACE_ICONV_UTF.
50199         * modules/iconv_open (Depends-on): Add c-strcase.
50200         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
50201         ICONV_CONST.
50202         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
50203
50204 2007-10-13  Albert Chin  <china@thewrittenword.com>
50205             Bruno Haible  <bruno@clisp.org>
50206
50207         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
50208         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
50209
50210 2007-10-13  Bruno Haible  <bruno@clisp.org>
50211
50212         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
50213         defined, use the ISO C99 inline semantics.
50214         * lib/argp.h (ARGP_EI): Likewise.
50215
50216 2007-10-13  Bruno Haible  <bruno@clisp.org>
50217
50218         Handle 'inline' change in gcc 4.3.0.
50219         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
50220         argp_fmtstream_write, argp_fmtstream_set_lmargin,
50221         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
50222         argp_fmtstream_point): Disable 'extern' declaration if the function
50223         definition is going to be provided inline.
50224         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
50225         semantics, not the ISO C99 inline semantics.
50226         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
50227         'extern' declaration if the function definition is going to be provided
50228         inline.
50229         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
50230         the GNU C inline semantics, not the ISO C99 inline semantics. With
50231         GCC 4.2, avoid a warning.
50232
50233 2007-10-13  Bruno Haible  <bruno@clisp.org>
50234
50235         * lib/freading.h (freading): Enable the use of __freading for
50236         glibc >= 2.7.
50237         * lib/freading.c (freading): Likewise.
50238
50239 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
50240
50241         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
50242         "warning: C99 inline functions are not supported; using GNU89".
50243
50244 2007-10-12  Bruno Haible  <bruno@clisp.org>
50245
50246         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
50247         of 2.
50248         * tests/test-ceilf2.c: New file.
50249         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
50250
50251         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
50252         * modules/ceilf-tests: Update.
50253
50254 2007-10-12  Bruno Haible  <bruno@clisp.org>
50255
50256         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
50257         of 2.
50258         * tests/test-floorf2.c: New file.
50259         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
50260
50261         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
50262         * modules/floorf-tests: Update.
50263
50264 2007-10-12  Bruno Haible  <bruno@clisp.org>
50265
50266         * tests/test-trunc2.c: New file.
50267         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
50268
50269         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
50270         * modules/trunc-tests: Update.
50271
50272 2007-10-12  Bruno Haible  <bruno@clisp.org>
50273
50274         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
50275         of 2.
50276         * tests/test-truncf2.c: New file.
50277         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
50278
50279         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
50280         * modules/truncf-tests: Update.
50281
50282 2007-10-11  Eric Blake  <ebb9@byu.net>
50283
50284         Don't claim strerror is broken on Interix.
50285         * doc/functions/strerror.texi (strerror): Known broken systems are
50286         now Solaris 8, and not Interix.
50287         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
50288         Interix on cross-compile.
50289         Reported by Martin Koeppe in
50290         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
50291
50292 2007-10-11  Bruno Haible  <bruno@clisp.org>
50293
50294         * modules/i-ring-tests: New file.
50295         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
50296         instead of assert.
50297
50298 2007-10-11  Bruno Haible  <bruno@clisp.org>
50299
50300         * modules/filenamecat-tests: New file.
50301         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
50302         * lib/filenamecat.c: Remove test code.
50303
50304 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
50305
50306         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
50307
50308         * lib/strerror.c: Include <string.h> always, to test interface,
50309         and to remove the need for the dummy.
50310         Include intprops.h to compute width instead of doing it ourselves
50311         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
50312         (strerror): Define it to return NULL if there's no system strerror.
50313         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
50314         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
50315         ancient pre-strerror Unix systems well any more.  Saying "unknown
50316         system error" is enough.
50317         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
50318         simpler strerror.c implementation.
50319         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
50320         Simplify the tests to reflect the simpler strerror implementation.
50321         * modules/strerror (Depends-on): Add intprops.
50322
50323 2007-10-09  Eric Blake  <ebb9@byu.net>
50324
50325         Silence test-fpending.
50326         * modules/fpending-tests (Files): Add wrapper script.
50327         * tests/test-fpending.sh: New file.
50328
50329 2007-10-09  Bruno Haible  <bruno@clisp.org>
50330
50331         * MODULES.html.sh (func_module): Don't create a hyperlink for
50332         function names like 'printf_frexp'.
50333         (Misc): Add crc, memxor.
50334         (Characteristics of floating types): New section.
50335         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
50336         isnanf-nolibm, signbit, trunc, truncf, truncl.
50337         (Enhancements for ISO C 99 functions): New subsection Input/output.
50338         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
50339         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
50340         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
50341         (Compatibility checks for POSIX:2001 functions): Add clock-time.
50342         (Enhancements for POSIX:2001 functions): Add chdir-long.
50343         (File system functions): Add areadlink, chdir-safer, read-file.
50344         Remove cycle-check.
50345         (File system as inode set): New section.
50346         (Date and time): Add gethrxtime.
50347         (Multithreading): Add openmp.
50348         (Internationalization functions): Add localename.
50349         (Unicode string functions): Add unistr/u*-mbsnlen.
50350         (Support for maintaining and releasing projects): Add git-version-gen.
50351         (Lone files): Remove directories.
50352
50353 2007-10-08  Ben Pfaff  <blp@gnu.org>
50354
50355         * lib/xmalloca.h: Fix typo in comment.
50356
50357 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
50358
50359         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
50360         when avoiding problems with integer overflow.  Use a portable test
50361         instead.
50362
50363 2007-10-08  Simon Josefsson  <simon@josefsson.org>
50364
50365         * modules/dummy (License): Change to LGPLv2+.
50366         * modules/float (License): Likewise
50367         * modules/realloc (License): Likewise
50368         * modules/stdlib (License): Likewise
50369
50370 2007-10-07  Bruno Haible  <bruno@clisp.org>
50371
50372         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
50373         * floor.c (TWO_MANT_DIG): Likewise.
50374         * ceil.c (TWO_MANT_DIG): Likewise.
50375         Reported by Ben Pfaff.
50376
50377 2007-10-07  Bruno Haible  <bruno@clisp.org>
50378
50379         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
50380         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
50381         * lib/frexp.c (FUNC): Likewise.
50382         * lib/printf-frexp.h (printf_frexp): Likewise.
50383         * lib/printf-frexpl.h (printf_frexpl): Likewise.
50384         * lib/printf-frexp.c (FUNC): Likewise.
50385         Suggested by Jim Meyering.
50386
50387 2007-10-07  Jim Meyering  <meyering@redhat.com>
50388
50389         Make xnanosleep's integer overflow test more robust.
50390         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
50391         so that gcc-4.3.0 doesn't optimize away this test for overflow.
50392
50393 2007-10-07  Bruno Haible  <bruno@clisp.org>
50394
50395         * NEWS: Mention the license change.
50396
50397         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
50398         abbreviations in the modules files.
50399
50400         Change copyright notice from GPLv2+ to GPLv3+.
50401         * README: Change copyright notice.
50402         * MODULES.html.sh: Likewise.
50403         * build-aux/bootstrap.conf: Likewise.
50404         * build-aux/config.libpath: Likewise.
50405         * build-aux/csharpcomp.sh.in: Likewise.
50406         * build-aux/csharpexec.sh.in: Likewise.
50407         * build-aux/install-reloc: Likewise.
50408         * build-aux/javacomp.sh.in: Likewise.
50409         * build-aux/javaexec.sh.in: Likewise.
50410         * build-aux/ldd.sh.in: Likewise.
50411         * build-aux/reloc-ldflags: Likewise.
50412         * build-aux/relocatable.sh.in: Likewise.
50413         * build-aux/x-to-1.in: Likewise.
50414         * check-module: Likewise.
50415         * config/srclistvars.sh: Likewise.
50416         * gnulib-tool: Likewise.
50417         * lib/acl-internal.h: Likewise.
50418         * lib/acl.c: Likewise.
50419         * lib/acl.h: Likewise.
50420         * lib/acl_entries.c: Likewise.
50421         * lib/areadlink-with-size.c: Likewise.
50422         * lib/areadlink.c: Likewise.
50423         * lib/areadlink.h: Likewise.
50424         * lib/argmatch.c: Likewise.
50425         * lib/argmatch.h: Likewise.
50426         * lib/argp-ba.c: Likewise.
50427         * lib/argp-eexst.c: Likewise.
50428         * lib/argp-fmtstream.c: Likewise.
50429         * lib/argp-fmtstream.h: Likewise.
50430         * lib/argp-fs-xinl.c: Likewise.
50431         * lib/argp-help.c: Likewise.
50432         * lib/argp-namefrob.h: Likewise.
50433         * lib/argp-parse.c: Likewise.
50434         * lib/argp-pin.c: Likewise.
50435         * lib/argp-pv.c: Likewise.
50436         * lib/argp-pvh.c: Likewise.
50437         * lib/argp-xinl.c: Likewise.
50438         * lib/argp.h: Likewise.
50439         * lib/at-func.c: Likewise.
50440         * lib/atanl.c: Likewise.
50441         * lib/backupfile.c: Likewise.
50442         * lib/backupfile.h: Likewise.
50443         * lib/basename.c: Likewise.
50444         * lib/binary-io.h: Likewise.
50445         * lib/byteswap.in.h: Likewise.
50446         * lib/c-stack.c: Likewise.
50447         * lib/c-stack.h: Likewise.
50448         * lib/c-strcasestr.c: Likewise.
50449         * lib/c-strcasestr.h: Likewise.
50450         * lib/c-strstr.c: Likewise.
50451         * lib/c-strstr.h: Likewise.
50452         * lib/c-strtod.c: Likewise.
50453         * lib/calloc.c: Likewise.
50454         * lib/canon-host.c: Likewise.
50455         * lib/canon-host.h: Likewise.
50456         * lib/canonicalize-lgpl.c: Likewise.
50457         * lib/canonicalize.c: Likewise.
50458         * lib/canonicalize.h: Likewise.
50459         * lib/ceil.c: Likewise.
50460         * lib/ceilf.c: Likewise.
50461         * lib/ceill.c: Likewise.
50462         * lib/chdir-long.c: Likewise.
50463         * lib/chdir-long.h: Likewise.
50464         * lib/chdir-safer.c: Likewise.
50465         * lib/chdir-safer.h: Likewise.
50466         * lib/chown.c: Likewise.
50467         * lib/classpath.c: Likewise.
50468         * lib/classpath.h: Likewise.
50469         * lib/clean-temp.c: Likewise.
50470         * lib/clean-temp.h: Likewise.
50471         * lib/cloexec.c: Likewise.
50472         * lib/close-stream.c: Likewise.
50473         * lib/closein.c: Likewise.
50474         * lib/closein.h: Likewise.
50475         * lib/closeout.c: Likewise.
50476         * lib/closeout.h: Likewise.
50477         * lib/concat-filename.c: Likewise.
50478         * lib/copy-file.c: Likewise.
50479         * lib/copy-file.h: Likewise.
50480         * lib/count-one-bits.h: Likewise.
50481         * lib/crc.c: Likewise.
50482         * lib/crc.h: Likewise.
50483         * lib/creat-safer.c: Likewise.
50484         * lib/csharpcomp.c: Likewise.
50485         * lib/csharpcomp.h: Likewise.
50486         * lib/csharpexec.c: Likewise.
50487         * lib/csharpexec.h: Likewise.
50488         * lib/cycle-check.c: Likewise.
50489         * lib/cycle-check.h: Likewise.
50490         * lib/diacrit.c: Likewise.
50491         * lib/diacrit.h: Likewise.
50492         * lib/diffseq.h: Likewise.
50493         * lib/dirchownmod.c: Likewise.
50494         * lib/dirent.in.h: Likewise.
50495         * lib/dirfd.c: Likewise.
50496         * lib/dirfd.h: Likewise.
50497         * lib/dirname.c: Likewise.
50498         * lib/dirname.h: Likewise.
50499         * lib/dummy.c: Likewise.
50500         * lib/dup-safer.c: Likewise.
50501         * lib/dup2.c: Likewise.
50502         * lib/eealloc.h: Likewise.
50503         * lib/error.c: Likewise.
50504         * lib/error.h: Likewise.
50505         * lib/euidaccess.c: Likewise.
50506         * lib/exclude.c: Likewise.
50507         * lib/exclude.h: Likewise.
50508         * lib/execute.c: Likewise.
50509         * lib/execute.h: Likewise.
50510         * lib/exitfail.c: Likewise.
50511         * lib/exitfail.h: Likewise.
50512         * lib/expl.c: Likewise.
50513         * lib/fatal-signal.c: Likewise.
50514         * lib/fatal-signal.h: Likewise.
50515         * lib/fbufmode.c: Likewise.
50516         * lib/fbufmode.h: Likewise.
50517         * lib/fchdir.c: Likewise.
50518         * lib/fchmodat.c: Likewise.
50519         * lib/fchownat.c: Likewise.
50520         * lib/fcntl--.h: Likewise.
50521         * lib/fcntl-safer.h: Likewise.
50522         * lib/fcntl.in.h: Likewise.
50523         * lib/fd-safer.c: Likewise.
50524         * lib/fflush.c: Likewise.
50525         * lib/file-has-acl.c: Likewise.
50526         * lib/file-set.c: Likewise.
50527         * lib/file-type.c: Likewise.
50528         * lib/file-type.h: Likewise.
50529         * lib/fileblocks.c: Likewise.
50530         * lib/filemode.c: Likewise.
50531         * lib/filemode.h: Likewise.
50532         * lib/filename.h: Likewise.
50533         * lib/filenamecat.c: Likewise.
50534         * lib/filenamecat.h: Likewise.
50535         * lib/findprog.c: Likewise.
50536         * lib/findprog.h: Likewise.
50537         * lib/float.in.h: Likewise.
50538         * lib/floor.c: Likewise.
50539         * lib/floorf.c: Likewise.
50540         * lib/floorl.c: Likewise.
50541         * lib/fopen-safer.c: Likewise.
50542         * lib/fopen.c: Likewise.
50543         * lib/fpending.c: Likewise.
50544         * lib/fpending.h: Likewise.
50545         * lib/fprintf.c: Likewise.
50546         * lib/fprintftime.h: Likewise.
50547         * lib/fpucw.h: Likewise.
50548         * lib/fpurge.c: Likewise.
50549         * lib/fpurge.h: Likewise.
50550         * lib/freadable.c: Likewise.
50551         * lib/freadable.h: Likewise.
50552         * lib/freadahead.c: Likewise.
50553         * lib/freadahead.h: Likewise.
50554         * lib/freading.c: Likewise.
50555         * lib/freading.h: Likewise.
50556         * lib/free.c: Likewise.
50557         * lib/freopen.c: Likewise.
50558         * lib/frexp.c: Likewise.
50559         * lib/frexpl.c: Likewise.
50560         * lib/fseek.c: Likewise.
50561         * lib/fseterr.c: Likewise.
50562         * lib/fseterr.h: Likewise.
50563         * lib/fstatat.c: Likewise.
50564         * lib/fstrcmp.c: Likewise.
50565         * lib/fstrcmp.h: Likewise.
50566         * lib/fsusage.c: Likewise.
50567         * lib/fsusage.h: Likewise.
50568         * lib/ftell.c: Likewise.
50569         * lib/ftello.c: Likewise.
50570         * lib/fts-cycle.c: Likewise.
50571         * lib/fts.c: Likewise.
50572         * lib/fts_.h: Likewise.
50573         * lib/full-read.c: Likewise.
50574         * lib/full-read.h: Likewise.
50575         * lib/full-write.c: Likewise.
50576         * lib/full-write.h: Likewise.
50577         * lib/fwritable.c: Likewise.
50578         * lib/fwritable.h: Likewise.
50579         * lib/fwriteerror.c: Likewise.
50580         * lib/fwriteerror.h: Likewise.
50581         * lib/fwriting.c: Likewise.
50582         * lib/fwriting.h: Likewise.
50583         * lib/gcd.c: Likewise.
50584         * lib/gcd.h: Likewise.
50585         * lib/getcwd.c: Likewise.
50586         * lib/getdate.h: Likewise.
50587         * lib/getdate.y: Likewise.
50588         * lib/getdomainname.c: Likewise.
50589         * lib/getdomainname.h: Likewise.
50590         * lib/getgroups.c: Likewise.
50591         * lib/gethostname.c: Likewise.
50592         * lib/gethrxtime.c: Likewise.
50593         * lib/gethrxtime.h: Likewise.
50594         * lib/getloadavg.c: Likewise.
50595         * lib/getndelim2.c: Likewise.
50596         * lib/getndelim2.h: Likewise.
50597         * lib/getnline.c: Likewise.
50598         * lib/getnline.h: Likewise.
50599         * lib/getopt.c: Likewise.
50600         * lib/getopt.in.h: Likewise.
50601         * lib/getopt1.c: Likewise.
50602         * lib/getopt_int.h: Likewise.
50603         * lib/getpagesize.h: Likewise.
50604         * lib/getsubopt.c: Likewise.
50605         * lib/gettime.c: Likewise.
50606         * lib/getugroups.c: Likewise.
50607         * lib/getugroups.h: Likewise.
50608         * lib/getusershell.c: Likewise.
50609         * lib/gl_anyavltree_list1.h: Likewise.
50610         * lib/gl_anyavltree_list2.h: Likewise.
50611         * lib/gl_anyhash_list1.h: Likewise.
50612         * lib/gl_anyhash_list2.h: Likewise.
50613         * lib/gl_anylinked_list1.h: Likewise.
50614         * lib/gl_anylinked_list2.h: Likewise.
50615         * lib/gl_anyrbtree_list1.h: Likewise.
50616         * lib/gl_anyrbtree_list2.h: Likewise.
50617         * lib/gl_anytree_list1.h: Likewise.
50618         * lib/gl_anytree_list2.h: Likewise.
50619         * lib/gl_anytree_oset.h: Likewise.
50620         * lib/gl_anytreehash_list1.h: Likewise.
50621         * lib/gl_anytreehash_list2.h: Likewise.
50622         * lib/gl_array_list.c: Likewise.
50623         * lib/gl_array_list.h: Likewise.
50624         * lib/gl_array_oset.c: Likewise.
50625         * lib/gl_array_oset.h: Likewise.
50626         * lib/gl_avltree_list.c: Likewise.
50627         * lib/gl_avltree_list.h: Likewise.
50628         * lib/gl_avltree_oset.c: Likewise.
50629         * lib/gl_avltree_oset.h: Likewise.
50630         * lib/gl_avltreehash_list.c: Likewise.
50631         * lib/gl_avltreehash_list.h: Likewise.
50632         * lib/gl_carray_list.c: Likewise.
50633         * lib/gl_carray_list.h: Likewise.
50634         * lib/gl_linked_list.c: Likewise.
50635         * lib/gl_linked_list.h: Likewise.
50636         * lib/gl_linkedhash_list.c: Likewise.
50637         * lib/gl_linkedhash_list.h: Likewise.
50638         * lib/gl_list.c: Likewise.
50639         * lib/gl_list.h: Likewise.
50640         * lib/gl_oset.c: Likewise.
50641         * lib/gl_oset.h: Likewise.
50642         * lib/gl_rbtree_list.c: Likewise.
50643         * lib/gl_rbtree_list.h: Likewise.
50644         * lib/gl_rbtree_oset.c: Likewise.
50645         * lib/gl_rbtree_oset.h: Likewise.
50646         * lib/gl_rbtreehash_list.c: Likewise.
50647         * lib/gl_rbtreehash_list.h: Likewise.
50648         * lib/gl_sublist.c: Likewise.
50649         * lib/gl_sublist.h: Likewise.
50650         * lib/group-member.c: Likewise.
50651         * lib/group-member.h: Likewise.
50652         * lib/hard-locale.c: Likewise.
50653         * lib/hard-locale.h: Likewise.
50654         * lib/hash-pjw.c: Likewise.
50655         * lib/hash-pjw.h: Likewise.
50656         * lib/hash-triple.c: Likewise.
50657         * lib/hash.c: Likewise.
50658         * lib/hash.h: Likewise.
50659         * lib/human.c: Likewise.
50660         * lib/human.h: Likewise.
50661         * lib/i-ring.c: Likewise.
50662         * lib/i-ring.h: Likewise.
50663         * lib/idcache.c: Likewise.
50664         * lib/imaxabs.c: Likewise.
50665         * lib/imaxdiv.c: Likewise.
50666         * lib/inet_pton.c: Likewise.
50667         * lib/inet_pton.h: Likewise.
50668         * lib/intprops.h: Likewise.
50669         * lib/inttostr.c: Likewise.
50670         * lib/inttostr.h: Likewise.
50671         * lib/inttypes.in.h: Likewise.
50672         * lib/isapipe.c: Likewise.
50673         * lib/isdir.c: Likewise.
50674         * lib/isnan.c: Likewise.
50675         * lib/isnan.h: Likewise.
50676         * lib/isnanf.c: Likewise.
50677         * lib/isnanf.h: Likewise.
50678         * lib/isnanl-nolibm.h: Likewise.
50679         * lib/isnanl.c: Likewise.
50680         * lib/isnanl.h: Likewise.
50681         * lib/javacomp.c: Likewise.
50682         * lib/javacomp.h: Likewise.
50683         * lib/javaexec.c: Likewise.
50684         * lib/javaexec.h: Likewise.
50685         * lib/javaversion.c: Likewise.
50686         * lib/javaversion.h: Likewise.
50687         * lib/javaversion.java: Likewise.
50688         * lib/lbrkprop.h: Likewise.
50689         * lib/lchmod.h: Likewise.
50690         * lib/lchown.c: Likewise.
50691         * lib/ldexpl.c: Likewise.
50692         * lib/linebreak.c: Likewise.
50693         * lib/linebreak.h: Likewise.
50694         * lib/linebuffer.c: Likewise.
50695         * lib/linebuffer.h: Likewise.
50696         * lib/locale.in.h: Likewise.
50697         * lib/logl.c: Likewise.
50698         * lib/long-options.c: Likewise.
50699         * lib/long-options.h: Likewise.
50700         * lib/lstat.c: Likewise.
50701         * lib/lstat.h: Likewise.
50702         * lib/math.in.h: Likewise.
50703         * lib/mbchar.c: Likewise.
50704         * lib/mbchar.h: Likewise.
50705         * lib/mbfile.h: Likewise.
50706         * lib/mbiter.h: Likewise.
50707         * lib/mbscasecmp.c: Likewise.
50708         * lib/mbscasestr.c: Likewise.
50709         * lib/mbschr.c: Likewise.
50710         * lib/mbscspn.c: Likewise.
50711         * lib/mbslen.c: Likewise.
50712         * lib/mbsncasecmp.c: Likewise.
50713         * lib/mbsnlen.c: Likewise.
50714         * lib/mbspbrk.c: Likewise.
50715         * lib/mbspcasecmp.c: Likewise.
50716         * lib/mbsrchr.c: Likewise.
50717         * lib/mbssep.c: Likewise.
50718         * lib/mbsspn.c: Likewise.
50719         * lib/mbsstr.c: Likewise.
50720         * lib/mbstok_r.c: Likewise.
50721         * lib/mbswidth.c: Likewise.
50722         * lib/mbswidth.h: Likewise.
50723         * lib/mbuiter.h: Likewise.
50724         * lib/memcasecmp.c: Likewise.
50725         * lib/memcasecmp.h: Likewise.
50726         * lib/memchr.c: Likewise.
50727         * lib/memcmp.c: Likewise.
50728         * lib/memcoll.c: Likewise.
50729         * lib/memcoll.h: Likewise.
50730         * lib/memcpy.c: Likewise.
50731         * lib/memrchr.c: Likewise.
50732         * lib/mkancesdirs.c: Likewise.
50733         * lib/mkdir-p.c: Likewise.
50734         * lib/mkdir-p.h: Likewise.
50735         * lib/mkdir.c: Likewise.
50736         * lib/mkdirat.c: Likewise.
50737         * lib/mkdtemp.c: Likewise.
50738         * lib/mkstemp-safer.c: Likewise.
50739         * lib/mkstemp.c: Likewise.
50740         * lib/modechange.c: Likewise.
50741         * lib/modechange.h: Likewise.
50742         * lib/mountlist.c: Likewise.
50743         * lib/mountlist.h: Likewise.
50744         * lib/mpsort.c: Likewise.
50745         * lib/nanosleep.c: Likewise.
50746         * lib/obstack.c: Likewise.
50747         * lib/obstack.h: Likewise.
50748         * lib/open-safer.c: Likewise.
50749         * lib/open.c: Likewise.
50750         * lib/openat-die.c: Likewise.
50751         * lib/openat-priv.h: Likewise.
50752         * lib/openat-proc.c: Likewise.
50753         * lib/openat.c: Likewise.
50754         * lib/openat.h: Likewise.
50755         * lib/pagealign_alloc.c: Likewise.
50756         * lib/pagealign_alloc.h: Likewise.
50757         * lib/physmem.c: Likewise.
50758         * lib/physmem.h: Likewise.
50759         * lib/pipe-safer.c: Likewise.
50760         * lib/pipe.c: Likewise.
50761         * lib/pipe.h: Likewise.
50762         * lib/posixtm.c: Likewise.
50763         * lib/posixtm.h: Likewise.
50764         * lib/posixver.c: Likewise.
50765         * lib/printf-frexp.c: Likewise.
50766         * lib/printf-frexp.h: Likewise.
50767         * lib/printf-frexpl.c: Likewise.
50768         * lib/printf-frexpl.h: Likewise.
50769         * lib/printf.c: Likewise.
50770         * lib/progname.c: Likewise.
50771         * lib/progname.h: Likewise.
50772         * lib/progreloc.c: Likewise.
50773         * lib/putenv.c: Likewise.
50774         * lib/quote.c: Likewise.
50775         * lib/quote.h: Likewise.
50776         * lib/quotearg.c: Likewise.
50777         * lib/quotearg.h: Likewise.
50778         * lib/raise.c: Likewise.
50779         * lib/readline.c: Likewise.
50780         * lib/readline.h: Likewise.
50781         * lib/readlink.c: Likewise.
50782         * lib/readtokens.c: Likewise.
50783         * lib/readtokens.h: Likewise.
50784         * lib/readtokens0.c: Likewise.
50785         * lib/readtokens0.h: Likewise.
50786         * lib/readutmp.c: Likewise.
50787         * lib/readutmp.h: Likewise.
50788         * lib/realloc.c: Likewise.
50789         * lib/relocwrapper.c: Likewise.
50790         * lib/rename-dest-slash.c: Likewise.
50791         * lib/rename.c: Likewise.
50792         * lib/rmdir.c: Likewise.
50793         * lib/rpmatch.c: Likewise.
50794         * lib/safe-read.c: Likewise.
50795         * lib/safe-read.h: Likewise.
50796         * lib/safe-write.c: Likewise.
50797         * lib/safe-write.h: Likewise.
50798         * lib/same-inode.h: Likewise.
50799         * lib/same.c: Likewise.
50800         * lib/same.h: Likewise.
50801         * lib/save-cwd.c: Likewise.
50802         * lib/save-cwd.h: Likewise.
50803         * lib/savedir.c: Likewise.
50804         * lib/savedir.h: Likewise.
50805         * lib/savewd.c: Likewise.
50806         * lib/savewd.h: Likewise.
50807         * lib/search.in.h: Likewise.
50808         * lib/setenv.c: Likewise.
50809         * lib/setenv.h: Likewise.
50810         * lib/settime.c: Likewise.
50811         * lib/sh-quote.c: Likewise.
50812         * lib/sh-quote.h: Likewise.
50813         * lib/sig2str.c: Likewise.
50814         * lib/sig2str.h: Likewise.
50815         * lib/signal.in.h: Likewise.
50816         * lib/signbitd.c: Likewise.
50817         * lib/signbitf.c: Likewise.
50818         * lib/signbitl.c: Likewise.
50819         * lib/sigprocmask.c: Likewise.
50820         * lib/sincosl.c: Likewise.
50821         * lib/sleep.c: Likewise.
50822         * lib/sprintf.c: Likewise.
50823         * lib/sqrtl.c: Likewise.
50824         * lib/stat-time.h: Likewise.
50825         * lib/stdio--.h: Likewise.
50826         * lib/stdio-safer.h: Likewise.
50827         * lib/stdlib--.h: Likewise.
50828         * lib/stdlib-safer.h: Likewise.
50829         * lib/stdlib.in.h: Likewise.
50830         * lib/stpcpy.c: Likewise.
50831         * lib/stpncpy.c: Likewise.
50832         * lib/strchrnul.c: Likewise.
50833         * lib/strcspn.c: Likewise.
50834         * lib/strerror.c: Likewise.
50835         * lib/strftime.c: Likewise.
50836         * lib/strftime.h: Likewise.
50837         * lib/striconveh.c: Likewise.
50838         * lib/striconveh.h: Likewise.
50839         * lib/striconveha.c: Likewise.
50840         * lib/striconveha.h: Likewise.
50841         * lib/stripslash.c: Likewise.
50842         * lib/strnlen1.c: Likewise.
50843         * lib/strnlen1.h: Likewise.
50844         * lib/strtod.c: Likewise.
50845         * lib/strtoimax.c: Likewise.
50846         * lib/strtok_r.c: Likewise.
50847         * lib/strtol.c: Likewise.
50848         * lib/strtoll.c: Likewise.
50849         * lib/strtoul.c: Likewise.
50850         * lib/strtoull.c: Likewise.
50851         * lib/sysexits.in.h: Likewise.
50852         * lib/tempname.c: Likewise.
50853         * lib/tempname.h: Likewise.
50854         * lib/timespec.h: Likewise.
50855         * lib/tls.c: Likewise.
50856         * lib/tls.h: Likewise.
50857         * lib/tmpdir.c: Likewise.
50858         * lib/tmpdir.h: Likewise.
50859         * lib/tmpfile-safer.c: Likewise.
50860         * lib/tmpfile.c: Likewise.
50861         * lib/trigl.c: Likewise.
50862         * lib/trigl.h: Likewise.
50863         * lib/trim.c: Likewise.
50864         * lib/trim.h: Likewise.
50865         * lib/trunc.c: Likewise.
50866         * lib/truncf.c: Likewise.
50867         * lib/truncl.c: Likewise.
50868         * lib/tsearch.c: Likewise.
50869         * lib/unicodeio.c: Likewise.
50870         * lib/unicodeio.h: Likewise.
50871         * lib/unistd--.h: Likewise.
50872         * lib/unistd-safer.h: Likewise.
50873         * lib/unistdio/ulc-fprintf.c: Likewise.
50874         * lib/unistdio/ulc-vfprintf.c: Likewise.
50875         * lib/unlinkdir.c: Likewise.
50876         * lib/unlinkdir.h: Likewise.
50877         * lib/unlocked-io.h: Likewise.
50878         * lib/unsetenv.c: Likewise.
50879         * lib/userspec.c: Likewise.
50880         * lib/utime.c: Likewise.
50881         * lib/utimecmp.c: Likewise.
50882         * lib/utimecmp.h: Likewise.
50883         * lib/utimens.c: Likewise.
50884         * lib/verify.h: Likewise.
50885         * lib/verror.c: Likewise.
50886         * lib/verror.h: Likewise.
50887         * lib/version-etc-fsf.c: Likewise.
50888         * lib/version-etc.c: Likewise.
50889         * lib/version-etc.h: Likewise.
50890         * lib/vfprintf.c: Likewise.
50891         * lib/vprintf.c: Likewise.
50892         * lib/vsprintf.c: Likewise.
50893         * lib/w32spawn.h: Likewise.
50894         * lib/wait-process.c: Likewise.
50895         * lib/wait-process.h: Likewise.
50896         * lib/wcwidth.c: Likewise.
50897         * lib/write-any-file.c: Likewise.
50898         * lib/xalloc-die.c: Likewise.
50899         * lib/xalloc.h: Likewise.
50900         * lib/xasprintf.c: Likewise.
50901         * lib/xgetcwd.c: Likewise.
50902         * lib/xgetcwd.h: Likewise.
50903         * lib/xgetdomainname.c: Likewise.
50904         * lib/xgetdomainname.h: Likewise.
50905         * lib/xgethostname.c: Likewise.
50906         * lib/xmalloc.c: Likewise.
50907         * lib/xmalloca.c: Likewise.
50908         * lib/xmalloca.h: Likewise.
50909         * lib/xmemcoll.c: Likewise.
50910         * lib/xnanosleep.c: Likewise.
50911         * lib/xreadlink.c: Likewise.
50912         * lib/xreadlink.h: Likewise.
50913         * lib/xsetenv.c: Likewise.
50914         * lib/xsetenv.h: Likewise.
50915         * lib/xstriconv.c: Likewise.
50916         * lib/xstriconv.h: Likewise.
50917         * lib/xstrndup.c: Likewise.
50918         * lib/xstrndup.h: Likewise.
50919         * lib/xstrtod.c: Likewise.
50920         * lib/xstrtod.h: Likewise.
50921         * lib/xstrtol-error.c: Likewise.
50922         * lib/xstrtol.c: Likewise.
50923         * lib/xstrtol.h: Likewise.
50924         * lib/xtime.h: Likewise.
50925         * lib/xvasprintf.c: Likewise.
50926         * lib/xvasprintf.h: Likewise.
50927         * lib/yesno.c: Likewise.
50928         * lib/yesno.h: Likewise.
50929         * posix-modules: Likewise.
50930         * tests/test-alloca-opt.c: Likewise.
50931         * tests/test-arcfour.c: Likewise.
50932         * tests/test-arctwo.c: Likewise.
50933         * tests/test-argmatch.c: Likewise.
50934         * tests/test-argp-2.sh: Likewise.
50935         * tests/test-argp.c: Likewise.
50936         * tests/test-arpa_inet.c: Likewise.
50937         * tests/test-array_list.c: Likewise.
50938         * tests/test-array_oset.c: Likewise.
50939         * tests/test-atexit.c: Likewise.
50940         * tests/test-avltree_list.c: Likewise.
50941         * tests/test-avltree_oset.c: Likewise.
50942         * tests/test-avltreehash_list.c: Likewise.
50943         * tests/test-base64.c: Likewise.
50944         * tests/test-binary-io.c: Likewise.
50945         * tests/test-byteswap.c: Likewise.
50946         * tests/test-c-ctype.c: Likewise.
50947         * tests/test-c-strcasecmp.c: Likewise.
50948         * tests/test-c-strcasestr.c: Likewise.
50949         * tests/test-c-strncasecmp.c: Likewise.
50950         * tests/test-c-strstr.c: Likewise.
50951         * tests/test-canonicalize-lgpl.c: Likewise.
50952         * tests/test-canonicalize.c: Likewise.
50953         * tests/test-carray_list.c: Likewise.
50954         * tests/test-ceilf.c: Likewise.
50955         * tests/test-ceill.c: Likewise.
50956         * tests/test-count-one-bits.c: Likewise.
50957         * tests/test-crc.c: Likewise.
50958         * tests/test-dirname.c: Likewise.
50959         * tests/test-fbufmode.c: Likewise.
50960         * tests/test-fcntl.c: Likewise.
50961         * tests/test-fflush.c: Likewise.
50962         * tests/test-floorf.c: Likewise.
50963         * tests/test-floorl.c: Likewise.
50964         * tests/test-fopen.c: Likewise.
50965         * tests/test-fprintf-posix.c: Likewise.
50966         * tests/test-fprintf-posix.h: Likewise.
50967         * tests/test-fpurge.c: Likewise.
50968         * tests/test-freadable.c: Likewise.
50969         * tests/test-freadahead.c: Likewise.
50970         * tests/test-freading.c: Likewise.
50971         * tests/test-freopen.c: Likewise.
50972         * tests/test-frexp.c: Likewise.
50973         * tests/test-frexpl.c: Likewise.
50974         * tests/test-fseek.c: Likewise.
50975         * tests/test-fseeko.c: Likewise.
50976         * tests/test-fseterr.c: Likewise.
50977         * tests/test-fstrcmp.c: Likewise.
50978         * tests/test-ftell.c: Likewise.
50979         * tests/test-ftello.c: Likewise.
50980         * tests/test-fwritable.c: Likewise.
50981         * tests/test-fwriting.c: Likewise.
50982         * tests/test-getaddrinfo.c: Likewise.
50983         * tests/test-getpass.c: Likewise.
50984         * tests/test-gettimeofday.c: Likewise.
50985         * tests/test-hmac-md5.c: Likewise.
50986         * tests/test-hmac-sha1.c: Likewise.
50987         * tests/test-iconv.c: Likewise.
50988         * tests/test-iconvme.c: Likewise.
50989         * tests/test-inttypes.c: Likewise.
50990         * tests/test-isnan.c: Likewise.
50991         * tests/test-isnanf.c: Likewise.
50992         * tests/test-isnanl-nolibm.c: Likewise.
50993         * tests/test-isnanl.c: Likewise.
50994         * tests/test-isnanl.h: Likewise.
50995         * tests/test-ldexpl.c: Likewise.
50996         * tests/test-linked_list.c: Likewise.
50997         * tests/test-linkedhash_list.c: Likewise.
50998         * tests/test-locale.c: Likewise.
50999         * tests/test-localename.c: Likewise.
51000         * tests/test-lock.c: Likewise.
51001         * tests/test-lseek.c: Likewise.
51002         * tests/test-malloca.c: Likewise.
51003         * tests/test-math.c: Likewise.
51004         * tests/test-mbscasecmp.c: Likewise.
51005         * tests/test-mbscasestr1.c: Likewise.
51006         * tests/test-mbscasestr2.c: Likewise.
51007         * tests/test-mbscasestr3.c: Likewise.
51008         * tests/test-mbscasestr4.c: Likewise.
51009         * tests/test-mbschr.c: Likewise.
51010         * tests/test-mbscspn.c: Likewise.
51011         * tests/test-mbsncasecmp.c: Likewise.
51012         * tests/test-mbspbrk.c: Likewise.
51013         * tests/test-mbspcasecmp.c: Likewise.
51014         * tests/test-mbsrchr.c: Likewise.
51015         * tests/test-mbsspn.c: Likewise.
51016         * tests/test-mbsstr1.c: Likewise.
51017         * tests/test-mbsstr2.c: Likewise.
51018         * tests/test-mbsstr3.c: Likewise.
51019         * tests/test-md5.c: Likewise.
51020         * tests/test-memmem.c: Likewise.
51021         * tests/test-netinet_in.c: Likewise.
51022         * tests/test-open.c: Likewise.
51023         * tests/test-printf-frexp.c: Likewise.
51024         * tests/test-printf-frexpl.c: Likewise.
51025         * tests/test-printf-posix.c: Likewise.
51026         * tests/test-printf-posix.h: Likewise.
51027         * tests/test-rbtree_list.c: Likewise.
51028         * tests/test-rbtree_oset.c: Likewise.
51029         * tests/test-rbtreehash_list.c: Likewise.
51030         * tests/test-read-file.c: Likewise.
51031         * tests/test-rijndael.c: Likewise.
51032         * tests/test-search.c: Likewise.
51033         * tests/test-signbit.c: Likewise.
51034         * tests/test-sleep.c: Likewise.
51035         * tests/test-snprintf-posix.c: Likewise.
51036         * tests/test-snprintf-posix.h: Likewise.
51037         * tests/test-snprintf.c: Likewise.
51038         * tests/test-sprintf-posix.c: Likewise.
51039         * tests/test-sprintf-posix.h: Likewise.
51040         * tests/test-stat-time.c: Likewise.
51041         * tests/test-stdbool.c: Likewise.
51042         * tests/test-stdint.c: Likewise.
51043         * tests/test-stdio.c: Likewise.
51044         * tests/test-stdlib.c: Likewise.
51045         * tests/test-stpncpy.c: Likewise.
51046         * tests/test-strcasestr.c: Likewise.
51047         * tests/test-striconv.c: Likewise.
51048         * tests/test-striconveh.c: Likewise.
51049         * tests/test-striconveha.c: Likewise.
51050         * tests/test-string.c: Likewise.
51051         * tests/test-sys_select.c: Likewise.
51052         * tests/test-sys_socket.c: Likewise.
51053         * tests/test-sys_stat.c: Likewise.
51054         * tests/test-sys_time.c: Likewise.
51055         * tests/test-sysexits.c: Likewise.
51056         * tests/test-time.c: Likewise.
51057         * tests/test-tls.c: Likewise.
51058         * tests/test-trunc.c: Likewise.
51059         * tests/test-truncf.c: Likewise.
51060         * tests/test-truncl.c: Likewise.
51061         * tests/test-unistd.c: Likewise.
51062         * tests/test-vasnprintf-posix.c: Likewise.
51063         * tests/test-vasnprintf-posix2.c: Likewise.
51064         * tests/test-vasnprintf.c: Likewise.
51065         * tests/test-vasprintf-posix.c: Likewise.
51066         * tests/test-vasprintf.c: Likewise.
51067         * tests/test-verify.c: Likewise.
51068         * tests/test-vfprintf-posix.c: Likewise.
51069         * tests/test-vprintf-posix.c: Likewise.
51070         * tests/test-vsnprintf-posix.c: Likewise.
51071         * tests/test-vsnprintf.c: Likewise.
51072         * tests/test-vsprintf-posix.c: Likewise.
51073         * tests/test-wchar.c: Likewise.
51074         * tests/test-wctype.c: Likewise.
51075         * tests/test-wcwidth.c: Likewise.
51076         * tests/test-xstrtol.c: Likewise.
51077         * tests/test-xvasprintf.c: Likewise.
51078         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
51079         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
51080         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
51081         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
51082         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
51083         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
51084         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
51085         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
51086         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
51087         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
51088         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
51089         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
51090         * tests/uniname/test-uninames.c: Likewise.
51091         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
51092         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
51093         * tests/unistdio/test-u16-printf1.h: Likewise.
51094         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
51095         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
51096         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
51097         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
51098         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
51099         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
51100         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
51101         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
51102         * tests/unistdio/test-u32-printf1.h: Likewise.
51103         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
51104         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
51105         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
51106         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
51107         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
51108         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
51109         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
51110         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
51111         * tests/unistdio/test-u8-printf1.h: Likewise.
51112         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
51113         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
51114         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
51115         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
51116         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
51117         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
51118         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
51119         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
51120         * tests/unistdio/test-ulc-printf1.h: Likewise.
51121         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
51122         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
51123         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
51124         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
51125         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
51126         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
51127         * tests/uniwidth/test-u16-strwidth.c: Likewise.
51128         * tests/uniwidth/test-u16-width.c: Likewise.
51129         * tests/uniwidth/test-u32-strwidth.c: Likewise.
51130         * tests/uniwidth/test-u32-width.c: Likewise.
51131         * tests/uniwidth/test-u8-strwidth.c: Likewise.
51132         * tests/uniwidth/test-u8-width.c: Likewise.
51133         * tests/uniwidth/test-uc_width.c: Likewise.
51134         * config/srclist-update: Likewise.
51135         (fixlicense): Update to GPLv3+.
51136
51137         Change copyright notice from LGPLv2.1+ to LGPLv3+.
51138         * tests/test-tsearch.c: Change copyright notice.
51139
51140         Change copyright notice from LGPLv2.0+ to LGPLv3+.
51141         * lib/c-strcaseeq.h: Change copyright notice.
51142         * lib/streq.h: Likewise.
51143         * lib/uniconv.h: Likewise.
51144         * lib/uniconv/u-conv-from-enc.h: Likewise.
51145         * lib/uniconv/u-conv-to-enc.h: Likewise.
51146         * lib/uniconv/u-strconv-from-enc.h: Likewise.
51147         * lib/uniconv/u-strconv-to-enc.h: Likewise.
51148         * lib/uniconv/u16-conv-from-enc.c: Likewise.
51149         * lib/uniconv/u16-conv-to-enc.c: Likewise.
51150         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
51151         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
51152         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
51153         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
51154         * lib/uniconv/u32-conv-from-enc.c: Likewise.
51155         * lib/uniconv/u32-conv-to-enc.c: Likewise.
51156         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
51157         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
51158         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
51159         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
51160         * lib/uniconv/u8-conv-from-enc.c: Likewise.
51161         * lib/uniconv/u8-conv-to-enc.c: Likewise.
51162         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
51163         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
51164         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
51165         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
51166         * lib/uniname.h: Likewise.
51167         * lib/uniname/uniname.c: Likewise.
51168         * lib/unistdio.h: Likewise.
51169         * lib/unistdio/u-asnprintf.h: Likewise.
51170         * lib/unistdio/u-asprintf.h: Likewise.
51171         * lib/unistdio/u-printf-args.c: Likewise.
51172         * lib/unistdio/u-printf-args.h: Likewise.
51173         * lib/unistdio/u-printf-parse.h: Likewise.
51174         * lib/unistdio/u-snprintf.h: Likewise.
51175         * lib/unistdio/u-sprintf.h: Likewise.
51176         * lib/unistdio/u-vasprintf.h: Likewise.
51177         * lib/unistdio/u-vsnprintf.h: Likewise.
51178         * lib/unistdio/u-vsprintf.h: Likewise.
51179         * lib/unistdio/u16-asnprintf.c: Likewise.
51180         * lib/unistdio/u16-asprintf.c: Likewise.
51181         * lib/unistdio/u16-printf-parse.c: Likewise.
51182         * lib/unistdio/u16-snprintf.c: Likewise.
51183         * lib/unistdio/u16-sprintf.c: Likewise.
51184         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
51185         * lib/unistdio/u16-u16-asprintf.c: Likewise.
51186         * lib/unistdio/u16-u16-snprintf.c: Likewise.
51187         * lib/unistdio/u16-u16-sprintf.c: Likewise.
51188         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
51189         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
51190         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
51191         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
51192         * lib/unistdio/u16-vasnprintf.c: Likewise.
51193         * lib/unistdio/u16-vasprintf.c: Likewise.
51194         * lib/unistdio/u16-vsnprintf.c: Likewise.
51195         * lib/unistdio/u16-vsprintf.c: Likewise.
51196         * lib/unistdio/u32-asnprintf.c: Likewise.
51197         * lib/unistdio/u32-asprintf.c: Likewise.
51198         * lib/unistdio/u32-printf-parse.c: Likewise.
51199         * lib/unistdio/u32-snprintf.c: Likewise.
51200         * lib/unistdio/u32-sprintf.c: Likewise.
51201         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
51202         * lib/unistdio/u32-u32-asprintf.c: Likewise.
51203         * lib/unistdio/u32-u32-snprintf.c: Likewise.
51204         * lib/unistdio/u32-u32-sprintf.c: Likewise.
51205         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
51206         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
51207         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
51208         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
51209         * lib/unistdio/u32-vasnprintf.c: Likewise.
51210         * lib/unistdio/u32-vasprintf.c: Likewise.
51211         * lib/unistdio/u32-vsnprintf.c: Likewise.
51212         * lib/unistdio/u32-vsprintf.c: Likewise.
51213         * lib/unistdio/u8-asnprintf.c: Likewise.
51214         * lib/unistdio/u8-asprintf.c: Likewise.
51215         * lib/unistdio/u8-printf-parse.c: Likewise.
51216         * lib/unistdio/u8-snprintf.c: Likewise.
51217         * lib/unistdio/u8-sprintf.c: Likewise.
51218         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
51219         * lib/unistdio/u8-u8-asprintf.c: Likewise.
51220         * lib/unistdio/u8-u8-snprintf.c: Likewise.
51221         * lib/unistdio/u8-u8-sprintf.c: Likewise.
51222         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
51223         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
51224         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
51225         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
51226         * lib/unistdio/u8-vasnprintf.c: Likewise.
51227         * lib/unistdio/u8-vasprintf.c: Likewise.
51228         * lib/unistdio/u8-vsnprintf.c: Likewise.
51229         * lib/unistdio/u8-vsprintf.c: Likewise.
51230         * lib/unistdio/ulc-asnprintf.c: Likewise.
51231         * lib/unistdio/ulc-asprintf.c: Likewise.
51232         * lib/unistdio/ulc-printf-parse.c: Likewise.
51233         * lib/unistdio/ulc-snprintf.c: Likewise.
51234         * lib/unistdio/ulc-sprintf.c: Likewise.
51235         * lib/unistdio/ulc-vasnprintf.c: Likewise.
51236         * lib/unistdio/ulc-vasprintf.c: Likewise.
51237         * lib/unistdio/ulc-vsnprintf.c: Likewise.
51238         * lib/unistdio/ulc-vsprintf.c: Likewise.
51239         * lib/unistr.h: Likewise.
51240         * lib/unistr/u-cpy-alloc.h: Likewise.
51241         * lib/unistr/u-cpy.h: Likewise.
51242         * lib/unistr/u-endswith.h: Likewise.
51243         * lib/unistr/u-move.h: Likewise.
51244         * lib/unistr/u-set.h: Likewise.
51245         * lib/unistr/u-startswith.h: Likewise.
51246         * lib/unistr/u-stpcpy.h: Likewise.
51247         * lib/unistr/u-stpncpy.h: Likewise.
51248         * lib/unistr/u-strcat.h: Likewise.
51249         * lib/unistr/u-strcpy.h: Likewise.
51250         * lib/unistr/u-strcspn.h: Likewise.
51251         * lib/unistr/u-strdup.h: Likewise.
51252         * lib/unistr/u-strlen.h: Likewise.
51253         * lib/unistr/u-strncat.h: Likewise.
51254         * lib/unistr/u-strncpy.h: Likewise.
51255         * lib/unistr/u-strnlen.h: Likewise.
51256         * lib/unistr/u-strpbrk.h: Likewise.
51257         * lib/unistr/u-strspn.h: Likewise.
51258         * lib/unistr/u-strstr.h: Likewise.
51259         * lib/unistr/u-strtok.h: Likewise.
51260         * lib/unistr/u16-check.c: Likewise.
51261         * lib/unistr/u16-chr.c: Likewise.
51262         * lib/unistr/u16-cmp.c: Likewise.
51263         * lib/unistr/u16-cpy-alloc.c: Likewise.
51264         * lib/unistr/u16-cpy.c: Likewise.
51265         * lib/unistr/u16-endswith.c: Likewise.
51266         * lib/unistr/u16-mblen.c: Likewise.
51267         * lib/unistr/u16-mbsnlen.c: Likewise.
51268         * lib/unistr/u16-mbtouc-aux.c: Likewise.
51269         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
51270         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
51271         * lib/unistr/u16-mbtouc.c: Likewise.
51272         * lib/unistr/u16-mbtoucr.c: Likewise.
51273         * lib/unistr/u16-move.c: Likewise.
51274         * lib/unistr/u16-next.c: Likewise.
51275         * lib/unistr/u16-prev.c: Likewise.
51276         * lib/unistr/u16-set.c: Likewise.
51277         * lib/unistr/u16-startswith.c: Likewise.
51278         * lib/unistr/u16-stpcpy.c: Likewise.
51279         * lib/unistr/u16-stpncpy.c: Likewise.
51280         * lib/unistr/u16-strcat.c: Likewise.
51281         * lib/unistr/u16-strchr.c: Likewise.
51282         * lib/unistr/u16-strcmp.c: Likewise.
51283         * lib/unistr/u16-strcpy.c: Likewise.
51284         * lib/unistr/u16-strcspn.c: Likewise.
51285         * lib/unistr/u16-strdup.c: Likewise.
51286         * lib/unistr/u16-strlen.c: Likewise.
51287         * lib/unistr/u16-strmblen.c: Likewise.
51288         * lib/unistr/u16-strmbtouc.c: Likewise.
51289         * lib/unistr/u16-strncat.c: Likewise.
51290         * lib/unistr/u16-strncmp.c: Likewise.
51291         * lib/unistr/u16-strncpy.c: Likewise.
51292         * lib/unistr/u16-strnlen.c: Likewise.
51293         * lib/unistr/u16-strpbrk.c: Likewise.
51294         * lib/unistr/u16-strrchr.c: Likewise.
51295         * lib/unistr/u16-strspn.c: Likewise.
51296         * lib/unistr/u16-strstr.c: Likewise.
51297         * lib/unistr/u16-strtok.c: Likewise.
51298         * lib/unistr/u16-to-u32.c: Likewise.
51299         * lib/unistr/u16-to-u8.c: Likewise.
51300         * lib/unistr/u16-uctomb-aux.c: Likewise.
51301         * lib/unistr/u16-uctomb.c: Likewise.
51302         * lib/unistr/u32-check.c: Likewise.
51303         * lib/unistr/u32-chr.c: Likewise.
51304         * lib/unistr/u32-cmp.c: Likewise.
51305         * lib/unistr/u32-cpy-alloc.c: Likewise.
51306         * lib/unistr/u32-cpy.c: Likewise.
51307         * lib/unistr/u32-endswith.c: Likewise.
51308         * lib/unistr/u32-mblen.c: Likewise.
51309         * lib/unistr/u32-mbsnlen.c: Likewise.
51310         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
51311         * lib/unistr/u32-mbtouc.c: Likewise.
51312         * lib/unistr/u32-mbtoucr.c: Likewise.
51313         * lib/unistr/u32-move.c: Likewise.
51314         * lib/unistr/u32-next.c: Likewise.
51315         * lib/unistr/u32-prev.c: Likewise.
51316         * lib/unistr/u32-set.c: Likewise.
51317         * lib/unistr/u32-startswith.c: Likewise.
51318         * lib/unistr/u32-stpcpy.c: Likewise.
51319         * lib/unistr/u32-stpncpy.c: Likewise.
51320         * lib/unistr/u32-strcat.c: Likewise.
51321         * lib/unistr/u32-strchr.c: Likewise.
51322         * lib/unistr/u32-strcmp.c: Likewise.
51323         * lib/unistr/u32-strcpy.c: Likewise.
51324         * lib/unistr/u32-strcspn.c: Likewise.
51325         * lib/unistr/u32-strdup.c: Likewise.
51326         * lib/unistr/u32-strlen.c: Likewise.
51327         * lib/unistr/u32-strmblen.c: Likewise.
51328         * lib/unistr/u32-strmbtouc.c: Likewise.
51329         * lib/unistr/u32-strncat.c: Likewise.
51330         * lib/unistr/u32-strncmp.c: Likewise.
51331         * lib/unistr/u32-strncpy.c: Likewise.
51332         * lib/unistr/u32-strnlen.c: Likewise.
51333         * lib/unistr/u32-strpbrk.c: Likewise.
51334         * lib/unistr/u32-strrchr.c: Likewise.
51335         * lib/unistr/u32-strspn.c: Likewise.
51336         * lib/unistr/u32-strstr.c: Likewise.
51337         * lib/unistr/u32-strtok.c: Likewise.
51338         * lib/unistr/u32-to-u16.c: Likewise.
51339         * lib/unistr/u32-to-u8.c: Likewise.
51340         * lib/unistr/u32-uctomb.c: Likewise.
51341         * lib/unistr/u8-check.c: Likewise.
51342         * lib/unistr/u8-chr.c: Likewise.
51343         * lib/unistr/u8-cmp.c: Likewise.
51344         * lib/unistr/u8-cpy-alloc.c: Likewise.
51345         * lib/unistr/u8-cpy.c: Likewise.
51346         * lib/unistr/u8-endswith.c: Likewise.
51347         * lib/unistr/u8-mblen.c: Likewise.
51348         * lib/unistr/u8-mbsnlen.c: Likewise.
51349         * lib/unistr/u8-mbtouc-aux.c: Likewise.
51350         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
51351         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
51352         * lib/unistr/u8-mbtouc.c: Likewise.
51353         * lib/unistr/u8-mbtoucr.c: Likewise.
51354         * lib/unistr/u8-move.c: Likewise.
51355         * lib/unistr/u8-next.c: Likewise.
51356         * lib/unistr/u8-prev.c: Likewise.
51357         * lib/unistr/u8-set.c: Likewise.
51358         * lib/unistr/u8-startswith.c: Likewise.
51359         * lib/unistr/u8-stpcpy.c: Likewise.
51360         * lib/unistr/u8-stpncpy.c: Likewise.
51361         * lib/unistr/u8-strcat.c: Likewise.
51362         * lib/unistr/u8-strchr.c: Likewise.
51363         * lib/unistr/u8-strcmp.c: Likewise.
51364         * lib/unistr/u8-strcpy.c: Likewise.
51365         * lib/unistr/u8-strcspn.c: Likewise.
51366         * lib/unistr/u8-strdup.c: Likewise.
51367         * lib/unistr/u8-strlen.c: Likewise.
51368         * lib/unistr/u8-strmblen.c: Likewise.
51369         * lib/unistr/u8-strmbtouc.c: Likewise.
51370         * lib/unistr/u8-strncat.c: Likewise.
51371         * lib/unistr/u8-strncmp.c: Likewise.
51372         * lib/unistr/u8-strncpy.c: Likewise.
51373         * lib/unistr/u8-strnlen.c: Likewise.
51374         * lib/unistr/u8-strpbrk.c: Likewise.
51375         * lib/unistr/u8-strrchr.c: Likewise.
51376         * lib/unistr/u8-strspn.c: Likewise.
51377         * lib/unistr/u8-strstr.c: Likewise.
51378         * lib/unistr/u8-strtok.c: Likewise.
51379         * lib/unistr/u8-to-u16.c: Likewise.
51380         * lib/unistr/u8-to-u32.c: Likewise.
51381         * lib/unistr/u8-uctomb-aux.c: Likewise.
51382         * lib/unistr/u8-uctomb.c: Likewise.
51383         * lib/unitypes.h: Likewise.
51384         * lib/uniwidth.h: Likewise.
51385         * lib/uniwidth/cjk.h: Likewise.
51386         * lib/uniwidth/u16-strwidth.c: Likewise.
51387         * lib/uniwidth/u16-width.c: Likewise.
51388         * lib/uniwidth/u32-strwidth.c: Likewise.
51389         * lib/uniwidth/u32-width.c: Likewise.
51390         * lib/uniwidth/u8-strwidth.c: Likewise.
51391         * lib/uniwidth/u8-width.c: Likewise.
51392         * lib/uniwidth/width.c: Likewise.
51393
51394 2007-10-07  Bruno Haible  <bruno@clisp.org>
51395
51396         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
51397         The file is still under LGPL (see modules/inttypes).
51398
51399 2007-10-06  Bruno Haible  <bruno@clisp.org>
51400
51401         * modules/trunc (Dependencies): Add 'extensions'.
51402         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
51403         Reported by Ben Pfaff <blp@gnu.org>.
51404
51405 2007-10-06  Bruno Haible  <bruno@clisp.org>
51406
51407         * modules/freopen-tests: New file.
51408         * tests/test-freopen.c: New file.
51409
51410         * modules/fopen-tests: New file.
51411         * tests/test-fopen.c: New file.
51412
51413         * modules/fopen: New file.
51414         * lib/fopen.c: New file.
51415         * m4/fopen.m4: New file.
51416         * modules/freopen: New file.
51417         * lib/freopen.c: New file.
51418         * m4/freopen.m4: New file.
51419         * lib/stdio.in.h (fopen, freopen): New declarations.
51420         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
51421         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
51422         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
51423         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
51424         * doc/functions/fopen.texi: Mention the 'fopen' module.
51425         * doc/functions/freopen.texi: Mention the 'freopen' module.
51426
51427 2007-10-06  Bruno Haible  <bruno@clisp.org>
51428
51429         * modules/open-tests: New file.
51430         * tests/test-open.c: New file.
51431
51432         * modules/open: New file.
51433         * lib/open.c: New file.
51434         * m4/open.m4: New file.
51435         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
51436         lib/open.c does.
51437         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
51438         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
51439         macros.
51440         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
51441         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
51442         REPLACE_OPEN.
51443         * doc/functions/open.texi: Mention the 'open' module.
51444
51445 2007-10-04  Bruno Haible  <bruno@clisp.org>
51446
51447         * modules/ceill-tests: New file.
51448         * tests/test-ceill.c: New file.
51449
51450         * modules/ceill: New file.
51451         * lib/ceill.c: Replace entire file.
51452         * m4/ceill.m4: New file.
51453         * lib/math.in.h (ceill): Replace declaration.
51454         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
51455         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
51456         * doc/functions/ceill.texi: Mention the 'ceill' module.
51457         * modules/mathl (Files): Remove lib/ceill.c.
51458         (Depends-on): Add ceill.
51459
51460 2007-10-04  Bruno Haible  <bruno@clisp.org>
51461
51462         * modules/ceilf-tests: New file.
51463         * tests/test-ceilf.c: New file.
51464
51465         * modules/ceilf: New file.
51466         * lib/ceil.c: New file.
51467         * lib/ceilf.c: New file.
51468         * m4/ceilf.m4: New file.
51469         * lib/math.in.h (ceilf): New declaration.
51470         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
51471         HAVE_DECL_CEILF.
51472         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
51473         HAVE_DECL_CEILF.
51474         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
51475
51476 2007-10-04  Bruno Haible  <bruno@clisp.org>
51477
51478         * modules/floorl-tests: New file.
51479         * tests/test-floorl.c: New file.
51480
51481         * modules/floorl: New file.
51482         * lib/floorl.c: Replace entire file.
51483         * m4/floorl.m4: New file.
51484         * lib/math.in.h (floorl): Replace declaration.
51485         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
51486         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
51487         * doc/functions/floorl.texi: Mention the 'floorl' module.
51488         * modules/mathl (Files): Remove lib/floorl.c.
51489         (Depends-on): Add floorl.
51490
51491 2007-10-04  Bruno Haible  <bruno@clisp.org>
51492
51493         * modules/floorf-tests: New file.
51494         * tests/test-floorf.c: New file.
51495
51496         * modules/floorf: New file.
51497         * lib/floor.c: New file.
51498         * lib/floorf.c: New file.
51499         * m4/floorf.m4: New file.
51500         * lib/math.in.h (floorf): New declaration.
51501         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
51502         HAVE_DECL_FLOORF.
51503         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
51504         HAVE_DECL_FLOORF.
51505         * doc/functions/floorf.texi: Mention the 'floorf' module.
51506
51507 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
51508             Bruno Haible  <bruno@clisp.org>
51509
51510         Advertise for the Git server instead of the CVS server.
51511         * doc/gnulib-intro.texi (Steady Development): Mention the Git
51512         repository instead of the CVS one.
51513         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
51514         about all VCS systems generically.
51515         * doc/gnulib.texi (Introduction): Capitalize `Git'.
51516
51517 2007-10-04  Bruno Haible  <bruno@clisp.org>
51518
51519         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
51520         means.
51521         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
51522
51523 2007-10-04  Bruno Haible  <bruno@clisp.org>
51524
51525         * modules/truncl-tests: New file.
51526         * tests/test-truncl.c: New file.
51527
51528         * modules/truncl: New file.
51529         * lib/truncl.c: New file.
51530         * m4/truncl.m4: New file.
51531         * lib/math.in.h (truncl): New declaration.
51532         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
51533         HAVE_DECL_TRUNCL.
51534         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
51535         HAVE_DECL_TRUNCL.
51536         * doc/functions/truncl.texi: Mention the 'truncl' module.
51537
51538 2007-10-04  Bruno Haible  <bruno@clisp.org>
51539
51540         * modules/truncf-tests: New file.
51541         * tests/test-truncf.c: New file.
51542
51543         * modules/truncf: New file.
51544         * lib/trunc.c: Make paramerizable through USE_* macros.
51545         * lib/truncf.c: New file.
51546         * m4/truncf.m4: New file.
51547         * lib/math.in.h (truncf): New declaration.
51548         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
51549         HAVE_DECL_TRUNCF.
51550         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
51551         HAVE_DECL_TRUNCF.
51552         * doc/functions/truncf.texi: Mention the 'truncf' module.
51553
51554 2007-10-03  Bruno Haible  <bruno@clisp.org>
51555
51556         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51557         augmentation also for tests modules.
51558         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
51559         * modules/atexit-tests (Makefile.am): Likewise.
51560         * modules/binary-io-tests (Makefile.am): Likewise.
51561         * modules/c-strcase-tests (Makefile.am): Likewise.
51562         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
51563         * modules/canonicalize-tests (Makefile.am): Likewise.
51564         * modules/closein-tests (Makefile.am): Likewise.
51565         * modules/fprintf-posix-tests (Makefile.am): Likewise.
51566         * modules/freadahead-tests (Makefile.am): Likewise.
51567         * modules/fseek-tests (Makefile.am): Likewise.
51568         * modules/fseeko-tests (Makefile.am): Likewise.
51569         * modules/ftell-tests (Makefile.am): Likewise.
51570         * modules/ftello-tests (Makefile.am): Likewise.
51571         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
51572         * modules/isnanl-tests (Makefile.am): Likewise.
51573         * modules/lseek-tests (Makefile.am): Likewise.
51574         * modules/mbscasecmp-tests (Makefile.am): Likewise.
51575         * modules/mbscasestr-tests (Makefile.am): Likewise.
51576         * modules/mbschr-tests (Makefile.am): Likewise.
51577         * modules/mbscspn-tests (Makefile.am): Likewise.
51578         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
51579         * modules/mbspbrk-tests (Makefile.am): Likewise.
51580         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
51581         * modules/mbsrchr-tests (Makefile.am): Likewise.
51582         * modules/mbsspn-tests (Makefile.am): Likewise.
51583         * modules/mbsstr-tests (Makefile.am): Likewise.
51584         * modules/printf-posix-tests (Makefile.am): Likewise.
51585         * modules/snprintf-posix-tests (Makefile.am): Likewise.
51586         * modules/sprintf-posix-tests (Makefile.am): Likewise.
51587         * modules/tsearch-tests (Makefile.am): Likewise.
51588         * modules/uniname/uniname-tests (Makefile.am): Likewise.
51589         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
51590         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
51591         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
51592         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
51593         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
51594         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
51595         * modules/vprintf-posix-tests (Makefile.am): Likewise.
51596         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
51597         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
51598         * modules/xstrtoimax-tests (Makefile.am): Likewise.
51599         * modules/xstrtol-tests (Makefile.am): Likewise.
51600         * modules/xstrtoumax-tests (Makefile.am): Likewise.
51601         * modules/yesno-tests (Makefile.am): Likewise.
51602
51603 2007-10-03  Bruno Haible  <bruno@clisp.org>
51604
51605         * modules/trunc-tests: New file.
51606         * tests/test-trunc.c: New file.
51607
51608         * modules/trunc: New file.
51609         * lib/trunc.c: New file.
51610         * m4/trunc.m4: New file.
51611         * lib/math.in.h (trunc): New declaration.
51612         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
51613         HAVE_DECL_TRUNC.
51614         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
51615         HAVE_DECL_TRUNC.
51616         * doc/functions/trunc.texi: Mention the 'trunc' module.
51617
51618 2007-10-03  Bruno Haible  <bruno@clisp.org>
51619
51620         * tests/test-fpending.c: New file, mostly copied
51621         from coreutils/lib/t-fpending.c.
51622         * modules/fpending-tests: New file.
51623
51624 2007-10-03  Bruno Haible  <bruno@clisp.org>
51625
51626         Port the stdio extensions to QNX (untested).
51627         * lib/fseterr.c (fseterr): Add support for QNX.
51628         * lib/fbufmode.c (fbufmode): Likewise.
51629         * lib/freadable.c (freadable): Likewise.
51630         * lib/fwritable.c (fwritable): Likewise.
51631         * lib/freading.c (freading): Likewise.
51632         * lib/fwriting.c (fwriting): Likewise.
51633         * lib/freadahead.c (freadahed): Likewise.
51634         * lib/fpurge.c (fpurge): Likewise.
51635         * lib/fseeko.c (rpl_fseeko): Likewise.
51636
51637 2007-10-03  Bruno Haible  <bruno@clisp.org>
51638             Jim Meyering  <jim@meyering.net>
51639             Eric Blake  <ebb9@byu.net>
51640
51641         * doc/relocatable.texi: Use @command instead of @program.
51642
51643 2007-10-02  Jim Meyering  <jim@meyering.net>
51644
51645         Perform one more "_.h" -> ".in.h" substitution.
51646         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
51647         instead of unistd_.h here, too.
51648
51649 2007-10-01  Bruno Haible  <bruno@clisp.org>
51650
51651         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
51652         Needed for the alloca-opt module.
51653
51654 2007-09-30  Bruno Haible  <bruno@clisp.org>
51655
51656         * lib/alloca.in.h: Renamed from lib/alloca_.h.
51657         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
51658         alloca_.h.
51659         * lib/argz.in.h: Renamed from lib/argz_.h.
51660         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
51661         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
51662         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
51663         byteswap_.h.
51664         * lib/dirent.in.h: Renamed from lib/dirent_.h.
51665         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
51666         dirent_.h.
51667         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
51668         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
51669         fcntl_.h.
51670         * lib/float.in.h: Renamed from lib/float_.h.
51671         * modules/float (Files, Makefile.am): Use float.in.h instead of
51672         float_.h.
51673         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
51674         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
51675         fnmatch_.h.
51676         * lib/getopt.in.h: Renamed from lib/getopt_.h.
51677         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
51678         getopt_.h.
51679         * lib/glob.in.h: Renamed from lib/glob_.h.
51680         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
51681         * lib/iconv.in.h: Renamed from lib/iconv_.h.
51682         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
51683         iconv_.h.
51684         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
51685         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
51686         inttypes_.h.
51687         * lib/locale.in.h: Renamed from lib/locale_.h.
51688         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
51689         locale_.h.
51690         * lib/math.in.h: Renamed from lib/math_.h.
51691         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
51692         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
51693         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
51694         of netinet_in_.h. Add dependency.
51695         * lib/poll.in.h: Renamed from lib/poll_.h.
51696         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
51697         * lib/search.in.h: Renamed from lib/search_.h.
51698         * modules/search (Files, Makefile.am): Use search.in.h instead of
51699         search_.h.
51700         * lib/signal.in.h: Renamed from lib/signal_.h.
51701         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
51702         _signal.h.
51703         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
51704         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
51705         stdbool_.h.
51706         * lib/stdint.in.h: Renamed from lib/stdint_.h.
51707         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
51708         stdint_.h.
51709         * lib/stdio.in.h: Renamed from lib/stdio_.h.
51710         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
51711         stdio_.h.
51712         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
51713         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
51714         stdlib_.h.
51715         * lib/string.in.h: Renamed from lib/string_.h.
51716         * modules/string (Files, Makefile.am): Use string.in.h instead of
51717         string_.h.
51718         * doc/gnulib-tool.texi (Initial import): Update.
51719         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
51720         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
51721         of sys_select_.h. Add dependency.
51722         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
51723         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
51724         of sys_socket_.h.
51725         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
51726         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
51727         sys_stat_.h.
51728         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
51729         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
51730         sys_time_.h.
51731         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
51732         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
51733         sysexits_.h.
51734         * lib/time.in.h: Renamed from lib/time_.h.
51735         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
51736         * lib/unistd.in.h: Renamed from lib/unistd_.h.
51737         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
51738         unistd_.h.
51739         * lib/wchar.in.h: Renamed from lib/wchar_.h.
51740         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
51741         wchar_.h.
51742         * lib/wctype.in.h: Renamed from lib/wctype_.h.
51743         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
51744         wctype_.h.
51745         * build-aux/bootstrap (slurp): Update.
51746         * lib/.cppi-disable: Update.
51747
51748 2007-09-30  Bruno Haible  <bruno@clisp.org>
51749
51750         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
51751         Needed on BeOS.
51752
51753 2007-09-30  Bruno Haible  <bruno@clisp.org>
51754
51755         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
51756
51757 2007-09-29  Bruno Haible  <bruno@clisp.org>
51758
51759         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
51760
51761 2007-09-29  Bruno Haible  <bruno@clisp.org>
51762
51763         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
51764         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
51765         * build-aux/install-reloc: Compile also areadlink.c.
51766         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
51767
51768 2007-09-29  Bruno Haible  <bruno@clisp.org>
51769
51770         * gnulib-tool (func_emit_initmacro_done): Indentation.
51771
51772 2007-09-29  Bruno Haible  <bruno@clisp.org>
51773
51774         * README: Add CVS checkout update instructions.
51775         Info from Bob Proulx <bob@proulx.com>.
51776
51777 2007-09-28  Eric Blake  <ebb9@byu.net>
51778
51779         Provide move-if-change.
51780         * build-aux/move-if-change: New file, based on best practice
51781         rather than any canonical upstream location.
51782
51783 2007-09-28  Jim Meyering  <jim@meyering.net>
51784
51785         Fix canonicalize loop-detection corner case.
51786         Do not attempt to stat the symlink values stored via seen_triple.
51787         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
51788         on linux-2.6.18, (but not 2.6.22).
51789         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
51790         triple_compare.  The former compares dev,ino,filename, while the latter
51791         would actually stat dirname(filename) when dev and ino were equal.
51792         * lib/hash-triple.c: Install <string.h>.
51793         (STREQ): Define.
51794         (triple_compare_ino_str): New function.
51795         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
51796
51797 2007-09-28  Eric Blake  <ebb9@byu.net>
51798
51799         Enforce that AC_REPLACE_FUNCS files exist.
51800         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
51801         override check for typos.
51802
51803         Fix test-closein on Solaris 10.
51804         * tests/test-closein.c (main): Don't assume stdin can be inherited
51805         closed on all systems.
51806         * tests/test-closein.sh: Likewise.
51807         Reported by Piotr Tarnowski.
51808
51809 2007-09-28  Jim Meyering  <jim@meyering.net>
51810
51811         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
51812
51813 2007-09-27  Jim Meyering  <jim@meyering.net>
51814
51815         canonicalize: Avoid a false-positive cycle failure.
51816         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
51817         Sort.  Remove cycle-check.
51818         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
51819         not cycle-check.h.
51820         (seen_triple): New function.
51821         (canonicalize_filename_mode): Use it instead of cycle-check.
51822         * tests/test-canonicalize.c: Add a test for this bug.
51823         * tests/test-canonicalize.sh: Set up and run the test.
51824
51825         New module, file-set, from coreutils.
51826         * modules/file-set: Define it.
51827         * lib/file-set.c, lib/file-set.h: Implement.
51828
51829         New module, hash-triple, from coreutils.
51830         * modules/hash-triple: Define it.
51831         * lib/hash-triple.c, lib/hash-triple.h: Implement.
51832
51833 2007-09-25  Eric Blake  <ebb9@byu.net>
51834
51835         Fix strerror on Interix.
51836         * lib/string_.h (strerror): Declare replacement.
51837         * doc/functions/strerror.texi (strerror): Document the Interix
51838         shortcoming.
51839         * modules/string (Makefile.am): Support new hooks.
51840         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
51841         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
51842         gl_FUNC_STRERROR_SEPARATE.
51843         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
51844         * lib/strerror.c (rpl_strerror): Provide replacement.
51845         * modules/strerror (Depends-on): Add string.
51846         (configure.ac): Detect use of module.
51847         * tests/test-strerror.c: New file.
51848         * modules/strerror-tests: New test module.
51849         * modules/argp (Depends-on): Add strerror.
51850         * modules/error (Depends-on): Likewise.
51851         Reported by Martin Koeppe.
51852
51853 2007-09-24  Bruno Haible  <bruno@clisp.org>
51854
51855         * README: Update git instructions.
51856
51857 2007-09-24  Eric Blake  <ebb9@byu.net>
51858
51859         Revert fpending breakage from 2007-09-08.
51860         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
51861         __fpending.c.
51862
51863 2007-09-24  Jim Meyering  <jim@meyering.net>
51864
51865         filenamecat.c: Add a test.
51866         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
51867         showing how the function works when DIR is the empty string.
51868
51869 2007-09-21  Simon Josefsson  <simon@josefsson.org>
51870
51871         * tests/test-canonicalize.sh: Turn on executable bit.
51872
51873 2007-09-19  Eric Blake  <ebb9@byu.net>
51874
51875         * README: Update CVS instructions.
51876
51877 2007-09-18  Bruno Haible  <bruno@clisp.org>
51878
51879         * modules/areadlink: New file.
51880         * lib/areadlink.h (areadlink): New declaration.
51881         * lib/areadlink.c: New file, based on lib/xreadlink.c.
51882
51883 2007-09-17  Jim Meyering  <jim@meyering.net>
51884
51885         * lib/savewd.c (ESTALE) [!defined]: Define.
51886         Reported to be required on Interix by Martin Koeppe.
51887
51888 2007-09-17  Bruno Haible  <bruno@clisp.org>
51889
51890         * gnulib-tool (func_version): Use $version.
51891
51892 2007-09-16  Bruno Haible  <bruno@clisp.org>
51893
51894         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
51895         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
51896         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
51897         Reported by Greg Schafer <gschafer@zip.com.au>.
51898
51899 2007-09-15  Bruno Haible  <bruno@clisp.org>
51900
51901         * gnulib-tool (sed): Try a little harder to make bash understand the
51902         alias.
51903         Reported by Bruce Korb <bruce.korb@gmail.com>.
51904
51905 2007-09-13  Eric Blake  <ebb9@byu.net>
51906
51907         * ChangeLog: Remove conflict markers.
51908
51909 2007-09-13  Simon Josefsson  <simon@josefsson.org>
51910
51911         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
51912         Reported by Bruno Haible <bruno@clisp.org>.
51913
51914 2007-09-12  Bruno Haible  <bruno@clisp.org>
51915
51916         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
51917         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
51918         is not defined.
51919
51920 2007-09-12  Eric Blake  <ebb9@byu.net>
51921
51922         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
51923         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
51924         Autoconf definition.
51925         * modules/euidaccess (Depends-on): Add extensions, for
51926         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
51927         * modules/fnmatch (Depends-on): Likewise.
51928         * modules/getaddrinfo (Depends-on): Likewise.
51929         * modules/getdelim (Depends-on): Likewise.
51930         * modules/getline (Depends-on): Likewise.
51931         * modules/getsubopt (Depends-on): Likewise.
51932         * modules/gettext (Depends-on): Likewise.
51933         * modules/group-member (Depends-on): Likewise.
51934         * modules/mbchar (Depends-on): Likewise.
51935         * modules/memmem (Depends-on): Likewise.
51936         * modules/mempcpy (Depends-on): Likewise.
51937         * modules/memrchr (Depends-on): Likewise.
51938         * modules/pagealign_alloc (Depends-on): Likewise.
51939         * modules/readutmp (Depends-on): Likewise.
51940         * modules/stpcpy (Depends-on): Likewise.
51941         * modules/stpncpy (Depends-on): Likewise.
51942         * modules/strchrnul (Depends-on): Likewise.
51943         * modules/strndup (Depends-on): Likewise.
51944         * modules/strsep (Depends-on): Likewise.
51945         * modules/strverscmp (Depends-on): Likewise.
51946         * modules/vasprintf (Depends-on): Likewise.
51947         * modules/wcwidth (Depends-on): Likewise.
51948         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
51949         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
51950         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
51951         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
51952         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
51953         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
51954         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
51955         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
51956         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
51957         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
51958         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51959         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
51960         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
51961         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
51962         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
51963         * m4/readutmp.m4 (gl_READUTMP): Likewise.
51964         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
51965         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
51966         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
51967         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
51968         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51969         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
51970         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
51971         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
51972         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
51973         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
51974         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
51975         so that lock.m4 can be used in gettext without extensions module.
51976
51977 2007-09-11  Bruno Haible  <bruno@clisp.org>
51978
51979         * m4/isc-posix.m4: Remove file.
51980         Suggested by Eric Blake.
51981
51982 2007-09-11  Eric Blake  <ebb9@byu.net>
51983
51984         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
51985
51986 2007-09-10  Bruno Haible  <bruno@clisp.org>
51987
51988         * posix-modules: Fix typo in error message.
51989         Reported by Matt <mkraai@beckman.com>.
51990
51991 2007-09-09  Bruno Haible  <bruno@clisp.org>
51992
51993         * doc/functions/getdelim.texi: Update list of platforms lacking the
51994         function.
51995         * doc/functions/getline.texi: Likewise.
51996
51997 2007-09-09  Jim Meyering  <jim@meyering.net>
51998
51999         * lib/hash.c (hash_initialize): Detect calloc failure.
52000         Reported by Bruno Haible.
52001
52002 2007-09-09  Bruno Haible  <bruno@clisp.org>
52003
52004         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
52005         malloc or realloc fails.
52006
52007 2007-09-09  Bruno Haible  <bruno@clisp.org>
52008
52009         * modules/getcwd (Depends-on): Add malloc-posix.
52010         * modules/glob (Depends-on): Likewise.
52011         * modules/putenv (Depends-on): Likewise.
52012         * modules/strdup (Depends-on): Likewise.
52013         * modules/getdelim (Depends-on): Add realloc-posix.
52014         * modules/read-file (Depends-on): Likewise.
52015
52016 2007-09-09  Bruno Haible  <bruno@clisp.org>
52017
52018         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
52019         (gl_FUNC_MALLOC_POSIX): Require it.
52020         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
52021         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
52022         * modules/realloc (Files): Add m4/malloc.m4.
52023         * modules/calloc (Files): Likewise.
52024
52025 2007-09-09  Bruno Haible  <bruno@clisp.org>
52026
52027         * modules/malloc-posix: New file.
52028         * modules/malloc (Depends-on): Add malloc-posix.
52029         * lib/malloc.c: Include errno.h.
52030         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
52031         and a POSIX-compatible malloc into a single function. Set ENOMEM
52032         when returning NULL.
52033         * m4/malloc.m4: New file.
52034         * doc/functions/malloc.texi: Mention the malloc-posix module.
52035         * lib/stdlib_.h (malloc): New declaration.
52036         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
52037         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
52038         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
52039         and HAVE_MALLOC_POSIX.
52040
52041 2007-09-09  Bruno Haible  <bruno@clisp.org>
52042
52043         * modules/realloc-posix: New file.
52044         * modules/realloc (Depends-on): Add realloc-posix.
52045         * lib/realloc.c: Include errno.h.
52046         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
52047         and a POSIX-compatible realloc into a single function. Set ENOMEM
52048         when returning NULL.
52049         * m4/realloc.m4: New file.
52050         * doc/functions/realloc.texi: Mention the realloc-posix module.
52051         * lib/stdlib_.h (realloc): New declaration.
52052         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
52053         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
52054         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
52055         and HAVE_REALLOC_POSIX.
52056
52057 2007-09-09  Bruno Haible  <bruno@clisp.org>
52058
52059         * modules/calloc-posix: New file.
52060         * modules/calloc (Depends-on): Add calloc-posix.
52061         * lib/calloc.c: Include errno.h.
52062         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
52063         and a POSIX-compatible calloc into a single function. Set ENOMEM
52064         when returning NULL.
52065         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
52066         * doc/functions/calloc.texi: Mention the calloc-posix module.
52067         * lib/stdlib_.h (calloc): New declaration.
52068         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
52069         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
52070         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
52071         and HAVE_CALLOC_POSIX.
52072
52073 2007-09-09  Bruno Haible  <bruno@clisp.org>
52074
52075         Allow for modules to show an arbitrary notice.
52076         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
52077         * gnulib-tool: New option --extract-notice.
52078         (func_usage): Document it.
52079         (sed_extract_prog): Update.
52080         (func_get_notice): New function.
52081         (func_modules_notice): New function.
52082         (func_import, func_create_testdir): Invoke it.
52083         Suggested by Jim Meyering.
52084
52085 2007-09-09  Bruno Haible  <bruno@clisp.org>
52086
52087         * gnulib-tool: New options --verbose, --quiet.
52088         (func_usage): Document them.
52089         (verbose): New variable.
52090         (func_execute_command): New function.
52091         (func_import): Don't show the module list and the file list if
52092         $verbose < 0.
52093         (func_create_testdir): Likewise. Use func_execute_command.
52094         (func_create_megatestdir): Use func_execute_command.
52095
52096 2007-09-08  Bruno Haible  <bruno@clisp.org>
52097
52098         * gnulib-tool (func_import): Prefer rsync over wget when available,
52099         for fetching the PO files.
52100
52101 2007-09-08  Bruno Haible  <bruno@clisp.org>
52102
52103         * posix-modules: New file. Portions copied from gnulib-tool.
52104         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
52105
52106 2007-09-08  Jim Meyering  <jim@meyering.net>
52107
52108         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
52109         * lib/fpending.h: Rename from __fpending.h.
52110         * lib/fpending.c: Rename from __fpending.c.
52111         Include "fpending.h", not "__fpending.h".
52112         * lib/__fpending.h, lib/__fpending.c: Remove files.
52113         * modules/fpending (Files): Reflect new file names.
52114         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
52115
52116 2007-09-08  Bruno Haible  <bruno@clisp.org>
52117
52118         * m4/inttypes-h.m4: Remove stub file.
52119
52120 2007-09-07  Simon Josefsson  <simon@josefsson.org>
52121
52122         * doc/headers/stdint.texi: Discuss #include_next issue.
52123
52124 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
52125
52126         * build-aux/bootstrap: Remove obsolete comment about wget --help.
52127
52128 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52129
52130         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
52131         in variable name.
52132
52133 2007-09-03  Jim Meyering  <jim@meyering.net>
52134
52135         New module: git-version-gen.
52136         * modules/git-version-gen: New file.
52137
52138         Import changes from coreutils for bootstrap script.
52139
52140         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
52141
52142         bootstrap: uses rsync to download the .po files
52143         * build-aux/bootstrap (po_download_command_format): New global.
52144         (download_po_files): Use rsync.
52145         (update_po_files): Don't remove .po files after download,
52146         so future rsync runs can take advantage of the copies.
52147
52148         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
52149
52150         Solve the unnecessary-.po-file-regeneration problem once and for all.
52151         * build-aux/bootstrap (download_po_files): New function, renamed from
52152         get_translations.  Now, downloads, but doesn't update LINGUAS.
52153         (update_po_files): New function.
52154
52155         bootstrap: Ignore more.
52156         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
52157         uniwidth to e.g., lib/.gitignore.
52158         (slurp): Handle the sys_stat_.h -> sys mapping, too.
52159
52160         * build-aux/bootstrap: New setting: vc_ignore.
52161         (insert_sorted_if_absent): Create $file if absent.
52162         Adapt to new, possibly empty, list: $vc_ignore.
52163
52164         bootstrap: generate more ignorable names
52165         * build-aux/bootstrap (slurp): When generating ignorable names,
52166         also map .sin to .sed, .gperf to .c, and .y to .c.
52167
52168 2007-09-03  Jim Meyering  <jim@meyering.net>
52169
52170         * build-aux/git-version-gen: New file, from coreutils.  For details, see
52171         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
52172
52173 2007-09-02  Bruno Haible  <bruno@clisp.org>
52174
52175         Fix mis-recognition of 'mcs' on QNX 6.
52176         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
52177         output contains the string "Mono".
52178         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
52179         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
52180
52181 2007-09-01  Bruno Haible  <bruno@clisp.org>
52182
52183         Fix collision between uniwidth/* and linebreak modules.
52184         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
52185         u32_width): Remove declarations.
52186         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
52187         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
52188         streq3, streq2, streq1, streq0): Remove functions.
52189         (STREQ): Remove macro.
52190         (is_cjk_encoding): Remove function.
52191         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
52192         (uc_width, u8_width, u16_width, u32_width): Remove functions.
52193         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
52194         * NEWS: Document the change.
52195
52196 2007-09-01  Bruno Haible  <bruno@clisp.org>
52197
52198         * lib/streq.h: Add double-inclusion guard.
52199
52200 2007-09-01  Karl Berry  <karl@gnu.org>
52201
52202         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
52203
52204 2007-08-28  Jim Meyering  <jim@meyering.net>
52205
52206         Rename mreadlink_with_size to areadlink_with_size.
52207         * NEWS: Document the change.
52208         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
52209         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
52210         * lib/mreadlink.h: Rename this to...
52211         * lib/areadlink.h: ...this.
52212         * modules/mreadlink-with-size: Rename this to...
52213         * modules/areadlink-with-size: ...this.
52214         * lib/canonicalize.c: Reflect the renaming.
52215         * modules/canonicalize: Likewise.
52216
52217 2007-08-26  Bruno Haible  <bruno@clisp.org>
52218
52219         * gnulib-tool (func_import): When deciding which files to remove,
52220         consider also dangling symbolic links.
52221         Reported by Eric Blake.
52222
52223 2007-08-26  Bruno Haible  <bruno@clisp.org>
52224
52225         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
52226
52227 2007-08-23  Simon Josefsson  <simon@josefsson.org>
52228
52229         * lib/readline.c: Don't include getline.h, the prototype is now
52230         found in stdio.h.
52231
52232 2007-08-23  Jim Meyering  <jim@meyering.net>
52233
52234         Getdelim touchup.
52235         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
52236         around the funlockfile call, since funlockfile never sets errno.
52237         Don't set errno upon failed realloc.
52238
52239 2007-08-22  Eric Blake  <ebb9@byu.net>
52240
52241         Getline touchups.
52242         * lib/getdelim.c (getdelim): Revert regression that required *n to
52243         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
52244         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
52245         getdelim, rather than whether implementation is missing.
52246         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
52247         * lib/stdio_.h (getline): Also declare if replacement is
52248         required.
52249         * doc/functions/getdelim.texi: New file.
52250         * doc/functions/getline.texi: Likewise.
52251         * doc/gnulib.texi (Function Substitutes): Add new files.
52252         Reported by Bruno Haible.
52253
52254 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
52255
52256         * users.txt: Add Guile.
52257
52258 2007-08-22  Eric Blake  <ebb9@byu.net>
52259
52260         * tests/test-getdelim.c (main): Use remove, not unlink.
52261         * tests/test-getline.c (main): Likewise.
52262
52263         Move getline and getdelim into stdio.h, per POSIX 200x.
52264         * modules/getline (Files): Remove getline.h.
52265         (Depends-on): Add stdio.
52266         (configure.ac): Add module indicator.
52267         * modules/getdelim (Files): Remove getdelim.h.
52268         (Depends-on): Add stdio.
52269         (configure.ac): Add module indicator.
52270         * modules/stdio (Makefile.am): Work with new indicators.
52271         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
52272         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
52273         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
52274         * lib/getdelim.h: Delete.
52275         * lib/getline.h: Delete.
52276         * lib/stdio_.h (getdelim, getline): Declare.
52277         * modules/getdelim-tests: New module.
52278         * modules/getline-tests: Likewise.
52279         * tests/test-getdelim.c: New file.
52280         * tests/test-getline.c: Likewise.
52281         * NEWS: Document the change.
52282         * lib/getline.c: Update choice of header.
52283         * lib/csharpcomp.c: Likewise.
52284         * lib/getpass.c: Likewise.
52285         * lib/javacomp.c: Likewise.
52286         * lib/javaversion.c: Likewise.
52287         * lib/yesno.c: Likewise.
52288         * lib/getdelim.c: Likewise.
52289         (getdelim): Set errno on failure, and avoid memory leak.
52290
52291 2007-08-19  Bruno Haible  <bruno@clisp.org>
52292
52293         * modules/closein (Depends-on): Add freadahead.
52294         * lib/closein.c: Include freadahead.h.
52295         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
52296         is zero.
52297
52298 2007-08-19  Bruno Haible  <bruno@clisp.org>
52299
52300         * modules/freadahead-tests: New file.
52301         * tests/test-freadahead.sh: New file.
52302         * tests/test-freadahead.c: New file.
52303
52304         * modules/freadahead: New file.
52305         * lib/freadahead.h: New file.
52306         * lib/freadahead.c: New file.
52307         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
52308         fbufmode, fpurge, freadable, fwritable.
52309
52310 2007-08-19  Eric Blake  <ebb9@byu.net>
52311
52312         Test yesno in combination with closein.
52313         * lib/yesno.c (yesno): Document use of stdin.
52314         * modules/yesno-tests (Files): New module.
52315         * tests/test-yesno.c (main): New file.
52316         * tests/test-yesno.sh: Likewise.
52317
52318 2007-08-19  Bruno Haible  <bruno@clisp.org>
52319
52320         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
52321         * lib/fseeko.c (rpl_fseeko): Likewise.
52322         * lib/fseterr.c (fseterr): Likewise.
52323
52324 2007-08-19  Bruno Haible  <bruno@clisp.org>
52325
52326         * tests/test-lseek.c (main): Disable a test for BeOS.
52327         * doc/functions/lseek.texi: Document the BeOS bug.
52328
52329 2007-08-19  Bruno Haible  <bruno@clisp.org>
52330             Eric Blake  <ebb9@byu.net>
52331
52332         * lib/lseek.c: Include <sys/stat.h>.
52333         (rpl_lseek): Add workaround code also for Unix platforms.
52334         Needed for BeOS.
52335         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
52336         * doc/functions/lseek.texi: Document BeOS definiency.
52337
52338 2007-08-18  Bruno Haible  <bruno@clisp.org>
52339
52340         * modules/fstrcmp-tests: New file.
52341         * tests/test-fstrcmp.c: New file.
52342
52343 2007-08-18  Bruno Haible  <bruno@clisp.org>
52344
52345         * modules/fstrcmp: New file, from GNU gettext with modifications.
52346         * lib/fstrcmp.h: New file, from GNU gettext.
52347         * lib/fstrcmp.c: New file, from GNU gettext.
52348         * MODULES.html.sh (String handling): Add fstrcmp.
52349
52350 2007-08-18  Bruno Haible  <bruno@clisp.org>
52351
52352         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
52353         'bool'.
52354         (diag, compareseq): Remove const from the ctxt argument.
52355         (USE_HEURISTIC): Undefine at the end.
52356
52357 2007-08-18  Jim Meyering  <jim@meyering.net>
52358
52359         New file: lib/idcache.h
52360         * NEWS: Mention the addition.
52361         * modules/idcache (Files): Add lib/idcache.h
52362         * lib/idcache.c: Include "idcache.h".
52363         Don't include <sys/types.h>.
52364         Add a FIXME comment.
52365         Move file-scoped "static" declarations to the top.
52366         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
52367
52368 2007-08-17  Bruno Haible  <bruno@clisp.org>
52369         and Paul Eggert  <eggert@cs.ucla.edu>
52370
52371         * MODULES.html.sh: Add diffseq.
52372         * modules/diffseq: New file.
52373         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
52374         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
52375
52376 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
52377
52378         Import changes from coreutils for bootstrap script.
52379
52380         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
52381
52382         * build-aux/bootstrap (slurp): Work even in environments where
52383         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
52384         current code does not slurp files whose names start with ".", and
52385         this looks like it might be a troublesome area.
52386
52387         2007-07-11  Jim Meyering  <jim@meyering.net>
52388
52389         If there's a GPL vN copyright comment, require that N == 3.
52390
52391         2007-07-08  Jim Meyering  <jim@meyering.net>
52392
52393         Run the coreutils-specific code only if tests/Makefile.am.in exists.
52394         * build-aux/bootstrap (mam_template): Move definition out of loop.
52395
52396         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
52397
52398         * build-aux/bootstrap (symlink_to_dir): Rename function from
52399         symlink_to_gnulib.  Add a directory parameter.  Update all
52400         callers.
52401         (cp_mark_as_generated): Also check for -- and link to -- files in
52402         gl/.
52403
52404         2007-07-08  Jim Meyering  <jim@meyering.net>
52405
52406         Adapt to deeper hierarchy in gnulib.
52407         * build-aux/bootstrap (symlink_to_dir): If the destination
52408         directory doesn't exist, create it. This is required at least for
52409         "lib/uniwidth/cjk.h".
52410
52411         2007-05-15  Jim Meyering  <jim@meyering.net>
52412
52413         * build-aux/bootstrap: Now that generated Makefile.am files
52414         are no longer under version control, they must be created at
52415         bootstrap time.
52416
52417 2007-08-14  Ben Pfaff  <blp@gnu.org>
52418
52419         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
52420
52421 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
52422
52423         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
52424         given the changes below.
52425         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
52426         even on hosts that have padding bits beyond the supported 64.
52427
52428 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
52429
52430         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
52431         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
52432         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
52433         depends on it.
52434         (xstrtol_error): Remove.
52435         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
52436         but with a different signature.
52437         (ATTRIBUTE_NORETURN, __attribute__): New macros.
52438         * lib/xstrtol-error.c: Include exitfail.h.
52439         (xstrtol_fatal): New function, with a different signature from the
52440         old xstrtol_error, so that the caller need not worry about passing
52441         in an exit status, or about storage management of the option argument.
52442         (xstrtol_error): Now a static function.  Redo signature to
52443         implement xstrtol_fatal.  Output the correct number of hyphens in
52444         front of the option so that the caller need not worry about
52445         storage management.
52446         (N_): New macro.
52447         (_): Remove; not used now.
52448         * modules/xstrtol: Depend on getopt.
52449         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
52450         of old STRTOL_FATAL_ERROR macro.
52451         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
52452         of test program.
52453         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
52454         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
52455
52456 2007-08-08  Eric Blake  <ebb9@byu.net>
52457
52458         * lib/xstrtol-error.c: Add missing include.
52459
52460         Move xstrtol messages into gnulib domain, when --pobase is used.
52461         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
52462         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
52463         * modules/xstrtol (Files): Distribute new file.
52464         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
52465         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
52466         * tests/test-xstrtol.c: ...into new file.
52467         * tests/test-xstrtoul.c: Also test xstrtoul.
52468         * tests/test-xstrtoimax.c: Also test xstrtoimax.
52469         * tests/test-xstrtoumax.c: Also test xstrtoumax.
52470         * tests/test-xstrtol.sh: Drive the tests.
52471         * tests/test-xstrtoimax.sh: Likewise.
52472         * tests/test-xstrtoumax.sh: Likewise.
52473         * modules/xstrtol-tests: New module.
52474         * modules/xstrtoimax-tests: Likewise.
52475         * modules/xstrtoumax-tests: Likewise.
52476
52477 2007-08-08  Jim Meyering  <jim@meyering.net>
52478
52479         New function: mfile_name_concat.
52480         * lib/filenamecat.c (mfile_name_concat): New function, just like
52481         file_name_concat, but return NULL upon failure rather than exiting
52482         with a diagnostic.
52483         * lib/filenamecat.h: Declare it.
52484
52485 2007-08-07  Bruno Haible  <bruno@clisp.org>
52486
52487         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
52488         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
52489         warning from gcc.
52490         Reported by Eric Blake.
52491
52492 2007-08-07  Simon Josefsson  <simon@josefsson.org>
52493
52494         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
52495         * modules/crypto/arcfour (License): Likewise.
52496         * modules/crypto/des-tests (License): Likewise.
52497         * modules/crypto/gc-arctwo-tests (License): Likewise.
52498         * modules/crypto/gc-des-tests (License): Likewise.
52499         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
52500         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
52501         * modules/crypto/gc-md2-tests (License): Likewise.
52502         * modules/crypto/gc-md4-tests (License): Likewise.
52503         * modules/crypto/gc-md5-tests (License): Likewise.
52504         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
52505         * modules/crypto/gc-rijndael-tests (License): Likewise.
52506         * modules/crypto/gc-sha1-tests (License): Likewise.
52507         * modules/crypto/gc-tests (License): Likewise.
52508         * modules/crypto/hmac-md5 (License): Likewise.
52509         * modules/crypto/hmac-sha1 (License): Likewise.
52510         * modules/crypto/md2-tests (License): Likewise.
52511         * modules/crypto/md4-tests (License): Likewise.
52512         * modules/crypto/md5 (License): Likewise.
52513         * modules/crypto/rijndael (License): Likewise.
52514         * modules/crypto/sha1 (License): Likewise.
52515         * modules/memxor (License): Likewise.
52516
52517 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
52518         and Bruno Haible  <bruno@clisp.org>
52519
52520         * NEWS: Describe interface changes to human, xstrtol.
52521         * lib/human.h: Include <xstrtol.h>.
52522         (human_options): Return enum strtol_error, not int.  Remove
52523         bool arg; take int * instead.
52524         * lib/human.c: Don't include "gettext.h".
52525         (_): Remove; no longer used.
52526         Don't include <xstrtol.h>, since human.h does it.
52527         (human_options): Adjust to abovementioned interface changes.
52528         Do not report error to stderr; that's now the caller's
52529         responsibility.
52530         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
52531         interface change.
52532         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
52533         Str, Argument_type_string.  All uses changed.  Put " argument"
52534         in diagnostics to make them clearer.  Change wording of suffix
52535         message for clarity.
52536         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
52537         Argument_type_string.
52538         (STRTOL_FATAL_WARN): Remove; no longer used.
52539         * modules/human (Depends-on): Remove gettext-h.
52540
52541 2007-08-06  Simon Josefsson  <simon@josefsson.org>
52542
52543         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
52544
52545 2007-07-31  Bruno Haible  <bruno@clisp.org>
52546
52547         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
52548         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
52549         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
52550
52551 2007-07-31  Bruno Haible  <bruno@clisp.org>
52552
52553         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
52554         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
52555
52556 2007-07-30  Bruno Haible  <bruno@clisp.org>
52557
52558         * modules/base64 (License): Use the synonymous term "LGPLv2+".
52559         * modules/c-ctype (License): Likewise.
52560         * modules/c-strcase (License): Likewise.
52561         * modules/check-version (License): Likewise.
52562         * modules/iconv (License): Likewise.
52563         * modules/iconv_open (License): Likewise.
52564         * modules/read-file (License): Likewise.
52565         * modules/striconv (License): Likewise.
52566         * modules/strverscmp (License): Likewise.
52567         * modules/vasprintf (License): Likewise.
52568         * modules/crypto/des (License): Likewise.
52569         * modules/crypto/gc (License): Likewise.
52570         * modules/crypto/gc-arcfour (License): Likewise.
52571         * modules/crypto/gc-arctwo (License): Likewise.
52572         * modules/crypto/gc-des (License): Likewise.
52573         * modules/crypto/gc-hmac-md5 (License): Likewise.
52574         * modules/crypto/gc-hmac-sha1 (License): Likewise.
52575         * modules/crypto/gc-md2 (License): Likewise.
52576         * modules/crypto/gc-md4 (License): Likewise.
52577         * modules/crypto/gc-md5 (License): Likewise.
52578         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
52579         * modules/crypto/gc-random (License): Likewise.
52580         * modules/crypto/gc-rijndael (License): Likewise.
52581         * modules/crypto/gc-sha1 (License): Likewise.
52582         * modules/crypto/md2 (License): Likewise.
52583         * modules/crypto/md4 (License): Likewise.
52584
52585 2007-07-30  Jim Meyering  <jim@meyering.net>
52586
52587         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
52588         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
52589         it has valid stat data.  This bug would cause du not to count the
52590         sizes of inaccessible directories.
52591         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
52592         in <http://bugzilla.redhat.com/250077>.
52593
52594 2007-07-25  Peter O'Gorman  <peter@pogma.com>
52595             Bruno Haible  <bruno@clisp.org>
52596
52597         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
52598         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
52599         #include_next, gives a diagnostic about it, but reports no error in
52600         the exit code.
52601         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
52602
52603 2007-07-24  Ben Pfaff  <blp@gnu.org>
52604
52605         Improve name: "count-one-bits" is better than "popcount".
52606         * MODULES.html.sh: Update name.
52607         * lib/popcount.h: Renamed lib/count-one-bits.h.
52608         (popcount): Renamed count_one_bits.
52609         (popcountl): Renamed count_one_bits_l.
52610         (popcountll): Renamed count_one_bits_ll.
52611         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
52612         * modules/popcount: Renamed module/count-one-bits.
52613         * modules/popcount-tests: Renamed module/count-one-bits-tests.
52614         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
52615
52616 2007-07-23  Ben Pfaff  <blp@gnu.org>
52617
52618         * lib/popcount.h (popcount32): Reduce size of constants, to allow
52619         better code generation, and add U to large constants to avoid
52620         warnings, in non-GCC case.
52621         Suggested by Bruno Haible.
52622
52623 2007-07-23  Ben Pfaff  <blp@gnu.org>
52624
52625         * lib/popcount.h: Use verify_true instead of if...abort.
52626         * modules/popcount: Depend on verify module.
52627         Suggested by Jim Meyering.
52628
52629 2007-07-23  Bruno Haible  <bruno@clisp.org>
52630
52631         * gnulib-tool (func_import): Create a .cvsignore file also when the
52632         directory is not yet in CVS but the toplevel directory is. When
52633         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
52634         Reported by Karl Berry.
52635
52636 2007-07-22  Ben Pfaff  <blp@gnu.org>
52637
52638         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
52639         case.
52640         Suggested by Eric Blake.
52641
52642 2007-07-22  Ben Pfaff  <blp@gnu.org>
52643
52644         New module: popcount.
52645         * MODULES.html.sh: Add popcount.
52646         * modules/popcount: New file.
52647         * modules/popcount-tests: New file.
52648         * tests/test-popcount.c: New file.
52649         * lib/popcount.h: New file.
52650         * m4/popcount.m4: New file.
52651
52652 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
52653
52654         * build-aux/announce-gen: Update to GPLv3.
52655
52656         * build-aux/config.guess: Update from config.
52657
52658 2007-07-21  Bruno Haible  <bruno@clisp.org>
52659
52660         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
52661         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
52662
52663 2007-07-20  Jim Meyering  <jim@meyering.net>
52664
52665         * check-module: Diagnose a self-dependency.
52666
52667 2007-07-19  Bruno Haible  <bruno@clisp.org>
52668
52669         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
52670         empty.
52671         Reported by Eric Blake.
52672
52673 2007-07-18  Bruno Haible  <bruno@clisp.org>
52674
52675         * gnulib-tool: New options --po-base, --po-domain.
52676         (func_usage): Document them.
52677         (pobase, po_domain): New variables.
52678         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
52679         DEFAULT_TEXT_DOMAIN.
52680         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
52681         (func_import): Consider pobase and po_domain. Create a po/ directory.
52682         (func_create_testdir): Set pobase and po_domain to empty.
52683         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
52684         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
52685
52686 2007-07-18  Bruno Haible  <bruno@clisp.org>
52687
52688         * gnulib-tool (func_get_automake_snippet): Synthesize also an
52689         EXTRA_DIST augmentation for files in build-aux/.
52690
52691 2007-07-16  Bruno Haible  <bruno@clisp.org>
52692
52693         * modules/lseek (License): Use the synonymous term "LGPLv2+".
52694         * modules/getdelim (License): Likewise.
52695
52696 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52697
52698         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
52699         * modules/d-type (License): Likewise.
52700         * modules/extensions (License): Likewise.
52701         * modules/fnmatch (License): Likewise.
52702         * modules/fseeko (License): Likewise.
52703         * modules/getaddrinfo (License): Likewise.
52704         * modules/getline (License): Likewise.
52705         * modules/getlogin_r (License): Likewise.
52706         * modules/getpass (License): Likewise.
52707         * modules/gettimeofday (License): Likewise.
52708         * modules/glob (License): Likewise.
52709         * modules/inet_ntop (License): Likewise.
52710         * modules/malloc (License): Likewise.
52711         * modules/malloca (License): Likewise.
52712         * modules/memmem (License): Likewise.
52713         * modules/mempcpy (License): Likewise.
52714         * modules/memset (License): Likewise.
52715         * modules/minmax (License): Likewise.
52716         * modules/mktime (License): Likewise.
52717         * modules/netinet_in (License): Likewise.
52718         * modules/pathmax (License): Likewise.
52719         * modules/poll (License): Likewise.
52720         * modules/regex (License): Likewise.
52721         * modules/snprintf (License): Likewise.
52722         * modules/stdbool (License): Likewise.
52723         * modules/stdint (License): Likewise.
52724         * modules/stdio (License): Likewise.
52725         * modules/strcase (License): Likewise.
52726         * modules/strcasestr (License): Likewise.
52727         * modules/strdup (License): Likewise.
52728         * modules/string (License): Likewise.
52729         * modules/strndup (License): Likewise.
52730         * modules/strnlen (License): Likewise.
52731         * modules/strpbrk (License): Likewise.
52732         * modules/strptime (License): Likewise.
52733         * modules/strsep (License): Likewise.
52734         * modules/sys_select (License): Likewise.
52735         * modules/sys_socket (License): Likewise.
52736         * modules/sys_stat (License): Likewise.
52737         * modules/sys_time (License): Likewise.
52738         * modules/time (License): Likewise.
52739         * modules/time_r (License): Likewise.
52740         * modules/timegm (License): Likewise.
52741         * modules/unistd (License): Likewise.
52742         * modules/vsnprintf (License): Likewise.
52743         * modules/wctype (License): Likewise.
52744
52745 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52746
52747         * modules/argz (License): LGPLv2+.
52748
52749 2007-07-15  Karl Berry  <karl@gnu.org>
52750
52751         * doc/gnulib.texi: revise node structure per new fdl.texi.
52752
52753 2007-07-14  Bruno Haible  <bruno@clisp.org>
52754
52755         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
52756         the output file.
52757         * lib/uniname/uninames.h: Regenerated.
52758
52759 2007-07-14  Karl Berry  <karl@gnu.org>
52760
52761         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
52762         omitting sectioning and index commands.
52763
52764 2007-07-13  Bruno Haible  <bruno@clisp.org>
52765
52766         New gnulib-tool option --more-symlinks.
52767         * gnulib-tool (func_usage): Document --more-symlinks.
52768         (do_copyrights): New variable.
52769         Recognize option --more-symlinks.
52770         (func_import): Don't add a copyright notice transform to
52771         sed_transform_lib_file if do_copyrights is empty.
52772
52773 2007-07-13  Bruno Haible  <bruno@clisp.org>
52774
52775         * lib/vasnprintf.c (decimal_point_char): Define also if
52776         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
52777         && !NEED_PRINTF_DIRECTIVE_A.
52778         Reported by Clemens Koller <clemens.koller@anagramm.de> via
52779         Gary V. Vaughan <gary@gnu.org>.
52780
52781 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
52782
52783         * lib/inttypes_.h: Undo previous change, since it was fixed
52784         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
52785
52786 2007-07-13  Bruno Haible  <bruno@clisp.org>
52787
52788         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
52789         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
52790
52791 2007-07-13  Jim Meyering  <jim@meyering.net>
52792
52793         df: Don't fail for Tru64's "file-on-file mount".
52794         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
52795         so we fall through and use statfs instead.  Details here:
52796         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
52797         Reported by Albert Chin.
52798
52799 2007-07-13  Bruno Haible  <bruno@clisp.org>
52800
52801         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
52802         * modules/configmake (License): Likewise.
52803         * modules/gettext (License): Likewise.
52804         * modules/gettext-h (License): Likewise.
52805         * modules/include_next (License): Likewise.
52806         * modules/link-warning (License): Likewise.
52807         * modules/localcharset (License): Likewise.
52808         * modules/localename (License): Likewise.
52809         * modules/lock (License): Likewise.
52810         * modules/relocatable-lib-lgpl (License): Likewise.
52811         * modules/size_max (License): Likewise.
52812         * modules/vasnprintf (License): Likewise.
52813         * modules/wchar (License): Likewise.
52814         * modules/xsize (License): Likewise.
52815
52816 2007-07-13  Bruno Haible  <bruno@clisp.org>
52817
52818         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
52819         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
52820
52821 2007-07-12  Bruno Haible  <bruno@clisp.org>
52822
52823         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
52824         in the modules files.
52825
52826 2007-07-11  Karl Berry  <karl@gnu.org>
52827
52828         * MODULES.html.sh (func_module): use
52829          sed -e '\|^'"${includefile}"'$|d'
52830          instead of /.../d, to avoid errors on $includefile's containing /.
52831
52832 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
52833
52834         * gnulib-tool (func_import): Avoid duplication of --avoid
52835         statements
52836         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
52837         names to `_' in variable names.
52838
52839 2007-07-10  Eric Blake  <ebb9@byu.net>
52840
52841         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
52842         * NEWS: Document this change.
52843
52844 2007-07-08  Bruno Haible  <bruno@clisp.org>
52845
52846         Update to Unicode 5.0.
52847         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
52848         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
52849         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
52850         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
52851         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
52852         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
52853         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
52854         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
52855         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
52856         U+10A3F, U+1D242..U+1D244.
52857         (nonspacing_table_ind): Update.
52858         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
52859         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
52860
52861 2007-07-08  Bruno Haible  <bruno@clisp.org>
52862
52863         Update to Unicode 5.0.
52864         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
52865         code transform. Extend the name index field of unicode_name_to_code and
52866         unicode_code_to_name from 16 to 24 bits.
52867         * lib/uniname/uniname.c (unicode_character_name,
52868         unicode_name_character): Add the range 0x12xxx to the code transform.
52869         * lib/uniname/uninames.h: Regenerated.
52870         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
52871
52872 2007-07-07  Bruno Haible  <bruno@clisp.org>
52873
52874         * modules/wcwidth-tests: New file.
52875         * tests/test-wcwidth.c: New file.
52876
52877         Work around MacOS X wcwidth() bug.
52878         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
52879         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
52880         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
52881         original wcwidth in non-UTF-8 locales.
52882         * modules/wcwidth (Depends-on): Add localcharset, streq,
52883         uniwidth/width.
52884         * doc/functions/wcwidth.texi: Update.
52885
52886 2007-07-07  Bruno Haible  <bruno@clisp.org>
52887
52888         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
52889         (wcwidth): New declaration.
52890         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
52891         macros.
52892         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
52893         here. Prepare for creating <wchar.h> unconditionally.
52894         * modules/wchar (Depends-on): Add link-warning.
52895         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
52896         REPLACE_WCWIDTH, and GL_LINK_WARNING.
52897         * lib/wcwidth.h: Remove file.
52898         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
52899         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
52900         * modules/wcwidth (Files): Remove lib/wcwidth.h.
52901         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
52902         (Include): Replace wcwidth.h with <wchar.h>.
52903         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
52904         * lib/mbchar.h: Don't include wcwidth.h.
52905         * lib/mbswidth.c: Likewise.
52906         * NEWS: Mention the change.
52907
52908 2007-07-07  Bruno Haible  <bruno@clisp.org>
52909
52910         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
52911         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
52912         definition with an external declaration.
52913         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
52914         defined as a function. Remove AC_C_INLINE requirement.
52915         * modules/wcwidth (Files): Add lib/wcwidth.c.
52916         (Makefile.am): Remove redundant statement.
52917
52918 2007-07-07  Bruno Haible  <bruno@clisp.org>
52919
52920         * MODULES.html.sh (Unicode string functions): Add the new modules.
52921
52922         * tests/uniwidth/test-u32-strwidth.c: New file.
52923         * modules/uniwidth/u32-strwidth-tests: New file.
52924
52925         * lib/uniwidth/u32-strwidth.c: New file.
52926         * modules/uniwidth/u32-strwidth: New file.
52927
52928         * tests/uniwidth/test-u16-strwidth.c: New file.
52929         * modules/uniwidth/u16-strwidth-tests: New file.
52930
52931         * lib/uniwidth/u16-strwidth.c: New file.
52932         * modules/uniwidth/u16-strwidth: New file.
52933
52934         * tests/uniwidth/test-u8-strwidth.c: New file.
52935         * modules/uniwidth/u8-strwidth-tests: New file.
52936
52937         * lib/uniwidth/u8-strwidth.c: New file.
52938         * modules/uniwidth/u8-strwidth: New file.
52939
52940         * tests/uniwidth/test-u32-width.c: New file.
52941         * modules/uniwidth/u32-width-tests: New file.
52942
52943         * lib/uniwidth/u32-width.c: New file.
52944         * modules/uniwidth/u32-width: New file.
52945
52946         * tests/uniwidth/test-u16-width.c: New file.
52947         * modules/uniwidth/u16-width-tests: New file.
52948
52949         * lib/uniwidth/u16-width.c: New file.
52950         * modules/uniwidth/u16-width: New file.
52951
52952         * tests/uniwidth/test-u8-width.c: New file.
52953         * modules/uniwidth/u8-width-tests: New file.
52954
52955         * lib/uniwidth/u8-width.c: New file.
52956         * modules/uniwidth/u8-width: New file.
52957
52958         * tests/uniwidth/test-uc_width.c: New file.
52959         * modules/uniwidth/width-tests: New file.
52960
52961         * lib/uniwidth/width.c: New file, from GNU libiconv.
52962         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
52963         * modules/uniwidth/width: New file.
52964
52965         * lib/uniwidth.h: New file, from GNU libiconv.
52966         * modules/uniwidth/base: New file.
52967
52968 2007-07-07  Bruno Haible  <bruno@clisp.org>
52969
52970         * lib/uniname.h: New file, from GNU gettext.
52971         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
52972         * lib/uniname/uninames.h: New file, from GNU gettext.
52973         * lib/uniname/uniname.c: New file, from GNU gettext.
52974         * tests/uniname/test-uninames.sh: New file.
52975         * tests/uniname/test-uninames.c: New file, from GNU gettext.
52976         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
52977         * modules/uniname/base: New file.
52978         * modules/uniname/uniname: New file.
52979         * modules/uniname/uniname-tests: New file.
52980         * MODULES.html.sh (Unicode string functions): Add the new modules.
52981
52982 2007-07-06  Bruno Haible  <bruno@clisp.org>
52983
52984         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
52985
52986 2007-07-06  Bruno Haible  <bruno@clisp.org>
52987
52988         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
52989         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
52990         includes <cygwin/sys_time.h> which includes <sys/select.h> which
52991         include <sys/time.h>.
52992         Reported by Eric Blake.
52993
52994 2007-07-06  Eric Blake  <ebb9@byu.net>
52995
52996         Fix testing canonicalize on cygwin.
52997         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
52998         Revert patch from 2007-06-19.
52999         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
53000         canonicalize module is also in use.
53001         * tests/test-canonicalize.c: New file.
53002         * tests/test-canonicalize.sh: Likewise.
53003         * modules/canonicalize-tests: Likewise.
53004
53005 2007-07-06  Jim Meyering  <jim@meyering.net>
53006
53007         * lib/getugroups.c (getugroups): Detect getgrent failure.
53008         Adjust comment to reflect reality: this function may return -1.
53009
53010 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
53011
53012         * build-aux/bootstrap (TP_URL,get_translations): Update to use
53013         the new TP address.
53014         (usage): Fix typo
53015         (gnulib_mk): New variable.
53016
53017 2007-07-05  Jim Meyering  <jim@meyering.net>
53018
53019         Don't let endgrent clobber errno, no matter how improbable.
53020         * lib/getugroups.c (getugroups): Save and restore errno around
53021         endgrent call.
53022
53023         Close the group DB even when failing with 2^31 or more members.
53024         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
53025
53026 2007-07-04  Jim Meyering  <jim@meyering.net>
53027
53028         * lib/getugroups.h: New file.
53029         * lib/getugroups.c: Include "getugroups.h".
53030         Remove uses of "register" keyword.
53031         Move local variable, "cp", down into scope where used.
53032         Give "username" parameter the "const" attribute.
53033         * modules/getugroups (Files): Add lib/getugroups.h
53034
53035 2007-07-04  Karl Berry  <karl@gnu.org>
53036
53037         * MODULES.html.sh (func_all_modules): Complete rename of
53038         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
53039
53040 2007-07-02  Bruno Haible  <bruno@clisp.org>
53041
53042         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
53043         mode, when inttypes.h comes from gnulib.
53044         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53045
53046 2007-07-02  Simon Josefsson  <simon@josefsson.org>
53047
53048         * NEWS: Mention lgpl module name change.
53049
53050         * modules/lgpl-2.1: Renamed from lgpl.
53051
53052         * NEWS: Mention gpl module name change.
53053
53054         * modules/gpl-3.0: New file, based on gpl-2.0.
53055
53056         * modules/gpl-2.0: Renamed from gpl.
53057
53058         * modules/gpl: Fix filename, doc/gpl.texi is now found at
53059         doc/gpl-2.0.texi.
53060
53061 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
53062
53063         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
53064         #define __STDC_LIMIT_MACROS temporarily while including
53065         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
53066         Problem reported by Joel E. Denny in
53067         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
53068
53069 2007-07-01  Bruno Haible  <bruno@clisp.org>
53070
53071         * lib/unistdio.h: New file.
53072         * lib/unistdio/u-asnprintf.h: New file.
53073         * lib/unistdio/u-asprintf.h: New file.
53074         * lib/unistdio/u-printf-args.c: New file.
53075         * lib/unistdio/u-printf-args.h: New file.
53076         * lib/unistdio/u-printf-parse.h: New file.
53077         * lib/unistdio/u-snprintf.h: New file.
53078         * lib/unistdio/u-sprintf.h: New file.
53079         * lib/unistdio/u-vasprintf.h: New file.
53080         * lib/unistdio/u-vsnprintf.h: New file.
53081         * lib/unistdio/u-vsprintf.h: New file.
53082         * lib/unistdio/ulc-asnprintf.c: New file.
53083         * lib/unistdio/ulc-asprintf.c: New file.
53084         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
53085         * lib/unistdio/ulc-printf-parse.c: New file.
53086         * lib/unistdio/ulc-snprintf.c: New file.
53087         * lib/unistdio/ulc-sprintf.c: New file.
53088         * lib/unistdio/ulc-vasnprintf.c: New file.
53089         * lib/unistdio/ulc-vasprintf.c: New file.
53090         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
53091         * lib/unistdio/ulc-vsnprintf.c: New file.
53092         * lib/unistdio/ulc-vsprintf.c: New file.
53093         * lib/unistdio/u8-asnprintf.c: New file.
53094         * lib/unistdio/u8-asprintf.c: New file.
53095         * lib/unistdio/u8-printf-parse.c: New file.
53096         * lib/unistdio/u8-snprintf.c: New file.
53097         * lib/unistdio/u8-sprintf.c: New file.
53098         * lib/unistdio/u8-vasnprintf.c: New file.
53099         * lib/unistdio/u8-vasprintf.c: New file.
53100         * lib/unistdio/u8-vsnprintf.c: New file.
53101         * lib/unistdio/u8-vsprintf.c: New file.
53102         * lib/unistdio/u8-u8-asnprintf.c: New file.
53103         * lib/unistdio/u8-u8-asprintf.c: New file.
53104         * lib/unistdio/u8-u8-snprintf.c: New file.
53105         * lib/unistdio/u8-u8-sprintf.c: New file.
53106         * lib/unistdio/u8-u8-vasnprintf.c: New file.
53107         * lib/unistdio/u8-u8-vasprintf.c: New file.
53108         * lib/unistdio/u8-u8-vsnprintf.c: New file.
53109         * lib/unistdio/u8-u8-vsprintf.c: New file.
53110         * lib/unistdio/u16-asnprintf.c: New file.
53111         * lib/unistdio/u16-asprintf.c: New file.
53112         * lib/unistdio/u16-printf-parse.c: New file.
53113         * lib/unistdio/u16-snprintf.c: New file.
53114         * lib/unistdio/u16-sprintf.c: New file.
53115         * lib/unistdio/u16-vasnprintf.c: New file.
53116         * lib/unistdio/u16-vasprintf.c: New file.
53117         * lib/unistdio/u16-vsnprintf.c: New file.
53118         * lib/unistdio/u16-vsprintf.c: New file.
53119         * lib/unistdio/u16-u16-asnprintf.c: New file.
53120         * lib/unistdio/u16-u16-asprintf.c: New file.
53121         * lib/unistdio/u16-u16-snprintf.c: New file.
53122         * lib/unistdio/u16-u16-sprintf.c: New file.
53123         * lib/unistdio/u16-u16-vasnprintf.c: New file.
53124         * lib/unistdio/u16-u16-vasprintf.c: New file.
53125         * lib/unistdio/u16-u16-vsnprintf.c: New file.
53126         * lib/unistdio/u16-u16-vsprintf.c: New file.
53127         * lib/unistdio/u32-asnprintf.c: New file.
53128         * lib/unistdio/u32-asprintf.c: New file.
53129         * lib/unistdio/u32-printf-parse.c: New file.
53130         * lib/unistdio/u32-snprintf.c: New file.
53131         * lib/unistdio/u32-sprintf.c: New file.
53132         * lib/unistdio/u32-vasnprintf.c: New file.
53133         * lib/unistdio/u32-vasprintf.c: New file.
53134         * lib/unistdio/u32-vsnprintf.c: New file.
53135         * lib/unistdio/u32-vsprintf.c: New file.
53136         * lib/unistdio/u32-u32-asnprintf.c: New file.
53137         * lib/unistdio/u32-u32-asprintf.c: New file.
53138         * lib/unistdio/u32-u32-snprintf.c: New file.
53139         * lib/unistdio/u32-u32-sprintf.c: New file.
53140         * lib/unistdio/u32-u32-vasnprintf.c: New file.
53141         * lib/unistdio/u32-u32-vasprintf.c: New file.
53142         * lib/unistdio/u32-u32-vsnprintf.c: New file.
53143         * lib/unistdio/u32-u32-vsprintf.c: New file.
53144         * tests/unistdio/test-ulc-asnprintf1.c: New file.
53145         * tests/unistdio/test-ulc-asnprintf1.h: New file.
53146         * tests/unistdio/test-ulc-printf1.h: New file.
53147         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
53148         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
53149         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
53150         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
53151         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
53152         * tests/unistdio/test-ulc-vasprintf1.c: New file.
53153         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
53154         * tests/unistdio/test-ulc-vsprintf1.c: New file.
53155         * tests/unistdio/test-u8-asnprintf1.c: New file.
53156         * tests/unistdio/test-u8-asnprintf1.h: New file.
53157         * tests/unistdio/test-u8-printf1.h: New file.
53158         * tests/unistdio/test-u8-vasnprintf1.c: New file.
53159         * tests/unistdio/test-u8-vasnprintf2.c: New file.
53160         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
53161         * tests/unistdio/test-u8-vasnprintf3.c: New file.
53162         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
53163         * tests/unistdio/test-u8-vasprintf1.c: New file.
53164         * tests/unistdio/test-u8-vsnprintf1.c: New file.
53165         * tests/unistdio/test-u8-vsprintf1.c: New file.
53166         * tests/unistdio/test-u16-asnprintf1.c: New file.
53167         * tests/unistdio/test-u16-asnprintf1.h: New file.
53168         * tests/unistdio/test-u16-printf1.h: New file.
53169         * tests/unistdio/test-u16-vasnprintf1.c: New file.
53170         * tests/unistdio/test-u16-vasnprintf2.c: New file.
53171         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
53172         * tests/unistdio/test-u16-vasnprintf3.c: New file.
53173         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
53174         * tests/unistdio/test-u16-vasprintf1.c: New file.
53175         * tests/unistdio/test-u16-vsnprintf1.c: New file.
53176         * tests/unistdio/test-u16-vsprintf1.c: New file.
53177         * tests/unistdio/test-u32-asnprintf1.c: New file.
53178         * tests/unistdio/test-u32-asnprintf1.h: New file.
53179         * tests/unistdio/test-u32-printf1.h: New file.
53180         * tests/unistdio/test-u32-vasnprintf1.c: New file.
53181         * tests/unistdio/test-u32-vasnprintf2.c: New file.
53182         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
53183         * tests/unistdio/test-u32-vasnprintf3.c: New file.
53184         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
53185         * tests/unistdio/test-u32-vasprintf1.c: New file.
53186         * tests/unistdio/test-u32-vsnprintf1.c: New file.
53187         * tests/unistdio/test-u32-vsprintf1.c: New file.
53188         * modules/unistdio/base: New file.
53189         * modules/unistdio/u-printf-args: New file.
53190         * modules/unistdio/ulc-asnprintf: New file.
53191         * modules/unistdio/ulc-asprintf: New file.
53192         * modules/unistdio/ulc-fprintf: New file.
53193         * modules/unistdio/ulc-printf-parse: New file.
53194         * modules/unistdio/ulc-snprintf: New file.
53195         * modules/unistdio/ulc-sprintf: New file.
53196         * modules/unistdio/ulc-vasnprintf: New file.
53197         * modules/unistdio/ulc-vasprintf: New file.
53198         * modules/unistdio/ulc-vfprintf: New file.
53199         * modules/unistdio/ulc-vsnprintf: New file.
53200         * modules/unistdio/ulc-vsprintf: New file.
53201         * modules/unistdio/u8-asnprintf: New file.
53202         * modules/unistdio/u8-asprintf: New file.
53203         * modules/unistdio/u8-printf-parse: New file.
53204         * modules/unistdio/u8-snprintf: New file.
53205         * modules/unistdio/u8-sprintf: New file.
53206         * modules/unistdio/u8-vasnprintf: New file.
53207         * modules/unistdio/u8-vasprintf: New file.
53208         * modules/unistdio/u8-vsnprintf: New file.
53209         * modules/unistdio/u8-vsprintf: New file.
53210         * modules/unistdio/u8-u8-asnprintf: New file.
53211         * modules/unistdio/u8-u8-asprintf: New file.
53212         * modules/unistdio/u8-u8-snprintf: New file.
53213         * modules/unistdio/u8-u8-sprintf: New file.
53214         * modules/unistdio/u8-u8-vasnprintf: New file.
53215         * modules/unistdio/u8-u8-vasprintf: New file.
53216         * modules/unistdio/u8-u8-vsnprintf: New file.
53217         * modules/unistdio/u8-u8-vsprintf: New file.
53218         * modules/unistdio/u16-asnprintf: New file.
53219         * modules/unistdio/u16-asprintf: New file.
53220         * modules/unistdio/u16-printf-parse: New file.
53221         * modules/unistdio/u16-snprintf: New file.
53222         * modules/unistdio/u16-sprintf: New file.
53223         * modules/unistdio/u16-vasnprintf: New file.
53224         * modules/unistdio/u16-vasprintf: New file.
53225         * modules/unistdio/u16-vsnprintf: New file.
53226         * modules/unistdio/u16-vsprintf: New file.
53227         * modules/unistdio/u16-u16-asnprintf: New file.
53228         * modules/unistdio/u16-u16-asprintf: New file.
53229         * modules/unistdio/u16-u16-snprintf: New file.
53230         * modules/unistdio/u16-u16-sprintf: New file.
53231         * modules/unistdio/u16-u16-vasnprintf: New file.
53232         * modules/unistdio/u16-u16-vasprintf: New file.
53233         * modules/unistdio/u16-u16-vsnprintf: New file.
53234         * modules/unistdio/u16-u16-vsprintf: New file.
53235         * modules/unistdio/u32-asnprintf: New file.
53236         * modules/unistdio/u32-asprintf: New file.
53237         * modules/unistdio/u32-printf-parse: New file.
53238         * modules/unistdio/u32-snprintf: New file.
53239         * modules/unistdio/u32-sprintf: New file.
53240         * modules/unistdio/u32-vasnprintf: New file.
53241         * modules/unistdio/u32-vasprintf: New file.
53242         * modules/unistdio/u32-vsnprintf: New file.
53243         * modules/unistdio/u32-vsprintf: New file.
53244         * modules/unistdio/u32-u32-asnprintf: New file.
53245         * modules/unistdio/u32-u32-asprintf: New file.
53246         * modules/unistdio/u32-u32-snprintf: New file.
53247         * modules/unistdio/u32-u32-sprintf: New file.
53248         * modules/unistdio/u32-u32-vasnprintf: New file.
53249         * modules/unistdio/u32-u32-vasprintf: New file.
53250         * modules/unistdio/u32-u32-vsnprintf: New file.
53251         * modules/unistdio/u32-u32-vsprintf: New file.
53252         * modules/unistdio/ulc-asnprintf-tests: New file.
53253         * modules/unistdio/ulc-vasnprintf-tests: New file.
53254         * modules/unistdio/ulc-vasprintf-tests: New file.
53255         * modules/unistdio/ulc-vsnprintf-tests: New file.
53256         * modules/unistdio/ulc-vsprintf-tests: New file.
53257         * modules/unistdio/u8-asnprintf-tests: New file.
53258         * modules/unistdio/u8-vasnprintf-tests: New file.
53259         * modules/unistdio/u8-vasprintf-tests: New file.
53260         * modules/unistdio/u8-vsnprintf-tests: New file.
53261         * modules/unistdio/u8-vsprintf-tests: New file.
53262         * modules/unistdio/u16-asnprintf-tests: New file.
53263         * modules/unistdio/u16-vasnprintf-tests: New file.
53264         * modules/unistdio/u16-vasprintf-tests: New file.
53265         * modules/unistdio/u16-vsnprintf-tests: New file.
53266         * modules/unistdio/u16-vsprintf-tests: New file.
53267         * modules/unistdio/u32-asnprintf-tests: New file.
53268         * modules/unistdio/u32-vasnprintf-tests: New file.
53269         * modules/unistdio/u32-vasprintf-tests: New file.
53270         * modules/unistdio/u32-vsnprintf-tests: New file.
53271         * modules/unistdio/u32-vsprintf-tests: New file.
53272         * MODULES.html.sh (Unicode string functions): Add the new modules.
53273
53274 2007-07-01  Bruno Haible  <bruno@clisp.org>
53275
53276         * lib/sprintf.c (sprintf): Limit the available length estimation,
53277         to avoid address wraparound.
53278         * lib/vsprintf.c (vsprintf): Likewise.
53279         * modules/sprintf-posix (Dependencies): Add stdint.
53280         * modules/vsprintf-posix (Dependencies): Likewise.
53281
53282 2007-07-01  Bruno Haible  <bruno@clisp.org>
53283
53284         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
53285         Windows PATH as well. Conservative double-quoting. Comments.
53286
53287 2007-07-01  Bruno Haible  <bruno@clisp.org>
53288             Eric Blake  <ebb9@byu.net>
53289             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53290
53291         * gnulib-tool (self_abspathname): Fix algorithm to cope with
53292         empty components in $PATH, denoting '.'.
53293
53294 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53295
53296         * gnulib-tool: Fix indentation.
53297         (func_create_megatestdir): Likewise.
53298         Report by Bruno Haible.
53299
53300 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53301
53302         Sync from Automake.
53303         * build-aux/gnupload: Fix shell portability issues with for loops.
53304         Report by Karl Berry.
53305
53306 2007-06-29  Simon Josefsson  <simon@josefsson.org>
53307
53308         * build-aux/maint.mk (POURL): Use translationproject.org.
53309
53310 2007-06-27  Simon Josefsson  <simon@josefsson.org>
53311             Bruno Haible  <bruno@clisp.org>
53312
53313         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
53314         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
53315         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
53316         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
53317         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
53318
53319 2007-06-27  Bruno Haible  <bruno@clisp.org>
53320
53321         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
53322         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
53323
53324 2007-06-26  Karl Berry  <karl@gnu.org>
53325
53326         * MODULES.html.sh: remove xreadlink-with-size.
53327
53328 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
53329
53330         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
53331         method that I hope also handles the double-include problem noted
53332         by Bruno Haible in
53333         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
53334
53335 2007-06-23  Bruno Haible  <bruno@clisp.org>
53336
53337         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53338         Don't let the 'mostlyclean' target fail if the last subdirectory could
53339         not be removed.
53340         Reported by Karl Berry.
53341
53342 2007-06-23  Bruno Haible  <bruno@clisp.org>
53343
53344         * gnulib-tool (echo): Add a speedier workaround for ksh.
53345         * tests/test-echo.sh: Likewise.
53346
53347 2007-06-23  Bruno Haible  <bruno@clisp.org>
53348
53349         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
53350         * tests/test-echo.sh: Likewise.
53351
53352 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53353
53354         * gnulib-tool (IFS): Initialize early, so we don't set it to
53355         empty later.
53356         (self_abspathname): Rewrite algorithm to set it, reindent.
53357         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
53358         (func_create_megatestdir): Merge some sed scripts.
53359
53360 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
53361
53362         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
53363         exposed by Sun Studio 11 cc on Solaris 8.
53364
53365 2007-06-22  Bruno Haible  <bruno@clisp.org>
53366
53367         * gnulib-tool (echo): Ensure the echo primitive does not interpret
53368         backslashes.
53369         * tests/test-echo.sh: New file.
53370
53371 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53372
53373         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
53374         simplify `sed_replace_build_aux' scripts, they are portable but
53375         echoing them with `echo' is not.
53376         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
53377
53378 2007-06-21  Karl Berry  <karl@gnu.org>
53379
53380         * config/srclist.txt: guess we can't handle the licenses via
53381         srclist at the moment.
53382
53383 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
53384
53385         * MODULES.html.sh: Add include_next.
53386         * modules/include_next: New file.
53387
53388 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
53389
53390         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
53391         INCLUDE_NEXT.
53392         (gl_CHECK_NEXT_HEADERS): New macro.
53393         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
53394         the obsolescent gl_ABSOLUTE_HEADER.
53395         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
53396         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
53397         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
53398         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
53399         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
53400         * m4/math_h.m4 (gl_MATH_H): Likewise.
53401         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
53402         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
53403         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
53404         * m4/stdint.m4 (gl_STDINT_H): Likewise.
53405         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
53406         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
53407         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
53408         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
53409         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
53410         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
53411         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
53412         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
53413         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
53414         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
53415         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
53416         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
53417         * m4/inttypes.m4 (gl_INTTYPES_H): Define
53418         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
53419         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
53420         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
53421         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
53422         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
53423         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
53424         * lib/float_.h: Likewise.
53425         * lib/inttypes_.h: Likewise.
53426         * lib/math_.h: Likewise.
53427         * lib/search_.h: Likewise.
53428         * lib/signal_.h: Likewise.
53429         * lib/stdint_.h: Likewise.
53430         * lib/stdio_.h: Likewise.
53431         * lib/stdlib_.h: Likewise.
53432         * lib/string_.h: Likewise.
53433         * lib/sys_stat_.h: Likewise.
53434         * lib/sys_time_.h: Likewise.
53435         * lib/time_.h: Likewise.
53436         * lib/unistd_.h: Likewise.
53437         * lib/wchar_.h: Likewise.
53438         * lib/wctype_.h: Likewise.
53439         * lib/dirent_.h: Likewise.
53440         * lib/iconv_.h: Likewise.
53441         * lib/locale_.h: Likewise.
53442         * lib/netinet_in_.h: Likewise.
53443         * lib/sys_select_.h: Likewise.
53444         * lib/sys_socket_.h: Likewise.
53445         * lib/sysexits_.h: Likewise.
53446         * modules/fcntl (Depends-on): Depend on include_next, not
53447         absolute_header.
53448         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
53449         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
53450         * modules/fchdir: Likewise.
53451         * modules/float: Likewise.
53452         * modules/iconv_open: Likewise.
53453         * modules/inttypes: Likewise.
53454         * modules/locale: Likewise.
53455         * modules/math: Likewise.
53456         * modules/netinet_in: Likewise.
53457         * modules/search: Likewise.
53458         * modules/signal: Likewise.
53459         * modules/stdint: Likewise.
53460         * modules/stdio: Likewise.
53461         * modules/stdlib: Likewise.
53462         * modules/string: Likewise.
53463         * modules/sys_select: Likewise.
53464         * modules/sys_socket: Likewise.
53465         * modules/sys_stat: Likewise.
53466         * modules/sys_time: Likewise.
53467         * modules/sysexits: Likewise.
53468         * modules/time: Likewise.
53469         * modules/unistd: Likewise.
53470         * modules/wchar: Likewise.
53471         * modules/wctype: Likewise.
53472         * modules/sys_stat: Change maintainer to "all".
53473         * modules/unistd: Likewise.
53474
53475 2007-06-20  Karl Berry  <karl@gnu.org>
53476
53477         * config/srclist.txt: track www changes in license files.
53478
53479 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
53480
53481         * build-aux/bootstrap: Remove stray dot.
53482         Make sure build_aux settings are honored when linking
53483         gnulib_extra_files.
53484
53485 2007-06-19  Eric Blake  <ebb9@byu.net>
53486
53487         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
53488         Allow compilation on cygwin.
53489
53490 2007-06-19  Jim Meyering  <jim@meyering.net>
53491
53492         xreadlink-with-size: Remove module.  No longer used.
53493         Ex-callers now use xreadlink or mreadlink-with-size.
53494         * modules/xreadlink-with-size: Remove module.
53495         * lib/xreadlink-with-size.c: Remove file.
53496         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
53497         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
53498         just before the function definition *is* accurate.
53499
53500         Eliminate one way canonicalize_filename_mode could exit.
53501         * lib/canonicalize.c (canonicalize_filename_mode):
53502         Use mreadlink_with_size, not xreadlink_with_size.
53503
53504 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
53505
53506         Detect porting problems to FreeBSD/arm, which has time_t wider than
53507         long int.  Original problem reported for GNU diff by Xin Li in
53508         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
53509         * modules/getdate (Depends-on): Add intprops, verify.
53510         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
53511         is an integer type no wider than long int.
53512
53513 2007-06-18  Jim Meyering  <jim@meyering.net>
53514
53515         New module: mreadlink-with-size.
53516         * MODULES.html.sh: Add mreadlink-with-size.
53517         * modules/mreadlink-with-size: New module
53518         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
53519         not xreadlink-with-size.
53520         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
53521
53522 2007-06-16  Bruno Haible  <bruno@clisp.org>
53523
53524         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
53525         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
53526         Reported by Gary V. Vaughan <gary@gnu.org>.
53527
53528 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
53529
53530         Revamp lchown so that it lives in unistd.h where it belongs.
53531         * lib/lchown.h: Remove.
53532         * lib/dirchownmod.c: Don't include lib/lchown.h.
53533         * lib/fchownat.c: Likewise.
53534         * lib/openat.c: Likewise.
53535         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
53536         does not follow symlinks.
53537         (EOPNOTSUPP): Define if not defined.
53538         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
53539         is defined to 0.
53540         (lchown): New decl.
53541         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
53542         Do not check for lchown decl.
53543         Set REPLACE_LCHOWN.
53544         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
53545         REPLACE_LCHOWN.
53546         * modules/chown: Make it clear it follows symlinks.
53547         * modules/lchown: Make it clear it doesn't follow symlinks.
53548         (Files): Remove lib/lchown.h
53549         (Depends-on): Add unistd.
53550         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
53551         (Include): Include <unistd.h>, not "lchown.h".
53552         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
53553         REPLACE_LCHOWN.
53554
53555 2007-06-15  Jim Meyering  <jim@meyering.net>
53556
53557         Change license (GPL to LGPL) of fsusage and dependents.
53558         * modules/fsusage (License): Change to LGPL.
53559         * modules/full-read (License): Likewise.
53560         * modules/full-write (License): Likewise.
53561         * modules/safe-read (License): Likewise.
53562         * modules/safe-write (License): Likewise.
53563
53564 2007-06-14  Ben Pfaff  <blp@gnu.org>
53565
53566         Missing part of allocsa -> malloca transition.
53567         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
53568         gl_MALLOCA.
53569
53570 2007-06-12  Bruno Haible  <bruno@clisp.org>
53571
53572         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
53573         to ia64, x86_64, i386.
53574         Reported by Eric Blake.
53575
53576 2007-06-12  Bruno Haible  <bruno@clisp.org>
53577
53578         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
53579         cross-compiling to x86_64.
53580
53581 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
53582
53583         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
53584         glitch reported by Ralf Wildenhues in
53585         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
53586
53587         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
53588         Vin Shelton.
53589
53590 2007-06-11  Bruno Haible  <bruno@clisp.org>
53591
53592         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
53593         replacement string.
53594         Reported by Eric Blake.
53595
53596 2007-06-10  Bruno Haible  <bruno@clisp.org>
53597
53598         Prepare vasnprintf code for use with Unicode strings.
53599         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
53600         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
53601         TYPE_U32_STRING.
53602         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
53603         a_u32_string variants.
53604         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
53605         * lib/printf-args.c: Don't include config.h and the specification
53606         header if PRINTF_FETCHARGS is already defined.
53607         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
53608         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
53609         TYPE_U16_STRING, TYPE_U32_STRING.
53610         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
53611         u16_directive, u16_directives, u32_directive, u32_directives): New
53612         types.
53613         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
53614         New declarations.
53615         * lib/printf-parse.c: Don't include config.h and the specification
53616         header if PRINTF_PARSE is already defined. Eliminate the set of
53617         parameters for WIDE_CHAR_VERSION; the user of this file must provide
53618         them now. Include c-ctype.h.
53619         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
53620         directive and CHAR_T_ONLY_ASCII.
53621         * lib/vasnprintf.c: Don't include config.h and the specification header
53622         if VASNPRINTF is already defined.
53623         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
53624         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
53625         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
53626         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
53627         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
53628         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
53629         code accordingly.
53630         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
53631         pad_ourselves also in this case, with the 'c' and 's' directives, and
53632         with a different notion of "width".
53633         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
53634
53635 2007-06-10  Bruno Haible  <bruno@clisp.org>
53636
53637         * modules/unistr/u32-mbsnlen: New file.
53638         * lib/unistr/u32-mbsnlen.c: New file.
53639
53640         * modules/unistr/u16-mbsnlen: New file.
53641         * lib/unistr/u16-mbsnlen.c: New file.
53642
53643         * modules/unistr/u8-mbsnlen: New file.
53644         * lib/unistr/u8-mbsnlen.c: New file.
53645
53646         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
53647         declarations.
53648
53649 2007-06-10  Bruno Haible  <bruno@clisp.org>
53650
53651         * lib/string_.h (mbsnlen): New declaration.
53652         * lib/mbsnlen.c: New file.
53653         * m4/mbsnlen.m4: New file.
53654         * modules/mbsnlen: New file.
53655         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
53656         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
53657         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
53658
53659 2007-06-10  Bruno Haible  <bruno@clisp.org>
53660
53661         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
53662
53663 2007-06-10  Bruno Haible  <bruno@clisp.org>
53664
53665         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
53666         * lib/mbuiter.h: Likewise.
53667
53668 2007-06-10  Bruno Haible  <bruno@clisp.org>
53669
53670         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
53671         declaration.
53672
53673 2007-06-10  Karl Berry  <karl@gnu.org>
53674
53675         * config/srclist.txt: remove gettext entries, Bruno prefers
53676         to update individually.
53677
53678 2007-06-10  Bruno Haible  <bruno@clisp.org>
53679
53680         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
53681         'maxlen'. Ensure only length + width bytes are allocated, not
53682         length + 1 + width.
53683
53684 2007-06-09  Bruno Haible  <bruno@clisp.org>
53685
53686         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
53687         (CHAR_T): Remove macro.
53688         (VASNPRINTF): Update.
53689
53690 2007-06-09  Bruno Haible  <bruno@clisp.org>
53691
53692         * MODULES.html.sh (Unicode string functions): Add the new modules.
53693
53694         * modules/uniconv/u32-conv-to-enc: New file.
53695         * lib/uniconv/u32-conv-to-enc.c: New file.
53696         * modules/uniconv/u32-conv-to-enc-tests: New file.
53697         * tests/uniconv/test-u32-conv-to-enc.c: New file.
53698
53699         * modules/uniconv/u16-conv-to-enc: New file.
53700         * lib/uniconv/u16-conv-to-enc.c: New file.
53701         * lib/uniconv/u-conv-to-enc.h: New file.
53702         * modules/uniconv/u16-conv-to-enc-tests: New file.
53703         * tests/uniconv/test-u16-conv-to-enc.c: New file.
53704
53705         * modules/uniconv/u8-conv-to-enc: New file.
53706         * lib/uniconv/u8-conv-to-enc.c: New file.
53707         * modules/uniconv/u8-conv-to-enc-tests: New file.
53708         * tests/uniconv/test-u8-conv-to-enc.c: New file.
53709
53710         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
53711         u32_conv_to_encoding): New declarations.
53712
53713 2007-06-09  Bruno Haible  <bruno@clisp.org>
53714
53715         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
53716
53717 2007-06-09  Bruno Haible  <bruno@clisp.org>
53718
53719         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
53720         * modules/malloca: Renamed from modules/allocsa, updated.
53721         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
53722         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
53723         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
53724         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
53725         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
53726         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
53727         * modules/xmalloca: Renamed from modules/xallocsa, updated.
53728         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
53729         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
53730         * modules/c-strcasestr (Depends-on): Update.
53731         * lib/c-strcasestr.c: Update.
53732         * modules/c-strstr (Depends-on): Update.
53733         * lib/c-strstr.c: Update.
53734         * modules/canonicalize-lgpl (Depends-on): Update.
53735         * lib/canonicalize-lgpl.c: Update.
53736         * modules/clean-temp (Depends-on): Update.
53737         * lib/clean-temp.c: Update.
53738         * modules/csharpcomp (Depends-on): Update.
53739         * lib/csharpcomp.c: Update.
53740         * modules/csharpexec (Depends-on): Update.
53741         * lib/csharpexec.c: Update.
53742         * modules/javacomp (Depends-on): Update.
53743         * lib/javacomp.c: Update.
53744         * modules/javaexec (Depends-on): Update.
53745         * lib/javaexec.c: Update.
53746         * modules/mbscasestr (Depends-on): Update.
53747         * lib/mbscasestr.c: Update.
53748         * modules/mbsstr (Depends-on): Update.
53749         * lib/mbsstr.c: Update.
53750         * modules/setenv (Depends-on): Update.
53751         * lib/setenv.c: Update.
53752         * modules/strcasestr (Depends-on): Update.
53753         * lib/strcasestr.c: Update.
53754         * modules/striconveha (Depends-on): Update.
53755         * lib/striconveha.c: Update.
53756         * modules/relocatable-prog-wrapper (Files): Update.
53757         * lib/relocwrapper.c: Update.
53758         * build-aux/install-reloc: Update.
53759         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
53760
53761 2007-06-08  Bruno Haible  <bruno@clisp.org>
53762
53763         Port to uClibc.
53764         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
53765         * lib/fpurge.c (fpurge): Likewise.
53766         * lib/freading.c (freading): Likewise.
53767         * lib/fseeko.c (rpl_fseeko): Likewise.
53768         * lib/fseterr.c (fseterr): Likewise.
53769         * lib/fwriting.c (fwriting): Likewise.
53770         * tests/test-fflush.c (main): Avoid a failure on uClibc.
53771
53772 2007-06-08  Bruno Haible  <bruno@clisp.org>
53773
53774         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
53775         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
53776         * modules/gettext (Files): Add m4/intlmacosx.m4.
53777
53778 2007-06-07  Bruno Haible  <bruno@clisp.org>
53779
53780         * modules/localename-tests: New file.
53781         * tests/test-localename.c: New file.
53782
53783         New module 'localename'.
53784         * lib/localename.h: New file.
53785         * lib/localename.c: New file, from GNU gettext.
53786         * m4/localename.m4: New file.
53787         * modules/localename: New file.
53788
53789 2007-06-07  Bruno Haible  <bruno@clisp.org>
53790
53791         Work around the lack of <wchar.h> on some builds of uClibc.
53792         * doc/headers/wchar.texi: Update.
53793         * lib/wchar_.h: Include <wchar.h> only if it exists.
53794         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
53795         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
53796         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
53797         doesn't exist.
53798         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
53799         * modules/mbfile (Depends-on): Add wchar.
53800         * modules/mbiter (Depends-on): Likewise.
53801         * modules/mbuiter (Depends-on): Likewise.
53802         Reported by Simon Josefsson.
53803
53804 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
53805
53806         Work around problem reported by Steven M. Schweda in
53807         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
53808         Tru64 5.1B with the Compaq compiler environment installed declares
53809         an 'isblank' function but does not define it in the C library.
53810         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
53811         * lib/regex_internal.h (isblank): Likewise.
53812         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
53813         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
53814
53815 2007-06-05  Bruno Haible  <bruno@clisp.org>
53816
53817         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
53818         ia64.
53819         * modules/printf-safe: New file.
53820         * modules/fprintf-posix (Depends-on): Add printf-safe.
53821         * modules/printf-posix (Depends-on): Likewise.
53822         * modules/snprintf-posix (Depends-on): Likewise.
53823         * modules/sprintf-posix (Depends-on): Likewise.
53824         * modules/vasnprintf-posix (Depends-on): Likewise.
53825         * modules/vasprintf-posix (Depends-on): Likewise.
53826         * modules/vfprintf-posix (Depends-on): Likewise.
53827         * modules/vprintf-posix (Depends-on): Likewise.
53828         * modules/vsnprintf-posix (Depends-on): Likewise.
53829         * modules/vsprintf-posix (Depends-on): Likewise.
53830         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
53831         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
53832         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
53833         "no" on i386, x86_64, ia64.
53834         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
53835         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53836         on i386, x86_64, ia64.
53837         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
53838         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53839         on i386, x86_64, ia64.
53840         * tests/test-vasnprintf-posix.c: Include float.h.
53841         (LDBL80_WORDS): New macro.
53842         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53843         on i386, x86_64, ia64.
53844         * tests/test-vasprintf-posix.c: Include float.h.
53845         (LDBL80_WORDS): New macro.
53846         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53847         on i386, x86_64, ia64.
53848         * tests/test-snprintf-posix.c: Include float.h.
53849         * tests/test-sprintf-posix.c: Likewise.
53850         * tests/test-vsnprintf-posix.c: Likewise.
53851         * tests/test-vsprintf-posix.c: Likewise.
53852
53853 2007-06-05  Bruno Haible  <bruno@clisp.org>
53854
53855         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
53856         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
53857         non-IEEE numbers on i386, x86_64, ia64.
53858         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
53859         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
53860         * tests/test-isnanl.h: Include float.h.
53861         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
53862
53863 2007-06-05  Bruno Haible  <bruno@clisp.org>
53864
53865         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
53866         also the %a / %A. Handle the %a / %A code before this extra handling.
53867
53868 2007-06-05  Bruno Haible  <bruno@clisp.org>
53869
53870         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
53871         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
53872
53873 2007-06-05  Bruno Haible  <bruno@clisp.org>
53874
53875         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
53876         typo in variable name.
53877
53878 2007-06-05  Eric Blake  <ebb9@byu.net>
53879
53880         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
53881         Reported by Simon Josefsson.
53882
53883 2007-06-04  Bruno Haible  <bruno@clisp.org>
53884
53885         Avoid test failures on some PowerPC platforms.
53886         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
53887         Define differently for PowerPC.
53888         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
53889         Reported by Gary V. Vaughan <gary@gnu.org>.
53890
53891 2007-06-02  Bruno Haible  <bruno@clisp.org>
53892
53893         Fix test-stdint failure on FreeBSD/ia64.
53894         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
53895         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
53896         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
53897         * doc/headers/stdint.texi: Update.
53898
53899 2007-06-01  Bruno Haible  <bruno@clisp.org>
53900
53901         * tests/test-binary-io.c (main): Pass a third argument to open().
53902         Reported by Gary V. Vaughan <gary@gnu.org>.
53903
53904 2007-06-01  Bruno Haible  <bruno@clisp.org>
53905
53906         * doc/functions/frexpl.texi: Update for mingw.
53907
53908 2007-06-01  Bruno Haible  <bruno@clisp.org>
53909
53910         * tests/test-lseek.c (main): Disable test of errno for invalid third
53911         argument.
53912         * doc/functions/lseek.texi: Update.
53913         Reported by Gary V. Vaughan <gary@gnu.org>.
53914
53915 2007-05-28  Bruno Haible  <bruno@clisp.org>
53916
53917         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
53918
53919 2007-05-31  Eric Blake  <ebb9@byu.net>
53920
53921         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
53922         cross compiling.
53923
53924 2007-05-30  Eric Blake  <ebb9@byu.net>
53925         and Bruno Haible  <bruno@clisp.org>
53926
53927         Work around mingw test failures exposed by m4-1.4.9b.
53928         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
53929         * tests/test-unistd.c: Disable uid_t and git_t tests for the
53930         moment.
53931
53932 2007-05-30  Bruno Haible  <bruno@clisp.org>
53933
53934         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
53935         assuming that they are closed. Needed on HP-UX 11.
53936
53937 2007-05-29  Bruno Haible  <bruno@clisp.org>
53938
53939         Fix a problem with #include_next.
53940         * lib/dirent_.h: Split the double-inclusion guard.
53941         * lib/fcntl_.h: Likewise.
53942         * lib/float_.h: Likewise.
53943         * lib/iconv_.h: Likewise.
53944         * lib/inttypes_.h: Likewise.
53945         * lib/locale_.h: Likewise.
53946         * lib/math_.h: Likewise.
53947         * lib/netinet_in_.h: Likewise.
53948         * lib/search_.h: Likewise.
53949         * lib/signal_.h: Likewise.
53950         * lib/stdint_.h: Likewise.
53951         * lib/stdio_.h: Likewise.
53952         * lib/stdlib_.h: Likewise.
53953         * lib/string_.h: Likewise.
53954         * lib/sys_select_.h: Likewise.
53955         * lib/sys_socket_.h: Likewise.
53956         * lib/sys_stat_.h: Likewise.
53957         * lib/sys_time_.h: Likewise.
53958         * lib/sysexits_.h: Likewise.
53959         * lib/time_.h: Likewise.
53960         * lib/unistd_.h: Likewise.
53961         * lib/wchar_.h: Likewise.
53962         * lib/wctype_.h: Likewise.
53963
53964 2007-05-29  Bruno Haible  <bruno@clisp.org>
53965
53966         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
53967         for the moment.
53968
53969 2007-05-29  Bruno Haible  <bruno@clisp.org>
53970
53971         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
53972         invocation.
53973         Reported by Eric Blake.
53974
53975 2007-05-29  Bruno Haible  <bruno@clisp.org>
53976
53977         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
53978         compiling case.
53979
53980 2007-05-29  Eric Blake  <ebb9@byu.net>
53981             Bruno Haible  <bruno@clisp.org>
53982
53983         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
53984         cross compiles.
53985
53986 2007-05-28  Eric Blake  <ebb9@byu.net>
53987
53988         * modules/closein-tests (test_closein_LDADD): Support test on
53989         cygwin with libtool.
53990
53991 2007-05-28  Bruno Haible  <bruno@clisp.org>
53992
53993         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
53994         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
53995         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
53996         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
53997         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
53998         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
53999         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
54000         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
54001         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
54002
54003 2007-05-28  Eric Blake  <ebb9@byu.net>
54004
54005         Unconditionally include <config.h> in unit tests.
54006         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
54007         * tests/test-allocsa.c, tests/test-arcfour.c,
54008         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
54009         tests/test-array_list.c, tests/test-array_oset.c,
54010         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
54011         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
54012         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
54013         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
54014         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
54015         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
54016         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
54017         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
54018         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
54019         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
54020         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
54021         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
54022         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
54023         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
54024         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
54025         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
54026         test-md5.c, test-memmem.c, test-printf-posix.c,
54027         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
54028         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
54029         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
54030         test-strcasestr.c, test-striconv.c, test-striconveh.c,
54031         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
54032         test-vasnprintf-posix2.c, test-vasnprintf.c,
54033         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
54034         test-vfprintf-posix.c, test-vprintf-posix.c,
54035         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
54036         test-xvasprintf.c: Likewise.
54037
54038 2007-05-28  Bruno Haible  <bruno@clisp.org>
54039
54040         * gnulib-tool (func_import): Remember the --with-tests command-line
54041         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
54042         Reported by Eric Blake.
54043
54044 2007-05-28  Bruno Haible  <bruno@clisp.org>
54045
54046         * modules/ftell-tests: New file.
54047         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
54048         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
54049
54050         * lib/ftell.c: New file.
54051         * modules/ftell: New file.
54052         * m4/ftell.m4: New file.
54053         * doc/functions/ftell.texi: Update.
54054         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
54055         REPLACE_FTELL.
54056         * lib/stdio_.h (rpl_ftell): New declaration.
54057         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
54058         REPLACE_FTELL.
54059
54060 2007-05-28  Eric Blake  <ebb9@byu.net>
54061
54062         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
54063
54064 2007-05-28  Bruno Haible  <bruno@clisp.org>
54065
54066         * modules/fseek-tests: New file.
54067         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
54068         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
54069
54070         * lib/fseek.c: New file.
54071         * modules/fseek: New file.
54072         * m4/fseek.m4: New file.
54073         * doc/functions/fseek.texi: Update.
54074         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
54075         REPLACE_FSEEK.
54076         * lib/stdio_.h (rpl_fseek): New declaration.
54077         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
54078         REPLACE_FSEEK.
54079
54080 2007-05-28  Bruno Haible  <bruno@clisp.org>
54081
54082         * lib/stdio_.h (fflush): More comments.
54083
54084 2007-05-28  Bruno Haible  <bruno@clisp.org>
54085
54086         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
54087         runtime test.
54088
54089 2007-05-28  Eric Blake  <ebb9@byu.net>
54090
54091         Improve lseek module.
54092         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
54093         * lib/unistd_.h (lseek): Scale back link warning message.
54094         * tests/test-lseek.c: Beef up test.
54095         * tests/test-lseek.sh: Exercise more facets of lseek.
54096         Reported by Bruno Haible.
54097
54098 2007-05-28  Bruno Haible  <bruno@clisp.org>
54099
54100         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
54101         to define.
54102
54103 2007-05-27  Bruno Haible  <bruno@clisp.org>
54104
54105         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
54106
54107 2007-05-27  Bruno Haible  <bruno@clisp.org>
54108
54109         * modules/openmp: New file.
54110         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
54111         Noah Misch.
54112
54113 2007-05-26  Bruno Haible  <bruno@clisp.org>
54114
54115         * modules/chdir-long (Depends-on): Add fchdir.
54116         * modules/chdir-safer (Depends-on): Likewise.
54117         * modules/fts (Depends-on): Likewise.
54118         * modules/fts-lgpl (Depends-on): Likewise.
54119         * modules/openat (Depends-on): Likewise.
54120         * modules/savewd (Depends-on): Likewise.
54121
54122 2007-05-24  Eric Blake  <ebb9@byu.net>
54123
54124         Fix lseek on mingw.
54125         * modules/lseek: New module.
54126         * m4/lseek.m4: New file.
54127         * lib/lseek.c: New file.
54128         * modules/lseek-tests: New file.
54129         * tests/test-lseek.c: New file.
54130         * tests/test-lseek.sh: New file.
54131         * MODULES.html.sh: Document lseek module.
54132         * modules/fflush (Depends-on): Add lseek, fseeko.
54133         * modules/fseeko (Depends-on): Likewise.
54134         * modules/ftello (Depends-on): Likewise.
54135         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
54136         broken.
54137         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
54138         broken.
54139         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
54140         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
54141         * lib/ftello.c (rpl_ftello): Likewise.
54142         * tests/test-fseeko.c (main): Test this.
54143         * tests/test-fseeko.sh: Likewise.
54144         * tests/test-ftello.c (main): Likewise.
54145         * tests/test-ftello.sh: Likewise.
54146         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
54147         implies replacing fseek.
54148         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
54149         HAVE_FTELLO.
54150         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
54151         * modules/unistd (Makefile.am): Likewise.
54152         * lib/unistd_.h (lseek): Declare a replacement.
54153         * doc/functions/lseek.texi (lseek): Document this fix.
54154         * doc/functions/fseek.texi (fseek): Likewise.
54155         * doc/functions/ftell.texi (ftell): Likewise.
54156
54157 2007-05-24  Bruno Haible  <bruno@clisp.org>
54158
54159         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
54160         in the printed representation of a NaN.
54161         * tests/test-vasprintf-posix.c (test_function): Likewise.
54162         * tests/test-snprintf-posix.h (test_function): Likewise.
54163         * tests/test-sprintf-posix.h (test_function): Likewise.
54164         Reported by Eric Blake.
54165
54166 2007-05-23  Eric Blake  <ebb9@byu.net>
54167
54168         Fix fseeko/ftello on cygwin 1.5.24.
54169         * doc/functions/fseeko.texi (fseeko): Document the fix.
54170         * doc/functions/ftello.texi (ftello): Document the fix.
54171         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
54172         * doc/functions/stdout.text (stdout): New file.
54173         * doc/functions/stderr.text (stderr): New file.
54174         * doc/gnulib.texi (Function Substitutes): Use new files.
54175         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
54176         prior to 1.7.0.
54177         * tests/test-ftello.c (main): Likewise for ftello.
54178         * tests/test-fseeko.sh: New file.
54179         * tests/test-ftello.sh: New file.
54180         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
54181         with seekable stdin.
54182         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
54183         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
54184         (gl_REPLACE_FSEEKO): New macro.
54185         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
54186         * modules/fseeko (Files): Distribute fseeko.c.
54187         * modules/ftello (Files): Distribute ftello.c.
54188         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
54189         mode.
54190         * lib/ftello.c (rpl_ftello): New file.
54191         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
54192         fseeko, ftello.
54193         (gl_STDIN_LARGE_OFFSET): New macro.
54194         * modules/stdio (Makefile.am): Perform the replacement.
54195         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
54196
54197 2007-05-23  Bruno Haible  <bruno@clisp.org>
54198
54199         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
54200         GNULIB_POSIXCHECK is defined.
54201
54202 2007-05-21  Bruno Haible  <bruno@clisp.org>
54203
54204         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
54205         Check also the output for NaN arguments. When cross-compiling, guess
54206         no on IRIX.
54207         * lib/vasnprintf.c: Update comments.
54208         * tests/test-vasnprintf-posix.c (strisnan): New function.
54209         (test_function): Use it.
54210         * tests/test-vasprintf-posix.c (strisnan): New function.
54211         (test_function): Use it.
54212         * tests/test-snprintf-posix.h (strisnan): New function.
54213         (test_function): Use it.
54214         * tests/test-sprintf-posix.h (strisnan): New function.
54215         (test_function): Use it.
54216         Reported by Eric Blake.
54217
54218 2007-05-20  Bruno Haible  <bruno@clisp.org>
54219
54220         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
54221         numbers that fails on BeOS.
54222         * doc/functions/frexpl.texi: Update.
54223
54224 2007-05-20  Jim Meyering  <jim@meyering.net>
54225
54226         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
54227         forced upon us by glibc-2.6.
54228
54229 2007-05-20  Bruno Haible  <bruno@clisp.org>
54230
54231         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
54232         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
54233         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
54234         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
54235         NEED_PRINTF_INFINITE.
54236         (is_infinitel): New function.
54237         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
54238         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
54239         gl_PREREQ_VASNPRINTF_INFINITE.
54240         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
54241         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54242         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
54243         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
54244         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
54245         gl_PREREQ_VASNPRINTF_INFINITE.
54246         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54247         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54248         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54249         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54250         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54251         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54252         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54253         * doc/functions/fprintf.texi: Update.
54254         * doc/functions/printf.texi: Update.
54255         * doc/functions/snprintf.texi: Update.
54256         * doc/functions/sprintf.texi: Update.
54257         * doc/functions/vfprintf.texi: Update.
54258         * doc/functions/vprintf.texi: Update.
54259         * doc/functions/vsnprintf.texi: Update.
54260         * doc/functions/vsprintf.texi: Update.
54261
54262 2007-05-20  Bruno Haible  <bruno@clisp.org>
54263
54264         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
54265         was not found in libc.
54266         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
54267
54268 2007-05-20  Bruno Haible  <bruno@clisp.org>
54269
54270         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
54271         printed as "-nan" instead of "nan".
54272         * tests/test-vasprintf-posix.c (test_function): Likewise.
54273         * tests/test-snprintf-posix.h (test_function): Likewise.
54274         * tests/test-sprintf-posix.h (test_function): Likewise.
54275         Needed for HP-UX 11.
54276
54277 2007-05-20  Jim Meyering  <jim@meyering.net>
54278
54279         Fix buggy test for the fchownat-deref bug.
54280         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
54281         symlink required for the run-test.  Without it, this test would
54282         always declare that fchownat doesn't work, and client code would
54283         unnecessarily use the replacement function with fixed libc.
54284         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
54285         Reported by Greg Schafer.
54286
54287 2007-05-19  Bruno Haible  <bruno@clisp.org>
54288
54289         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
54290         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
54291         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
54292         Needed for IRIX 6.5 and Solaris 2.5.1.
54293
54294 2007-05-19  Bruno Haible  <bruno@clisp.org>
54295
54296         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
54297         (test_function): Skip tests involving -0.0 on platforms where
54298         -0.0 = 0.0.
54299         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
54300         (test_function): Skip tests involving -0.0 on platforms where
54301         -0.0 = 0.0.
54302         * tests/test-snprintf-posix.h (have_minus_zero): New function.
54303         (test_function): Skip tests involving -0.0 on platforms where
54304         -0.0 = 0.0.
54305         * tests/test-sprintf-posix.h (have_minus_zero): New function.
54306         (test_function): Skip tests involving -0.0 on platforms where
54307         -0.0 = 0.0.
54308         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
54309         tests.
54310         * tests/test-printf-posix.h (test_function): Likewise.
54311         * tests/test-printf-posix.output: Remove all -0.0 related results.
54312         Needed for IRIX 6.5.
54313
54314 2007-05-19  Bruno Haible  <bruno@clisp.org>
54315
54316         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
54317         printed as "nan0x7fffffff" instead of "nan".
54318         * tests/test-vasprintf-posix.c (test_function): Likewise.
54319         * tests/test-snprintf-posix.h (test_function): Likewise.
54320         * tests/test-sprintf-posix.h (test_function): Likewise.
54321         * tests/test-fprintf-posix.h (NaN): Remove macro.
54322         (test_function): Remove all NaN related tests.
54323         * tests/test-printf-posix.h (NaN): Remove macro.
54324         (test_function): Remove all NaN related tests.
54325         * tests/test-printf-posix.output: Remove all NaN related results.
54326         Needed for IRIX 6.5.
54327
54328 2007-05-19  Bruno Haible  <bruno@clisp.org>
54329
54330         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
54331         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
54332
54333 2007-05-19  Bruno Haible  <bruno@clisp.org>
54334
54335         * lib/float_.h: New file.
54336         * m4/float_h.m4: New file.
54337         * modules/float: New file.
54338         * modules/isnanl (Dependencies): Add float.
54339         * modules/isnanl-nolibm (Dependencies): Likewise.
54340         * modules/mathl (Dependencies): Likewise.
54341         * modules/printf-frexpl (Dependencies): Likewise.
54342         * modules/signbit (Dependencies): Likewise.
54343         * modules/vasnprintf (Dependencies): Likewise.
54344         * doc/headers/float.texi: Update.
54345
54346 2007-05-19  Jim Meyering  <jim@meyering.net>
54347
54348         * lib/utimens.c (gl_futimens): Rename from futimens,
54349         now that glibc-2.6 declares futimens.
54350         * lib/utimens.h: Likewise.
54351
54352 2007-05-19  Bruno Haible  <bruno@clisp.org>
54353
54354         Avoid test failures on mingw.
54355         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
54356         * tests/test-printf-posix.sh: Likewise.
54357         * tests/test-vfprintf-posix.sh: Likewise.
54358         * tests/test-vprintf-posix.sh: Likewise.
54359
54360 2007-05-19  Bruno Haible  <bruno@clisp.org>
54361
54362         Fix *printf result for NaN, Inf, -0.0 on mingw.
54363         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
54364         * lib/vasnprintf.c: Include math.h and isnan.h.
54365         (is_infinite_or_zero): New function.
54366         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
54367         values in the %f, %F, %e, %E, %g, %G directives.
54368         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
54369         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54370         gl_PRINTF_INFINITE and test its result. Invoke
54371         gl_PREREQ_VASNPRINTF_INFINITE.
54372         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54373         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54374         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54375         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54376         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54377         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54378         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54379         * doc/functions/fprintf.texi: Update.
54380         * doc/functions/printf.texi: Update.
54381         * doc/functions/snprintf.texi: Update.
54382         * doc/functions/sprintf.texi: Update.
54383         * doc/functions/vfprintf.texi: Update.
54384         * doc/functions/vprintf.texi: Update.
54385         * doc/functions/vsnprintf.texi: Update.
54386         * doc/functions/vsprintf.texi: Update.
54387
54388 2007-05-19  Bruno Haible  <bruno@clisp.org>
54389
54390         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
54391         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
54392         Instead of multiplying with 10^k, set extra_zeroes to k.
54393         (scale10_round_long_double): Remove function.
54394
54395 2007-05-18  Bruno Haible  <bruno@clisp.org>
54396
54397         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
54398         introduced on 2007-05-06.
54399
54400 2007-05-18  Bruno Haible  <bruno@clisp.org>
54401
54402         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
54403         %g directives.
54404         * tests/test-vasprintf-posix.c (test_function): Likewise.
54405         * tests/test-snprintf-posix.h (test_function): Likewise.
54406         * tests/test-sprintf-posix.h (test_function): Likewise.
54407
54408 2007-05-18  Bruno Haible  <bruno@clisp.org>
54409
54410         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
54411         (strmatch): New function.
54412         (test_function): Test the %f directive on numbers of various exponents.
54413         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
54414         (strmatch): New function.
54415         (test_function): Test the %f directive on numbers of various exponents.
54416         * tests/test-snprintf-posix.h (strmatch): New function.
54417         (test_function): Test the %f directive on numbers of various exponents.
54418         * tests/test-sprintf-posix.h (strmatch): New function.
54419         (test_function): Test the %f directive on numbers of various exponents.
54420         * tests/test-snprintf-posix.c (SIZEOF): New macro.
54421         * tests/test-sprintf-posix.c (SIZEOF): New macro.
54422         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
54423         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
54424
54425 2007-05-18  Bruno Haible  <bruno@clisp.org>
54426
54427         Add support for 'long double' number output.
54428         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
54429         * lib/vasnprintf.c: Include math.h and float+.h.
54430         (mp_limb_t): New type.
54431         (GMP_LIMB_BITS): New macro.
54432         (mp_twolimb_t): New type.
54433         (GMP_TWOLIMB_BITS): New macro.
54434         (mpn_t): New type.
54435         (multiply, divide, convert_to_decimal, decode_long_double,
54436         scale10_round_long_double, scale10_round_decimal_long_double,
54437         floorlog10l): New functions.
54438         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
54439         for the %f, %F, %e, %E, %g, %G directives.
54440         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
54441         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54442         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
54443         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
54444         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54445         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54446         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54447         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54448         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54449         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54450         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54451         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
54452         * modules/snprintf-posix (Depends-on): Likewise.
54453         * modules/sprintf-posix (Depends-on): Likewise.
54454         * modules/vasnprintf-posix (Depends-on): Likewise.
54455         * modules/vasprintf-posix (Depends-on): Likewise.
54456         * modules/vfprintf-posix (Depends-on): Likewise.
54457         * modules/vsnprintf-posix (Depends-on): Likewise.
54458         * modules/vsprintf-posix (Depends-on): Likewise.
54459         * modules/vasnprintf (Files): Add lib/float+.h.
54460         * doc/functions/fprintf.texi: Update.
54461         * doc/functions/printf.texi: Update.
54462         * doc/functions/snprintf.texi: Update.
54463         * doc/functions/sprintf.texi: Update.
54464         * doc/functions/vfprintf.texi: Update.
54465         * doc/functions/vprintf.texi: Update.
54466         * doc/functions/vsnprintf.texi: Update.
54467         * doc/functions/vsprintf.texi: Update.
54468
54469 2007-05-18  Bruno Haible  <bruno@clisp.org>
54470
54471         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
54472
54473 2007-05-18  Bruno Haible  <bruno@clisp.org>
54474
54475         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
54476         for printing 64-bit integers. Needed for mingw.
54477
54478 2007-05-18  Bruno Haible  <bruno@clisp.org>
54479
54480         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
54481         gl_FUNC_FREXPL_WORKS.
54482         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
54483
54484 2007-05-18  Bruno Haible  <bruno@clisp.org>
54485
54486         * modules/frexpl-nolibm-tests: New file.
54487
54488         * modules/frexpl-nolibm: New file.
54489         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
54490
54491 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
54492
54493         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
54494         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
54495         GCC 4.2, which otherwise issues a lot of warnings.
54496         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
54497         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
54498         Likewise.
54499         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
54500         * modules/iconv_open (iconv.h): Likewise.
54501         * modules/locale (locale.h): Likewise.
54502         * modules/netinet_in (netinet/in.h): Likewise.
54503         * modules/sys_select (sys_select.h): Likewise.
54504         * modules/sys_socket (sys/socket.h): Likewise.
54505         * modules/sys_stat (sys/stat.h): Likewise.
54506         * modules/sysexits (sysexits.h): Likewise.
54507         * modules/unistd (unistd.h): Likewise.
54508
54509 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54510
54511         * modules/closein-tests (Makefile.am): Distribute
54512         `test-closein.sh'.
54513
54514 2007-05-17  Bruno Haible  <bruno@clisp.org>
54515
54516         * tests/test-printf-posix.output: Renamed from
54517         tests/test-fprintf-posix.out.
54518         * modules/fprintf-posix-tests: Update.
54519         * modules/printf-posix-tests: Update.
54520         * modules/vfprintf-posix-tests: Update.
54521         * modules/vprintf-posix-tests: Update.
54522         * tests/test-fprintf-posix.sh: Update.
54523         * tests/test-printf-posix.sh: Update.
54524         * tests/test-vfprintf-posix.sh: Update.
54525         * tests/test-vprintf-posix.sh: Update.
54526         Reported by Ralf Wildenhues.
54527
54528 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54529
54530         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
54531         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
54532         GCC 4.2, which otherwise issues a lot of warnings.
54533         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
54534         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
54535         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
54536         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
54537         it should no longer be needed.
54538         * lib/string_.h: Likewise.
54539         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
54540         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
54541         * modules/inttypes (inttypes.h): Likewise.
54542         * modules/math (math.h): Likewise.
54543         * modules/search (search.h): Likewise.
54544         * modules/signal (signal.h): Likewise.
54545         * modules/stdint (stdint.h): Likewise.
54546         * modules/stdio (stdio.h): Likewise.
54547         * modules/stdlib (stdlib.h): Likewise.
54548         * modules/string (string.h): Likewise.
54549         * modules/sys_time (sys/time.h): Likewise.
54550         * modules/time (time.h): Likewise.
54551         * modules/wchar (wchar.h): Likewise.
54552         * modules/wctype (wtype.h): Likewise.
54553
54554 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
54555
54556         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
54557
54558 2007-05-13  Bruno Haible  <bruno@clisp.org>
54559
54560         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
54561         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
54562         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
54563         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
54564         (gl_PREREQ_STRTOK_R): Don't require it here.
54565
54566 2007-05-13  Bruno Haible  <bruno@clisp.org>
54567
54568         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
54569         when used in C++ mode.
54570
54571 2007-05-12  Bruno Haible  <bruno@clisp.org>
54572
54573         * lib/linebuffer.h: Tweak doc.
54574         * lib/linebuffer.c: Likewise.
54575
54576 2007-05-12  James Youngman  <jay@gnu.org>
54577
54578         * lib/linebuffer.c (readlinebuffer_delim): New function,
54579         like readlinebuffer, but use a caller-specified delimiter.
54580         (readlinebuffer): Just call readlinebuffer_delim with '\n'
54581         as the delimiter.
54582         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
54583
54584 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
54585
54586         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
54587         * modules/openat (Files): Remove openat-die.c.
54588         (Depends-on): Add openat-die.
54589         * modules/openat-die: New module.
54590
54591 2007-05-06  Bruno Haible  <bruno@clisp.org>
54592
54593         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
54594         Update with info about Cygwin.
54595         * doc/functions/fprintf.texi: Update.
54596         * doc/functions/printf.texi: Update.
54597         * doc/functions/snprintf.texi: Update.
54598         * doc/functions/sprintf.texi: Update.
54599         * doc/functions/vfprintf.texi: Update.
54600         * doc/functions/vprintf.texi: Update.
54601         * doc/functions/vsnprintf.texi: Update.
54602         * doc/functions/vsprintf.texi: Update.
54603         Reported by Eric Blake.
54604
54605 2007-05-06  Bruno Haible  <bruno@clisp.org>
54606
54607         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
54608         padding ourselves for the floating-point directives.
54609         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
54610         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
54611         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54612         gl_PRINTF_FLAG_ZERO and test its result. Invoke
54613         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
54614         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54615         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
54616         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54617         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54618         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54619         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54620         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54621         * tests/test-snprintf-posix.h (test_function): Also check the width
54622         and some flags in the %f directive.
54623         * tests/test-sprintf-posix.h (test_function): Likewise.
54624         * tests/test-vasnprintf-posix.c (test_function): Likewise.
54625         * tests/test-vasprintf-posix.c (test_function): Likewise.
54626         * doc/functions/fprintf.texi: Update.
54627         * doc/functions/printf.texi: Update.
54628         * doc/functions/snprintf.texi: Update.
54629         * doc/functions/sprintf.texi: Update.
54630         * doc/functions/vfprintf.texi: Update.
54631         * doc/functions/vprintf.texi: Update.
54632         * doc/functions/vsnprintf.texi: Update.
54633         * doc/functions/vsprintf.texi: Update.
54634
54635 2007-05-06  Bruno Haible  <bruno@clisp.org>
54636
54637         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
54638         pass the ' flag character to sprintf or snprintf.
54639         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
54640         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
54641         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54642         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
54643         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
54644         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54645         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
54646         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54647         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54648         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54649         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54650         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54651         * tests/test-snprintf-posix.h (test_function): Also check the grouping
54652         flag.
54653         * tests/test-sprintf-posix.h (test_function): Likewise.
54654         * tests/test-vasnprintf-posix.c (test_function): Likewise.
54655         * tests/test-vasprintf-posix.c (test_function): Likewise.
54656         * doc/functions/fprintf.texi: Update.
54657         * doc/functions/printf.texi: Update.
54658         * doc/functions/snprintf.texi: Update.
54659         * doc/functions/sprintf.texi: Update.
54660         * doc/functions/vfprintf.texi: Update.
54661         * doc/functions/vprintf.texi: Update.
54662         * doc/functions/vsnprintf.texi: Update.
54663         * doc/functions/vsprintf.texi: Update.
54664
54665 2007-05-01  Bruno Haible  <bruno@clisp.org>
54666
54667         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
54668
54669 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
54670
54671         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
54672         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
54673
54674 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
54675
54676         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
54677         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
54678         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
54679
54680 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
54681
54682         * lib/argp-help.c (struct hol_entry): New member `ord'.
54683         (HOL_ENTRY_PTRCMP): Use ord for comparison
54684         (hol_sort): Initialize ord.
54685
54686 2007-05-01  Bruno Haible  <bruno@clisp.org>
54687
54688         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
54689         Reported by Eric Blake.
54690         * doc/gnulib.texi (Function Substitutes): Update.
54691
54692 2007-05-01  Bruno Haible  <bruno@clisp.org>
54693
54694         * doc/functions.texi: Remove file, now redundant through
54695         doc/functions/*.texi.
54696
54697 2007-05-01  Bruno Haible  <bruno@clisp.org>
54698
54699         * modules/argp (Depends-on): Add sleep.
54700
54701 2007-05-01  Bruno Haible  <bruno@clisp.org>
54702
54703         * modules/sleep-tests: New file.
54704         * tests/test-sleep.c: New file.
54705
54706         * modules/sleep: New file.
54707         * lib/sleep.c: New file.
54708         * m4/sleep.m4: New file.
54709         * lib/unistd_.h (sleep): New declaration.
54710         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
54711         HAVE_SLEEP.
54712         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
54713         * doc/functions/sleep.texi: Document the sleep module.
54714
54715 2007-05-01  Bruno Haible  <bruno@clisp.org>
54716
54717         * lib/sigprocmask.h: Remove file.
54718         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
54719         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
54720         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
54721         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
54722         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
54723         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
54724         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
54725         HAVE_SIGSET_T as a shell variable.
54726         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
54727         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
54728         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
54729         (Depends-on): Add signal. Remove verify.
54730         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
54731         (Include): Mention <signal.h> instead of sigprocmask.h.
54732         * NEWS: Mention the change.
54733         * lib/fatal-signal.c: Don't include sigprocmask.h.
54734
54735 2007-05-01  Bruno Haible  <bruno@clisp.org>
54736
54737         * modules/signal: New file.
54738         * lib/signal_.h: New file.
54739         * m4/signal_h.m4: New file.
54740
54741 2007-05-01  Bruno Haible  <bruno@clisp.org>
54742
54743         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
54744         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
54745         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
54746         HAVE_WCTYPE_CTMP_BUG into wctype.h.
54747
54748 2007-05-01  Bruno Haible  <bruno@clisp.org>
54749
54750         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
54751         configure time.
54752         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
54753         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
54754         * modules/sys_stat (Makefile.am): Substitute their values into
54755         sys/stat.h.
54756
54757 2007-05-01  Bruno Haible  <bruno@clisp.org>
54758
54759         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
54760         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
54761         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
54762
54763 2007-05-01  Bruno Haible  <bruno@clisp.org>
54764
54765         * doc/header/assert.texi: Undo last change: don't mention the gnulib
54766         'assert' module here.
54767
54768 2007-05-01  Bruno Haible  <bruno@clisp.org>
54769
54770         * doc/functions/*.texi: New files.
54771         * doc/functions/google-ranking.txt: New file.
54772         * doc/gnulib.texi (Function Substitutes): New chapter.
54773         (ctime, inet_ntoa): Remove sections.
54774         * doc/ctime.texi: Remove file.
54775         * doc/inet_ntoa.texi: Remove file.
54776         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
54777         dependencies.
54778         (%.info): New rule, specifying a --reference-limit.
54779
54780 2007-05-01  Bruno Haible  <bruno@clisp.org>
54781
54782         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
54783
54784 2007-05-01  Bruno Haible  <bruno@clisp.org>
54785
54786         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
54787         the portability of 'mkdir' to mingw systems.
54788
54789 2007-05-01  Bruno Haible  <bruno@clisp.org>
54790
54791         * doc/headers/google-ranking.txt: New file.
54792
54793 2007-04-30  Eric Blake  <ebb9@byu.net>
54794
54795         Prefer fseeko to fseek.
54796         * modules/getpass (Depends-on): Add fseeko.
54797         * lib/getpass.c (getpass): Use fseeko, not fseek.
54798
54799 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
54800
54801         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
54802         assumes the sorting is stable, while most qsort implementations
54803         are not.  Use argument addresses to ensure they never compare as
54804         equal.
54805
54806         * tests/test-argp-2.sh (usage-indent test): Fix output
54807         (func_compare): Restore diff options
54808         * tests/test-argp.c: Restore #include "progname.h"
54809
54810 2007-04-29  Bruno Haible  <bruno@clisp.org>
54811
54812         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
54813         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54814         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
54815         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54816         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
54817         (configure.ac): Define CHECK_SNPRINTF_POSIX.
54818         (TESTS, check_PROGRAMS): Add test-snprintf.
54819         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
54820         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
54821         (TESTS, check_PROGRAMS): Add test-vsnprintf.
54822         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
54823         assertions that fail on HP-UX, OSF/1, or IRIX.
54824         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
54825
54826 2007-04-29  Bruno Haible  <bruno@clisp.org>
54827
54828         * MODULES.html.sh (posix_functions): Remove 'contents'.
54829
54830 2007-04-29  Karl Berry  <karl@gnu.org>
54831
54832         * config/srclist.txt (gendocs_template_min): new entry.
54833
54834 2007-04-29  Bruno Haible  <bruno@clisp.org>
54835
54836         Work around fpurge bug on BSD systems.
54837         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
54838         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
54839         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
54840         fpurge to rpl_fpurge if the system already has this function.
54841         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
54842         the case where the system already has this function. Correct invariants
54843         on BSD systems.
54844         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
54845         BSD systems.
54846
54847 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
54848
54849         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
54850         proposed by Sven Verdoolaege.
54851
54852         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
54853         options.
54854         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
54855         (usage and help tests): Update
54856
54857 2007-04-29  Bruno Haible  <bruno@clisp.org>
54858
54859         * tests/test-fflush.c (main): Use a file of size 17, not 10.
54860         Print more information in case of failure. Disable a test on BeOS.
54861
54862 2007-04-29  Bruno Haible  <bruno@clisp.org>
54863
54864         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
54865         This helps debugging on systems on which no gdb is available.
54866
54867 2007-04-29  Bruno Haible  <bruno@clisp.org>
54868
54869         * lib/freading.h: Improve comments.
54870         * lib/fwriting.h: Likewise.
54871         * tests/test-freading.c (main): Don't check freading immediately after
54872         repositioning. Needed for glibc.
54873
54874 2007-04-29  Bruno Haible  <bruno@clisp.org>
54875
54876         * lib/freading.c (freading): Trivial simplification.
54877
54878 2007-04-28  Bruno Haible  <bruno@clisp.org>
54879
54880         * tests/test-fwriting.c (main): Also test the interaction between
54881         fflush and fwriting.
54882         * modules/fwriting-tests (Depends-on): Add fflush.
54883
54884         * tests/test-freading.c (main): Also test the interaction between
54885         fflush and freading.
54886         * modules/freading-tests (Depends-on): Add fflush.
54887
54888 2007-04-28  Bruno Haible  <bruno@clisp.org>
54889
54890         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
54891         fseeko and ftello.
54892         Suggested by Eric Blake.
54893
54894 2007-04-28  Jim Meyering  <jim@meyering.net>
54895
54896         Avoid false-negative in gl_STDINT_H's C99 conformance test.
54897         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
54898         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
54899
54900 2007-04-27  Eric Blake  <ebb9@byu.net>
54901
54902         * doc/headers/assert.texi (assert.h): Document assert module use.
54903
54904 2007-04-27  Bruno Haible  <bruno@clisp.org>
54905
54906         * doc/headers/*.texi: New files.
54907         * doc/gnulib.texi (Header File Substitutes): New chapter.
54908         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
54909         dependencies.
54910         (standards.info ,standards.html, standards.dvi): Update dependencies.
54911         (mostlyclean, clean): New targets.
54912
54913 2007-04-27  Bruno Haible  <bruno@clisp.org>
54914
54915         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
54916         * modules/sysexits (Files, Makefile.am): Update.
54917
54918         * lib/sys_socket_.h: Renamed from lib/socket_.h.
54919         * modules/sys_socket (Files, Makefile.am): Update.
54920
54921         * lib/sys_stat_.h: Renamed from lib/stat_.h.
54922         * modules/sys_stat (Files, Makefile.am): Update.
54923
54924 2007-04-27  Eric Blake  <ebb9@byu.net>
54925
54926         * lib/freading.h: Improve comments.
54927         * lib/fwriting.h: Likewise.
54928         * lib/fflush.c: Likewise.
54929
54930         Fix closein for mingw.
54931         * modules/closein-tests: Add tests for closein.
54932         * tests/test-closein.c: New file.
54933         * tests/test-closein.sh: Likewise.
54934         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
54935         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
54936
54937 2007-04-27  Bruno Haible  <bruno@clisp.org>
54938
54939         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
54940         version is < 6.
54941         * lib/math_.h [__DECC]: Likewise.
54942         * lib/stdio_.h [__DECC]: Likewise.
54943         * lib/stdlib_.h [__DECC]: Likewise.
54944         * lib/string_.h [__DECC]: Likewise.
54945         * lib/time_.h [__DECC]: Likewise.
54946         * lib/wchar_.h [__DECC]: Likewise.
54947         * lib/wctype_.h [__DECC]: Likewise.
54948
54949 2007-04-27  Bruno Haible  <bruno@clisp.org>
54950
54951         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
54952
54953 2007-04-27  Bruno Haible  <bruno@clisp.org>
54954
54955         * lib/fflush.c: Add comments.
54956         * modules/fpurge-tests (Depends-on): Add fflush.
54957         * modules/freadable-tests (Depends-on): Likewise.
54958         * modules/fwritable-tests (Depends-on): Likewise.
54959
54960 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
54961
54962         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
54963         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
54964         Report by Bruno Haible <bruno@clisp.org>.
54965
54966 2007-04-26  Eric Blake  <ebb9@byu.net>
54967
54968         Fix fflush on mingw.
54969         * modules/fflush (Depends-on): Add freading.
54970         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
54971         but unread data.
54972
54973 2007-04-26  Eric Blake  <ebb9@byu.net>
54974         and Bruno Haible  <bruno@clisp.org>
54975
54976         Implement freading and fwriting.
54977         * lib/freading.c: New file.
54978         * lib/freading.h: Likewise.
54979         * m4/freading.m4: Likewise.
54980         * modules/freading: Likewise.
54981         * modules/freading-tests: Likewise.
54982         * tests/test-freading.c: Likewise.
54983         * lib/fwriting.c: New file.
54984         * lib/fwriting.h: Likewise.
54985         * m4/fwriting.m4: Likewise.
54986         * modules/fwriting: Likewise.
54987         * modules/fwriting-tests: Likewise.
54988         * tests/test-fwriting.c: Likewise.
54989         * MODULES.html.sh (File stream based Input/Output): Mention them.
54990
54991 2007-04-26  Bruno Haible  <bruno@clisp.org>
54992
54993         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
54994         'long' when we assume it.
54995         Suggested by Eric Blake.
54996
54997 2007-04-26  Bruno Haible  <bruno@clisp.org>
54998
54999         Ensure fseeko, ftello are declared on glibc systems.
55000         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
55001         * modules/fseeko (configure.ac-early): Likewise.
55002         * modules/ftello (configure.ac-early): Likewise.
55003         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
55004         AC_FUNC_FSEEKO for this.
55005         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
55006         (gl_CHECK_FSEEKO): Remove macro.
55007
55008 2007-04-26  Bruno Haible  <bruno@clisp.org>
55009
55010         * tests/test-fflush.c (main): Also check the ftell result after
55011         fflush and fseek/fseeko.
55012         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
55013         file descriptor position cache in the stream.
55014         * lib/fseeko.c (rpl_fseeko): Likewise.
55015
55016 2007-04-26  Bruno Haible  <bruno@clisp.org>
55017
55018         * modules/fflush-tests (Depends-on): Add fseeko.
55019
55020 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
55021             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55022
55023         * lib/argz_.h: ensure error_t definition is obtained in same
55024         mechanism system argz.h would have.
55025         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
55026         argz facilities are known bad.  Err on the side of caution if
55027         cross-compiling.
55028
55029 2007-04-25  Eric Blake  <ebb9@byu.net>
55030
55031         * lib/fpurge.c (includes): Use stdlib.h for free.
55032         * tests/test-fflush.c (main): Also test fflush-fseeko.
55033
55034 2007-04-25  Bruno Haible  <bruno@clisp.org>
55035
55036         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
55037         * lib/fseeko.c: New file.
55038         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
55039         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
55040         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
55041         gl_FUNC_FSEEKO.
55042         (gl_FUNC_FSEEKO): Invoke it.
55043         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
55044         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
55045         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
55046
55047 2007-04-25  Bruno Haible  <bruno@clisp.org>
55048
55049         * modules/fflush (Depends-on): Add ftello.
55050
55051 2007-04-25  Bruno Haible  <bruno@clisp.org>
55052
55053         * modules/ftello-tests: New file.
55054         * tests/test-ftello.c: New file.
55055
55056         * modules/ftello: New file.
55057         * m4/ftello.m4: New file.
55058         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
55059         HAVE_FTELLO.
55060         * lib/stdio_.h (ftello): New declaration.
55061         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
55062         HAVE_FTELLO.
55063
55064 2007-04-25  Bruno Haible  <bruno@clisp.org>
55065
55066         * modules/fseeko-tests: New file.
55067         * tests/test-fseeko.c: New file.
55068
55069         * modules/fseeko: New file.
55070         * m4/fseeko.m4: New file.
55071         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
55072         HAVE_FSEEKO.
55073         * lib/stdio_.h (fseeko): New declaration.
55074         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
55075         HAVE_FSEEKO.
55076
55077 2007-04-25  Bruno Haible  <bruno@clisp.org>
55078
55079         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
55080
55081 2007-04-25  Bruno Haible  <bruno@clisp.org>
55082
55083         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
55084         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
55085         * tests/test-unistd.c: Likewise.
55086         * tests/test-fcntl.c: Likewise.
55087
55088 2007-04-23  Eric Blake  <ebb9@byu.net>
55089
55090         * lib/fflush.c: Fix missing include.
55091         Reported by Bruno Haible.
55092
55093 2007-04-23  Bruno Haible  <bruno@clisp.org>
55094
55095         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
55096         Reported by Eric Blake.
55097
55098 2007-04-23  Bruno Haible  <bruno@clisp.org>
55099
55100         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
55101
55102 2007-04-23  Bruno Haible  <bruno@clisp.org>
55103
55104         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
55105
55106 2007-04-23  Bruno Haible  <bruno@clisp.org>
55107
55108         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
55109         Needed on HP-UX 11.
55110
55111 2007-04-16  Eric Blake  <ebb9@byu.net>
55112
55113         Make fflush rely on fpurge.
55114         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
55115         open coding all variants.
55116         * modules/fflush (Depends-on): Add fpurge and unistd.
55117         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
55118         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
55119
55120         Fix --with-tests compilation on cygwin.
55121         * modules/argmatch-tests (Makefile.am): List gnulib library first
55122         in LDADD.
55123         * modules/argp-tests (Makefile.am): Likewise.
55124         * modules/array-list-tests (Makefile.am): Likewise.
55125         * modules/array-oset-tests (Makefile.am): Likewise.
55126         * modules/avltree-list-tests (Makefile.am): Likewise.
55127         * modules/avltree-oset-tests (Makefile.am): Likewise.
55128         * modules/avltreehash-list-tests (Makefile.am): Likewise.
55129         * modules/carray-list-tests (Makefile.am): Likewise.
55130         * modules/dirname-tests (Makefile.am): Likewise.
55131         * modules/frexp-tests (Makefile.am): Likewise.
55132         * modules/isnanl-tests (Makefile.am): Likewise.
55133         * modules/linked-list-tests (Makefile.am): Likewise.
55134         * modules/linkedhash-list-tests (Makefile.am): Likewise.
55135         * modules/lock-tests (Makefile.am): Likewise.
55136         * modules/rbtree-list-tests (Makefile.am): Likewise.
55137         * modules/rbtree-oset-tests (Makefile.am): Likewise.
55138         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
55139         * modules/tls-tests (Makefile.am): Likewise.
55140         * modules/tsearch-tests (Makefile.am): Likewise.
55141         * modules/xvasprintf-tests (Makefile.am): Likewise.
55142
55143         Fix fpurge for cygwin.
55144         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
55145         value.
55146         * modules/fpurge-tests (Depends-on): Clean up trash.
55147
55148 2007-04-16  Simon Josefsson  <simon@josefsson.org>
55149
55150         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
55151
55152         * m4/autobuild.m4: Re-indent.
55153
55154 2007-04-13  Bruno Haible  <bruno@clisp.org>
55155
55156         * modules/fpurge-tests: New file.
55157         * tests/test-fpurge.c: New file.
55158
55159         * modules/fpurge: New file.
55160         * lib/fpurge.h: New file.
55161         * lib/fpurge.c: New file.
55162         * m4/fpurge.m4: New file.
55163
55164 2007-04-13  Bruno Haible  <bruno@clisp.org>
55165
55166         * modules/fbufmode-tests: New file.
55167         * tests/test-fbufmode.c: New file.
55168
55169         * modules/fbufmode: New file.
55170         * lib/fbufmode.h: New file.
55171         * lib/fbufmode.c: New file.
55172         * m4/fbufmode.m4: New file.
55173
55174 2007-04-13  Bruno Haible  <bruno@clisp.org>
55175
55176         * modules/fwritable-tests: New file.
55177         * tests/test-fwritable.c: New file.
55178
55179         * modules/fwritable: New file.
55180         * lib/fwritable.h: New file.
55181         * lib/fwritable.c: New file.
55182         * m4/fwritable.m4: New file.
55183
55184 2007-04-13  Bruno Haible  <bruno@clisp.org>
55185
55186         * modules/freadable-tests: New file.
55187         * tests/test-freadable.c: New file.
55188
55189         * modules/freadable: New file.
55190         * lib/freadable.h: New file.
55191         * lib/freadable.c: New file.
55192         * m4/freadable.m4: New file.
55193
55194 2007-04-13  Bruno Haible  <bruno@clisp.org>
55195
55196         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
55197         MOSTLYCLEANFILES.
55198
55199 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
55200
55201         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
55202         gzip bootstrap.conf to avoid dragging in i18n machinery.
55203         (gnulib_tool_option): Use it.
55204
55205 2007-04-13  Bruno Haible  <bruno@clisp.org>
55206
55207         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
55208         %F directives.
55209         * tests/test-vasprintf-posix.c (test_function): Likewise.
55210         * tests/test-snprintf-posix.h (test_function): Likewise.
55211         * tests/test-sprintf-posix.h (test_function): Likewise.
55212         * tests/test-fprintf-posix.h (test_function): Likewise.
55213         * tests/test-printf-posix.h (test_function): Likewise.
55214         * tests/test-fprintf-posix.out: Likewise.
55215
55216 2007-04-13  Bruno Haible  <bruno@clisp.org>
55217
55218         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
55219         * modules/tls-tests (configure.ac): Likewise.
55220         Reported by Arto C. Nirkko <anirkko@insel.ch>.
55221
55222 2007-04-13  Bruno Haible  <bruno@clisp.org>
55223
55224         * lib/tls.c (glthread_tls_get): Fix return type.
55225         Patch by Arto C. Nirkko <anirkko@insel.ch>.
55226
55227 2007-04-12  Eric Blake  <ebb9@byu.net>
55228
55229         * modules/gettime (Depends-on): Remove gettime.
55230         Reported by Dmitry V. Levin.
55231
55232 2007-04-12  Bruno Haible  <bruno@clisp.org>
55233
55234         * modules/fflush (Include): Mention <stdio.h>.
55235         * modules/strtoimax (Include): Mention <inttypes.h>.
55236         * modules/strtoumax (Include): Likewise.
55237
55238 2007-04-12  Eric Blake  <ebb9@byu.net>
55239
55240         * .cvsignore: New file.
55241         * .gitignore: Likewise.
55242
55243 2007-04-12  Bruno Haible  <bruno@clisp.org>
55244
55245         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
55246         not before, since $(LDADD) often contains libgnu.a.
55247         * modules/striconv-tests (test_striconv_LDADD): Likewise.
55248         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
55249         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
55250         Needed on Cygwin.
55251
55252 2007-04-12  Eric Blake  <ebb9@byu.net>
55253
55254         Work around glibc's failure to flush stdin on fclose.
55255         * lib/closein.c (close_stdin): Flush stdin before closing.
55256
55257         Work around glibc's failure to reset seekable stdin on exit.
55258         * modules/closein: New module.
55259         * lib/closein.c: New file.
55260         * lib/closein.h: Likewise.
55261         * m4/closein.m4: Likewise.
55262         * MODULES.html.sh (File stream based Input/Output): Document it.
55263
55264 2007-04-12  Simon Josefsson  <simon@josefsson.org>
55265
55266         * gnulib-tool: Rename generated 'autobuild' script to
55267         'do-autobuild' in --create-megatestdir output.
55268
55269         * doc/gnulib.texi (Build robot for gnulib): Fix.
55270
55271 2007-04-12  Simon Josefsson  <simon@josefsson.org>
55272
55273         * modules/sysexits (Depends-on): Add absolute-header.
55274
55275 2007-04-12  Eric Blake  <ebb9@byu.net>
55276
55277         No need to preserve errno on success.
55278         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
55279         Reported by Bruno Haible.
55280
55281 2007-04-12  Simon Josefsson  <simon@josefsson.org>
55282
55283         * MODULES.html.sh (Support for maintaining and releasing
55284         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
55285
55286 2007-04-12  Simon Josefsson  <simon@josefsson.org>
55287
55288         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
55289
55290 2007-04-12  Simon Josefsson  <simon@josefsson.org>
55291
55292         * modules/autobuild: New module.
55293
55294         * m4/autobuild.m4: New file.
55295
55296 2007-04-11  Bruno Haible  <bruno@clisp.org>
55297
55298         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
55299         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
55300         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
55301         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
55302         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55303         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55304         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55305         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55306         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55307         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55308         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
55309         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55310         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55311         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
55312         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55313         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55314         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
55315         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55316         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55317         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
55318         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55319         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55320         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
55321         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55322         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55323         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
55324         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55325         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55326         Reported by Eric Blake.
55327
55328 2007-04-11  Bruno Haible  <bruno@clisp.org>
55329
55330         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
55331
55332 2007-04-10  Bruno Haible  <bruno@clisp.org>
55333
55334         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
55335         for NaN and Infinity. Needed on FreeBSD 6.1.
55336         * tests/test-vasnprintf-posix.c (test_function): Undo last change
55337         regarding results for "%010a" of Infinity and NaN.
55338         * tests/test-vasprintf-posix.c (test_function): Likewise.
55339         * tests/test-snprintf-posix.h (test_function): Likewise.
55340         * tests/test-sprintf-posix.h (test_function): Likewise.
55341         * tests/test-fprintf-posix.h (test_function): Likewise.
55342         * tests/test-printf-posix.h (test_function): Likewise.
55343         * tests/test-fprintf-posix.out: Likewise.
55344
55345 2007-04-10  Bruno Haible  <bruno@clisp.org>
55346
55347         * modules/locale-tests: New file.
55348         * tests/test-locale.c: New file.
55349
55350         * modules/locale: New file.
55351         * lib/locale_.h: New file.
55352         * m4/locale_h.m4: New file.
55353
55354 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
55355             Bruno Haible  <bruno@clisp.org>
55356
55357         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
55358         be determined, test for availability of the copysignf, copysign,
55359         copysignl functions.
55360         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
55361         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
55362         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
55363
55364 2007-04-09  Eric Blake  <ebb9@byu.net>
55365
55366         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
55367         * modules/stdio (Makefile.am): Support fflush.
55368         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55369         * modules/fflush: New file.
55370         * lib/fflush.c: Likewise.
55371         * m4/fflush.m4: Likewise.
55372         * modules/fflush-tests: New test.
55373         * tests/test-fflush.c: Likewise.
55374         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
55375
55376 2007-04-06  Bruno Haible  <bruno@clisp.org>
55377
55378         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
55379         (VASNPRINTF): Use signbit for faster determination whether to print a
55380         minus sign.
55381         * modules/vasnprintf (Files): Remove lib/float+.h.
55382         * modules/fprintf-posix (Depends-on): Add signbit.
55383         * modules/snprintf-posix (Depends-on): Likewise.
55384         * modules/sprintf-posix (Depends-on): Likewise.
55385         * modules/vasnprintf-posix (Depends-on): Likewise.
55386         * modules/vasprintf-posix (Depends-on): Likewise.
55387         * modules/vfprintf-posix (Depends-on): Likewise.
55388         * modules/vsnprintf-posix (Depends-on): Likewise.
55389         * modules/vsprintf-posix (Depends-on): Likewise.
55390
55391 2007-04-06  Bruno Haible  <bruno@clisp.org>
55392
55393         * tests/test-frexp.c (main): Test also the sign bit of zero results.
55394         * tests/test-frexpl.c (main): Likewise.
55395         * tests/test-ldexpl.c (main): Likewise.
55396         * modules/frexp-tests (Depends-on): Add signbit.
55397         * modules/frexpl-tests (Depdends-on): Likewise.
55398         * modules/ldexpl-tests (Depdends-on): Likewise.
55399
55400 2007-04-06  Bruno Haible  <bruno@clisp.org>
55401
55402         * modules/signbit-tests: New file.
55403         * tests/test-signbit.c: New file.
55404
55405         * modules/signbit: New file.
55406         * lib/signbitf.c: New file.
55407         * lib/signbitd.c: New file.
55408         * lib/signbitl.c: New file.
55409         * m4/signbit.m4: New file.
55410         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
55411         (signbit): New macro.
55412         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
55413         REPLACE_SIGNBIT.
55414         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
55415         REPLACE_FREXPL into math.h.
55416
55417 2007-04-06  Bruno Haible  <bruno@clisp.org>
55418
55419         * modules/isnanf-nolibm-tests: New file.
55420         * tests/test-isnanf.c: New file.
55421
55422         * modules/isnanf-nolibm: New file.
55423         * lib/isnanf.h: New file.
55424         * lib/isnanf.c: New file.
55425         * lib/isnan.c: Consider the USE_FLOAT macro.
55426         * m4/isnanf.m4: New file.
55427
55428 2007-04-06  Bruno Haible  <bruno@clisp.org>
55429
55430         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
55431         (Link): New section.
55432
55433         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
55434
55435 2007-04-06  Bruno Haible  <bruno@clisp.org>
55436
55437         Assume the 'long double' type.
55438         * m4/longdouble.m4: Remove file.
55439         * config/srclist.txt: Don't mention longdouble.m4.
55440         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
55441         * lib/float+.h: Likewise.
55442         * lib/frexp.c: Likewise.
55443         * lib/printf-args.h: Likewise.
55444         * lib/printf-args.c: Likewise.
55445         * lib/printf-frexp.c: Likewise.
55446         * lib/printf-parse.c: Likewise.
55447         * lib/vasnprintf.c: Likewise.
55448         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
55449         * m4/intl.m4: Likewise.
55450         * m4/isnanl.m4: Likewise.
55451         * m4/printf.m4: Likewise.
55452         * m4/printf-frexpl.m4: Likewise.
55453         * m4/vasnprintf.m4: Likewise.
55454         * modules/allocsa (Files): Remove m4/longdouble.m4.
55455         * modules/gettext (Files): Likewise.
55456         * modules/relocatable-prog-wrapper (Files): Likewise.
55457         * modules/vasnprintf (Files): Likewise.
55458         * modules/isnanl (Files): Likewise.
55459         (Include): Simplify.
55460         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
55461         (Include): Simplify.
55462         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
55463         (Include): Simplify.
55464         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
55465         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55466         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
55467         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55468         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
55469         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55470         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
55471         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55472         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
55473         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55474         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
55475         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55476         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
55477         * tests/test-isnanl.c: Likewise.
55478         * tests/test-snprintf-posix.h: Likewise.
55479         * tests/test-sprintf-posix.h: Likewise.
55480         * tests/test-vasnprintf-posix.c: Likewise.
55481         * tests/test-vasnprintf-posix2.c: Likewise.
55482         * tests/test-vasprintf-posix.c: Likewise.
55483
55484 2007-04-06  Bruno Haible  <bruno@clisp.org>
55485
55486         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
55487         * lib/math_.h [__DECC]: Include the overridden include file through
55488         #include_next, outside the double-inclusion guard.
55489         * lib/stdio_.h [__DECC]: Likewise.
55490         * lib/stdlib_.h [__DECC]: Likewise.
55491         * lib/string_.h [__DECC]: Likewise.
55492         * lib/time_.h [__DECC]: Likewise.
55493         * lib/wchar_.h [__DECC]: Likewise.
55494         * lib/wctype_.h [__DECC]: Likewise.
55495         * lib/inttypes_.h [__DECC]: Likewise.
55496         Reported by Albert Chin <china@thewrittenword.com> in
55497         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
55498
55499 2007-04-04  Eric Blake  <ebb9@byu.net>
55500
55501         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
55502         1.5.x.
55503
55504 2007-04-04  Bruno Haible  <bruno@clisp.org>
55505
55506         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
55507         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
55508
55509 2007-04-04  Bruno Haible  <bruno@clisp.org>
55510
55511         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
55512         results for "%010a" of Infinity and NaN.
55513         * tests/test-vasprintf-posix.c (test_function): Likewise.
55514         * tests/test-snprintf-posix.h (test_function): Likewise.
55515         * tests/test-sprintf-posix.h (test_function): Likewise.
55516         * tests/test-fprintf-posix.h (test_function): Remove these tests.
55517         * tests/test-printf-posix.h (test_function): Likewise.
55518         * tests/test-fprintf-posix.out: Update.
55519         Needed for FreeBSD 6.1.
55520
55521 2007-04-04  Bruno Haible  <bruno@clisp.org>
55522
55523         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
55524         directly used by the gnulib modules nor by gnulib-tool.
55525
55526 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
55527
55528         * DEPENDENCIES: Give overall description of version dependency
55529         desirability.  Use more-typical names for apps.
55530         Add shell, coreutils, diffutils, grep, tar, gzip.
55531
55532 2007-04-04  Simon Josefsson  <simon@josefsson.org>
55533
55534         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
55535
55536 2007-04-04  Karl Berry  <karl@gnu.org>
55537
55538         * MODULES.html.sh (func_module): missing '.
55539
55540 2007-04-03  Bruno Haible  <bruno@clisp.org>
55541
55542         * modules/argmatch-tests (Makefile.am): New variable
55543         test_argmatch_LDADD.
55544         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
55545         * modules/array-list-tests (Makefile.am): New variable
55546         test_array_list_LDADD.
55547         * modules/array-oset-tests (Makefile.am): New variable
55548         test_array_oset_LDADD.
55549         * modules/avltree-list-tests (Makefile.am): New variable
55550         test_avltree_list_LDADD.
55551         * modules/avltree-oset-tests (Makefile.am): New variable
55552         test_avltree_oset_LDADD.
55553         * modules/avltreehash-list-tests (Makefile.am): New variable
55554         test_avltreehash_list_LDADD.
55555         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
55556         test_canonicalize_lgpl_LDADD.
55557         * modules/carray-list-tests (Makefile.am): New variable
55558         test_carray_list_LDADD.
55559         * modules/dirname-tests (Makefile.am): New variable
55560         test_dirname_LDADD.
55561         * modules/linked-list-tests (Makefile.am): New variable
55562         test_linked_list_LDADD.
55563         * modules/linkedhash-list-tests (Makefile.am): New variable
55564         test_linkedhash_list_LDADD.
55565         * modules/rbtree-list-tests (Makefile.am): New variable
55566         test_rbtree_list_LDADD.
55567         * modules/rbtree-oset-tests (Makefile.am): New variable
55568         test_rbtree_oset_LDADD.
55569         * modules/rbtreehash-list-tests (Makefile.am): New variable
55570         test_rbtreehash_list_LDADD.
55571         * modules/xvasprintf-tests (Makefile.am): New variable
55572         test_xvasprintf_LDADD.
55573         Reported by Eric Blake.
55574
55575 2007-04-03  Eric Blake  <ebb9@byu.net>
55576
55577         * DEPENDENCIES: Weaken m4 requirements.
55578
55579 2007-04-03  Bruno Haible  <bruno@clisp.org>
55580
55581         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
55582         * modules/isnanl-tests (configure.ac): Likewise.
55583
55584 2007-04-03  Ben Pfaff  <blp@gnu.org>
55585
55586         * modules/iconv_open: Add $(srcdir)/ to source directory
55587         references in Makefile fragments that call gperf, to fix VPATH
55588         builds.
55589
55590 2007-04-03  Bruno Haible  <bruno@clisp.org>
55591
55592         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
55593         * lib/ldexpl.c: Undo last change.
55594
55595 2007-04-03  Bruno Haible  <bruno@clisp.org>
55596
55597         * modules/printf-frexpl (Depends-on): Undo last change.
55598         (Files): Add m4/ldexpl.m4.
55599
55600 2007-04-03  Bruno Haible  <bruno@clisp.org>
55601
55602         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
55603         * modules/isnanl (Link): New section.
55604
55605         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
55606         * modules/frexp (Link): New section.
55607
55608         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
55609         * modules/frexpl (Link): New section.
55610
55611         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
55612         * modules/ldexpl (Link): New section.
55613
55614 2007-04-03  Bruno Haible  <bruno@clisp.org>
55615
55616         * modules/TEMPLATE-EXTENDED: New file.
55617         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
55618
55619 2007-04-03  Bruno Haible  <bruno@clisp.org>
55620
55621         * DEPENDENCIES: New file.
55622         Suggested by Simon Josefsson.
55623
55624 2007-04-03  Bruno Haible  <bruno@clisp.org>
55625
55626         * doc/gnulib.texi: Escape @.
55627
55628 2007-04-03  James Youngman  <jay@gnu.org>
55629         and Paul Eggert  <eggert@cs.ucla.edu>
55630
55631         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
55632         birthtime on all systems that have birthtime, not just those which
55633         use st_birthtimensec rather than st_birthtim.  Putting zero in
55634         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
55635         that the birth time is not available for files on an NFS mount.
55636
55637 2007-04-03  Simon Josefsson  <simon@josefsson.org>
55638
55639         * modules/memxor: Move back from crypto/, suggested by Bruno.
55640         * modules/crypto/hmac-sha1: Fix memxor dependency.
55641
55642         * modules/crypto/gc: Moved from ../.
55643
55644 2007-04-02  Eric Blake  <ebb9@byu.net>
55645
55646         * lib/ldexpl.c (includes): Avoid libm.
55647
55648         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
55649
55650 2007-04-02  Bruno Haible  <bruno@clisp.org>
55651
55652         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
55653         on IRIX.
55654
55655 2007-04-02  Bruno Haible  <bruno@clisp.org>
55656
55657         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
55658         x86 or x86_64 platforms running MacOS X.
55659         Reported by Ryan Schmidt <@ryandesign.com>.
55660
55661 2007-04-02  Bruno Haible  <bruno@clisp.org>
55662
55663         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
55664         i386.
55665
55666 2007-04-01  Simon Josefsson  <simon@josefsson.org>
55667
55668         * modules/crypto/arcfour: Moved from ../.
55669         * modules/crypto/arcfour-tests: Moved from ../.
55670         * modules/crypto/arctwo: Moved from ../.
55671         * modules/crypto/arctwo-tests: Moved from ../.
55672         * modules/crypto/des: Moved from ../.
55673         * modules/crypto/des-tests: Moved from ../.
55674         * modules/crypto/gc-arcfour: Moved from ../.
55675         * modules/crypto/gc-arcfour-tests: Moved from ../.
55676         * modules/crypto/gc-arctwo: Moved from ../.
55677         * modules/crypto/gc-arctwo-tests: Moved from ../.
55678         * modules/crypto/gc-des: Moved from ../.
55679         * modules/crypto/gc-des-tests: Moved from ../.
55680         * modules/crypto/gc-hmac-md5: Moved from ../.
55681         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
55682         * modules/crypto/gc-hmac-sha1: Moved from ../.
55683         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
55684         * modules/crypto/gc-md2: Moved from ../.
55685         * modules/crypto/gc-md2-tests: Moved from ../.
55686         * modules/crypto/gc-md4: Moved from ../.
55687         * modules/crypto/gc-md4-tests: Moved from ../.
55688         * modules/crypto/gc-md5: Moved from ../.
55689         * modules/crypto/gc-md5-tests: Moved from ../.
55690         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
55691         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
55692         * modules/crypto/gc-random: Moved from ../.
55693         * modules/crypto/gc-rijndael: Moved from ../.
55694         * modules/crypto/gc-rijndael-tests: Moved from ../.
55695         * modules/crypto/gc-sha1: Moved from ../.
55696         * modules/crypto/gc-sha1-tests: Moved from ../.
55697         * modules/crypto/gc-tests: Moved from ../.
55698         * modules/crypto/hmac-md5: Moved from ../.
55699         * modules/crypto/hmac-md5-tests: Moved from ../.
55700         * modules/crypto/hmac-sha1: Moved from ../.
55701         * modules/crypto/hmac-sha1-tests: Moved from ../.
55702         * modules/crypto/md2: Moved from ../.
55703         * modules/crypto/md2-tests: Moved from ../.
55704         * modules/crypto/md4: Moved from ../.
55705         * modules/crypto/md4-tests: Moved from ../.
55706         * modules/crypto/md5: Moved from ../.
55707         * modules/crypto/md5-tests: Moved from ../.
55708         * modules/crypto/memxor: Moved from ../.
55709         * modules/crypto/rijndael: Moved from ../.
55710         * modules/crypto/rijndael-tests: Moved from ../.
55711         * modules/crypto/sha1: Moved from ../.
55712
55713 2007-03-30  James Youngman  <jay@gnu.org>
55714
55715         * tests/test-stat-time.c (prepare_test): use chmod() rather than
55716         rename() to change the ctime of a file (because ctime is unaffected
55717         by rename on jfs2 on AIX 5.1).
55718         (main): Start by doing cleanup, in case a previous run failed leaving
55719         test files behind.
55720
55721 2007-03-31  Bruno Haible  <bruno@clisp.org>
55722
55723         Support old proprietary implementations of iconv.
55724         * modules/iconv_open: New file.
55725         * lib/iconv_.h: New file.
55726         * m4/iconv_h.m4: New file.
55727         * lib/iconv_open.c: New file.
55728         * lib/iconv_open-aix.gperf: New file.
55729         * lib/iconv_open-hpux.gperf: New file.
55730         * lib/iconv_open-irix.gperf: New file.
55731         * lib/iconv_open-osf.gperf: New file.
55732         * m4/iconv_open.m4: New file.
55733         * modules/linebreak (Depends-on): Add iconv_open.
55734         * modules/striconv (Depends-on): Likewise.
55735         * modules/striconveh (Depends-on): Likewise.
55736         * modules/unicodeio (Depends-on): Likewise.
55737         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
55738         (iconv_t)(-1).
55739         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
55740         conversion if cd is (iconv_t)(-1).
55741         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
55742         is not possible.
55743
55744 2007-03-31  Bruno Haible  <bruno@clisp.org>
55745
55746         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
55747         work on Solaris either. Protect also second use of "autodetect_jp".
55748
55749 2007-03-31  Bruno Haible  <bruno@clisp.org>
55750
55751         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
55752         the function is not present.
55753
55754 2007-03-31  Bruno Haible  <bruno@clisp.org>
55755
55756         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
55757         the function is not present.
55758
55759 2007-03-31  Bruno Haible  <bruno@clisp.org>
55760
55761         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
55762         a bug in HP-UX iconv_open().
55763
55764 2007-03-31  Bruno Haible  <bruno@clisp.org>
55765
55766         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
55767         (Mathematics <math.h>): New section, add fpieee.
55768         (Input/output <stdio.h>): Add fseterr.
55769         (Mathematics <math.h>): New section, add printf-frexp.
55770         (Container data structures): Add sublist.
55771         (Core language properties): Add fpucw, inline.
55772         (Functions for greatest-width integer types <inttypes.h>): Add
55773         imaxabs, imaxdiv, inttypes.
55774         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
55775         isnanl-nolibm, ldexp.
55776         (Mathematics <math.h>): New section, add printf-frexpl.
55777         (Support for systems lacking POSIX:2001): Add fprintf-posix,
55778         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
55779         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
55780         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
55781         (Unicode string functions): Add unistr/u*-mbtoucr.
55782         (Java): Add javacomp-script, javaexec-script.
55783         (C#): Add csharpcomp-script, csharpexec-script.
55784         (Support for building libraries and executables): Add havelib,
55785         relocatable-*.
55786         (Support for maintaining and releasing projects): Renamed from
55787         'Support for maintaining and release projects'. Add announce-gen.
55788
55789 2007-03-31  Bruno Haible  <bruno@clisp.org>
55790
55791         * README: Talk primarily about git.
55792         (git and CVS): Renamed from CVS.
55793         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
55794         gnulib is available through git.
55795         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
55796
55797 2007-03-30  Bruno Haible  <bruno@clisp.org>
55798
55799         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
55800         * lib/poll_.h: Likewise.
55801         * lib/stat_.h: Likewise.
55802         * lib/sys_time_.h: Likewise.
55803         * lib/sysexit_.h: Likewise.
55804         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
55805         * lib/stdbool_.h: Likewise.
55806         * lib/byteswap_.h: Add double-inclusion guard.
55807
55808 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
55809
55810         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
55811
55812 2007-03-30  Karl Berry  <karl@gnu.org>
55813
55814         * config/srclist-update: double space after USA in the license
55815         substitution, since that's how it's usually (?) written.
55816
55817 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
55818
55819         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
55820         reported by Bruno Haible.
55821
55822 2007-03-29  Bruno Haible  <bruno@clisp.org>
55823
55824         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
55825         a bug in AIX iconv().
55826
55827 2007-03-29  Bruno Haible  <bruno@clisp.org>
55828
55829         * modules/ldexpl-tests: New file.
55830         * tests/test-ldexpl.c: New file.
55831
55832 2007-03-29  Bruno Haible  <bruno@clisp.org>
55833
55834         * lib/ldexpl.c: Include fpucw.h.
55835         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
55836         multiplication.
55837         * modules/ldexpl (Depends-on): Add fpucw.
55838
55839 2007-03-29  Bruno Haible  <bruno@clisp.org>
55840
55841         * modules/ldexpl: New file.
55842         * m4/ldexpl.m4: New file.
55843         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
55844         set.
55845         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
55846         REPLACE_LDEXPL.
55847         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
55848         REPLACE_LDEXPL.
55849         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
55850         gl_FUNC_LDEXPL_WORKS.
55851         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
55852         * modules/mathl (Files): Remove lib/ldexpl.c.
55853         (Depends-on): Add ldexpl.
55854
55855 2007-03-29  Bruno Haible  <bruno@clisp.org>
55856
55857         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
55858
55859 2007-03-29  Bruno Haible  <bruno@clisp.org>
55860
55861         * tests/test-striconveh.c (main): Don't assume that a direct conversion
55862         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
55863         and possibly also HP-UX.
55864         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
55865         work on AIX, IRIX, HP-UX, OSF/1.
55866         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
55867         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
55868         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
55869         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
55870         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
55871         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
55872
55873 2007-03-29  Bruno Haible  <bruno@clisp.org>
55874
55875         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
55876
55877 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
55878
55879         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
55880         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
55881
55882 2007-03-29  Eric Blake  <ebb9@byu.net>
55883
55884         * lib/acl-internal.h: Remove redundant include.
55885         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
55886         Cygwin when a file is locked.
55887
55888 2007-03-29  Bruno Haible  <bruno@clisp.org>
55889
55890         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
55891         file.
55892         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
55893
55894 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
55895
55896         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
55897         try to remove a parent directory if the child couldn't be removed
55898         (except for the first rmdir, which could fail because the child
55899         doesn't exist).  Problem reported by Jeff Blaine in
55900         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
55901
55902 2007-03-28  Bruno Haible  <bruno@clisp.org>
55903
55904         * lib/striconveh.c (utf8conv_carefully): New function.
55905         (mem_cd_iconveh_internal): Invoke it.
55906
55907 2007-03-28  Bruno Haible  <bruno@clisp.org>
55908
55909         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
55910         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
55911         input.
55912         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
55913         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
55914         unistr/u8-uctomb.
55915
55916 2007-03-28  Bruno Haible  <bruno@clisp.org>
55917
55918         * modules/unistr/u8-mbtoucr: New file.
55919         * lib/unistr/u8-mbtoucr.c: New file.
55920         * modules/unistr/u16-mbtoucr: New file.
55921         * lib/unistr/u16-mbtoucr.c: New file.
55922         * modules/unistr/u16-mbtoucr: New file.
55923         * lib/unistr/u16-mbtoucr.c: New file.
55924         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
55925
55926 2007-03-27  Simon Josefsson  <simon@josefsson.org>
55927             Bruno Haible  <bruno@clisp.org>
55928
55929         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
55930         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
55931         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
55932
55933         * m4/stdio_h.m4: Add stubs for vasprintf too.
55934
55935         * modules/stdio: Support vasprintf in sed command.
55936
55937         * modules/vasprintf: Depend on stdio for prototypes.  Remove
55938         vasprintf.h.  Add stdio module indicator.
55939
55940         * lib/stdio_.h: Declare asprintf and vasprintf, based on
55941         vasprintf.h.
55942
55943         * lib/vasprintf.h: File removed.
55944
55945         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
55946         * lib/vasprintf.c: Ditto.
55947         * lib/xvasprintf.c: Ditto.
55948         * tests/test-vasprintf-posix.c: Ditto.
55949         * tests/test-vasprintf.c: Ditto.
55950
55951 2007-03-27  Bruno Haible  <bruno@clisp.org>
55952
55953         Make vasnprintf multithread-safe.
55954         * lib/vasnprintf.c (decimal_point_char): New function.
55955         (VASNPRINTF): Use it.
55956         Suggested by Simon Josefsson.
55957
55958 2007-03-27  Eric Blake  <ebb9@byu.net>
55959
55960         Support sub-second birthtime on cygwin.
55961         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
55962         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
55963         (get_stat_birthtime): Also work with st_birthtim.
55964
55965 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
55966
55967         * lib/stat-time.h (USE_BIRTHTIME): Remove.
55968         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
55969         (get_stat_birthtime_ns): Do not try to use "spare" fields.
55970         (get_stat_birthtime_ns): Simplify compile-time tests.
55971         (get_stat_birthtime): Change the API to look like
55972         get_stat_mtime etc., except return a negative tv_nsec on error.
55973         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
55974         Don't check for "spare" fields.
55975         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
55976         or for struct stat.st_birthtime, as these tests aren't used.
55977         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
55978
55979 2007-03-27  Bruno Haible  <bruno@clisp.org>
55980
55981         * lib/stat-time.h: Include <sys/stat.h>.
55982
55983 2007-03-27  James Youngman  <jay@gnu.org>
55984
55985         * lib/stat-time.h (get_stat_birthtime): New function for
55986           retrieving st_birthtime as provided by UFS2 (hence *BSD).
55987         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
55988           and its variants.
55989         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
55990         * modules/stat-time-test: New file.
55991         * tests/test-stat-time.c: New test, devised by Bruno Haible.
55992
55993 2007-03-26  Bruno Haible  <bruno@clisp.org>
55994
55995         Better support of signalling NaNs.
55996         * lib/atanl.c: Include isnanl.h.
55997         (atanl): Perform test for NaN at the beginning of the function and
55998         through a call to isnanl.
55999         * lib/cosl.c: Include isnanl.h.
56000         (cosl): Perform test for NaN at the beginning of the function and
56001         through a call to isnanl.
56002         * lib/ldexpl.c: Include isnanl.h.
56003         (ldexpl): Perform test for NaN through a call to isnanl.
56004         * lib/logl.c: Include isnanl.h.
56005         (logl): Perform test for NaN at the beginning of the function and
56006         through a call to isnanl.
56007         * lib/sinl.c: Include isnanl.h.
56008         (sinl): Perform test for NaN at the beginning of the function and
56009         through a call to isnanl.
56010         * lib/sqrtl.c: Include isnanl.h.
56011         (sqrtl): Perform test for NaN at the beginning of the function and
56012         through a call to isnanl.
56013         * lib/tanl.c: Include isnanl.h.
56014         (tanl): Perform test for NaN at the beginning of the function and
56015         through a call to isnanl.
56016         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
56017         * modules/mathl (Depends-on): Add isnanl.
56018
56019 2007-03-26  Eric Blake  <ebb9@byu.net>
56020
56021         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
56022         regression in logic sense of previous patch.
56023
56024 2007-03-26  Bruno Haible  <bruno@clisp.org>
56025
56026         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
56027         unportable shell command "if ! ...".
56028         Reported by Ralf Wildenhues.
56029
56030 2007-03-25  Bruno Haible  <bruno@clisp.org>
56031
56032         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
56033         <sysexits.h> file, and only add EX_CONFIG.
56034         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
56035         absolute file name and whether it is sufficient. Substitute also
56036         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
56037         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
56038         ABSOLUTE_SYSEXITS_H into sysexits.h.
56039
56040 2007-03-25  Bruno Haible  <bruno@clisp.org>
56041
56042         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
56043         hints is NULL.
56044
56045 2007-03-25  Bruno Haible  <bruno@clisp.org>
56046
56047         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
56048         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
56049
56050 2007-03-25  Bruno Haible  <bruno@clisp.org>
56051
56052         * lib/vasnprintf.c: Include langinfo.h.
56053         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
56054         multithread-safe.
56055         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
56056         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
56057         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56058         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56059         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56060         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56061         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56062         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
56063         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56064         Reported by Simon Josefsson.
56065
56066 2007-03-25  Bruno Haible  <bruno@clisp.org>
56067
56068         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
56069         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
56070         * modules/vasnprintf (Depends-on): Add stdint.
56071
56072 2007-03-25  Bruno Haible  <bruno@clisp.org>
56073
56074         * modules/fpieee: New file.
56075         * m4/fpieee.m4: New file.
56076         * modules/isnan-nolibm (Depends-on): Add fpieee.
56077         * modules/isnanl-nolibm (Depends-on): Add fpieee.
56078         * modules/isnanl (Depends-on): Add fpieee.
56079
56080 2007-03-25  Bruno Haible  <bruno@clisp.org>
56081
56082         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
56083
56084 2007-03-25  Bruno Haible  <bruno@clisp.org>
56085
56086         Avoid test failures on IRIX 6.5.
56087         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
56088         (main): Use it.
56089         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
56090         macros.
56091         (main): Use them.
56092
56093 2007-03-25  Bruno Haible  <bruno@clisp.org>
56094
56095         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
56096         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
56097         exists but doesn't work.
56098         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
56099         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
56100         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
56101         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
56102         math.h.
56103
56104 2007-03-25  Bruno Haible  <bruno@clisp.org>
56105
56106         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
56107         returns inf. Needed on IRIX 6.5.
56108
56109 2007-03-25  Bruno Haible  <bruno@clisp.org>
56110
56111         * tests/test-frexpl.c: Include isnanl-nolibm.h.
56112         (main): Use isnanl instead of x != x idiom.
56113         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
56114
56115         * tests/test-frexp.c: Include isnan.h.
56116         (main): Use isnan instead of x != x idiom.
56117         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
56118
56119 2007-03-25  Bruno Haible  <bruno@clisp.org>
56120
56121         * tests/test-frexp.c (NaN): New function/macro.
56122         (main): Use it instead of 0.0 / 0.0.
56123         * tests/test-isnan.c (NaN): New function/macro.
56124         (main): Use it instead of 0.0 / 0.0.
56125         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
56126         (test_function): Use it instead of 0.0 / 0.0.
56127         * tests/test-vasprintf-posix.c (NaN): New function/macro.
56128         (test_function): Use it instead of 0.0 / 0.0.
56129         * tests/test-snprintf-posix.h (NaN): New function/macro.
56130         (test_function): Use it instead of 0.0 / 0.0.
56131         * tests/test-sprintf-posix.h (NaN): New function/macro.
56132         (test_function): Use it instead of 0.0 / 0.0.
56133         * tests/test-fprintf-posix.h (NaN): New function/macro.
56134         (test_function): Use it instead of 0.0 / 0.0.
56135         * tests/test-printf-posix.h (NaN): New function/macro.
56136         (test_function): Use it instead of 0.0 / 0.0.
56137
56138         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
56139
56140 2007-03-25  Bruno Haible  <bruno@clisp.org>
56141
56142         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
56143
56144 2007-03-25  Bruno Haible  <bruno@clisp.org>
56145
56146         * lib/regexec.c (merge_state_with_log): Make static.
56147
56148 2007-03-25  Bruno Haible  <bruno@clisp.org>
56149
56150         * lib/trigl.c (kernel_rem_pio2): Make static.
56151
56152 2007-03-25  Bruno Haible  <bruno@clisp.org>
56153
56154         * lib/sincosl.c (sincosl_table): Make static.
56155
56156 2007-03-25  Bruno Haible  <bruno@clisp.org>
56157
56158         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
56159         if the compiler does not support C99.
56160
56161 2007-03-25  Bruno Haible  <bruno@clisp.org>
56162
56163         * modules/time (Makefile.am): Ensure all rule action lines start with a
56164         tab.
56165
56166 2007-03-24  Bruno Haible  <bruno@clisp.org>
56167
56168         * modules/tsearch-tests: New file.
56169         * tests/test-tsearch.sh: New file.
56170         * tests/test-tsearch.c: New file, mostly copied from glibc.
56171
56172         * modules/search-tests: New file.
56173         * tests/test-search.c: New file.
56174
56175         * modules/search: New file.
56176         * lib/search_.h: New file, incorporating lib/tsearch.h.
56177         * m4/search_h.m4: New file.
56178         * lib/tsearch.h: Remove file.
56179         * lib/tsearch.c: Include search.h instead of tsearch.h.
56180         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
56181         HAVE_TSEARCH.
56182         * modules/tsearch (Files): Remove lib/tsearch.h.
56183         (Depends-on): Add search.
56184         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
56185         (Include): Change tsearch.h into search.h.
56186
56187 2007-03-24  Bruno Haible  <bruno@clisp.org>
56188
56189         * modules/fpucw: New file.
56190         * lib/fpucw.h: New file.
56191         * lib/frexp.c: Include fpucw.h.
56192         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
56193         (FUNC): Use them.
56194         * lib/printf-frexp.c: Include fpucw.h.
56195         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
56196         (FUNC): Use them.
56197         * lib/vasnprintf.c: Include fpucw.h.
56198         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
56199         'long double' calculations.
56200         * tests/test-frexpl.c: Include fpucw.h.
56201         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
56202         * tests/test-printf-frexpl.c: Include fpucw.h.
56203         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
56204         * modules/frexpl (Depends-on): Add fpucw.
56205         * modules/printf-frexpl (Depends-on): Likewise.
56206         * modules/fprintf-posix (Depends-on): Likewise.
56207         * modules/snprintf-posix (Depends-on): Likewise.
56208         * modules/sprintf-posix (Depends-on): Likewise.
56209         * modules/vasnprintf-posix (Depends-on): Likewise.
56210         * modules/vasprintf-posix (Depends-on): Likewise.
56211         * modules/vfprintf-posix (Depends-on): Likewise.
56212         * modules/vsnprintf-posix (Depends-on): Likewise.
56213         * modules/vsprintf-posix (Depends-on): Likewise.
56214         * modules/frexpl-tests (Depends-on): Likewise.
56215         * modules/printf-frexpl-tests (Depends-on): Likewise.
56216
56217 2007-03-24  Bruno Haible  <bruno@clisp.org>
56218
56219         * lib/float+.h: New file.
56220         * lib/isnan.c: Include float+.h.
56221         (SIZE): New macro.
56222         (FUNC): Compare only SIZE bytes of the value.
56223         * lib/vasnprintf.c: Include float+.h.
56224         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
56225         SIZEOF_LDBL or SIZEOF_DBL bytes.
56226         * modules/isnan-nolibm (Files): Add lib/float+.h.
56227         * modules/isnanl-nolibm (Files): Add lib/float+.h.
56228         * modules/isnanl (Files): Add lib/float+.h.
56229         * modules/vasnprintf (Files): Add lib/float+.h.
56230
56231 2007-03-24  Bruno Haible  <bruno@clisp.org>
56232
56233         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
56234         include isnanl-nolibm.h.
56235
56236 2007-03-24  Bruno Haible  <bruno@clisp.org>
56237
56238         * tests/test-read-file.c (main): Don't produce spurious output for
56239         expected situations. Make the test fail if it encountered unexpected
56240         results.
56241
56242 2007-03-24  Bruno Haible  <bruno@clisp.org>
56243
56244         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
56245         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
56246
56247 2007-03-24  Bruno Haible  <bruno@clisp.org>
56248
56249         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
56250
56251 2007-03-24  Bruno Haible  <bruno@clisp.org>
56252
56253         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
56254         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
56255
56256         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
56257         * modules/utf8-ucs4: Turn into a symbolic link to module
56258         unistr/u8-mbtouc.
56259
56260         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
56261         utf8-ucs4-unsafe.
56262         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
56263         unistr/u8-mbtouc-unsafe.
56264
56265         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
56266         * modules/utf16-ucs4: Turn into a symbolic link to module
56267         unistr/u16-mbtouc.
56268
56269         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
56270         utf16-ucs4-unsafe.
56271         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
56272         unistr/u16-mbtouc-unsafe.
56273
56274         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
56275         * modules/ucs4-utf8: Turn into a symbolic link to module
56276         unistr/u8-ubtomb.
56277
56278         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
56279         * modules/ucs4-utf16: Turn into a symbolic link to module
56280         unistr/u16-ubtomb.
56281
56282 2007-03-24  Bruno Haible  <bruno@clisp.org>
56283
56284         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
56285         Enable the function only if HAVE_INLINE.
56286         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
56287         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
56288         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
56289         Enable the function only if HAVE_INLINE.
56290         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
56291         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
56292         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
56293         Enable the function only if HAVE_INLINE.
56294         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
56295         Enable the function only if HAVE_INLINE.
56296         * modules/utf8-ucs4: Update.
56297         * modules/utf8-ucs4-unsafe: Update.
56298         * modules/utf16-ucs4: Update.
56299         * modules/utf16-ucs4-unsafe: Update.
56300         * modules/ucs4-utf8: Update.
56301         * modules/ucs4-utf16: Update.
56302
56303 2007-03-24  Bruno Haible  <bruno@clisp.org>
56304
56305         * lib/utf8-ucs4.h: Remove file.
56306         * lib/utf8-ucs4-unsafe.h: Remove file.
56307         * lib/utf16-ucs4.h: Remove file.
56308         * lib/utf16-ucs4-unsafe.h: Remove file.
56309         * lib/ucs4-utf8.h: Remove file.
56310         * lib/ucs4-utf16.h: Remove file.
56311         * lib/unistr.h: Include their previous contents.
56312         * m4/utf-ucs4.m4: Remove file.
56313         * m4/ucs4-utf.m4: Remove file.
56314         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
56315         (Depends-on): Add unistr/base.
56316         (configure.ac): Remove gl_UTF_UCS4.
56317         (Makefile.am): Update.
56318         (Include): Change to unistr.h.
56319         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
56320         (Depends-on): Add unistr/base.
56321         (configure.ac): Remove gl_UTF_UCS4.
56322         (Makefile.am): Update.
56323         (Include): Change to unistr.h.
56324         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
56325         (Depends-on): Add unistr/base.
56326         (configure.ac): Remove gl_UTF_UCS4.
56327         (Makefile.am): Update.
56328         (Include): Change to unistr.h.
56329         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
56330         (Depends-on): Add unistr/base.
56331         (configure.ac): Remove gl_UTF_UCS4.
56332         (Makefile.am): Update.
56333         (Include): Change to unistr.h.
56334         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
56335         (Depends-on): Add unistr/base.
56336         (configure.ac): Remove gl_UCS4_UTF.
56337         (Makefile.am): Update.
56338         (Include): Change to unistr.h.
56339         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
56340         (Depends-on): Add unistr/base.
56341         (configure.ac): Remove gl_UCS4_UTF.
56342         (Makefile.am): Update.
56343         (Include): Change to unistr.h.
56344         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
56345         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
56346         utf8-ucs4-unsafe.h.
56347         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
56348         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
56349         utf16-ucs4-unsafe.h.
56350         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
56351         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
56352         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
56353         * lib/unistr/u8-strchr.c: Likewise.
56354         * lib/unistr/u8-strrchr.c: Likewise.
56355         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
56356         * lib/unistr/u16-strchr.c: Likewise.
56357         * lib/unistr/u16-strrchr.c: Likewise.
56358         * lib/striconveh.c: Update.
56359         * lib/linebreak.c: Update.
56360
56361 2007-03-24  Bruno Haible  <bruno@clisp.org>
56362
56363         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
56364         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
56365
56366 2007-03-22  Bruno Haible  <bruno@clisp.org>
56367
56368         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
56369
56370 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
56371
56372         * MODULES.html.sh (File system functions): New module write-any-file.
56373         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
56374         * m4/write-any-file.m4: New files.
56375
56376 2007-03-23  Eric Blake  <ebb9@byu.net>
56377
56378         * gnulib-tool: Rearrange space-tab sequences, since some editors
56379         like to eat them.
56380
56381 2007-03-23  Eric Blake  <ebb9@byu.net>
56382
56383         * lib/version-etc.c (version_etc_va): Update license wording to
56384         be more concise.  Recommended by Richard Stallman.
56385
56386 2007-03-22  Bruno Haible  <bruno@clisp.org>
56387
56388         * lib/poll.c (MSG_PEEK): New fallback definition.
56389
56390 2007-03-22  Bruno Haible  <bruno@clisp.org>
56391
56392         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
56393         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
56394         (main): Update.
56395         Fixes a compilation error on BeOS.
56396
56397 2007-03-22  Bruno Haible  <bruno@clisp.org>
56398
56399         * modules/frexpl-tests: New file.
56400         * tests/test-frexpl.c: New file.
56401
56402         * modules/frexpl: New file.
56403         * m4/frexpl.m4: New file.
56404         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
56405         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
56406         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
56407         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
56408         (Depends-on): Add frexpl. Remove isnanl-nolibm.
56409         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
56410
56411 2007-03-22  Bruno Haible  <bruno@clisp.org>
56412
56413         * lib/frexpl.c: Share code with lib/frexp.c.
56414         * modules/mathl (Files): Add lib/frexp.c.
56415         (Depends-on): Add isnanl-nolibm.
56416
56417 2007-03-22  Bruno Haible  <bruno@clisp.org>
56418
56419         * modules/printf-frexp (Files): Add m4/frexp.m4.
56420         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
56421         only if the found frexp function actually works.
56422
56423 2007-03-22  Bruno Haible  <bruno@clisp.org>
56424
56425         * lib/frexp.c: Remove older implementation that uses divisions.
56426
56427 2007-03-21  Bruno Haible  <bruno@clisp.org>
56428
56429         * modules/frexp-tests: New file.
56430         * tests/test-frexp.c: New file.
56431
56432         * modules/frexp: New file.
56433         * lib/frexp.c: New file.
56434         * m4/frexp.m4: New file.
56435         * lib/math_.h (frexp): New declaration.
56436         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
56437         REPLACE_FREXP.
56438         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
56439
56440 2007-03-21  Bruno Haible  <bruno@clisp.org>
56441
56442         * modules/isnanl-tests: New file.
56443         * tests/test-isnanl.c: New file.
56444
56445         * modules/isnanl: New file.
56446         * lib/isnanl.h: New file.
56447         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
56448         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
56449         gl_FUNC_ISNANL_WORKS.
56450         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
56451         New macros.
56452
56453 2007-03-21  Bruno Haible  <bruno@clisp.org>
56454
56455         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
56456         lib/isnanl.h.
56457         (Include): Update.
56458         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
56459         * lib/vasnprintf.c: Update.
56460         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
56461         tests/test-isnanl.h, remove tests/test-isnanl.c.
56462         (Makefile.am): Update.
56463         * tests/test-isnanl-nolibm.c: New file.
56464         * tests/test-isnanl.h: New file.
56465         * tests/test-isnanl.c: Remove file.
56466
56467 2007-03-21  Jim Meyering  <jim@meyering.net>
56468
56469         When trying to open ".", treat ESTALE like EACCES.
56470         * lib/savewd.c (savewd_save): Resort to forking not just upon
56471         failure with EACCES, but also when errno is ESTALE.
56472
56473 2007-03-20  Bruno Haible  <bruno@clisp.org>
56474
56475         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
56476         Needed on AIX 5.1. Reported by Matthew Woehlke.
56477
56478 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
56479
56480         Suggestions by Bruno Haible:
56481         * lib/acl-internal.h: Include "gettext.h" rather than rolling
56482         our own.
56483         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
56484         * modules/acl (Depends-on): Add gettext.
56485
56486 2007-03-19  Bruno Haible  <bruno@clisp.org>
56487
56488         * modules/iconvme: Remove file.
56489         * lib/iconvme.h: Remove file.
56490         * lib/iconvme.c: Remove file.
56491         * m4/iconvme.m4: Remove file.
56492
56493 2007-03-19  Bruno Haible  <bruno@clisp.org>
56494
56495         * doc/relocatable-maint.texi: Break long shell script line.
56496         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
56497
56498 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
56499
56500         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
56501         handle file_has_acl.
56502         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
56503         * lib/acl.c: Move header inclusions and related macro defns into
56504         lib/acl-internal.h.
56505         (S_ISLNK): Remove defn, since that's now done for us.
56506         (file_has_acl): Move to lib/file-has-acl.c.
56507         Call acl_trivial if available.  This is the crucial part of the fix.
56508         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
56509         shared within the library.  Rewrite a bit, partly to make it compatible
56510         with the GNU coding style.
56511         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
56512         Remove unnecessary double-quotes.
56513         Don't test for acl_to_text; the build will catch that.
56514         Replace acl_entries if it doesn't exist and it is needed.
56515         Check for -lsec and acl_trivial (as used on Solaris 10).
56516         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
56517         lib/file-has-acl.c.
56518         (Depends-on): Add sys_stat, for S_ISLNK.
56519
56520 2007-03-19  Ben Pfaff  <blp@gnu.org>
56521
56522         * doc/gnulib.texi: Fix typos.
56523         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
56524
56525 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
56526
56527         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
56528         If size is zero here, buf must be zero.
56529
56530 2007-03-19  Simon Josefsson  <simon@josefsson.org>
56531
56532         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
56533         <bruno@clisp.org>.
56534
56535 2007-03-18  Bruno Haible  <bruno@clisp.org>
56536
56537         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
56538         Suggested by Eric Blake.
56539
56540 2007-03-18  Ben Pfaff  <blp@gnu.org>
56541
56542         * doc/relocatable.texi: Recommend using as prefix a directory
56543         that does not exist and will never be created.  Based on
56544         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
56545         and others.
56546
56547 2007-03-17  Bruno Haible  <bruno@clisp.org>
56548
56549         * lib/fchownat.c: Include lchown.h.
56550
56551 2007-03-17  Bruno Haible  <bruno@clisp.org>
56552
56553         Fix endless loop when the given allocated size was > INT_MAX.
56554         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
56555         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
56556         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
56557         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
56558         * lib/sprintf.c (sprintf): Likewise.
56559
56560 2007-03-17  Bruno Haible  <bruno@clisp.org>
56561
56562         * tests/test-argp-2.sh (func_compare): Output a context diff.
56563
56564 2007-03-17  Bruno Haible  <bruno@clisp.org>
56565
56566         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
56567         locale's decimal-point character.
56568
56569 2007-03-17  Bruno Haible  <bruno@clisp.org>
56570
56571         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
56572         before comparing it. Needed because on some platforms (e.g. x86) a
56573         'long double' occupies less bytes than sizeof (long double).
56574
56575 2007-03-17  Bruno Haible  <bruno@clisp.org>
56576
56577         * tests/test-crc.c (main): Make printf statements 64-bit clean.
56578         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
56579         * tests/test-getaddrinfo.c (simple): Likewise.
56580         * tests/test-read-file.c (main): Likewise.
56581
56582 2007-03-17  Bruno Haible  <bruno@clisp.org>
56583
56584         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
56585
56586 2007-03-17  Bruno Haible  <bruno@clisp.org>
56587
56588         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
56589         unused variable.
56590
56591 2007-03-17  Bruno Haible  <bruno@clisp.org>
56592
56593         * tests/test-c-strcasecmp.c: Include c-strcase.h.
56594         * tests/test-c-strncasecmp.c: Likewise.
56595
56596 2007-03-17  Bruno Haible  <bruno@clisp.org>
56597
56598         * modules/stdlib (Depends-on): Add unistd.
56599         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
56600         Needed for MacOS X 10.3.
56601
56602 2007-03-17  Bruno Haible  <bruno@clisp.org>
56603
56604         * lib/unistr/u-strdup.h: Include <stdlib.h>.
56605
56606 2007-03-17  Bruno Haible  <bruno@clisp.org>
56607
56608         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
56609
56610 2007-03-17  Bruno Haible  <bruno@clisp.org>
56611
56612         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
56613         to reflect files copied from gnulib (with or without modifications).
56614         Suggested by Jim Meyering.
56615
56616 2007-03-17  Eric Blake  <ebb9@byu.net>
56617
56618         * NEWS: Document stdlib change from 2007-02-18.
56619
56620 2007-03-17  Jim Meyering  <jim@meyering.net>
56621
56622         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
56623         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
56624         someone uses a name containing shell meta-characters.
56625         Reported by Alfred M. Szmidt.
56626
56627         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
56628
56629 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
56630
56631         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
56632         and copy gettext configuration files only if configure.ac contains
56633         a use of AM_GNU_GETTEXT_VERSION.
56634
56635 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
56636
56637         * build-aux/bootstrap (gnulib_name): New variable.
56638         (gnulib_tool_options): Use it.
56639
56640 2007-03-13  Simon Josefsson  <simon@josefsson.org>
56641
56642         * tests/test-des.c: Use new namespace.
56643
56644 2007-03-15  Bruno Haible  <bruno@clisp.org>
56645
56646         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
56647         Reported by James Youngman <jay@gnu.org>.
56648
56649 2007-03-15  Bruno Haible  <bruno@clisp.org>
56650
56651         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
56652         declared prototype. Needed with cc on OSF/1 5.1.
56653
56654 2007-03-15  Bruno Haible  <bruno@clisp.org>
56655
56656         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
56657         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
56658         (struct gl_list_implementation): Add dispose_fn argument to the
56659         'create_empty', 'create' methods.
56660         (struct gl_list_impl_base): Add field 'dispose_fn'.
56661         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
56662         argument.
56663         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
56664         dispose_fn argument.
56665         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
56666         dispose_fn on the dropped values.
56667         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
56668         dispose_fn argument.
56669         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
56670         dropped values.
56671         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
56672         (gl_tree_remove_node): Call dispose_fn on the dropped value.
56673         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
56674         (gl_tree_remove_node): Call dispose_fn on the dropped value.
56675         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
56676         argument.
56677         (gl_tree_list_free): Call dispose_fn on the dropped values.
56678         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
56679         the dropped values.
56680         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
56681         Add dispose_fn argument.
56682         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
56683         Call dispose_fn on the dropped values.
56684         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
56685         Add dispose_fn argument.
56686         (gl_sublist_create): Initialize the 'dispose_fn' field.
56687         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
56688         * tests/test-array_list.c (main): Update.
56689         * tests/test-carray_list.c (main): Update.
56690         * tests/test-avltree_list.c (main): Update.
56691         * tests/test-rbtree_list.c (main): Update.
56692         * tests/test-avltreehash_list.c (main): Update.
56693         * tests/test-rbtreehash_list.c (main): Update.
56694         * tests/test-linked_list.c (main): Update.
56695         * tests/test-linkedhash_list.c (main): Update.
56696         * tests/test-array_oset.c (main): Update.
56697
56698 2007-03-15  Bruno Haible  <bruno@clisp.org>
56699
56700         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
56701         (gl_oset_create_empty): Add dispose_fn argument.
56702         (struct gl_oset_implementation): Add dispose_fn argument to
56703         'create_empty' method.
56704         (struct gl_oset_impl_base): Add dispose_fn field.
56705         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
56706         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
56707         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
56708         values.
56709         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
56710         (gl_tree_oset_free): Call dispose_fn on the dropped values.
56711         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
56712         dropped value.
56713         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
56714         dropped value.
56715         * tests/test-array_oset.c (main): Update.
56716         * tests/test-avltree_oset.c (main): Update.
56717         * tests/test-rbtree_oset.c (main): Update.
56718         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
56719
56720 2007-03-13  Bruno Haible  <bruno@clisp.org>
56721
56722         * tests/test-stdbool.c (i): Update after last patch.
56723
56724 2007-03-12  Bruno Haible  <bruno@clisp.org>
56725
56726         * lib/quotearg.c: Include <wctype.h> early, before the definition of
56727         the iswprint macro. Needed on Solaris 2.5.1.
56728
56729 2007-03-12  Bruno Haible  <bruno@clisp.org>
56730
56731         * tests/test-printf-frexp.c (main): Declare x as volatile.
56732
56733 2007-03-12  Simon Josefsson  <simon@josefsson.org>
56734
56735         * doc/gnulib.texi (Build robot for gnulib): New section.
56736
56737 2007-03-12  Jim Meyering  <jim@meyering.net>
56738
56739         * build-aux/bootstrap: New file.
56740         * build-aux/bootstrap.conf: New file, from coreutils.
56741
56742 2007-03-11  Bruno Haible  <bruno@clisp.org>
56743
56744         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
56745
56746 2007-03-12  Simon Josefsson  <simon@josefsson.org>
56747
56748         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
56749         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
56750         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
56751
56752 2007-03-11  Bruno Haible  <bruno@clisp.org>
56753
56754         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
56755         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
56756
56757 2007-03-11  Bruno Haible  <bruno@clisp.org>
56758
56759         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
56760         formula. Needed for SunPRO C 5.0.
56761
56762 2007-03-11  Bruno Haible  <bruno@clisp.org>
56763
56764         * modules/long-options (Depends-on): Add getopt.
56765
56766 2007-03-11  Bruno Haible  <bruno@clisp.org>
56767
56768         * modules/modechange (Depends-on): Add stdbool.
56769
56770 2007-03-11  Bruno Haible  <bruno@clisp.org>
56771
56772         * modules/i-ring (Depends-on): Add stdbool.
56773
56774 2007-03-11  Bruno Haible  <bruno@clisp.org>
56775
56776         * modules/gc-des (Depends-on): Add stdbool.
56777
56778 2007-03-11  Bruno Haible  <bruno@clisp.org>
56779
56780         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
56781
56782 2007-03-11  Bruno Haible  <bruno@clisp.org>
56783
56784         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
56785
56786 2007-03-11  Bruno Haible  <bruno@clisp.org>
56787
56788         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
56789
56790 2007-03-11  Bruno Haible  <bruno@clisp.org>
56791
56792         * lib/vasnprintf.c (sprintf): Undefine.
56793
56794 2007-03-11  Bruno Haible  <bruno@clisp.org>
56795
56796         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
56797         initializers in SunPRO C and Compaq C compilers.
56798
56799 2007-03-11  Bruno Haible  <bruno@clisp.org>
56800
56801         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
56802         decrementing code ANSI C compliant.
56803
56804 2007-03-11  Bruno Haible  <bruno@clisp.org>
56805
56806         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
56807         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
56808
56809 2007-03-11  Bruno Haible  <bruno@clisp.org>
56810
56811         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
56812         <stdbool.h> substitute doesn't pass.
56813
56814 2007-03-11  Bruno Haible  <bruno@clisp.org>
56815
56816         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
56817
56818 2007-03-11  Bruno Haible  <bruno@clisp.org>
56819
56820         * gnulib-tool (func_create_megatestdir): Create also an autobuild
56821         script, for submission to autobuild.josefsson.org.
56822
56823 2007-03-10  Bruno Haible  <bruno@clisp.org>
56824
56825         * modules/canonicalize-lgpl-tests: New file.
56826         * tests/test-canonicalize-lgpl.sh: New file.
56827         * tests/test-canonicalize-lgpl.c: New file.
56828
56829         * modules/c-strcase-tests: New file.
56830         * tests/test-c-strcase.sh: New file.
56831         * tests/test-c-strcasecmp.c: New file.
56832         * tests/test-c-strncasecmp.c: New file.
56833
56834         * modules/atexit-tests: New file.
56835         * tests/test-atexit.sh: New file.
56836         * tests/test-atexit.c: New file.
56837
56838 2007-03-10  Bruno Haible  <bruno@clisp.org>
56839
56840         * tests/test-binary-io.sh: Use temporary filenames that are not so
56841         likely to clash with those of other tests (in a parallel make).
56842         * tests/test-binary-io.c: Likewise.
56843
56844 2007-03-10  Bruno Haible  <bruno@clisp.org>
56845
56846         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
56847         fallback; use #error instead.
56848         Suggested by Simon Josefsson.
56849
56850 2007-03-10  Bruno Haible  <bruno@clisp.org>
56851
56852         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
56853         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
56854         first and the last.
56855
56856 2007-03-10  Bruno Haible  <bruno@clisp.org>
56857
56858         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
56859
56860 2007-03-10  Bruno Haible  <bruno@clisp.org>
56861
56862         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
56863         "make distcheck".
56864         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
56865         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
56866         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
56867
56868 2007-03-10  Bruno Haible  <bruno@clisp.org>
56869
56870         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
56871         variable.
56872         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
56873         variable.
56874
56875 2007-03-09  Eric Blake  <ebb9@byu.net>
56876         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
56877
56878         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
56879         types are not being provided by gnulib.
56880         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
56881         types are supported.
56882
56883 2007-03-10  Bruno Haible  <bruno@clisp.org>
56884
56885         * lib/stdio_.h (__attribute__): New macro.
56886         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
56887         vsprintf): Specify __attribute__ __format__ for GCC.
56888         Suggested by Eric Blake.
56889
56890 2007-03-09  Bruno Haible  <bruno@clisp.org>
56891
56892         * modules/printf-posix-tests: New file.
56893         * tests/test-printf-posix.sh: New file.
56894         * tests/test-printf-posix.c: New file.
56895
56896         * modules/printf-posix: New file.
56897         * lib/printf.c: New file.
56898         * m4/printf-posix-rpl.m4: New file.
56899         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
56900         REPLACE_PRINTF.
56901         * lib/stdio_.h (printf): New declaration.
56902         (format, __format__, ____printf____, ____scanf____, ____strftime____,
56903         ____strfmon____): New macros.
56904         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
56905         REPLACE_PRINTF.
56906
56907 2007-03-09  Bruno Haible  <bruno@clisp.org>
56908
56909         * tests/test-vasnprintf-posix2.sh: New file.
56910         * tests/test-vasnprintf-posix2.c: New file.
56911         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
56912         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
56913         (Makefile.am): Activate test-vasnprintf-posix2.sh.
56914
56915         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
56916         a locale dependent decimal point, rather than always '.'.
56917
56918 2007-03-09  Eric Blake  <ebb9@byu.net>
56919
56920         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
56921         spite of platforms like Tandem/NSK that define it to -1.
56922
56923 2007-03-08  Bruno Haible  <bruno@clisp.org>
56924
56925         * modules/vprintf-posix-tests: New file.
56926         * tests/test-vprintf-posix.sh: New file.
56927         * tests/test-vprintf-posix.c: New file.
56928         * tests/test-printf-posix.h: New file.
56929
56930         * modules/vprintf-posix: New file.
56931         * lib/vprintf.c: New file.
56932         * m4/vprintf-posix.m4: New file.
56933         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
56934         REPLACE_VPRINTF.
56935         * lib/stdio_.h (vprintf): New declaration.
56936         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
56937         REPLACE_VPRINTF.
56938
56939 2007-03-08  Bruno Haible  <bruno@clisp.org>
56940
56941         * modules/fprintf-posix-tests: New file.
56942         * tests/test-fprintf-posix.sh: New file.
56943         * tests/test-fprintf-posix.c: New file.
56944
56945         * modules/fprintf-posix: New file.
56946         * lib/fprintf.c: New file.
56947         * m4/fprintf-posix.m4: New file.
56948         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
56949         REPLACE_FPRINTF.
56950         * lib/stdio_.h (fprintf): New declaration.
56951         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
56952         REPLACE_FPRINTF.
56953
56954 2007-03-08  Bruno Haible  <bruno@clisp.org>
56955
56956         * modules/vfprintf-posix-tests: New file.
56957         * tests/test-vfprintf-posix.sh: New file.
56958         * tests/test-vfprintf-posix.c: New file.
56959         * tests/test-fprintf-posix.h: New file.
56960         * tests/test-fprintf-posix.out: New file.
56961
56962         * modules/vfprintf-posix: New file.
56963         * lib/vfprintf.c: New file.
56964         * m4/vfprintf-posix.m4: New file.
56965         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
56966         REPLACE_VFPRINTF.
56967         * lib/stdio_.h (vfprintf): New declaration.
56968         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
56969         REPLACE_VFPRINTF.
56970
56971 2007-03-08  Bruno Haible  <bruno@clisp.org>
56972
56973         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
56974
56975 2007-03-08  Bruno Haible  <bruno@clisp.org>
56976
56977         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
56978         instead of 'expr' invocations.
56979         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56980         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56981         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56982         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56983         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56984         Suggested by Paul Eggert.
56985
56986 2007-03-08  Bruno Haible  <bruno@clisp.org>
56987
56988         * modules/fseterr-tests: New file.
56989         * tests/test-fseterr.c: New file.
56990
56991         * modules/fseterr: New file.
56992         * lib/fseterr.h: New file.
56993         * lib/fseterr.c: New file.
56994
56995 2007-03-08  Bruno Haible  <bruno@clisp.org>
56996
56997         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
56998         * lib/getopt_.h: Likewise.
56999         * lib/mbswidth.h: Likewise.
57000         * lib/setenv.h: Likewise.
57001         * lib/vasnprintf.h: Likewise.
57002         * lib/vasprintf.h: Likewise.
57003         * lib/verror.h: Likewise.
57004         * lib/xsetenv.h: Likewise.
57005         * lib/xvasprintf.h: Likewise.
57006
57007 2007-03-08  Jim Meyering  <jim@meyering.net>
57008
57009         * users.txt: Add parted.
57010
57011         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
57012
57013 2007-03-07  Bruno Haible  <bruno@clisp.org>
57014
57015         * m4/printf.m4: Make the shell script snippets copy&pastable.
57016
57017 2007-03-02  Bruno Haible  <bruno@clisp.org>
57018
57019         * lib/netinet_in_.h: New file.
57020         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
57021         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
57022         * modules/netinet_in (Files): Add lib/netinet_in_.h.
57023         (Depends-on): Add absolute-header.
57024         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
57025         into netinet/in.h.
57026
57027 2007-03-03  Bruno Haible  <bruno@clisp.org>
57028
57029         * lib/sys_select_.h: New file.
57030         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
57031         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
57032         * modules/sys_select (Files): Add lib/sys_select_.h.
57033         (Depends-on): Add absolute-header.
57034         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
57035         into sys/select.h.
57036
57037 2007-03-02  Bruno Haible  <bruno@clisp.org>
57038
57039         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
57040         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
57041         values.
57042         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
57043         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
57044         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
57045         * modules/sys_socket (Depends-on): Add absolute-header.
57046         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
57047         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
57048         (Include): Remove requirement of inclusion of <sys/types.h>.
57049
57050 2007-03-02  Bruno Haible  <bruno@clisp.org>
57051
57052         * lib/byteswap_.h (bswap_32): Fix formula.
57053
57054 2007-03-06  Bruno Haible  <bruno@clisp.org>
57055
57056         * modules/sprintf-posix-tests: New file.
57057         * tests/test-sprintf-posix.c: New file.
57058
57059         * modules/sprintf-posix: New file.
57060         * lib/sprintf.c: New file.
57061         * m4/sprintf-posix.m4: New file.
57062         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
57063         REPLACE_SPRINTF.
57064         * lib/stdio_.h (sprintf): New declaration.
57065         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
57066         REPLACE_SPRINTF.
57067
57068 2007-03-06  Bruno Haible  <bruno@clisp.org>
57069
57070         * modules/vsprintf-posix-tests: New file.
57071         * tests/test-vsprintf-posix.c: New file.
57072         * tests/test-sprintf-posix.h: New file.
57073
57074         * modules/vsprintf-posix: New file.
57075         * lib/vsprintf.c: New file.
57076         * m4/vsprintf-posix.m4: New file.
57077         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
57078         REPLACE_VSPRINTF.
57079         * lib/stdio_.h (vsprintf): New declaration.
57080         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
57081         REPLACE_VSPRINTF.
57082
57083 2007-03-06  Bruno Haible  <bruno@clisp.org>
57084
57085         * modules/vsnprintf (Depend-on): Remove minmax.
57086
57087 2007-03-06  Bruno Haible  <bruno@clisp.org>
57088
57089         * modules/snprintf-posix-tests: New file.
57090         * tests/test-snprintf-posix.c: New file.
57091
57092         * modules/snprintf-posix: New file.
57093         * m4/snprintf-posix.m4: New file.
57094         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
57095         gl_FUNC_SNPRINTF.
57096         (gl_FUNC_SNPRINTF): Invoke it.
57097         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
57098         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
57099         is set.
57100         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
57101
57102 2007-03-06  Bruno Haible  <bruno@clisp.org>
57103
57104         * modules/vsnprintf-posix-tests: New file.
57105         * tests/test-vsnprintf-posix.c: New file.
57106         * tests/test-snprintf-posix.h: New file.
57107
57108         * modules/vsnprintf-posix: New file.
57109         * m4/vsnprintf-posix.m4: New file.
57110         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
57111         gl_FUNC_VSNPRINTF.
57112         (gl_FUNC_VSNPRINTF): Invoke it.
57113         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
57114         * lib/stdio_.h (vsnprintf): Define as a replacement if
57115         REPLACE_VSNPRINTF is set.
57116         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
57117
57118 2007-03-06  Bruno Haible  <bruno@clisp.org>
57119
57120         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
57121         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
57122
57123 2007-03-06  Bruno Haible  <bruno@clisp.org>
57124
57125         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
57126         (asinl): Declare also if HAVE_DECL_ASINL is set.
57127         (atanl): Declare also if HAVE_DECL_ATANL is set.
57128         (ceill): Declare also if HAVE_DECL_CEILL is set.
57129         (cosl): Declare also if HAVE_DECL_COSL is set.
57130         (expl): Declare also if HAVE_DECL_EXPL is set.
57131         (floorl): Declare also if HAVE_DECL_FLOORL is set.
57132         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
57133         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
57134         (logl): Declare also if HAVE_DECL_LOGL is set.
57135         (sinl): Declare also if HAVE_DECL_SINL is set.
57136         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
57137         (tanl): Declare also if HAVE_DECL_TANL is set.
57138         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
57139         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
57140         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
57141         declaration of frexpl, ldexpl.
57142         * modules/printf-frexpl (Depends-on): Add math.
57143         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
57144
57145 2007-03-05  Bruno Haible  <bruno@clisp.org>
57146
57147         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
57148         frexpl and ldexpl are declared.
57149         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
57150
57151 2007-03-05  Bruno Haible  <bruno@clisp.org>
57152
57153         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
57154         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
57155
57156 2007-03-05  Bruno Haible  <bruno@clisp.org>
57157
57158         * lib/stdio_.h: Include <stddef.h>.
57159
57160 2007-03-05  Bruno Haible  <bruno@clisp.org>
57161
57162         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
57163
57164 2007-03-05  Bruno Haible  <bruno@clisp.org>
57165
57166         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
57167         NetBSD 4, from Ralf Wildenhues.
57168
57169 2007-03-04  Bruno Haible  <bruno@clisp.org>
57170
57171         * lib/vasprintf.h: Update #if logic for the case when the functions
57172         exist but are overridden.
57173
57174 2007-03-04  Bruno Haible  <bruno@clisp.org>
57175
57176         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
57177         implementations: glibc-2.4 and MacOS X 10.3.
57178         * tests/test-vasnprintf-posix.c (test_function): Test also the case
57179         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
57180         * tests/test-vasprintf-posix.c (test_function): Likewise.
57181
57182 2007-03-04  Bruno Haible  <bruno@clisp.org>
57183
57184         * modules/vasprintf-posix-tests: New file.
57185         * tests/test-vasprintf-posix.c: New file.
57186
57187         * modules/vasprintf-posix: New file.
57188         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
57189         defined.
57190         * m4/vasprintf-posix.m4: New file.
57191         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
57192         gl_FUNC_VASPRINTF.
57193         (gl_FUNC_VASPRINTF): Invoke it.
57194         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
57195         here.
57196         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
57197
57198 2007-03-04  Bruno Haible  <bruno@clisp.org>
57199
57200         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
57201         REPLACE_GETTIMEOFDAY.
57202         * modules/sys_time (Makefile.am): Likewise.
57203         * m4/sys_time_h.m4: Likewise.
57204         * m4/gettimeofday.m4: Likewise.
57205
57206 2007-03-04  Bruno Haible  <bruno@clisp.org>
57207
57208         * modules/vasnprintf-posix-tests: New file.
57209         * tests/test-vasnprintf-posix.c: New file.
57210
57211         * modules/vasnprintf-posix: New file.
57212         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
57213         printf-frexpl.h.
57214         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
57215         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
57216         REPLACE_VASNPRINTF is defined.
57217         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
57218         gl_FUNC_VASNPRINTF.
57219         (gl_FUNC_VASNPRINTF): Invoke it.
57220         * m4/vasnprintf-posix.m4: New file.
57221         * m4/printf.m4: New file.
57222
57223 2007-03-04  Bruno Haible  <bruno@clisp.org>
57224
57225         Compile progreloc.c only if --enable-relocatable is specified.
57226         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
57227         if --enable-relocatable was specified.
57228         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
57229         lib_SOURCES.
57230
57231 2007-03-04  Jim Meyering  <jim@meyering.net>
57232
57233         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
57234         Use it consistently, rather than enumerating errno constants.
57235
57236 2007-03-04  Bruno Haible  <bruno@clisp.org>
57237
57238         * modules/xvasprintf-tests: New file.
57239         * tests/test-xvasprintf.c: New file.
57240
57241         * modules/vasprintf-tests: New file.
57242         * tests/test-vasprintf.c: New file.
57243
57244         * modules/vasnprintf-tests: New file.
57245         * tests/test-vasnprintf.c: New file.
57246
57247         * modules/vsnprintf-tests: New file.
57248         * tests/test-vsnprintf.c: New file.
57249
57250         * modules/snprintf-tests: New file.
57251         * tests/test-snprintf.c: New file.
57252
57253 2007-03-04  Bruno Haible  <bruno@clisp.org>
57254
57255         Compile relocatable.c only if --enable-relocatable is specified.
57256         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
57257         gl_RELOCATABLE_LIBRARY.
57258         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
57259         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
57260         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
57261         gl_RELOCATABLE_LIBRARY.
57262         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
57263         (Makefile.am): Remove lib_SOURCES.
57264         * modules/relocatable-lib-lgpl (configure.ac): Invoke
57265         gl_RELOCATABLE_LIBRARY.
57266         (Makefile.am): Remove lib_SOURCES.
57267         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
57268         always.
57269         * modules/relocatable-prog-wrapper (configure.ac): Invoke
57270         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
57271
57272 2007-03-04  Bruno Haible  <bruno@clisp.org>
57273
57274         * modules/argmatch-tests: New file.
57275         * tests/test-argmatch.c: New file.
57276
57277         * tests/test-allocsa.c (main): Halve the number of loop runs.
57278
57279         * modules/alloca-opt-tests: New file.
57280         * tests/test-alloca-opt.c: New file.
57281
57282 2007-03-04  Jim Meyering  <jim@meyering.net>
57283
57284         Work around difference between Linux ACLs and Solaris 10 ZFS.
57285         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
57286         for EINVAL.
57287
57288 2007-03-03  Bruno Haible  <bruno@clisp.org>
57289
57290         * modules/relocatable-prog (Depends-on): Add back progreloc's
57291         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
57292
57293 2007-03-03  Bruno Haible  <bruno@clisp.org>
57294
57295         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
57296         * modules/relocatable-lib: New file.
57297
57298 2007-03-03  Bruno Haible  <bruno@clisp.org>
57299
57300         * modules/relocatable-prog: Renamed from modules/relocatable.
57301         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
57302
57303 2007-03-03  Bruno Haible  <bruno@clisp.org>
57304
57305         * modules/relocatable-script (Files): Add doc/relocatable.texi,
57306         m4/relocatable-lib.m4.
57307         (Depends-on): Remove 'relocatable'.
57308         (configure.ac): Add gl_RELOCATABLE_NOP.
57309
57310 2007-03-03  Bruno Haible  <bruno@clisp.org>
57311
57312         * modules/relocatable-prog-wrapper: New file.
57313         * modules/relocatable (Depends-on): Add it. Remove all other
57314         dependencies except progname.
57315         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
57316
57317         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
57318         (gl_FUNC_STRERROR): Nop.
57319         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
57320
57321         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
57322         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
57323
57324         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
57325         (gl_FUNC_READLINK): Update.
57326
57327         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
57328
57329 2007-03-03  Bruno Haible  <bruno@clisp.org>
57330
57331         * lib/xreadlink.c: Include <unistd.h> unconditionally.
57332         * modules/xreadlink (Depends-on): Add unistd.
57333         * modules/xreadlink-with-size (Depends-on): Likewise.
57334
57335 2007-03-03  Bruno Haible  <bruno@clisp.org>
57336
57337         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
57338         extracted from gt_FUNC_SETENV.
57339         (gt_FUNC_SETENV): Remove macro.
57340         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
57341         remove gt_FUNC_SETENV.
57342
57343 2007-03-03  Bruno Haible  <bruno@clisp.org>
57344
57345         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
57346         ENABLE_RELOCATABLE here.
57347         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
57348
57349 2007-03-03  Bruno Haible  <bruno@clisp.org>
57350
57351         * modules/rbtreehash-list-tests (Depends-on): Add progname.
57352         * tests/test-rbtreehash_list.c: Include progname.h.
57353         (main): Call set_program_name.
57354
57355         * modules/rbtree-oset-tests (Depends-on): Add progname.
57356         * tests/test-rbtree_oset.c: Include progname.h.
57357         (main): Call set_program_name.
57358
57359         * modules/rbtree-list-tests (Depends-on): Add progname.
57360         * tests/test-rbtree_list.c: Include progname.h.
57361         (main): Call set_program_name.
57362
57363         * modules/linked-list-tests (Depends-on): Add progname.
57364         * tests/test-linked_list.c: Include progname.h.
57365         (main): Call set_program_name.
57366
57367 2007-03-03  Bruno Haible  <bruno@clisp.org>
57368
57369         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
57370         All uses of __restrict changed to _Restrict_.
57371         * lib/glob_.h (__restrict): Remove macro.
57372
57373 2007-03-02  Bruno Haible  <bruno@clisp.org>
57374
57375         * modules/gettext (configure.ac): Require gettext infrastructure
57376         from version 0.16.1.
57377
57378 2007-03-02  Bruno Haible  <bruno@clisp.org>
57379
57380         * modules/linkedhash-list-tests (Depends-on): Add progname.
57381         * tests/test-linkedhash_list.c: Include progname.h.
57382         (main): Call set_program_name.
57383
57384         * modules/carray-list-tests (Depends-on): Add progname.
57385         * tests/test-carray_list.c: Include progname.h.
57386         (main): Call set_program_name.
57387
57388         * modules/avltreehash-list-tests (Depends-on): Add progname.
57389         * tests/test-avltreehash_list.c: Include progname.h.
57390         (main): Call set_program_name.
57391
57392         * modules/avltree-oset-tests (Depends-on): Add progname.
57393         * tests/test-avltree_oset.c: Include progname.h.
57394         (main): Call set_program_name.
57395
57396         * modules/avltree-list-tests (Depends-on): Add progname.
57397         * tests/test-avltree_list.c: Include progname.h.
57398         (main): Call set_program_name.
57399
57400         * modules/array-oset-tests (Depends-on): Add progname.
57401         * tests/test-array_oset.c: Include progname.h.
57402         (main): Call set_program_name.
57403
57404         * modules/array-list-tests (Depends-on): Add progname.
57405         * tests/test-array_list.c: Include progname.h.
57406         (main): Call set_program_name.
57407
57408         * modules/argp-tests (Depends-on): Add progname.
57409         * tests/test-argp.c: Include argp.h first. Include progname.h.
57410         (main): Call set_program_name.
57411
57412 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
57413
57414         * doc/gnulib-tool.texi (Initial import): Reword description of
57415         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
57416         limited effect even if defined after the first system include.
57417
57418 2007-03-01  Bruno Haible  <bruno@clisp.org>
57419
57420         * build-aux/config.libpath: Update to libtool-1.5.22.
57421         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
57422
57423 2007-03-01  Bruno Haible  <bruno@clisp.org>
57424
57425         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
57426         foo_CFLAGS.
57427         Reported by Ralf Wildenhues.
57428
57429 2007-03-01  Bruno Haible  <bruno@clisp.org>
57430
57431         * build-aux/install-reloc: Remove object files left over by some
57432         compilers.
57433         Reported by Ralf Wildenhues.
57434
57435 2007-03-01  Bruno Haible  <bruno@clisp.org>
57436
57437         * build-aux/install-reloc: Break long lines.
57438
57439 2007-03-01  Bruno Haible  <bruno@clisp.org>
57440
57441         * doc/relocatable.texi: Document that it may not work on OpenBSD.
57442         Reported by Ralf Wildenhues.
57443
57444 2007-03-01  Bruno Haible  <bruno@clisp.org>
57445
57446         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
57447         include ordering constraints.
57448
57449 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
57450
57451         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
57452         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
57453         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
57454         as another example.
57455         * lib/time_.h: Fix misspelling.
57456         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
57457         Require gl_HEADER_TIME_H_DEFAULTS.
57458         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
57459         * m4/time_r.m4 (gl_TIME_R): Likewise.
57460         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
57461
57462 2007-03-01  Bruno Haible  <bruno@clisp.org>
57463
57464         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
57465         * m4/utimens.m4 (gl_UTIMENS): Likewise.
57466
57467 2007-03-01  Jim Meyering  <jim@meyering.net>
57468
57469         * modules/xreadlink (Maintainer): Add my name.
57470         * modules/xreadlink-with-size (Depends-on): Alphabetize.
57471
57472 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
57473             Bruno Haible  <bruno@clisp.org>
57474
57475         * build-aux/install-reloc: Compile also c-ctype.c.
57476         * build-aux/relocatable.sh.in: New file.
57477         * doc/relocatable.texi: New file.
57478         * doc/relocatable-maint.texi: New file.
57479         * doc/gnulib.texi: Include relocatable-maint.texi.
57480         * lib/progreloc.c: Include unistd.h unconditionally.
57481         * lib/relocwrapper.c: Include unistd.h unconditionally.
57482         Include c-ctype.h.
57483         (add_dotbin): Use c_tolower.
57484         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
57485         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
57486         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
57487         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
57488         to m4/relocatable-lib.m4.
57489         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
57490         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
57491         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
57492         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
57493         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
57494         * modules/relocatable: New file.
57495         * modules/relocatable-lib: New file.
57496         * modules/relocatable-script: New file.
57497
57498 2007-02-28  Bruno Haible  <bruno@clisp.org>
57499
57500         Import --enable-relocatable infrastructure.
57501         * build-aux/config.libpath: New file, from GNU gettext.
57502         * build-aux/install-reloc: New file, from GNU gettext.
57503         * build-aux/reloc-ldflags: New file, from GNU gettext.
57504         * lib/relocatable.h: New file, from GNU gettext.
57505         * lib/relocatable.c: New file, from GNU gettext.
57506         * lib/relocwrapper.c: New file, from GNU gettext.
57507         * m4/relocatable.m4: New file, from GNU gettext.
57508
57509 2007-02-28  Bruno Haible  <bruno@clisp.org>
57510
57511         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
57512
57513         * modules/xreadlink: New file, from GNU gettext with modifications.
57514         * lib/xreadlink.c: New file, from GNU gettext.
57515         * lib/xreadlink.h: Add comments.
57516         (xreadlink): New declaration.
57517
57518         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
57519         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
57520         lib/xreadlink-with-size.c.
57521         (configure.ac): Remove gl_XREADLINK invocation.
57522         (Makefile.am): Augment lib_SOURCES.
57523         * m4/xreadlink.m4: Remove file.
57524         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
57525         (xreadlink_with_size): Renamed from xreadink.
57526         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
57527         * modules/canonicalize (Depends-on): Replace xreadlink with
57528         xreadlink-with-size.
57529         * lib/canonicalize.c (canonicalize_filename_mode): Update.
57530
57531 2007-02-25  Jim Meyering  <jim@meyering.net>
57532
57533         * build-aux/announce-gen: When complaining about excess arguments,
57534         list them.
57535
57536 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
57537
57538         * README: Document signed integer overflow situation more
57539         accurately.
57540
57541 2007-02-25  Bruno Haible  <bruno@clisp.org>
57542
57543         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
57544         'a' or 'A' conversion.
57545
57546 2007-02-25  Bruno Haible  <bruno@clisp.org>
57547
57548         * modules/filename: Renamed from modules/pathname.
57549         (Files): Replace lib/pathname.h with lib/filename.h. Replace
57550         lib/concatpath.c with lib/concat-filename.c.
57551         (Makefile.am): Update.
57552         (Include): Replace pathname.h with filename.h.
57553         * lib/filename.h: Renamed from lib/pathname.h.
57554         (concatenated_filename): Renamed from concatenated_pathname.
57555         * lib/concat-filename.c: Renamed from lib/concatpath.c.
57556         (concatenated_filename): Renamed from concatenated_pathname.
57557         * lib/findprog.c: Include filename.h instead of pathname.h.
57558         (find_in_path): Update.
57559         * lib/javacomp.c: Include filename.h instead of pathname.h.
57560         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
57561         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
57562         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
57563         is_oldgcj_14_13_usable, is_javac_usable): Update.
57564         * lib/javaexec.c: Include filename.h instead of pathname.h.
57565         (execute_java_class): Update.
57566         * modules/findprog: Update.
57567         * modules/javacomp: Update.
57568         * modules/javaexec: Update.
57569         * MODULES.html.sh (File system functions): Add 'filename', remove
57570         'pathname'.
57571
57572 2007-02-25  Bruno Haible  <bruno@clisp.org>
57573
57574         * modules/printf-frexpl-tests: New file.
57575         * tests/test-printf-frexpl.c: New file.
57576
57577         * modules/printf-frexpl: New file.
57578         * lib/printf-frexpl.h: New file.
57579         * lib/printf-frexpl.c: New file.
57580         * m4/printf-frexpl.m4: New file.
57581
57582 2007-02-25  Bruno Haible  <bruno@clisp.org>
57583
57584         * modules/printf-frexp-tests: New file.
57585         * tests/test-printf-frexp.c: New file.
57586
57587         * modules/printf-frexp: New file.
57588         * lib/printf-frexp.h: New file.
57589         * lib/printf-frexp.c: New file.
57590         * m4/printf-frexp.m4: New file.
57591
57592 2007-02-25  Bruno Haible  <bruno@clisp.org>
57593
57594         Assume automake >= 1.10 for the tests.
57595         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
57596         * modules/arctwo-tests: Likewise.
57597         * modules/argp-tests: Likewise.
57598         * modules/avltree-list-tests: Likewise.
57599         * modules/avltree-oset-tests: Likewise.
57600         * modules/avltreehash-list-tests: Likewise.
57601         * modules/carray-list-tests: Likewise.
57602         * modules/crc-tests: Likewise.
57603         * modules/des-tests: Likewise.
57604         * modules/gc-arcfour-tests: Likewise.
57605         * modules/gc-arctwo-tests: Likewise.
57606         * modules/gc-des-tests: Likewise.
57607         * modules/gc-hmac-md5-tests: Likewise.
57608         * modules/gc-hmac-sha1-tests: Likewise.
57609         * modules/gc-md2-tests: Likewise.
57610         * modules/gc-md4-tests: Likewise.
57611         * modules/gc-md5-tests: Likewise.
57612         * modules/gc-pbkdf2-sha1-tests: Likewise.
57613         * modules/gc-rijndael-tests: Likewise.
57614         * modules/gc-sha1-tests: Likewise.
57615         * modules/gc-tests: Likewise.
57616         * modules/getaddrinfo-tests: Likewise.
57617         * modules/hmac-md5-tests: Likewise.
57618         * modules/hmac-sha1-tests: Likewise.
57619         * modules/linked-list-tests: Likewise.
57620         * modules/linkedhash-list-tests: Likewise.
57621         * modules/lock-tests: Likewise.
57622         * modules/md2-tests: Likewise.
57623         * modules/md4-tests: Likewise.
57624         * modules/md5-tests: Likewise.
57625         * modules/rbtree-list-tests: Likewise.
57626         * modules/rbtree-oset-tests: Likewise.
57627         * modules/rbtreehash-list-tests: Likewise.
57628         * modules/read-file-tests: Likewise.
57629         * modules/rijndael-tests: Likewise.
57630         * modules/stdint-tests: Likewise.
57631         * modules/tls-tests: Likewise.
57632
57633 2007-02-24  Bruno Haible  <bruno@clisp.org>
57634
57635         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
57636         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
57637         function; instead check whether isnan with a double argument links.
57638         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
57639         function; instead check whether isnan with a 'long double' argument
57640         links.
57641         Reported by Eric Blake <ebb9@byu.net>.
57642
57643 2007-02-24  Bruno Haible  <bruno@clisp.org>
57644
57645         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
57646         defined.
57647         * lib/isnanl.c: Remove all code. Just include isnan.c.
57648         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
57649
57650 2007-02-25  Jim Meyering  <jim@meyering.net>
57651
57652         Avoid conflicting types for 'unsetenv' on FreeBSD.
57653         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
57654         conflicting with FreeBSD's (5.0 and 6.1) function declaration
57655         in stdlib.h.
57656
57657 2007-02-24  Bruno Haible  <bruno@clisp.org>
57658
57659         * modules/isnanl-nolibm-tests: New file.
57660         * tests/test-isnanl.c: New file.
57661
57662         * modules/isnanl-nolibm: New file.
57663         * lib/isnanl.h: New file.
57664         * lib/isnanl.c: New file.
57665         * m4/isnanl.m4: New file.
57666
57667 2007-02-24  Bruno Haible  <bruno@clisp.org>
57668
57669         * modules/isnan-nolibm-tests: New file.
57670         * tests/test-isnan.c: New file.
57671
57672         * modules/isnan-nolibm: New file.
57673         * lib/isnan.h: New file.
57674         * lib/isnan.c: New file.
57675         * m4/isnan.m4: New file.
57676
57677 2007-02-24  Bruno Haible  <bruno@clisp.org>
57678
57679         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
57680         assume that an exponent fits in 20 bits.
57681
57682 2007-02-24  Jim Meyering  <jim@meyering.net>
57683
57684         * m4/regex.m4: Update the description of the configure-time option,
57685         --without-included-regex, to state accurately what the defaults are,
57686         and perhaps to give people an idea why using this option is risky.
57687
57688 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
57689
57690         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
57691         loops on small arguments.  This attempts to avoid the problem
57692         Bruno Haible reported for AIX 4.3.2 in
57693         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
57694
57695 2007-02-23  Bruno Haible  <bruno@clisp.org>
57696
57697         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
57698         Needed for help2man.
57699
57700 2007-02-23  Karl Berry  <karl@gnu.org>
57701
57702         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
57703         exists, foo.h should be cvs-ignored, not committed.
57704
57705 2007-02-23  Eric Blake  <ebb9@byu.net>
57706
57707         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
57708         * lib/stat-time.h (includes): Likewise.
57709         * lib/utimecmp.c (includes): Likewise.
57710         * lib/utimens.h (includes): Likewise.
57711         * lib/getdate.y (includes): Also include "timespec.h" for use
57712         internal to the module.
57713         * modules/utimens (Depends-on): Revert yesterday's patch.
57714         * modules/nanosleep (Depends-on): Add missing dependency.
57715
57716 2007-02-22  Bruno Haible  <bruno@clisp.org>
57717
57718         * lib/glob.c: Don't include getlogin_r.h.
57719
57720 2007-02-22  Jim Meyering  <jim@meyering.net>
57721
57722         * modules/utimens (Depends-on): Add timespec, required for
57723         utimens.h's inclusion of timespec.h.
57724
57725 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
57726
57727         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
57728         long unreadable paths in GNU/Linux.  Problem reported by Andreas
57729         Schwab in
57730         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
57731         I'll try to think of a better way to fix the Solaris problem.
57732
57733         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
57734         like glibc; on Solaris 10, it fails with errno == EINVAL.
57735         POSIX says the behavior is unspecified if the first argument is NULL,
57736         so play it safe and never pass NULL to the system getcwd.
57737
57738 2007-02-21  Jim Meyering  <jim@meyering.net>
57739
57740         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
57741         of gettimeofday.  It would conflict with the one now always
57742         provided via sys_time_.h.  Reported by Matthew Woehlke, as
57743         an IRIX 6.5 build failure.
57744
57745 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
57746
57747         Minor fixups to port to Solaris 10 with Sun C 5.8.
57748         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
57749         * modules/getcwd (Depends-on): Add dirfd.
57750         * lib/putenv.c (putenv): #undef it.
57751         (rpl_putenv): New decl.
57752         (malloc, free): Include <stdlib.h> rather than prototyping separately.
57753
57754 2007-02-20  Bruno Haible  <bruno@clisp.org>
57755
57756         * modules/stdio-tests: New file.
57757         * tests/test-stdio.c: New file.
57758
57759         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
57760         (Depends-on): Add stdio.
57761         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
57762         (Include): Use <stdio.h> instead of vsnprintf.h.
57763         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
57764         HAVE_DECL_VSNPRINTF.
57765         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
57766
57767         * modules/snprintf (Files): Remove lib/snprintf.h.
57768         (Depends-on): Add stdio.
57769         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
57770         (Include): Use <stdio.h> instead of snprintf.h.
57771         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
57772         HAVE_DECL_SNPRINTF.
57773         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
57774         * lib/getaddrinfo.c: Likewise.
57775
57776         * modules/stdio: New file.
57777         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
57778         * lib/snprintf.h: Remove file.
57779         * lib/vsnprintf.h: Remove file.
57780         * lib/.cppi-disable: Remove snprintf.h.
57781         * m4/stdio_h.m4: New file.
57782         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
57783
57784 2007-02-20  Jim Meyering  <jim@meyering.net>
57785
57786         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
57787         used by e.g., mingw.  From Bruno Haible.
57788
57789 2007-02-19  Bruno Haible  <bruno@clisp.org>
57790
57791         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
57792         warnings.
57793         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57794
57795 2007-02-19  Bruno Haible  <bruno@clisp.org>
57796
57797         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
57798         from mingw users.
57799
57800 2007-02-19  Bruno Haible  <bruno@clisp.org>
57801
57802         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
57803         warnings.
57804         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
57805
57806 2007-02-19  Jim Meyering  <jim@meyering.net>
57807
57808         Don't use FD after a successful "fdopendir (fd)".
57809         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
57810         Reset it by calling dirfd on the just-obtained DIR*.
57811
57812         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
57813         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
57814
57815 2007-02-18  Bruno Haible  <bruno@clisp.org>
57816
57817         * lib/readlink.c: Include <unistd.h>.
57818         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
57819         HAVE_READLINK.
57820         * modules/readlink (Depends-on): Add unistd.
57821         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57822         (Include): Add <unistd.h>.
57823
57824         * lib/getlogin_r.h: Remove file.
57825         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
57826         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
57827         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
57828         HAVE_DECL_GETLOGIN_R.
57829         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
57830         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57831         (Include): Use <unistd.h> instead of getlogin_r.h.
57832
57833         * lib/getcwd.h: Remove file.
57834         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
57835         * lib/xgetcwd.c: Likewise.
57836         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
57837         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
57838         * modules/getcwd (Files): Remove lib/getcwd.h.
57839         (Depends-on): Add unistd.
57840         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57841         (Include): Use <unistd.h> instad of getcwd.h.
57842
57843         * lib/ftruncate.c: Include <unistd.h> first.
57844         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
57845         Set HAVE_FTRUNCATE.
57846         * modules/ftruncate (Depends-on): Add unistd.
57847         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57848
57849         * lib/fchdir.c: Include <unistd.h> first.
57850         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
57851         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
57852         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
57853         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57854         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
57855
57856         * lib/dup2.c: Include <unistd.h> first.
57857         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
57858         HAVE_DUP2.
57859         * modules/dup2 (Depends-on): Add unistd.
57860         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57861
57862         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
57863         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
57864         REPLACE_CHOWN. Don't define chown as a macro here.
57865         * modules/chown (Depends-on): Add unistd.
57866         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57867
57868         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
57869         Add definition for GL_LINK_WARNING.
57870         (chown, dup2): New declarations.
57871         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
57872         link warning.
57873         (ftruncate): New declaration.
57874         (getcwd): New declaration, taken from old getcwd.h.
57875         (getlogin_r): New declaration, taken from old getlogin_r.h.
57876         (readlink): New declaration.
57877         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
57878         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
57879         (gl_PREREQ_UNISTD): Remove macro.
57880         (gl_UNISTD_MODULE_INDICATOR): New macro.
57881         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
57882         many new variables. Don't set UNISTD_H.
57883         * modules/unistd (Description): Change.
57884         (Depends-on): Add link-warning.
57885         (configure.ac): Update.
57886         (Makefile.am): Create unistd.h always. Substitute many new variables
57887         into it.
57888
57889 2007-02-18  Bruno Haible  <bruno@clisp.org>
57890
57891         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
57892         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
57893         HAVE_GETSUBOPT.
57894         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
57895         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
57896         * lib/getsubopt.h: Remove file.
57897         * modules/getsubopt (Files): Remove lib/getsubopt.h.
57898         (Depends-on): Add stdlib.
57899         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57900         (Includes): Use <stdlib.h> instead of getsubopt.h.
57901         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
57902         Set HAVE_GETSUBOPT.
57903         * lib/getsubopt.c: Don't include getsubopt.h.
57904
57905 2007-02-18  Bruno Haible  <bruno@clisp.org>
57906
57907         * modules/fchdir (Depends-on): Add dup2.
57908
57909 2007-02-18  Bruno Haible  <bruno@clisp.org>
57910
57911         * lib/stdlib_.h: Handle glibc's special invocation convention
57912         specially.
57913
57914 2007-02-18  Bruno Haible  <bruno@clisp.org>
57915
57916         * modules/stdlib-tests: New file.
57917         * tests/test-stdlib.c: New file.
57918
57919         * modules/mkstemp (Files): Remove lib/mkstemp.h.
57920         (Depends-on): Add stdlib.
57921         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57922         (Includes): Use <stdlib.h> instead of mkstemp.h.
57923         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
57924         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
57925         * lib/mkstemp.c: Don't include mkstemp.h.
57926         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
57927         * lib/stdlib--.h: Don't include mkstemp.h.
57928
57929         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
57930         (Depends-on): Add stdlib.
57931         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57932         (Includes): Use <stdlib.h> instead of mkdtemp.h.
57933         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
57934         HAVE_MKDTEMP.
57935         * lib/mkdtemp.c: Don't include mkdtemp.h.
57936         * lib/clean-temp.c: Don't include mkdtemp.h.
57937
57938         * modules/exit (Files): Remove lib/exit.h.
57939         (Depends-on): Add stdlib.
57940         (Makefile.am): Remove lib_SOURCES.
57941         (Include): Use <stdlib.h> instead of exit.h.
57942         * lib/argmatch.c: Don't include exit.h.
57943         * lib/execute.c: Likewise.
57944         * lib/pagealign_alloc.c: Likewise.
57945         * lib/pipe.c: Likewise.
57946         * lib/wait-process.c: Likewise.
57947         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
57948         * lib/exitfail.c: Likewise.
57949         * lib/savewd.c: Likewise.
57950         * lib/xsetenv.c: Likewise.
57951
57952         * modules/stdlib: New file.
57953         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
57954         and extra comments about mkstemp().
57955         * lib/exit.h: Remove file.
57956         * lib/mkdtemp.h: Remove file.
57957         * lib/mkstemp.h: Remove file.
57958         * m4/stdlib_h.m4: New file.
57959         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
57960
57961 2007-02-18  Bruno Haible  <bruno@clisp.org>
57962
57963         * modules/math-tests: New file.
57964         * tests/test-math.c: New file.
57965
57966         * modules/math: New file.
57967         * modules/mathl (Files): Remove lib/mathl.h.
57968         (Depends-on): Add math.
57969         (Makefile.am): Don't mention mathl.h.
57970         (Include): Use <math.h> instead of mathl.h.
57971         * lib/math_.h: New file.
57972         * lib/mathl.h: Remove file.
57973         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
57974         mathl.h.
57975         * lib/asinl.c: Likewise.
57976         * lib/atanl.c: Likewise.
57977         * lib/ceill.c: Likewise.
57978         * lib/cosl.c: Likewise.
57979         * lib/expl.c: Likewise.
57980         * lib/floorl.c: Likewise.
57981         * lib/frexpl.c: Likewise.
57982         * lib/ldexpl.c: Likewise.
57983         * lib/logl.c: Likewise.
57984         * lib/sincosl.c: Likewise.
57985         * lib/sinl.c: Likewise.
57986         * lib/sqrtl.c: Likewise.
57987         * lib/tanl.c: Likewise.
57988         * lib/trigl.c: Likewise.
57989         * m4/math_h.m4: New file.
57990         * MODULES.html.sh (Mathematics): Add math.
57991
57992 2007-02-17  Bruno Haible  <bruno@clisp.org>
57993
57994         * modules/wctype-tests: New file.
57995         * tests/test-wctype.c: New file.
57996
57997         * modules/wchar-tests: New file.
57998         * tests/test-wchar.c: New file.
57999
58000         * modules/unistd-tests: New file.
58001         * tests/test-unistd.c: New file.
58002
58003         * modules/time-tests: New file.
58004         * tests/test-time.c: New file.
58005
58006         * modules/sysexits-tests: New file.
58007         * tests/test-sysexits.c: New file.
58008
58009         * modules/sys_time-tests: New file.
58010         * tests/test-sys_time.c: New file.
58011
58012         * modules/sys_stat-tests: New file.
58013         * tests/test-sys_stat.c: New file.
58014
58015         * modules/sys_socket-tests: New file.
58016         * tests/test-sys_socket.c: New file.
58017
58018         * modules/sys_select-tests: New file.
58019         * tests/test-sys_select.c: New file.
58020
58021         * modules/string-tests: New file.
58022         * tests/test-string.c: New file.
58023
58024         * modules/stdbool-tests: New file.
58025         * tests/test-stdbool.c: New file.
58026
58027         * modules/netinet_in-tests: New file.
58028         * tests/test-netinet_in.c: New file.
58029
58030         * modules/inttypes-tests: New file.
58031         * tests/test-inttypes.c: New file.
58032
58033         * modules/fcntl-tests: New file.
58034         * tests/test-fcntl.c: New file.
58035
58036         * modules/byteswap-tests: New file.
58037         * tests/test-byteswap.c: New file.
58038
58039         * modules/arpa_inet-tests: New file.
58040         * tests/test-arpa_inet.c: New file.
58041
58042 2007-02-17  Bruno Haible  <bruno@clisp.org>
58043
58044         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
58045         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
58046         if the corresponding module is not enabled. Emit link warnings if
58047         the function is used nevertheless.
58048         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
58049         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
58050         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
58051         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
58052         * modules/inttypes (Depends-on): Add link-warning.
58053         (Makefile.am): Copy the contents of build-aux/link-warning.h into
58054         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
58055         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
58056         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
58057         * modules/imaxdiv (configure.ac): Likewise.
58058         * modules/strtoimax (configure.ac): Likewise.
58059         * modules/strtoumax (configure.ac): Likewise.
58060
58061 2007-02-17  Bruno Haible  <bruno@clisp.org>
58062
58063         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
58064         gl_STRING_MODULE_INDICATOR_DEFAULTS.
58065         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
58066         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
58067
58068 2007-02-17  Bruno Haible  <bruno@clisp.org>
58069
58070         * modules/link-warning: New file.
58071         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
58072         * lib/string_.h (GL_LINK_WARNING): Remove definition.
58073         * modules/string (Depends-on): Add link-warning.
58074         (Makefile.am): Copy the contents of build-aux/link-warning.h into
58075         string.h.
58076         * MODULES.html.sh (Support for building libraries and executables): Add
58077         link-warning.
58078
58079 2007-02-17  Bruno Haible  <bruno@clisp.org>
58080
58081         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
58082         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
58083         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
58084         long lines.
58085
58086 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
58087             Bruno Haible  <bruno@clisp.org>
58088
58089         * modules/tmpfile: New file.
58090         * lib/tmpfile.c: New file.
58091         * m4/tmpfile.m4: New file.
58092         * MODULES.html.sh (func_all_modules): New section "Input/output".
58093
58094 2007-02-15  Bruno Haible  <bruno@clisp.org>
58095
58096         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
58097         (supports_delete_on_close): New function.
58098         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
58099
58100 2007-02-14  Bruno Haible  <bruno@clisp.org>
58101
58102         * modules/mbspcasecmp-tests: New file.
58103         * tests/test-mbspcasecmp.sh: New file.
58104         * tests/test-mbspcasecmp.c: New file.
58105
58106         New module mbspcasecmp.
58107         * modules/mbspcasecmp: New file.
58108         * lib/mbspcasecmp.c: New file.
58109         * lib/string_.h (strncasecmp): Change warning message.
58110         (mbspcasecmp): New declaration.
58111         * m4/mbspcasecmp.m4: New file.
58112         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58113         GNULIB_MBSPCASECMP.
58114         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
58115         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
58116
58117 2007-02-14  Bruno Haible  <bruno@clisp.org>
58118
58119         * modules/mbsncasecmp-tests: New file.
58120         * tests/test-mbsncasecmp.sh: New file.
58121         * tests/test-mbsncasecmp.c: New file.
58122
58123         New module mbsncasecmp.
58124         * modules/mbsncasecmp: New file.
58125         * lib/mbsncasecmp.c: New file.
58126         * lib/string_.h (mbsncasecmp): New declaration.
58127         * m4/mbsncasecmp.m4: New file.
58128         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58129         GNULIB_MBSNCASECMP.
58130         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
58131         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
58132
58133 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
58134
58135         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
58136         Verify that it doesn't overlap with our flags.
58137         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
58138         do not have the desired effect in multibyte locales; instead, use
58139         mbscasecmp.
58140         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
58141         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
58142         we don't require GNU fnmatch ourselves (if our users require it, they
58143         should do so explicitly).
58144
58145         Fix regex code so it doesn't rely on strcasecmp.
58146         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
58147         Otherwise, include gnulib's langinfo.h.
58148         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
58149         undesirable behavior in non-C locales.  Instead, rely on localecharset.
58150         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
58151         * modules/regex (FILES): Remove m4/codeset.m4.
58152         (Depends-on): Add localcharset.  Remove strcase.
58153
58154 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58155
58156         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
58157         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
58158
58159 2007-02-13  Bruno Haible  <bruno@clisp.org>
58160
58161         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
58162         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58163
58164 2007-02-12  Bruno Haible  <bruno@clisp.org>
58165
58166         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
58167         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
58168         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
58169         time warning rather than a link error.
58170
58171 2007-02-12  Bruno Haible  <bruno@clisp.org>
58172
58173         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
58174         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58175         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58176
58177 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
58178
58179         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
58180         args, not 2.
58181
58182 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
58183
58184         New module 'time', so that apps can include <time.h> as per
58185         POSIX and GNU instead of separate include files like time_r.h
58186         and timegm.h.  This implementation tries out a simpler approach
58187         for replacing decls in standard include files (as compared to
58188         the string module), somewhat as an experiment.
58189
58190         * config/srclist.txt: Comment out mktime.c for now.
58191         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
58192         since it doesn't apply any more.  Use generic wording instead.
58193         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
58194         'time'.
58195         * lib/time_.h, m4/time_h.m4, modules/time: New files.
58196         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
58197         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
58198         Don't include <sys/types.h>; no longer needed since we assume C89.
58199         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
58200         * lib/strftime.c: Likewise.
58201         * lib/time_r.c: Likewise.
58202         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
58203         * lib/nanosleep.c: Include <time.h> first, to check interface.
58204         * lib/strptime.c: Likewise.
58205         * lib/time_r.c: Likewise.
58206         * lib/timegm.c: Likewise.
58207         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
58208         needed.
58209         * lib/timegm.c: Don't include timegm.h; no longer needed.
58210         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
58211         time.h now handles any problems in that area.
58212         (struct timespec, nanosleep): Remove; time.h now arranges for these.
58213         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
58214         that time.h defines struct timespec.
58215         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
58216         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
58217         handles that.
58218         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
58219         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
58220         needed.  Set REPLACE_LOCALTIME.
58221         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
58222         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
58223         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
58224         nanosleep; time_h.m4 now does that.  Don't require
58225         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
58226         module handles this now.
58227         * modules/getdate (Depends-on): Remove timespec.  Add time.
58228         * modules/nanosleep (Depends-on): Likewise.
58229         * modules/stat-time (Depends-on): Likewise.
58230         * modules/nanosleep (Include): Include time.h, not timespec.h.
58231         * modules/strptime (Files): Remove lib/strptime.h.
58232         (Depends-on): Add extensions, time.
58233         (Include): Include time.h, not strptime.h.
58234         * modules/time_r (Files): Remove lib/time_r.h.
58235         (Depends-on): Add time.
58236         (Include): Include time.h, not time_r.h.
58237         * modules/timegm: Likewise.
58238         * modules/timespec (Description): Now does timespec-related decls
58239         of our own, instead of struct timespec itself.
58240         (Depends-on): Add time; remove extensions.
58241         (Maintainer): Add self.
58242         * modules/utimecmp (Depends-on): Add time; remove timespec.
58243         * modules/utimens (Depends-on): Likewise.
58244         * modules/xnanosleep (Depends-on): Likewise.
58245
58246 2007-02-11  Bruno Haible  <bruno@clisp.org>
58247
58248         * lib/c-strstr.c: Include allocsa.h.
58249         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
58250         * lib/c-strcasestr.c: Include allocsa.h.
58251         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
58252         * lib/strcasestr.c: Include allocsa.h.
58253         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
58254         * lib/mbsstr.c: Include allocsa.h.
58255         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
58256         allocsa/freesa instead of malloc/free.
58257         * lib/mbscasestr.c: Include allocsa.h.
58258         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
58259         allocsa/freesa instead of malloc/free.
58260         * modules/c-strstr (Depends-on): Add allocsa.
58261         * modules/c-strcasestr (Depends-on): Likewise.
58262         * modules/strcasestr (Depends-on): Likewise.
58263         * modules/mbsstr (Depends-on): Likewise.
58264         * modules/mbscasestr (Depends-on): Likewise.
58265
58266 2007-02-11  Bruno Haible  <bruno@clisp.org>
58267
58268         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
58269
58270         * modules/mbsspn-tests: New file.
58271         * tests/test-mbsspn.sh: New file.
58272         * tests/test-mbsspn.c: New file.
58273
58274 2007-02-11  Bruno Haible  <bruno@clisp.org>
58275
58276         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
58277
58278         * modules/mbspbrk-tests: New file.
58279         * tests/test-mbspbrk.sh: New file.
58280         * tests/test-mbspbrk.c: New file.
58281
58282 2007-02-11  Bruno Haible  <bruno@clisp.org>
58283
58284         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
58285         unneeded cast.
58286
58287         * modules/mbscspn-tests: New file.
58288         * tests/test-mbscspn.sh: New file.
58289         * tests/test-mbscspn.c: New file.
58290
58291 2007-02-11  Bruno Haible  <bruno@clisp.org>
58292
58293         * modules/mbscasecmp-tests: New file.
58294         * tests/test-mbscasecmp.sh: New file.
58295         * tests/test-mbscasecmp.c: New file.
58296
58297 2007-02-11  Bruno Haible  <bruno@clisp.org>
58298
58299         Ensure O(n) worst-case complexity of mbscasestr.
58300         * lib/mbscasestr.c: Include stdbool.h.
58301         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
58302         functions.
58303         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
58304         the bookkeeping indicates that it's worth it.
58305         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
58306
58307         * modules/mbscasestr-tests: New file.
58308         * tests/test-mbscasestr1.c: New file.
58309         * tests/test-mbscasestr2.sh: New file.
58310         * tests/test-mbscasestr2.c: New file.
58311         * tests/test-mbscasestr3.sh: New file.
58312         * tests/test-mbscasestr3.c: New file.
58313         * tests/test-mbscasestr4.sh: New file.
58314         * tests/test-mbscasestr4.c: New file.
58315         * m4/locale-tr.m4: New file.
58316
58317 2007-02-11  Bruno Haible  <bruno@clisp.org>
58318
58319         Ensure O(n) worst-case complexity of mbsstr.
58320         * lib/mbsstr.c: Include stdbool.h.
58321         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
58322         functions.
58323         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
58324         bookkeeping indicates that it's worth it.
58325         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
58326
58327         * modules/mbsstr-tests: New file.
58328         * tests/test-mbsstr1.c: New file.
58329         * tests/test-mbsstr2.sh: New file.
58330         * tests/test-mbsstr2.c: New file.
58331         * tests/test-mbsstr3.sh: New file.
58332         * tests/test-mbsstr3.c: New file.
58333         * m4/locale-fr.m4: New file.
58334
58335 2007-02-11  Bruno Haible  <bruno@clisp.org>
58336
58337         * lib/mbsrchr.c (mbsrchr): Fix bug.
58338
58339         * modules/mbsrchr-tests: New file.
58340         * tests/test-mbsrchr.sh: New file.
58341         * tests/test-mbsrchr.c: New file.
58342
58343 2007-02-11  Bruno Haible  <bruno@clisp.org>
58344
58345         * lib/mbschr.c (mbschr): Fix bug.
58346
58347         * modules/mbschr-tests: New file.
58348         * tests/test-mbschr.sh: New file.
58349         * tests/test-mbschr.c: New file.
58350         * m4/locale-zh.m4: New file.
58351
58352 2007-02-11  Bruno Haible  <bruno@clisp.org>
58353
58354         Support for copying multibyte string iterators.
58355         * lib/mbiter.h: Include <string.h>.
58356         (mbiter_multi_copy): New function.
58357         (mbi_copy): New macro.
58358         * lib/mbuiter.h: Include <string.h>.
58359         (mbuiter_multi_copy): New function.
58360         (mbui_copy): New macro.
58361
58362 2007-02-11  Bruno Haible  <bruno@clisp.org>
58363
58364         New module mbslen.
58365         * modules/mbslen: New file.
58366         * lib/mbslen.c: New file.
58367         * lib/string_.h (mbslen): New declaration.
58368         * m4/mbslen.m4: New file.
58369         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58370         GNULIB_MBSLEN.
58371         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
58372         * MODULES.html.sh (Internationalization functions): Add mbslen.
58373
58374 2007-02-11  Bruno Haible  <bruno@clisp.org>
58375
58376         Ensure O(n) worst-case complexity of strcasestr substitute.
58377         * lib/strcasestr.c: Include stdbool.h.
58378         (knuth_morris_pratt): New function.
58379         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
58380         bookkeeping indicates that it's worth it.
58381         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
58382
58383         * modules/strcasestr-tests: New file.
58384         * tests/test-strcasestr.c: New file.
58385
58386 2007-02-11  Bruno Haible  <bruno@clisp.org>
58387
58388         Ensure O(n) worst-case complexity of c_strcasestr.
58389         * lib/c-strcasestr.c: Include stdbool.h, string.h.
58390         (knuth_morris_pratt): New function.
58391         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
58392         the bookkeeping indicates that it's worth it.
58393         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
58394
58395         * modules/c-strcasestr-tests: New file.
58396         * tests/test-c-strcasestr.c: New file.
58397
58398 2007-02-11  Bruno Haible  <bruno@clisp.org>
58399
58400         Ensure O(n) worst-case complexity of c_strstr.
58401         * lib/c-strstr.c: Include stdbool.h, string.h.
58402         (knuth_morris_pratt): New function.
58403         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
58404         bookkeeping indicates that it's worth it.
58405         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
58406
58407         * lib/c-strstr.c: Complete rewrite for maintainability.
58408
58409         * modules/c-strstr-tests: New file.
58410         * tests/test-c-strstr.c: New file.
58411
58412 2007-02-11  Bruno Haible  <bruno@clisp.org>
58413
58414         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
58415         5.2.1 and earlier, whereby \055 was treated just like the range
58416         delimiter '-'.
58417         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58418
58419 2007-02-08  Bruno Haible  <bruno@clisp.org>
58420
58421         * modules/regex (Depends-on): Add stdbool.
58422         Reported by Dalibor Topic <robilad@kaffe.org>.
58423
58424 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
58425
58426         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
58427         Prefer returning from main to exiting from it.
58428         Remove unnecessary parens after sizeof.
58429
58430 2007-02-05  Bruno Haible  <bruno@clisp.org>
58431
58432         New module mbssep.
58433         * modules/mbssep: New file.
58434         * lib/mbssep.c: New file.
58435         * lib/string_.h (strsep): Add a conditional link warning.
58436         (mbssep): New declaration.
58437         * m4/mbssep.m4: New file.
58438         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58439         GNULIB_MBSSEP.
58440         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
58441         * MODULES.html.sh (Internationalization functions): Add mbssep.
58442
58443 2007-02-05  Bruno Haible  <bruno@clisp.org>
58444
58445         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
58446         Optimize search in case of 1 delimiter.
58447
58448 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
58449
58450         * lib/acl.h: Include sys/types.h before sys/acl.h.
58451
58452 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
58453
58454         Merge upstream fix for glibc bugzilla #3957:
58455
58456         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
58457
58458         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
58459         bit for RE_HAT_LISTS_NOT_NEWLINE.
58460         (build_charclass_op): Remove bogus comment.
58461
58462 2007-02-05  Simon Josefsson  <simon@josefsson.org>
58463
58464         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
58465
58466 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
58467
58468         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
58469         * lib/memmem.c [!defined _LIBC]: Include config.h.
58470
58471 2007-02-04  Bruno Haible  <bruno@clisp.org>
58472
58473         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
58474         warning message.
58475
58476 2007-02-04  Bruno Haible  <bruno@clisp.org>
58477
58478         New module mbstok_r.
58479         * modules/mbstok_r: New file.
58480         * lib/mbstok_r.c: New file.
58481         * lib/string_.h (strtok_r): Change argument names to match the
58482         comments. Add a conditional link warning.
58483         (mbstok_r): New declaration.
58484         * m4/mbstok_r.m4: New file.
58485         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58486         GNULIB_MBSTOK_R.
58487         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
58488         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
58489
58490 2007-02-04  Bruno Haible  <bruno@clisp.org>
58491
58492         New module mbsspn.
58493         * modules/mbsspn: New file.
58494         * lib/mbsspn.c: New file.
58495         * lib/string_.h (strspn): Add a conditional link warning.
58496         (mbsspn): New declaration.
58497         * m4/mbsspn.m4: New file.
58498         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58499         GNULIB_MBSSPN.
58500         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
58501         * MODULES.html.sh (Internationalization functions): Add mbsspn.
58502
58503 2007-02-04  Bruno Haible  <bruno@clisp.org>
58504
58505         New module mbspbrk.
58506         * modules/mbspbrk: New file.
58507         * lib/mbspbrk.c: New file.
58508         * lib/string_.h (strpbrk): Add a conditional link warning.
58509         (mbspbrk): New declaration.
58510         * m4/mbspbrk.m4: New file.
58511         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58512         GNULIB_MBSPBRK.
58513         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
58514         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
58515
58516 2007-02-04  Bruno Haible  <bruno@clisp.org>
58517
58518         New module mbscspn.
58519         * modules/mbscspn: New file.
58520         * lib/mbscspn.c: New file.
58521         * lib/string_.h (strcspn): Add a conditional link warning.
58522         (mbscspn): New declaration.
58523         * m4/mbscspn.m4: New file.
58524         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58525         GNULIB_MBSCSPN.
58526         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
58527         * MODULES.html.sh (Internationalization functions): Add mbscspn.
58528
58529 2007-02-04  Bruno Haible  <bruno@clisp.org>
58530
58531         New module mbscasestr, reduced goal of strcasestr.
58532         * modules/mbscasestr: New file.
58533         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
58534         (mbscasestr): Renamed from strcasestr.
58535         * lib/strcasestr.c: Don't include mbuiter.h.
58536         (strcasestr): Remove support for multibyte locales.
58537         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
58538         Change the conditional link warning.
58539         (mbscasestr): New declaration.
58540         * m4/mbscasestr.m4: New file.
58541         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
58542         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
58543         REPLACE_STRCASESTR.
58544         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
58545         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58546         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
58547         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
58548         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
58549         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
58550         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
58551         (Depends-on): Remove mbuiter.
58552         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
58553
58554 2007-02-04  Bruno Haible  <bruno@clisp.org>
58555
58556         Simplify handling of strncasecmp.
58557         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
58558         the conditional link warning.
58559         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58560         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
58561         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
58562         * modules/strcase (configure.ac): Don't invoke
58563         gl_STRING_MODULE_INDICATOR.
58564         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
58565
58566 2007-02-04  Bruno Haible  <bruno@clisp.org>
58567
58568         New module mbscasecmp, reduced goal of strcasecmp.
58569         * modules/mbscasecmp: New file.
58570         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
58571         (mbscasecmp): Renamed from strcasecmp.
58572         * lib/strcasecmp.c: Don't include mbuiter.h.
58573         (strcasecmp): Remove support for multibyte locales.
58574         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
58575         Change the conditional link warning.
58576         (mbscasecmp): New declaration.
58577         * m4/mbscasecmp.m4: New file.
58578         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
58579         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
58580         REPLACE_STRCASECMP.
58581         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
58582         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58583         GNULIB_MBSCASECMP.
58584         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
58585         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
58586         * modules/strcase (Files): Remove m4/mbrtowc.m4.
58587         (Depends-on): Remove mbuiter.
58588         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
58589
58590 2007-02-04  Bruno Haible  <bruno@clisp.org>
58591
58592         New module mbsstr. Remove module strstr.
58593         * modules/mbsstr: New file.
58594         * modules/strstr: Remove file.
58595         * lib/mbsstr.c: Renamed from lib/strstr.c.
58596         (mbsstr): Renamed from strstr.
58597         * lib/string_.h (strstr): Remove declaration. Change the conditional
58598         link warning.
58599         (mbsstr): New declaration.
58600         * m4/mbsstr.m4: New file.
58601         * m4/strstr.m4: Remove file.
58602         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
58603         REPLACE_STRSTR.
58604         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
58605         Don't initialize GNULIB_STRSTR.
58606         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
58607         substitute GNULIB_STRSTR and REPLACE_STRSTR.
58608         * MODULES.html.sh (Internationalization functions): Add mbsstr.
58609         (Support for systems lacking ANSI C 89): Remove strstr.
58610
58611 2007-02-04  Bruno Haible  <bruno@clisp.org>
58612
58613         New module mbsrchr.
58614         * modules/mbsrchr: New file.
58615         * lib/mbsrchr.c: New file.
58616         * lib/string_.h (strrchr): Add a conditional link warning.
58617         (mbsrchr): New declaration.
58618         * m4/mbsrchr.m4: New file.
58619         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58620         GNULIB_MBSRCHR.
58621         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
58622         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
58623
58624 2007-02-04  Bruno Haible  <bruno@clisp.org>
58625
58626         New module mbschr.
58627         * modules/mbschr: New file.
58628         * lib/mbschr.c: New file.
58629         * lib/string_.h (strchr): Add a conditional link warning.
58630         (mbschr): New declaration.
58631         * m4/mbschr.m4: New file.
58632         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58633         GNULIB_MBSCHR.
58634         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
58635         * MODULES.html.sh (Internationalization functions): Add mbschr.
58636
58637 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
58638
58639         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
58640
58641         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
58642
58643 2007-02-04  Bruno Haible  <bruno@clisp.org>
58644
58645         New module description section 'configure.ac-early'.
58646         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
58647         (func_get_autoconf_early_snippet): New function.
58648         (func_import, func_create_testdir): Use it. Remove special cases for
58649         modules 'extensions' and 'lock'.
58650         * modules/extensions (configure.ac-early): Require
58651         gl_USE_SYSTEM_EXTENSIONS.
58652         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
58653
58654 2007-02-04  Bruno Haible  <bruno@clisp.org>
58655
58656         Make use of gcj-4.3's -fsource and -ftarget option.
58657         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
58658         and if so try the options -fsource and -ftarget.
58659         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
58660         source_version, ftarget_option, target_version arguments.
58661         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
58662         (is_envjavac_oldgcj_14_14_usable): Renamed from
58663         is_envjavac_gcj_14_14_usable.
58664         (is_envjavac_oldgcj_14_13_usable): Renamed from
58665         is_envjavac_gcj_14_13_usable.
58666         (is_gcj_present): Update.
58667         (is_gcj_43, is_gcj43_usable): New functions.
58668         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
58669         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
58670         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
58671         try the options -fsource and -ftarget.
58672
58673 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58674
58675         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
58676         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
58677         larger value.
58678
58679 2007-02-03  Jim Meyering  <jim@meyering.net>
58680
58681         Give tools a better chance to allocate space for very large buffers.
58682         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
58683
58684         Make pwd and readlink work also when run with an unreadable parent dir
58685         on systems with openat support.
58686         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
58687         provided getcwd function, even when we have openat support.
58688         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
58689
58690 2007-02-02  Bruno Haible  <bruno@clisp.org>
58691
58692         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
58693         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
58694         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
58695         portability problems if one of these functions is only used on specific
58696         platforms.
58697         Reported by Paul Eggert.
58698
58699 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
58700
58701         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
58702         is causing more trouble than it's curing.
58703         * lib/regex_internal.h (__mempcpy): Remove.
58704         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
58705         (and make the code a tad smaller to boot).
58706         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
58707
58708 2007-02-02  Jim Meyering  <jim@meyering.net>
58709
58710         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
58711         section, not in the Makefile.am: one.
58712
58713 2007-02-02  Eric Blake  <ebb9@byu.net>
58714
58715         * lib/strchrnul.c: Always include config.h first.
58716
58717         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
58718         gnulib strstr is not necessary here.
58719
58720 2007-02-02  Simon Josefsson  <simon@josefsson.org>
58721
58722         * m4/socklen.m4: Fix typo.
58723
58724 2007-02-02  Eric Blake  <ebb9@byu.net>
58725
58726         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
58727         * modules/netinet_in (Makefile.am): Likewise.
58728
58729 2007-02-01  Bruno Haible  <bruno@clisp.org>
58730
58731         * lib/string_.h (GL_LINK_WARNING): New macro.
58732         (strcasecmp, strstr, strcasestr): If provided by the system,
58733         conditionally define as a macro that leads to a warning instead of to
58734         an error.
58735         (strncasecmp): Conditionally define as a macro that leads to a warning.
58736
58737 2007-02-01  Karl Berry  <karl@gnu.org>
58738
58739         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
58740
58741 2007-02-01  Bruno Haible  <bruno@clisp.org>
58742
58743         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
58744         renamings.
58745
58746 2007-02-01  Eric Blake  <ebb9@byu.net>
58747
58748         * modules/regex (Depends-on): Revert dependence on mempcpy.
58749         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
58750         module's definition of mempcpy.
58751         Reported by Paul Eggert.
58752
58753 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
58754
58755         * lib/string_.h: If the gnulib module XYZ is not present, undefine
58756         the symbol XYZ before redefining it.  This fixes a problem with
58757         programs that don't use XYZ, when compiled on systems that define
58758         XYZ to something else.
58759
58760 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
58761
58762         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
58763         occurs when "mkdir -m foo" creates a setgid directory that is (1)
58764         writeable to group or other and (2) is intended to have a special
58765         mode bit that is set or cleared.  In such a case, the directory
58766         should be neither group- nor other-writeable until the special
58767         mode bits are right.
58768
58769 2007-01-31  Eric Blake  <ebb9@byu.net>
58770
58771         * modules/mountlist (Depends-on): Add strstr.
58772
58773         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
58774         bug.
58775         * modules/string (Makefile.am): Remove redundant replacement.
58776         * modules/regex (Depends-on): Add mempcpy.
58777
58778 2007-01-31  Bruno Haible  <bruno@clisp.org>
58779
58780         New module description field 'Link'.
58781         * gnulib-tool (func_usage): Document --extract-link-directive.
58782         (sed_extract_prog): Recognize 'Link' directive.
58783         (func_get_link_directive): New function.
58784         (func_import): Show summary of link directives.
58785         Handle --extract-link-directive option.
58786         * modules/acl (Link): New section.
58787         * modules/clock-time (Link): New section.
58788         * modules/euidaccess (Link): New section.
58789         * modules/gettext (Link): New section.
58790         * modules/iconv (Link): New section.
58791         * modules/lock (Link): New section.
58792         * modules/nanosleep (Link): New section.
58793         * modules/readline (Link): New section.
58794
58795 2007-01-27  Bruno Haible  <bruno@clisp.org>
58796
58797         Enforce the use of gnulib modules for unportable <string.h> functions.
58798         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
58799         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
58800         (gl_HEADER_STRING_H_BODY): Require it.
58801         * lib/string_.h: If the gnulib module XYZ is not present, redefine
58802         the symbol XYZ to one that gives a link error.
58803         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
58804         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
58805         * modules/mempcpy (configure.ac): Likewise.
58806         * modules/memrchr (configure.ac): Likewise.
58807         * modules/stpcpy (configure.ac): Likewise.
58808         * modules/stpncpy (configure.ac): Likewise.
58809         * modules/strcase (configure.ac): Likewise.
58810         * modules/strcasestr (configure.ac): Likewise.
58811         * modules/strchrnul (configure.ac): Likewise.
58812         * modules/strdup (configure.ac): Likewise.
58813         * modules/strndup (configure.ac): Likewise.
58814         * modules/strnlen (configure.ac): Likewise.
58815         * modules/strpbrk (configure.ac): Likewise.
58816         * modules/strsep (configure.ac): Likewise.
58817         * modules/strstr (configure.ac): Likewise.
58818         * modules/strtok_r (configure.ac): Likewise.
58819
58820 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
58821
58822         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
58823
58824 2007-01-30  Jim Meyering  <jim@meyering.net>
58825
58826         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
58827
58828 2007-01-29  Bruno Haible  <bruno@clisp.org>
58829
58830         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
58831         * lib/execute.c: Likewise.
58832         * lib/pipe.c: Likewise.
58833         * lib/printf-args.h: Likewise.
58834         * lib/printf-args.c: Likewise.
58835         * lib/printf-parse.c: Likewise.
58836         * lib/vasnprintf.c: Likewise.
58837
58838 2007-01-29  Eric Blake  <ebb9@byu.net>
58839
58840         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
58841         declaration.
58842
58843 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
58844
58845         * lib/strptime.h (strptime): Use 'restrict' for args where
58846         POSIX requires this.
58847         * lib/strptime.c (strptime): Likewise.
58848         Change license notice from LGPL to GPL, since gnulib-tool will
58849         change this as needed.
58850         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
58851         defined.
58852         Include "strptime.h" first, to check interface.
58853         Do not #undef _LIBC and _NL_CURRENT.
58854         Do not include <stdlib.h>; no longer needed.
58855         Include "time_r.h" and declare ptime_locale_status
58856         only if _LIBC is not defined.
58857         (__P): Remove unused macro.
58858         (match_string): Bring back glibc version, but use it only if _LIBC
58859         is defined.
58860         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
58861         Remove unnecessary assertion and abort() call.
58862         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
58863         * m4/strptime.m4: Fix serial number comment.
58864         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
58865         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
58866         (Depends-on): Add time_r.
58867
58868 2007-01-29  Bruno Haible  <bruno@clisp.org>
58869
58870         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58871         strptime.
58872         * modules/strptime (Depends-on): Add stdbool.
58873         * lib/strptime.h: Include <time.h> always. Add comments.
58874
58875 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58876
58877         * modules/strptime: New file.
58878         * lib/strptime.h: New file.
58879         * lib/strptime.c: New file.
58880         * m4/strptime.m4: New file.
58881
58882 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58883
58884         * MODULES.html.sh: New module mpsort.
58885         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
58886
58887         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
58888         a circularity problem with HP-UX ia64 reported by Bob Proulx in
58889         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
58890         All uses changed.
58891         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
58892         All uses changed.
58893         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
58894         to _Restrict_.
58895         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
58896         the parameter matches the prototype.
58897
58898 2007-01-28  Jim Meyering  <jim@meyering.net>
58899
58900         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
58901         sys/time.h here, reverting that part of the previous patch:
58902         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
58903
58904 2007-01-28  Bruno Haible  <bruno@clisp.org>
58905
58906         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
58907         value of $(SYS_TIME_H).
58908         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
58909         remove it conditionally, too. [added by Jim Meyering]
58910         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
58911         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
58912         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
58913         GETTIMEOFDAY_REPLACEMENT to 1.
58914
58915 2007-01-28  Bruno Haible  <bruno@clisp.org>
58916
58917         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
58918         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
58919         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
58920         Set UNISTD_H instead of UNISTD_H2.
58921         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
58922
58923 2007-01-28  Bruno Haible  <bruno@clisp.org>
58924
58925         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
58926         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
58927
58928 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58929
58930         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
58931         (func_create_testdir): Ensure C locale for `grep' and `tr'
58932         character ranges.
58933         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
58934         ACLOCAL_AMFLAGS parsing state machine.
58935
58936 2007-01-27  Bruno Haible  <bruno@clisp.org>
58937
58938         * modules/unistr/base: Update.
58939
58940 2007-01-27  Bruno Haible  <bruno@clisp.org>
58941
58942         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
58943         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
58944         * modules/unistr/u32-mbtouc-unsafe: Renamed from
58945         modules/unistr/u32-mbtouc.
58946         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
58947         * lib/unistr.h: Update.
58948         * lib/linebreak.c: Update.
58949         * modules/unistr/u32-mbtouc: Renamed from
58950         modules/unistr/u32-mbtouc-safe.
58951         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
58952         * lib/unistr.h: Update.
58953         * lib/unistr/u32-to-u8.c: Update.
58954         * lib/unistr/u32-to-u16.c: Update.
58955
58956 2007-01-27  Bruno Haible  <bruno@clisp.org>
58957
58958         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
58959         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
58960         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
58961         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
58962         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
58963         * modules/unistr/u16-mbtouc-unsafe: Renamed from
58964         modules/unistr/u16-mbtouc.
58965         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
58966         * lib/unistr.h: Update.
58967         * lib/linebreak.c: Update.
58968         * modules/linebreak: Update.
58969         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
58970         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
58971         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
58972         * modules/unistr/u16-mbtouc: Renamed from
58973         modules/unistr/u16-mbtouc-safe.
58974         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
58975         * lib/unistr.h: Update.
58976         * lib/unistr/u16-to-u8.c: Update.
58977         * modules/unistr/u16-to-u8: Update.
58978         * lib/unistr/u16-to-u32.c: Update.
58979         * modules/unistr/u16-to-u32: Update.
58980
58981 2007-01-27  Bruno Haible  <bruno@clisp.org>
58982
58983         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
58984         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
58985         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
58986         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
58987         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
58988         * modules/unistr/u8-mbtouc-unsafe: Renamed from
58989         modules/unistr/u8-mbtouc.
58990         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
58991         * lib/unistr.h: Update.
58992         * lib/striconveh.c: Update.
58993         * modules/striconveh: Update.
58994         * lib/linebreak.c: Update.
58995         * modules/linebreak: Update.
58996         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
58997         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
58998         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
58999         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
59000         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
59001         * lib/unistr.h: Update.
59002         * lib/striconveh.c: Update.
59003         * modules/striconveh: Update.
59004         * lib/unistr/u8-to-u16.c: Update.
59005         * modules/unistr/u8-to-u16: Update.
59006         * lib/unistr/u8-to-u32.c: Update.
59007         * modules/unistr/u8-to-u32: Update.
59008
59009 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59010
59011         Sync from Libtool.
59012         * lib/argz.c: Do not include strings.h nor memory.h, include
59013         string.h unconditionally.  Patch by Simon Josefsson.
59014
59015 2007-01-27  Bruno Haible  <bruno@clisp.org>
59016
59017         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
59018         from gl_HEADER_STRING_H_BODY.
59019         (gl_HEADER_STRING_H_BODY): Require it.
59020         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
59021         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
59022         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
59023         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
59024         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59025         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
59026         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59027         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
59028         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
59029         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
59030         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
59031         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
59032         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
59033         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59034         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59035
59036 2007-01-27  Bruno Haible  <bruno@clisp.org>
59037
59038         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
59039         check_PROGRAMS into noinst_PROGRAMS.
59040         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
59041         check_PROGRAMS in this case.
59042         (func_import): Set for_test to false.
59043         (func_create_testdir): Set for_test to true.
59044
59045 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
59046             Bruno Haible  <bruno@clisp.org>
59047
59048         * modules/strcasestr (Files): Remove lib/strcasestr.h.
59049         (Depends-on): Add string.
59050         (Includes): Use <string.h> instead of strcasestr.h.
59051         * modules/string (Makefile.am): Also substitute the value of
59052         REPLACE_STRCASESTR.
59053         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
59054         assume strcasestr is declared in <string.h> not <strings.h>. Also
59055         set REPLACE_STRCASESTR.
59056         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
59057         REPLACE_STRCASESTR.
59058         * lib/strcasestr.h: Remove file.
59059         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
59060         * lib/string_.h (strcasestr): New declaration.
59061
59062 2007-01-27  Bruno Haible  <bruno@clisp.org>
59063
59064         * lib/string_.h: Use 'extern'.
59065
59066 2007-01-27  Jim Meyering  <jim@meyering.net>
59067
59068         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
59069         of set-but-not-used local, "q".
59070
59071         * lib/mempcpy.c: Include <config.h> before <string.h>.
59072         This fixes a compilation error on HP-UX, due to the system's
59073         "restrict"-using mempcpy prototype.
59074
59075 2007-01-26  Bruno Haible  <bruno@clisp.org>
59076
59077         Small optimization.
59078         * lib/javacomp.c: Include c-strstr.h.
59079          (is_envjavac_gcj): Use c_strstr instead of strstr.
59080         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
59081
59082 2007-01-26  Bruno Haible  <bruno@clisp.org>
59083
59084         * MODULES.html.sh (Unicode string functions): Add the new modules.
59085
59086         * modules/uniconv/u32-strconv-to-locale: New file.
59087         * lib/uniconv/u32-strconv-to-locale.c: New file.
59088
59089         * modules/uniconv/u16-strconv-to-locale: New file.
59090         * lib/uniconv/u16-strconv-to-locale.c: New file.
59091
59092         * modules/uniconv/u8-strconv-to-locale: New file.
59093         * lib/uniconv/u8-strconv-to-locale.c: New file.
59094
59095         * modules/uniconv/u32-strconv-from-locale: New file.
59096         * lib/uniconv/u32-strconv-from-locale.c: New file.
59097
59098         * modules/uniconv/u16-strconv-from-locale: New file.
59099         * lib/uniconv/u16-strconv-from-locale.c: New file.
59100
59101         * modules/uniconv/u8-strconv-from-locale: New file.
59102         * lib/uniconv/u8-strconv-from-locale.c: New file.
59103
59104         * modules/uniconv/u32-strconv-to-enc: New file.
59105         * lib/uniconv/u32-strconv-to-enc.c: New file.
59106         * modules/uniconv/u32-strconv-to-enc-tests: New file.
59107         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
59108
59109         * modules/uniconv/u16-strconv-to-enc: New file.
59110         * lib/uniconv/u16-strconv-to-enc.c: New file.
59111         * lib/uniconv/u-strconv-to-enc.h: New file.
59112         * modules/uniconv/u16-strconv-to-enc-tests: New file.
59113         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
59114
59115         * modules/uniconv/u8-strconv-to-enc: New file.
59116         * lib/uniconv/u8-strconv-to-enc.c: New file.
59117         * modules/uniconv/u8-strconv-to-enc-tests: New file.
59118         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
59119
59120         * modules/uniconv/u32-strconv-from-enc: New file.
59121         * lib/uniconv/u32-strconv-from-enc.c: New file.
59122         * modules/uniconv/u32-strconv-from-enc-tests: New file.
59123         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
59124
59125         * modules/uniconv/u16-strconv-from-enc: New file.
59126         * lib/uniconv/u16-strconv-from-enc.c: New file.
59127         * modules/uniconv/u16-strconv-from-enc-tests: New file.
59128         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
59129
59130         * modules/uniconv/u8-strconv-from-enc: New file.
59131         * lib/uniconv/u8-strconv-from-enc.c: New file.
59132         * lib/uniconv/u-strconv-from-enc.h: New file.
59133         * modules/uniconv/u8-strconv-from-enc-tests: New file.
59134         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
59135
59136         * modules/uniconv/u32-conv-from-enc: New file.
59137         * lib/uniconv/u32-conv-from-enc.c: New file.
59138         * modules/uniconv/u32-conv-from-enc-tests: New file.
59139         * tests/uniconv/test-u32-conv-from-enc.c: New file.
59140
59141         * modules/uniconv/u16-conv-from-enc: New file.
59142         * lib/uniconv/u16-conv-from-enc.c: New file.
59143         * lib/uniconv/u-conv-from-enc.h: New file.
59144         * modules/uniconv/u16-conv-from-enc-tests: New file.
59145         * tests/uniconv/test-u16-conv-from-enc.c: New file.
59146
59147         * modules/uniconv/u8-conv-from-enc: New file.
59148         * lib/uniconv/u8-conv-from-enc.c: New file.
59149         * modules/uniconv/u8-conv-from-enc-tests: New file.
59150         * tests/uniconv/test-u8-conv-from-enc.c: New file.
59151
59152         * modules/uniconv/base: New file.
59153         * lib/uniconv.h: New file.
59154
59155 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
59156
59157         * doc/gnulib-tool.texi (Initial import): Update to match current
59158         behavior with strdup module.
59159         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
59160         * lib/memmem.h: Remove; all uses removed.  This is now done
59161         by <string.h>.
59162         * lib/mempcpy.h: Likewise.
59163         * lib/memrchr.h: Likewise.
59164         * lib/stpcpy.h: Likewise.
59165         * lib/stpncpy.h: Likewise.
59166         * lib/strcase.h: Likewise.
59167         * lib/strchrnul.h: Likewise.
59168         * lib/strdup.h: Likewise.
59169         * lib/strndup.h: Likewise.
59170         * lib/strnlen.h: Likewise.
59171         * lib/strpbrk.h: Likewise.
59172         * lib/strsep.h: Likewise.
59173         * lib/strstr.h: Likewise.
59174         * lib/strtok_r.h: Likewise.
59175         * lib/string_.h: New file.
59176         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
59177         Rely on <string.h> instead.
59178         * lib/canon-host.c: Likewise.
59179         * lib/chdir-long.c: Likewise.
59180         * lib/concatpath.c: Likewise.
59181         * lib/exclude.c: Likewise.
59182         * lib/fchdir.c: Likewise.
59183         * lib/getaddrinfo.c: Likewise.
59184         * lib/getcwd.c: Likewise.
59185         * lib/getsubopt.c: Likewise.
59186         * lib/glob.c: Likewise.
59187         * lib/hard-locale.c: Likewise.
59188         * lib/iconvme.c: Likewise.
59189         * lib/javacomp.c: Likewise.
59190         * lib/mempcpy.c: Likewise.
59191         * lib/memrchr.c: Likewise.
59192         * lib/regex_internal.h: Likewise.
59193         * lib/stpncpy.c: Likewise.
59194         * lib/strcasecmp.c: Likewise.
59195         * lib/strchrnul.c: Likewise.
59196         * lib/strdup.c: Likewise.
59197         * lib/striconv.c: Likewise.
59198         * lib/striconveh.c: Likewise.
59199         * lib/striconveha.c: Likewise.
59200         * lib/strncasecmp.c: Likewise.
59201         * lib/strndup.c: Likewise.
59202         * lib/strnlen.c: Likewise.
59203         * lib/strsep.c: Likewise.
59204         * lib/strstr.c: Likewise.
59205         * lib/strtok_r.c: Likewise.
59206         * lib/userspec.c: Likewise.
59207         * lib/w32spawn.h: Likewise.
59208         * lib/xstrndup.c: Likewise.
59209         * lib/mountlist.c (strstr): Remove decl.
59210         * m4/string_h.m4: New file.
59211         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
59212         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
59213         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
59214         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
59215         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
59216         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
59217         Set REPLACE_STRCASECMP if necessary.
59218         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
59219         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
59220         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
59221         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
59222         HAVE_DECL_STRDUP if necessary.
59223         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
59224         since gl_FUNC_STRNDUP does that now.
59225         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
59226         Check for decl here...
59227         (gl_PREREQ_STRNLEN): ... not here.
59228         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
59229         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
59230         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
59231         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
59232         necessary.
59233         * modules/string: New file.
59234         * modules/memmem (Files): Remove special-purpose include file.
59235         (Depends-on): Add string.
59236         (Include): Include <string.h>, not the removed file.
59237         * modules/mempcpy: Likewise.
59238         * modules/memrchr: Likewise.
59239         * modules/stpcpy: Likewise.
59240         * modules/stpncpy: Likewise.
59241         * modules/strcase: Likewise.
59242         * modules/strchrnul: Likewise.
59243         * modules/strdup: Likewise.
59244         * modules/strndup: Likewise.
59245         * modules/strnlen: Likewise.
59246         * modules/strpbrk: Likewise.
59247         * modules/strsep: Likewise.
59248         * modules/strstr: Likewise.
59249         * modules/strtok_r: Likewise.
59250         * tests/test-dirname.c: Don't include "strdup.h", since
59251         <string.h> now suffices.
59252         * tests/test-memmem.c: Don't include "memmem.h", since
59253         <string.h> now suffices.
59254
59255 2007-01-25  Bruno Haible  <bruno@clisp.org>
59256
59257         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
59258         *resultp is 0.
59259
59260         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
59261         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
59262         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
59263         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
59264
59265         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
59266         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
59267         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
59268         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
59269         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
59270         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
59271
59272 2007-01-24  Bruno Haible  <bruno@clisp.org>
59273
59274         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
59275         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
59276         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
59277         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
59278         gl_FUNC_FTS_CORE.
59279         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
59280         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
59281         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
59282         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
59283         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
59284         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
59285         gl_FUNC_FCHOWNAT.
59286         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
59287         gl_FUNC_STRFTIME.
59288         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
59289         Reported by Ralf Wildenhues.
59290
59291 2007-01-24  Bruno Haible  <bruno@clisp.org>
59292
59293         Drop AC_REQUIRE calls that are redundant with the module dependencies.
59294         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
59295         gl_GETADDRINFO.
59296         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
59297         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
59298         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
59299
59300 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
59301
59302         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
59303         Don't use 'exit'; just return from 'main'.
59304         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
59305
59306         * lib/fnmatch_.h: Readjust white space and comments to match
59307         glibc, to avoid spurious diffs.
59308
59309 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59310
59311         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
59312         2004-12-01 change by Jakub Jelinek, since this code won't compile
59313         if !LIBC.  Problem reported by Bob Proulx.
59314
59315 2007-01-23  Bruno Haible  <bruno@clisp.org>
59316
59317         * lib/striconveh.c: Include c-strcaseeq.h.
59318         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
59319         * modules/striconveh (Depends-on): Add c-strcaseeq.
59320
59321 2007-01-23  Bruno Haible  <bruno@clisp.org>
59322
59323         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
59324
59325         * modules/c-strcaseeq: New file.
59326         * lib/c-strcaseeq.h: New file.
59327
59328         * modules/streq: New file.
59329         * lib/streq.h: New file.
59330
59331 2007-01-23  Bruno Haible  <bruno@clisp.org>
59332
59333         * modules/striconveha-tests: New file.
59334         * tests/test-striconveha.c: New file.
59335
59336         * lib/striconveha.h: Include <stdbool.h>.
59337         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
59338         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
59339         (mem_iconveha_notranslit): Renamed from mem_iconveha.
59340         (mem_iconveha): New function.
59341         (str_iconveha_notranslit): Renamed from str_iconveha.
59342         (str_iconveha): New function.
59343         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
59344         c-strcase.
59345
59346 2007-01-23  Bruno Haible  <bruno@clisp.org>
59347
59348         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
59349         encodings without forgiving before trying any encoding with handler.
59350         (str_iconveha): Try all encodings without forgiving before trying any
59351         encoding with handler.
59352
59353 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59354
59355         Import the following changes from libc.
59356
59357         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
59358
59359         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
59360
59361         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
59362
59363         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
59364         normal_bracket label.
59365
59366         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
59367
59368         [BZ #361]
59369         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
59370         to normal_bracket after fetching the next character.
59371
59372 2007-01-22  Bruno Haible  <bruno@clisp.org>
59373
59374         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
59375         argument.
59376         * lib/striconveh.c (iconv_carefully_1): New function.
59377         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
59378         argument.
59379         (str_cd_iconveh): Update.
59380         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
59381         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
59382         * tests/test-striconveh.c (MAGIC): New macro.
59383         (new_offsets): New function.
59384         (main): Test call with and without offsets.
59385
59386 2007-01-22  Bruno Haible  <bruno@clisp.org>
59387
59388         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
59389         * modules/sys_select (Makefile.am): Likewise.
59390         * modules/sys_socket (Makefile.am): Likewise.
59391         * modules/sys_time (Makefile.am): Likewise.
59392
59393 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
59394
59395         * modules/gettimeofday (License): Change from GPL to LGPL, since
59396         gettimeofday is a library function.
59397
59398 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59399
59400         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
59401
59402 2007-01-21  Bruno Haible  <bruno@clisp.org>
59403
59404         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
59405
59406 2007-01-21  Bruno Haible  <bruno@clisp.org>
59407
59408         * modules/striconveha: New file.
59409         * lib/striconveha.h: New file.
59410         * lib/striconveha.c: New file.
59411         * MODULES.html.sh (Internationalization functions): Add striconveha.
59412         * lib/striconv.c (str_iconv): Optimize the case of an empty input
59413         string.
59414         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
59415
59416 2007-01-21  Bruno Haible  <bruno@clisp.org>
59417
59418         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
59419         * lib/striconveh.c (str_iconveh): Likewise.
59420
59421 2007-01-21  Bruno Haible  <bruno@clisp.org>
59422
59423         * lib/striconveh.h (mem_iconveh): New declaration.
59424         * lib/striconveh.c (mem_iconveh): New function.
59425         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
59426
59427 2007-01-21  Bruno Haible  <bruno@clisp.org>
59428
59429         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
59430
59431         * lib/striconveh.h (mem_cd_iconveh): Change specification.
59432         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
59433         original result buffer.
59434         (str_cd_iconveh): Update.
59435         * tests/test-striconveh.c (main): Update.
59436
59437         * lib/striconv.h (mem_cd_iconv): Change specification.
59438         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
59439         result buffer.
59440         (str_cd_iconv): Update.
59441         * tests/test-striconv.c (main): Update.
59442
59443 2007-01-21  Bruno Haible  <bruno@clisp.org>
59444
59445         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
59446
59447 2007-01-20  Jim Meyering  <jim@meyering.net>
59448
59449         * lib/userspec.c (parse_with_separator): If a user or group string
59450         starts with "+", skip the corresponding name-to-ID look-up, since
59451         such a look-up must fail: user and group names may not include "+".
59452
59453 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
59454
59455         * lib/poll.c: Include sys/time.h and time.h unconditionally,
59456         since we now assume the sys_time module.
59457         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
59458         check for sys/time.h; no longer needed.
59459         * modules/poll (Depends-on): Depend on sys_time.
59460
59461 2007-01-18  Bruno Haible  <bruno@clisp.org>
59462
59463         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
59464         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
59465
59466         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
59467         gettimeofday.
59468
59469         * tests/test-gettimeofday.c: Include <time.h>.
59470         (dummy): Remove variable.
59471
59472         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
59473         gl_HEADER_SYS_TIME_H.
59474         (gl_HEADER_SYS_TIME_H): New macro.
59475
59476         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
59477         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59478         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
59479         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
59480         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59481         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
59482         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
59483         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59484         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
59485         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
59486         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59487
59488         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
59489         last change; it caused a compilation error when cross-compiling to
59490         Cygwin.
59491
59492 2007-01-18  Jim Meyering  <jim@meyering.net>
59493
59494         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
59495         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
59496         than the race-prone "test -d sys || mkdir sys".
59497         (configure.ac): Use AC_PROG_MKDIR_P.
59498         * modules/sys_select: Likewise.
59499         * modules/sys_socket: Likewise.
59500         * modules/sys_time: Likewise.
59501
59502 2007-01-18  Eric Blake  <ebb9@byu.net>
59503
59504         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
59505         replace gettimeofday.
59506         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
59507         name, to avoid infinite recursion.
59508
59509 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
59510
59511         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
59512         module sys_time.
59513         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
59514         assume timespec.h defines struct timeval.
59515         * lib/settime.c: Likewise.
59516         * lib/utimens.c: Likewise.
59517         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
59518         since we now assume the gettimeofday module.
59519         * lib/tempname.c (__gen_tempname): Likewise.
59520         * lib/gettimeofday.h: Remove.
59521         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
59522         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
59523         Include <time.h>, for 'time()'.
59524         (localtime_buffer_addr): Also use this workaround if
59525         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
59526         to simplify the uses.  All uses changed.
59527         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
59528         that #undef is inside {}, and 'const' follows type name consistently.
59529         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
59530         (gettimeofday): Do not use the maximum possible value for
59531         tv->tv_usec, since that might break usages other than ls.c.
59532         Instead, we'll leave ls.c alone.  This undoes today's patch
59533         by Bruno.  Add a compile-time warning for 1s-clock resolution;
59534         we've never observed the problem but might as well keep the
59535         canary.
59536         * lib/nanosleep.c: Include timespec.h first, for interface check.
59537         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
59538         now assume the sys_time module.
59539         * lib/tempname.c: Likewise.
59540         * lib/timespec.h: Likewise.
59541         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
59542         needed.
59543         * lib/strftime.c: Likewise.
59544         * lib/timespec.h: Likewise.
59545         * lib/posixtm.c: Include posixtm.h first, for interface check.
59546         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
59547         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
59548         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
59549         * lib/sys_time_.h: New file.
59550         * lib/timespec.h (struct timespec): Use long int, not long.
59551         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
59552         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
59553         Remove obsolescent call to AC_HEADER_TIME.
59554         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
59555         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59556         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
59557         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
59558         Likewise.
59559         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
59560         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
59561         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
59562         into the sys_time module.  Check for gettimeofday just once.
59563         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
59564         for gettimeofday signature to just check the signature.  Merely
59565         compile it, since linking doesn't test signature.  Improve test for
59566         whether gettimeofday.o is actually needed.
59567         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
59568         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
59569         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
59570         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59571         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
59572         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
59573         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
59574         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
59575         than worrying about sys/time.h.
59576         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
59577         Don't bother worrying about TIME_WITH_SYS_TIME.
59578         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
59579         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
59580         * m4/sys_time_h.m4: New file.
59581         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
59582         Don't include sys/time.h.  Return from main rather than exiting.
59583         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
59584         all uses changed.
59585         * modules/gethrxtime (Depends-on): Add sys_time.
59586         * modules/gettime (Depends-on): Likewise.
59587         * modules/gettimeofday (Depends-on): Likewise.
59588         * modules/nanosleep (Depends-on): Likewise.
59589         * modules/settime (Depends-on): Likewise.
59590         * modules/tempname (Depends-on): Likewise.
59591         * modules/utimens (Depends-on): Likewise.
59592         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
59593         (Include): Change back to <sys/time.h>.
59594         (Maintainer): Add self.
59595         * modules/sys_time: New file.
59596         * modules/tempname (Depends-on): Add gettimeofday.
59597         * tests/test-gettimeofday.c: Include <sys/time.h>
59598         rather than gettimeofday.h.
59599
59600 2007-01-17  Bruno Haible  <bruno@clisp.org>
59601
59602         * gnulib-tool (func_get_license): Revert last patch. Instead, let
59603         the license default to GPL.
59604         (func_create_testdir): Don't complain if a module is LGPL and its
59605         tests module depends on GPLed modules.
59606
59607 2007-01-17  Bruno Haible  <bruno@clisp.org>
59608
59609         * lib/gettimeofday.c (gettimeofday): Add code for the case
59610         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
59611         maximum possible value for tv->tv_usec, rather than the minimum one.
59612
59613 2005-10-08  Martin Lambers  <marlam@marlam.de>
59614 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
59615 2007-01-16  Bruno Haible  <bruno@clisp.org>
59616
59617         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
59618         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
59619         gl_FUNC_GETTIMEOFDAY.
59620         (Include): Add gettimeofday.h.
59621         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
59622         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
59623         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
59624         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
59625         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
59626         * lib/gettimeofday.h: New file.
59627         * lib/gettimeofday.c: Include <sys/timeb.h>.
59628         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
59629         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59630         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
59631         fall back on time().
59632
59633         * tests/test-gettimeofday.c: New file.
59634         * modules/gettimeofday-tests: New file.
59635
59636 2007-01-16  Eric Blake  <ebb9@byu.net>
59637
59638         * modules/fnmatch (Depends-on): Depend on wchar.
59639         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
59640         * m4/fnmatch.m4: Likewise.
59641         * modules/mbchar (Makefile.am): Assume <wchar.h>.
59642         * m4/mbchar.m4: Likewise.
59643         * modules/mbswidth (Depends-on): Depend on wchar.
59644         * lib/mbswidth.c: Assume <wchar.h>.
59645         * m4/mbswidth.m4: Likewise.
59646         * modules/quotearg (Depends-on): Depend on wchar.
59647         * lib/quotearg.c: Assume <wchar.h>.
59648         * m4/quotearg.m4: Likewise.
59649         * modules/regex (Depends-on): Depend on wchar.
59650         * lib/regex_internal.h: Assume <wchar.h>.
59651         * m4/regex.m4: Likewise.
59652         * modules/stdint (Depends-on): Depend on wchar.
59653         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
59654         * m4/stdint.m4: Likewise.
59655         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
59656         * modules/strftime (Depends-on): Depend on wchar.
59657         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
59658         * modules/strtol (Depends-on): Depend on wchar.
59659         * lib/strtol.c: Assume <wchar.h>.
59660         * modules/wcwidth (Depends-on): Depend on wchar.
59661         * lib/wcwidth.h: Assume <wchar.h>.
59662         * m4/wcwidth.m4: Likewise.
59663
59664 2007-01-16  Bruno Haible  <bruno@clisp.org>
59665
59666         * modules/csharpexec-script: New, created from...
59667         * modules/csharpexec: ... this.
59668
59669 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
59670
59671         * modules/javaexec-script: New, created from...
59672         * modules/javaexec: ... this.
59673
59674 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59675
59676         * modules/poll (Dependencies): Add sys_select.
59677
59678 2007-01-15  Jim Meyering  <jim@meyering.net>
59679
59680         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
59681         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
59682         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
59683         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
59684
59685 2007-01-15  Bruno Haible  <bruno@clisp.org>
59686
59687         * modules/striconveh: New file.
59688         * lib/striconveh.h: New file.
59689         * lib/striconveh.c: New file.
59690         * MODULES.html.sh (Internationalization functions): Add striconveh.
59691
59692         * modules/striconveh-tests: New file.
59693         * tests/test-striconveh.c: New file.
59694
59695 2007-01-15  Bruno Haible  <bruno@clisp.org>
59696
59697         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
59698         not from GNU libiconv or GNU libc.
59699
59700 2007-01-15  Bruno Haible  <bruno@clisp.org>
59701
59702         * doc/gnulib-intro.texi (Copyright): Explain the different license
59703         terms for module descriptions, autoconf macros, tests, documentation.
59704
59705 2007-01-14  Bruno Haible  <bruno@clisp.org>
59706
59707         * modules/striconv-tests: New file.
59708         * tests/test-striconv.c: New file.
59709
59710 2007-01-14  Bruno Haible  <bruno@clisp.org>
59711
59712         * modules/iconv-tests: New file.
59713         * tests/test-iconv.c: New file.
59714
59715 2007-01-14  Bruno Haible  <bruno@clisp.org>
59716
59717         * gnulib-tool (func_get_license): For test modules, use the license of
59718         the main module.
59719
59720 2007-01-14  Bruno Haible  <bruno@clisp.org>
59721
59722         * modules/iconv (Include): Clarify that <iconv.h> can only be included
59723         if iconv is found to exist.
59724
59725 2007-01-14  Bruno Haible  <bruno@clisp.org>
59726
59727         * modules/c-ctype-tests: New file.
59728         * tests/test-c-ctype.c: New file.
59729
59730 2007-01-14  Bruno Haible  <bruno@clisp.org>
59731
59732         * modules/binary-io-tests: New file.
59733         * tests/test-binary-io.sh: New file.
59734         * tests/test-binary-io.c: New file.
59735
59736 2007-01-14  Bruno Haible  <bruno@clisp.org>
59737
59738         * modules/array-oset-tests: New file.
59739         * tests/test-array_oset.c: New file.
59740
59741 2007-01-14  Bruno Haible  <bruno@clisp.org>
59742
59743         * modules/array-list-tests: New file.
59744         * tests/test-array_list.c: New file.
59745
59746 2007-01-14  Bruno Haible  <bruno@clisp.org>
59747
59748         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
59749         and make.
59750         Reported by Simon Josefsson in
59751         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
59752
59753 2007-01-14  Bruno Haible  <bruno@clisp.org>
59754
59755         * modules/allocsa-tests: New file.
59756         * tests/test-allocsa.c: New file.
59757
59758 2007-01-14  Bruno Haible  <bruno@clisp.org>
59759
59760         * modules/fchdir (Depends-on): Add absolute-header.
59761         * modules/unistd (Depends-on): Likewise.
59762
59763 2006-12-30  Bruno Haible  <bruno@clisp.org>
59764
59765         * modules/fchdir: New file.
59766         * modules/unistd (Files): Add lib/unistd_.h.
59767         (Makefile.am): Generate unistd.h from unistd_.h.
59768         * lib/fchdir.c: New file.
59769         * lib/dirent_.h: New file.
59770         * lib/unistd_.h: New file.
59771         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
59772         * m4/fchdir.m4: New file.
59773         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
59774         (gl_HEADER_UNISTD): Invoke it.
59775         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
59776         function.
59777         * lib/backupfile.c (opendir, closedir): Undefine.
59778         * lib/chown.c (open, close): Undefine.
59779         * lib/clean-temp.c (open, close): Undefine.
59780         * lib/copy-file.c (open, close): Undefine.
59781         * lib/execute.c (open, close): Undefine.
59782         * lib/fsusage.c (open, close): Undefine.
59783         * lib/gc-gnulib.c (open, close): Undefine.
59784         * lib/getcwd.c (opendir, closedir): Undefine.
59785         * lib/glob.c (opendir, closedir): Undefine.
59786         * lib/javacomp.c (open, close): Undefine.
59787         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
59788         * lib/openat-proc.c (open, close): Undefine.
59789         * lib/pagealign_alloc.c (open, close): Undefine.
59790         * lib/pipe.c (open, close): Undefine.
59791         * lib/progreloc.c (open, close): Undefine.
59792         * lib/savedir.c (opendir, closedir): Undefine.
59793         * lib/utime.c (open, close): Undefine.
59794         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
59795
59796 2007-01-10  Bruno Haible  <bruno@clisp.org>
59797
59798         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
59799
59800 2007-01-12  Eric Blake  <ebb9@byu.net>
59801
59802         Provide a robust <wchar.h>.  Further simplifications are now
59803         possible in other modules, but not included here.
59804         * modules/wchar: New module.
59805         * m4/wchar.m4: New file.
59806         * lib/wchar_.h: Likewise.
59807         * modules/mbchar (Depends-on): Depend on wchar, as the first use
59808         of the new module.
59809         * MODULES.html.sh (Extended multibyte and wide character utilities):
59810         New section.
59811
59812 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
59813
59814         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
59815         to a reasonable default for memory allocation.
59816         (xreadlink): Don't allocate a huge buffer, to work around a buggy
59817         file system that reports garbage st_size values for symlinks.
59818         Problem reported by Liyang Hu.
59819
59820 2007-01-11  Simon Josefsson  <simon@josefsson.org>
59821
59822         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
59823         Emacs .#* auto-save files).
59824
59825 2007-01-11  Bruno Haible  <bruno@clisp.org>
59826
59827         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
59828         directory.
59829
59830 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
59831
59832         Use @...@ consistently in lib/wctype_.h.
59833         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
59834         on it being set to 1 or 0.
59835         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
59836         go back to AC_SUBSTing it.
59837         * modules/wctype (Makefile.am): Undo previous change.
59838
59839 2007-01-10  Eric Blake  <ebb9@byu.net>
59840
59841         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
59842         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
59843         * modules/wctype (Makefile.am): Likewise.
59844         Reported by Chris McGuire.
59845
59846 2007-01-10  Jim Meyering  <jim@meyering.net>
59847
59848         fts.c: a small readability/maintainability improvement
59849         * lib/fts.c (fts_read): Make this code slightly more readable and
59850         maintainable by hoisting the "sp->fts_cur = p" assignments to
59851         immediately follow the statements that set P.  Derived from
59852         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
59853
59854 2007-01-10  Eric Blake  <ebb9@byu.net>
59855
59856         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
59857         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
59858         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59859         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
59860         Reported by Chris McGuire.
59861
59862 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59863
59864         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
59865         in sed script.
59866
59867 2007-01-09  Bruno Haible  <bruno@clisp.org>
59868
59869         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
59870         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
59871         variables.
59872         (func_module): Use them.
59873
59874 2007-01-09  Bruno Haible  <bruno@clisp.org>
59875
59876         * modules/unistr/base: New file.
59877         * lib/unistr.h: New file.
59878
59879         * modules/unistr/u8-to-u16: New file.
59880         * lib/unistr/u8-to-u16.c: New file.
59881
59882         * modules/unistr/u8-to-u32: New file.
59883         * lib/unistr/u8-to-u32.c: New file.
59884
59885         * modules/unistr/u16-to-u8: New file.
59886         * lib/unistr/u16-to-u8.c: New file.
59887
59888         * modules/unistr/u16-to-u32: New file.
59889         * lib/unistr/u16-to-u32.c: New file.
59890
59891         * modules/unistr/u32-to-u8: New file.
59892         * lib/unistr/u32-to-u8.c: New file.
59893
59894         * modules/unistr/u32-to-u16: New file.
59895         * lib/unistr/u32-to-u16.c: New file.
59896
59897         * modules/unistr/u8-check: New file.
59898         * modules/unistr/u16-check: New file.
59899         * modules/unistr/u32-check: New file.
59900         * lib/unistr/u8-check.c: New file.
59901         * lib/unistr/u16-check.c: New file.
59902         * lib/unistr/u32-check.c: New file.
59903
59904         * modules/unistr/u8-chr: New file.
59905         * modules/unistr/u16-chr: New file.
59906         * modules/unistr/u32-chr: New file.
59907         * lib/unistr/u8-chr.c: New file.
59908         * lib/unistr/u16-chr.c: New file.
59909         * lib/unistr/u32-chr.c: New file.
59910
59911         * modules/unistr/u8-cmp: New file.
59912         * modules/unistr/u16-cmp: New file.
59913         * modules/unistr/u32-cmp: New file.
59914         * lib/unistr/u8-cmp.c: New file.
59915         * lib/unistr/u16-cmp.c: New file.
59916         * lib/unistr/u32-cmp.c: New file.
59917
59918         * modules/unistr/u8-cpy: New file.
59919         * modules/unistr/u16-cpy: New file.
59920         * modules/unistr/u32-cpy: New file.
59921         * lib/unistr/u8-cpy.c: New file.
59922         * lib/unistr/u16-cpy.c: New file.
59923         * lib/unistr/u32-cpy.c: New file.
59924         * lib/unistr/u-cpy.h: New file.
59925
59926         * modules/unistr/u8-cpy-alloc: New file.
59927         * modules/unistr/u16-cpy-alloc: New file.
59928         * modules/unistr/u32-cpy-alloc: New file.
59929         * lib/unistr/u8-cpy-alloc.c: New file.
59930         * lib/unistr/u16-cpy-alloc.c: New file.
59931         * lib/unistr/u32-cpy-alloc.c: New file.
59932         * lib/unistr/u-cpy-alloc.h: New file.
59933
59934         * modules/unistr/u8-endswith: New file.
59935         * modules/unistr/u16-endswith: New file.
59936         * modules/unistr/u32-endswith: New file.
59937         * lib/unistr/u8-endswith.c: New file.
59938         * lib/unistr/u16-endswith.c: New file.
59939         * lib/unistr/u32-endswith.c: New file.
59940         * lib/unistr/u-endswith.h: New file.
59941
59942         * modules/unistr/u8-mblen: New file.
59943         * modules/unistr/u16-mblen: New file.
59944         * modules/unistr/u32-mblen: New file.
59945         * lib/unistr/u8-mblen.c: New file.
59946         * lib/unistr/u16-mblen.c: New file.
59947         * lib/unistr/u32-mblen.c: New file.
59948
59949         * modules/unistr/u8-mbtouc: New file.
59950         * modules/unistr/u16-mbtouc: New file.
59951         * modules/unistr/u32-mbtouc: New file.
59952         * lib/unistr/u8-mbtouc.c: New file.
59953         * lib/unistr/u16-mbtouc.c: New file.
59954         * lib/unistr/u32-mbtouc.c: New file.
59955
59956         * modules/unistr/u8-mbtouc-safe: New file.
59957         * modules/unistr/u16-mbtouc-safe: New file.
59958         * modules/unistr/u32-mbtouc-safe: New file.
59959         * lib/unistr/u8-mbtouc-safe.c: New file.
59960         * lib/unistr/u16-mbtouc-safe.c: New file.
59961         * lib/unistr/u32-mbtouc-safe.c: New file.
59962
59963         * modules/unistr/u8-move: New file.
59964         * modules/unistr/u16-move: New file.
59965         * modules/unistr/u32-move: New file.
59966         * lib/unistr/u8-move.c: New file.
59967         * lib/unistr/u16-move.c: New file.
59968         * lib/unistr/u32-move.c: New file.
59969         * lib/unistr/u-move.h: New file.
59970
59971         * modules/unistr/u8-next: New file.
59972         * modules/unistr/u16-next: New file.
59973         * modules/unistr/u32-next: New file.
59974         * lib/unistr/u8-next.c: New file.
59975         * lib/unistr/u16-next.c: New file.
59976         * lib/unistr/u32-next.c: New file.
59977
59978         * modules/unistr/u8-prev: New file.
59979         * modules/unistr/u16-prev: New file.
59980         * modules/unistr/u32-prev: New file.
59981         * lib/unistr/u8-prev.c: New file.
59982         * lib/unistr/u16-prev.c: New file.
59983         * lib/unistr/u32-prev.c: New file.
59984
59985         * modules/unistr/u8-set: New file.
59986         * modules/unistr/u16-set: New file.
59987         * modules/unistr/u32-set: New file.
59988         * lib/unistr/u8-set.c: New file.
59989         * lib/unistr/u16-set.c: New file.
59990         * lib/unistr/u32-set.c: New file.
59991         * lib/unistr/u-set.h: New file.
59992
59993         * modules/unistr/u8-startswith: New file.
59994         * modules/unistr/u16-startswith: New file.
59995         * modules/unistr/u32-startswith: New file.
59996         * lib/unistr/u8-startswith.c: New file.
59997         * lib/unistr/u16-startswith.c: New file.
59998         * lib/unistr/u32-startswith.c: New file.
59999         * lib/unistr/u-startswith.h: New file.
60000
60001         * modules/unistr/u8-stpcpy: New file.
60002         * modules/unistr/u16-stpcpy: New file.
60003         * modules/unistr/u32-stpcpy: New file.
60004         * lib/unistr/u8-stpcpy.c: New file.
60005         * lib/unistr/u16-stpcpy.c: New file.
60006         * lib/unistr/u32-stpcpy.c: New file.
60007         * lib/unistr/u-stpcpy.h: New file.
60008
60009         * modules/unistr/u8-stpncpy: New file.
60010         * modules/unistr/u16-stpncpy: New file.
60011         * modules/unistr/u32-stpncpy: New file.
60012         * lib/unistr/u8-stpncpy.c: New file.
60013         * lib/unistr/u16-stpncpy.c: New file.
60014         * lib/unistr/u32-stpncpy.c: New file.
60015         * lib/unistr/u-stpncpy.h: New file.
60016
60017         * modules/unistr/u8-strcat: New file.
60018         * modules/unistr/u16-strcat: New file.
60019         * modules/unistr/u32-strcat: New file.
60020         * lib/unistr/u8-strcat.c: New file.
60021         * lib/unistr/u16-strcat.c: New file.
60022         * lib/unistr/u32-strcat.c: New file.
60023         * lib/unistr/u-strcat.h: New file.
60024
60025         * modules/unistr/u8-strchr: New file.
60026         * modules/unistr/u16-strchr: New file.
60027         * modules/unistr/u32-strchr: New file.
60028         * lib/unistr/u8-strchr.c: New file.
60029         * lib/unistr/u16-strchr.c: New file.
60030         * lib/unistr/u32-strchr.c: New file.
60031
60032         * modules/unistr/u8-strcmp: New file.
60033         * modules/unistr/u16-strcmp: New file.
60034         * modules/unistr/u32-strcmp: New file.
60035         * lib/unistr/u8-strcmp.c: New file.
60036         * lib/unistr/u16-strcmp.c: New file.
60037         * lib/unistr/u32-strcmp.c: New file.
60038
60039         * modules/unistr/u8-strcpy: New file.
60040         * modules/unistr/u16-strcpy: New file.
60041         * modules/unistr/u32-strcpy: New file.
60042         * lib/unistr/u8-strcpy.c: New file.
60043         * lib/unistr/u16-strcpy.c: New file.
60044         * lib/unistr/u32-strcpy.c: New file.
60045         * lib/unistr/u-strcpy.h: New file.
60046
60047         * modules/unistr/u8-strcspn: New file.
60048         * modules/unistr/u16-strcspn: New file.
60049         * modules/unistr/u32-strcspn: New file.
60050         * lib/unistr/u8-strcspn.c: New file.
60051         * lib/unistr/u16-strcspn.c: New file.
60052         * lib/unistr/u32-strcspn.c: New file.
60053         * lib/unistr/u-strcspn.h: New file.
60054
60055         * modules/unistr/u8-strdup: New file.
60056         * modules/unistr/u16-strdup: New file.
60057         * modules/unistr/u32-strdup: New file.
60058         * lib/unistr/u8-strdup.c: New file.
60059         * lib/unistr/u16-strdup.c: New file.
60060         * lib/unistr/u32-strdup.c: New file.
60061         * lib/unistr/u-strdup.h: New file.
60062
60063         * modules/unistr/u8-strlen: New file.
60064         * modules/unistr/u16-strlen: New file.
60065         * modules/unistr/u32-strlen: New file.
60066         * lib/unistr/u8-strlen.c: New file.
60067         * lib/unistr/u16-strlen.c: New file.
60068         * lib/unistr/u32-strlen.c: New file.
60069         * lib/unistr/u-strlen.h: New file.
60070
60071         * modules/unistr/u8-strmblen: New file.
60072         * modules/unistr/u16-strmblen: New file.
60073         * modules/unistr/u32-strmblen: New file.
60074         * lib/unistr/u8-strmblen.c: New file.
60075         * lib/unistr/u16-strmblen.c: New file.
60076         * lib/unistr/u32-strmblen.c: New file.
60077
60078         * modules/unistr/u8-strmbtouc: New file.
60079         * modules/unistr/u16-strmbtouc: New file.
60080         * modules/unistr/u32-strmbtouc: New file.
60081         * lib/unistr/u8-strmbtouc.c: New file.
60082         * lib/unistr/u16-strmbtouc.c: New file.
60083         * lib/unistr/u32-strmbtouc.c: New file.
60084
60085         * modules/unistr/u8-strncat: New file.
60086         * modules/unistr/u16-strncat: New file.
60087         * modules/unistr/u32-strncat: New file.
60088         * lib/unistr/u8-strncat.c: New file.
60089         * lib/unistr/u16-strncat.c: New file.
60090         * lib/unistr/u32-strncat.c: New file.
60091         * lib/unistr/u-strncat.h: New file.
60092
60093         * modules/unistr/u8-strncmp: New file.
60094         * modules/unistr/u16-strncmp: New file.
60095         * modules/unistr/u32-strncmp: New file.
60096         * lib/unistr/u8-strncmp.c: New file.
60097         * lib/unistr/u16-strncmp.c: New file.
60098         * lib/unistr/u32-strncmp.c: New file.
60099
60100         * modules/unistr/u8-strncpy: New file.
60101         * modules/unistr/u16-strncpy: New file.
60102         * modules/unistr/u32-strncpy: New file.
60103         * lib/unistr/u8-strncpy.c: New file.
60104         * lib/unistr/u16-strncpy.c: New file.
60105         * lib/unistr/u32-strncpy.c: New file.
60106         * lib/unistr/u-strncpy.h: New file.
60107
60108         * modules/unistr/u8-strnlen: New file.
60109         * modules/unistr/u16-strnlen: New file.
60110         * modules/unistr/u32-strnlen: New file.
60111         * lib/unistr/u8-strnlen.c: New file.
60112         * lib/unistr/u16-strnlen.c: New file.
60113         * lib/unistr/u32-strnlen.c: New file.
60114         * lib/unistr/u-strnlen.h: New file.
60115
60116         * modules/unistr/u8-strpbrk: New file.
60117         * modules/unistr/u16-strpbrk: New file.
60118         * modules/unistr/u32-strpbrk: New file.
60119         * lib/unistr/u8-strpbrk.c: New file.
60120         * lib/unistr/u16-strpbrk.c: New file.
60121         * lib/unistr/u32-strpbrk.c: New file.
60122         * lib/unistr/u-strpbrk.h: New file.
60123
60124         * modules/unistr/u8-strrchr: New file.
60125         * modules/unistr/u16-strrchr: New file.
60126         * modules/unistr/u32-strrchr: New file.
60127         * lib/unistr/u8-strrchr.c: New file.
60128         * lib/unistr/u16-strrchr.c: New file.
60129         * lib/unistr/u32-strrchr.c: New file.
60130
60131         * modules/unistr/u8-strspn: New file.
60132         * modules/unistr/u16-strspn: New file.
60133         * modules/unistr/u32-strspn: New file.
60134         * lib/unistr/u8-strspn.c: New file.
60135         * lib/unistr/u16-strspn.c: New file.
60136         * lib/unistr/u32-strspn.c: New file.
60137         * lib/unistr/u-strspn.h: New file.
60138
60139         * modules/unistr/u8-strstr: New file.
60140         * modules/unistr/u16-strstr: New file.
60141         * modules/unistr/u32-strstr: New file.
60142         * lib/unistr/u8-strstr.c: New file.
60143         * lib/unistr/u16-strstr.c: New file.
60144         * lib/unistr/u32-strstr.c: New file.
60145         * lib/unistr/u-strstr.h: New file.
60146
60147         * modules/unistr/u8-strtok: New file.
60148         * modules/unistr/u16-strtok: New file.
60149         * modules/unistr/u32-strtok: New file.
60150         * lib/unistr/u8-strtok.c: New file.
60151         * lib/unistr/u16-strtok.c: New file.
60152         * lib/unistr/u32-strtok.c: New file.
60153         * lib/unistr/u-strtok.h: New file.
60154
60155         * modules/unistr/u8-uctomb: New file.
60156         * modules/unistr/u16-uctomb: New file.
60157         * modules/unistr/u32-uctomb: New file.
60158         * lib/unistr/u8-uctomb.c: New file.
60159         * lib/unistr/u16-uctomb.c: New file.
60160         * lib/unistr/u32-uctomb.c: New file.
60161
60162         * MODULES.html.sh (Unicode string functions): Add the new modules.
60163
60164 2007-01-08  Bruno Haible  <bruno@clisp.org>
60165
60166         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
60167         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
60168         subdirectories.
60169
60170 2007-01-08  Karl Berry  <karl@gnu.org>
60171
60172         * doc/error.texi: mention that main() fns must set program_name
60173         when progname is used.
60174
60175 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
60176
60177         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
60178         WCTYPE_H is empty, for the benefit of builds from non-distclean
60179         directories.  Problem reported by Eric Blake in
60180         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
60181
60182 2007-01-08  Bruno Haible  <bruno@clisp.org>
60183
60184         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
60185         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
60186         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
60187         PROVIDE_CANONICALIZE_FILENAME_MODE.
60188         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
60189
60190 2007-01-08  Bruno Haible  <bruno@clisp.org>
60191
60192         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
60193         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
60194         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
60195         * lib/fts.c: Likewise.
60196         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
60197
60198 2006-12-25  Bruno Haible  <bruno@clisp.org>
60199
60200         * modules/utf8-ucs4-safe: New file.
60201         * lib/utf8-ucs4-safe.h: New file.
60202         * lib/unistr/utf8-ucs4-safe.c: New file.
60203
60204         * modules/utf16-ucs4-safe: New file.
60205         * lib/utf16-ucs4-safe.h: New file.
60206         * lib/unistr/utf16-ucs4-safe.c: New file.
60207
60208         * MODULES.html.sh (Unicode string functions): Add the new modules.
60209
60210 2007-01-08  Bruno Haible  <bruno@clisp.org>
60211
60212         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
60213         (Depends-on): Add unitypes.
60214         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
60215         (u8_mbtouc_aux): Move out to separate file.
60216         (u8_mbtouc): Use ucs4_t, uint8_t types.
60217         * lib/unistr/utf8-ucs4.c: New file.
60218
60219         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
60220         (Depends-on): Add unitypes.
60221         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
60222         (u16_mbtouc_aux): Move out to separate file.
60223         (u16_mbtouc): Use ucs4_t, uint16_t types.
60224         * lib/unistr/utf16-ucs4.c: New file.
60225
60226         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
60227         (Depends-on): Add unitypes.
60228         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
60229         (u8_uctomb_aux): Move out to separate file.
60230         (u8_uctomb): Use ucs4_t, uint8_t types.
60231         * lib/unistr/ucs4-utf8.c: New file.
60232
60233         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
60234         (Depends-on): Add unitypes.
60235         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
60236         (u16_uctomb_aux): Move out to separate file.
60237         (u16_uctomb): Use ucs4_t, uint16_t types.
60238         * lib/unistr/ucs4-utf16.c: New file.
60239
60240 2006-12-25  Bruno Haible  <bruno@clisp.org>
60241
60242         * modules/unitypes: New file.
60243         * lib/unitypes.h: New file.
60244         * MODULES.html.sh (func_all_modules): New section "Unicode string
60245         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
60246         this section. Add unitypes.
60247
60248 2007-01-08  Bruno Haible  <bruno@clisp.org>
60249
60250         Avoid variable names that conflict with those from libtool.
60251         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
60252         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
60253         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
60254         library_names_spec to acl_library_names_spec, hardcode_* to
60255         acl_hardcode_*.
60256         Reported by Ralf Wildenhues.
60257
60258 2007-01-08  Bruno Haible  <bruno@clisp.org>
60259
60260         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
60261         definition.
60262         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
60263         definition.
60264         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
60265         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
60266         definition.
60267         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
60268         definition.
60269         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
60270         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
60271         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
60272         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
60273         definition.
60274         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
60275         definition.
60276         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
60277         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
60278         GC_USE_<algorithm>.
60279         * lib/gc-libgcrypt.c: Likewise.
60280         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
60281         * modules/gc-arctwo (configure.ac): Likewise.
60282         * modules/gc-des (configure.ac): Likewise.
60283         * modules/gc-hmac-md5 (configure.ac): Likewise.
60284         * modules/gc-hmac-sha1 (configure.ac): Likewise.
60285         * modules/gc-md2 (configure.ac): Likewise.
60286         * modules/gc-md4 (configure.ac): Likewise.
60287         * modules/gc-md5 (configure.ac): Likewise.
60288         * modules/gc-random (configure.ac): Likewise.
60289         * modules/gc-rijndael (configure.ac): Likewise.
60290         * modules/gc-sha1 (configure.ac): Likewise.
60291
60292 2007-01-08  Bruno Haible  <bruno@clisp.org>
60293
60294         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
60295         macro definition.
60296         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
60297         definition.
60298         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
60299         definition.
60300         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
60301         * modules/fcntl-safer (configure.ac): Likewise.
60302         * modules/fopen-safer (configure.ac): Likewise.
60303         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
60304         GNULIB_FWRITEERROR macro definition.
60305
60306 2007-01-08  Bruno Haible  <bruno@clisp.org>
60307
60308         * m4/gnulib-common.m4: New file.
60309         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
60310         (func_get_filelist): Add m4/gnulib-common.m4.
60311
60312 2007-01-08  Bruno Haible  <bruno@clisp.org>
60313
60314         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
60315         command.
60316
60317 2007-01-08  Jim Meyering  <jim@meyering.net>
60318
60319         Use a more robust test for a "can't happen" condition.
60320         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
60321         narrowed the st_size value.  Presuming the "can't happen" condition
60322         is true, that narrowing could conceivably convert an invalid st_size
60323         value into a valid one.  Instead, use a change based on Matthew
60324         Woehlke's original patch.
60325
60326         Slight readability improvement: use an assert-like macro
60327         in place of literal "abort ()" uses.
60328         * lib/fts.c (fts_assert): Define.
60329         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
60330         Use this macro instead of a bare 'abort'.
60331
60332 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
60333
60334         Don't worry about using IRIX 5.3's wctype.h broken definitions;
60335         simply work around them.
60336         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
60337         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
60338         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
60339         declaring.
60340         Don't bother to define as macros, since the standard doesn't require it.
60341         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
60342         longer worry about IRIX 5.3.
60343         (HAVE_WCTYPE_CTMP_BUG): Remove.
60344
60345 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
60346
60347         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
60348         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
60349         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
60350         Problems reported by Georg Schwarz for IRIX 5.3.
60351
60352         * gnulib-tool (autoconf_minversion): Take the maximum version number
60353         found, not the minimum.  Problem reported by James Youngman.
60354
60355 2007-01-03  Karl Berry  <karl@gnu.org>
60356
60357         * doc/error.texi: new file, explaining interaction with progname.
60358         * doc/gnulib.texi: include it.  Update copyright.
60359
60360 2007-01-03  Simon Josefsson  <simon@josefsson.org>
60361
60362         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
60363         AC_CANONICAL_HOST, to improve autobuild outputs.
60364
60365 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
60366             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
60367
60368         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
60369         sockets, server sockets, and other file descriptors.  Count errors
60370         to compute the return value.  Reorder the code a bit to be easier
60371         to follow.  Don't set event bits that were not requested (except
60372         POLLERR and POLLHUP).
60373
60374 2007-01-01  Bruno Haible  <bruno@clisp.org>
60375
60376         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
60377
60378 2007-01-03  Jim Meyering  <jim@meyering.net>
60379
60380         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
60381
60382 2007-01-02  Bruno Haible  <bruno@clisp.org>
60383
60384         * modules/settime (Include): Require timespec.h.
60385         * modules/nanosleep (Include): Likewise.
60386
60387 2007-01-01  Bruno Haible  <bruno@clisp.org>
60388
60389         * gnulib-tool (func_emit_copyright_notice): Bump year.
60390         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
60391
60392 2007-01-01  Bruno Haible  <bruno@clisp.org>
60393
60394         Improve support for OpenBSD.
60395         * build-aux/config.rpath (libname_spec): Export.
60396         (library_names_spec): New variable. Export.
60397         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
60398         library_names_spec from the config.rpath output. Locate shared library
60399         through the name pattern in library_names_spec.
60400
60401 2007-01-01  Eric Blake  <ebb9@byu.net>
60402
60403         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
60404
60405 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
60406
60407         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
60408         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
60409         assume the C locale, and avoid an "eval" that could cause trouble.
60410         Problem with SORT reported by Bob Proulx.
60411
60412         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
60413         Define.  Trivial patch from Henning Nielsen Lund, originally
60414         sent to bug-grep@gnu.org today.
60415
60416 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
60417
60418         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
60419         struct stat.  Problem reported by Henning Nielsen Lund.
60420         * lib/acl.c: Include acl.h first, to check interface.  Don't
60421         bother to include sys/types.h and sys/stat.h again.
60422
60423 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
60424
60425         Import the following change from libc; problem reported by
60426         Sven Verdoolaege.
60427
60428         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
60429
60430         [BZ #1373]
60431         * lib/argp.h: Remove __NTH for __argp_usage inline function.
60432
60433 2006-12-28  Jim Meyering  <jim@meyering.net>
60434
60435         * build-aux/announce-gen: Do not assume that the package
60436         builds any of tar.gz, tar.bz2, and .xdelta files.
60437         Suggestion from Simon Josefsson.
60438
60439 2006-12-28  Simon Josefsson  <simon@josefsson.org>
60440
60441         * modules/announce-gen: New file.
60442
60443 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
60444
60445         * lib/mbchar.h: Just include <wctype.h>; the wctype module
60446         handles its gotchas now.
60447         * lib/mbswidth.c: Likewise.
60448         * lib/wcwidth.h: Likewise.
60449         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
60450         and iswcntrl; the wctype module does this stuff now.
60451         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
60452         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
60453         * modules/mbchar (Depends-on): Add wctype.
60454         * modules/mbswidth (Depends-on): Likewise.
60455         * modules/wcwidth (Depends-on): Likewise.
60456
60457 2006-12-27  Eric Blake  <ebb9@byu.net>
60458
60459         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
60460         module uses more than what <wctype.h> is required to provide.
60461
60462 2006-12-26  Eric Blake  <ebb9@byu.net>
60463
60464         * gnulib-tool (sed_extract_prog): Avoid space-tab.
60465
60466 2006-12-26  Eric Blake  <ebb9@byu.net>
60467
60468         * modules/absolute-header: New module.
60469         * modules/fcntl (Depends-on): Depend on it.
60470         * modules/inttypes (Depends-on): Likewise.
60471         * modules/stdint (Depends-on): Likewise.
60472         * modules/sys_stat (Depends-on): Likewise.
60473         * modules/wctype (Depends-on): Likewise.
60474         * MODULES.html.sh (Support for building libraries and
60475         executables): Document it.
60476
60477 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
60478
60479         * gnulib-tool (SED): Remove, undoing previous change.
60480         The problem was that it broke coreutils on Solaris, because
60481         "sed --posix" leaked into a makefile.
60482         (sed): New alias, if 'alias' and GNU sed.
60483
60484 2006-12-24  Jim Meyering  <jim@meyering.net>
60485
60486         Work around an fchownat bug in glibc-2.4:
60487         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
60488         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
60489         in spite of the -P option.
60490         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
60491         New macros.
60492         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
60493         * modules/openat (Files): Add lib/fchownat.c.
60494         * lib/openat.c (fchownat): Don't define here.  Move to...
60495         * lib/fchownat.c: ...this new file.
60496
60497 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
60498
60499         Fix bug reported by Bruno Haible in
60500         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
60501         where quotearg.c didn't compile on Mac OS X 10.2 because it
60502         lacks <wchar.h> and wint_t.
60503         * lib/wctype_.h (__wctype_wint_t): New type.
60504         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
60505         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
60506         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
60507         Arg is now of type __wctype_wint_t, not wint_t.
60508         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
60509         substitute HAVE_WINT_T.
60510         * modules/wctype (Files): Add m4/wint_t.m4.
60511         (wctype.h): Substitute HAVE_WINT_T.
60512
60513 2006-12-23  Bruno Haible  <bruno@clisp.org>
60514
60515         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
60516
60517 2006-12-23  Bruno Haible  <bruno@clisp.org>
60518
60519         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
60520         S_ISLNK.
60521         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
60522         mingw.
60523
60524 2006-12-22  Bruno Haible  <bruno@clisp.org>
60525
60526         * lib/copy-file.c: Include acl.h.
60527         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
60528         Close the file descriptors only after being done with copy_acl.
60529         * modules/copy-file (Depends-on): Add acl.
60530
60531 2006-12-22  Bruno Haible  <bruno@clisp.org>
60532
60533         * gnulib-tool (SED): New variable.
60534         Use $SED instead of sed everywhere.
60535
60536 2006-12-22  Bruno Haible  <bruno@clisp.org>
60537
60538         * modules/no-c++: New file.
60539         * m4/no-c++.m4: New file.
60540         * MODULES.html.sh (Support for building libraries and executables):
60541         Add no-c++.
60542
60543 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
60544
60545         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
60546         Include <limits.h>, and use its INT_MAX to rewrite the
60547         j loop so that it does not overflow 'int'.  Problem reported by
60548         Ralf Wildenhues in
60549         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
60550         Play it safe by shifting left by 1 rather than multiplying by 2,
60551         as GCC is less likely to optimize this away when the value
60552         is signed (when it assumes overflow leads to undefined behavior).
60553         Also, don't assume time_t uses two's complement.
60554
60555 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
60556
60557         * MODULES.html.sh: New module wctype.
60558         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
60559         * lib/fnmatch.c: Don't bother to include <wchar.h> before
60560         <wctype.h>, since the new wctype module should fix this.
60561         * lib/quotearg.c: Include <wctype.h> unconditionally, since
60562         the wctype module should arrange for it.
60563         * lib/regex_internal.h: Likewise.
60564         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
60565         since the wctype module should handle this now.
60566         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
60567         * modules/fnmatch (Depends-on): Add wctype.
60568         * modules/quotearg (Depends-on): Likewise.
60569         * modules/regex (Depends-on): Likewise.
60570
60571 2006-12-19  Bruno Haible  <bruno@clisp.org>
60572
60573         * lib/strdup.h [C++]: Wrap definitions in extern "C".
60574         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
60575
60576 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60577
60578         * modules/savewd (Depends-on): Fix dependency on fcntl.
60579
60580 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
60581
60582         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
60583         conforms to C99, rather than relying on the user's environment
60584         setting of STDINT_H.
60585
60586 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
60587         and Eric Blake  <ebb9@byu.net>
60588
60589         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
60590         This is more consistent with the other defines here.
60591         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
60592         Port to z/OS.  Problem reported by Paul Gilmartin.
60593         Change local vars to use gl_ prefix rather than ac_.
60594         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
60595         with other defines.
60596         * modules/double-slash-root: New module.
60597         * modules/dirname (Files): Remove m4/double-slash-root.m4.
60598         (Depends-on): Add double-slash-root.
60599         * MODULES.html.sh (File system functions): Mention new module.
60600
60601 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
60602
60603         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
60604         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
60605         This is for the benefit of gzip, which doesn't do i18n.
60606
60607 2006-12-12  Jim Meyering  <jim@meyering.net>
60608
60609         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
60610         Reported by Andreas Schwab <schwab@suse.de>.
60611
60612 2006-12-12  Bruno Haible  <bruno@clisp.org>
60613
60614         Merge these changes.
60615         2006-09-05  Bruno Haible  <bruno@clisp.org>
60616         * lib/iconvme.c (iconv_string): No need to save and restore errno when
60617         iconv_alloc succeeded.
60618         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
60619         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
60620         test for " && dest " at the end - dest is always != NULL there. Call
60621         iconv with 4xNULL arguments initially, to reset the state. Call iconv
60622         with 2xNULL arguments, also to flush the state storage. Handle the
60623         IRIX iconv behaviour. Realloc the final result, to throw away unused
60624         memory.
60625
60626 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
60627
60628         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
60629         and fchmodat unconditionally, since glibc 2.4 has them.
60630         Problem reported by Arkadiusz Miskiewicz.
60631
60632 2006-12-10  Bruno Haible  <bruno@clisp.org>
60633
60634         * gnulib-tool (func_import): Show the include files only for those
60635         modules that are copied and specified.
60636         Reported by Karl Berry.
60637
60638 2006-12-08  Jim Meyering  <jim@meyering.net>
60639
60640         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
60641         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
60642
60643         * build-aux/announce-gen: Add two new options, both optional:
60644         --bootstrap-tools=TOOL_LIST
60645               a comma-separated list of tools, e.g.,
60646               autoconf,automake,bison,gnulib
60647         --gnulib-snapshot-date=DATE
60648               if gnulib is in the bootstrap tool list,
60649               then report this as the snapshot date.
60650               If not specified, use the current date/time.
60651               If you specify a date here, be sure it's UTC.
60652
60653 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60654
60655         * tests/test-argp-2.sh: Fix test to match actual output.
60656         (func_compare): Fix sed script to be portable.
60657
60658 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
60659
60660         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
60661         workaround for this case.  It is not autoconfigured now; offhand
60662         it's hard to see how to autoconfigure it.
60663
60664 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
60665
60666         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
60667         a directory that is about to be chowned.  Such a directory's
60668         initial file permissions should permit the owner only and this
60669         should not be changed until after the chown, since the group and
60670         other bits would be incorrect if they granted permission before
60671         the chown.
60672
60673         Fix porting problem for iswctype reported by Georg Schwarz in:
60674         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
60675         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
60676         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
60677         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
60678         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
60679
60680 2006-12-03  Jim Meyering  <jim@meyering.net>
60681
60682         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
60683         p->fts_statp may not yet be defined.
60684         (fts_read): Instead, set it in the caller, once p->fts_statp is
60685         sure to be defined, and corresponds to a top-level directory.
60686         This bug made du -x fail.  Here's the coreutils test case:
60687         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
60688         Reported by Mike Frysinger.
60689
60690 2006-12-01  Jim Meyering  <jim@meyering.net>
60691
60692         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
60693         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
60694         Reported by Simon Josefsson.
60695
60696 2006-11-30  Jim Meyering  <jim@meyering.net>
60697
60698         * m4/warning.m4: Use the all-permissive copyright notice
60699         recommended by RMS (rather than LGPL).
60700         * m4/vararrays.m4: Likewise.
60701         * m4/flexmember.m4: Likewise.
60702
60703 2006-11-29  Bruno Haible  <bruno@clisp.org>
60704
60705         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
60706         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
60707         using +=.
60708         Reported by Simon Josefsson <simon@josefsson.org>.
60709
60710 2006-11-28  James Youngman <jay@gnu.org>
60711
60712         * README: Advise users that they might find the bug-gnulib@gnu.org
60713         and autotools-announce@gnu.org mailing lists useful.
60714
60715 2006-11-28  Bruno Haible  <bruno@clisp.org>
60716
60717         * m4/ptrdiff_max.m4: Remove file.
60718
60719 2006-11-21  Bruno Haible  <bruno@clisp.org>
60720
60721         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
60722         _AC_COMPUTE_INT.
60723         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60724         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
60725         _AC_COMPUTE_INT.
60726         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60727         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
60728         _AC_COMPUTE_INT.
60729         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60730
60731 2006-11-28  Jim Meyering  <jim@meyering.net>
60732
60733         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
60734         warning from "gcc -Wshadow" about shadowing the builtin.
60735
60736 2006-11-27  Bruno Haible  <bruno@clisp.org>
60737
60738         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
60739         _AC_COMPUTE_INT.
60740         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60741
60742 2006-11-27  Bruno Haible  <bruno@clisp.org>
60743             Paul Eggert  <eggert@cs.ucla.edu>
60744
60745         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
60746
60747 2006-11-26  Bruno Haible  <bruno@clisp.org>
60748
60749         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
60750         noinst_LTLIBRARIES.
60751
60752 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
60753             Bruno Haible  <bruno@clisp.org>
60754
60755         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
60756         if compiling with "gcc -ansi".
60757
60758 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
60759
60760         Fix some incompatibilities with gcc -ansi -pedantic.
60761         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
60762         if compiling pedantically with GCC, unless it's C99 or later.
60763         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
60764         it mishandles gcc -ansi -pedantic as well.
60765         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
60766         if gcc -pedantic.
60767         * lib/regexec.c (check_node_accept_bytes): Don't use auto
60768         initializers for struct if -pedantic, unless it's C99 or later.
60769
60770 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
60771
60772         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
60773         Don't close an fd more than once. Identical atimes indicate
60774         success, not failure.
60775
60776 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
60777
60778         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
60779
60780 2006-11-23  Jim Meyering  <jim@meyering.net>
60781
60782         * build-aux/announce-gen: New file.  From coreutils.
60783
60784 2006-11-22  Jim Meyering  <jim@meyering.net>
60785
60786         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
60787         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
60788         (fts_read): Use a temporary to narrow the overused st_size member
60789         before using it in a switch statement.  Reported by Matthew Woehlke.
60790
60791         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
60792         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
60793
60794 2006-11-20  Bruno Haible  <bruno@clisp.org>
60795
60796         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
60797         changequote instead of pairs of brackets.
60798         Reported by Andreas Schwab <schwab@suse.de>.
60799
60800 2006-11-21  Jim Meyering  <jim@meyering.net>
60801
60802         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
60803         so as to remain compatible with older compilers.
60804         Patch from Michael Deutschmann.
60805
60806 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
60807
60808         * MODULES.html.sh (File system functions): Add openat.
60809
60810         * lib/openat.h (rpl_fstatat): New macro, if
60811         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
60812         (fstatat): Define to rpl_fstatat under the same conditions,
60813         unless COMPILING_FSTATAT.
60814         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
60815         seems to have the bug.
60816         * lib/fstatat.c: New file.
60817         * modules/openat (Files): Add it.
60818
60819 2006-11-20  Bruno Haible  <bruno@clisp.org>
60820
60821         * Makefile: New file.
60822
60823 2006-11-20  Jim Meyering  <jim@meyering.net>
60824
60825         The beginnings of syntax-related checks for gnulib.
60826         * lib/Makefile: New file.
60827         * lib/t-idcache: New script.  Ensure that the two halves of
60828         idcache.c stay in sync.
60829
60830         * lib/idcache.c: Adjust comments in user- and group- portions to
60831         be more accurate, and to be consistent with one another.
60832
60833 2006-11-20  Jim Meyering  <jim@meyering.net>
60834
60835         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
60836         continue using the flexible array member (thus, this module performs
60837         half as many malloc calls), with the addition that...
60838         (getgroup, getuser): Consistently record a non-match via an empty
60839         "name" string, and map an empty string match to a NULL return value.
60840         * modules/idcache (Depends-on): Re-add flexmember.
60841
60842         * lib/idcache.c (getuser): Remove all uses of the register keyword.
60843         (getuidbyname, getgroup, getgidbyname): Likewise.
60844
60845         Use cleaner syntax: NULL rather than 0.
60846         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
60847
60848 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
60849
60850         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
60851         It mishandled the case where the group was missing.
60852         Problem reported by Greg Schafer.
60853         * modules/idcache: Likewise.
60854
60855 2006-11-18  Jim Meyering  <jim@meyering.net>
60856
60857         * check-module (%exempt_header): Add exception for some
60858         conditionally-included headers.
60859
60860         * modules/i-ring (Depends-on): Add verify.
60861         (License): Change to LGPL.
60862
60863 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60864
60865         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
60866         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
60867         and inttostr.h.  Use snprintf rather than uinttostr, so that
60868         LGPLed code doesn't depend on GPLed.
60869
60870 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60871
60872         * modules/inline (License): Change from GPL to LGPL.
60873
60874 2006-11-17  Jim Meyering  <jim@meyering.net>
60875
60876         * modules/d-type (License): Switch to LGPL.
60877
60878 2006-11-15  Bruno Haible  <bruno@clisp.org>
60879
60880         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
60881
60882 2006-11-15  Eric Blake  <ebb9@byu.net>
60883
60884         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
60885         the module dependency.
60886
60887 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60888             Bruno Haible  <bruno@clisp.org>
60889
60890         * gnulib-tool (func_create_testdir): Add license consistency check.
60891
60892 2006-11-15  Eric Blake  <ebb9@byu.net>
60893
60894         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
60895         random "(cached)" in configure output.
60896
60897 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60898
60899         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
60900         test for conforming inttypes.h is both announced and cached.
60901
60902         * MODULES.html.sh (seen_modules, seen_files): New variables.
60903         (func_module): Rewrite to use a few less gnulib-tool and sed
60904         invocations.  Avoid a couple of quadratic algorithms for ...
60905         (missed_modules, missed_files): ... these, with ...
60906         (func_append, func_tmpdir): ... these new functions, from
60907         gnulib-tool.  Analogously, install traps for cleanup.
60908
60909         * tests/test-gc.c (main): Remove unused variables.
60910         * tests/test-read-file.c: Include stdlib.h, for 'free'.
60911
60912 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
60913
60914         * modules/inttostr (License): Change to LGPL.
60915
60916 2006-11-14  Eric Blake  <ebb9@byu.net>
60917
60918         * modules/tempname (License): Change to LGPL.
60919
60920 2006-11-14  Eric Blake  <ebb9@byu.net>
60921
60922         * doc/functions.texi (Function Portability): *printf functions on
60923         Cygwin now understand all POSIX size specifiers.
60924
60925 2006-11-14  Bruno Haible  <bruno@clisp.org>
60926
60927         * modules/c-ctype (License): Change to LGPL.
60928
60929 2006-11-12  Bruno Haible  <bruno@clisp.org>
60930
60931         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
60932         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
60933         for GNOME libraries, for which the include files are installed in
60934         subdirectories of $prefix/include.
60935
60936 2006-11-12  Bruno Haible  <bruno@clisp.org>
60937
60938         * m4/lib-link.m4: Require at least autoconf-2.54.
60939         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
60940         name to underscores for the --with option.
60941
60942 2006-11-13  Bruno Haible  <bruno@clisp.org>
60943
60944         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
60945         the tests directory.
60946         Reported by Ralf Wildenhues.
60947
60948 2006-11-13  Bruno Haible  <bruno@clisp.org>
60949
60950         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
60951         (func_emit_initmacro_end): Undo the override here.
60952         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
60953         Works around the famous automake error in coreutils.
60954
60955 2006-11-13  Eric Blake  <ebb9@byu.net>
60956
60957         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
60958         element, not its node.
60959
60960 2006-11-12  Bruno Haible  <bruno@clisp.org>
60961
60962         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
60963         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
60964
60965 2006-11-12  Bruno Haible  <bruno@clisp.org>
60966
60967         * gnulib-tool: New option --local-symlink.
60968         (func_usage): Document it.
60969         (lsymbolic): New variable.
60970         (func_import, func_create_testdir): If --symlink was not specified,
60971         test whether --local-symlink was specified and the file comes from
60972         the local_gnulib_dir.
60973
60974 2006-11-12  Bruno Haible  <bruno@clisp.org>
60975
60976         * gnulib-tool (func_ln): New function.
60977         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
60978
60979 2006-11-12  Bruno Haible  <bruno@clisp.org>
60980
60981         Finish support for source files in subdirectories.
60982         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
60983         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
60984         AUTOMAKE_OPTIONS.
60985         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
60986
60987 2006-11-12  Bruno Haible  <bruno@clisp.org>
60988
60989         * gnulib-tool (func_get_automake_snippet): Synthesize also an
60990         EXTRA_lib_SOURCES augmentation.
60991         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
60992
60993 2006-11-12  Jim Meyering  <jim@meyering.net>
60994
60995         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
60996         file descriptors.  This also averts a failure on systems with
60997         native openat support when a traversed directory lacks "x" access.
60998         * lib/fts_.h: Include "i-ring.h"
60999         (struct FTS) [fts_fd_ring]: New member.
61000         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
61001         (FCHDIR): Add parentheses.
61002         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
61003         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
61004         When descending, rather than simply closing the previous
61005         fts_cwd_fd value, push that file descriptor onto the ring.
61006         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
61007         (fts_open): Initialize the new fd_ring member.
61008         (fts_close): Clear the ring.
61009         (fts_safe_changedir): When possible, use our new fd_ring to skip
61010         the diropen and fstat and dev/ino comparison that would normally
61011         accompany a virtual `chdir ("..")'.
61012
61013         * modules/fts (Depends-on): Add i-ring.
61014         * modules/i-ring: New module.
61015         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
61016         * m4/i-ring.m4: New file.
61017
61018 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61019
61020         * gnulib-tool (func_create_testdir): Fix replacement of
61021         `build-aux' in configure.ac.  Run autotools in gltests
61022         subdirectory.
61023         (func_create_testdir, func_create_megatestdir, test): There is
61024         no need for '--force' in most autotool invocations in a new
61025         tree.  Actually fail the whole test if any of the tools, or the
61026         configure or make stages fail.
61027
61028         Sync from Automake.
61029         * build-aux/gnupload: Revert last change.  Add pointer to upload
61030         instructions of the GNU Maintenance Instructions.
61031         Suggestion by Karl Berry.
61032
61033 2006-11-10  Jim Meyering  <jim@meyering.net>
61034
61035         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
61036
61037 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
61038
61039         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
61040         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
61041         (bind_textdomain_codeset) [! ENABLE_NLS]:
61042         Evaluate all the arguments.  That way, callers get compatible behavior
61043         if the arguments have side effects.  Also, it avoids some GCC
61044         diagnostics in some cases; Joel E. Denny reported problems when Bison
61045         was configured with --enable-gcc-warnigs.
61046
61047 2006-11-10  Jim Meyering  <jim@meyering.net>
61048
61049         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
61050         relevant options in CFLAGS (like -O, -fno-inline) are taken into
61051         account.
61052
61053 2006-11-10  Jim Meyering  <jim@meyering.net>
61054
61055         * modules/inline: New file/module.
61056         * modules/xalloc (Files): Remove m4/inline.m4.
61057         (Depends-on): Add inline, instead.
61058         * modules/oset: Likewise.
61059         * modules/list: Likewise.
61060
61061 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
61062
61063         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
61064         Problem reported by Matthew Woehlke.
61065
61066 2006-11-09  Bruno Haible  <bruno@clisp.org>
61067
61068         * lib/tempname.c (gen_tempname): Remove variant that invokes
61069         __gen_tempname.
61070         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
61071         __gen_tempname.
61072
61073 2006-11-08  Bruno Haible  <bruno@clisp.org>
61074
61075         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
61076         to 'yes' instead of 'cross-compiling'.
61077
61078 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
61079
61080         * lib/quotearg.h (quotearg_free): New decl.
61081         * lib/quotearg.c (quotearg_free): New function.
61082         (slot0, nslots, slotvec0, slotvec):
61083         Now file-scope so that quotearg_free can get at them.
61084
61085 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61086
61087         Sync from Automake.
61088         * build-aux/gnupload: Add missing 'gnu' to example URL.
61089         Report by Karl Berry.
61090
61091 2006-11-08  Bruno Haible  <bruno@clisp.org>
61092
61093         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
61094         Suggested by Paul Eggert.
61095
61096 2006-11-08  Jim Meyering  <jim@meyering.net>
61097
61098         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
61099         It's already included if !_LIBC.
61100         (fts_safe_changedir): Add a comment.
61101
61102 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
61103
61104         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
61105         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
61106         Matthew Woehlke.
61107
61108         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
61109         definitions up, to avoid colliding with change below.
61110         (static_inline) [HAVE_INLINE]: New macro.
61111         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
61112         Provide extern decls when !HAVE_INLINE.  Do not define unless
61113         static_inline is defined, either by us or by xmalloc.c.  Use
61114         static_inline rather than static inline.
61115         (XCALLOC): Optimize sizeof(T) = 1 case.
61116         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
61117
61118 2006-11-07  Bruno Haible  <bruno@clisp.org>
61119
61120         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
61121         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
61122         AC_C_INLINE.
61123         * modules/xalloc (Files): Add m4/inline.m4.
61124
61125 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61126
61127         * README: Fix typo.
61128         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
61129         (Miscellanous Notes): ...from this.
61130
61131 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
61132
61133         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
61134         Mention that offsetof should be used instead of sizeof.
61135         From Bruno Haible.
61136
61137 2006-11-07  Bruno Haible  <bruno@clisp.org>
61138
61139         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
61140
61141 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
61142
61143         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
61144         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
61145         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
61146         (gl_tree_add_before, gl_tree_add_after):
61147         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
61148         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
61149         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
61150         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
61151         (gl_linked_add_after, gl_linked_add_at): Likewise.
61152         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
61153         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
61154         (gl_tree_add_before, gl_tree_add_after): Likewise.
61155         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
61156         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
61157         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
61158
61159 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61160
61161         * lib/gl_oset.h: Use C comment style, not C++ comment style.
61162
61163 2006-11-06  Bruno Haible  <bruno@clisp.org>
61164
61165         * m4/inline.m4: New file.
61166         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
61167         * modules/list (Files): Add m4/inline.m4.
61168         * modules/oset (Files): Likewise.
61169
61170 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
61171
61172         * lib/idcache.c: Include <stddef.h>, for offsetof.
61173         (struct userid.name): Change from char * to a flexible array member.
61174         All uses changed.
61175         * modules/idcache (Depends-on): Add flexmember.
61176
61177         * MODULES.html.sh (Core language properties): New module flexmember.
61178         * modules/flexmember, m4/flexmember.m4: New files.
61179
61180         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
61181         inline functions that are identical with the old xnmalloc_inline,
61182         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
61183         that we can avoid some unnecessary integer multiplications and
61184         divisions in the common case where the element size is known at
61185         compile time.
61186         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
61187         needed.
61188         (xnboundedmalloc): Remove.
61189         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
61190         arguments, for consistency with rest of this header.
61191         (xcharalloc): Rewrite using XNMALLOC.
61192         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
61193         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
61194         versions have been moved to lib/xalloc.h and renamed to be the
61195         non-*_inline versions.
61196         (xmalloc, xrealloc): Implement without reference to the xnmalloc
61197         and xnrealloc functions, since those functions are now inline and
61198         now call us.
61199         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
61200         renaming described above.
61201         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
61202         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
61203         captures the dependency in AC_C_INLINE.
61204
61205         New module canonicalize-lgpl, proposed by Charles Wilson in
61206         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
61207         with a few small changes afterwards.
61208         * MODULES.html.sh (File system functions): New module
61209         canonicalize-lgpl.
61210         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
61211         and canonicalize_file_name.
61212         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
61213         * modules/canonicalize-lgpl: New files.
61214
61215 2006-11-05  Bruno Haible  <bruno@clisp.org>
61216
61217         * gnulib-tool (func_import, func_create_testdir): Create directories
61218         also for files in subdirectories of lib/.
61219
61220 2006-11-05  Bruno Haible  <bruno@clisp.org>
61221
61222         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
61223         ANSI C compliant.
61224
61225 2006-11-03  Bruno Haible  <bruno@clisp.org>
61226
61227         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
61228         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
61229         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
61230         (xnboundedmalloc): New inline function.
61231         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
61232         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
61233         xmalloc.
61234         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
61235         xmalloc.
61236         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
61237         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
61238         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
61239         xmalloc.
61240         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
61241         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
61242         xmalloc.
61243         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
61244         gl_tree_add_after): Use XMALLOC instead of xmalloc.
61245         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
61246         xmalloc.
61247         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
61248         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
61249         gl_tree_add_after): Use XMALLOC instead of xmalloc.
61250         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
61251         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
61252         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
61253         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
61254
61255 2006-11-03  Bruno Haible  <bruno@clisp.org>
61256
61257         * lib/c-ctype.h [C++]: Define functions without name mangling.
61258         * lib/fwriteerror.h [C++]: Likewise.
61259         * lib/gcd.h [C++]: Likewise.
61260         * lib/linebreak.h [C++]: Likewise.
61261
61262 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
61263
61264         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
61265         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
61266         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
61267         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
61268         Check for functions and headers just once.
61269         Check for declaration of canonicalize_file_name.
61270         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
61271
61272 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
61273
61274         * gnulib-tool (func_import): Fix typo in actioncmd.
61275
61276 2006-11-02  Bruno Haible  <bruno@clisp.org>
61277
61278         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
61279         newline sequence in the Makefile.am snippet as a space, like "make"
61280         does.
61281         Reported by Roger Persson <perrog@gmail.com>.
61282
61283 2006-11-01  Bruno Haible  <bruno@clisp.org>
61284
61285         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
61286         already declared in <string.h>.
61287         * lib/strcase.h (strncasecmp): Don't declare it if yes.
61288
61289 2006-11-01  Bruno Haible  <bruno@clisp.org>
61290
61291         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
61292         * lib/strcase.h: Include <string.h>.
61293         (strcasecmp): Define to rpl_strcasecmp here.
61294
61295 2006-11-01  Bruno Haible  <bruno@clisp.org>
61296
61297         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
61298
61299 2006-11-01  Eric Blake  <ebb9@byu.net>
61300
61301         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
61302
61303         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
61304
61305 2006-10-29  Bruno Haible  <bruno@clisp.org>
61306
61307         Make it compile in C++ mode.
61308         * lib/full-write.c (full_rw): Add a cast.
61309
61310 2006-11-01  Bruno Haible  <bruno@clisp.org>
61311
61312         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
61313         be POSIX compliant.
61314         Reported by Roger Persson <perrog@gmail.com>.
61315
61316 2006-11-01  Eric Blake  <ebb9@byu.net>
61317
61318         * lib/getopt_.h: Fix comments.
61319
61320 2006-10-31  Eric Blake  <ebb9@byu.net>
61321
61322         * modules/tmpdir (Depends-on): Add sys_stat.
61323         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
61324         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
61325         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
61326         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
61327         tempname.
61328
61329 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
61330
61331         Avoid some C++ diagnostics reported by Bruno Haible.
61332         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
61333         xmalloc.
61334         (quotearg_alloc): Use xcharalloc rather than xmalloc.
61335         (struct slotvec): Move to top level.
61336         (quotearg_n_options): Rewrite to avoid xmalloc.
61337         * lib/xalloc.h (xcharalloc): New function.
61338         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
61339         [defined __cplusplus]: Add function template that provides result
61340         type propagation.  This part of the change is from Bruno Haible.
61341
61342 2006-10-29  Bruno Haible  <bruno@clisp.org>
61343
61344         Make it compile in C++ mode.
61345         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
61346         * lib/strnlen1.c (strnlen1): Cast memchr result.
61347         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
61348         * lib/clean-temp.c (string_equals, string_hash): Add casts.
61349         (create_temp_dir): Rename local variable 'template'.
61350         (compile_csharp_using_sscli): Add cast.
61351         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
61352         * lib/findprog.c (find_in_path): Likewise.
61353         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
61354         * lib/wait-process.c (register_slave_subprocess): Likewise.
61355
61356 2006-10-22  Bruno Haible  <bruno@clisp.org>
61357
61358         * modules/tsearch: New file.
61359         * lib/tsearch.h: New file.
61360         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
61361         * m4/tsearch.m4: New file.
61362         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
61363
61364 2006-10-29  Eric Blake  <ebb9@byu.net>
61365
61366         * lib/arcfour.c: Assume config.h.
61367         * lib/arctwo.c: Likewise.
61368         * lib/base64.c: Likewise.
61369         * lib/check-version.c: Likewise.
61370         * lib/crc.c: Likewise.
61371         * lib/des.c: Likewise.
61372         * lib/gc-gnulib.c: Likewise.
61373         * lib/gc-libgcrypt.c: Likewise.
61374         * lib/gc-pbkdf2-sha1.c: Likewise.
61375         * lib/getaddrinfo.c: Likewise.
61376         * lib/getdelim.c: Likewise.
61377         * lib/getline.c: Likewise.
61378         * lib/hmac-md5.c: Likewise.
61379         * lib/hmac-sha1.c: Likewise.
61380         * lib/iconvme.c: Likewise.
61381         * lib/md2.c: Likewise.
61382         * lib/md4.c: Likewise.
61383         * lib/memxor.c: Likewise.
61384         * lib/read-file.c: Likewise.
61385         * lib/readline.c: Likewise.
61386         * lib/rijndael-alg-fst.c: Likewise.
61387         * lib/rijndael-api-fst.c: Likewise.
61388         * lib/xgetdomainname.c: Likewise.
61389
61390 2006-10-28  Eric Blake  <ebb9@byu.net>
61391
61392         * lib/xstrndup.c: Assume config.h.
61393
61394 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
61395
61396         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
61397         stat-macros.h is now for our own macros, whereas stat_h is for
61398         macros in the <sys/stat.h> name space.
61399         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
61400         (STAT_MACROS_H): Remove.
61401         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
61402         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
61403         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
61404         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
61405         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
61406         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
61407         Move these macros to ...
61408         * lib/stat_.h: here.  Don't include stat-macros.h.
61409         * lib/canonicalize.c: Don't include stat-macros.h.
61410         * lib/chown.c: Likewise.
61411         * lib/euidaccess.c: Likewise.
61412         * lib/file-type.c: Likewise.
61413         * lib/filemode.c: Likewise.
61414         * lib/glob.c: Likewise.
61415         * lib/isapipe.c: Likewise.
61416         * lib/lchown.c: Likewise.
61417         * lib/lstat.c: Likewise.
61418         * lib/mkdir-p.c: Likewise.
61419         * lib/rmdir.c: Likewise.
61420         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
61421         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
61422         unless mkdir isn't declared, to speed up 'configure'.
61423         Always create sys/stat.h, since it's unlikely any real sys/stat.h
61424         would define all the S_* symbols.
61425         * modules/canonicalize (Depends-on):
61426         Depend on sys_stat, not stat-macros.
61427         * modules/chown: Likewise.
61428         * modules/euidaccess: Likewise.
61429         * modules/filemode: Likewise.
61430         * modules/file-type: Likewise.
61431         * modules/glob: Likewise.
61432         * modules/isapipe: Likewise.
61433         * modules/lchown: Likewise.
61434         * modules/lstat: Likewise.
61435         * modules/mkancesdirs: Likewise.
61436         * modules/rmdir: Likewise.
61437         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
61438         * modules/modechange: Likewise.
61439         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
61440         (configure.ac): Remove gl_STAT_MACROS.
61441         * modules/sys_stat (Depends-on): Remove stat-macros.
61442
61443 2006-10-27  Bruno Haible  <bruno@clisp.org>
61444
61445         * m4/signed.m4: Remove file.
61446         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
61447         invocation.
61448         * modules/vasnprintf (Files): Remove m4/signed.m4.
61449
61450 2006-10-27  Bruno Haible  <bruno@clisp.org>
61451
61452         Update to GNU gettext 0.16.
61453         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
61454         m4/inttypes-h.m4, m4/signed.m4.
61455         * m4/gettext.m4: Update to GNU gettext 0.16.
61456         * m4/intl.m4: New file, from GNU gettext.
61457         * m4/intldir.m4: New file, from GNU gettext.
61458         * config/srclist.txt: Update
61459
61460 2006-10-27  Eric Blake  <ebb9@byu.net>
61461
61462         * MODULES.html.sh: Document tempname.
61463         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
61464         dependencies.
61465         (Files): Move lib/tempname.c...
61466         * modules/tempname: ...to this new module.
61467         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
61468         (gl_PREREQ_TEMPNAME): Move...
61469         * m4/tempname.m4: ...to this new file.
61470         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
61471         * modules/sys_stat (Depends-on): Add stat-macros.
61472         * lib/stat_.h (includes): Pick up stat macros.
61473         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
61474         if stat macros are broken.
61475         * lib/tempname.c (includes): No need to include "stat-macros.h".
61476         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
61477         (direxists, __path_search) [!_LIBC]: Don't compile these in
61478         gnulib; the tmpdir module covers that.
61479         * lib/tempname.h: New file.
61480
61481 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
61482
61483         * COPYING: Explain how gnulib-tool converts licence headers.
61484         Almost all wording by Eric Blake.
61485
61486 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
61487
61488         * lib/mbchar.h (is_basic_table): Make read-only.
61489         * lib/mbchar.c (is_basic_table): Likewise.
61490         Reported by John Darrington.
61491
61492 2006-10-25  Bruno Haible  <bruno@clisp.org>
61493
61494         * lib/progname.h (set_program_name): Undefine before defining.
61495
61496 2006-10-25  Bruno Haible  <bruno@clisp.org>
61497
61498         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
61499         false for non-gcc C++ compilers.
61500         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
61501
61502 2006-10-24  Bruno Haible  <bruno@clisp.org>
61503
61504         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
61505         iconv implementations like Irix iconv.
61506
61507 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61508
61509         * modules/vararrays: New file.
61510         * m4/vararrays.m4: New file, taken from diffutils.
61511         * MODULES.html.sh: New module vararrays.
61512
61513 2006-10-24  Karl Berry  <karl@gnu.org>
61514
61515         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
61516         Don't call GNU Unix.
61517
61518 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61519
61520         * users.txt: Add Libtool.
61521
61522         Sync from Libtool:
61523
61524         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61525
61526         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
61527         to gnulib's policy of including config.h unconditionally.
61528
61529 2006-10-24  Bruno Haible  <bruno@clisp.org>
61530
61531         * modules/wcwidth (Files): Add m4/wint_t.m4.
61532         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
61533         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
61534
61535 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61536
61537         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
61538         to pacify GCC with some -W flags enabled.  Problem reported by
61539         Bruno Haible.
61540
61541 2006-10-24  Jim Meyering  <jim@meyering.net>
61542
61543         * MODULES.html.sh: Remove uinttostr.  It's not a module.
61544         Reported by Karl Berry.
61545
61546 2006-10-23  Bruno Haible  <bruno@clisp.org>
61547
61548         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
61549
61550 2006-10-24  Bruno Haible  <bruno@clisp.org>
61551
61552         * lib/gl_list.h: Use C comment style, not C++ comment style.
61553
61554 2006-10-23  Eric Blake  <ebb9@byu.net>
61555
61556         * lib/getaddrinfo.c (includes): Add missing include.
61557
61558 2006-10-23  Bruno Haible  <bruno@clisp.org>
61559             Paul Eggert  <eggert@cs.ucla.edu>
61560
61561         Ability to rename obstack_free.
61562         * lib/obstack.h (__obstack_free): New macro. Declare instead of
61563         obstack_free.
61564         (obstack_free): Invoke the __obstack_free macro.
61565         * lib/obstack.c (obstack_free): Use __obstack_free macro.
61566
61567 2006-10-23  Bruno Haible  <bruno@clisp.org>
61568             Paul Eggert  <eggert@cs.ucla.edu>
61569
61570         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
61571         __argc, __argv from the declaration. (They are defined as macros on
61572         mingw.)
61573
61574 2006-10-22  Bruno Haible  <bruno@clisp.org>
61575
61576         * doc/gnulib-intro.texi: New file.
61577         * doc/gnulib.texi: Include it.
61578
61579 2006-10-21  Bruno Haible  <bruno@clisp.org>
61580
61581         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
61582         "Introduction", "Miscellanous Notes", "Particular Modules".
61583
61584 2006-10-21  Bruno Haible  <bruno@clisp.org>
61585
61586         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61587         Change mostlyclean-local rule to avoid sh syntax error from bash
61588         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
61589
61590 2006-10-23  Jim Meyering  <jim@meyering.net>
61591
61592         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
61593         in place of snprintf.
61594
61595         * modules/inttostr (Files): Add lib/uinttostr.c.
61596         * lib/uinttostr.c (inttostr): New file/function.
61597         * lib/inttostr.h (uinttostr): Declare.
61598         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
61599         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
61600         Add uinttostr.
61601         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
61602
61603 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
61604
61605         * lib/canonicalize.c (ELOOP): Define if not already defined.
61606         Problem reported by Bruno Haible in
61607         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
61608
61609 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
61610
61611         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
61612         Problem reported by Perry Smith and Ville Laurikari.
61613
61614         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
61615         uses.
61616
61617 2006-10-19  Bruno Haible  <bruno@clisp.org>
61618
61619         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
61620         for mingw.
61621
61622 2006-10-19  Bruno Haible  <bruno@clisp.org>
61623
61624         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
61625         Needed for mingw.
61626
61627 2006-10-19  Bruno Haible  <bruno@clisp.org>
61628
61629         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
61630
61631 2006-10-19  Bruno Haible  <bruno@clisp.org>
61632
61633         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
61634         it.
61635
61636 2006-10-19  Bruno Haible  <bruno@clisp.org>
61637
61638         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
61639         invocation.
61640
61641 2006-10-19  Bruno Haible  <bruno@clisp.org>
61642
61643         * gnulib-tool (func_create_testdir): Don't include ftruncate and
61644         mountlist by default.
61645
61646 2006-10-16  Bruno Haible  <bruno@clisp.org>
61647
61648         * lib/c-strstr.c: Include c-strstr.h.
61649
61650 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
61651
61652         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
61653         in a slash.
61654
61655 2006-10-18  Bruno Haible  <bruno@clisp.org>
61656
61657         * lib/lock.h [C++]: Wrap definitions in extern "C".
61658
61659 2006-10-18  Bruno Haible  <bruno@clisp.org>
61660
61661         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
61662         gl_LIBOBJS list.
61663
61664 2006-10-18  Bruno Haible  <bruno@clisp.org>
61665
61666         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
61667
61668 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
61669
61670         * lib/xstrtol.h: Include gettext.h.
61671         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
61672         Problem reported by Eric Blake.
61673         * modules/xstrtol (Depends-on): Add gettext-h.
61674
61675 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
61676
61677         * lib/strftime.c (advance): New macro.
61678         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
61679         incomplete type, so you can't add 0 to it.  Problem and patch
61680         reported by Eelco Dolstra for dietlibc.
61681
61682 2006-10-18  Jim Meyering  <jim@meyering.net>
61683
61684         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
61685         type for a local, and rename it: s/up/user_proc/.
61686
61687 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
61688
61689         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
61690         READ_UTMP_USER_PROCESS.
61691         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
61692
61693 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
61694
61695         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
61696         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
61697
61698 2006-10-17  Eric Blake  <ebb9@byu.net>
61699
61700         * lib/sigprocmask.c (sigprocmask): Fix typo.
61701
61702         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
61703
61704         * modules/clean-temp (Makefile.am): Don't add to make output...
61705         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
61706         config.h.
61707
61708 2006-10-17  Bruno Haible  <bruno@clisp.org>
61709
61710         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
61711         differently if DEFAULT_TEXT_DOMAIN is set.
61712
61713 2006-10-16  Bruno Haible  <bruno@clisp.org>
61714
61715         * lib/clean-temp.c: Include fwriteerror.h.
61716
61717 2006-10-16  Bruno Haible  <bruno@clisp.org>
61718
61719         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
61720
61721 2006-10-16  Bruno Haible  <bruno@clisp.org>
61722
61723         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
61724         * lib/sigprocmask.h: Include <sys/types.h>.
61725         (sigset_t): Use the system's definition if present.
61726
61727 2006-10-17  Eric Blake  <ebb9@byu.net>
61728
61729         * lib/xvasprintf.c (includes): Assume config.h.
61730         * lib/xasprintf.c (includes): Likewise.
61731
61732 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61733
61734         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
61735         at least as wide as intmax_t.
61736
61737 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
61738
61739         (Imported from Automake.)
61740         * build-aux/gnupload: Update to version 1.1 of directive file.
61741
61742 2006-10-16  Eric Blake  <ebb9@byu.net>
61743
61744         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
61745         match Automake 1.10a.
61746
61747 2006-10-14  Bruno Haible  <bruno@clisp.org>
61748
61749         * modules/sigprocmask: New file.
61750         * lib/sigprocmask.h: New file.
61751         * lib/sigprocmask.c: New file.
61752         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
61753         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
61754         request sigprocmask.o.
61755         (gl_PREREQ_SIGPROCMASK): New macro.
61756         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
61757         (Depends-on): Add sigprocmask.
61758         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
61759         gt_SIGNALBLOCKING. Test for 'raise' only once.
61760         * lib/fatal-signal.c: Include sigprocmask.h.
61761         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
61762         unblock_fatal_signals): Define always.
61763         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61764         sigprocmask.
61765
61766 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
61767
61768         Sync from Automake.
61769         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
61770         which incorrectly sets the mode of an existing destination
61771         directory.  In some cases the unpatched install-sh could do the
61772         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
61773         system.  We hope this is rare in practice, but it's clearly worth
61774         fixing.  Problem reported by Alex Unleashed in
61775         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
61776         Also, don't bother to check for -m bugs unless we're using -m;
61777         suggested by Stepan Kasal.
61778
61779 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61780
61781         Sync from Automake.
61782         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
61783         `-c' flag, so they appear at the same position as in %FASTDEP%
61784         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
61785         which ignores unknown options only after the first non-option.
61786         Bug report against M4 by Nelson H. F. Beebe.
61787
61788 2006-10-13  Jim Meyering  <jim@meyering.net>
61789
61790         Fix a bug in yesterday's change.
61791         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
61792         p->fts_statp->st_dev would be used uninitialized.
61793         Ensures that we always call fts_stat on the very first entry.
61794         Miklos Szeredi reported that find -xdev stopped working.
61795
61796 2006-10-12  Bruno Haible  <bruno@clisp.org>
61797
61798         * gnulib-tool (func_get_automake_snippet): Append an automatically
61799         computed EXTRA_DIST augmentation.
61800         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
61801         * modules/alloca-opt (Makefile.am): Likewise.
61802         * modules/allocsa (Makefile.am): Likewise.
61803         * modules/arcfour (Makefile.am): Likewise.
61804         * modules/arctwo (Makefile.am): Likewise.
61805         * modules/argmatch (Makefile.am): Likewise.
61806         * modules/argz (Makefile.am): Likewise.
61807         * modules/atexit (Makefile.am): Likewise.
61808         * modules/backupfile (Makefile.am): Likewise.
61809         * modules/byteswap (Makefile.am): Likewise.
61810         * modules/c-strtod (Makefile.am): Likewise.
61811         * modules/c-strtold (Makefile.am): Likewise.
61812         * modules/calloc (Makefile.am): Likewise.
61813         * modules/canon-host (Makefile.am): Likewise.
61814         * modules/canonicalize (Makefile.am): Likewise.
61815         * modules/chdir-long (Makefile.am): Likewise.
61816         * modules/chdir-safer (Makefile.am): Likewise.
61817         * modules/check-version (Makefile.am): Likewise.
61818         * modules/chown (Makefile.am): Likewise.
61819         * modules/cloexec (Makefile.am): Likewise.
61820         * modules/close-stream (Makefile.am): Likewise.
61821         * modules/closeout (Makefile.am): Likewise.
61822         * modules/crc (Makefile.am): Likewise.
61823         * modules/csharpexec (Makefile.am): Likewise.
61824         * modules/cycle-check (Makefile.am): Likewise.
61825         * modules/des (Makefile.am): Likewise.
61826         * modules/dev-ino (Makefile.am): Likewise.
61827         * modules/dirfd (Makefile.am): Likewise.
61828         * modules/dirname (Makefile.am): Likewise.
61829         * modules/dup2 (Makefile.am): Likewise.
61830         * modules/eealloc (Makefile.am): Likewise.
61831         * modules/error (Makefile.am): Likewise.
61832         * modules/euidaccess (Makefile.am): Likewise.
61833         * modules/exclude (Makefile.am): Likewise.
61834         * modules/exitfail (Makefile.am): Likewise.
61835         * modules/fcntl-safer (Makefile.am): Likewise.
61836         * modules/fcntl (Makefile.am): Likewise.
61837         * modules/file-type (Makefile.am): Likewise.
61838         * modules/fileblocks (Makefile.am): Likewise.
61839         * modules/filemode (Makefile.am): Likewise.
61840         * modules/filenamecat (Makefile.am): Likewise.
61841         * modules/fnmatch (Makefile.am): Likewise.
61842         * modules/fopen-safer (Makefile.am): Likewise.
61843         * modules/fpending (Makefile.am): Likewise.
61844         * modules/fprintftime (Makefile.am): Likewise.
61845         * modules/free (Makefile.am): Likewise.
61846         * modules/fsusage (Makefile.am): Likewise.
61847         * modules/ftruncate (Makefile.am): Likewise.
61848         * modules/fts (Makefile.am): Likewise.
61849         * modules/gc-arcfour (Makefile.am): Likewise.
61850         * modules/gc-des (Makefile.am): Likewise.
61851         * modules/gc-hmac-md5 (Makefile.am): Likewise.
61852         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
61853         * modules/gc-md4 (Makefile.am): Likewise.
61854         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
61855         * modules/gc-sha1 (Makefile.am): Likewise.
61856         * modules/gc (Makefile.am): Likewise.
61857         * modules/getaddrinfo (Makefile.am): Likewise.
61858         * modules/getcwd (Makefile.am): Likewise.
61859         * modules/getdelim (Makefile.am): Likewise.
61860         * modules/getdomainname (Makefile.am): Likewise.
61861         * modules/getgroups (Makefile.am): Likewise.
61862         * modules/gethostname (Makefile.am): Likewise.
61863         * modules/gethrxtime (Makefile.am): Likewise.
61864         * modules/getline (Makefile.am): Likewise.
61865         * modules/getloadavg (Makefile.am): Likewise.
61866         * modules/getlogin_r (Makefile.am): Likewise.
61867         * modules/getndelim2 (Makefile.am): Likewise.
61868         * modules/getopt (Makefile.am): Likewise.
61869         * modules/getpagesize (Makefile.am): Likewise.
61870         * modules/getpass-gnu (Makefile.am): Likewise.
61871         * modules/getpass (Makefile.am): Likewise.
61872         * modules/getsubopt (Makefile.am): Likewise.
61873         * modules/gettime (Makefile.am): Likewise.
61874         * modules/gettimeofday (Makefile.am): Likewise.
61875         * modules/getugroups (Makefile.am): Likewise.
61876         * modules/getusershell (Makefile.am): Likewise.
61877         * modules/glob (Makefile.am): Likewise.
61878         * modules/group-member (Makefile.am): Likewise.
61879         * modules/hard-locale (Makefile.am): Likewise.
61880         * modules/hash (Makefile.am): Likewise.
61881         * modules/hmac-md5 (Makefile.am): Likewise.
61882         * modules/hmac-sha1 (Makefile.am): Likewise.
61883         * modules/human (Makefile.am): Likewise.
61884         * modules/idcache (Makefile.am): Likewise.
61885         * modules/imaxabs (Makefile.am): Likewise.
61886         * modules/imaxdiv (Makefile.am): Likewise.
61887         * modules/inet_ntop (Makefile.am): Likewise.
61888         * modules/inet_pton (Makefile.am): Likewise.
61889         * modules/intprops (Makefile.am): Likewise.
61890         * modules/inttostr (Makefile.am): Likewise.
61891         * modules/inttypes (Makefile.am): Likewise.
61892         * modules/isapipe (Makefile.am): Likewise.
61893         * modules/javaversion (Makefile.am): Likewise.
61894         * modules/lchmod (Makefile.am): Likewise.
61895         * modules/lchown (Makefile.am): Likewise.
61896         * modules/localcharset (Makefile.am): Likewise.
61897         * modules/long-options (Makefile.am): Likewise.
61898         * modules/lstat (Makefile.am): Likewise.
61899         * modules/malloc (Makefile.am): Likewise.
61900         * modules/mathl (Makefile.am): Likewise.
61901         * modules/mbchar (Makefile.am): Likewise.
61902         * modules/md2 (Makefile.am): Likewise.
61903         * modules/md4 (Makefile.am): Likewise.
61904         * modules/md5 (Makefile.am): Likewise.
61905         * modules/memcasecmp (Makefile.am): Likewise.
61906         * modules/memchr (Makefile.am): Likewise.
61907         * modules/memcmp (Makefile.am): Likewise.
61908         * modules/memcoll (Makefile.am): Likewise.
61909         * modules/memcpy (Makefile.am): Likewise.
61910         * modules/memmem (Makefile.am): Likewise.
61911         * modules/memmove (Makefile.am): Likewise.
61912         * modules/mempcpy (Makefile.am): Likewise.
61913         * modules/memrchr (Makefile.am): Likewise.
61914         * modules/memset (Makefile.am): Likewise.
61915         * modules/memxor (Makefile.am): Likewise.
61916         * modules/mkancesdirs (Makefile.am): Likewise.
61917         * modules/mkdir-p (Makefile.am): Likewise.
61918         * modules/mkdir (Makefile.am): Likewise.
61919         * modules/mkdtemp (Makefile.am): Likewise.
61920         * modules/mkstemp (Makefile.am): Likewise.
61921         * modules/mktime (Makefile.am): Likewise.
61922         * modules/modechange (Makefile.am): Likewise.
61923         * modules/mountlist (Makefile.am): Likewise.
61924         * modules/nanosleep (Makefile.am): Likewise.
61925         * modules/obstack (Makefile.am): Likewise.
61926         * modules/openat (Makefile.am): Likewise.
61927         * modules/pagealign_alloc (Makefile.am): Likewise.
61928         * modules/pathmax (Makefile.am): Likewise.
61929         * modules/physmem (Makefile.am): Likewise.
61930         * modules/poll (Makefile.am): Likewise.
61931         * modules/posixtm (Makefile.am): Likewise.
61932         * modules/posixver (Makefile.am): Likewise.
61933         * modules/putenv (Makefile.am): Likewise.
61934         * modules/quote (Makefile.am): Likewise.
61935         * modules/quotearg (Makefile.am): Likewise.
61936         * modules/raise (Makefile.am): Likewise.
61937         * modules/read-file (Makefile.am): Likewise.
61938         * modules/readline (Makefile.am): Likewise.
61939         * modules/readlink (Makefile.am): Likewise.
61940         * modules/readtokens (Makefile.am): Likewise.
61941         * modules/readutmp (Makefile.am): Likewise.
61942         * modules/realloc (Makefile.am): Likewise.
61943         * modules/regex (Makefile.am): Likewise.
61944         * modules/rename-dest-slash (Makefile.am): Likewise.
61945         * modules/rename (Makefile.am): Likewise.
61946         * modules/rijndael (Makefile.am): Likewise.
61947         * modules/rmdir (Makefile.am): Likewise.
61948         * modules/rpmatch (Makefile.am): Likewise.
61949         * modules/safe-read (Makefile.am): Likewise.
61950         * modules/safe-write (Makefile.am): Likewise.
61951         * modules/same-inode (Makefile.am): Likewise.
61952         * modules/same (Makefile.am): Likewise.
61953         * modules/save-cwd (Makefile.am): Likewise.
61954         * modules/savedir (Makefile.am): Likewise.
61955         * modules/setenv (Makefile.am): Likewise.
61956         * modules/settime (Makefile.am): Likewise.
61957         * modules/sha1 (Makefile.am): Likewise.
61958         * modules/sig2str (Makefile.am): Likewise.
61959         * modules/snprintf (Makefile.am): Likewise.
61960         * modules/stat-macros (Makefile.am): Likewise.
61961         * modules/stat-time (Makefile.am): Likewise.
61962         * modules/stdbool (Makefile.am): Likewise.
61963         * modules/stdint (Makefile.am): Likewise.
61964         * modules/stdlib-safer (Makefile.am): Likewise.
61965         * modules/stpcpy (Makefile.am): Likewise.
61966         * modules/stpncpy (Makefile.am): Likewise.
61967         * modules/strcase (Makefile.am): Likewise.
61968         * modules/strcasestr (Makefile.am): Likewise.
61969         * modules/strchrnul (Makefile.am): Likewise.
61970         * modules/strcspn (Makefile.am): Likewise.
61971         * modules/strdup (Makefile.am): Likewise.
61972         * modules/strerror (Makefile.am): Likewise.
61973         * modules/strftime (Makefile.am): Likewise.
61974         * modules/strndup (Makefile.am): Likewise.
61975         * modules/strnlen (Makefile.am): Likewise.
61976         * modules/strpbrk (Makefile.am): Likewise.
61977         * modules/strsep (Makefile.am): Likewise.
61978         * modules/strstr (Makefile.am): Likewise.
61979         * modules/strtod (Makefile.am): Likewise.
61980         * modules/strtoimax (Makefile.am): Likewise.
61981         * modules/strtok_r (Makefile.am): Likewise.
61982         * modules/strtol (Makefile.am): Likewise.
61983         * modules/strtoll (Makefile.am): Likewise.
61984         * modules/strtoul (Makefile.am): Likewise.
61985         * modules/strtoull (Makefile.am): Likewise.
61986         * modules/strtoumax (Makefile.am): Likewise.
61987         * modules/strverscmp (Makefile.am): Likewise.
61988         * modules/sys_socket (Makefile.am): Likewise.
61989         * modules/sys_stat (Makefile.am): Likewise.
61990         * modules/sysexits (Makefile.am): Likewise.
61991         * modules/time_r (Makefile.am): Likewise.
61992         * modules/timegm (Makefile.am): Likewise.
61993         * modules/timespec (Makefile.am): Likewise.
61994         * modules/tmpfile-safer (Makefile.am): Likewise.
61995         * modules/trim (Makefile.am): Likewise.
61996         * modules/unistd-safer (Makefile.am): Likewise.
61997         * modules/unlinkdir (Makefile.am): Likewise.
61998         * modules/unlocked-io (Makefile.am): Likewise.
61999         * modules/userspec (Makefile.am): Likewise.
62000         * modules/utime (Makefile.am): Likewise.
62001         * modules/utimecmp (Makefile.am): Likewise.
62002         * modules/utimens (Makefile.am): Likewise.
62003         * modules/vasnprintf (Makefile.am): Likewise.
62004         * modules/vasprintf (Makefile.am): Likewise.
62005         * modules/vsnprintf (Makefile.am): Likewise.
62006         * modules/xalloc (Makefile.am): Likewise.
62007         * modules/xgetcwd (Makefile.am): Likewise.
62008         * modules/xnanosleep (Makefile.am): Likewise.
62009         * modules/xreadlink (Makefile.am): Likewise.
62010         * modules/xstrtod (Makefile.am): Likewise.
62011         * modules/xstrtol (Makefile.am): Likewise.
62012         * modules/xstrtold (Makefile.am): Likewise.
62013         * modules/yesno (Makefile.am): Likewise.
62014         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
62015
62016 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
62017
62018         * modules/error (Makefile.am): Distribute files through
62019         EXTRA_DIST, not lib_SOURCES.
62020
62021 2006-10-12  Eric Blake  <ebb9@byu.net>
62022
62023         * modules/error (Makefile.am): Distribute files in /lib.
62024         * modules/obstack (Makefile.am): Likewise.
62025
62026 2006-10-12  Bruno Haible  <bruno@clisp.org>
62027
62028         * modules/acl (Makefile.am): Distribute all files in lib/ through
62029         EXTRA_DIST.
62030         * modules/arcfour (Makefile.am): Likewise.
62031         * modules/arctwo (Makefile.am): Likewise.
62032         * modules/argmatch (Makefile.am): Likewise.
62033         * modules/argz (Makefile.am): Likewise.
62034         * modules/atexit (Makefile.am): Likewise.
62035         * modules/backupfile (Makefile.am): Likewise.
62036         * modules/c-strtod (Makefile.am): Likewise.
62037         * modules/c-strtold (Makefile.am): Likewise.
62038         * modules/calloc (Makefile.am): Likewise.
62039         * modules/canon-host (Makefile.am): Likewise.
62040         * modules/canonicalize (Makefile.am): Likewise.
62041         * modules/chdir-long (Makefile.am): Likewise.
62042         * modules/chdir-safer (Makefile.am): Likewise.
62043         * modules/check-version (Makefile.am): Likewise.
62044         * modules/chown (Makefile.am): Likewise.
62045         * modules/cloexec (Makefile.am): Likewise.
62046         * modules/close-stream (Makefile.am): Likewise.
62047         * modules/closeout (Makefile.am): Likewise.
62048         * modules/crc (Makefile.am): Likewise.
62049         * modules/cycle-check (Makefile.am): Likewise.
62050         * modules/des (Makefile.am): Likewise.
62051         * modules/dirfd (Makefile.am): Likewise.
62052         * modules/dirname (Makefile.am): Likewise.
62053         * modules/dup2 (Makefile.am): Likewise.
62054         * modules/euidaccess (Makefile.am): Likewise.
62055         * modules/exclude (Makefile.am): Likewise.
62056         * modules/exitfail (Makefile.am): Likewise.
62057         * modules/fcntl-safer (Makefile.am): Likewise.
62058         * modules/file-type (Makefile.am): Likewise.
62059         * modules/fileblocks (Makefile.am): Likewise.
62060         * modules/filemode (Makefile.am): Likewise.
62061         * modules/filenamecat (Makefile.am): Likewise.
62062         * modules/fnmatch (Makefile.am): Likewise.
62063         * modules/fopen-safer (Makefile.am): Likewise.
62064         * modules/fpending (Makefile.am): Likewise.
62065         * modules/fprintftime (Makefile.am): Likewise.
62066         * modules/free (Makefile.am): Likewise.
62067         * modules/fsusage (Makefile.am): Likewise.
62068         * modules/ftruncate (Makefile.am): Likewise.
62069         * modules/fts (Makefile.am): Likewise.
62070         * modules/gc (Makefile.am): Likewise.
62071         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
62072         * modules/getaddrinfo (Makefile.am): Likewise.
62073         * modules/getcwd (Makefile.am): Likewise.
62074         * modules/getdelim (Makefile.am): Likewise.
62075         * modules/getdomainname (Makefile.am): Likewise.
62076         * modules/getgroups (Makefile.am): Likewise.
62077         * modules/gethostname (Makefile.am): Likewise.
62078         * modules/gethrxtime (Makefile.am): Likewise.
62079         * modules/getline (Makefile.am): Likewise.
62080         * modules/getloadavg (Makefile.am): Likewise.
62081         * modules/getlogin_r (Makefile.am): Likewise.
62082         * modules/getopt (Makefile.am): Likewise.
62083         * modules/getpass (Makefile.am): Likewise.
62084         * modules/getpass-gnu (Makefile.am): Likewise.
62085         * modules/getsubopt (Makefile.am): Likewise.
62086         * modules/gettime (Makefile.am): Likewise.
62087         * modules/gettimeofday (Makefile.am): Likewise.
62088         * modules/getugroups (Makefile.am): Likewise.
62089         * modules/getusershell (Makefile.am): Likewise.
62090         * modules/glob (Makefile.am): Likewise.
62091         * modules/group-member (Makefile.am): Likewise.
62092         * modules/hard-locale (Makefile.am): Likewise.
62093         * modules/hash (Makefile.am): Likewise.
62094         * modules/hmac-md5 (Makefile.am): Likewise.
62095         * modules/hmac-sha1 (Makefile.am): Likewise.
62096         * modules/human (Makefile.am): Likewise.
62097         * modules/idcache (Makefile.am): Likewise.
62098         * modules/imaxabs (Makefile.am): Likewise.
62099         * modules/imaxdiv (Makefile.am): Likewise.
62100         * modules/inet_ntop (Makefile.am): Likewise.
62101         * modules/inet_pton (Makefile.am): Likewise.
62102         * modules/inttostr (Makefile.am): Likewise.
62103         * modules/isapipe (Makefile.am): Likewise.
62104         * modules/lchown (Makefile.am): Likewise.
62105         * modules/long-options (Makefile.am): Likewise.
62106         * modules/lstat (Makefile.am): Likewise.
62107         * modules/malloc (Makefile.am): Likewise.
62108         * modules/mathl (Makefile.am): Likewise.
62109         * modules/mbchar (Makefile.am): Likewise.
62110         * modules/md2 (Makefile.am): Likewise.
62111         * modules/md4 (Makefile.am): Likewise.
62112         * modules/md5 (Makefile.am): Likewise.
62113         * modules/memcasecmp (Makefile.am): Likewise.
62114         * modules/memchr (Makefile.am): Likewise.
62115         * modules/memcmp (Makefile.am): Likewise.
62116         * modules/memcoll (Makefile.am): Likewise.
62117         * modules/memcpy (Makefile.am): Likewise.
62118         * modules/memmem (Makefile.am): Likewise.
62119         * modules/memmove (Makefile.am): Likewise.
62120         * modules/mempcpy (Makefile.am): Likewise.
62121         * modules/memrchr (Makefile.am): Likewise.
62122         * modules/memset (Makefile.am): Likewise.
62123         * modules/memxor (Makefile.am): Likewise.
62124         * modules/mkancesdirs (Makefile.am): Likewise.
62125         * modules/mkdir (Makefile.am): Likewise.
62126         * modules/mkdir-p (Makefile.am): Likewise.
62127         * modules/mkdtemp (Makefile.am): Likewise.
62128         * modules/mkstemp (Makefile.am): Likewise.
62129         * modules/mktime (Makefile.am): Likewise.
62130         * modules/modechange (Makefile.am): Likewise.
62131         * modules/mountlist (Makefile.am): Likewise.
62132         * modules/nanosleep (Makefile.am): Likewise.
62133         * modules/openat (Makefile.am): Likewise.
62134         * modules/pagealign_alloc (Makefile.am): Likewise.
62135         * modules/physmem (Makefile.am): Likewise.
62136         * modules/poll (Makefile.am): Likewise.
62137         * modules/posixtm (Makefile.am): Likewise.
62138         * modules/posixver (Makefile.am): Likewise.
62139         * modules/putenv (Makefile.am): Likewise.
62140         * modules/quote (Makefile.am): Likewise.
62141         * modules/quotearg (Makefile.am): Likewise.
62142         * modules/raise (Makefile.am): Likewise.
62143         * modules/read-file (Makefile.am): Likewise.
62144         * modules/readline (Makefile.am): Likewise.
62145         * modules/readlink (Makefile.am): Likewise.
62146         * modules/readtokens (Makefile.am): Likewise.
62147         * modules/readutmp (Makefile.am): Likewise.
62148         * modules/realloc (Makefile.am): Likewise.
62149         * modules/regex (Makefile.am): Likewise.
62150         * modules/rename (Makefile.am): Likewise.
62151         * modules/rename-dest-slash (Makefile.am): Likewise.
62152         * modules/rijndael (Makefile.am): Likewise.
62153         * modules/rmdir (Makefile.am): Likewise.
62154         * modules/rpmatch (Makefile.am): Likewise.
62155         * modules/safe-read (Makefile.am): Likewise.
62156         * modules/safe-write (Makefile.am): Likewise.
62157         * modules/same (Makefile.am): Likewise.
62158         * modules/save-cwd (Makefile.am): Likewise.
62159         * modules/savedir (Makefile.am): Likewise.
62160         * modules/setenv (Makefile.am): Likewise.
62161         * modules/settime (Makefile.am): Likewise.
62162         * modules/sha1 (Makefile.am): Likewise.
62163         * modules/sig2str (Makefile.am): Likewise.
62164         * modules/snprintf (Makefile.am): Likewise.
62165         * modules/stdlib-safer (Makefile.am): Likewise.
62166         * modules/stpcpy (Makefile.am): Likewise.
62167         * modules/stpncpy (Makefile.am): Likewise.
62168         * modules/strcase (Makefile.am): Likewise.
62169         * modules/strcasestr (Makefile.am): Likewise.
62170         * modules/strchrnul (Makefile.am): Likewise.
62171         * modules/strcspn (Makefile.am): Likewise.
62172         * modules/strdup (Makefile.am): Likewise.
62173         * modules/strerror (Makefile.am): Likewise.
62174         * modules/strftime (Makefile.am): Likewise.
62175         * modules/strndup (Makefile.am): Likewise.
62176         * modules/strnlen (Makefile.am): Likewise.
62177         * modules/strpbrk (Makefile.am): Likewise.
62178         * modules/strsep (Makefile.am): Likewise.
62179         * modules/strstr (Makefile.am): Likewise.
62180         * modules/strtod (Makefile.am): Likewise.
62181         * modules/strtoimax (Makefile.am): Likewise.
62182         * modules/strtok_r (Makefile.am): Likewise.
62183         * modules/strtol (Makefile.am): Likewise.
62184         * modules/strtoll (Makefile.am): Likewise.
62185         * modules/strtoul (Makefile.am): Likewise.
62186         * modules/strtoull (Makefile.am): Likewise.
62187         * modules/strtoumax (Makefile.am): Likewise.
62188         * modules/strverscmp (Makefile.am): Likewise.
62189         * modules/time_r (Makefile.am): Likewise.
62190         * modules/timegm (Makefile.am): Likewise.
62191         * modules/tmpfile-safer (Makefile.am): Likewise.
62192         * modules/unistd-safer (Makefile.am): Likewise.
62193         * modules/unlinkdir (Makefile.am): Likewise.
62194         * modules/userspec (Makefile.am): Likewise.
62195         * modules/utime (Makefile.am): Likewise.
62196         * modules/utimecmp (Makefile.am): Likewise.
62197         * modules/utimens (Makefile.am): Likewise.
62198         * modules/vasnprintf (Makefile.am): Likewise.
62199         * modules/vasprintf (Makefile.am): Likewise.
62200         * modules/vsnprintf (Makefile.am): Likewise.
62201         * modules/xalloc (Makefile.am): Likewise.
62202         * modules/xgetcwd (Makefile.am): Likewise.
62203         * modules/xnanosleep (Makefile.am): Likewise.
62204         * modules/xreadlink (Makefile.am): Likewise.
62205         * modules/xstrtod (Makefile.am): Likewise.
62206         * modules/xstrtol (Makefile.am): Likewise.
62207         * modules/xstrtold (Makefile.am): Likewise.
62208         * modules/yesno (Makefile.am): Likewise.
62209
62210 2006-10-12  Jim Meyering  <jim@meyering.net>
62211
62212         * m4/getloadavg.m4: Revert the change below.
62213
62214         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
62215         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
62216         fail with a symlink, which is what coreutils' ./bootstrap now
62217         creates by default.
62218
62219 2006-10-12  Bruno Haible  <bruno@clisp.org>
62220
62221         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
62222         mingw.
62223         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
62224         MSVC and mingw explicitly.
62225
62226 2006-10-11  Simon Josefsson  <jas@extundo.com>
62227             Bruno Haible  <bruno@clisp.org>
62228
62229         Add support for multiple gnulib-tool invocations in the scope of a
62230         single configure.ac file.
62231         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
62232         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
62233         with the same contents as the _LIBADD variable.
62234         (func_emit_initmacro_start, func_emit_initmacro_end,
62235         func_emit_initmacro_done): New functions.
62236         (func_import, func_create_testdir): Invoke them. Allow the identifiers
62237         gl_LIBOBJS and gl_LTLIBOBJS.
62238
62239 2006-10-11  Bruno Haible  <bruno@clisp.org>
62240
62241         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
62242         (func_create_testdir): Don't create po/Makefile.am, don't invoke
62243         autoreconf. Instead, invoke autopoint explicitly but move back the
62244         *.m4 files from gnulib.
62245
62246 2006-10-11  Bruno Haible  <bruno@clisp.org>
62247
62248         * gnulib-tool (func_usage): Make module names after --create-testdir
62249         optional.
62250         (func_create_testdir): If no module was specified, use nearly all
62251         modules.
62252
62253 2006-10-12  Jim Meyering  <jim@meyering.net>
62254
62255         Big performance improvement for fts-based tools that use FTS_NOSTAT.
62256         Avoid spurious inode-mismatch problems on non-POSIX file systems.
62257         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
62258         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
62259         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
62260         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
62261         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
62262         (fts_set_stat_required): New function.
62263         (fts_open): Defer the calls to fts_stat, if possible or requested.
62264         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
62265         into fts_stat itself.
62266         (fts_read): Perform any required (deferred) fts_stat call.
62267         (fts_build): Likewise, for the directory we're about to open and read.
62268         In the readdir loop, carefully decide whether each entry will require
62269         an eventual call to fts_stat, using dirent.d_type info if available.
62270         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
62271         a command line argument into this function.  Update all callers.
62272         Map a return value of FTS_DOT to FTS_D for a command line argument.
62273         * modules/fts (Depends-on): Add d-type.  Alphabetize.
62274         Thanks to Miklos Szeredi for his tenacity and for the initial
62275         bug report about "find" failing on a FUSE-based file system.
62276
62277         * lib/fts.c (fts_open): Use consistent indentation.
62278
62279 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
62280
62281         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
62282         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
62283         reported by Jim Meyering.  All uses of cache variables renamed
62284         to match Autoconf's.
62285         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
62286         the other one.
62287
62288         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
62289         Fix misspelling in diagnostic.
62290
62291 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
62292
62293         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
62294         defined.  Problem reported by Matthew Woehlke.
62295
62296         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
62297         Add support for Tandem NonStop R series.
62298         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
62299         Use new macro.
62300
62301         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
62302         (has_trailing_slash): Omit size arg; all callers changed.
62303         Omit 'inline', since it doesn't help performance and we'd
62304         need to configure it.
62305         Don't count //, ///, etc. as having a trailing slash.
62306         As a side effect, this removes a C99ism reported by Matthew Woehlke.
62307         (rpl_rename_dest_slash): On failure, use rename's errno rather
62308         than (in some cases) an incorrect or junk errno.
62309         Simplify code by removing need to compute length; this does
62310         cause it to make two passes instead of one over the file name,
62311         but it's worth it.
62312
62313         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
62314         change, since Autoconf's version may no longer be appropriate now
62315         that we are using CVS Autoconf's version.  Add support for Tandem.
62316
62317 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
62318             Bruno Haible  <bruno@clisp.org>
62319
62320         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
62321         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
62322         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
62323         gl_AC_TYPE_LONG_LONG.
62324
62325         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
62326         instead of HAVE_LONG_LONG.
62327         * lib/printf-args.c (printf_fetchargs): Likewise.
62328         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
62329         * lib/vasnprintf.c (VASNPRINTF): Likewise.
62330         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
62331         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
62332         gl_AC_TYPE_LONG_LONG.
62333
62334 2006-10-11  Bruno Haible  <bruno@clisp.org>
62335
62336         * m4/longlong.m4: Add comments.
62337         * m4/ulonglong.m4: Likewise.
62338
62339 2006-10-10  Bruno Haible  <bruno@clisp.org>
62340
62341         Make it possible to #define stpcpy, strdup to aliases.
62342         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
62343         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
62344
62345 2006-10-10  Bruno Haible  <bruno@clisp.org>
62346
62347         Make it possible to #define gcd to an alias.
62348         * lib/gcd.c: Include config.h.
62349
62350 2006-10-10  Bruno Haible  <bruno@clisp.org>
62351
62352         Make it possible to #define c_isascii to an alias.
62353         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
62354         defined. Undefine the macros before defining them, to avoid gcc
62355         warnings.
62356         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
62357         define NO_C_CTYPE_MACROS early.
62358
62359 2006-10-10  Bruno Haible  <bruno@clisp.org>
62360
62361         Make it possible to #define set_program_name to an alias.
62362         * lib/progname.c: Don't undefine set_program_name; instead, undefine
62363         ENABLE_RELOCATABLE early.
62364
62365 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
62366
62367         Port to Tandem NSK OSS, which has 64-bit signed int but at most
62368         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
62369         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
62370         More generally, don't assume that 64-bit signed int is available
62371         if unsigned int is, and vice versa.
62372         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
62373         unsigned symbols, not on their signed counterparts.
62374         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
62375         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
62376         (UINT64_C, UINTMAX_C):
62377         Likewise.
62378         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
62379         unsigned counterparts.
62380         (Have_long_long, Unsigned): New macros.
62381         (Int): Renamed from INT.
62382         (strtoimax): Use the new macros.
62383         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
62384         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
62385         * modules/inttypes (inttypes.h): Substitute
62386         HAVE_UNSIGNED_LONG_LONG_INT.
62387         * modules/stdint (stdint.h): Likewise.
62388         (Files): Add m4/ulonglong.m4.
62389
62390 2006-10-10  Bruno Haible  <bruno@clisp.org>
62391
62392         Fix a gcc -Wshadow warning.
62393         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
62394         to 'bucket'.
62395         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
62396         gl_linked_indexof_from_to): Likewise.
62397         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
62398         Likewise.
62399         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
62400         Likewise.
62401         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
62402         Reported by Eric Blake.
62403
62404 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
62405
62406         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
62407         for NetBSD.  Problem reported by Bruno Haible.
62408
62409 2006-10-09  Jim Meyering  <jim@meyering.net>
62410
62411         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
62412         Patch from Bruno Haible.
62413
62414 2006-10-09  Jim Meyering  <jim@meyering.net>
62415
62416         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
62417         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
62418         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
62419
62420 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
62421
62422         Don't include <config.h> twice; this doesn't work in some cases,
62423         e.g., when config.h has "#define intmax_t long long int" and
62424         we include <config.h>, <inttypes.h>, <config.h> in that order.
62425         Problem reported by Matthew Woehlke in:
62426         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
62427         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
62428         * lib/fts-cycle.c: Don't include config.h.
62429         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
62430         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
62431         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
62432         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
62433         inttypes.h.
62434         * lib/xstrtoumax.c: Likewise.
62435         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
62436         __strtol and the like, so that this module is more like its siblings.
62437         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
62438         Remove; no longer needed now that we assume gnulib inttypes.h.
62439
62440 2006-10-08  Bruno Haible  <bruno@clisp.org>
62441
62442         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
62443         option.
62444
62445 2006-10-07  Jim Meyering  <jim@meyering.net>
62446
62447         * modules/inttypes (inttypes.h): Revert what seems to have been
62448         an inadvertent part of today's change: use "|", not "/" in the
62449         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
62450
62451 2006-10-07  Bruno Haible  <bruno@clisp.org>
62452
62453         * modules/sublist: New file.
62454
62455 2006-10-07  Bruno Haible  <bruno@clisp.org>
62456
62457         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
62458         * modules/argz (argz.h): Likewise.
62459         * modules/arpa_inet (arpa/inet.h): Likewise.
62460         * modules/byteswap (byteswap.h): Likewise.
62461         * modules/configmake (configmake.h): Likewise.
62462         * modules/fcntl (fcntl.h): Likewise.
62463         * modules/fnmatch (fnmatch.h): Likewise.
62464         * modules/getopt (getopt.h): Likewise.
62465         * modules/glob (glob.h): Likewise.
62466         * modules/inttypes (inttypes.h): Likewise.
62467         * modules/netinet_in (netinet/in.h): Likewise.
62468         * modules/poll (poll.h): Likewise.
62469         * modules/stdbool (stdbool.h): Likewise.
62470         * modules/stdint (stdint.h): Likewise.
62471         * modules/sys_select (sys/select.h): Likewise.
62472         * modules/sys_socket (sys/socket.h): Likewise.
62473         * modules/sys_stat (sys/stat.h): Likewise.
62474         * modules/sysexits (sysexits.h): Likewise.
62475         * modules/unistd (unistd.h): Likewise.
62476         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62477         Add a "DO NOT EDIT" comment to the generated file.
62478         (func_import): Likewise for gnulib-comp.m4.
62479
62480 2006-10-07  Bruno Haible  <bruno@clisp.org>
62481
62482         * lib/gl_sublist.h: New file.
62483         * lib/gl_sublist.c: New file.
62484
62485 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
62486
62487         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
62488         name (relative to the original working directory) and the file
62489         name component (relative to the temporary working directory).  All
62490         callers changed.
62491         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
62492         * lib/mkdir-p.c (make_dir_parents): Likewise.
62493         * lib/mkdir-p.h (make_dir_parents): Likewise.
62494
62495 2006-10-06  Eric Blake  <ebb9@byu.net>
62496
62497         Define several macros for use by the clean-temp module.
62498         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
62499         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
62500         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
62501
62502         * lib/clean-temp.h (close_stream_temp): New declaration.
62503         * lib/clean-temp.c (includes): Pull in headers according to what
62504         other modules are in use.
62505         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
62506
62507 2006-10-06  Bruno Haible  <bruno@clisp.org>
62508
62509         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
62510         instead of fopen, fwriteerror.
62511
62512 2006-10-06  Bruno Haible  <bruno@clisp.org>
62513
62514         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
62515         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
62516         int.
62517         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
62518         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
62519         Return an error indicator.
62520         Suggested by Eric Blake.
62521
62522 2006-10-06  Bruno Haible  <bruno@clisp.org>
62523
62524         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
62525         Reported by Eric Blake.
62526
62527 2006-10-06  Bruno Haible  <bruno@clisp.org>
62528
62529         * modules/closeout (Description): Mention stderr too.
62530
62531 2006-10-06  Bruno Haible  <bruno@clisp.org>
62532         and Paul Eggert  <eggert@cs.ucla.edu>
62533
62534         * lib/closeout.c (close_stdout): Also close stderr.
62535         * lib/closeout.h: Update comment.
62536
62537 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
62538
62539         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
62540         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
62541         * lib/dirchownmod.c: Include lchown.h.
62542         * lib/lchown.c: Don't include files that lchown.h now includes.
62543         Don't declare chown, since lchown.h now does that.
62544         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
62545         (lchown): Define to rpl_chown if lchown is declared but
62546         does not exist.  Declare using a prototype if lchown is not
62547         declared.  Add a copyright notice.
62548         * lib/mkstemp.h: Include <unistd.h>.
62549         * lib/openat.c: Include lchown.h.
62550
62551         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
62552         we now test for that separately.
62553         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
62554         rather than O_NOFOLLOW, when testing whether it's possible to
62555         avoid a race condition reliably.
62556         * lib/savewd.c (savewd_chdir): Likewise.
62557
62558         Remove macros that are no longer needed now that stdint.h is
62559         reliable.
62560         * lib/fsusage.c (UINTMAX_MAX): Remove.
62561         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
62562         * lib/utimecmp.c (SIZE_MAX): Remove.
62563
62564         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
62565
62566         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
62567         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
62568         O_NOATIME works.
62569
62570 2006-10-05  Bruno Haible  <bruno@clisp.org>
62571
62572         * lib/gl_list.h (gl_sortedlist_search_from_to,
62573         gl_sortedlist_indexof_from_to): New declarations.
62574         (gl_list_implementation): New fields sortedlist_search_from_to,
62575         sortedlist_indexof_from_to.
62576         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
62577         inline functions.
62578         * lib/gl_list.c (gl_sortedlist_search_from_to,
62579         gl_sortedlist_indexof_from_to): New functions.
62580         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
62581         function.
62582         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
62583         (gl_array_sortedlist_search_from_to): New function.
62584         (gl_array_list_implementation): Update.
62585         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
62586         function.
62587         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
62588         (gl_carray_sortedlist_search_from_to): New function.
62589         (gl_carray_list_implementation): Update.
62590         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
62591         gl_linked_sortedlist_indexof_from_to): New functions.
62592         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
62593         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
62594         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
62595         gl_tree_sortedlist_indexof_from_to): New functions.
62596         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
62597         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
62598         Update.
62599         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
62600         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
62601         Update.
62602
62603 2006-10-05  Bruno Haible  <bruno@clisp.org>
62604
62605         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
62606         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
62607         (struct gl_list_implementation): Add fields search_from_to,
62608         indexof_from_to. Remove fields search, indexof.
62609         (gl_list_search): Use the search_from_to method.
62610         (gl_list_search_from, gl_list_search_from_to): New functions.
62611         (gl_list_indexof): Use the indexof_from_to method.
62612         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
62613         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
62614         (gl_list_search_from, gl_list_search_from_to): New functions.
62615         (gl_list_indexof): Use the indexof_from_to method.
62616         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
62617         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
62618         gl_array_indexof. Add start_index, end_index arguments.
62619         (gl_array_search_from_to): Renamed from gl_array_search. Add
62620         start_index, end_index arguments.
62621         (gl_array_remove, gl_array_list_implementation): Update.
62622         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
62623         gl_carray_indexof. Add start_index, end_index arguments.
62624         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
62625         start_index, end_index arguments.
62626         (gl_carray_remove, gl_carray_list_implementation): Update.
62627         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
62628         gl_linked_search. Add start_index, end_index arguments.
62629         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
62630         start_index, end_index arguments.
62631         (gl_linked_remove): Update.
62632         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
62633         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
62634         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
62635         field to 'size_t'.
62636         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
62637         gl_tree_search. Add start_index, end_index arguments.
62638         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
62639         start_index, end_index arguments.
62640         (gl_tree_remove): Update.
62641         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
62642         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
62643         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
62644         function.
62645         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
62646         gl_tree_search. Add start_index, end_index arguments.
62647         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
62648         start_index, end_index arguments.
62649         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
62650         Update.
62651         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
62652
62653 2006-10-05  Bruno Haible  <bruno@clisp.org>
62654
62655         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
62656
62657         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
62658         fwriteerror_temp): New declarations.
62659         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
62660         (descriptors): New variable.
62661         (cleanup): First, close the descriptors.
62662         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
62663         fclose_temp, fwriteerror_temp): New functions.
62664
62665 2006-10-04  Jim Meyering  <jim@meyering.net>
62666
62667         * lib/fts.c (fts_open): Tiny comment change.
62668
62669 2006-10-04  Bruno Haible  <bruno@clisp.org>
62670
62671         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
62672         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
62673         gl_LOCK_BODY.
62674         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
62675         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
62676         gl_LOCK_EARLY_BODY.
62677         (gl_LOCK): Require gl_LOCK_BODY.
62678
62679 2006-10-04  Bruno Haible  <bruno@clisp.org>
62680
62681         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
62682         (gl_oset_search_atleast): New declaration.
62683         (struct gl_oset_implementation): Add field 'search_atleast'.
62684         (gl_oset_search_atleast): New inline function.
62685         * lib/gl_oset.c (gl_oset_search_atleast): New function.
62686         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
62687         (gl_array_oset_implementation): Update.
62688         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
62689         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
62690         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
62691
62692 2006-10-04  Bruno Haible  <bruno@clisp.org>
62693
62694         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
62695
62696 2006-10-03  Bruno Haible  <bruno@clisp.org>
62697
62698         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
62699         from gl_avltreehash_list_implementation.
62700
62701 2006-10-03  Bruno Haible  <bruno@clisp.org>
62702
62703         * lib/gl_oset.c (gl_oset_add): Fix return type.
62704
62705 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
62706
62707         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
62708
62709 2006-10-02  Eric Blake  <ebb9@byu.net>
62710
62711         * modules/strnlen (Depends-on): Add extensions.
62712
62713 2006-10-02  Eric Blake  <ebb9@byu.net>
62714
62715         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
62716         definition in 2.60+.
62717
62718 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
62719
62720         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
62721         checks.
62722
62723 2006-10-02  Bruno Haible  <bruno@clisp.org>
62724
62725         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
62726         to the AUTOMAKE_OPTIONS.
62727         Reported by Jim Meyering.
62728
62729 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
62730
62731         Work around bug in Solaris 10 /proc file system:
62732         /proc/self/fd/NNN/.. isn't the parent directory of
62733         the directory whose file descriptor is NNN.  This needs to
62734         be worked around at run time, not compile time, since a
62735         program might be built on Solaris 8, where things work, and
62736         run on Solaris 10.
62737         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
62738         to use the following interface instead:
62739         (OPENAT_BUFFER_SIZE): New macro.
62740         (openat_proc_name): New function.
62741         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
62742         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
62743         Likewise.
62744         * lib/openat-proc.c: New file.
62745         * modules/openat (Files): Add lib/openat-proc.c.
62746         (Depends-on): Add same-inode, stdbool.
62747         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
62748
62749 2006-09-29  Bruno Haible  <bruno@clisp.org>
62750
62751         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
62752         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
62753         argument. Set stdout_closed before testing for ferror, not after.
62754         (fwriteerror, fwriteerror_no_ebadf): New functions.
62755
62756 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62757
62758         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
62759
62760 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
62761
62762         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
62763         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
62764
62765 2006-09-28  Jim Meyering  <jim@meyering.net>
62766
62767         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
62768         Include <unistd.h>.
62769
62770 2006-09-28  Bruno Haible  <bruno@clisp.org>
62771
62772         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
62773         * modules/linkedhash-list (Depends-on): Likewise.
62774         * modules/rbtreehash-list (Depends-on): Likewise.
62775
62776 2006-09-28  Bruno Haible  <bruno@clisp.org>
62777
62778         * lib/strndup.h: Simplify the redefinition of strndup.
62779         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
62780         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
62781
62782 2006-09-28  Bruno Haible  <bruno@clisp.org>
62783
62784         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
62785         * lib/gl_linkedhash_list.c: Likewise.
62786         * lib/gl_rbtreehash_list.c: Likewise.
62787
62788 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
62789
62790         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
62791         getaddrinfo.
62792
62793         * lib/__fpending.h: Don't include <stdio_ext.h> unless
62794         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
62795         it causes <stdio_ext.h> to cause a compile-time error.
62796         Problem reported by Nelson H. F. Beebe.
62797         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
62798         of HAVE_DECL___PENDING.
62799
62800         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
62801         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
62802         declaration.
62803
62804 2006-09-27  Jim Meyering  <jim@meyering.net>
62805
62806         This file could end up with a definition for a function
62807         named __strndup, rather than rpl_strndup on a system with
62808         incomplete weak_alias support.
62809         * lib/strndup.c (strndup): Rename from __strndup.
62810         Remove #defines that used to map __strndup to strndup.
62811         Don't use K&R prototypes.
62812         Remove LIBC-related code, since this file is not sync'd with glibc.
62813         * lib/strndup.h: Revamp, accordingly.
62814         * m4/strndup.m4: Modernize.
62815
62816 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
62817
62818         * modules/savewd (Depends-on): Add 'raise'.
62819         * lib/savewd.c: Include <signal.h>, for 'raise'.
62820
62821 2006-09-26  Jim Meyering  <jim@meyering.net>
62822
62823         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
62824         when we detect Darwin 8.7.0's acl_get_file bug.
62825         Rearrange to perform the new (below) run-test while $LIBS
62826         contains any acl-related library.  Set USE_ACL at the end.
62827         (gl_ACL_GET_FILE): New function.
62828
62829 2006-09-26  Eric Blake  <ebb9@byu.net>
62830
62831         * lib/verror.c: Include <config.h> unconditionally.
62832
62833 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
62834
62835         * modules/clock-time (Maintainer): Add self.
62836         * modules/getlogin_r (Depends-on): Add extensions.
62837
62838 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62839
62840         * modules/clock-time: New module.
62841         * modules/nanosleep (Depends-on): Add clock-time.
62842         * modules/gethrxtime (Depends-on): Likewise.
62843         * modules/gettime (Depends-on): Likewise.
62844         * modules/settime (Depends-on): Likewise.
62845
62846         * modules/fts-lgpl: Depend on openat.
62847         * modules/mkancesdirs: Depend on savewd.
62848         * modules/mkdir-p: Likewise.
62849
62850 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62851
62852         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
62853
62854         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
62855         `gl_have_arbitrary_file_name_length_limit' to
62856         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
62857         actually works between configure runs.
62858
62859 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62860             Bruno Haible  <bruno@clisp.org>
62861
62862         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
62863
62864 2006-09-25  Jim Meyering  <jim@meyering.net>
62865
62866         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
62867         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
62868
62869 2006-09-25  Eric Blake  <ebb9@byu.net>
62870
62871         * gnulib-tool (func_import, func_create_testdir): Fix typos in
62872         exec's in 2006-09-18 patch when shuffling fds.
62873
62874 2006-09-25  Bruno Haible  <bruno@clisp.org>
62875
62876         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
62877         Reported by Jim Meyering.
62878
62879 2006-09-24  Jim Meyering  <jim@meyering.net>
62880
62881         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
62882         compare a pointer against a literal "0".  That caused failures with
62883         at least HP-UX's hpcc.
62884
62885 2006-09-22  Simon Josefsson  <jas@extundo.com>
62886
62887         * modules/gc-sha1:
62888         * modules/gc-md4:
62889         * modules/gc-hmac-sha1:
62890         * modules/gc-hmac-md5:
62891         * modules/gc-des:
62892         * modules/gc-arcfour: Distribute more files.
62893
62894 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62895
62896         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
62897         (gl_linked_iterator_from_to): Initialize struct completely.
62898         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
62899         (gl_tree_iterator_from_to): Likewise
62900         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
62901         * lib/gl_array_list.c [lint] (gl_array_iterator)
62902         (gl_array_iterator_from_to): Likewise.
62903         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
62904         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
62905         (gl_carray_iterator_from_to): Likewise.
62906
62907         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
62908         * lib/md4.c (md4_process_block): Remove unused variable.
62909         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
62910         parentheses for clarity.
62911
62912 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62913
62914         * modules/bison-i18n (Depends-on): Add gettext.
62915
62916 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62917
62918         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
62919         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
62920         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
62921         also add missing comma that caused broken test.
62922         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
62923         stdlib.h, for `abort'.
62924         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
62925         variables.
62926         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
62927         include unistd.h if present, for `rmdir'.
62928         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
62929         variables.
62930         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
62931         in the process include standard headers for prototypes.
62932         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
62933         gets declared on GNU/Linux.
62934         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
62935         unistd.h, for `rmdir'.
62936         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
62937
62938         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
62939         always true.
62940         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
62941
62942         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
62943
62944 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62945
62946         * gnulib-tool (func_version): Create output all at once.  This
62947         may help avoid triggering unnecessary SIGPIPEs, and at any
62948         rate it doesn't hurt.
62949
62950 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62951             Bruno Haible  <bruno@clisp.org>
62952
62953         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
62954         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
62955         * m4/signed.m4 (bh_C_SIGNED): Likewise.
62956
62957         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
62958         (gl_FUNC_VASPRINTF): Invoke it.
62959
62960 2006-09-22  Bruno Haible  <bruno@clisp.org>
62961
62962         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
62963         getloadavg.c as first argument.
62964
62965 2006-09-22  Bruno Haible  <bruno@clisp.org>
62966
62967         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
62968         at the beginning of the gl_INIT macro.
62969         * modules/getloadavg (configure.ac): Pass $gl_source_base to
62970         gl_GETLOADAVG.
62971
62972 2006-09-22  Bruno Haible  <bruno@clisp.org>
62973
62974         * gnulib-tool (func_create_megatestdir): Don't include the config-h
62975         module.
62976         Suggested by Ralf Wildenhues.
62977
62978 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
62979
62980         Import this patch from libc:
62981
62982         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
62983
62984         * lib/regex_internal.c (re_string_reconstruct): Handle
62985         offset < pstr->valid_raw_len && pstr->offsets_needed case.
62986         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
62987         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
62988         re_string_context_at.
62989
62990         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
62991         now requires it.
62992         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
62993         gl_REGEX now does it for us.
62994         (gl_REGEX): Add test taken from
62995         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
62996
62997         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
62998         Check that large offsets work.  Modernize Autoconf usages.
62999         Prefer "yes" to mean a good thing rather than a bad.
63000         Don't put "#define mkstemp" in config.h, as this might interfere
63001         with standard system headers that "#define mkstemp mkstemp64".
63002
63003         * modules/mkstemp (Depends-on): Add extensions, so that
63004         mkstemp is visible on some platforms.
63005         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
63006         (Include): Change to "mkstemp.h" from <stdlib.h>.
63007         (Files): Add mkstemp.h.
63008
63009         * lib/mkstemp.h: New file, since some standard headers
63010         #define mkstemp.
63011         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
63012         Include "mkstemp.h".
63013         Make the _LIBC code resemble glibc original more,
63014         e.g., use K&R style.
63015         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
63016         (mkstemp): Remove, since mkstemp.h does this for us.
63017         * lib/stdlib--.h: Include mkstemp.h.
63018
63019         Import this patch from libc:
63020
63021         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
63022
63023         * lib/tempname.c (__gen_tempname): Change attempts_min
63024         into a macro.  Use preprocessor to decide how to initialize
63025         attempts [Coverity CID 67].
63026
63027 2006-09-20  Bruno Haible  <bruno@clisp.org>
63028
63029         * lib/mkdtemp.c: Import from libc.
63030         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
63031                 * sysdeps/posix/tempname.c (__gen_tempname): Change
63032                 attempts_min into a macro.  Use preprocessor to decide how to
63033                 initialize attempts [Coverity CID 67].
63034         2001-11-27  Paul Eggert  <eggert@twinsun.com>
63035                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
63036                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
63037
63038 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63039
63040         * gnulib-tool (func_exit): New function, to allow to pass the
63041         exit status portably through the trap.  Use everywhere.
63042         (--help, --version): Signal a write error.
63043         (trap): catch SIGPIPE, for write errors.
63044         Exit at the end of the trap, with the correct exit status.
63045
63046 2006-09-19  Karl Berry  <karl@gnu.org>
63047
63048         * doc/gnulib.texi: note about the license texinfo files.
63049
63050 2006-09-19  Eric Blake  <ebb9@byu.net>
63051
63052         * gnulib-tool: Avoid space-tab.
63053
63054 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
63055
63056         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
63057         that prevented coreutils 6.1 from building.  Problem reported
63058         by Petter Reinholdtsen.
63059
63060 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
63061
63062         * gnulib-tool (avoidlist): Fix typo that broke options like
63063         --avoid=lock that are used by coreutils bootstrap.
63064
63065 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
63066
63067         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
63068         more systematically.
63069
63070 2006-09-18  Jim Meyering  <jim@meyering.net>
63071
63072         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
63073
63074 2006-09-18  Bruno Haible  <bruno@clisp.org>
63075
63076         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
63077
63078 2006-09-18  Bruno Haible  <bruno@clisp.org>
63079
63080         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
63081         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
63082         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
63083         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
63084         * m4/gettext.m4: Require autoconf >= 2.52.
63085         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
63086         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
63087         of gl_cv_header_inttypes_h.
63088
63089 2006-09-18  Bruno Haible  <bruno@clisp.org>
63090
63091         * lib/javaversion.c: Include configmake.h.
63092
63093 2006-09-18  Bruno Haible  <bruno@clisp.org>
63094
63095         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
63096         avoid that the while loops be executed in a subshell.
63097
63098 2006-09-18  Bruno Haible  <bruno@clisp.org>
63099
63100         * MODULES.html.sh (func_module): Break long lines.
63101         Suggested by Bruce Korb <bkorb@gnu.org>.
63102
63103 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63104
63105         Speed up by a factor of 1.12.
63106         * gnulib-tool (nl): New variable.
63107         (func_import): Rewrite include directive extraction to only read each
63108         directive once.
63109
63110 2006-09-17  Bruno Haible  <bruno@clisp.org>
63111
63112         * modules/javaversion (Makefile.am): Remove DEFS setting.
63113         (Depends-on): Add configmake, for PKGDATADIR definition.
63114
63115 2006-09-17  Bruno Haible  <bruno@clisp.org>
63116
63117         * gnulib-tool (func_create_testdir): Rewrite all files at once.
63118
63119 2006-09-17  Bruno Haible  <bruno@clisp.org>
63120
63121         * gnulib-tool (func_append): New function, stolen from libtool.m4.
63122         (func_modules_transitive_closure, func_modules_add_dummy,
63123         func_modules_to_filelist, func_import, func_create_testdir,
63124         func_create_megatestdir, ...): Use it wherever possible.
63125         Suggested by Ralf Wildenhues.
63126
63127 2006-09-16  Karl Berry  <karl@gnu.org>
63128
63129         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
63130         to avoid sectioning errors.
63131         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
63132         [ifinfo]: blank line after @center-ed titles.
63133         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
63134         Spell FSF address consistently with others.
63135         (These changes approved by rms.)
63136
63137 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63138
63139         Speed up by a factor of 1.61.
63140         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
63141         already checked module names again.
63142
63143 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63144
63145         Speed up by a factor of 1.13.
63146         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
63147         for new_files, and the input to func_add_or_update.
63148
63149 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63150
63151         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
63152         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
63153
63154 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
63155
63156         * modules/mkancesdirs (Depends-on): Add fcntl.
63157         * modules/savewd: New file.
63158         * MODULES.html.sh (File system functions): Add savewd.
63159
63160         * modules/configmake (Makefile.am): Add support for the
63161         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
63162
63163 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
63164
63165         * m4/savewd.m4: New file.
63166
63167 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
63168
63169         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
63170         (dirchownmod): New arg FD.  All callers changed.
63171         Use FD rather than opening the directory ourself, as opening is
63172         now the caller's responsibility.
63173         * lib/dirchownmod.h: Likewise.
63174         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
63175         hosts that require <sys/types.h> before <sys/stat.h>.  Include
63176         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
63177         (test_dir): Remove.
63178         (mkancesdirs): Return length of prefix of FILE that has already
63179         been made, or -2 if there is a child doing the work.  Redo
63180         algorithm so that it is O(N) rather than O(N**2).  Optimize away
63181         ".", and treat ".." specially since it might stray back into
63182         already-created areas.  Use a subprocess if necessary.  New arg
63183         WD; all users changed.  MAKE_DIR function should now return 1
63184         if it creates a directory that is not readable.  Return -2 if
63185         a child process is spun off.
63186         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
63187         Adjust signature to match code.
63188         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
63189         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
63190         all users changed.
63191         * lib/savewd.c, lib/savewd.h: New files.
63192
63193 2006-09-15  Jim Meyering  <jim@meyering.net>
63194
63195         * modules/rename-dest-slash: New module.
63196         * MODULES.html.sh (posix_compat): Add it here.
63197
63198         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
63199
63200 2006-09-15  Jim Meyering  <jim@meyering.net>
63201
63202         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
63203         file.
63204
63205         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
63206
63207 2006-09-15  Jim Meyering  <jim@meyering.net>
63208
63209         * lib/rename-dest-slash.c (has_trailing_slash): Use
63210         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
63211         (rpl_rename_dest_slash): Perform the cheaper trailing slash
63212         test before testing whether SRC is a directory.
63213         Suggestions from Bruno Haible.
63214
63215         Avoid a warning about an unused variable.
63216         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
63217         into the #ifdef block where it's used.
63218
63219         * lib/rename-dest-slash.c: New file.
63220
63221 2006-09-14  Bruno Haible  <bruno@clisp.org>
63222
63223         * lib/allocsa.c: Include <config.h> unconditionally.
63224         * lib/asnprintf.c: Likewise.
63225         * lib/asprintf.c: Likewise.
63226         * lib/c-strcasecmp.c: Likewise.
63227         * lib/c-strcasestr.c: Likewise.
63228         * lib/c-strncasecmp.c: Likewise.
63229         * lib/c-strstr.c: Likewise.
63230         * lib/classpath.c: Likewise.
63231         * lib/clean-temp.c: Likewise.
63232         * lib/concatpath.c: Likewise.
63233         * lib/copy-file.c: Likewise.
63234         * lib/csharpcomp.c: Likewise.
63235         * lib/csharpexec.c: Likewise.
63236         * lib/execute.c: Likewise.
63237         * lib/fatal-signal.c: Likewise.
63238         * lib/findprog.c: Likewise.
63239         * lib/fwriteerror.c: Likewise.
63240         * lib/gl_array_list.c: Likewise.
63241         * lib/gl_array_oset.c: Likewise.
63242         * lib/gl_avltree_list.c: Likewise.
63243         * lib/gl_avltree_oset.c: Likewise.
63244         * lib/gl_avltreehash_list.c: Likewise.
63245         * lib/gl_carray_list.c: Likewise.
63246         * lib/gl_linked_list.c: Likewise.
63247         * lib/gl_linkedhash_list.c: Likewise.
63248         * lib/gl_list.c: Likewise.
63249         * lib/gl_oset.c: Likewise.
63250         * lib/gl_rbtree_list.c: Likewise.
63251         * lib/gl_rbtree_oset.c: Likewise.
63252         * lib/gl_rbtreehash_list.c: Likewise.
63253         * lib/imaxabs.c: Likewise.
63254         * lib/imaxdiv.c: Likewise.
63255         * lib/javacomp.c: Likewise.
63256         * lib/javaexec.c: Likewise.
63257         * lib/javaversion.c: Likewise.
63258         * lib/linebreak.c: Likewise.
63259         * lib/localcharset.c: Likewise.
63260         * lib/lock.c: Likewise.
63261         * lib/mbchar.c: Likewise.
63262         * lib/mbswidth.c: Likewise.
63263         * lib/mkdtemp.c: Likewise.
63264         * lib/pipe.c: Likewise.
63265         * lib/printf-args.c: Likewise.
63266         * lib/printf-parse.c: Likewise.
63267         * lib/progname.c: Likewise.
63268         * lib/progreloc.c: Likewise.
63269         * lib/readlink.c: Likewise.
63270         * lib/sh-quote.c: Likewise.
63271         * lib/stpcpy.c: Likewise.
63272         * lib/stpncpy.c: Likewise.
63273         * lib/strcasecmp.c: Likewise.
63274         * lib/strcasestr.c: Likewise.
63275         * lib/strcspn.c: Likewise.
63276         * lib/striconv.c: Likewise.
63277         * lib/strncasecmp.c: Likewise.
63278         * lib/strnlen1.c: Likewise.
63279         * lib/strstr.c: Likewise.
63280         * lib/strtok_r.c: Likewise.
63281         * lib/tls.c: Likewise.
63282         * lib/tmpdir.c: Likewise.
63283         * lib/unicodeio.c: Likewise.
63284         * lib/unsetenv.c: Likewise.
63285         * lib/vasnprintf.c: Likewise.
63286         * lib/vasprintf.c: Likewise.
63287         * lib/wait-process.c: Likewise.
63288         * lib/xallocsa.c: Likewise.
63289         * lib/xsetenv.c: Likewise.
63290         * lib/xstriconv.c: Likewise.
63291
63292 2006-09-13  Simon Josefsson  <jas@extundo.com>
63293
63294         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
63295         that internally, suggested by Ralf Wildenhues
63296         <Ralf.Wildenhues@gmx.de>.
63297
63298 2006-09-13  Simon Josefsson  <jas@extundo.com>
63299
63300         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
63301         @LIBOBJS@.
63302         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63303
63304 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
63305
63306         * lib/_fpending.c: Include <config.h> unconditionally, since we no
63307         longer worry about uses that don't define HAVE_CONFIG_H.
63308         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
63309         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
63310         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
63311         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
63312         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
63313         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
63314         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
63315         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
63316         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
63317         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
63318         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
63319         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
63320         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
63321         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
63322         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
63323         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
63324         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
63325         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
63326         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
63327         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
63328         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
63329         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
63330         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
63331         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
63332         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
63333         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
63334         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
63335         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
63336         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
63337         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
63338         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
63339         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
63340         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
63341         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
63342         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
63343         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
63344         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
63345         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
63346         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
63347         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
63348         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
63349         Likewise.
63350
63351 2006-09-13  Eric Blake  <ebb9@byu.net>
63352
63353         * lib/getopt.c: Fix typo in last commit.
63354
63355 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
63356
63357         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
63358         dgettext.
63359
63360 2006-09-12  Jim Meyering  <jim@meyering.net>
63361
63362         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
63363         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
63364         Reported by Nelson H. F. Beebe.
63365
63366 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63367
63368         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
63369         program_invocation_name and program_invocation_short_name are
63370         initialized.
63371         * lib/argp-namefrob.h: Move declarations of program_invocation_name
63372         and program_invocation_short_name to argp.h, so they are visible
63373         to user programs.
63374         * lib/argp.h: Likewise
63375
63376 2006-09-10  Bruno Haible  <bruno@clisp.org>
63377
63378         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
63379         m4/inttypes_h.m4, m4/uintmax_t.m4.
63380
63381 2006-09-10  Bruno Haible  <bruno@clisp.org>
63382
63383         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
63384         gl_AC_TYPE_UINTMAX_T.
63385
63386 2006-09-10  Bruno Haible  <bruno@clisp.org>
63387
63388         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
63389
63390 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63391
63392         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
63393         convention.  Text proposed by Bruno Haible.
63394         (struct argp_option): Document the use of N_() wrappers.
63395
63396         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
63397         '\v', and translate the two parts separately, instead of feeding
63398         the whole string to gettext.  This allows to exclude
63399         '\v' from the strings visible to the translator by writing doc
63400         strings as N_("..") "\v" N_("..").
63401
63402 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
63403
63404         * config/srclist.txt: Undo latest change; the bug was fixed.
63405
63406 2006-09-09  Bruno Haible  <bruno@clisp.org>
63407
63408         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
63409         assignments if building a library without libtool.
63410         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
63411         in func_emit_lib_Makefile_am.
63412         (func_import): When building a static library libfoo.a, arrange to
63413         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
63414         (func_create_testdir): Likewise.
63415         * modules/gc (configure.ac, Makefile.am): If building statically,
63416         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
63417         * modules/iconvme (configure.ac, Makefile.am): Likewise.
63418         * modules/striconv (configure.ac, Makefile.am): Likewise.
63419         Based on a suggestion by Ralf Wildenhues.
63420
63421 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63422
63423         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
63424         Check for unistd.h too, since Autoconf doesn't assume POSIX.
63425         Also:
63426
63427         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63428         Add year_2050_test to catch glibc bug 2821
63429         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
63430
63431         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63432         Prefer #ifdef to #if.
63433
63434         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
63435         Return from 'main' instead of calling 'exit'.
63436
63437 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63438
63439         * lib/mktime.c (guess_time_tm): Fix bug where mktime
63440         returned the maximum time_t value rather than (time_t) -1.
63441         Problem originally reported by William Bardwell
63442         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
63443
63444         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
63445         Moved to here ...
63446         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
63447         ... from here.
63448
63449 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63450
63451         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
63452         2821 is fixed.
63453
63454 2006-09-08  Jim Meyering  <jim@meyering.net>
63455
63456         Don't make generated files read-only.  That would bother too many
63457         people.  However, do retain the ability to work when targets are
63458         read-only: remove the destination and temporary files before writing
63459         them (when generated via sed or echo), or by using the -f option for
63460         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
63461         * modules/alloca-opt, modules/argz, modules/arpa_inet:
63462         * modules/byteswap, modules/configmake, modules/fcntl:
63463         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
63464         * modules/localcharset, modules/netinet_in, modules/poll:
63465         * modules/stdbool, modules/stdint, modules/sys_select:
63466         * modules/sys_socket, modules/sys_stat, modules/sysexits:
63467
63468 2006-09-08  Jim Meyering  <jim@meyering.net>
63469
63470         Avoid new build failure on FreeBSD 6.0.
63471         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
63472         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
63473         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
63474
63475 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63476
63477         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
63478
63479 2006-09-07  Jim Meyering  <jim@meyering.net>
63480
63481         Fix global typo in last change: use chmod u-w, not chmod u-x.
63482         Spotted by Paul Eggert and Bruce Korb.
63483         * modules/alloca-opt, modules/argz, modules/arpa_inet:
63484         * modules/byteswap, modules/configmake, modules/fcntl:
63485         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
63486         * modules/localcharset, modules/netinet_in, modules/poll:
63487         * modules/stdbool, modules/stdint, modules/sys_select:
63488         * modules/sys_socket, modules/sys_stat, modules/sysexits:
63489
63490 2006-09-06  Jim Meyering  <jim@meyering.net>
63491
63492         Make generated files be read-only.
63493         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
63494         Ensure that each generated file is now read-only.
63495         * modules/argz: Likewise.
63496         * modules/arpa_inet: Likewise.
63497         * modules/byteswap: Likewise.
63498         * modules/configmake: Likewise.
63499         * modules/fcntl: Likewise.
63500         * modules/fnmatch: Likewise.
63501         * modules/getopt: Likewise.
63502         * modules/glob: Likewise.
63503         * modules/inttypes: Likewise.
63504         * modules/netinet_in: Likewise.
63505         * modules/poll: Likewise.
63506         * modules/stdbool: Likewise.
63507         * modules/stdint: Likewise.
63508         * modules/sys_select: Likewise.
63509         * modules/sys_socket: Likewise.
63510         * modules/sys_stat: Likewise.
63511         * modules/sysexits: Likewise.
63512         * modules/localcharset: Same as above, but continue using temporary
63513         file named "t-$@" (why different?) rather than the "$@-t" used
63514         everywhere else.
63515
63516         * modules/sysexits (Makefile.am): Replace literal occurrences
63517         of "sysexit.h" more readable, and more consistent, "$@".
63518
63519 2006-09-06  Bruno Haible  <bruno@clisp.org>
63520
63521         * modules/striconv: New file.
63522         * modules/xstriconv: New file.
63523         * MODULES.html.sh (Internationalization functions): Add striconv,
63524         xstriconv.
63525
63526 2006-09-06  Bruno Haible  <bruno@clisp.org>
63527
63528         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
63529         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
63530         not using libtool correctly.
63531
63532 2006-09-06  Bruno Haible  <bruno@clisp.org>
63533
63534         * lib/striconv.h: New file.
63535         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
63536         iconvstring.c.
63537         * lib/xstriconv.h: New file.
63538         * lib/xstriconv.c: New file.
63539
63540 2006-09-06  Bruno Haible  <bruno@clisp.org>
63541
63542         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
63543         lib_..._LDFLAGS.
63544
63545 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63546
63547         * lib/argz_.h: Sync from Libtool.
63548
63549         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
63550                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
63551
63552         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
63553
63554 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
63555
63556         * modules/trim: New file.
63557
63558 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
63559
63560         * lib/trim.h: New file.
63561         * lib/trim.c: New file.
63562
63563 2006-09-05  Bruno Haible  <bruno@clisp.org>
63564
63565         * MODULES.html.sh (String handling): Add trim.
63566
63567 2006-09-04  Karl Berry  <karl@gnu.org>
63568
63569         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
63570         until next release.
63571
63572 2006-09-03  Bruno Haible  <bruno@clisp.org>
63573
63574         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
63575         correctly.
63576
63577 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63578
63579         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
63580         not gl_GETLOADAVG.  Omit unneeded semicolons.
63581         Problems reported by Ralf Wildenhues in
63582         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
63583         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
63584         at the end, which is the usual gnulib style.
63585
63586         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
63587         of doing all the work ourselves.
63588         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
63589         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
63590
63591 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63592
63593         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
63594         Problem reported by Ralf Wildenhues in
63595         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
63596
63597         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
63598         HAVE_STRUCT_STATFS_F_FSTYPENAME.
63599
63600 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63601
63602         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
63603         yesterday's patch by changing test -n to test -z.
63604
63605 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63606
63607         * modules/getloadavg (Files): Add m4/getloadavg.m4.
63608         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
63609         the former is now obsolescent.
63610
63611         * modules/chdir-long (Depends-on): Add fcntl.
63612
63613 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63614
63615         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
63616         obsolescent, and programs should use gnulib instead.
63617         * m4/getloadavg.m4: New file, with contents taken from Autoconf
63618         but with prefixes changed.
63619
63620 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63621
63622         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
63623         or stdbool.h, because they might not exist while configuring.
63624
63625         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
63626         Don't include unistd.h or limits.h; not needed, since chdir-long.h
63627         does that for us.
63628         (O_DIRECTORY): Remove.
63629
63630 2006-08-31  Eric Blake  <ebb9@byu.net>
63631
63632         * gnulib-tool: Don't let emacs change spaces to TAB.
63633
63634 2006-08-31  Bruno Haible  <bruno@clisp.org>
63635
63636         * gnulib-tool: When calling func_import more than once, do it in a
63637         subshell.
63638         Reported by Eric Blake <ebb9@byu.net>.
63639
63640 2006-08-31  Bruno Haible  <bruno@clisp.org>
63641
63642         * gnulib-tool (nl): Remove variable.
63643         (sed_transform_lib_file): Use more robust test for config-h module.
63644         (func_import): Fix typo in 2006-08-25 patch.
63645
63646 2006-08-31  Bruno Haible  <bruno@clisp.org>
63647
63648         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
63649         specified, augment Makefile.am variables instead of assigning them.
63650
63651 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63652
63653         Work around a bug in both the Linux and SunOS 64-bit kernels:
63654         nanosleep mishandles sleeps for longer than 2**31 seconds.
63655         Problem reported by Frank v Waveren in
63656         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
63657         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
63658         Check for nanosleep bug.
63659         (LIB_NANOSLEEP): Append clock_gettime library if needed.
63660
63661 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63662
63663         Work around a bug in both the Linux and SunOS 64-bit kernels:
63664         nanosleep mishandles sleeps for longer than 2**31 seconds.
63665         Problem reported by Frank v Waveren in
63666         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
63667         * lib/nanosleep.c (BILLION): New constant.
63668         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
63669         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
63670         implementation.
63671
63672 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63673
63674         * modules/nanosleep (Depends-on): Add gettime.
63675
63676 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63677         and Simon Josefsson  <jas@extundo.com>
63678         and Oskar Liljeblad  <oskar@osk.mine.nu>
63679
63680         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
63681         * gnulib-tool (func_import): New license type 'unmodifiable license
63682         text'.
63683         * modules/fdl: Use it.  Longer description.
63684         * module/gpl, module/lgpl: New files.
63685
63686 2006-08-30  Jim Meyering  <jim@meyering.net>
63687
63688         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
63689         shadowing the parameter.
63690
63691 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63692
63693         Sync from Libtool:
63694
63695         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63696
63697         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
63698         sharing with gnulib.  Report by Eric Blake.
63699
63700 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63701
63702         * modules/isapipe: New file.
63703         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
63704
63705 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63706
63707         * modules/configmake (Makefile.am): Add a comment, and omit
63708         the CONFIGMAKE_ prefix from generated macro names.  Suggested
63709         by Bruno Haible.
63710
63711 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63712
63713         * m4/isapipe.m4: New file.
63714
63715 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63716
63717         * lib/isapipe.c, lib/isapipe.h: New files.
63718
63719 2006-08-29  Jim Meyering  <jim@meyering.net>
63720
63721         * modules/configmake (Makefile.am): Make configmake.h depend on
63722         Makefile.  Otherwise, a stale configmake.h could hang around.
63723
63724 2006-08-29  Eric Blake  <ebb9@byu.net>
63725
63726         * lib/error.c (error_at_line, print_errno_message): Match libc, after
63727         resolution of upstream bug 3044.
63728
63729 2006-08-29  Bruno Haible  <bruno@clisp.org>
63730
63731         * modules/localcharset (Depends-on): Add configmake.
63732         (Makefile.am): Remove setting of LIBDIR through DEFS.
63733
63734 2006-08-29  Bruno Haible  <bruno@clisp.org>
63735
63736         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
63737         defined.
63738
63739 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63740
63741         * modules/fcntl: New file.
63742         * modules/chdir-safer (Depends-on): Add fcntl.
63743         * modules/fts: Likewise.
63744         * modules/mkdir-p: Likewise.
63745
63746         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
63747         This undoes the most recent change, since we're now addressing the
63748         problem in a different way.
63749
63750         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
63751         into output, since the output might be called Makefile.am even
63752         if $makefile_name is something different.
63753         (func_import): Use $makefile_am rather than
63754         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
63755         empty.
63756
63757         * modules/inttypes (Files): Add m4/inttypes-h.m4.
63758
63759 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63760
63761         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
63762         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
63763         recent change to stdint.m4, since we're now addressing the problem in a
63764         different way.
63765
63766 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63767
63768         * m4/fcntl_h.m4: New file.
63769
63770 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63771
63772         * lib/fcntl_.h: New file.
63773         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
63774         the fcntl module.
63775         * lib/dirchownmod.c: Likewise.
63776         * lib/fts.c: Likewise.
63777
63778         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
63779         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
63780         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
63781         just before including <inttypes.h>, to avoid circular inclusion.
63782
63783 2006-08-28  Jim Meyering  <jim@meyering.net>
63784
63785         * doc/visibility.texi: Actually read and correct the grammar of the
63786         sentence affected by yesterday's change.
63787
63788 2006-08-28  Eric Blake  <ebb9@byu.net>
63789
63790         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
63791         needs wrapper.
63792
63793 2006-08-28  Eric Blake  <ebb9@byu.net>
63794
63795         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
63796
63797 2006-08-28  Eric Blake  <ebb9@byu.net>
63798
63799         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
63800
63801 2006-08-28  Bruno Haible  <bruno@clisp.org>
63802
63803         * modules/c-strstr: New file, from GNU gettext.
63804         * MODULES.html.sh (String handling): Add c-strstr.
63805
63806 2006-08-28  Bruno Haible  <bruno@clisp.org>
63807
63808         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
63809         macros.
63810         Reported by Eric Blake.
63811
63812 2006-08-28  Bruno Haible  <bruno@clisp.org>
63813
63814         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
63815         (VASNPRINTF): Return a string of length > INT_MAX without failing.
63816         * lib/vasprintf.c: Include errno.h, limits.h.
63817         (EOVERFLOW): New fallback definition.
63818         (vasprintf): Test here whether the string length is > INT_MAX.
63819         * lib/vsnprintf.c: Include errno.h, limits.h.
63820         (EOVERFLOW): New fallback definition.
63821         (vsnprintf): Fix bug when generated string was too long for the buffer.
63822         Test here whether the string length is > INT_MAX.
63823
63824 2006-08-28  Bruno Haible  <bruno@clisp.org>
63825
63826         * lib/inttypes_.h (SCNX*): Remove definitions.
63827         Reported by Eric Blake.
63828
63829 2006-08-28  Bruno Haible  <bruno@clisp.org>
63830
63831         * lib/c-strstr.h: New file, from GNU gettext.
63832         * lib/c-strstr.c: New file, from GNU gettext.
63833
63834 2006-08-28  Bruno Haible  <bruno@clisp.org>
63835
63836         * gnulib-tool: Reorder some statements.
63837
63838 2006-08-28  Bruno Haible  <bruno@clisp.org>
63839
63840         * gnulib-tool: New option --makefile-name.
63841         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
63842         $makefile_name.
63843         (func_import): Write $makefile_name to the cache file, and read it from
63844         there unless explicitly specified. Use $makefile_name as file name
63845         instead of Makefile.am. Adjust the recommendations accordingly.
63846
63847 2006-08-28  Bruno Haible  <bruno@clisp.org>
63848
63849         * gnulib-tool (func_verify_module): Check against misapplying patch.
63850
63851 2006-08-28  Bruno Haible  <bruno@clisp.org>
63852
63853         * gnulib-tool (func_relativize, func_relconcat): New functions.
63854         Give an error if --local-dir is given with --update.
63855         Remove trailing slashes from $local_gnulib_dir.
63856         (func_import): Store the relativized $local_gnulib_dir in
63857         gnulib-cache.m4, and read it from there if not specified explicitly.
63858
63859 2006-08-28  Bruno Haible  <bruno@clisp.org>
63860
63861         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
63862         is the current directory. Respect also $local_gnulib_dir.
63863
63864 2006-08-28  Bruno Haible  <bruno@clisp.org>
63865             Simon Josefsson  <jas@extundo.com>
63866
63867         BeOS portability.
63868         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
63869
63870 2006-08-27  Jim Meyering  <jim@meyering.net>
63871
63872         * doc/visibility.texi: Remove duplicate word: "pointer".
63873
63874 2006-08-26  Bruno Haible  <bruno@clisp.org>
63875
63876         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
63877         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
63878         (Makefile.am): Create inttypes.h from inttypes_.h.
63879         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
63880
63881         * modules/imaxabs: New file.
63882
63883         * modules/imaxdiv: New file.
63884
63885 2006-08-26  Bruno Haible  <bruno@clisp.org>
63886
63887         * m4/inttypes.m4: New file.
63888         * m4/_inttypes_h.m4: Remove file.
63889         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
63890         PRI_MACROS_BROKEN.
63891         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
63892
63893         * m4/imaxabs.m4: New file.
63894
63895         * m4/imaxdiv.m4: New file.
63896
63897 2006-08-26  Bruno Haible  <bruno@clisp.org>
63898
63899         * lib/inttypes_.h: New file.
63900         * lib/inttypes.h: Remove file.
63901         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
63902
63903         * lib/imaxabs.c: New file.
63904
63905         * lib/imaxdiv.c: New file.
63906
63907 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63908
63909         New config-h module, so that "make" output needn't be cluttered
63910         by -DHAVE_CONFIG_H.
63911         * MODULES.html.sh (Support for building libraries and executables):
63912         Add config-h.
63913         * modules/config-h: New file.
63914         * gnulib-tool (nl, sed_transform_lib_file): New vars.
63915         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
63916         the config-h module is used.
63917
63918         New configmake module, so that "make" output needn't be cluttered
63919         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
63920         * MODULES.html.sh (Support for building libraries and executables):
63921         Add configmake.
63922         * modules/configmake: New file.
63923
63924 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63925
63926         * m4/config-h.m4: New file.
63927
63928 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63929
63930         * config/srclist.txt: Add elisp-comp.
63931
63932 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63933
63934         * MODULES.html.sh (Support for building libraries and executables):
63935         Add elisp-comp.
63936         * build-aux/elisp-comp: New file.
63937         * modules/elisp-comp: New file.
63938
63939 2006-08-24  Bruno Haible  <bruno@clisp.org>
63940
63941         * gnulib-tool (func_create_testdir): Use non-default values of
63942         sourcebase and m4base.
63943
63944 2006-08-24  Bruno Haible  <bruno@clisp.org>
63945
63946         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
63947         HTML structure.
63948
63949 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
63950
63951         * modules/openat (Depends-on): Add lchown.
63952
63953 2006-08-23  Bruno Haible  <bruno@clisp.org>
63954
63955         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
63956         of gl_LOCK_EARLY instead of gl_LOCK.
63957
63958 2006-08-23  Bruno Haible  <bruno@clisp.org>
63959
63960         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
63961         on OSF/1 to no.
63962         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
63963
63964 2006-08-23  Bruno Haible  <bruno@clisp.org>
63965
63966         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
63967         as unusable.
63968
63969         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
63970         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
63971         (gl_LOCK): New macro.
63972
63973 2006-08-22  Simon Josefsson  <jas@extundo.com>
63974
63975         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
63976         to md5 module.
63977
63978 2006-08-22  Simon Josefsson  <jas@extundo.com>
63979
63980         * MODULES.html.sh: Add "Support for maintaining and release
63981         projects".
63982
63983         * build-aux/gnupload: New file, from coreutils.
63984
63985 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63986
63987         Avoid the need for AC_LIBSOURCES in m4 macros.
63988         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
63989         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
63990         * modules/check-version (EXTRA_DIST): Add check-version.h.
63991         * modules/crc (EXTRA_DIST): Add crc.h.
63992         * modules/des (EXTRA_DIST): Add des.h.
63993         * modules/gc (EXTRA_DIST): Add gc.h.
63994         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
63995         * modules/getline (EXTRA_DIST): Add getline.h.
63996         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
63997         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
63998         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
63999         * modules/md2 (EXTRA_DIST): Add md2.h.
64000         * modules/md4 (EXTRA_DIST): Add md4.h.
64001         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
64002         * modules/read-file (EXTRA_DIST): Add read-file.h.
64003         * modules/readline (EXTRA_DIST): Add readline.h.
64004         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
64005         rijndael-api-fst.h.
64006
64007 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
64008
64009         * m4/rijndael.m4 (gl_ARCFOUR):
64010         * m4/arctwo.m4 (gl_ARCTWO):
64011         * m4/check-version.m4 (gl_CHECK_VERSION):
64012         * m4/crc.m4 (gl_CRC):
64013         * m4/des.m4 (gl_DES):
64014         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
64015         * m4/gc.m4 (gl_GC):
64016         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
64017         * m4/getline.m4 (gl_FUNC_GETLINE):
64018         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
64019         * m4/hmac-md5.m4 (gl_HMAC_MD5):
64020         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
64021         * m4/md2.m4 (gl_MD2):
64022         * m4/md4.m4 (gl_MD4):
64023         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
64024         * m4/read-file.m4 (gl_FUNC_READ_FILE):
64025         * m4/readline.m4 (gl_FUNC_READLINE):
64026         * m4/rijndael.m4 (gl_RIJNDAEL):
64027         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
64028         to get the necessary .h files and whatnot.
64029
64030 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
64031
64032         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
64033         gnulib rather than the other way around.
64034         * config/srclistvars.sh (COREUTILS): Remove.
64035
64036 2006-08-22  Jim Meyering  <jim@meyering.net>
64037
64038         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
64039
64040         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
64041
64042 2006-08-22  Eric Blake  <ebb9@byu.net>
64043
64044         * modules/regexprops-generic: New file.
64045         * MODULES.html.sh (Support for building documentation): List it.
64046
64047 2006-08-22  Eric Blake  <ebb9@byu.net>
64048
64049         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
64050         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
64051         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
64052         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
64053
64054 2006-08-22  Bruno Haible  <bruno@clisp.org>
64055
64056         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
64057         and lib_LTLIBRARIES like the other lib_* variables.
64058
64059 2006-08-22  Bruno Haible  <bruno@clisp.org>
64060
64061         * build-aux/x-to-1.in: New file, from GNU gettext.
64062
64063 2006-08-22  Bruno Haible  <bruno@clisp.org>
64064
64065         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
64066         <utmpx.h> exists.
64067
64068 2006-08-22  Bruno Haible  <bruno@clisp.org>
64069
64070         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
64071         <utmpx.h> exists.
64072
64073 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
64074
64075         BeOS portability.
64076         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
64077         exist.
64078         Problem reported by Bruno Haible.
64079
64080 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
64081
64082         Avoid the need for AC_LIBSOURCES in m4 macros.
64083         * modules/acl (EXTRA_DIST): Add acl.h.
64084         * modules/argmatch (Files): Add m4/argmatch.m4.
64085         (configure.ac): Add gl_ARGMATCH.
64086         (EXTRA_DIST): Renamed from lib_SOURCES, for
64087         consistency with the other modules.  Remove argmatch.c.
64088         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
64089         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
64090         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
64091         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
64092         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
64093         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
64094         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
64095         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
64096         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
64097         * modules/closeout (EXTRA_DIST): Add closeout.h.
64098         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
64099         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
64100         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
64101         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
64102         dirname.h; remove basename.c and stripslash.c.
64103         * modules/exclude (EXTRA_DIST): Add exclude.h.
64104         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
64105         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
64106         * modules/file-type (EXTRA_DIST): Add file-type.h.
64107         * modules/filemode (EXTRA_DIST): Add filemode.h.
64108         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
64109         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
64110         * modules/fpending (EXTRA_DIST): Add __fpending.h.
64111         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
64112         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
64113         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
64114         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
64115         * modules/getdate (EXTRA_DIST): Add getdate.c.
64116         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
64117         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
64118         * modules/getpass (EXTRA_DIST): Add getpass.h.
64119         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
64120         * modules/group-member (EXTRA_DIST): Add group-member.h.
64121         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
64122         * modules/hash (EXTRA_DIST): Add hash.h.
64123         * modules/human (EXTRA_DIST): Add human.h.
64124         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
64125         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
64126         * modules/lchown (EXTRA_DIST): Add lchown.h.
64127         * modules/long-options (EXTRA_DIST): Add long-options.h.
64128         * modules/lstat (EXTRA_DIST): Add lstat.h.
64129         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
64130         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
64131         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
64132         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
64133         * modules/memxor (EXTRA_DIST): Add memxor.h.
64134         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
64135         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
64136         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
64137         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
64138         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
64139         * modules/physmem (EXTRA_DIST): Add physmem.h.
64140         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
64141         * modules/posixver (EXTRA_DIST): Add posixver.h.
64142         * modules/quote (EXTRA_DIST): Add quote.h.
64143         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
64144         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
64145         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
64146         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
64147         regex_internal.h regexec.c.
64148         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
64149         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
64150         * modules/same (EXTRA_DIST): Add same.h.
64151         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
64152         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
64153         * modules/savedir (EXTRA_DIST): Add savedir.h.
64154         * modules/sha1 (EXTRA_DIST): Add sha1.h.
64155         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
64156         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
64157         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
64158         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
64159         * modules/strdup (EXTRA_DIST): Add strdup.h.
64160         * modules/strftime (EXTRA_DIST): Add strftime.h.
64161         * modules/strndup (EXTRA_DIST): Add strndup.h.
64162         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
64163         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
64164         * modules/time_r (EXTRA_DIST): Add time_r.h.
64165         * modules/timespec (EXTRA_DIST): Add timespec.h.
64166         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
64167         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
64168         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
64169         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
64170         * modules/userspec (EXTRA_DIST): Add userspec.h.
64171         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
64172         * modules/utimens (EXTRA_DIST): Add utimens.h.
64173         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
64174         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
64175         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
64176         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
64177         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
64178         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
64179         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
64180         * modules/yesno (EXTRA_DIST): Add yesno.h.
64181
64182 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
64183
64184         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
64185
64186         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
64187         * m4/dev-ino.m4, same-inode.m4: Remove.
64188
64189         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
64190         * m4/acl.m4 (AC_FUNC_ACL):
64191         * m4/backupfile.m4 (gl_BACKUPFILE):
64192         * m4/c-strtod.m4 (gl_C99_STRTOLD):
64193         * m4/canon-host.m4 (gl_CANON_HOST):
64194         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
64195         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
64196         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
64197         * m4/cloexec.m4 (gl_CLOEXEC):
64198         * m4/close-stream.m4 (gl_CLOSE_STREAM):
64199         * m4/closeout.m4 (gl_CLOSEOUT):
64200         * m4/dirfd.m4 (gl_FUNC_DIRFD):
64201         * m4/dirname.m4 (gl_DIRNAME):
64202         * m4/exclude.m4 (gl_EXCLUDE):
64203         * m4/exitfail.m4 (gl_EXITFAIL):
64204         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
64205         * m4/file-type.m4 (gl_FILE_TYPE):
64206         * m4/filemode.m4 (gl_FILEMODE):
64207         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
64208         * m4/fpending.m4 (gl_FUNC_FPENDING):
64209         * m4/fprintftime.m4 (gl_FPRINTFTIME):
64210         * m4/fts.m4 (gl_FUNC_FTS):
64211         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
64212         * m4/getdate.m4 (gl_GETDATE):
64213         * m4/gethrxtime.m4 (gl_GETHRXTIME):
64214         * m4/getpagesize.m4 (gl_GETPAGESIZE):
64215         * m4/getpass.m4 (gl_FUNC_GETPASS):
64216         * m4/gettime.m4 (gl_GETTIME):
64217         * m4/getugroups.m4 (gl_GETUGROUPS):
64218         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
64219         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
64220         * m4/hard-locale.m4 (gl_HARD_LOCALE):
64221         * m4/hash.m4 (gl_HASH):
64222         * m4/idcache.m4 (gl_IDCACHE):
64223         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
64224         * m4/lchown.m4 (gl_FUNC_LCHOWN):
64225         * m4/long-options.m4 (gl_LONG_OPTIONS):
64226         * m4/lstat.m4 (gl_FUNC_LSTAT):
64227         * m4/md5.m4 (gl_MD5):
64228         * m4/memcasecmp.m4 (gl_MEMCASECMP):
64229         * m4/memcoll.m4 (gl_MEMCOLL):
64230         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
64231         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
64232         * m4/memxor.m4 (gl_MEMXOR):
64233         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
64234         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
64235         * m4/modechange.m4 (gl_MODECHANGE):
64236         * m4/mountlist.m4 (gl_MOUNTLIST):
64237         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64238         * m4/openat.m4 (gl_FUNC_OPENAT):
64239         * m4/pathmax.m4 (gl_PATHMAX):
64240         * m4/physmem.m4 (gl_PHYSMEM):
64241         * m4/posixtm.m4 (gl_POSIXTM):
64242         * m4/posixver.m4 (gl_POSIXVER):
64243         * m4/quote.m4 (gl_QUOTE):
64244         * m4/quotearg.m4 (gl_QUOTEARG):
64245         * m4/readtokens.m4 (gl_READTOKENS):
64246         * m4/readutmp.m4 (gl_READUTMP):
64247         * m4/regex.m4 (gl_REGEX):
64248         * m4/safe-read.m4 (gl_SAFE_READ):
64249         * m4/safe-write.m4 (gl_SAFE_WRITE):
64250         * m4/same.m4 (gl_SAME):
64251         * m4/save-cwd.m4 (gl_SAVE_CWD):
64252         * m4/savedir.m4 (gl_SAVEDIR):
64253         * m4/settime.m4 (gl_SETTIME):
64254         * m4/sha1.m4 (gl_SHA1):
64255         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
64256         * m4/stat-macros.m4 (gl_STAT_MACROS):
64257         * m4/stat-time.m4 (gl_STAT_TIME):
64258         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
64259         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
64260         * m4/strdup.m4 (gl_FUNC_STRDUP):
64261         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
64262         * m4/strndup.m4 (gl_FUNC_STRNDUP):
64263         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
64264         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
64265         * m4/time_r.m4 (gl_TIME_R):
64266         * m4/timespec.m4 (gl_TIMESPEC):
64267         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
64268         * m4/unlinkdir.m4 (gl_UNLINKDIR):
64269         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
64270         * m4/userspec.m4 (gl_USERSPEC):
64271         * m4/utimecmp.m4 (gl_UTIMECMP):
64272         * m4/utimens.m4 (gl_UTIMENS):
64273         * m4/xalloc.m4 (gl_XALLOC):
64274         * m4/xgetcwd.m4 (gl_XGETCWD):
64275         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
64276         * m4/xreadlink.m4 (gl_XREADLINK):
64277         * m4/xstrtod.m4 (gl_XSTRTOD):
64278         * m4/yesno.m4 (gl_YESNO):
64279         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
64280         to get the necessary .h files and whatnot.
64281
64282 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
64283             Bruno Haible  <bruno@clisp.org>
64284
64285         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
64286         /bin/sh understanding of '!' conditional negation.
64287
64288 2006-08-21  Jim Meyering  <jim@meyering.net>
64289
64290         * modules/openat (Depends-on): Really alphabetize.
64291
64292         * modules/acl (Depends-on): Add error and quote.
64293
64294         * check-module (find_included_lib_files): Add at-func.c to the
64295         ok-to-include-more-than-once white list.
64296
64297         * modules/openat (Depends-on): Add lstat.  Alphabetize.
64298
64299 2006-08-21  Bruno Haible  <bruno@clisp.org>
64300
64301         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64302         Emit a pkgdata_DATA variable only if some snippets add contents to it.
64303         Reported by Martin Lambers <marlam@marlam.de>.
64304
64305 2006-08-21  Bruno Haible  <bruno@clisp.org>
64306
64307         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
64308         specify an installation location, don't emit a noinst_LIBRARIES or
64309         noinst_LTLIBRARIES assignment.
64310
64311 2006-08-21  Bruno Haible  <bruno@clisp.org>
64312
64313         BeOS portability.
64314         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
64315         BeOS has mbrtowc() but no <wctype.h>.
64316
64317 2006-08-21  Bruno Haible  <bruno@clisp.org>
64318
64319         BeOS portability.
64320         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
64321         exist.
64322
64323 2006-08-21  Bruno Haible  <bruno@clisp.org>
64324
64325         BeOS portability.
64326         * lib/mbchar.h: Include <wctype.h> only if it exists.
64327
64328 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64329
64330         Remove files that are no longer needed by their respective modules.
64331         * m4/obstack.m4: Remove.
64332         * m4/strerror_r.m4: Remove.
64333         * m4/uint32_t.m4: Remove.
64334         * m4/uintptr_t.m4: Remove.
64335         * m4/ullong_max.m4: Remove.
64336         * m4/xstrtoimax.m4: Remove.
64337         * m4/xstrtoumax.m4: Remove.
64338
64339         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
64340         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
64341         dependencies now capture this.
64342
64343         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
64344         Do not use AC_LIBSOURCES, since gnulib modules now do this.
64345         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
64346         * m4/human.m4 (gl_HUMAN): Likewise.
64347         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
64348         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
64349
64350         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
64351
64352         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
64353         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
64354         stdint.
64355         * m4/human.m4 (gl_HUMAN): Likewise.
64356         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
64357         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
64358         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
64359         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
64360         * m4/xstrtol (gl_XSTRTOL): Likewise.
64361
64362         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
64363         AC_TYPE_LONG_LONG_INT.
64364         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
64365         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
64366         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
64367         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
64368
64369         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
64370         on stdbool.
64371
64372         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
64373         (gl_PREREQ_XSTRTOUL): Remove.
64374
64375         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
64376
64377         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
64378         mode.
64379
64380 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64381
64382         Add and change modules to make it easier for coreutils to use
64383         gnulib-tool.
64384         * modules/backupfile (Files): Remove m4/d-ino.m4.
64385         (Depends-on): Add d-ino.
64386         * modules/cycle-check (Depends-on): Add stdint.
64387         (lib_SOURCES): Add cycle-check.h.
64388         * modules/d-ino: New module.
64389         * modules/d-type: New module.
64390         * modules/error (Files): Remove m4/strerror_r.m4.
64391         * modules/filemode (Files): Add m4/st_dm_mode.m4.
64392         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
64393         m4/inttypes_h.m4, m4/uintmax_t.m4.
64394         (Depends-on): Add stdint.
64395         (lib_SOURCES): Add fsusage.h.
64396         * modules/getcwd (Files): Remove d-ino.m4.
64397         (Depends-on): Add d-ino.
64398         * modules/getndelim2 (Depends-on): Add stdint.
64399         * modules/glob (Files): Remove m4/d-type.m4.
64400         (Depends-on): Add d-type.
64401         * modules/host-os: New module.
64402         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
64403         m4/inttypes_h.m4, m4/uintmax_t.m4.
64404         * Depends-on: Add stdint.
64405         (lib_SOURCES): Add human.h.
64406         * modules/inttostr (Files): Remove m4/intmax_t.m4,
64407         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
64408         m4/uintmax_t.m4, m4/ulonglong.m4.
64409         (Depends-on): Add stdint.
64410         (EXTRA_DIST): Add inttostr.h.
64411         * modules/lchmod: New module.
64412         * modules/link-follow: New module.
64413         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
64414         (Depends-on): Add lchmod.
64415         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
64416         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
64417         (Depends-on): Add stdint.
64418         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
64419         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
64420         (Depends-on): Add stdint.
64421         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
64422         * modules/perl: New module.
64423         * modules/regex (Depends-on): Add stdint.
64424         * modules/rmdir-errno: New module.
64425         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
64426         m4/intmax_t.m4.
64427         (Depends-on): Add stdint.
64428         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
64429         m4/uintmax_t.m4.
64430         (Depends-on): Add stdint.
64431         * modules/unlink-busy: New module.
64432         * modules/utimecmp (Depends-on): Add stdint.
64433         * modules/uptime: New module.
64434         * modules/winsz-ioctl: New module.
64435         * modules/winsz-termios: New module.
64436         * modules/xnanosleep (Depends-on): Add nanosleep.
64437         * modules/ullong_max: Remove.
64438         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
64439         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
64440         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
64441         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
64442         (Depends-on): Add inttypes.
64443         (lib_SOURCES): Add xstrtol.h.
64444         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
64445         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
64446         * MODULES.html.sh: Move 'assert' into the assert section.
64447         Move 'dummy' into the linking section.
64448         Remove ullong_max.
64449         Add section for compatibility checks for POSIX:2001 functions,
64450         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
64451         winsz-ioctl, and winsz-termios into it.
64452         Add lchmod.
64453         Add top-level Misc section and put host-os, perl, and uptime
64454         into it.
64455
64456 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64457
64458         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
64459         now assume the stdint module.  Do not include inttypes.h.
64460         * lib/fsusage.h: Likewise.
64461         * lib/getndelim2.c: Likewise.
64462         * lib/human.h: Likewise.
64463         * lib/inttostr.h: Likewise.
64464         * lib/obstack.c: Likewise.
64465         * lib/regex_internal.h: Likewise.
64466         * lib/tempname.c: Likewise.
64467         * lib/utimecmp.c: Likewise.
64468         * lib/xstrtol.h: Likewise.
64469
64470         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
64471
64472         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
64473         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
64474         * lib/xtime.h: Likewise.
64475
64476 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64477
64478         * modules/openat (Files): Add lib/fchmodat.c.
64479         Fixes problem reported by Jay Youngman.
64480
64481 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64482
64483         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
64484         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
64485
64486 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
64487             Bruno Haible  <bruno@clisp.org>
64488
64489         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
64490         and is a script that invokes bison. Tighten the code. Add comments.
64491
64492 2006-08-18  Jim Meyering  <jim@meyering.net>
64493
64494         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
64495         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
64496         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
64497         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
64498
64499 2006-08-18  Bruno Haible  <bruno@clisp.org>
64500
64501         * modules/bison-i18n: New file.
64502         * MODULES.html.sh (Internationalization functions): Add it.
64503
64504 2006-08-18  Bruno Haible  <bruno@clisp.org>
64505
64506         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
64507         sys/statvfs.h. When getmntinfo was found, check its declaration and
64508         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
64509
64510 2006-08-18  Bruno Haible  <bruno@clisp.org>
64511
64512         * m4/bison-i18n.m4: New file, from bison.
64513
64514 2006-08-18  Bruno Haible  <bruno@clisp.org>
64515
64516         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
64517         (ME_DUMMY): Treat "kernfs" as a dummy.
64518         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
64519
64520 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
64521
64522         Update from coreutils.
64523
64524         2006-08-15  Jim Meyering  <jim@meyering.net>
64525
64526         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
64527
64528         2006-01-17  Jim Meyering  <jim@meyering.net>
64529
64530         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
64531
64532         2006-01-11  Jim Meyering  <jim@meyering.net>
64533
64534         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
64535         Check for the lchmod function.
64536
64537 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
64538
64539         Update from coreutils.
64540
64541         * lib/__fpending.h: Add copyright notice.
64542         * lib/fprintftime.h: Likewise.
64543         * lib/savedir.c: Use (C) in copyright notice.
64544         * lib/savedir.h: Likewise.
64545
64546         2006-08-15  Jim Meyering  <jim@meyering.net>
64547
64548         * lib/at-func.c: New file, with the logic of all emulated at-functions.
64549         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
64550         in support of the EXPECTED_ERRNO macro.
64551         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
64552         definitions.  Instead, define the appropriate symbols and include
64553         "at-func.c".
64554         * lib/mkdirat.c (mkdirat): Likewise.
64555         * lib/fchmodat.c (fchmodat): Likewise.
64556         (ENOSYS): Remove definition.
64557         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
64558         it.  Don't include "unistd--.h" -- it wasn't ever used.
64559
64560         2006-01-17  Jim Meyering  <jim@meyering.net>
64561
64562         Rewrite fts.c not to change the current working directory,
64563         by using openat, fstatat, fdopendir, etc..
64564
64565         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
64566         (HAVE_OPENAT_SUPPORT): Define.
64567         [_LIBC] (fchdir): Don't undef or define; no longer used.
64568         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
64569         Now, this `function' always succeeds, and consumes its file descriptor
64570         parameter -- so callers must not close such FDs.  Update callers.
64571         (diropen_fd, opendirat, cwd_advance_fd): New functions.
64572         (diropen): Add parameter, SP.  Adjust all callers.
64573         Implement using diropen_fd, rather than open.
64574         (fts_open): Initialize new member, fts_cwd_fd.
64575         Remove fts_rft-setting code.
64576         (fts_close): Close fts_cwd_fd, if necessary.
64577         (__opendir2): Define in terms of opendir or opendirat,
64578         depending on whether the FST_NOCHDIR flag is set.
64579         (fts_build): Since fts_safe_changedir consumes its FD, and since
64580         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
64581         and close the dup'd file descriptor upon failure.
64582         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
64583         (fts_safe_changedir): Tweak semantics to reflect that this function
64584         now calls cwd_advance_fd and hence consumes its FD argument.
64585         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
64586         [struct FTS] (fts_rft): Remove now-unused member.
64587         [struct FTS] (fts_cycle.state): Improve comment.
64588
64589         * lib/openat.c (openat_needs_fchdir): New function.
64590         * lib/openat.h (openat_needs_fchdir): Declare it.
64591
64592 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
64593
64594         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
64595         Problem and fix reported by Pádraig Brady in
64596         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
64597
64598 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64599
64600         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
64601
64602 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64603
64604         * lib/memcoll.c (memcoll): Optimize for the common case where the
64605         arguments are bytewise equal.
64606
64607 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64608
64609         * doc/regexprops-generic.texi: Add a copyright notice.
64610
64611 2006-08-15  Bruno Haible  <bruno@clisp.org>
64612
64613         * modules/tmpdir (License): Change to LGPL.
64614
64615 2006-08-15  Bruno Haible  <bruno@clisp.org>
64616
64617         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
64618         module.
64619
64620 2006-08-14  Simon Josefsson  <jas@extundo.com>
64621
64622         * config/srclist.txt: Add gnupload.
64623
64624 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64625
64626         Change copyright notice from LGPL 2 to GPL 2, since that's the
64627         standard form used in the gnulib repository.
64628         * tests/test-lock.c: Likewise.
64629         * tests/test-stdint.c: Likewise.
64630         * tests/test-tls.c: Likewise.
64631
64632         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
64633         prelude-manager.  User shorter URLs for GNU projects, without '?'.
64634         Add copyright notice.
64635
64636         * check-module: Add copyright notice.  Output a copyright
64637         notice if "--version" is specified.
64638         * modules/COPYING: New file.
64639         * tests/test-getaddrinfo.c: Add copyright notice.
64640         * tests/test-verify.c: Likewise.
64641
64642 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64643
64644         Change copyright notice from LGPL 2 to GPL 2, since that's the
64645         standard form used in the gnulib repository.
64646         * lib/lock.c: LGPL -> GPL.
64647         * lib/lock.h: Likewise.
64648         * lib/strnlen1.c: Likewise.
64649         * lib/strnlen1.h: Likewise.
64650         * lib/tls.c: Likewise.
64651         * lib/tls.h: Likewise.
64652         * lib/tmpdir.c: Likewise.
64653
64654         * lib/TODO: Remove; this belongs only in coreutils.
64655
64656 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64657
64658         Add copyright notices to long-enough files that lack them, since
64659         otherwise the files aren't clearly free.  Use the same notice that
64660         getdate.texi already uses.
64661         * doc/alloca-opt.texi: Add copyright notice.
64662         * doc/alloca.texi: Likewise.
64663         * doc/ctime.texi: Likewise.
64664         * doc/functions.texi: Likewise.
64665         * doc/gcd.texi: Likewise.
64666         * doc/gnulib-tool.texi: Likewise.
64667         * doc/inet_ntoa.texi: Likewise.
64668         * doc/visibility.texi: Likewise.
64669
64670         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
64671         * doc/quote.texi: Add copyright notice.
64672
64673         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
64674         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
64675         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
64676         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
64677         is now obsolete, and give a pointer to the Sun list.
64678         Add copyright notice.
64679
64680 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64681
64682         * config/srclistvars.sh: Add copyright notice.
64683
64684 2006-08-14  Eric Blake  <ebb9@byu.net>
64685
64686         Import the following change from libc:
64687
64688         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
64689
64690         Upstream bug 2997.
64691         * lib/misc/error.c: Add space between program name and message if file
64692         name is missing.
64693
64694 2006-08-12  Karl Berry  <karl@gnu.org>
64695
64696         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
64697         remove, these originate in gnulib now.
64698
64699 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64700
64701         * doc/Makefile (standards.info standards.html standards.dvi):
64702         Also depend on make-stds.texi.
64703
64704 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64705
64706         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
64707         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
64708
64709         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
64710         in wchar_t.  Problem reported by Eric Blake.
64711
64712         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
64713         LEN is smaller than SIZE.  Suggested by Bruno Haible.
64714         Also, help the compiler to keep LEN in a register.
64715
64716 2006-08-11  Eric Blake  <ebb9@byu.net>
64717
64718         * users.txt: Sort.  Add tar.
64719
64720 2006-08-11  Bruno Haible  <bruno@clisp.org>
64721
64722         * users.txt: New file.
64723
64724 2006-08-11  Bruno Haible  <bruno@clisp.org>
64725
64726         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
64727         before <wchar.h>. Needed for OSF/1 and BSD/OS.
64728
64729 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64730
64731         * modules/snprintf (Depends-on): Remove minmax.
64732         (Maintainer): Add self and Bruno.
64733
64734 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64735
64736         * lib/.cppi-disable: Add snprintf.h, socket_.h.
64737         * lib/snprintf.c: Include <errno.h> and <limits.h>.
64738         (EOVERFLOW): Define if the system does not.
64739         Do not include "minmax.h"; it wasn't used.
64740         (snprintf): Don't assume size_t promotes to an unsigned type.
64741         Fix bug when generated string was too long for the buffer: the
64742         buffer's contents are supposed to be the initial prefix of the
64743         output.  Don't assume vasnprintf returns EOVERFLOW if the size
64744         exceeds INT_MAX; do the check ourselves.
64745
64746         Import the following changes from libc:
64747
64748         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
64749
64750         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
64751         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
64752         set wc to the byte which couldn't be converted.
64753         (re_string_reconstruct): Don't clear valid_raw_len before calling
64754         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
64755         tip_context using re_string_context_at.
64756
64757         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
64758
64759         * lib/posix/regex.h: g++ still cannot handled [restrict].
64760
64761         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
64762
64763         * lib/posix/regex.h: Remove special handling for VMS.
64764
64765 2006-08-10  Jim Meyering  <jim@meyering.net>
64766
64767         * modules/same-inode: New module.
64768         * modules/dev-ino: New module.
64769         * modules/cycle-check: Depend on these modules, rather than simply
64770         including their .h files.
64771         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
64772         required via m4/cycle-check.m4.
64773         * modules/same: Depend on new same-inode module, rather than
64774         including same-inode.h.
64775         * modules/chdir-safer: New file.
64776
64777         * modules/chown (Depends-on): Add stat-macros.
64778
64779 2006-08-10  Jim Meyering  <jim@meyering.net>
64780
64781         * m4/cycle-check.m4: New file.
64782         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
64783         * m4/dev-ino.m4, m4/same-inode.m4: New files.
64784
64785 2006-08-10  Eric Blake  <ebb9@byu.net>
64786
64787         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
64788         in from original proposal.
64789
64790 2006-08-10  Eric Blake  <ebb9@byu.net>
64791         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
64792
64793         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
64794         namespace.
64795
64796 2006-08-10  Bruno Haible  <bruno@clisp.org>
64797
64798         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
64799         as well.
64800
64801 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64802
64803         Sync from coreutils.
64804
64805         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
64806
64807         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
64808         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
64809
64810 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64811
64812         * modules/restrict: Remove; no longer needed now that we assume
64813         Autoconf 2.59 or later.
64814         * MODULES.html.sh: Remove 'restrict'.
64815         * modules/argp (Depends-on): Remove 'restrict'.
64816         * modules/base64 (Depends-on): Likewise.
64817         * modules/gc (Depends-on): Likewise.
64818         * modules/getaddrinfo (Depends-on): Likewise.
64819         * modules/glob (Depends-on): Likewise.
64820         * modules/inet_ntop (Depends-on): Likewise.
64821         * modules/inet_pton (Depends-on): Likewise.
64822         * modules/memxor (Depends-on): Likewise.
64823         * modules/regex (Depends-on): Likewise.
64824         * modules/strtok_r (Depends-on): Likewise.
64825         * modules/time_r (Depends-on): Likewise.
64826
64827 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64828
64829         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
64830         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
64831         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
64832         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
64833         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
64834         * m4/memxor.m4 (gl_MEMXOR): Likewise.
64835         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
64836         gl_C_RESTRICT replaced by AC_C_RESTRICT.
64837
64838         Merge from coreutils.
64839         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
64840         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
64841         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64842         * m4/time_r.m4 (gl_TIME_R): Likewise.
64843
64844 2006-08-09  Karl Berry  <karl@gnu.org>
64845
64846         * config/srclist.txt: no more gettext-tools, per Bruno.
64847
64848 2006-08-08  Eric Blake  <ebb9@byu.net>
64849
64850         * modules/verror: New module.
64851         * MODULES.html.sh: Document it.
64852
64853 2006-08-08  Eric Blake  <ebb9@byu.net>
64854
64855         * lib/verror.h, lib/verror.c: New files.
64856
64857 2006-08-08  Eric Blake  <ebb9@byu.net>
64858
64859         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
64860         verror_at_line output complies with GNU Coding Standards even when
64861         file is NULL.
64862
64863 2006-08-07  Bruno Haible  <bruno@clisp.org>
64864
64865         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
64866         versions of AIX.
64867         Reported by Ralf Wildenhues.
64868
64869 2006-08-07  Bruno Haible  <bruno@clisp.org>
64870
64871         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
64872         in an AC_DEFUN. Needed so that the autoconf snippets can use
64873         AC_REQUIRE.
64874
64875 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64876
64877         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64878         Initialize pkgdata_DATA.
64879         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
64880         overriding it.
64881
64882 2006-08-06  Eric Blake  <ebb9@byu.net>
64883
64884         * lib/error.h: Fold in some upstream changes from glibc.
64885         * lib/error.c: Likewise.
64886
64887 2006-08-04  Bruno Haible  <bruno@clisp.org>
64888
64889         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64890         Make the mostlyclean-local rule depend on mostlyclean-generic.
64891         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
64892
64893 2006-07-31  Bruno Haible  <bruno@clisp.org>
64894
64895         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
64896         <stdlib.h>, <string.h>.
64897
64898 2006-07-30  Bruno Haible  <bruno@clisp.org>
64899
64900         * modules/readlink (License): Change to LGPL.
64901
64902 2006-07-30  Bruno Haible  <bruno@clisp.org>
64903
64904         * modules/javaversion (Makefile.am): Distribute javaversion.java and
64905         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
64906         set PKGDATADIR to point to it.
64907
64908 2006-07-30  Bruno Haible  <bruno@clisp.org>
64909
64910         * modules/csharpexec (configure.ac): Comment out macro invocation.
64911         * modules/javaexec (configure.ac): Likewise.
64912         * modules/javacomp-script (configure.ac): Likewise.
64913
64914         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
64915
64916 2006-07-30  Bruno Haible  <bruno@clisp.org>
64917
64918         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
64919         linked-list.
64920
64921 2006-07-30  Bruno Haible  <bruno@clisp.org>
64922
64923         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
64924
64925 2006-07-30  Bruno Haible  <bruno@clisp.org>
64926
64927         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64928         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
64929         get removed.
64930
64931 2006-07-29  Bruno Haible  <bruno@clisp.org>
64932
64933         Make it possible for gnulib-tool to work with locally modified or
64934         augmented gnulib repositories.
64935         * gnulib-tool (func_usage): Document --local-dir option.
64936         (local_gnulib_dir): New variable.
64937         Handle --local-dir option.
64938         (func_lookup_file): New function.
64939         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
64940         (func_get_description, func_get_filelist, func_get_description,
64941         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
64942         func_get_automake_snippet, func_get_include_directive,
64943         func_get_license, func_get_maintainer): Use func_lookup_file.
64944         (func_import, func_create_testdir): Use func_lookup_file.
64945
64946 2006-07-29  Bruno Haible  <bruno@clisp.org>
64947
64948         * modules/setenv (Depends-on): Add unistd.
64949
64950 2006-07-29  Bruno Haible  <bruno@clisp.org>
64951
64952         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
64953
64954 2006-07-29  Bruno Haible  <bruno@clisp.org>
64955
64956         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
64957
64958 2006-07-29  Bruno Haible  <bruno@clisp.org>
64959
64960         * gnulib-tool (import, update): If there is no Makefile.am, look at
64961         aclocal.m4, instead of bailing out.
64962
64963 2006-07-29  Bruno Haible  <bruno@clisp.org>
64964
64965         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
64966         Categorize the options by when they are useful.
64967
64968 2006-07-29  Bruno Haible  <bruno@clisp.org>
64969
64970         * gnulib-tool (func_usage): Document option --no-libtool.
64971         Handle option --no-libtool.
64972         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
64973         for changed semantics of $libtool variable.
64974         (func_import): Likewise. If libtool is not used, show this through
64975         an option --no-libtool.
64976         (func_create_testdir): Update.
64977
64978 2006-07-29  Bruno Haible  <bruno@clisp.org>
64979
64980         * gnulib-tool (func_import): Extend error message about missing
64981         --doc-base.
64982
64983 2006-07-29  Bruno Haible  <bruno@clisp.org>
64984
64985         * gnulib-tool (func_import): Don't create the $docbase directory if
64986         there is no file to store there.
64987
64988 2006-07-29  Bruno Haible  <bruno@clisp.org>
64989
64990         * gnulib-tool (autoconf_minversion): If a --dir option is given and
64991         relevant, look for configure.ac there, not in the current directory.
64992         Also use a simple search for AC_PREREQ, not "autoconf --trace".
64993
64994 2006-07-29  Bruno Haible  <bruno@clisp.org>
64995
64996         * gnulib-tool (SORT): New variable.
64997         (func_usage): Undocument --assume-autoconf option.
64998         Remove --assume-autoconf option handling.
64999         (autoconf_minversion): Determine from the contents of configure.ac.
65000         (func_import): Remove autoconf_minversion handling.
65001         Suggested by Eric Blake.
65002
65003 2006-07-29  Bruno Haible  <bruno@clisp.org>
65004
65005         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
65006
65007 2006-07-29  Bruno Haible  <bruno@clisp.org>
65008
65009         * config/srclist.txt (*setenv.[ch]): Remove rules.
65010
65011 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65012
65013         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
65014
65015 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65016
65017         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
65018         arpa/inet.h.
65019
65020 2006-07-28  Simon Josefsson  <jas@extundo.com>
65021
65022         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
65023         * modules/inet_pton (Depends-on): Likewise.
65024
65025 2006-07-28  Simon Josefsson  <jas@extundo.com>
65026
65027         * m4/netinet_in_h.m4: New file.
65028
65029 2006-07-28  Simon Josefsson  <jas@extundo.com>
65030
65031         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
65032         #include's.
65033
65034 2006-07-28  Simon Josefsson  <jas@extundo.com>
65035
65036         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
65037         #include's.
65038
65039 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
65040
65041         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
65042         setgid on directories only if they set these bits.
65043         * lib/modechange.h: Remove obsolete comment about masks.
65044
65045 2006-07-28  Eric Blake  <ebb9@byu.net>
65046
65047         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
65048         macro expansion.
65049
65050 2006-07-28  Bruno Haible  <bruno@clisp.org>
65051
65052         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
65053
65054 2006-07-28  Bruno Haible  <bruno@clisp.org>
65055
65056         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
65057
65058 2006-07-28  Bruno Haible  <bruno@clisp.org>
65059
65060         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
65061         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
65062         Define fallbacks.
65063         Avoids link error on FreeBSD 4.x.
65064         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
65065
65066         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
65067         encoding.
65068         * lib/mbswidth.c (iswcntrl): Likewise.
65069
65070 2006-07-27  Bruno Haible  <bruno@clisp.org>
65071
65072         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
65073         test.
65074
65075 2006-07-27  Bruno Haible  <bruno@clisp.org>
65076
65077         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
65078         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
65079         defined.
65080
65081 2006-07-26  Eric Blake  <ebb9@byu.net>
65082
65083         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
65084
65085 2006-07-26  Eric Blake  <ebb9@byu.net>
65086
65087         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
65088         like mingw that lack mkstemp.
65089         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
65090         avoid compilation warning on mingw.
65091
65092 2006-07-26  Bruno Haible  <bruno@clisp.org>
65093
65094         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
65095         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
65096         INT_FAST*_MIN, INTPTR_MIN.
65097
65098 2006-07-25  Bruno Haible  <bruno@clisp.org>
65099
65100         * modules/version-etc (Depends-on): Add stdarg.
65101
65102 2006-07-25  Bruno Haible  <bruno@clisp.org>
65103
65104         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
65105         complex commands.
65106
65107 2006-07-25  Bruno Haible  <bruno@clisp.org>
65108
65109         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
65110         defined in <stdarg.h> or config.h.
65111
65112 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
65113
65114         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
65115         (gl_STDIO_SAFER): Remove.
65116
65117 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
65118
65119         * MODULES.html.sh (File stream based Input/Output):
65120         Add fopen-safer, tmpfile-safer; remove stdio-safer.
65121         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
65122         * modules/fopen-safer, modules/tmpfile-safer: New files.
65123         * modules/stdio-safer: Remove.
65124
65125 2006-07-24  Bruno Haible  <bruno@clisp.org>
65126
65127         * modules/tmpdir: New file.
65128         * MODULES.html.sh (File system functions): Add it.
65129
65130 2006-07-24  Bruno Haible  <bruno@clisp.org>
65131
65132         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
65133         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
65134
65135 2006-07-24  Bruno Haible  <bruno@clisp.org>
65136
65137         * modules/clean-temp: New file.
65138
65139 2006-07-24  Bruno Haible  <bruno@clisp.org>
65140
65141         * m4/tmpdir.m4: New file, from GNU gettext.
65142
65143 2006-07-24  Bruno Haible  <bruno@clisp.org>
65144
65145         * lib/tmpdir.h: New file, from GNU gettext.
65146         * lib/tmpdir.c: New file, from GNU gettext.
65147
65148 2006-07-24  Bruno Haible  <bruno@clisp.org>
65149
65150         * lib/clean-temp.h: New file, from GNU gettext.
65151         * lib/clean-temp.c: New file, from GNU gettext.
65152
65153 2006-07-23  Eric Blake  <ebb9@byu.net>
65154
65155         * modules/stdio-safer (Files): Add tmpfile-safer.c.
65156         (Depends-on): Add binary-io.
65157
65158 2006-07-23  Eric Blake  <ebb9@byu.net>
65159
65160         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
65161
65162 2006-07-23  Eric Blake  <ebb9@byu.net>
65163
65164         * lib/tmpfile-safer.c: New file.
65165         * lib/stdio-safer.h (fopen_safer): Add prototype.
65166         * lib/stdio--.h (tmpfile): Make safer.
65167
65168 2006-07-23  Bruno Haible  <bruno@clisp.org>
65169
65170         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
65171         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
65172         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
65173         gl_linked_remove_at): Use it.
65174
65175 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65176         and Simon Josefsson <jas@extundo.com>
65177
65178         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
65179
65180         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
65181
65182 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
65183
65184         * modules/close-stream: New file.
65185         * modules/closeout (Description): Make it clear that it exits
65186         with a diagnostic on error.
65187         (Depends-on): Add close-stream.  Remove fpending, stdbool.
65188         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
65189
65190 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
65191
65192         * m4/close-stream.m4: New file.
65193
65194 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
65195
65196         * lib/close-stream.c, lib/close-stream.h: New files.
65197
65198 2006-07-22  Bruno Haible  <bruno@clisp.org>
65199
65200         Merge from GNU gettext 0.15.
65201
65202         2006-05-01  Bruno Haible  <bruno@clisp.org>
65203
65204                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
65205
65206         2006-07-22  Bruno Haible  <bruno@clisp.org>
65207
65208                 * modules/javaversion: New file.
65209                 * MODULES.html.sh (Java): Add javaversion.
65210
65211         2006-03-12  Bruno Haible  <bruno@clisp.org>
65212
65213                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
65214
65215         2005-12-04  Bruno Haible  <bruno@clisp.org>
65216
65217                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
65218                 (untested).
65219
65220         2006-06-21  Bruno Haible  <bruno@clisp.org>
65221
65222                 Avoid warnings from recent versions of mcs.
65223                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
65224                 -o, -L, -r any more. Use options documented since mcs-1.0
65225                 instead. Similarly for -g.
65226
65227         2005-12-04  Bruno Haible  <bruno@clisp.org>
65228
65229                 * build-aux/csharpcomp.sh.in: Suffix for resources is
65230                 .resources, not .resource.
65231
65232         2005-07-09  Bruno Haible  <bruno@clisp.org>
65233
65234                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
65235                 add a .dll suffix.
65236                 Reported by Mark Junker <mjscod@gmx.de>.
65237
65238         2006-07-22  Bruno Haible  <bruno@clisp.org>
65239
65240                 * modules/gettext: Upgrade to gettext-0.15.
65241                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
65242                 m4/visibility.m4.
65243                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
65244
65245 2006-07-22  Bruno Haible  <bruno@clisp.org>
65246
65247         Merge from GNU gettext 0.15.
65248
65249         2006-03-25  Bruno Haible  <bruno@clisp.org>
65250
65251                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
65252
65253         2006-07-21  Bruno Haible  <bruno@clisp.org>
65254
65255                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
65256                 "1.1".
65257
65258         2006-05-09  Bruno Haible  <bruno@clisp.org>
65259
65260                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
65261                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
65262                 for the conftestver execution.
65263
65264         2006-05-01  Bruno Haible  <bruno@clisp.org>
65265
65266                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
65267                 optional target-version argument. Verify that the compiler
65268                 groks source of the specified source-version, or add -source
65269                 option as necessary. Verify that the compiler produces
65270                 bytecode in the specified target-version, or add -target and
65271                 -source options as necessary. Make the result of the test
65272                 available as variable CONF_JAVAC. Also log error output in
65273                 config.log.
65274
65275         2006-03-11  Bruno Haible  <bruno@clisp.org>
65276
65277                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
65278
65279         2006-05-09  Bruno Haible  <bruno@clisp.org>
65280
65281                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
65282                 CLASSPATH_SEPARATOR to a semicolon.
65283
65284         2006-03-12  Bruno Haible  <bruno@clisp.org>
65285
65286                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
65287                 available as variable CONF_JAVA, for subsequent autoconf
65288                 tests. Also log error output in config.log.
65289
65290         2006-07-19  Bruno Haible  <bruno@clisp.org>
65291
65292                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
65293                 that getline works on glibc2 systems. Needed to avoid trouble
65294                 in relocatable.c.
65295                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
65296
65297         2005-12-04  Bruno Haible  <bruno@clisp.org>
65298
65299                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
65300                 launcher (untested).
65301
65302         2005-12-04  Bruno Haible  <bruno@clisp.org>
65303
65304                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
65305
65306         2006-07-22  Bruno Haible  <bruno@clisp.org>
65307
65308                 * gettext.m4: Update from GNU gettext-0.15.
65309                 * nls.m4: Likewise.
65310                 * po.m4: Likewise.
65311                 * inttypes-pri.m4: Likewise.
65312                 * inttypes-h.m4: Renamed from inttypes.m4.
65313                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
65314
65315 2006-07-22  Bruno Haible  <bruno@clisp.org>
65316
65317         Merge from GNU gettext 0.15.
65318
65319         2005-07-05  Bruno Haible  <bruno@clisp.org>
65320
65321                 * printf-args.c (printf_fetchargs): Work around broken
65322                 definition of wint_t on mingw.
65323
65324         2005-02-12  Bruno Haible  <bruno@clisp.org>
65325
65326                 * xallocsa.h: Add extern "C" for C++.
65327
65328         2006-05-17  Bruno Haible  <bruno@clisp.org>
65329
65330                 Cygwin portability.
65331                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
65332
65333         2006-04-30  Bruno Haible  <bruno@clisp.org>
65334
65335                 * progreloc.c: Include <mach-o/dyld.h> if available.
65336                 (find_executable): Use _NSGetExecutablePath when possible.
65337
65338         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
65339
65340                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
65341                 function.
65342
65343         2005-12-29  Bruno Haible  <bruno@clisp.org>
65344
65345                 * progreloc.c (set_program_name_and_installdir): Fix
65346                 compilation error.
65347
65348         2005-12-04  Bruno Haible  <bruno@clisp.org>
65349
65350                 Cygwin portability.
65351                 * progreloc.c: Include <windows.h> also on Cygwin.
65352                 (find_executable): Add support for Cygwin.
65353                 (set_program_name_and_installdir): Handle also platforms with
65354                 nonempty EXEEXT.
65355
65356         2006-07-11  Bruno Haible  <bruno@clisp.org>
65357
65358                 * javacomp.c: Fix a comment.
65359                 Reported by Jim Meyering.
65360
65361         2006-04-30  Bruno Haible  <bruno@clisp.org>
65362
65363                 * javacomp.h (compile_java_class): Add source_version,
65364                 target_version arguments.
65365                 * javacomp.c: Rewritten to choose only a compiler that
65366                 respects the specified source_version and target_version.
65367
65368         2006-06-27  Bruno Haible  <bruno@clisp.org>
65369
65370                 Assume correct S_ISDIR macro.
65371                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
65372
65373         2006-07-22  Bruno Haible  <bruno@clisp.org>
65374
65375                 * javaversion.h: New file, from GNU gettext.
65376                 * javaversion.c: New file, from GNU gettext.
65377                 * javaversion.java: New file, from GNU gettext.
65378                 * javaversion.class: New file, from GNU gettext.
65379
65380         2006-05-17  Bruno Haible  <bruno@clisp.org>
65381
65382                 Cygwin portability.
65383                 * javaexec.c (execute_java_class): Test for jview program
65384                 also on Cygwin.
65385
65386         2006-04-09  Bruno Haible  <bruno@clisp.org>
65387
65388                 * fatal-signal.c: Don't include string.h.
65389                 (at_fatal_signal): Use a copying loop instead of memcpy.
65390
65391         2005-12-04  Bruno Haible  <bruno@clisp.org>
65392
65393                 * csharpexec.c: Add support for 'clix' launcher (untested).
65394                 (execute_csharp_using_sscli): New function.
65395                 (execute_csharp_program): Call it.
65396
65397         2006-06-21  Bruno Haible  <bruno@clisp.org>
65398
65399                 Avoid warnings from recent versions of mcs.
65400                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
65401                 -o, -L, -r any more. Use options documented since mcs-1.0
65402                 instead. Similarly for -g.
65403
65404         2005-07-09  Bruno Haible  <bruno@clisp.org>
65405
65406                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
65407                 add a .dll suffix.
65408                 Reported by Mark Junker <mjscod@gmx.de>.
65409
65410         2006-06-17  Bruno Haible  <bruno@clisp.org>
65411
65412                 * config.charset: Update for NetBSD 3.0.
65413
65414         2006-05-17  Bruno Haible  <bruno@clisp.org>
65415
65416                 Cygwin portability.
65417                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
65418
65419         2006-05-16  Bruno Haible  <bruno@clisp.org>
65420
65421                 * localcharset.c [CYGWIN]: Include <windows.h>.
65422                 (get_charset_aliases): For Cygwin, return the same CPxxx
65423                 aliases list as under WIN32.
65424                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
65425                 the environment variables. Fall back to GetACP().
65426
65427         2006-04-05  Bruno Haible  <bruno@clisp.org>
65428
65429                 * config.charset: Update Juan Manuel Guerrero's address.
65430
65431         2005-02-12  Bruno Haible  <bruno@clisp.org>
65432
65433                 * allocsa.h: Add extern "C" for C++.
65434
65435         2005-02-10  Bruno Haible  <bruno@clisp.org>
65436
65437                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
65438                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
65439
65440         2006-07-22  Bruno Haible  <bruno@clisp.org>
65441
65442                 * gettext.h: Update to GNU gettext-0.15.
65443
65444 2006-07-22  Bruno Haible  <bruno@clisp.org>
65445
65446         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
65447         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
65448         lib-prefix.m4, longdouble.m4, ssize_t.m4.
65449
65450 2006-07-21  Eric Blake  <ebb9@byu.net>
65451
65452         * modules/stdlib-safer: New file.
65453         * MODULES.html.sh (File stream based Input/Output): Add
65454         stdlib-safer.
65455
65456 2006-07-21  Eric Blake  <ebb9@byu.net>
65457
65458         * lib/stdlib-safer.h: New file from coreutils, required by
65459         stdlib--.h.
65460
65461 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
65462
65463         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
65464
65465 2006-07-20  Bruno Haible  <bruno@clisp.org>
65466
65467         * gnulib-tool: Recognize new option --assume-autoconf.
65468         (autoconf_minversion): New variable.
65469         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
65470
65471 2006-07-20  Bruno Haible  <bruno@clisp.org>
65472
65473         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
65474
65475 2006-07-19  Derek R. Price  <derek@ximbiot.com>
65476
65477         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
65478         Reindent and repaginate.
65479
65480 2006-07-19  Derek Price  <derek@ximbiot.com>
65481
65482         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
65483         Correct grammar.
65484
65485 2006-07-17  Bruno Haible  <bruno@clisp.org>
65486
65487         * modules/list: New file.
65488         * modules/array-list: New file.
65489         * modules/carray-list, modules/carray-list-tests: New files.
65490         * modules/linked-list, modules/linked-list-tests: New files.
65491         * modules/avltree-list, modules/avltree-list-tests: New files.
65492         * modules/rbtree-list, modules/rbtree-list-tests: New files.
65493         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
65494         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
65495         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
65496         * modules/oset: New file.
65497         * modules/array-oset: New file.
65498         * modules/avltree-oset, modules/avltree-oset-tests: New files.
65499         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
65500         * tests/test-carray_list.c: New file.
65501         * tests/test-linked_list.c: New file.
65502         * tests/test-avltree_list.c: New file.
65503         * tests/test-rbtree_list.c: New file.
65504         * tests/test-linkedhash_list.c: New file.
65505         * tests/test-avltreehash_list.c: New file.
65506         * tests/test-rbtreehash_list.c: New file.
65507         * tests/test-avltree_oset.c: New file.
65508         * tests/test-rbtree_oset.c: New file.
65509         * MODULES.html.sh (Container data structures): New section.
65510
65511 2006-07-17  Bruno Haible  <bruno@clisp.org>
65512
65513         * m4/gl_list.m4: New file.
65514
65515 2006-07-17  Bruno Haible  <bruno@clisp.org>
65516
65517         * lib/gl_list.h: New file.
65518         * lib/gl_list.c: New file.
65519         * lib/gl_array_list.h: New file.
65520         * lib/gl_array_list.c: New file.
65521         * lib/gl_carray_list.h: New file.
65522         * lib/gl_carray_list.c: New file.
65523         * lib/gl_linked_list.h: New file.
65524         * lib/gl_linked_list.c: New file.
65525         * lib/gl_anylinked_list1.h: New file.
65526         * lib/gl_anylinked_list2.h: New file.
65527         * lib/gl_avltree_list.h: New file.
65528         * lib/gl_avltree_list.c: New file.
65529         * lib/gl_anyavltree_list1.h: New file.
65530         * lib/gl_anyavltree_list2.h: New file.
65531         * lib/gl_rbtree_list.h: New file.
65532         * lib/gl_rbtree_list.c: New file.
65533         * lib/gl_anyrbtree_list1.h: New file.
65534         * lib/gl_anyrbtree_list2.h: New file.
65535         * lib/gl_anytree_list1.h: New file.
65536         * lib/gl_anytree_list2.h: New file.
65537         * lib/gl_linkedhash_list.h: New file.
65538         * lib/gl_linkedhash_list.c: New file.
65539         * lib/gl_anyhash_list1.h: New file.
65540         * lib/gl_anyhash_list2.h: New file.
65541         * lib/gl_avltreehash_list.h: New file.
65542         * lib/gl_avltreehash_list.c: New file.
65543         * lib/gl_rbtreehash_list.h: New file.
65544         * lib/gl_rbtreehash_list.c: New file.
65545         * lib/gl_anytreehash_list1.h: New file.
65546         * lib/gl_anytreehash_list2.h: New file.
65547
65548         * lib/gl_oset.h: New file.
65549         * lib/gl_oset.c: New file.
65550         * lib/gl_array_oset.h: New file.
65551         * lib/gl_array_oset.c: New file.
65552         * lib/gl_avltree_oset.h: New file.
65553         * lib/gl_avltree_oset.c: New file.
65554         * lib/gl_rbtree_oset.h: New file.
65555         * lib/gl_rbtree_oset.c: New file.
65556         * lib/gl_anytree_oset.h: New file.
65557
65558 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
65559
65560         * m4/mkancesdirs.m4: New file.
65561         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
65562         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
65563         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
65564         it.
65565
65566 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
65567
65568         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
65569         * lib/mkancesdirs.h: New files.
65570         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
65571         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
65572         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
65573         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
65574         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
65575         callers changed.  Revamp internals significantly, by not
65576         attempting to create directories that are temporarily more
65577         permissive than the final results.  Do not attempt to use
65578         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
65579         This removes some race conditions, fixes some bugs, and simplifies
65580         things.  Use new dirchownmod function to do owner and mode changes.
65581         * lib/mkdir-p.h: Likewise.
65582         * lib/modechange.c (octal_to_mode): New function.
65583         (struct mode_change): New member mentioned.
65584         (make_node_op_equals): New arg mentioned.  All callers changed.
65585         (mode_compile): Keep track of which mode bits the user has explicitly
65586         mentioned.
65587         (mode_adjust): New arg DIR, so that we implement the X op correctly.
65588         New arg PMODE_BITS, to keep track of which mode bits the user
65589         mentioned; it treats S_ISUID and S_ISGID speciall.
65590         All callers changed.
65591         * lib/modechange.h: Likewise.
65592
65593 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
65594
65595         * MODULES.html.sh: Add mkancestors.
65596         * modules/mkancesdirs: New module.
65597         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
65598         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
65599         The chdir-safer and afs files are now orphans; I'll remove them
65600         unless someone speaks up.
65601         Add lib/dirchownmod.c, lib/dirchownmod.h.
65602         (Depends-on): Remove alloca, chown, save-cwd, dirname.
65603         Add lchown, mkancesdirs.
65604         (Maintainer): Add self.
65605
65606 2006-07-15  Karl Berry  <karl@gnu.org>
65607
65608         * gnulib-tool: help message wording/arrangement.
65609
65610 2006-07-14  Simon Josefsson  <jas@extundo.com>
65611
65612         * doc/gnulib.texi (Libtool and Windows): New section.
65613
65614 2006-07-12  Simon Josefsson  <jas@extundo.com>
65615
65616         * modules/gendocs (License): Fix license, approved by Karl.
65617
65618 2006-07-12  Eric Blake  <ebb9@byu.net>
65619
65620         * MODULES.html.sh: Add gendocs.
65621
65622 2006-07-11  Eric Blake  <ebb9@byu.net>
65623
65624         * modules/fdl: New module, to install doc/fdl.texi.
65625         * MODULES.html.sh: Add new section for documentation modules.
65626         * gnulib-tool: Avoid space-tab.
65627         (--doc-base): New option, to manage files from doc.
65628
65629 2006-07-11  Eric Blake  <ebb9@byu.net>
65630
65631         * m4/absolute-header.m4: Fix comments to match recent change.
65632
65633 2006-07-11  Eric Blake  <ebb9@byu.net>
65634
65635         * gnulib-tool: List --doc-base before --tests-base.
65636
65637 2006-07-11  Derek R. Price  <derek@ximbiot.com>
65638
65639         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
65640
65641 2006-07-11  Bruno Haible  <bruno@clisp.org>
65642
65643         * README: Mention where to put documentation.
65644
65645 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65646
65647         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
65648
65649 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
65650
65651         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
65652         to stdint.m4.
65653
65654 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
65655
65656         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
65657         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
65658         "no/such/file/stdint.h" when there is no such file, so that
65659         the resulting C code can be parsed by dodgy compilers.
65660         Problems reported by Bob Proulx.
65661
65662 2006-07-10  Derek R. Price  <derek@ximbiot.com>
65663
65664         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
65665         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
65666         macros into the GNU _D_EXACT_NAMLEN.
65667         * lib/savedir.c:  Likewise.
65668         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
65669
65670 2006-07-10  Derek R. Price  <derek@ximbiot.com>
65671         and Paul Eggert  <eggert@cs.ucla.edu>
65672
65673         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
65674         * m4/savedir.m4:
65675         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
65676         macros into the GNU _D_EXACT_NAMLEN.
65677
65678 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65679
65680         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
65681         around the absolute name, to work around a problem with the HP-UX
65682         11.23 native C compiler, reported by Bob Proulx.
65683
65684 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65685
65686         * doc/maintain.texi, make-stds.texi: Sync from
65687         <http://savannah.gnu.org/projects/gnustandards>.
65688
65689 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65690
65691         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
65692
65693 2006-07-09  Jim Meyering  <jim@meyering.net>
65694
65695         * m4/glob.m4: Remove a doubled word in a comment.
65696
65697 2006-07-09  Jim Meyering  <jim@meyering.net>
65698
65699         * lib/argp-pv.c: Remove a doubled word in a comment.
65700         * lib/check-version.c (check_version): Likewise.
65701         * lib/javacomp.c (compile_java_class): Likewise.
65702
65703 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
65704
65705         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
65706         for the benefit of people using Autoconf 2.60.  If you want to
65707         support older Autoconf versions you can copy m4/onceonly_2_57.m4
65708         (or m4/onceonly.m4, if pre-2.57) manually.
65709
65710 2006-07-08  Jim Meyering  <jim@meyering.net>
65711
65712         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
65713         comment.
65714         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
65715         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
65716         comment.
65717
65718 2006-07-08  Jim Meyering  <jim@meyering.net>
65719
65720         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
65721
65722 2006-07-07  Simon Josefsson  <jas@extundo.com>
65723
65724         * tests/test-crc.c: Change expected crc value, the test vector
65725         were probably computed using the old broken crc.c?
65726
65727 2006-07-06  Simon Josefsson  <jas@extundo.com>
65728
65729         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
65730         now the canonical place for the M4 file).
65731
65732         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
65733         from the sys_socket dependency now.
65734
65735         * modules/inet_pton (Files): Ditto.
65736
65737         * modules/inet_ntop (Files): Ditto.
65738
65739 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65740
65741         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
65742         not gl_PREREQ_GETUSERSHELL.
65743
65744 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65745
65746         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
65747         with only one argument, for Autoconf 2.60.
65748         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
65749         expand to nothing, so add a shell command to avoid syntax error.
65750         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
65751
65752 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65753
65754         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
65755
65756 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65757
65758         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
65759         no longer needed.  Check for isblank decl.
65760         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
65761         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
65762         of existence.
65763
65764 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65765
65766         * lib/getloadavg.c: Use __VMS, not VMS.
65767         * lib/getopt.c: Likewise.
65768         * lib/getpagesize.h: Likewise.
65769         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
65770         and probably does not work.
65771
65772 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65773
65774         * lib/.cppi-disable: Add wcwidth.
65775         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
65776         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
65777         (ISGRAPH): Remove.  All uses changed to isgraph.
65778         (FOLD) [!defined _LIBC]: Remove special case.
65779         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
65780         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
65781         HAVE_ISBLANK.
65782         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
65783         case.
65784
65785 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
65786
65787         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
65788         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
65789         brackets.  Other minor changes to suppress some compiler
65790         warnings.
65791
65792 2006-07-06  Derek R. Price  <derek@ximbiot.com>
65793         and Paul Eggert  <eggert@cs.ucla.edu>
65794
65795         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
65796         of invoking obsolescent AC_HEADER_DIRENT macro.
65797         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
65798         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
65799         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
65800         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
65801         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
65802         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
65803         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
65804         * m4/readdir.m4: Remove; no longer needed.
65805
65806 2006-07-06  Derek R. Price  <derek@ximbiot.com>
65807         and Paul Eggert  <eggert@cs.ucla.edu>
65808
65809         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
65810         Don't worry about this obsolete case any more.
65811         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
65812         directories.
65813         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
65814         worry about this obsolete case any more.
65815         * lib/fts.c: Likewise.
65816         * lib/getcwd.c: Likewise.
65817         * lib/glob.h: Likewise.
65818         * lib/savedir.c: Likewise.
65819
65820 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65821
65822         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
65823         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
65824         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
65825         needed.
65826         All uses removed.
65827         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65828         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
65829         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
65830         needed.
65831         * m4/getdate.m4 (gl_GETDATE): Likewise.
65832         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
65833         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
65834         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
65835         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65836         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
65837         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65838         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
65839         needed.
65840
65841 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65842
65843         * lib/memcasecmp.c: Include <limits.h>.
65844         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
65845         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
65846         Don't assume isdigit succeeds only on '0' through '9'.
65847
65848 2006-07-05  Eric Blake  <ebb9@byu.net>
65849
65850         * modules/getaddrinfo (Depends-on): Add snprintf.
65851
65852 2006-07-05  Eric Blake  <ebb9@byu.net>
65853
65854         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
65855         to avoid 'header present but could not be compiled' on cygwin.
65856
65857 2006-07-05  Eric Blake  <ebb9@byu.net>
65858
65859         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
65860         missing from netdb.h.
65861         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
65862
65863 2006-07-05  Derek R. Price  <derek@ximbiot.com>
65864
65865         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
65866         no longer needed.
65867         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
65868         * m4/getdate.m4 (gl_GETDATE): Likewise.
65869         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
65870         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
65871         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
65872         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65873         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65874
65875 2006-07-05  Derek R. Price  <derek@ximbiot.com>
65876
65877         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
65878         All uses of is_space replaced by isspace.
65879         * lib/exit.h: Don't talk about STDC_HEADERS.
65880         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
65881         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
65882         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
65883         replaced by isprint etc.
65884         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
65885         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
65886         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
65887         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
65888         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
65889         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
65890
65891 2006-07-05  Bruno Haible  <bruno@clisp.org>
65892
65893         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
65894         the function exists, before testing against AIX.
65895         Reported by Martin Lambers <marlam@marlam.de>.
65896
65897 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
65898
65899         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
65900         From Mark D. Baushke.
65901
65902 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
65903
65904         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
65905         to the absolute name, not just one, to bypass Sun C 5.8's
65906         "warning: #include of /usr/include/... may be non-portable".
65907
65908 2006-07-04  Eric Blake  <ebb9@byu.net>
65909
65910         * modules/dirname-tests: New test module.
65911         * tests/test-dirname.c: New file, replacing dirname.c
65912         TEST_DIRNAME section that was recently deleted.
65913
65914 2006-07-04  Bruno Haible  <bruno@clisp.org>
65915
65916         Assume ANSI C header files and <ctype.h> functions.
65917         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
65918         (mbsnwidth): Use isprint, iscntrl instead.
65919
65920 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65921
65922         Merge from coreutils.
65923         * MODULES.html.sh: Add xstrtold.
65924         * modules/xstrtold: New file.
65925         * modules/cycle-check (Files): Add lib/same-inode.h.
65926         * modules/dirname (Files): Add m4/double-slash-root.m4.
65927         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
65928         * modules/mkdir-p (Files): Add lib/same-inode.h.
65929         * modules/same (Files): Add lib/same-inode.h.
65930
65931 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65932
65933         * m4/absolute-header.m4: Renamed from full-header-path.m4.
65934         This is to keep the terminology clean; POSIX talks about
65935         "absolute pathnames", not "full pathnames", but the GNU
65936         Coding Standards say to use "path" for something else;
65937         so use "absolute" to keep both sides happy.
65938         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
65939         Set gl_absolute_header, not gl_full_header_path.
65940         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
65941         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
65942         All uses changed.
65943
65944         Merge from coreutils.
65945
65946         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
65947
65948         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
65949         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
65950         want to require the building of c-strtod.o.
65951         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
65952         needs -lm directly.
65953         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
65954
65955         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
65956
65957         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
65958         --as-needed option if available.  Problem reported by Albert Chin in
65959         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
65960         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
65961         cc merely issues a bunch of annoying warnings for --as-needed
65962         (this problem was reported by Bob Proulx).  Also, try linking with
65963         -lm to detect a bug in binutils 2.16 (this problem was reported
65964         by Ralf Wildenhues).
65965
65966         2006-06-18  Jim Meyering  <jim@meyering.net>
65967
65968         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
65969         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
65970         macro.
65971         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
65972         also check for glibc-2.4's abort-inducing bug.
65973
65974         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
65975         Low-probability clean-up should be to use rmdir to get rid of
65976         the just-created directory, not unlink.
65977
65978         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
65979         configure fail, and request a bug report to inform us about it.
65980         Add a comment that, barring reports to the contrary, in 2007 we'll
65981         assume ftruncate is universally available.
65982
65983         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
65984
65985         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
65986
65987         2006-03-12  Jim Meyering  <jim@meyering.net>
65988
65989         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
65990         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
65991         * m4/same.m4 (gl_SAME): Likewise.
65992         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
65993
65994         2006-03-11  Eric Blake  <ebb9@byu.net>
65995
65996         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
65997         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
65998         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
65999         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
66000
66001 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66002
66003         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
66004         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
66005         reported by Mark D. Baushke, one in
66006         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
66007
66008         Merge from coreutils.
66009
66010         * lib/.cppi-disable: Add stdint_.h.
66011         * lib/.cvsignore: Add stdint.h.
66012
66013         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
66014
66015         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
66016         both double and long double versions.
66017         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
66018         * lib/xstrtold.c: New file.
66019         * lib/xstrtod.h (xstrtold): New decl.
66020
66021         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
66022
66023         * lib/filemode.c (setst): Remove.
66024         (strmode): Rewrite to avoid setst.  This makes the code shorter,
66025         (arguably) clearer, and the generated code is a bit smaller on my
66026         Debian GNU/Linux stable x86 host.
66027
66028         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
66029
66030         * lib/filemode.c: Include "filemode.h" first, to test the interface.
66031         Assume that filemode.h includes sys/types.h and sys/stat.h.
66032         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
66033         (ftypelet): Reorder to put common cases first, for efficiency.
66034         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
66035         to do 'M'.
66036         (strmode): Renamed from mode_string, and now stores 12 bytes instead
66037         of 10, for compatibility with FreeBSD.  All callers changed.
66038         (filemodestring): Now stores 12 bytes instead of 10, and sets file
66039         types that can't be deduced solely from st_mode.  First arg is now a
66040         const pointer.
66041         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
66042         (strmode): Renamed from mode_string.
66043         (filemodestring): New decl.
66044         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
66045         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
66046         needed.
66047         (S_ISPORT, S_ISWHT): New macros, if not already defined.
66048
66049         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
66050
66051         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
66052         fsusage.h now does that.  Include fsusage.h first, to test interface.
66053         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
66054         at most one method (the old code could have generated decls that
66055         didn't conform to C89, not that this was ever exercised).
66056         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
66057
66058         2006-03-19  Jim Meyering  <jim@meyering.net>
66059
66060         Work even in a chroot where d_ino values for entries in "/"
66061         don't match the stat.st_ino values for the same names.
66062         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
66063         number, iterate through all entries again, using lstat instead.
66064         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
66065         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
66066
66067         * lib/getcwd.c (__getcwd): Clarify a comment.
66068         Use memcpy in place of a call to strcpy.
66069
66070         2006-03-12  Jim Meyering  <jim@meyering.net>
66071
66072         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
66073         matches that of the current directory (which we're about to chdir ".."
66074         out of), then save the dev-ino of the parent, instead.
66075
66076         * lib/same-inode.h (SAME_INODE): New file/macro.
66077         * lib/chdir-safer.c (SAME_INODE): Remove definition.
66078         Include "same-inode.h", instead.
66079         * lib/same.c: Likewise.
66080         * lib/cycle-check.h: Include "same-inode.h".
66081         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
66082         * lib/cycle-check.c (SAME_INODE): Remove definition.
66083         * lib/root-dev-ino.h: Include "same-inode.h".
66084
66085         2006-03-11  Eric Blake  <ebb9@byu.net>
66086
66087         * lib/same.c (same_name): s/base_name/last_component/
66088         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
66089         * lib/filenamecat.c (file_name_concat): Likewise.
66090
66091         2006-03-11  Eric Blake  <ebb9@byu.net>,
66092                     Paul Eggert  <eggert@cs.ucla.edu>
66093
66094         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
66095         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
66096         drive prefix.
66097         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
66098         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
66099         (last_component): New method.
66100         * lib/dirname.c (dir_len): Determine when drive letters need a
66101         subsequent slash.  Preserve // when it is special.
66102         (dir_name): Don't append dot when drive letter is absolute.
66103         [TEST_DIRNAME]: Move into a full-blown gnulib test.
66104         * lib/basename.c (base_name): New semantics - malloc the result.
66105         Preserve // when it is special.  Preserve relative files that look
66106         like drive letters.
66107         (base_len): Preserve // when it is special.
66108         (last_component): New method, similar to old base_name semantics.
66109         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
66110         base_name.  Strip redundant slashes from ///.
66111
66112 2006-07-03  Jim Meyering  <jim@meyering.net>
66113
66114         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
66115         macro is used before the first cycle_check call.
66116
66117 2006-07-03  Eric Blake  <ebb9@byu.net>
66118
66119         * modules/dirname (Depends-on): Add xstrndup.
66120
66121 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
66122
66123         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
66124         test cases, so that config.log is a bit easier to follow.
66125
66126 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
66127
66128         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
66129         both are 64 bits, since this seems to be the tradition, and this
66130         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
66131         we ever run into a host that prefers long long to long in this
66132         case, we'll need another configure-time test.  Problem reported by
66133         Jim Meyering.
66134
66135 2006-07-02  Eric Blake  <ebb9@byu.net>
66136
66137         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
66138
66139 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
66140
66141         * modules/inttypes (Depends-on): No longer depends on stdint.
66142         * modules/stdint (Description): Say more about assumptions.
66143         Say that the fast types might differ.  Say macros are used.
66144         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
66145         (Makefile.am): Revise list of substituted symbols to match
66146         new stdint.m4.
66147         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
66148         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
66149         * tests/test-stdint.c (verify_same_types)
66150         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
66151         the code conforms to C99/C89.
66152         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
66153         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
66154
66155 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
66156
66157         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
66158         but fix a bug, by requiring at least 64 bits.
66159         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
66160         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
66161         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
66162         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
66163
66164         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
66165         changes.  Make 2.59 a prerequisite.  Check and substitute for
66166         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
66167         inttypes.h.  Do not use special include files; just use the
66168         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
66169         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
66170         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
66171         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
66172         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
66173         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
66174         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
66175         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
66176         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
66177         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
66178         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
66179         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
66180         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
66181         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
66182         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
66183         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
66184         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
66185         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
66186         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
66187         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
66188         WINT_MAX.  Check for C99 conformance more strictly, by detecting
66189         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
66190         not check for things that C99 does not require, e.g., int8_t.  If
66191         a test isn't needed unless <stdint.h> isn't working, and is
66192         unlikely to be needed for any other reason, then don't do it
66193         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
66194         size_t, since we assume C89 freestanding at least.  Do not check
66195         for sig_atomic_t, wchar_t, or wint_t, since the code now does
66196         the right thing even if the types are not defined.  Instead use:
66197         (gl_STDINT_TYPE_PROPERTIES): New macro.
66198         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
66199         testing whether <sys/types.h> clashes, as Autoconf does this for
66200         us now.  All uses removed.
66201         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
66202         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
66203         (gl_CHECK_TYPE_SAME):
66204         Remove; no longer needed.
66205         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
66206         exists, since we'll return 0 anyway in that case.
66207         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
66208
66209 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
66210
66211         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
66212         possible collision with system files.
66213         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
66214         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
66215         WCHAR_MIN and WCHAR_MAX in this case.
66216         (<stddef.h>): Do not include; no longer needed.
66217         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
66218         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
66219         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
66220         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
66221         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
66222         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
66223         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
66224         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
66225         !defined(__c99))]: Include in this case too, since it's harmless
66226         now.
66227         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
66228         dangerous to do so.
66229         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
66230         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
66231         (_STDINT_MIN, _STDINT_MAX): New macros.
66232         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
66233         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
66234         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
66235         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
66236         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
66237         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
66238         macros, not typedefs; this simplifies things quite a bit.
66239         Use long int for all types narrower than int64_t.
66240         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
66241         Define in terms of long long int or int64_t or long int,
66242         not int64_t or int32_t.  This saves some compile-time testing.
66243         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
66244         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
66245         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
66246         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
66247         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
66248         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
66249         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
66250         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
66251         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
66252         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
66253         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
66254         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
66255         undef any previous version and define our own version, for
66256         simplicity and consistency with the new macros for types.
66257         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
66258         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
66259         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
66260         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
66261         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
66262         @WINT_T_SUFFIX@ to keep things simple here.
66263         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
66264         Simplify by assuming typical 8/16/32/64 host, since we're
66265         already doing that elsewhere anyway.
66266         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
66267         and assume long long int is 64 bits if available.  This
66268         speeds up 'configure'.
66269
66270 2006-07-01  Eric Blake  <ebb9@byu.net>
66271
66272         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
66273         Reported by Andreas Buening.
66274
66275 2006-07-01  Eric Blake  <ebb9@byu.net>
66276
66277         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
66278
66279 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
66280
66281         * lib/getaddrinfo.c: fixed typo
66282
66283 2006-06-29  Jim Meyering  <jim@meyering.net>
66284
66285         * modules/strftime (Maintainer): Add my name, since with the
66286         FPRINTFTIME changes strftime.c has forked from glibc.
66287
66288 2006-06-29  Eric Blake  <ebb9@byu.net>
66289
66290         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
66291
66292 2006-06-29  Eric Blake  <ebb9@byu.net>
66293
66294         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
66295
66296 2006-06-29  Eric Blake  <ebb9@byu.net>
66297
66298         * lib/stat_.h: New file.
66299
66300 2006-06-29  Eric Blake  <ebb9@byu.net>
66301
66302         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
66303         unused static function.
66304
66305 2006-06-29  Eric Blake  <ebb9@byu.net>
66306
66307         * doc/functions.texi (Function Portability): Document missing lstat
66308         on mingw.
66309
66310 2006-06-29  Eric Blake  <ebb9@byu.net>
66311
66312         * MODULES.html.sh: Add sys_stat.
66313         * modules/sys_stat: New module.
66314         * modules/mkstemp (Depends-on): Add sys_stat.
66315
66316 2006-06-29  Derek R. Price  <derek@ximbiot.com>
66317
66318         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
66319
66320 2006-06-29  Derek R. Price  <derek@ximbiot.com>
66321
66322         * m4/c-bs-a.m4: Removed.
66323
66324 2006-06-29  Derek R. Price  <derek@ximbiot.com>
66325
66326         * lib/strftime.c: Assume strftime() exists.
66327
66328 2006-06-29  Derek Price  <derek@ximbiot.com>
66329
66330         * modules/c-bs-a: Removed - \a is C89.
66331         * MODULES.html.sh: Remove c-bs-a.
66332
66333 2006-06-29  Bruno Haible  <bruno@clisp.org>
66334
66335         * modules/wcwidth (License): Change to LGPL.
66336
66337 2006-06-28  Simon Josefsson  <jas@extundo.com>
66338
66339         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
66340         on _WIN32.
66341
66342         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
66343         getnameinfo.
66344
66345 2006-06-28  Simon Josefsson  <jas@extundo.com>
66346
66347         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
66348
66349 2006-06-28  Simon Josefsson  <jas@extundo.com>
66350
66351         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
66352         functions there.  It will succeed on Windows XP, but on Windows
66353         2000 and (presumably) earlier, it will fail, and use the internal
66354         re-implementation.
66355         (use_win32_p): New function.
66356         (getaddrinfo): Use strtoul on servname, to support numeric ports.
66357         Support AI_NUMERICSERV to disable getservbyname.
66358         (getnameinfo): New function, only supports
66359         NI_NUMERICHOST|NI_NUMERICSERV for now.
66360
66361         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
66362         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
66363         getnameinfo.
66364
66365 2006-06-28  Eric Blake  <ebb9@byu.net>
66366
66367         * modules/wcwidth: New file.
66368         * modules/mbchar (Depends-on): Add wcwidth.
66369         * modules/mbswidth (Depends-on): Add wcwidth.
66370         * MODULES.html.sh: Add wcwidth.
66371
66372 2006-06-28  Eric Blake  <ebb9@byu.net>
66373
66374         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
66375         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
66376
66377 2006-06-28  Eric Blake  <ebb9@byu.net>
66378
66379         * lib/xvasprintf.h: Fix comments.
66380
66381 2006-06-28  Eric Blake  <ebb9@byu.net>
66382
66383         * lib/mbchar.h (wcwidth): Include wcwidth.h.
66384         * lib/mbswidth.c (wcwidth): Move from here...
66385         * lib/wcwidth.h: ...to this new file.
66386
66387 2006-06-28  Derek R. Price  <derek@ximbiot.com>
66388
66389         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
66390
66391         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
66392         it's obsolete.
66393         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
66394
66395 2006-06-28  Derek R. Price  <derek@ximbiot.com>
66396
66397         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
66398         Autoconf 2.60 says this stuff was obsolete.
66399
66400 2006-06-28  Bruno Haible  <bruno@clisp.org>
66401
66402         * modules/wcwidth (Files): Add m4/wchar_t.m4.
66403
66404 2006-06-28  Bruno Haible  <bruno@clisp.org>
66405
66406         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
66407         gt_TYPE_WCHAR_T.
66408
66409 2006-06-28  Bruno Haible  <bruno@clisp.org>
66410
66411         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
66412         declaration for wcwidth.
66413         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
66414
66415 2006-06-28  Bruno Haible  <bruno@clisp.org>
66416
66417         * lib/mkdtemp.c [MINGW]: Include <io.h>.
66418         (mkdir): Define using _mkdir.
66419
66420 2006-06-28  Bruno Haible  <bruno@clisp.org>
66421
66422         * lib/getaddrinfo.h: Fix POSIX URL.
66423         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
66424         _WIN32.
66425         (use_win32_p): Make static.
66426         (getaddrinfo): Reject service name if it is empty or does not consist
66427         solely of decimal digits, or if its value is > 65535.
66428         (getnameinfo): Remove useless casts.
66429
66430 2006-06-27  Simon Josefsson  <jas@extundo.com>
66431
66432         * modules/sys_select: New file, suggested by Bruno Haible, Paul
66433         Eggert and Martin Lambers.
66434
66435 2006-06-27  Simon Josefsson  <jas@extundo.com>
66436
66437         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
66438         Eggert and Martin Lambers.
66439
66440 2006-06-27  Bruno Haible  <bruno@clisp.org>
66441
66442         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
66443         result to 0, not to empty.
66444         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
66445
66446 2006-06-27  Bruno Haible  <bruno@clisp.org>
66447
66448         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
66449
66450 2006-06-26  Simon Josefsson  <jas@extundo.com>
66451
66452         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
66453         present.
66454
66455 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
66456
66457         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
66458         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
66459         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
66460
66461 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
66462
66463         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
66464
66465 2006-06-26  Bruno Haible  <bruno@clisp.org>
66466
66467         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
66468
66469 2006-06-26  Bruno Haible  <bruno@clisp.org>
66470
66471         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
66472
66473 2006-06-26  Bruno Haible  <bruno@clisp.org>
66474
66475         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
66476         SGI C compiler in pre-C99 mode.
66477         Suggested by Mark D. Baushke and Larry Jones.
66478
66479 2006-06-26  Bruno Haible  <bruno@clisp.org>
66480
66481         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
66482         WCHAR_MAX.
66483         Reported by Mark D. Baushke and Larry Jones.
66484
66485 2006-06-26  Bruno Haible  <bruno@clisp.org>
66486
66487         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
66488         in pre-C99 mode.
66489         Suggested by Mark D. Baushke and Larry Jones.
66490
66491 2006-06-23  Simon Josefsson  <jas@extundo.com>
66492             Bruno Haible  <bruno@clisp.org>
66493
66494         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
66495         Emit mostlyclean-local rule.
66496         (func_emit_tests_Makefile_am): Likewise.
66497         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
66498
66499 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
66500
66501         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
66502
66503 2006-06-23  Bruno Haible  <bruno@clisp.org>
66504
66505         * tests/test-stdint.c: Update to match ISO C 99 Technical
66506         Corrigendum 1.
66507
66508 2006-06-23  Bruno Haible  <bruno@clisp.org>
66509
66510         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
66511
66512 2006-06-23  Bruno Haible  <bruno@clisp.org>
66513
66514         * lib/stdint_.h: Treat IRIX like OpenBSD.
66515
66516 2006-06-23  Bruno Haible  <bruno@clisp.org>
66517
66518         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
66519         ISO C 99 Technical Corrigendum 1.
66520
66521 2006-06-22  Simon Josefsson  <jas@extundo.com>
66522
66523         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
66524         MinGW.
66525
66526 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
66527
66528         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
66529         needed.  Some compiler complained about some of them.  Problem reported
66530         by Larry Jones in
66531         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
66532
66533 2006-06-21  Simon Josefsson  <jas@extundo.com>
66534
66535         * tests/test-getaddrinfo.c: New file.
66536
66537         * modules/getaddrinfo-tests: New file.
66538
66539         * MODULES.html.sh: Add inet_pton.
66540
66541         * modules/inet_pton: New file.
66542
66543 2006-06-21  Simon Josefsson  <jas@extundo.com>
66544
66545         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
66546         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
66547         of using the (limited) gnulib implementation on Windows XP.
66548
66549         * m4/inet_pton.m4: New file.
66550
66551 2006-06-21  Simon Josefsson  <jas@extundo.com>
66552
66553         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
66554         variable.
66555
66556         * lib/socket_.h: Don't define WINVER.
66557
66558         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
66559         slightly modified to work in gnulib.
66560
66561 2006-06-21  Simon Josefsson  <jas@extundo.com>
66562
66563         * doc/gnulib.texi (Windows sockets): Add.
66564
66565 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
66566
66567         * lib/read-file.c (fread_file): Start with buffer allocation of
66568         0 bytes rather than 1 byte; this simplifies the code.
66569         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
66570         code to free buffer and save/restore errno.
66571         (internal_read_file): Remove unused local.
66572
66573 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
66574
66575         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
66576         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
66577         Problem reported by Denis Excoffier in
66578         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
66579
66580 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66581
66582         * modules/sys_socket, modules/socklen: Include sys/types since
66583         FreeBSD 4.x's sys/socket.h needs it.
66584
66585 2006-06-19  Simon Josefsson  <jas@extundo.com>
66586
66587         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
66588
66589 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
66590
66591         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
66592
66593 2006-06-19  Bruno Haible  <bruno@clisp.org>
66594
66595         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
66596         and FULL_PATH_INTTYPES_H in angle brackets.
66597         Reported by Mark D. Baushke <mdb@gnu.org>.
66598
66599 2006-06-17  Eric Blake  <ebb9@byu.net>
66600
66601         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
66602         errno.
66603
66604 2006-06-17  Bruno Haible  <bruno@clisp.org>
66605
66606         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
66607         <sys/inttypes.h>.
66608
66609 2006-06-17  Bruno Haible  <bruno@clisp.org>
66610
66611         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
66612         whether errno is declared. Assume <errno.h> declares errno.
66613
66614 2006-06-17  Bruno Haible  <bruno@clisp.org>
66615
66616         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
66617
66618 2006-06-17  Bruno Haible  <bruno@clisp.org>
66619
66620         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
66621         problem on Solaris 2.5.1.
66622
66623 2006-06-16  Eric Blake  <ebb9@byu.net>
66624
66625         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
66626         * lib/unicodeio.c [!defined errno]: Likewise.
66627         * lib/strtol.c [!defined errno]: Likewise.
66628         * lib/strtod.c [!defined errno]: Likewise.
66629
66630 2006-06-15  Eric Blake  <ebb9@byu.net>
66631
66632         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
66633
66634 2006-06-15  Eric Blake  <ebb9@byu.net>
66635
66636         * config/srclist.txt (ssize_t.m4): Lose sync.
66637
66638 2006-06-15  Bruno Haible  <bruno@clisp.org>
66639
66640         * modules/stdint (Files): Include m4/full-header-path.m4,
66641         m4/size_max.m4, m4/wchar_t.m4.
66642         (Makefile.am): Many more substitutions.
66643         * modules/stdint-tests: New file.
66644         * tests/test-stdint.c: New file.
66645
66646 2006-06-15  Bruno Haible  <bruno@clisp.org>
66647
66648         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
66649         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
66650         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
66651         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
66652         gl_CHECK_TYPE_SAME): New macros.
66653
66654 2006-06-15  Bruno Haible  <bruno@clisp.org>
66655
66656         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
66657
66658 2006-06-15  Bruno Haible  <bruno@clisp.org>
66659
66660         * lib/stdint_.h: Rewritten to be fully auto-configured.
66661         Fixes bug on HP-UX/IA64.
66662
66663 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
66664
66665         * lib/getdate.y (__attribute__): Don't define if already defined.
66666         Problem reported by Larry Jones.
66667         * lib/utimens.c (__attribute__): Likewise.
66668
66669 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
66670
66671         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
66672         reported by Andreas Schwab.
66673
66674 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66675             Bruno Haible  <bruno@clisp.org>
66676
66677         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
66678         check for the declaration of strnlen and a run test that exposes the
66679         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
66680         rpl_strndup.
66681
66682 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66683             Bruno Haible  <bruno@clisp.org>
66684
66685         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
66686
66687 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66688
66689         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
66690         compile test, for Tru64 4.0D.
66691
66692 2006-05-28  Karl Berry  <karl@gnu.org>
66693
66694         * config/srclist.txt (printf-args.c): lose sync.
66695
66696 2006-05-26  Martin Lambers  <marlam@marlam.de>
66697
66698         * lib/getpass.c: Updates the test for the native W32 API, and adds
66699         missing includes, thus fixing compilation warnings.
66700
66701 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
66702
66703         * lib/exclude.c (exclude_fnmatch): New function.
66704         (excluded_file_name): Call exclude_fnmatch.
66705         * lib/exclude.h (excluded_file_name): New prototype
66706
66707 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
66708
66709         * lib/tempname.c (small_open, large_open): New macros.
66710         (__open, __open64) [!_LIBC]: Remove.
66711         (__gen_tempname): Use small_open and large_open instead of __open
66712         and __open64.  This fixes a portability bug on HP-UX 11.11i
66713         reported by Simon Wing-Tang in
66714         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
66715
66716 2006-05-24  Bruno Haible  <bruno@clisp.org>
66717
66718         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
66719         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
66720         Reported by Thorsten Maerz <torte@netztorte.de> via
66721         Aaron Stone <aaron@serendipity.cx>.
66722
66723 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
66724
66725         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
66726         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
66727         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
66728         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
66729         not really conditional on the cache.
66730         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
66731
66732 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
66733
66734         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
66735         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
66736         (my_usleep): Don't mishandle maximum value.
66737
66738 2006-05-19  Jim Meyering  <jim@meyering.net>
66739
66740         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
66741
66742 2006-05-17  Bruno Haible  <bruno@clisp.org>
66743
66744         Cygwin portability.
66745         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
66746
66747 2006-05-17  Bruno Haible  <bruno@clisp.org>
66748
66749         * lib/stdint_.h: Fix recognition of Cygwin.
66750
66751 2006-05-15  Bruno Haible  <bruno@clisp.org>
66752
66753         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
66754         on libtool patch by Ralf Wildenhues.
66755
66756 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66757
66758         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
66759         test for C99 conformance; (bool) 0.5 is an integer constant
66760         expression, but (bool) -0.5 is not.  Problem reported by Fedor
66761         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
66762
66763 2006-05-11  Simon Josefsson  <jas@extundo.com>
66764
66765         * m4/xvasprintf.m4: Fix obvious typo.
66766
66767 2006-05-11  Jim Meyering  <jim@meyering.net>
66768
66769         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
66770         James Lemley.
66771
66772 2006-05-10  Simon Josefsson  <jas@extundo.com>
66773
66774         * lib/md4.c: Typo fix, update copyright years.
66775         (K1, K2): Don't use L because it turn computations into 64-bit on
66776         64-bit platforms.
66777
66778 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
66779
66780         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
66781         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
66782         unwanted sign propagation, e.g., on hosts with 64-bit int.
66783         There still are some problems with reeelly weird theoretical hosts
66784         (e.g., 33-bit int) but it's not worth worrying about now.
66785         * lib/sha1.c (rol): Likewise.
66786         (K1, K2, K3, K4): Remove unnecessary L suffix.
66787
66788 2006-05-10  Bruno Haible  <bruno@clisp.org>
66789
66790         * lib/des.c: Cast to avoid warnings.
66791
66792 2006-05-09  Bruno Haible  <bruno@clisp.org>
66793
66794         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
66795         (Depends-on): Depend also on xsize, stdarg.
66796         (configure.ac): Add gl_XVASPRINTF.
66797
66798 2006-05-09  Bruno Haible  <bruno@clisp.org>
66799
66800         * m4/xvasprintf.m4: New file.
66801
66802 2006-05-09  Bruno Haible  <bruno@clisp.org>
66803
66804         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
66805         (EOVERFLOW): Define fallback value.
66806         (xstrcat): New function.
66807         (xvasprintf): Recognize the special case of a string concatenation.
66808
66809 2006-05-08  Eric Blake  <ebb9@byu.net>
66810
66811         * gnulib-tool (func_version): Base copyright year on CVS date.
66812         (func_emit_copyright_notice): New function.
66813         (func_emit_lib_Makefile_am): Use it.
66814         (func_emit_tests_Makefile_am): Likewise.
66815         (func_import): Likewise.
66816
66817 2006-05-08  Bruno Haible  <bruno@clisp.org>
66818
66819         * modules/stdarg: New file.
66820         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
66821
66822 2006-05-08  Bruno Haible  <bruno@clisp.org>
66823
66824         * m4/stdarg.m4: New file, from GNU gettext.
66825
66826 2006-05-08  Bruno Haible  <bruno@clisp.org>
66827
66828         * config/srclist.txt (build-aux/config.rpath): different from latest
66829         release.
66830
66831 2006-05-08  Bruno Haible  <bruno@clisp.org>
66832
66833         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
66834
66835 2006-05-05  Jim Meyering  <jim@meyering.net>
66836
66837         * m4/warning.m4: New file, derived from bison's file by the same name.
66838
66839 2006-05-03  Bruno Haible  <bruno@clisp.org>
66840
66841         * lib/stdint_.h: Shorter URL.
66842         * lib/inttypes.h: Likewise.
66843
66844 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66845
66846         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
66847
66848 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66849
66850         * lib/verify.h: Document the internals better.  Most of this change
66851         was written by Bruno Haible.
66852
66853 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66854
66855         * doc/verify.texi: New file, partly based on a proposal by
66856         Bruno Haible.
66857
66858 2006-05-02  Bruno Haible  <bruno@clisp.org>
66859
66860         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
66861         test from here...
66862         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
66863
66864 2006-04-29  Bruno Haible  <bruno@clisp.org>
66865
66866         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
66867         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
66868
66869 2006-04-29  Bruno Haible  <bruno@clisp.org>
66870
66871         * gnulib-tool: Make --update option actually work.
66872
66873 2006-04-29  Bruno Haible  <bruno@clisp.org>
66874
66875         * doc/gcd.texi: New file.
66876         * doc/gnulib.texi: Include it.
66877
66878 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
66879
66880         * lib/getdate.y (get_date): When adding relative date, start with the
66881         initial time, not with the result of the first mktime call.
66882
66883 2006-04-25  Bruno Haible  <bruno@clisp.org>
66884
66885         * gnulib-tool (func_import): Output the include directives in three
66886         blocks, sorted separately.
66887         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66888
66889 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
66890
66891         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
66892         to define main with arguments, for C++.  Reported by Eric Blake.
66893         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
66894         Prefer 'int main ()' to 'int main (void)', for C++.
66895         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
66896         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
66897         for 'main', for C99 and C++.
66898
66899 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
66900
66901         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
66902         Don't assume that exit status -1 is valid.
66903         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
66904         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
66905         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
66906         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
66907         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
66908         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
66909         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
66910         functions can be used without declaring them, or that you can
66911         exit with status -1.
66912         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
66913
66914 2006-04-24  Karl Berry  <karl@gnu.org>
66915
66916         * config/srclist.txt (longdouble.m4): sync lost.
66917
66918 2006-04-24  Eric Blake  <ebb9@byu.net>
66919
66920         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
66921
66922 2006-04-24  Bruno Haible  <bruno@clisp.org>
66923
66924         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
66925         poll() implementation in AIX.
66926         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66927
66928 2006-04-24  Bruno Haible  <bruno@clisp.org>
66929
66930         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
66931         assigned exactly once.
66932
66933 2006-04-23  Claudio Fontana  <claudio@gnu.org>
66934             Bruno Haible  <bruno@clisp.org>
66935
66936         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
66937         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
66938         for AM_CPPFLAGS.
66939
66940 2006-04-23  Bruno Haible  <bruno@clisp.org>
66941
66942         * modules/copy-file: Depend on unistd.
66943         * modules/execute: Likewise.
66944         * modules/fatal-signal: Likewise.
66945         * modules/findprog: Likewise.
66946         * modules/mkdtemp : Likewise.
66947         * modules/pipe: Likewise.
66948         * modules/wait-process: Likewise.
66949
66950 2006-04-23  Bruno Haible  <bruno@clisp.org>
66951
66952         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
66953         condition was already detected.
66954         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66955
66956 2006-04-23  Bruno Haible  <bruno@clisp.org>
66957
66958         * lib/copy-file.c: Include <unistd.h> unconditionally.
66959         * lib/execute.c: Likewise.
66960         * lib/fatal-signal.c: Likewise.
66961         * lib/findprog.c: Likewise.
66962         * lib/mkdtemp.c: Likewise.
66963         * lib/pipe.h: Likewise.
66964         * lib/pipe.c: Likewise.
66965         * lib/wait-process.h: Likewise.
66966
66967 2006-04-23  Bruno Haible  <bruno@clisp.org>
66968
66969         * gnulib-tool (func_usage): Fix --import description. Document
66970         --update.
66971         (func_import): Create temporary file in a temporary directory, if
66972         --dry-run is specified. Silence errors from 'grep' when there are no
66973         m4 files in $m4dir.
66974         (func_create_testdir): Silence errors from 'grep' when there are no
66975         m4 files in $m4dir.
66976         Reported by Karl Berry <karl@freefriends.org>.
66977
66978 2006-04-20  Bruno Haible  <bruno@clisp.org>
66979
66980         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
66981         one argument, so that the code will be portable to Autoconf 2.60.
66982         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
66983         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
66984         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
66985
66986 2006-04-19  Derek Price  <derek@ximbiot.com>
66987             Eric Blake  <ebb9@byu.net>
66988
66989         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
66990         rather than "/full/path.h".  Update comment to match.  Shorten &
66991         generalize m4_translit call via AS_TR_CPP.
66992
66993 2006-04-19  Derek Price  <derek@ximbiot.com>
66994             Eric Blake  <ebb9@byu.net>
66995
66996         * lib/inttypes.h: Correct grammar in comment.
66997
66998 2006-04-18  Derek Price  <derek@ximbiot.com>
66999             Paul Eggert  <eggert@cs.ucla.edu>
67000
67001         * modules/inttypes: New file.
67002         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
67003
67004 2006-04-18  Derek Price  <derek@ximbiot.com>
67005             Paul Eggert  <eggert@cs.ucla.edu>
67006
67007         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
67008         New files.
67009
67010 2006-04-18  Derek Price  <derek@ximbiot.com>
67011             Paul Eggert  <eggert@cs.ucla.edu>
67012
67013         * lib/inttypes.h: New file.
67014         * lib/strtoimax.c: Assume <inttypes.h>.
67015
67016 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
67017
67018         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
67019         isn't mounted.  Problem reported by Kir Kolyshkin.
67020
67021 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
67022
67023         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
67024         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
67025         Derek R. Price.
67026         * lib/regex.h (RE_DUP_MAX): Update comment to match current
67027         implementation.
67028
67029 2006-04-12  Eric Blake  <ebb9@byu.net>
67030
67031         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
67032         is now done automatically by the corresponding Autoconf macro.
67033
67034 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
67035
67036         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
67037         time_r.h.
67038
67039 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
67040
67041         Merge regex changes from libc, removing some of our
67042         POSIX-conformance changes that were rejected and redoing them in a
67043         less-intrusive way.
67044
67045         * lib/regcomp.c (re_compile_internal, init_dfa):
67046         Length arg is now size_t, not Idx.  All uses changed.
67047         (peek_token): Forward decl now says internal_function.
67048         (__re_error_msgid, __re_error_msgid_idx):
67049         Now static rather than extern with attribute_hidden.
67050         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
67051         For some reason libc prefers K&R style defns for external functions.
67052         (regerror) [!defined _LIBC]: Likewise.
67053         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
67054         (seek_collating_symbol_entry, lookup_collation_sequence_value):
67055         (build_range_exp, build_collating_symbol):
67056         Use K&R-style defn.
67057         (re_compile_fastmap): Use '\0' to memset, not 0.
67058         (utf8_sb_map): Make the calculations more obvious.
67059         (init_dfa, parse_bracket_exp, build_charclass_op):
67060         Call calloc and cast result, as glibc does.
67061         (init_word_char, fetch_token, peek_token, peek_token_bracket):
67062         (build_range_exp, build_collating_symbol):
67063         Now internal functions.
67064
67065         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
67066
67067         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
67068         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
67069         Don't depend on VMS; depend on __VMS instead, for POSIX
67070         namespace cleanness.
67071         (regoff_t): Define to ssize_t, not long int.
67072
67073         Remove the REG_ macros named below.  Instead, make the old names
67074         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
67075         __USE_GNU_REGEX.
67076         (REG_BACKSLASH_ESCAPE_IN_LISTS):
67077         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
67078         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
67079         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
67080         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
67081         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
67082         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
67083         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
67084         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
67085         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
67086         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
67087         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
67088         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
67089         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
67090         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
67091         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
67092         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
67093         (REG_NREGS):
67094         Remove.  All uses replaced by the old RE_* names.
67095         (RE_BACKSLASH_ESCAPE_IN_LISTS):
67096         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
67097         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
67098         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
67099         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
67100         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
67101         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
67102         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
67103         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
67104         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
67105         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
67106         Don't bother having these macros be independent of each others'
67107         values, since they no longer exist in the POSIX name space.
67108
67109         Rename the following member names back to their old names,
67110         unless !__USE_GNU_REGEX.  All uses changed back.
67111         (buffer): Renamed from re_buffer.
67112         (allocated): Renamed from re_allocated.
67113         (used): Renamed from re_used.
67114         (syntax): Renamed from re_syntax.
67115         (fastmap): Renamed from re_fastmap.
67116         (translate): Renamed from re_translate.
67117         (can_be_null): Renamed from re_can_be_null.
67118         (regs_allocated): Renamed from re_regs_allocated.
67119         (fastmap_accurate): Renamed from re_fastmap_accurate.
67120         (no_sub): Renamed from re_no_sub.
67121         (not_bol): Renamed from re_not_bol.
67122         (not_eol): Renamed from re_not_eol.
67123         (newline_anchor): Renamed from re_newline_anchor.
67124         (num_regs): Renamed from rm_num_regs.
67125         (start): Renamed from rm_start.
67126         (end): Renamed from rm_end.
67127
67128         (free_state): Move up a bit.
67129
67130         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
67131         #define to be empty.
67132         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
67133         when that is what is intended.
67134         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
67135         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
67136         (MAX): New macro.
67137         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
67138         All uses changed back to re_malloc, etc.  It's now the caller's
67139         responsibility to check for overflow; all callers changed.
67140         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
67141         (re_x2nrealloc): Remove.
67142         (free_state): Remove decl.
67143
67144         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
67145         (re_set_registers, re_exec):
67146         Use K&R-style defn.
67147
67148         2006-01-31  Roland McGrath  <roland@redhat.com>
67149
67150         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
67151         Reported by Mike Frysinger <vapier@gentoo.org>.
67152
67153         2006-01-15  Andreas Jaeger  <aj@suse.de>
67154
67155         [BZ #1950]
67156         * lib/regex_internal.c (re_string_reconstruct): Adjust for
67157         build_wcs_upper_buffer change.
67158         (build_wcs_upper_buffer): Change return type.
67159
67160         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
67161
67162         * lib/regex_internal.h: Include <stdint.h> if available.
67163
67164         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
67165
67166         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
67167
67168         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
67169
67170         * lib/regcomp.c: Adjust for changed secondary hash function.
67171
67172         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
67173
67174         * lib/regex.h: Pretty printing.
67175         Clean up namespace a bit.
67176
67177         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
67178
67179         * lib/regexec.c (update_cur_sifted_state, check_arrival,
67180         check_arrival_add_next_nodes): Avoid using uninitialized variable.
67181
67182         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67183                     Ulrich Drepper  <drepper@redhat.com>
67184
67185         [BZ #1302]
67186         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
67187         changed.
67188         (bitset_word_t): Renamed from bitset_word.  All uses changed.
67189
67190         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
67191
67192         [BZ #281]
67193         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
67194         * lib/regcomp.c: Remove unnecessary uses of
67195         unsigned RE_TRANSLATE_TYPE.
67196         * lib/regex_internal.h: Likewise.
67197         * lib/regex_internal.c: Likewise.
67198         * lib/regexec.c: Likewise.
67199         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
67200
67201         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
67202
67203         * lib/regexec.c (find_recover_state): Remove unnecessary
67204         initialization.
67205         (transit_state_bkref): Make DFA a const pointer.
67206         (get_subexp): Likewise.
67207         (check_arrival): Likewise.
67208         (update_cur_sifted_state): Likewise.
67209         (re_search_internal): Likewise.
67210         (prune_impossible_nodes): Likewise.
67211         (acquire_init_state_context): Likewise.
67212         (proceed_next_node): Likewise.
67213         (set_regs): Likewise.
67214         (free_fail_stack_return): Likewise.
67215         (check_arrival_expand_ecl): Mark DFA parameter as const.
67216         (check_arrival_expand_ecl_sub): Likewise.
67217         (check_subexp_limits): Likewise.
67218         (sub_epsilon_src_nodes):  Likewise.
67219         (add_epsilon_src_nodes):  Likewise.
67220         (merge_state_array): Likewise.
67221         (update_regs): Likewise.
67222         (build_trtable): Likewise.
67223         (sift_states_backward): Mark MCTX parameter as const.
67224         (build_sifted_states): Likewise.
67225         (update_cur_sifted_state): Likewise.
67226         (sift_states_mkref): Likewise.
67227         (check_arrival_expand_ecl): Mark eclosure as const.
67228         (check_dst_limits_calc_pos_1): Likewise.
67229         * lib/regex_internal.h (re_match_context_t): Make dfa a const
67230         pointer.
67231
67232         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
67233
67234         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
67235         (transit_state_sb): Likewise.
67236         (transit_state_mb): Likewise.
67237         (sift_states_iter_mb): Likewise.
67238         (check_arrival_add_next_nodes): Likewise.
67239         (check_node_accept_bytes): Change first parameter to pointer-to-const.
67240         [_LIBC] (re_search_2_stub): Use mempcpy.
67241
67242         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
67243         mbrtowc for very simple UTF-8 case.
67244
67245         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
67246         a pointer-to-const.
67247         (re_acquire_state_context): Likewise.
67248         * lib/regex_internal.h: Adjust prototypes.
67249
67250         * lib/regex.c: Prevent using C++ compilers.
67251
67252         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
67253         (re_acquire_state_context): Likewise.
67254
67255 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
67256
67257         * modules/regex (Depends-on): Add ssize_t.
67258
67259 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
67260
67261         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
67262         translation table.
67263
67264 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
67265
67266         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
67267
67268 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
67269             Bruno Haible  <bruno@clisp.org>
67270
67271         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
67272         <sys/types.h> and <inttypes.h>.
67273
67274 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67275
67276         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
67277         `__error_t_defined', so argp.h will not typedef the former.
67278
67279 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
67280
67281         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
67282         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
67283         glibc names.  Even if glibc is changed to conform to POSIX, the
67284         traditional names will be available anyway, since regex depends on
67285         the extensions module.  Also, fix a longstanding typo in the
67286         implementation of Spencer ERE test #75 from grep 2.3.  Problems
67287         reported by Emanuele Giaquinta.  Also, change sense of cached
67288         variable, so that the message makes sense.
67289
67290 2006-03-24  Simon Josefsson  <jas@extundo.com>
67291
67292         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
67293         including some doc fixes.
67294         (base64_encode_alloc): Fix +1 bug on allocation failures.
67295
67296 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67297
67298         * lib/base64.c (base64_encode): Do not read past end of array with
67299         unsanitized input on systems with CHAR_BIT > 8.
67300
67301 2006-03-24  Eric Blake  <ebb9@byu.net>
67302
67303         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
67304
67305 2006-03-22  Karl Berry  <karl@gnu.org>
67306
67307         * config/srclist.txt (*setenv.[ch]): get from coreutils.
67308         * config/srclistvars.sh (COREUTILS): new var.
67309
67310 2006-03-17  Jim Meyering  <jim@meyering.net>
67311
67312         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
67313         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
67314
67315 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
67316
67317         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
67318         no longer needs it.  Instead, check that regoff_t is as least
67319         as wide as ptrdiff_t.
67320
67321         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
67322         so that our regex.h stays compatible with the installed regex.
67323         This is helpful for installers who configure --without-included-regex.
67324         Problem reported by Emanuele Giaquinta.
67325
67326 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
67327
67328         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
67329         Typedef to long int, not to off_, as POSIX will likely change
67330         in that direction.
67331
67332 2006-03-15  Eric Blake  <ebb9@byu.net>
67333
67334         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
67335
67336 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
67337
67338         * lib/argp-help.c (validate_uparams): Fix typo
67339         * lib/argp-parse.c (argp_default_options): Consistently begin help
67340         messages with a lowercase letter.
67341
67342 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
67343
67344         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
67345         overrun buffers and shouldn't be used (much as gets shouldn't be
67346         used).
67347         * lib/time_r.c (asctime_r, ctime_r): Likewise.
67348
67349 2006-03-08  Simon Josefsson  <jas@extundo.com>
67350
67351         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
67352         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67353
67354 2006-03-08  Simon Josefsson  <jas@extundo.com>
67355
67356         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
67357         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67358
67359 2006-03-08  Simon Josefsson  <jas@extundo.com>
67360
67361         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
67362         signal that configure disabled the device.
67363
67364 2006-03-08  Simon Josefsson  <jas@extundo.com>
67365
67366         * build-aux/maint.mk: Fix refresh-po, to handle no translated
67367         languages.
67368
67369 2006-03-07  Simon Josefsson  <jas@extundo.com>
67370
67371         * modules/getopt (Depends-on): Add unistd.
67372
67373         * modules/unistd: New file.
67374
67375 2006-03-07  Simon Josefsson  <jas@extundo.com>
67376
67377         * modules/gc-random: New file.
67378
67379 2006-03-07  Simon Josefsson  <jas@extundo.com>
67380
67381         * m4/unistd_h.m4: New file.
67382
67383 2006-03-07  Simon Josefsson  <jas@extundo.com>
67384
67385         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
67386         test to be side-effect free by storing the result in the cache
67387         variable gl_cv_lib_readline, and moving the assignment of
67388         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
67389         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67390
67391 2006-03-07  Simon Josefsson  <jas@extundo.com>
67392
67393         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
67394         error on missing devices (the functions will return an error).
67395
67396         * m4/gc.m4: Move random stuff to gc-random.m4
67397
67398 2006-03-07  Simon Josefsson  <jas@extundo.com>
67399
67400         * lib/unistd_.h: New file.
67401
67402 2006-03-07  Simon Josefsson  <jas@extundo.com>
67403
67404         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
67405
67406 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
67407
67408         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
67409         Problem reported by Juan Manuel Guerrero.
67410
67411 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
67412
67413         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
67414         the unistd module.
67415         * lib/getlogin_r.c: Likewise.
67416         * lib/getlogin_r.h: Likewise.
67417         * lib/glob.c: Likewise.
67418         * lib/pagealign_alloc.c: Likewise.
67419         * lib/unistd_.h: Remove; no longer needed.
67420
67421 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
67422
67423         * MODULES.html.sh (Support for systems lacking POSIX:2001):
67424         Add unistd.
67425         * modules/c-stack (Depends-on): Add unistd.
67426         * modules/getlogin_r: Likewise.
67427         * modules/glob: Likewise.
67428         * modules/pagealign_alloc: Likewise.
67429         * modules/unistd (Files): Remove lib/unistd_.h.
67430         (EXTRA_DIST): Remove.
67431         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
67432         need unistd_.h.
67433         (MOSTLYCLEANFILES): Remove unistd.h-t.
67434
67435 2006-03-03  Simon Josefsson  <jas@extundo.com>
67436
67437         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
67438
67439 2006-03-03  Simon Josefsson  <jas@extundo.com>
67440
67441         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
67442         libidn and bison.
67443
67444 2006-03-03  Simon Josefsson  <jas@extundo.com>
67445
67446         * build-aux/maint.mk: Add indent target.
67447
67448 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
67449
67450         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
67451         our replacement poll.h in any case, to avoid a differing
67452         declaration from a system header.  Seen on AIX.
67453
67454 2006-03-01  Simon Josefsson  <jas@extundo.com>
67455
67456         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
67457         <kasal@ucw.cz>.
67458
67459 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67460
67461         * modules/gettime (Depends-on): Add extensions module.
67462         * modules/nanosleep (Depends-on): Likewise.
67463         * modules/settime (Depends-on): Likewise.
67464
67465 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67466
67467         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
67468         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
67469         pedantically.
67470         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
67471         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
67472
67473         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
67474         not "==".  Reported by Ralf Wildenhues.
67475
67476 2006-03-01  Karl Berry  <karl@gnu.org>
67477
67478         * doc/Copyright/request-*: new files, synced from gnuorg.
67479
67480 2006-03-01  Karl Berry  <karl@gnu.org>
67481
67482         * config/srclist.txt (Copyright/*): new entries.
67483
67484 2006-02-28  Simon Josefsson  <jas@extundo.com>
67485
67486         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
67487
67488 2006-02-27  Simon Josefsson  <jas@extundo.com>
67489
67490         * lib/base64.h: Indent #define's.  From Jim Meyering
67491         <jim@meyering.net>.
67492
67493 2006-02-27  Jim Meyering  <jim@meyering.net>
67494
67495         Revert the change of 2006-02-24, so these files can continue
67496         to be sync'd from gettext.
67497         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
67498         of `config.h'.
67499
67500 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
67501
67502         * modules/intprops: New file.
67503         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
67504         Add intprops.
67505         * modules/getloadavg (Files): Remove lib/intprops.h.
67506         (Depends-on): Add intprops.
67507         * modules/human: Likewise.
67508         * modules/inttostr: Likewise.
67509         * modules/openat: Likewise.
67510         * modules/sig2str: Likewise.
67511         * modules/userspec: Likewise.
67512         * modules/utimecmp: Likewise.
67513         * modules/xnanosleep: Likewise.
67514         * modules/xstrtol: Likewise.
67515
67516 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
67517
67518         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
67519         * modules/lock-tests (TESTS): Use $(EXEEXT).
67520         * modules/tls-tests: Likewise.
67521         * modules/argp-tests: Likewise.
67522         (check_PROGRAMS): New var, replacing...
67523         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
67524
67525 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67526
67527         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
67528         `config.h'.
67529
67530 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
67531
67532         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
67533
67534 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67535
67536         Sync from coreutils.
67537         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
67538         gl_CHDIR_SAFER.
67539
67540 2006-02-22  Jim Meyering  <jim@meyering.net>
67541
67542         Sync from coreutils.
67543         * m4/chdir-safer.m4: New file.
67544
67545 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
67546
67547         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
67548         AT_FDCWD exceeds INT_MAX.
67549         * lib/openat.h (AT_FDCWD): Likewise.
67550
67551 2006-02-17  Eric Blake  <address@hidden>
67552
67553         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
67554
67555 2006-02-16  Simon Josefsson  <jas@extundo.com>
67556
67557         * modules/getaddrinfo (Depends-on): Add sys_socket.
67558
67559 2006-02-15  Simon Josefsson  <jas@extundo.com>
67560
67561         * build-aux/maint.mk: Add dsyntax-check rule.
67562
67563 2006-02-15  Eric Blake  <ebb9@byu.net>
67564
67565         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
67566         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
67567         'present but cannot compile' warnings on cygwin.
67568         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
67569         use ws2tcpip.h if sys/socket.h works.
67570         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
67571         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
67572
67573 2006-02-14  Simon Josefsson  <jas@extundo.com>
67574
67575         * modules/maintainer-makefile (Files): Rename.
67576
67577         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
67578         and (the local) Makefile.cfg to maint-cfg.mk.
67579
67580         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
67581         to the latter.
67582
67583         * modules/maintainer-makefile: New module.
67584
67585         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
67586         severaly stripped to make it possible to build it up from scratch
67587         with reliable tests.
67588
67589         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
67590         fixes to permit overriding the default actions when configure and
67591         makefile are not available.
67592
67593 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
67594
67595         Sync from coreutils.
67596         * modules/lstat (Depends-on): Don't depend on xalloc.
67597         (License): Change from GPL to LGPL, since this is now simply a
67598         replacement for a libc function.
67599
67600 2006-02-14  Jim Meyering  <jim@meyering.net>
67601
67602         Sync from coreutils.
67603
67604         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
67605         failure on deficient systems, and simplify gnulib lgpl dependencies.
67606         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
67607         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
67608
67609         * lib/xalloc-die.c: Remove unused definition of N_.
67610
67611 2006-02-14  Jim Meyering  <jim@meyering.net>
67612
67613         Sync from coreutils.
67614         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
67615         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
67616         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
67617         double-quote uses of that variable, to accommodate the rare case in
67618         which getmntent is available in none of the libraries checked.  This
67619         happens at least on FreeBSD 5.0.
67620
67621 2006-02-13  Simon Josefsson  <jas@extundo.com>
67622
67623         * gnulib-tool (Usage): Fix --import, from
67624         karl@freefriends.org (Karl Berry).
67625
67626 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
67627
67628         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
67629
67630 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
67631
67632         * lib/argp-namefrob.h: Restore changes accidentally lost during the
67633         "autoupdate" on 2005-12-12.
67634
67635 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
67636
67637         * modules/closeout (Depends-on): Remove atexit.
67638
67639 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
67640
67641         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
67642         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
67643
67644 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
67645
67646         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
67647         __EXTENSIONS__ if this causes compilation to fail.  Problem
67648         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
67649         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
67650
67651 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
67652
67653         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
67654         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
67655         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
67656         All uses changed.
67657
67658 2006-01-26  Simon Josefsson  <jas@extundo.com>
67659
67660         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
67661         prototype is visible on mingw32.
67662
67663         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
67664         for mingw32.
67665
67666         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
67667         mingw32).
67668
67669 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
67670
67671         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
67672         attempt to open for write; this always fails, at least on POSIX
67673         hosts.  This reinstates the 2006-01-09 change, which was
67674         inadvertently removed.
67675
67676 2006-01-26  Bruno Haible  <bruno@clisp.org>
67677
67678         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
67679         Reported by Paul Eggert.
67680
67681 2006-01-26  Bruno Haible  <bruno@clisp.org>
67682             Paul Eggert  <eggert@cs.ucla.edu>
67683
67684         * lib/stdbool_.h (_Bool)
67685         [(! (defined __cplusplus || defined __BEOS__)
67686           && !defined __GNUC__
67687           && !(defined __HP_cc || defined __xlc__
67688                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
67689                || defined __sgi))]:
67690         #define to signed char in these cases too; this simplifies
67691         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
67692         etc., separately) and makes it more conservative.
67693
67694 2006-01-25  Simon Josefsson  <jas@extundo.com>
67695
67696         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
67697         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
67698         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
67699
67700 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67701
67702         * lib/argp-namefrob.h: Bugfix. Remove stray #
67703
67704 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
67705
67706         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
67707         so that we test the test.
67708         Check for yet another HP-UX cc bug involving *bool |= bool.
67709
67710 2006-01-25  Karl Berry  <karl@gnu.org>
67711
67712         * config/srclist.txt (vasnprintf.c): sync lost.
67713
67714 2006-01-25  Jim Meyering  <jim@meyering.net>
67715
67716         Sync from the stable (b5) branch of coreutils:
67717
67718         * lib/fts.c (fts_children): Don't let close() clobber errno from
67719         failed fchdir().
67720
67721         * lib/fts.c (fts_stat): When following a symlink-to-directory,
67722         don't necessarily interpret stat-fails+lstat-succeeds as indicating
67723         a dangling symlink.  That can also happen at least for ELOOP.
67724         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
67725         FYI, this bug predates the inclusion of fts.c in coreutils.
67726
67727         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
67728         in their own block, so pre-c99 compilers don't object.
67729
67730         Avoid the double-free (first in fts_read, second in fts_close) that
67731         would occur when an `active' directory is made inaccessible (e.g.,
67732         via chmod a-x) during a traversal.
67733         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
67734         before returning.  Reproduce this failure by
67735         mkdir -p a/b; cd a; chmod a-x . b
67736         Reported by Stavros Passas.
67737
67738 2006-01-25  Jim Meyering  <jim@meyering.net>
67739
67740         * lib/fileblocks.c: Remove more useless parentheses.
67741         * lib/readutmp.h: Likewise.
67742
67743 2006-01-25  Bruno Haible  <bruno@clisp.org>
67744
67745         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
67746         warnings.
67747         Reported by Paul Eggert.
67748
67749 2006-01-25  Bruno Haible  <bruno@clisp.org>
67750
67751         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
67752         rid of a trap command. For Solaris sh.
67753         Reported by Mark D. Baushke <mdb@gnu.org>.
67754
67755 2006-01-24  Simon Josefsson  <jas@extundo.com>
67756
67757         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
67758         Bruno.
67759
67760 2006-01-24  Karl Berry  <karl@gnu.org>
67761
67762         * config/srclist.txt (argp-namefrob.h): sync lost.
67763
67764 2006-01-24  Jim Meyering  <jim@meyering.net>
67765
67766         * modules/openat (Files): Add lib/intprops.h.
67767         From Mark D. Baushke.
67768
67769 2006-01-24  Jim Meyering  <jim@meyering.net>
67770
67771         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
67772         Reported by Mark D. Baushke.
67773
67774 2006-01-24  Jim Meyering  <jim@meyering.net>
67775
67776         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
67777
67778 2006-01-24  Bruno Haible  <bruno@clisp.org>
67779
67780         * modules/strnlen (Maintainer): Change from glibc to all.
67781
67782 2006-01-24  Bruno Haible  <bruno@clisp.org>
67783
67784         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
67785         Patch by Paul Eggert.
67786
67787 2006-01-24  Bruno Haible  <bruno@clisp.org>
67788
67789         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
67790         already has it.
67791         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
67792         2005-11-26.
67793
67794         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
67795         'signed char' to avoid problems with the built-in _Bool type.
67796         Reported by Paul Eggert on 2005-11-26.
67797
67798 2006-01-24  Bruno Haible  <bruno@clisp.org>
67799
67800         * gnulib-tool (func_import): Avoid constructing complicated sed
67801         expressions inside backquote.
67802         Report and solution by Mark D. Baushke <mdb@gnu.org>.
67803
67804 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
67805
67806         These changes imported from libc.
67807         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
67808         test and two separate function calls.
67809         * lib/strndup.c (__strndup): Add libc_hidden_def.
67810
67811 2006-01-23  Simon Josefsson  <jas@extundo.com>
67812
67813         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
67814         Remove the test_*_SOURCES variable: automake infers it by default.
67815         * modules/tls-tests: Likewise.
67816
67817 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67818
67819         Work around porting bugs reported by Dieter in
67820         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
67821         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
67822         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
67823         Include "getopt.h" first, to check interface.
67824         (getenv): Declare only if defined HAVE_DECL_GETENV &&
67825         !HAVE_DECL_GETENV.
67826         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
67827         (__strndup): Revert to K&R-style function dfns, the glibc style.
67828         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
67829         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
67830         Include strnlen.h first, to get prototype properly.
67831         (strnlen): Renamed from __strnlen.
67832         Remove weak alias.
67833
67834 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67835
67836         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
67837
67838 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67839
67840         * config/srclist.txt: Adjust to reflect glibc reorganization.
67841         This affects only comments.
67842
67843 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67844
67845          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
67846          Reported by Bruce Korb <bkorb@gnu.org>.
67847
67848 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
67849
67850         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
67851         to pacify gcc -Wswitch-default.
67852
67853 2006-01-22  Bruno Haible  <bruno@clisp.org>
67854
67855         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
67856         temporary buffer for sprintf, take into account the precision also
67857         for 'd', 'i', 'u', 'o', 'x', 'X'.
67858
67859 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
67860
67861         * modules/argp-tests: New module
67862         * tests/test-argp.c: New file
67863         * tests/test-argp-2.sh: New file
67864
67865 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
67866
67867         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
67868         (__argp_base_name): Removed
67869         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
67870         typo.
67871         (__argp_base_name): Provide macro definition or extern declaration
67872         depending on the configuration
67873
67874 2006-01-20  Simon Josefsson  <jas@extundo.com>
67875
67876         * modules/inet_ntop (Depends-on): Depend on sys_socket.
67877
67878 2006-01-20  Simon Josefsson  <jas@extundo.com>
67879
67880         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
67881
67882 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67883
67884         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
67885         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
67886         Suggested by Bruno Haible.
67887
67888 2006-01-20  Karl Berry  <karl@gnu.org>
67889
67890         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
67891         until changes propagate, I guess.
67892
67893 2006-01-19  Simon Josefsson  <jas@extundo.com>
67894
67895         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
67896
67897 2006-01-19  Simon Josefsson  <jas@extundo.com>
67898
67899         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
67900
67901 2006-01-19  Simon Josefsson  <jas@extundo.com>
67902
67903         * gnulib-tool: Set check_PROGRAMS.
67904
67905         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
67906         modules/des-tests, modules/gc-arcfour-tests,
67907         modules/gc-arctwo-tests, modules/gc-des-tests,
67908         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
67909         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
67910         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
67911         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
67912         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
67913         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
67914         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
67915         test_*_SOURCES.
67916
67917 2006-01-18  Simon Josefsson  <jas@extundo.com>
67918
67919         * modules/socklen (Depends-on): Depend on sys_socket.
67920
67921 2006-01-18  Simon Josefsson  <jas@extundo.com>
67922
67923         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
67924         modules/des-tests, modules/gc-arcfour-tests,
67925         modules/gc-arctwo-tests, modules/gc-des-tests,
67926         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
67927         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
67928         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
67929         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
67930         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
67931         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
67932         $(EXEEXT) to automake TESTS variable, for mingw32.
67933
67934 2006-01-17  Simon Josefsson  <jas@extundo.com>
67935
67936         * modules/socklen (Include): Need sys/socket.h.
67937
67938 2006-01-17  Bruno Haible  <bruno@clisp.org>
67939
67940         * modules/ssize_t (Include): Add <sys/types.h>.
67941
67942 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
67943
67944         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
67945         it's not portable and it doesn't work with cross-compiles.
67946         Problem reported by Bruno Haible.  Fix missing-$ typo in
67947         'test "gl_cv_ignore_unused_libraries" ...' that prevented
67948         -zignore from being used with Sun's C compiler.
67949
67950 2006-01-12  Simon Josefsson  <jas@extundo.com>
67951
67952         * lib/base64.c: Fix warning, reported by Bruno Haible
67953         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
67954
67955 2006-01-12  Bruno Haible  <bruno@clisp.org>
67956
67957         * modules/ldd: New file.
67958         * build-aux/ldd.sh.in: New file.
67959         * MODULES.html.sh (Support for building libraries and executables): Add
67960         ldd.
67961
67962 2006-01-12  Bruno Haible  <bruno@clisp.org>
67963
67964         * m4/ldd.m4: New file.
67965
67966 2006-01-12  Bruno Haible  <bruno@clisp.org>
67967
67968         * gnulib-tool (func_import, func_create_testdir): Don't go into an
67969         endless loop while replacing $auxdir with build-aux.
67970
67971 2006-01-11  Simon Josefsson  <jas@extundo.com>
67972
67973         * lib/stdint_.h (SIZE_MAX): Add missing (.
67974
67975 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
67976
67977         Sync from coreutils.
67978         * lib/md5.c: Fix commentary typos.
67979         (alignof, UNALIGNED_P): No need for a GCC-specific version.
67980         * lib/md5.h (__attribute__): Remove; unused.
67981         * lib/sha1.c: Fix commentary to match md5 better.
67982         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
67983         so that we don't need to worry about alignment.  All uses changed.
67984         This merges the 2005-10-28 md5 change into sha1.
67985
67986 2006-01-11  Jim Meyering  <jim@meyering.net>
67987
67988         Sync from coreutils.
67989         * lib/md5.c (OP): Fix spacing.
67990
67991 2006-01-11  Bruno Haible  <bruno@clisp.org>
67992
67993         Ensure automatic ordering between gl_LOCK and gl_ARGP.
67994         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
67995         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
67996
67997 2006-01-11  Bruno Haible  <bruno@clisp.org>
67998
67999         Ensure automatic ordering between gl_LOCK and gl_ARGP.
68000         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
68001         the "early" section as well.
68002
68003 2006-01-11  Bruno Haible  <bruno@clisp.org>
68004
68005         Avoid "ar: no archive members specified" error on MacOS X.
68006         * gnulib-tool (func_modules_add_dummy): New function.
68007         (func_import, func_create_testdir): Invoke it.
68008
68009 2006-01-11  Bruno Haible  <bruno@clisp.org>
68010
68011         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
68012         with $auxdir in AC_CONFIG_FILES statements.
68013
68014 2006-01-11  Bruno Haible  <bruno@clisp.org>
68015
68016         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68017         Initialize also noinst_HEADERS to empty.
68018
68019 2006-01-11  Bruno Haible  <bruno@clisp.org>
68020
68021         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
68022         variables.
68023         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
68024         autoreconf.
68025
68026 2006-01-11  Bruno Haible  <bruno@clisp.org>
68027
68028         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
68029         overridable by the user.
68030         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68031
68032 2006-01-10  Simon Josefsson  <jas@extundo.com>
68033
68034         * modules/sys_socket: New file.
68035
68036 2006-01-10  Simon Josefsson  <jas@extundo.com>
68037
68038         * m4/sys_socket_h.m4: New file.
68039
68040 2006-01-10  Simon Josefsson  <jas@extundo.com>
68041
68042         * lib/socket_.h: New file.
68043
68044 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
68045
68046         * modules/readutmp (Maintainer): Add myself.
68047
68048 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
68049
68050         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
68051         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
68052         People who are still concerned with buggy memcmp implementations
68053         can invoke gl_FUNC_MEMCMP themselves.
68054
68055 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
68056
68057         * lib/regex_internal.h (BITSET_WORD_BITS):
68058         Work around a bug in 64-bit PGC (before version 6.1-2), where the
68059         preprocessor mishandles large unsigned values as if they were signed.
68060         Problem reported by Claudio Fontana in
68061         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
68062
68063 2006-01-10  Jim Meyering  <jim@meyering.net>
68064
68065         Avoid the double-free (first in fts_read, second in fts_close) that
68066         would occur when an `active' directory is made inaccessible (e.g.,
68067         via chmod a-x) during a traversal.
68068         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
68069         before returning.  Reproduce this failure by
68070         mkdir -p a/b; cd a; chmod a-x . b
68071         Reported by Stavros Passas.
68072
68073         Sync from coreutils.
68074         * lib/sha1.c: Tweak grammar in a comment.
68075
68076 2006-01-10  Jim Meyering  <jim@meyering.net>
68077
68078         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
68079         Patch by Joerg Sonnenberger.
68080
68081 2006-01-10  Bruno Haible  <bruno@clisp.org>
68082
68083         * modules/readutmp: Depend on module free.
68084         * modules/strtok_r: Depend on module restrict.
68085
68086 2006-01-10  Bruno Haible  <bruno@clisp.org>
68087
68088         * modules/gettext (configure.ac): Add an invocation of
68089         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
68090
68091 2006-01-10  Bruno Haible  <bruno@clisp.org>
68092
68093         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
68094         Reported by Werner Lemberg <wl@gnu.org>.
68095
68096 2006-01-10  Bruno Haible  <bruno@clisp.org>
68097
68098         * lib/localcharset.c: Update from GNU gettext.
68099
68100 2006-01-10  Bruno Haible  <bruno@clisp.org>
68101
68102         * lib/argp.h (__const): Remove macro. Use const instead.
68103         * lib/argp-fmtstream.h (__const): Likewise.
68104         * lib/glob_.h (__const): Remove macro.
68105         * lib/glob-libc.h: Use const instead of __const.
68106
68107 2006-01-10  Bruno Haible  <bruno@clisp.org>
68108
68109         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
68110         variable.
68111         Needed to avoid an automake error regarding the 'gettext' module.
68112
68113 2006-01-09  Simon Josefsson  <jas@extundo.com>
68114
68115         * modules/inet_ntop (Depends-on): Add restrict.
68116
68117 2006-01-09  Simon Josefsson  <jas@extundo.com>
68118
68119         * modules/gc-rijndael-tests (License): Put under LGPL.
68120
68121         * modules/gc-des-tests (License): Likewise.
68122
68123         * modules/gc-arcfour-tests (License): Likewise.
68124
68125         * modules/gc-arctwo-tests (License): Likewise.
68126
68127         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
68128
68129         * modules/gc-hmac-sha1-tests (Files): Likewise.
68130
68131         * modules/gc-hmac-md5-tests (License): Likewise.
68132
68133         * modules/gc-sha1-tests (License): Likewise.
68134
68135         * modules/gc-md5-tests (License): Likewise.
68136
68137         * modules/gc-md4-tests (License): Likewise.
68138
68139         * modules/gc-md2-tests (License): Likewise.
68140
68141         * modules/gc-tests (License): Likewise.
68142
68143         * modules/des-tests (License): Likewise.
68144
68145         * modules/md4-tests (License): Likewise.
68146
68147         * modules/md2-tests (License): Likewise.
68148
68149 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
68150
68151         Sync from coreutils:
68152
68153         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
68154         * modules/lib-ignore: New file.
68155         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
68156         chdir-safer.m4, lchmod.m4.
68157         * modules/openat: Add mkdirat.c, openat-priv.h.
68158
68159 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
68160
68161         Sync from coreutils.
68162         * m4/lib-ignore.m4: New file.
68163         * m4/lchmod.m4: New file.
68164
68165 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
68166
68167         Sync from coreutils.
68168         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
68169         for write access: POSIX says that must fail.
68170         * lib/fts.c (diropen): Likewise.
68171         * lib/save-cwd.c (save_cwd): Likewise.
68172         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
68173         well, for minor improvements on hosts that lack O_DIRECTORY.
68174         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
68175         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
68176         Fall back on chown if open failed with EACCES.
68177
68178         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
68179         Report an error at compile-time if only a 1-second nominal clock
68180         resolution is found.
68181
68182         * lib/lchmod.h: New file.
68183         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
68184         (make_dir_parents): Use lchown rather than chown, and
68185         lchmod rather than chmod.
68186
68187         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
68188         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
68189         "proc" reported by n0dalus.
68190
68191         * lib/mountlist.c: Include <limits.h>.
68192         (dev_from_mount_options)
68193         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
68194         New function.  It no longer assumes "dev=" has the System V meaning
68195         on Linux (since it doesn't).  It also parses "dev=" more carefully.
68196         (read_file_system_list)
68197         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
68198         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
68199         dev= in that case.
68200
68201         * lib/posixtm.h (PDS_PRE_2000): New macro.
68202         * lib/posixtm.c (year): Arg is now syntax_bits rather than
68203         allow_century.  All usages changed.  Reject dates outside the range
68204         1969-1999 if PDS_PRE_2000 is used.
68205
68206 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
68207
68208         Sync from coreutils.
68209         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
68210         (Time of day items): Mention the possibility of leap seconds.
68211         Problem reported by Dr. David Alan Gilbert.
68212
68213 2006-01-09  Jim Meyering  <jim@meyering.net>
68214
68215         Sync from coreutils.
68216
68217         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
68218
68219         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
68220
68221         * lib/modechange.c (mode_compile): Reject an invalid mode string
68222         that starts with an octal digit.  From Andreas Gruenbacher.
68223
68224         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
68225         and dup to open_safer and dup_safer, respectively.
68226         (openat_permissive): Fix typo in comment.
68227
68228         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
68229         "gettext.h"; either no longer needed or are guaranteed by openat.h.
68230         (_): Remove; no longer needed.
68231         (openat): Renamed from rpl_openat; no need for rpl_openat
68232         since openat.h renames openat for us.
68233         Replace most of the body with a call to openat_permissive,
68234         to avoid duplicate code.
68235         Port to (probably hypothetical) environments were mode_t is
68236         wider than int.
68237         (openat_permissive): Require mode arg, so that we can check
68238         types better.  Put it just after flags.  Change cwd failure
68239         indicator from pointer-to-bool to pointer-to-errno-value.
68240         All callers changed.
68241         Invoke openat_save_fail and/or openat_restore_fail if
68242         cwd_errno is null, so that openat can call us.
68243         (openat_permissive, fdopendir, fstatat, unlinkat):
68244         Simplify errno handling to avoid some duplicate code,
68245         as it's OK to set errno on success.
68246         * lib/openat.h: Revamp code so that function macros depend on
68247         __OPENAT_PREFIX only, not also on AT_FDCWD.
68248         (openat_ro): Remove.  Caller changed to use openat_permissive.
68249         (openat_permissive): Now a macro, if not a function.
68250         (openat_restore_fail, openat_save_fail): Now always functions,
68251         since mkdirat needs them even if __OPENAT_PREFIX is defined.
68252
68253         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
68254         and openat.c.
68255         * lib/mkdirat.c: Include openat-priv.h.
68256         Remove definitions of macros defined therein.
68257         * lib/openat.c: Likewise.
68258
68259         * lib/mkdirat.c (mkdirat): New file and function.
68260         * lib/openat.h (mkdirat): Declare.
68261
68262         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
68263
68264         * lib/openat.h (openat_permissive): Declare.
68265         (openat_ro): Define.
68266
68267         * lib/openat.c (EXPECTED_ERRNO): New macro.
68268         (openat_permissive): New function -- used in remove.c rewrite.
68269         (all functions): Set errno just before returning, only if there
68270         was an actual failure.
68271         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
68272
68273         Emulate openat-family functions using Linux's procfs, if possible.
68274         Idea and some code based on Ulrich Drepper's glibc changes.
68275
68276         * lib/openat.c: (BUILD_PROC_NAME): New macro.
68277         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
68278         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
68279         before falling back on save_cwd and restore_cwd.
68280         (fdopendir, fstatat, unlinkat): Likewise.
68281
68282         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
68283         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
68284
68285         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
68286         as second argument to va_arg.  Otherwise, some versions of gcc
68287         warn that `if this code is reached, the program will abort'.
68288
68289 2006-01-09  Jim Meyering  <jim@meyering.net>
68290
68291         Sync from coreutils.
68292         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
68293         Require openat-priv.h.
68294
68295 2006-01-09  Bruno Haible  <bruno@clisp.org>
68296
68297         * modules/strnlen (Include): Use strnlen.h.
68298
68299 2006-01-09  Bruno Haible  <bruno@clisp.org>
68300
68301         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
68302
68303 2006-01-09  Bruno Haible  <bruno@clisp.org>
68304
68305         * lib/sysexit_.h (EX_OK): New macro.
68306         Suggested by Martin Lambers <marlam@marlam.de>.
68307
68308 2006-01-09  Bruno Haible  <bruno@clisp.org>
68309
68310         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
68311         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
68312
68313 2006-01-09  Bruno Haible  <bruno@clisp.org>
68314
68315         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
68316         numbers.
68317
68318 2006-01-09  Bruno Haible  <bruno@clisp.org>
68319
68320         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
68321         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
68322         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
68323         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
68324
68325 2006-01-09  Bruno Haible  <bruno@clisp.org>
68326
68327         * build-aux/javacomp.sh.in: New file, moved from lib/.
68328         * modules/javacomp-script (Files): Update.
68329         (configure.ac): Add AC_CONFIG_FILES invocation.
68330         (EXTRA_DIST): Remove variable.
68331
68332         * build-aux/javaexec.sh.in: New file, moved from lib/.
68333         * modules/javaexec (Files): Update.
68334         (configure.ac): Add AC_CONFIG_FILES invocation.
68335         (EXTRA_DIST): Remove javaexec.sh.in.
68336
68337         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
68338         * modules/csharpcomp-script (Files): Update.
68339         (configure.ac): Add AC_CONFIG_FILES invocation.
68340         (EXTRA_DIST): Remove variable.
68341
68342         * build-aux/csharpexec.sh.in: New file, moved from lib/.
68343         * modules/csharpexec (Files): Update.
68344         (configure.ac): Add AC_CONFIG_FILES invocation.
68345         (EXTRA_DIST): Remove csharpexec.sh.in.
68346
68347 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
68348
68349         Sync from coreutils.
68350
68351         Add POSIX ACL support
68352         * lib/acl.h (copy_acl, set_acl): Add declarations.
68353         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
68354         systems other than Linux.
68355         (chmod_or_fchmod): New function: use fchmod when possible,
68356         and chmod otherwise.
68357         (file_has_acl): Add a POSIX ACL implementation, with a
68358         Linux-specific subcase.
68359         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
68360         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
68361         acls are unsupported.
68362         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
68363         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
68364         are unsupported.
68365
68366 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
68367
68368         Sync from coreutils.
68369         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
68370
68371 2006-01-07  Bruno Haible  <bruno@clisp.org>
68372
68373         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
68374         gl_EARLY.
68375
68376 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
68377
68378         * lib/strftime.c (tzname): Don't declare if it is already #defined.
68379         Problem reported for Mingw by Mark Junker.
68380
68381 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
68382
68383         * README: Gnulib normally doesn't generate a tarball.
68384
68385 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
68386
68387         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
68388         long int, not int, for nanosecond counts, so that people who are
68389         used to POSIX struct timespec won't be surprised.  Reported by Jim
68390         Meyering.
68391
68392 2005-12-28  Bruno Haible  <bruno@clisp.org>
68393
68394         * build-aux/config.rpath: Update from GNU gettext.
68395
68396 2005-12-16  Jim Meyering  <jim@meyering.net>
68397
68398         * modules/fprintftime: New module.
68399         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
68400
68401 2005-12-16  Jim Meyering  <jim@meyering.net>
68402
68403         * m4/fprintftime.m4: New file.
68404
68405 2005-12-16  Jim Meyering  <jim@meyering.net>
68406
68407         * lib/fprintftime.c, lib/fprintftime.h: New files.
68408
68409 2005-12-15  Simon Josefsson  <jas@extundo.com>
68410
68411         * modules/socklen (configure.ac): Fix M4 macro name, to align with
68412         new m4/socklen.m4.
68413
68414 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68415
68416         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
68417         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
68418
68419 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68420
68421         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
68422         * lib/argp-help.c (fill_in_uparams): Check if the constructed
68423         struct uparams is valid. Fall back to the default values if it is
68424         not.
68425
68426 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68427
68428         * modules/argp (Files): Add argp-pin.c
68429         (Depends-on): dirname
68430         (lib_SOURCES): Add argp-pin.c
68431
68432 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68433
68434         * m4/argp.m4:  Check if program_invocation_name and
68435         program_invocation_short_name are declared and define appropriate
68436         macros if they are not.
68437
68438 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68439
68440         * lib/argp-help.c (__argp_base_name): New function
68441         (__argp_short_program_name): Rewrite using __argp_base_name
68442         * lib/argp-namefrob.h: Define program_invocation_name and
68443         program_invocation_short_name if requested
68444         (__argp_base_name): Add prototype
68445         * lib/argp-parse.c (argp_def): Use gettext wrappers
68446         (argp_default_parser): Use __argp_base_name
68447         * lib/argp-pin.c: New file. Defines program_invocation_name and
68448         program_invocation_short_name on systems that lack them.
68449
68450 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
68451
68452         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
68453         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
68454         porting problem reported by Georg Schwarz in
68455         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
68456
68457 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
68458
68459         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
68460         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
68461         porting problem reported by Georg Schwarz in
68462         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
68463
68464 2005-12-05  Bruno Haible  <bruno@clisp.org>
68465
68466         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
68467         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
68468         Reported by Mark Junker <mjscod@gmx.de>.
68469
68470 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
68471
68472         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
68473         Use implementation from Albert Chin, with some
68474         comments/corrections by Stepan Kasal and myself.
68475
68476 2005-12-02  Bruno Haible  <bruno@clisp.org>
68477
68478         * gnulib-tool (func_import): Accept GPLed build tool modules when
68479         --lgpl is given.
68480         * modules/csharpcomp-script: New file.
68481         * modules/csharpcomp: Depend on it.
68482         * modules/javacomp-script: New file.
68483         * modules/javacomp: Depend on it.
68484         Suggested by Simon Josefsson.
68485
68486 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
68487
68488         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
68489         statement, to work around an HP-UX 10.20 compiler bug reported by
68490         Peter O'Gorman.
68491
68492 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
68493
68494         * modules/savedir (Depends-on): Add openat.
68495
68496 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
68497
68498         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
68499         (uintmax_t) [defined uintmax_t]: Do not declare.
68500         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
68501         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
68502         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
68503         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
68504         sake of portability to weird hosts that C allows (though we don't
68505         know of any practical examples).
68506
68507         * lib/savedir.h (fdsavedir): New decl.
68508         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
68509         contains most of the former guts of savedir.
68510         (savedir): Use savedirstream.
68511         Include "openat.h".
68512
68513 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
68514
68515         * modules/obstack (Files): Add m4/ulonglong.m4.
68516         Problem reported by Davide Angelocola.
68517
68518 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
68519
68520         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
68521         coreutils no longer futzes with rounding modes.
68522
68523 2005-11-14  Jim Meyering  <jim@meyering.net>
68524
68525         * lib/mkstemp-safer.c: Include <config.h>, required for possible
68526         replacement of mkstemp.
68527
68528 2005-11-10  Simon Josefsson  <jas@extundo.com>
68529
68530         * lib/readline.c: Remove EOL.
68531
68532 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68533
68534         * modules/gethrxtime (Depends-on): Add gettime.
68535
68536 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68537
68538         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
68539         or gettimeofday; no longer needed.
68540
68541 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68542
68543         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
68544         time business.
68545         (gethrxtime) [! (HAVE_NANOUPTIME
68546         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
68547         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
68548         our own approximation.
68549
68550 2005-11-08  Eric Blake  <ebb9@byu.net>
68551
68552         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
68553
68554 2005-11-08  Eric Blake  <ebb9@byu.net>
68555
68556         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
68557
68558 2005-11-04  Bruno Haible  <bruno@clisp.org>
68559
68560         * gnulib-tool: Implement --update mode.
68561
68562 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
68563
68564         Fix porting problem reported by Theodoros V. Kalamatianos.
68565         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
68566         Don't assume that futimes failing means we must fail.
68567
68568 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
68569
68570         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
68571         variables to suggest the intended function of the PATH_MAX check.
68572
68573 2005-10-30  Kean Johnston  <jkj@sco.com>
68574
68575         Trivial changes to support SCO systems.
68576         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
68577         as PATH_MAX.
68578         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
68579         where __ptr is null when no I/O is pending.
68580
68581 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68582
68583         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
68584         leave errno alone.  Problem reported by Dmitry V. Levin.
68585
68586 2005-10-28  Simon Josefsson  <jas@extundo.com>
68587
68588         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
68589         Test more.
68590
68591         * tests/test-gc-md2.c, tests/test-md2.c: New files.
68592
68593         * modules/md2, modules/md2-tests: New files.
68594
68595 2005-10-28  Simon Josefsson  <jas@extundo.com>
68596
68597         * m4/inet_ntop.m4: More tests.
68598
68599         * m4/gc-md2.m4, md2.m4: New file.
68600
68601 2005-10-28  Simon Josefsson  <jas@extundo.com>
68602
68603         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
68604         "restrict" keywords, as per POSIX.  Protect the function
68605         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
68606         Don't use K&R prototypes.  Check the sprintf return values.
68607         Re-define EAFNOSUPPORT if not present.  Indent.
68608
68609         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
68610         suggested by Bruno Haible <bruno@clisp.org>.
68611
68612         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
68613
68614         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
68615
68616         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
68617         libgcrypt).
68618
68619         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
68620
68621         * lib/md2.h, lib/md2.c: New files.
68622
68623 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
68624
68625         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
68626         errno alone.  Problem reported by Frederic Jolliton.
68627
68628 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
68629
68630         * modules/verify (License): Change from GPL to LGPL.  This is a
68631         tiny module and there are apparently near-equivalents that are
68632         under the BSD license.
68633
68634 2005-10-24  Simon Josefsson  <jas@extundo.com>
68635
68636         * modules/sha1: Relicense to LGPL.
68637
68638 2005-10-24  Simon Josefsson  <jas@extundo.com>
68639
68640         * lib/md4.h: Shrink buffer size, now that we changed the type.
68641
68642 2005-10-23  Simon Josefsson  <jas@extundo.com>
68643
68644         * gnulib-tool (func_import): Fix --tests-base.
68645
68646 2005-10-22  Simon Josefsson  <jas@extundo.com>
68647
68648         * modules/arcfour (Depends-on): Need stdint.
68649
68650 2005-10-22  Simon Josefsson  <jas@extundo.com>
68651
68652         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
68653         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
68654
68655 2005-10-22  Simon Josefsson  <jas@extundo.com>
68656
68657         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
68658         suggested by Bruno Haible <bruno@clisp.org>.
68659
68660 2005-10-22  Simon Josefsson  <jas@extundo.com>
68661
68662         * lib/crc.h: Include stddef.h, for size_t.
68663
68664 2005-10-22  Simon Josefsson  <jas@extundo.com>
68665
68666         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
68667         arcfour_context struct (simplify test vector testing in GNU
68668         Shishi).
68669
68670 2005-10-21  Simon Josefsson  <jas@extundo.com>
68671
68672         * modules/des, modules/des-tests: New files.
68673
68674         * modules/gc-des, modules/gc-des-tests: New files.
68675
68676         * tests/test-des.c, tests/test-gc-des.c: New file.
68677
68678 2005-10-21  Simon Josefsson  <jas@extundo.com>
68679
68680         * modules/arctwo, modules/arctwo-tests: New files.
68681
68682         * tests/test-arctwo.c: New file.
68683
68684         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
68685
68686         * tests/test-gc-arctwo.c: New file.
68687
68688 2005-10-21  Simon Josefsson  <jas@extundo.com>
68689
68690         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
68691         Bruno Haible <bruno@clisp.org>.
68692
68693         * m4/gc-des.m4: New file.
68694
68695 2005-10-21  Simon Josefsson  <jas@extundo.com>
68696
68697         * m4/arctwo.m4: New file.
68698
68699         * m4/gc-arctwo.m4: New file.
68700
68701 2005-10-21  Simon Josefsson  <jas@extundo.com>
68702
68703         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
68704         block.
68705
68706 2005-10-21  Simon Josefsson  <jas@extundo.com>
68707
68708         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
68709         <bruno@clisp.org>.
68710
68711         * lib/hmac-sha1.c (hmac_sha1): Likewise.
68712
68713         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
68714         Bruno Haible <bruno@clisp.org>.
68715
68716         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
68717         <bruno@clisp.org>.
68718
68719 2005-10-21  Simon Josefsson  <jas@extundo.com>
68720
68721         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
68722
68723 2005-10-21  Simon Josefsson  <jas@extundo.com>
68724
68725         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
68726
68727 2005-10-21  Simon Josefsson  <jas@extundo.com>
68728
68729         * lib/des.h, lib/des.c: New files.
68730
68731         * lib/gc-gnulib.c: Support DES.c
68732
68733 2005-10-21  Simon Josefsson  <jas@extundo.com>
68734
68735         * lib/arctwo.h, lib/arctwo.c: New files.
68736
68737         * lib/gc-gnulib.c: Support ARCTWO.
68738
68739 2005-10-21  Simon Josefsson  <jas@extundo.com>
68740
68741         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
68742         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68743
68744 2005-10-21  Simon Josefsson  <jas@extundo.com>
68745
68746         * gnulib-tool (func_import, func_create_testdir): Define automake
68747         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
68748         Makefile.am snippet),
68749         suggested by Bruno Haible <bruno@clisp.org>.
68750
68751         * modules/gc (Makefile.am): Use it.
68752
68753 2005-10-21  Bruno Haible  <bruno@clisp.org>
68754
68755         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
68756         patch.
68757
68758 2005-10-19  Simon Josefsson  <jas@extundo.com>
68759
68760         * tests/test-gc-rijndael.c: New file.
68761
68762         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
68763
68764 2005-10-19  Simon Josefsson  <jas@extundo.com>
68765
68766         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
68767         interface too.
68768
68769 2005-10-19  Simon Josefsson  <jas@extundo.com>
68770
68771         * tests/test-gc-arcfour.c: New file.
68772
68773         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
68774
68775 2005-10-19  Simon Josefsson  <jas@extundo.com>
68776
68777         * modules/gc-md4, modules/gc-md4-tests: New file.
68778
68779         * tests/test-gc-md4.c: New file.
68780
68781 2005-10-19  Simon Josefsson  <jas@extundo.com>
68782
68783         * m4/gc-md4.m4: New file.
68784
68785 2005-10-19  Simon Josefsson  <jas@extundo.com>
68786
68787         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
68788         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
68789         <kasal@ucw.cz>.
68790
68791 2005-10-19  Simon Josefsson  <jas@extundo.com>
68792
68793         * m4/gc-arcfour.m4: New file.
68794
68795         * m4/gc-rijndael.m4: New file.
68796
68797 2005-10-19  Simon Josefsson  <jas@extundo.com>
68798
68799         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
68800
68801 2005-10-19  Simon Josefsson  <jas@extundo.com>
68802
68803         * lib/gc-gnulib.c: Support ARCFOUR.
68804
68805 2005-10-19  Simon Josefsson  <jas@extundo.com>
68806
68807         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
68808         support.
68809
68810         * lib/gc.h: Add ECB enum type.
68811
68812         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
68813
68814 2005-10-18  Simon Josefsson  <jas@extundo.com>
68815
68816         * tests/test-md5.c: New file.
68817
68818         * modules/md5-tests: New file.
68819
68820 2005-10-18  Simon Josefsson  <jas@extundo.com>
68821
68822         * tests/test-md4.c: New file.
68823
68824         * modules/md4, modules/md4-tests: New files.
68825
68826 2005-10-18  Simon Josefsson  <jas@extundo.com>
68827
68828         * m4/md4.m4: New file.
68829
68830 2005-10-18  Simon Josefsson  <jas@extundo.com>
68831
68832         * lib/md4.h, lib/md4.c: New files, based on md5.?.
68833
68834 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
68835
68836         * gnulib-tool (func_create_testdir): Omit the second check whether
68837         BUILT_SOURCES in nonempty.
68838
68839 2005-10-17  Simon Josefsson  <jas@extundo.com>
68840
68841         * tests/test-rijndael.c: New file.
68842
68843 2005-10-17  Simon Josefsson  <jas@extundo.com>
68844
68845         * modules/sha1: Depend on stdint instead of md5.
68846
68847         * modules/md5: Depend on stdint, remove uint32_t.
68848
68849 2005-10-17  Simon Josefsson  <jas@extundo.com>
68850
68851         * modules/gc-sha1-tests: New file.
68852
68853         * tests/test-gc-sha1.c: New file.
68854
68855 2005-10-17  Simon Josefsson  <jas@extundo.com>
68856
68857         * m4/md5.m4: Remove call to uint32_t.m4.
68858
68859 2005-10-17  Simon Josefsson  <jas@extundo.com>
68860
68861         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
68862
68863         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
68864         md5.h.
68865
68866         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
68867
68868         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
68869
68870 2005-10-17  Simon Josefsson  <jas@extundo.com>
68871
68872         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
68873
68874 2005-10-17  Simon Josefsson  <jas@extundo.com>
68875
68876         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
68877
68878 2005-10-17  Simon Josefsson  <jas@extundo.com>
68879
68880         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
68881
68882         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
68883
68884 2005-10-17  Bruno Haible  <bruno@clisp.org>
68885
68886         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
68887         that it can also be used in a test.
68888
68889 2005-10-16  Bruno Haible  <bruno@clisp.org>
68890
68891         * gnulib-tool (func_emit_tests_Makefile_am): Also define
68892         TESTS_ENVIRONMENT, so that individual tests can augment it.
68893
68894         * gnulib-tool (func_create_testdir): Use an intermediate target for
68895         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
68896         macros, like $(ALLOCA_H), which cannot be passed through the command
68897         line.
68898
68899 2005-10-15  Simon Josefsson  <jas@extundo.com>
68900
68901         * modules/rijndael-tests: New file.
68902
68903         * modules/rijndael: New file.
68904
68905 2005-10-15  Simon Josefsson  <jas@extundo.com>
68906
68907         * m4/rijndael.m4: New file.
68908
68909 2005-10-15  Simon Josefsson  <jas@extundo.com>
68910
68911         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
68912
68913         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
68914
68915 2005-10-14  Simon Josefsson  <jas@extundo.com>
68916
68917         * tests/test-arcfour.c: New file.
68918
68919         * modules/arcfour, modules/arcfour-tests: New files.
68920
68921 2005-10-14  Simon Josefsson  <jas@extundo.com>
68922
68923         * m4/arcfour.m4: New file.
68924
68925 2005-10-14  Simon Josefsson  <jas@extundo.com>
68926
68927         * lib/arcfour.h, lib/arcfour.c: New files.
68928
68929 2005-10-14  Roland McGrath  <roland@redhat.com>
68930
68931         Import from libc.  [BZ #1331]
68932         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
68933         macro argument.
68934         Reported by Matej Vela <vela@debian.org>.
68935
68936 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68937
68938         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
68939         include <wchar.h>; no longer needed.
68940
68941 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68942
68943         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
68944
68945 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
68946         and  Ulrich Drepper  <drepper@redhat.com>
68947
68948         Import from libc.
68949         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
68950         instead of inline stream orientation test and two separate
68951         function calls.  Pay no attention to USE_IN_LIBIO.
68952
68953 2005-10-13  Simon Josefsson  <jas@extundo.com>
68954
68955         * modules/gc-hmac-md5-tests: New file.
68956
68957         * tests/test-gc-hmac-sha1.c: New file.
68958
68959         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
68960
68961         * modules/gc-hmac-md5-tests: New file.
68962
68963         * tests/test-gc-md5.c: New file.
68964
68965         * modules/gc-md5-tests: New file.
68966
68967 2005-10-13  Simon Josefsson  <jas@extundo.com>
68968
68969         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
68970         Move memory allocation outside of loop.
68971
68972 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
68973
68974         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
68975         intermediate directory is in a read-only file system.  Problem
68976         reported by Eric Blake.
68977
68978 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
68979
68980         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
68981
68982 2005-10-12  Simon Josefsson  <jas@extundo.com>
68983
68984         * tests/test-hmac-sha1.c: New file.
68985
68986         * modules/hmac-sha1-tests: New file.
68987
68988         * modules/hmac-sha1: New file.
68989
68990 2005-10-12  Simon Josefsson  <jas@extundo.com>
68991
68992         * modules/gc-sha1: New file.
68993
68994 2005-10-12  Simon Josefsson  <jas@extundo.com>
68995
68996         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
68997
68998         * tests/test-gc-pbkdf2-sha1.c: New file.
68999
69000 2005-10-12  Simon Josefsson  <jas@extundo.com>
69001
69002         * modules/gc-md5, modules/gc-hmac-md5: New files.
69003
69004         * modules/gc (Files): Remove md5, memxor and hmac files.
69005
69006 2005-10-12  Simon Josefsson  <jas@extundo.com>
69007
69008         * m4/gc-pbkdf2-sha1.m4: New file.
69009
69010         * m4/gc-hmac-sha1.m4: New file.
69011
69012         * m4/gc-sha1: New file.
69013
69014         * m4/hmac-sha1.m4: New file.
69015
69016 2005-10-12  Simon Josefsson  <jas@extundo.com>
69017
69018         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
69019
69020         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
69021
69022 2005-10-12  Simon Josefsson  <jas@extundo.com>
69023
69024         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
69025         suggested by Bruno Haible <bruno@clisp.org>.
69026
69027 2005-10-12  Simon Josefsson  <jas@extundo.com>
69028
69029         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
69030
69031 2005-10-12  Simon Josefsson  <jas@extundo.com>
69032
69033         * lib/gc-pbkdf2-sha1.c: New file.
69034
69035         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
69036
69037 2005-10-12  Simon Josefsson  <jas@extundo.com>
69038
69039         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
69040
69041         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
69042
69043 2005-10-12  Simon Josefsson  <jas@extundo.com>
69044
69045         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
69046         GC_USE_HMAC_MD5, respectively.
69047
69048         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
69049         (gc_md5): Fix typo.
69050
69051         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
69052
69053         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
69054
69055         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
69056
69057 2005-10-12  Bruno Haible  <bruno@clisp.org>
69058
69059         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
69060         Reported by Stepan Kasal <kasal@ucw.cz>.
69061
69062 2005-10-11  Simon Josefsson  <jas@extundo.com>
69063
69064         * tests/test-crc.c: New file.
69065
69066         * modules/crc, modules/crc-tests: New files.
69067
69068 2005-10-11  Simon Josefsson  <jas@extundo.com>
69069
69070         * m4/crc.m4: New file.
69071
69072 2005-10-11  Simon Josefsson  <jas@extundo.com>
69073
69074         * lib/gc.h: Add gc_hash and gc_hash_buffer.
69075
69076         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
69077
69078         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
69079
69080 2005-10-11  Simon Josefsson  <jas@extundo.com>
69081
69082         * lib/crc.h, lib/crc.c: New files.
69083
69084         * lib/gc.h (gc_hash_buffer): Add doc.
69085
69086 2005-10-11  Bruno Haible  <bruno@clisp.org>
69087
69088         * modules/c-strcasestr: New file.
69089         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
69090
69091 2005-10-11  Bruno Haible  <bruno@clisp.org>
69092
69093         * modules/c-strcase: New file.
69094         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
69095
69096 2005-10-11  Bruno Haible  <bruno@clisp.org>
69097
69098         * lib/strcasecmp.c: Include limits.h.
69099         (strcasecmp): Avoid integer overflow on exotic platforms.
69100         * lib/strncasecmp.c: Include limits.h.
69101         (strncasecmp): Avoid integer overflow on exotic platforms.
69102         Reported by Paul Eggert.
69103
69104 2005-10-11  Bruno Haible  <bruno@clisp.org>
69105
69106         * lib/c-strcasestr.h: New file, from GNU gettext.
69107         * lib/c-strcasestr.c: New file, from GNU gettext.
69108
69109 2005-10-11  Bruno Haible  <bruno@clisp.org>
69110
69111         * lib/c-strcase.h: New file, from GNU gettext.
69112         * lib/c-strcasecmp.c: New file, from GNU gettext.
69113         * lib/c-strncasecmp.c: New file, from GNU gettext.
69114
69115 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
69116
69117         * modules/mempcpy (License): GPL -> LGPL.
69118         * modules/strchrnul (License): Likewise.
69119         * modules/sysexits (License): Likewise.
69120
69121 2005-10-08  Simon Josefsson  <jas@extundo.com>
69122
69123         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
69124
69125 2005-10-07  Simon Josefsson  <jas@extundo.com>
69126
69127         * m4/memxor.m4: Remove gl_C_RESTRICT call.
69128
69129 2005-10-06  Simon Josefsson  <jas@extundo.com>
69130
69131         * tests/test-hmac-md5.c: New file.
69132
69133         * modules/hmac-md5-tests: New file.
69134
69135         * modules/hmac-md5: New file.
69136
69137 2005-10-06  Simon Josefsson  <jas@extundo.com>
69138
69139         * m4/hmac-md5.m4: New file.
69140
69141         * m4/memxor.m4: Require gl_C_RESTRICT.
69142
69143 2005-10-06  Simon Josefsson  <jas@extundo.com>
69144
69145         * lib/memxor.c (memxor): Avoid casts and warnings.
69146
69147 2005-10-06  Simon Josefsson  <jas@extundo.com>
69148
69149         * lib/hmac-md5.c: New file.
69150
69151         * lib/hmac.h: New file.
69152
69153 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
69154
69155         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
69156         promotes to int, not unsigned int, to catch the AIX 5.3
69157         compiler bug.
69158
69159 2005-10-05  Simon Josefsson  <jas@extundo.com>
69160
69161         * modules/memxor: New file.
69162
69163         * modules/iconv (Files): Move config.rpath to havelib, it is used
69164         there.
69165
69166         * modules/havelib (Files): Add config.rpath.
69167
69168 2005-10-05  Simon Josefsson  <jas@extundo.com>
69169
69170         * m4/memxor.m4: New file.
69171
69172 2005-10-05  Simon Josefsson  <jas@extundo.com>
69173
69174         * lib/memxor.c (memxor): Fix compiler error.
69175
69176         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
69177         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
69178
69179         * lib/memxor.h, lib/memxor.c: New files.
69180
69181         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
69182         we assume all systems have it, suggested by Jim Meyering
69183         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
69184         any systems lack sys/socket.h; mingw32 is known to lack it, but we
69185         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
69186         same reasons.
69187
69188 2005-10-05  Simon Josefsson  <jas@extundo.com>
69189
69190         * config/srclist.txt: Add glibc bug 1423 for md5.h.
69191
69192 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
69193
69194         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
69195         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
69196         needed, since the source code now assumes these .h files.
69197
69198 2005-10-05  Derek Price  <derek@ximbiot.com>
69199
69200         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
69201
69202 2005-10-05  Bruno Haible  <bruno@clisp.org>
69203
69204         * modules/stdint (License): Change to LGPL.
69205
69206 2005-10-04  Simon Josefsson  <jas@extundo.com>
69207
69208         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
69209         D. Baushke" <mdb@gnu.org>.
69210
69211 2005-10-04  Bruno Haible  <bruno@clisp.org>
69212
69213         * lib/verify.h (verify_true): Provide alternative definition for C++.
69214
69215 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
69216
69217         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
69218         (SSIZE_MAX): New macro, if not already defined.
69219         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
69220         than 2 GiB.
69221
69222 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
69223
69224         Sync from coreutils.
69225         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
69226         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
69227         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
69228         ULLONG_MAX doesn't work with 2.7.2.1.
69229
69230 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
69231
69232         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
69233         From Ben Pfaff.
69234
69235         * modules/exclude (Depends-on): Depend on verify.
69236         * modules/strtoimax (Depends-on): Likewise.
69237         * modules/utimecmp (Depends-on): Likewise.
69238
69239 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
69240
69241         * lib/exclude.c: Include verify.h.
69242         (verify): Remove.  All callers changed to use verify.h's version.
69243         * lib/strtoimax.c: Likewise.
69244         * lib/utimecmp.c: Likewis.e
69245
69246         Sync from coreutils.
69247         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
69248         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
69249         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
69250         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
69251         bother returning ENOSYS if settimeofday or stime fails; just let
69252         them return whatever errno they want to return.
69253         * lib/utimens.c: Include unistd.h, for dup2.
69254         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
69255         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
69256
69257 2005-10-02  Jim Meyering  <jim@meyering.net>
69258
69259         Sync from coreutils.
69260         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
69261         from glibc-2.2.5 that fails for read-only files.
69262
69263 2005-10-02  Jim Meyering  <jim@meyering.net>
69264
69265         Sync from coreutils.
69266         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
69267         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
69268         `#if HAVE_CONFIG_H'.
69269         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
69270         Remove AT_FDCWD test.
69271         Do not consume the fd unless successful.
69272         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
69273         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
69274         block, so that we don't even try to compile it if settimeofday is
69275         available.  This works around a compilation failure on OSF1 V5.1,
69276         due to stime requiring a `long int*' while tv_sec is `int'.
69277
69278 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
69279
69280         Sync from coreutils.
69281         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
69282         against `yes', rather than just testing for nonempty.
69283
69284 2005-10-01  Simon Josefsson  <jas@extundo.com>
69285
69286         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
69287         and Darwin.
69288
69289         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
69290         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
69291         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
69292         freeaddrinfo and gai_strerror are declared by the POSIX headers.
69293         Check if struct addrinfo is declared.
69294
69295 2005-10-01  Simon Josefsson  <jas@extundo.com>
69296
69297         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
69298         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
69299         AI_* and EAI_* definitions.  Protect function declarations.
69300
69301 2005-10-01  Jim Meyering  <jim@meyering.net>
69302
69303         Sync from coreutils.
69304
69305         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
69306         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
69307         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
69308         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
69309         in the inet and nsl libraries.  Required on Solaris 5.7.
69310
69311 2005-10-01  Jim Meyering  <jim@meyering.net>
69312
69313         Sync from coreutils.
69314         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
69315         in the inet and nsl libraries.  Required on Solaris 5.7.
69316
69317 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
69318
69319         * lib/getdelim.c (getdelim): Remove unused variables.
69320
69321 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
69322
69323         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
69324         so that the code works even with ancient cpp.  Portability problem
69325         with GCC 2.7.2.1 reported by Thomas M.Ott.
69326
69327 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
69328
69329         * modules/regex (Depends-on): Add strcase.
69330
69331         * modules/gethostname (Licence): Change from GPL to LGPL, since
69332         gethostname.c is a trivial implementation of a standard library
69333         function.
69334         * modules/poll (License): Change from GPL to LGPL, since it's
69335         derived from LGPL code.
69336
69337 2005-09-27  Jim Meyering  <jim@meyering.net>
69338
69339         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
69340         HAVE_CONFIG_H.
69341
69342         * lib/intprops.h (signed_type_or_expr__): Define.
69343         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
69344         for unsigned types.
69345
69346 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
69347
69348         * lib/verify.h (verify_expr): Remove, replacing with:
69349         (verify_true): New macro that returns true instead of void.
69350         (verify_type__): Remove.
69351         (verify): Use verify_true rather than verify_type__.
69352
69353 2005-09-26  Bruno Haible  <bruno@clisp.org>
69354
69355         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
69356         is necessary.
69357         (lib_SOURCES): Remove mbchar.c.
69358         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
69359         (Files): Add m4/mbrtowc.m4.
69360         * modules/mbiter: Likewise.
69361         * modules/mbuiter: Likewise.
69362
69363 2005-09-26  Bruno Haible  <bruno@clisp.org>
69364
69365         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
69366         compile mbchar.c if they are not both present.
69367         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
69368         * m4/mbiter.m4 (gl_MBITER): Likewise.
69369         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
69370         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
69371         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
69372
69373 2005-09-25  Jim Meyering  <jim@meyering.net>
69374
69375         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
69376         also uses socklen_t.
69377
69378 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
69379
69380         * lib/utimens.c (ENOSYS): Define if not already defined.
69381         (futimens): Support having a null PATH if the file descriptor
69382         is nonnegative.
69383
69384         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
69385         Remove.
69386         (__attribute): Define to empty unless GCC 3.1 or later.
69387         This works around a core dump on OpenBSD 3.4, which has GCC
69388         2.95.3, which dumps core when given __attribute__(()).  It also
69389         simplifies other tests, since we really don't want to bother with
69390         worrying about which ancient version of GCC supported what.
69391         Original problem reported by Yoann Vandoorselaere, with part of
69392         the fix suggested by Derek Price.
69393
69394 2005-09-24  Jim Meyering  <jim@meyering.net>
69395
69396         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
69397         so we can once again use a positive bitfield width of 1 -- now we
69398         don't have to explain why we were using a bitfield width of 2.
69399
69400 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
69401
69402         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
69403         and similarly for the other external symbols.  Problem reported
69404         by James Gallager.
69405
69406         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
69407         bug reported by Jim Meyering.
69408
69409         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
69410         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
69411         not needed, since socklen is a prerequisite module.
69412
69413 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
69414
69415         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
69416         Problem reported by Eric Blake.
69417         (getaddrinfo): Initialize se so that it's not garbage.
69418         Redo internal storage allocation so that it doesn't make unportable
69419         assumptions about alignment.
69420         Fix a memory leak.
69421
69422         * lib/utimens.c (futimens): Use futimesat if available.
69423         Prefer it to futimes since it doesn't have the futimes bug.
69424
69425         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
69426         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
69427         Instead, declare a function that returns a pointer to an array,
69428         and use verify_type__ to declare the size of the array.
69429         Problem and germ of a solution reported by Bruno Haible.
69430         (verify_type__): Use 2, not 1, for bitfield size, to avoid
69431         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
69432
69433 2005-09-23  Jim Meyering  <jim@meyering.net>
69434
69435         Sync from coreutils.
69436         Correct build failure (socklen_t not defined) on at least
69437         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
69438         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
69439
69440 2005-09-23  Jim Meyering  <jim@meyering.net>
69441
69442         * modules/getaddrinfo (Depends-on): Add socklen.
69443
69444 2005-09-23  Bruno Haible  <bruno@clisp.org>
69445
69446         * tests/test-verify.c: New file.
69447
69448 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
69449
69450         Sync from coreutils.
69451
69452         * modules/argmatch (Depends-on): Add verify.
69453         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
69454         unistd-safer.
69455         * modules/save-cwd (Depends-on): Likewise.
69456
69457         * modules/openat (Files): Add lib/openat-die.c.
69458         (Depends-on): Remove error, exitfail.
69459         Add dirname.
69460
69461         * modules/verify: New file.
69462         * MODULES.html.sh (Diagnostics <assert.h>): New section,
69463         with "verify" module.
69464
69465 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
69466
69467         Sync from coreutils.
69468
69469         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
69470         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
69471         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
69472         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
69473         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
69474         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
69475         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
69476         Don't bother checking for string.h, stdlib.h, unistd.h.
69477         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
69478         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
69479         module's job.
69480         * m4/jm-macros.m4 (gl_MACROS): Likewise.
69481         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
69482
69483         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
69484         (gl_GETDATE): Use it.
69485
69486         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
69487
69488 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
69489
69490         Sync from coreutils.
69491
69492         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
69493         stat-time.h.
69494         * lib/argmatch.h: Include verify.h
69495         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
69496         (ARGMATCH_ASSERT): Remove; unused.
69497         * lib/canonicalize.c: Assume STDC_HEADERS.
69498         * lib/exclude.c: Include "strcase.h".
69499         * lib/regex_internal.h [!defined _LIBC]: Likewise.
69500         * lib/getusershell.c: Include stdio--.h rather than stdio.h
69501         and stdio-safer.h.
69502         (getusershell): Call fopen, not fopen_safer.
69503         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
69504         Do not include unistd-safer.h.
69505         (save_cwd): Don't call fd_safer; no longer needed
69506         now that we include fcntl--.h.
69507
69508         * lib/getdate.y (relative_time): New type.
69509         (RELATIVE_TIME_0): New constant.
69510         (parser_control): Use relative_time instead of doing it ourselves.
69511         (%union): Add new relative_time rel member.
69512         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
69513         Now typeless.
69514         (relunit, relunit_snumber): Now of type rel.
69515         (zone, rel, relunit, get_date): Adjust to above changes.
69516
69517         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
69518         Do not include unistd-safer.h.
69519         (getloadavg): Don't call fd_safer; no longer needed
69520         now that we include fcntl--.h.
69521
69522         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
69523         (make_dir_parents): Treat ENOSYS like EEXIST.
69524
69525         Improve quality of diagnostics on restore_cwd failure.
69526         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
69527         (make_dir_parents): Last arg is now int * (for errno), not bool *.
69528         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
69529         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
69530         each time through the loop.  Do not diagnose restore_cwd failure;
69531         that is the caller's job (and perhaps the caller does not care).
69532
69533         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
69534         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
69535         If the file already exists but is not a directory, don't bother
69536         to try to make its parents.
69537         Close potential file descriptor leak if we can't chdir("/") (!).
69538         Don't always return true if chdir($PWD) fails; return true only
69539         if the requested action was done successfully (except for the
69540         chdir($PWD)).
69541         Don't log final directory unless we actually made it.
69542         Refactor to avoid duplicate code to fix up permissions.
69543         Don't attempt to fix up parent permissions if chdir($PWD) fails.
69544
69545         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
69546         to make it a bit faster and (I hope) clearer.
69547         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
69548         Fix bug in formats like %2N.
69549
69550         * lib/verify.h: New file.
69551
69552 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
69553
69554         Sync from coreutils.
69555         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
69556
69557 2005-09-22  Jim Meyering  <jim@meyering.net>
69558
69559         Sync from coreutils.
69560
69561         * m4/lstat.m4 (gl_FUNC_LSTAT):
69562         Use AC_LIBSOURCES to require lstat.c and lstat.h.
69563         Remove obsolete comment.
69564         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
69565         * m4/xstrtod.m4: Likewise.
69566
69567         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
69568
69569 2005-09-22  Jim Meyering  <jim@meyering.net>
69570
69571         Sync from coreutils.
69572
69573         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
69574
69575         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
69576         the .tm_year member, since otherwise gcc-4.0 would now warn about
69577         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
69578
69579         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
69580         order to avoid an unsuppressible warning from gcc on 64-bit systems.
69581
69582         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
69583         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
69584         when run in a time zone for which daylight savings time is in effect
69585         for the starting date.
69586
69587         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
69588         stop us from restricting permissions of just-created absolute-named
69589         directories.
69590         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
69591         to restore initial working directory.
69592         * lib/mkdir-p.c (make_dir_parents): New parameter:
69593         different_working_dir, to tell caller if/when we change the working
69594         directory and are unable to return to the initial one.
69595         * lib/mkdir-p.h (make_dir_parents): Update prototype.
69596         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
69597         `return false'.  This fixes a bug introduced on 2004-07-30.
69598
69599         * lib/openat.c (fdopendir): Be sure to close the supplied
69600         file descriptor before returning.  This makes our replacement
69601         implementation a little closer to Solaris's, where fdopendir
69602         ties the file descriptor to the returned DIR* pointer.
69603         * lib/openat.c (unlinkat): New function.
69604         * lib/openat.h (unlinkat): Add prototype.
69605         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
69606         (openat_restore_fail): Rename from openat_restore_die.
69607         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
69608
69609         Provide an alternative to exiting immediately upon save_cwd or
69610         restore_cwd failure.  Now, an application can arrange e.g.,
69611         to perform a longjump in that case.
69612         * lib/openat.c: Include dirname.h.
69613         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
69614         (rpl_openat, fdopendir, fstatat): Call openat_save_die
69615         and openat_restore_die rather than calling error directly.
69616         Don't include "error.h" or "exitfail.h"; they're no longer needed.
69617
69618         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
69619         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
69620         define.
69621
69622         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
69623         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
69624                             int utc, int nanoseconds);
69625         Background:
69626         date should not have to allocate a megabyte of virtual memory to
69627         handle a format argument like +%1048575T.  When implemented with
69628         strftime, it must allocate such a buffer, use strftime to fill it
69629         in, print it, then free it.
69630         With fprintftime, it simply prints everything and exits.
69631         With no need for memory allocation, that's one fewer way to fail.
69632         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
69633         optional field width, not before, so we accept %9:z, not %:9z.
69634         (my_strftime): Be sure to use L_('x') for literals.
69635
69636         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
69637         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
69638         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
69639         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
69640         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
69641         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
69642         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
69643         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
69644         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
69645         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
69646         * lib/xgethostname.c, lib/xreadlink.c:
69647         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
69648
69649         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
69650         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
69651         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
69652         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
69653         and don't include <sys/file.h>).
69654
69655 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
69656
69657         Sync from coreutils.
69658
69659         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
69660         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
69661         [!LDAV_DONE]: Avoid unused variable warning.
69662
69663 2005-09-21  Bruno Haible  <bruno@clisp.org>
69664
69665         * lib/unicodeio.h (unicode_to_mb): New declaration.
69666
69667 2005-09-20  Derek Price  <derek@ximbiot.com>
69668
69669         * lib/getaddrinfo.c: Don't include <netdb.h> included from
69670         getaddrinfo.h.
69671
69672 2005-09-20  Bruno Haible  <bruno@clisp.org>
69673
69674         * gnulib-tool: Remove trailing slashes from the values specified for
69675         --source-base, --m4-base, --tests-base, --aux-dir.
69676         Suggested by Simon Josefsson <jas@extundo.com>.
69677
69678 2005-09-20  Bruno Haible  <bruno@clisp.org>
69679
69680         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
69681         func_modules_to_filelist, func_import, func_create_testdir): Make all
69682         sorting results locale-independent, so that gnulib-cache.m4 doesn't
69683         change when gnulib-tool is invoked in a different locale.
69684
69685 2005-09-19  Simon Josefsson  <jas@extundo.com>
69686
69687         * m4/socklen.m4: Fix typo.
69688
69689 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69690
69691         Use a consistent style for including <config.h>.
69692         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
69693         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
69694         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
69695         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
69696         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
69697         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
69698         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
69699         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
69700         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
69701         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
69702         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
69703         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
69704         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
69705         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
69706         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
69707         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
69708         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
69709         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
69710         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
69711         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
69712         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
69713         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
69714         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
69715         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
69716         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
69717         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
69718         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
69719         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
69720         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
69721         lib/xstrtoumax.c, lib/yesno.c:
69722         Standardize inclusion of config.h.
69723         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
69724         lib/inttostr.h:  Removed inclusion of config.h from header files.
69725         * lib/inttostr.c:  Adjusted in-tree users.
69726         * lib/timespec.h: Remove superfluous warning to include config.h.
69727         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
69728         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
69729         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
69730         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
69731         config.h with HAVE_CONFIG_H.
69732
69733 2005-09-19  Jim Meyering  <jim@meyering.net>
69734
69735         * modules/pathmax (License): Change to LGPL.
69736
69737 2005-09-19  Derek Price  <derek@ximbiot.com>
69738
69739         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
69740
69741 2005-09-19  Bruno Haible  <bruno@clisp.org>
69742
69743         * gnulib-tool (import): Provide default for --tests-base.
69744
69745 2005-09-19  Bruno Haible  <bruno@clisp.org>
69746
69747         * doc/quote.texi: New file, extracted from gnulib.texi.
69748         * doc/ctime.texi: New file, extracted from gnulib.texi.
69749         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
69750         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
69751         * doc/gnulib.texi: Include them.
69752
69753 2005-09-18  Bruno Haible  <bruno@clisp.org>
69754
69755         Portability fix.
69756         * gnulib-tool (func_readlink): New function.
69757         (func_ln_if_changed): Use it.
69758
69759 2005-09-18  Bruno Haible  <bruno@clisp.org>
69760
69761         * gnulib-tool: Support --with-tests also with --import.
69762         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
69763         (func_import): Use variables $testsbase and $inctests. Emit a
69764         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
69765         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
69766         SUBDIRS += $testsdir.
69767         (func_create_testdir): Update.
69768
69769 2005-09-18  Bruno Haible  <bruno@clisp.org>
69770
69771         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
69772         instead of $dry_run.
69773         (func_cp_if_changed, func_mv_if_changed): Remove functions.
69774         (func_ln_if_changed): Don't handle dry-run here.
69775         (func_import): In dry-run mode, detect more precisely which actions
69776         would be performed, and don't use "...ing" verbs.
69777
69778 2005-09-18  Bruno Haible  <bruno@clisp.org>
69779
69780         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
69781         (func_import): Use join on two temporary files instead of three nested
69782         loops, in order to determine which files are new or old.
69783
69784 2005-09-18  Bruno Haible  <bruno@clisp.org>
69785
69786         * gnulib-tool (func_import): Comment out code that spits out the
69787         new files with --dry-run.
69788
69789 2005-09-18  Bruno Haible  <bruno@clisp.org>
69790
69791         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
69792
69793 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
69794
69795         * lib/stat-time.h: New file.
69796         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
69797         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
69798         in a different way.
69799         (timespec_cmp): New function.
69800         * lib/utimecmp.c: Include stat-time.h.
69801         (SYSCALL_RESOLUTION): Depend on whether various struct stat
69802         members exist, not on the obsolescent ST_MTIM_NSEC.
69803         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
69804
69805 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
69806
69807         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
69808
69809 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
69810
69811         * MODULES.html.sh (File system functions): Add stat-time.
69812         * modules/stat-time: New file.
69813         * modules/timespec (Files): Remove m4/st_mtim.m4; this
69814         is now done in a different way, by the stat-time module.
69815         * modules/utimecmp (Depends-on): Add stat-time.
69816
69817 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69818
69819         * m4/st_mtim.m4: Remove.  Superseded by...
69820         * m4/stat-time.m4: New file.
69821         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
69822         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
69823
69824 2005-09-15  Derek Price  <derek@ximbiot.com>
69825
69826         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
69827
69828 2005-09-15  Derek Price  <derek@ximbiot.com>
69829
69830         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
69831         * lib/regex_internal.c: Ditto, using this...
69832         (__GNUC_PREREQ): ...new macro.
69833         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
69834         using...
69835         (__GNUC_PREREQ): ...this new macro.
69836
69837         * lib/strstr.h: Include string.h. Define strstr as a macro here.
69838
69839 2005-09-15  Derek Price  <derek@ximbiot.com>
69840             Paul Eggert  <eggert@cs.ucla.edu>
69841
69842         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
69843         changes, consolidating in...
69844         * lib/regex_internal.h: ...this file.
69845
69846 2005-09-13  Jim Meyering  <jim@meyering.net>
69847
69848         * lib/canon-host.c: Filter through gnu indent and reword comments
69849         slightly.
69850         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
69851
69852 2005-09-13  Derek Price  <derek@ximbiot.com>
69853
69854         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
69855         failure.
69856         Reported by Jim Meyering  <jim@meyering.net>.
69857
69858 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69859
69860         * lib/base64.c: Typo.
69861         (base64_encode): Put b64str in initialized data section.
69862
69863 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
69864
69865         Merge glibc and coreutils changes into gnulib, plus a few
69866         extra fixes.
69867         * lib/md5.c: Use #error rather than a string.
69868         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
69869         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
69870         (__attribute__): Define to empty for non recent-GCC.
69871         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
69872         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
69873         Renamed from their non-__ counterparts, with new macros replacing
69874         them if not _LIBC.  Add __THROW attribute.
69875         (rol): Remove.
69876         (struct md5_ctx): Align buffer if using GCC.
69877         * lib/sha1.h (struct sha1_ctx): Likewise.
69878         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
69879         The old name was backwards.
69880         (NOTSWAP): Remove; not used.
69881         (rol): New macro, moved here from md5.h.
69882         (sha1_process_block): Remove a FIXME that doesn't make sense.
69883
69884 2005-09-12  Derek Price  <derek@ximbiot.com>
69885
69886         Return usable errors from canon-host.
69887         * lib/canon-host.h: New file.
69888         * lib/canon-host.c (canon_host): Wrap...
69889         (canon_host_r): ...this new function, which now relies exclusively on
69890         getaddrinfo.
69891         (ch_strerror): New function.
69892         (last_cherror): New global.
69893         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
69894         interface.
69895         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
69896         void *.
69897         (freeaddrinfo): Free ai->ai_canonname when set.
69898
69899 2005-09-12  Derek Price  <derek@ximbiot.com>
69900
69901         Make canon-host require getaddrinfo.
69902         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
69903         AC_LIBSOURCE canon-host.h.  Call...
69904         (gl_PREREQ_CANON_HOST): ...this new function, which requires
69905         gl_GETADDRINFO.
69906         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
69907
69908 2005-09-12  Derek Price  <derek@ximbiot.com>
69909
69910         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
69911         LGPL.
69912         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
69913
69914 2005-09-12  Derek Price  <derek@ximbiot.com>
69915
69916         * lib/gai_strerror.c: Include config.h when available.  Include
69917         getaddrinfo.h before other headers to test interface.
69918         Reported by Larry Jones <lawrence.jones@ugs.com>.
69919
69920 2005-09-12  Derek Price  <derek@ximbiot.com>
69921             Paul Eggert  <eggert@cs.ucla.edu>
69922
69923         * modules/glob (Files): Add glob-libc.h.
69924
69925 2005-09-12  Derek Price  <derek@ximbiot.com>
69926             Paul Eggert  <eggert@cs.ucla.edu>
69927
69928         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
69929         glob_.h, glob-libc.h.
69930         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
69931
69932 2005-09-12  Derek Price  <derek@ximbiot.com>
69933             Paul Eggert  <eggert@cs.ucla.edu>
69934
69935         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
69936         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
69937         protecting things that should be done only in gnulib contexts.
69938         * lib/glob_.h: New file, containing only the glob things needed for
69939         gnulib.
69940         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
69941         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
69942         (glob, globfree, glob_pattern_p): Now defined simply in terms of
69943         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
69944         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
69945         and to respect the namespace rules better.
69946
69947 2005-09-08  Simon Josefsson  <jas@extundo.com>
69948
69949         * modules/socklen: New file.
69950
69951 2005-09-08  Simon Josefsson  <jas@extundo.com>
69952
69953         * m4/socklen.m4: New file.
69954
69955 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69956
69957         * modules/utimens (Files): Add m4/utimbuf.m4, since
69958         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
69959         Reported by Sergey Poznyakoff.
69960
69961 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69962
69963         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
69964         definitions, since that's the preferred style in glibc.
69965         Fix a minor spacing issue, and update copyright notice to match
69966         glibc's.
69967
69968 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69969
69970         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
69971
69972 2005-09-06  Simon Josefsson  <jas@extundo.com>
69973
69974         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
69975         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
69976
69977 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69978
69979         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
69980         warning.
69981
69982 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69983
69984         * config/srclist.txt: Add glibc bug 1302.
69985
69986 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
69987
69988         Change bitset word type from unsigned int to unsigned long int,
69989         as this has better performance on typical 64-bit hosts.
69990         Port bitset code to hosts with unusual word sizes.
69991         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
69992         (build_collating_symbol):
69993         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
69994         argument is a bitset.  This is merely a style issue, but it makes
69995         it clearer that an entire array is expected.
69996         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
69997         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
69998         Port to the case where bitset_word is not the same as unsigned int.
69999         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
70000         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
70001         Likewise.
70002         * lib/regexec.c (check_dst_limits_calc_pos_1,
70003         check_subexp_matching_top):
70004         (build_trtable, group_nodes_into_DFAstates):
70005         Likewise.
70006         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
70007         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
70008         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
70009         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
70010         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
70011         * lib/regcomp.c (optimize_subexps, lower_subexp):
70012         Work even if bitset_word has holes in its bitwise representation.
70013         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
70014         * lib/regexec.c (check_dst_limits_calc_pos_1,
70015         check_subexp_matching_top):
70016         Likewise.
70017         * lib/regex_internal.c (re_string_reconstruct):
70018         Don't assume UCHAR_MAX == 255.
70019         * lib/regex_internal.h (bitset_set_all): Likewise.
70020         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
70021         All uses changed.
70022         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
70023         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
70024         All uses changed.
70025         (BITSET_WORD_MAX): New macro.
70026         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
70027         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
70028         (bitset_empty, bitset_copy):
70029         Prefer sizeof (bitset) to multiplying it out ourselves.
70030         (bitset_not_merge): Remove; unused.
70031         (bitset_contain): Return bool, not unsigned int with one bit on.
70032         All callers changed.
70033         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
70034         alignment than re_node_set; do this by defining a new internal
70035         type struct dests_alloc and using it to allocate memory.
70036
70037 2005-09-05  Bruno Haible  <bruno@clisp.org>
70038
70039         * gnulib-tool (func_import): Fix comparison in handling of symbolic
70040         links.
70041
70042 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
70043
70044         * modules/size_max (Makefile.am): Add size_max.h
70045
70046 2005-09-04  Derek Price  <derek@ximbiot.com>
70047
70048         * gnulib-tool (func_import): Fix reversed $symbolic logic.
70049
70050 2005-09-03  Simon Josefsson  <jas@extundo.com>
70051
70052         * gnulib-tool: Fix typo.
70053
70054 2005-09-03  Simon Josefsson  <jas@extundo.com>
70055
70056         * config/srclist.txt: Add glibc bug 1293.
70057
70058 2005-09-03  Derek Price  <derek@ximbiot.com>
70059
70060         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
70061         From Larry Jones <lawrence.jones@ugs.com>.
70062
70063 2005-09-02  Simon Josefsson  <jas@extundo.com>
70064
70065         * modules/socklen: New file.
70066
70067 2005-09-02  Simon Josefsson  <jas@extundo.com>
70068
70069         * modules/havelib: New module.
70070
70071         * modules/gettext, modules/iconv, modules/lock, modules/readline:
70072         Use havelib.
70073
70074 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
70075
70076         Check for arithmetic overflow when calculating sizes, to prevent
70077         some buffer-overflow issues.  These patches are conservative, in the
70078         sense that when I couldn't determine whether an overflow was possible,
70079         I inserted a run-time check.
70080         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
70081         macros.
70082         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
70083         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
70084         (re_xnrealloc, re_x2nrealloc): New inline functions.
70085         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
70086         parse_bracket_exp):
70087         (build_equiv_class, build_charclass): Check for arithmetic overflow
70088         in size expression calculations.
70089         * lib/regex_internal.c (re_string_realloc_buffers):
70090         (build_wcs_upper_buffer, re_node_set_add_intersect):
70091         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
70092         (re_dfa_add_node, register_state): Likewise.
70093         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
70094         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
70095         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
70096         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
70097
70098 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
70099
70100         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
70101         m4/ulonglong.m4.  Problem reported by Martin Lambers.
70102
70103 2005-09-02  Bruno Haible  <bruno@clisp.org>
70104
70105         Support for lib vs. lib64 distinction on biarch platforms.
70106         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
70107         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
70108         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
70109
70110 2005-09-02  Bruno Haible  <bruno@clisp.org>
70111
70112         * gnulib-tool (import): In the other first-use case, provide defaults
70113         as well.
70114
70115 2005-09-02  Bruno Haible  <bruno@clisp.org>
70116
70117         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
70118         patches not yet found in the latest gettext release.
70119
70120 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70121
70122         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
70123         to avoid a collision with bits/local_lim.h in glibc.
70124         All uses changed.  Problem reported by Dmitry V. Levin in
70125         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
70126
70127         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
70128         bugs in int versus size_t comparisons.
70129         (re_string_context_at): Fix bug where the code assumed that
70130         Idx is signed.
70131
70132         Use bool where appropriate.
70133         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
70134         All callers changed.
70135         (calc_eclosure_iter): Likewise, for ROOT arg.
70136         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
70137         (build_charclass_op): Likewise, for NON_MATCH arg.
70138         * lib/regex_internal.c (re_string_allocate, re_string_construct):
70139         (re_string_construct_common): Likewise, for ICASE arg.
70140         * lib/regexec.c (re_search_2_stub, re_search_stub):
70141         Likewise, for RET_LEN arg.
70142         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
70143         (set_regs): Likewise, for FL_BACKTRACK arg.
70144         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
70145         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
70146         (calc_eclosure_iter, parse_bracket_exp):
70147         Use bool for internal variables that are booleans.
70148         * lib/regexec.c (re_search_internal, check_matching,
70149         proceed_next_node):
70150         (set_regs, build_sifted_states, sift_states_bkref):
70151         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
70152         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
70153         (find_collation_sequence_value):
70154         Likewise.
70155         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
70156         (re_node_set_compare):
70157         Return bool, not int. All callers changed.
70158         * lib/regexec.c (check_halt_node_context, check_dst_limits):
70159         (build_trtable, check_node_accept): Likewise.
70160         * lib/regex_internal.h: Include stdbool.h.
70161
70162         Fix bugs uncovered when converting to bool.
70163         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
70164         failure instead of charging ahead blindly.
70165         * lib/regex_internal.c (register_state): Likewise.
70166         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
70167         for freeing internal storage.
70168         (group_nodes_into_DFA_states): Use unsigned int, not int, for
70169         bitset pieces used as boolean, to avoid undefined behavior
70170         on hosts that do int overflow checking.
70171
70172 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70173
70174         * config/srclist.txt: Add glibc bugs 1285-1287.
70175
70176 2005-09-01  Jim Meyering  <jim@meyering.net>
70177
70178         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
70179         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
70180         Require gl_STAT_MACROS, too.
70181
70182 2005-09-01  Bruno Haible  <bruno@clisp.org>
70183
70184         * gnulib-tool (import): In the first-use case, provide defaults.
70185
70186 2005-09-01  Bruno Haible  <bruno@clisp.org>
70187
70188         * gnulib-tool (func_import): Remove the .tmp files.
70189
70190 2005-09-01  Bruno Haible  <bruno@clisp.org>
70191
70192         * gnulib-tool (func_import): Fix handling of symbolic links.
70193
70194 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70195
70196         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
70197         old glibc regex code mishandles strings longer than 2**31 bytes.
70198         This patch fixes this when the regex code is used in gnulib
70199         (i.e., outside glibc).
70200
70201         This patch should not affect the use of the regex code inside
70202         glibc.  No doubt this problem also needs to be handled for glibc
70203         as well, but the result will be an incompatible change to the
70204         glibc ABI, and the old ABI will have to be supported too.  That
70205         can be the the subject for another patch.
70206
70207         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
70208         governing whether the rest of this patch is active.  By default,
70209         the macro is disabled and the patch has no effect.
70210         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
70211         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
70212         (struct re_pattern_buffer, re_search, re_search_2, re_match):
70213         (re_match_2, re_set_registers): Use the new types.
70214         * lib/regex_internal.h (Idx, re_hashval_t): New types.
70215         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
70216         New macros.
70217         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
70218         (re_string_context_at, bin_tree_t, re_dfastate_t):
70219         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
70220         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
70221         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
70222         (re_string_char_size_at, re_string_wchar_at):
70223         (re_string_elem_size_at):
70224         Use the new types and macros to port to 64-bit hosts.
70225         Use unsigned types for internal values, so that the code
70226         mostly works even for arrays larger than SSIZE_MAX.
70227         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
70228         (search_duplicated_node, calc_eclosure_iter, fetch_number):
70229         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
70230         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
70231         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
70232         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
70233         (calc_inveclosure, parse_dup_op, build_range_exp):
70234         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
70235         (fetch_number, create_token_tree, mark_opt_subexp):
70236         Likewise.
70237         * lib/regex_internal.c (re_string_construct_common,
70238         create_ci_newstate):
70239         (create_cd_newstate, re_string_allocate, re_string_construct):
70240         (re_string_realloc_buffers, build_wcs_upper_buffer):
70241         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
70242         (re_string_reconstruct, re_string_peek_byte_case):
70243         (re_string_fetch_byte_case, re_string_context_at):
70244         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
70245         (re_node_set_init_copy, re_node_set_add_intersect):
70246         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
70247         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
70248         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
70249         (re_acquire_state, re_acquire_state_context, register_state):
70250         Likewise.
70251         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
70252         search_cur_bkref_entry):
70253         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
70254         (re_search_internal, re_search_2_stub, re_search_stub)
70255         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
70256         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
70257         (update_cur_sifted_state, check_dst_limits):
70258         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
70259         (check_subexp_limits, sift_states_bkref, merge_state_array):
70260         (check_subexp_matching_top, get_subexp, get_subexp_sub):
70261         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
70262         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
70263         (expand_bkref_cache, check_node_accept_bytes):
70264         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
70265         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
70266         (acquire_init_state_context, check_halt_node_context):
70267         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
70268         (sift_states_backward, clean_state_log_if_needed):
70269         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
70270         (find_recover_state, transit_state_sb, transit_state_mb):
70271         (transit_state_bkref, build_trtable, match_ctx_clean):
70272         Likewise.
70273         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
70274         to work around an assumption that REG_MISSING is negative.
70275
70276         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
70277         (seek_collating_symbol_entry) [defined _LIBC]:
70278         (lookup_collation_sequence_value) [defined _LIBC]:
70279         (build_range_exp, build_collating_symbol) [defined _LIBC]:
70280         Use prototypes rather than old-style function definitions.
70281         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
70282         (transit_state_sb) [0]:
70283         (find_collation_sequence_value) [defined _LIBC]: Likewise.
70284
70285         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
70286         rm_eo.
70287
70288         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
70289         (optimize_subexps, lower_subexp):
70290         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
70291         since the signed shift might overflow.  Use 1u<<31 instead.
70292         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
70293         Likewise.
70294         * lib/regexec.c (check_dst_limits_calc_pos_1,
70295         check_subexp_matching_top): Likewise.
70296
70297         * lib/regcomp.c (optimize_subexps, lower_subexp):
70298         Use CHAR_BIT rather than 8, for clarity.
70299         * lib/regexec.c (check_dst_limits_calc_pos_1):
70300         (check_subexp_matching_top): Likewise.
70301         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
70302         have to worry about portability issues when shifting it left.
70303         Remove no-longer-needed test for table_size > 0.
70304         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
70305         in a word, as the resulting behavior is undefined.
70306         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
70307         in one case, a <= should have been an <, and in another case the
70308         whole test was missing.
70309         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
70310         the standard name CHAR_BIT.
70311         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
70312         this is not true on one's complement and signed-magnitude hosts.
70313
70314         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
70315         next_last_offset.
70316         (struct re_dfa_t): Remove unused member states_alloc.
70317         * lib/regcomp.c (init_dfa): Don't initialize unused members.
70318
70319 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70320
70321         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
70322         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
70323         and large-file glibc and in 32-bit large-file Solaris.
70324
70325 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70326
70327         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
70328         lengths fit in regoff_t; this isn't true if regoff_t is the same
70329         width as size_t.
70330         * lib/regex.c (re_search_internal): 5th arg is LAST_START
70331         (= START + RANGE) instead of RANGE.  This avoids overflow
70332         problems when regoff_t is the same width as size_t.
70333         All callers changed.
70334         (re_search_2_stub): Check for overflow when adding the
70335         sizes of the two strings.
70336         (re_search_stub): Check for overflow when adding START
70337         to RANGE; if it occurs, substitute the extreme value.
70338
70339 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70340
70341         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
70342
70343 2005-08-31  Jim Meyering  <jim@meyering.net>
70344
70345         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
70346         a pointer-to-const.
70347         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
70348         (register_state): Likewise.
70349         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
70350         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
70351         (group_nodes_into_DFAstates): Likewise.
70352
70353 2005-08-31  Jim Meyering  <jim@meyering.net>
70354
70355         * check-module: Add a FIXME comment.
70356
70357 2005-08-31  Eric Blake  <ebb9@byu.net>
70358
70359         * modules/unistd-safer (Files): Add unistd--.h.
70360         * modules/stdio-safer (Files): Add stdio--.h.
70361
70362 2005-08-31  Derek Price  <derek@ximbiot.com>
70363
70364         * lib/getdelim.c (getdelim): Return EOF on EOF.
70365         Reported by Larry Jones <lawrence.jones@ugs.com>.
70366
70367 2005-08-31  Bruno Haible  <bruno@clisp.org>
70368
70369         Avoid unnecessary diffs in the generated lib/Makefile.am.
70370         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
70371         the generated files.
70372         (func_import): Don't set cmd.
70373
70374 2005-08-31  Bruno Haible  <bruno@clisp.org>
70375
70376         * lib/strstr.c: Include <stddef.h>, for NULL.
70377         * lib/strcasestr.c: Likewise.
70378         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70379
70380 2005-08-31  Bruno Haible  <bruno@clisp.org>
70381
70382         * gnulib-tool: New option --macro-prefix.
70383         (func_import): Use macro_prefix.
70384         (import): Handle option --macro-prefix.
70385
70386 2005-08-31  Bruno Haible  <bruno@clisp.org>
70387
70388         * gnulib-tool (import): Rename most ac_* variables to cached_*.
70389         Also use new variables cached_lgpl, cached_libtool.
70390
70391 2005-08-31  Bruno Haible  <bruno@clisp.org>
70392
70393         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
70394         always instantiating them.
70395
70396 2005-08-31  Bruno Haible  <bruno@clisp.org>
70397
70398         * gnulib-tool (func_import): Read the previous cached settings
70399         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
70400         earlier added by gnulib but are now dropped. Warn when a gnulib file
70401         overwrites a non-gnulib file.
70402
70403 2005-08-31  Bruno Haible  <bruno@clisp.org>
70404
70405         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
70406         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
70407         projects that don't keep autogenerated files in CVS. Put into
70408         actioncmd only the specified modules, not the transitive closure.
70409
70410 2005-08-31  Bruno Haible  <bruno@clisp.org>
70411
70412         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
70413         Create directories that shall be filled.
70414         (import): Don't look for gl_* macros in configure.ac. Recurse across
70415         all directories containing a gnulib-cache.m4 files, if meaningful.
70416
70417 2005-08-31  Bruno Haible  <bruno@clisp.org>
70418
70419         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
70420         (import): Set seen_libtool when we see gl_LIBTOOL.
70421
70422 2005-08-31  Bruno Haible  <bruno@clisp.org>
70423
70424         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
70425         declaration macro definitions from generated gnulib.m4.
70426
70427 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
70428
70429         * lib/iconvme.h: Add prototype for iconv_alloc.
70430
70431 2005-08-29  Simon Josefsson  <jas@extundo.com>
70432
70433         * lib/iconvme.c: Fix errno.
70434
70435 2005-08-29  Bruno Haible  <bruno@clisp.org>
70436
70437         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
70438         that it works when the directory contains spaces.
70439
70440 2005-08-29  Bruno Haible  <bruno@clisp.org>
70441
70442         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
70443
70444 2005-08-29  Bruno Haible  <bruno@clisp.org>
70445
70446         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
70447         Emit more advice.
70448
70449 2005-08-29  Bruno Haible  <bruno@clisp.org>
70450         and Stepan Kasal  <kasal@ucw.cz>
70451
70452         * check-module: If more parameters are given, check each of them
70453         separately; add more exceptions, as noted by Jim Meyering.
70454         (check_module): New procedure.
70455         (%exempt_header): Now contains all exceptions.
70456
70457 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
70458
70459         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
70460
70461 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
70462
70463         * lib/iconvme.c: Split iconv_string into iconv_alloc.
70464
70465 2005-08-28  Bruno Haible  <bruno@clisp.org>
70466
70467         * m4/gnulib-tool.m4: New file.
70468
70469 2005-08-27  Jim Meyering  <jim@meyering.net>
70470
70471         * modules/unistd-safer (Files): Add pipe-safer.c.
70472         * modules/fcntl-safer (Files): Add creat-safer.c.
70473
70474 2005-08-27  Jim Meyering  <jim@meyering.net>
70475
70476         * m4/stdlib-safer.m4: New file.  From coreutils.
70477         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
70478         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
70479         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
70480         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
70481         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
70482
70483 2005-08-27  Jim Meyering  <jim@meyering.net>
70484
70485         * lib/fopen-safer.c: Merge minor changes from coreutils.
70486         * lib/dup-safer.c: Likewise.
70487         * lib/fd-safer.c: Likewise.
70488
70489         Merge from coreutils.
70490         * lib/stdio--.h: New file.
70491         * lib/stdlib--.h: New file.
70492         * lib/mkstemp-safer.c: New file.
70493
70494         GNU tar needs these.
70495         * lib/pipe-safer.c: New file.
70496         * lib/creat-safer.c: New file.
70497         * lib/fcntl--.h (creat): Define to creat_safer.
70498         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
70499         * lib/unistd--.h (pipe): Define to pipe_safer.
70500         * lib/unistd-safer.h: Declare pipe_safer.
70501
70502 2005-08-26  Simon Josefsson  <jas@extundo.com>
70503
70504         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
70505         Haible <bruno@clisp.org>.
70506
70507 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
70508
70509         * lib/regex_internal.h: Remove all references to
70510         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
70511         or better.
70512         (bitset_not, bitset_merge, bitset_not_merge):
70513         (bitset_mask, re_string_allocate, re_string_construct):
70514         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
70515         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
70516         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
70517         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
70518         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
70519         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
70520         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
70521         (re_acquire_state_context):
70522         Remove unnecessary forward decls.
70523         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
70524         Put __attribute at function definition,
70525         now that the function decl has been removed.
70526         * lib/regex_internal.c (re_string_peek_byte_case):
70527         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
70528         Likewise.
70529
70530 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
70531
70532         * m4/regex.m4: Add AC_PREREQ(2.50).
70533         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
70534
70535 2005-08-25  Simon Josefsson  <jas@extundo.com>
70536
70537         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
70538         __fsetlocking.
70539
70540 2005-08-25  Simon Josefsson  <jas@extundo.com>
70541
70542         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
70543         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
70544         GLIBC specific code.
70545
70546 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70547
70548         Make regex safe for g++.  This fixes one real bug (an "err"
70549         that should have been "*err").  g++ problem reported by
70550         Sam Steingold.
70551         * lib/regex_internal.h (re_calloc): New macro, consistent with
70552         re_malloc etc.  All callers of calloc changed to use re_calloc.
70553         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
70554         not int.  All callers changed.
70555         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
70556         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
70557         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
70558         (find_recover_state): Change "err" to "*err"; this fixes what
70559         appears to be a real bug.
70560         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
70561         versus int.
70562
70563 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70564
70565         * modules/regex (Depends-on): Add malloc, since the code
70566         assumes that !malloc(0) means failure.
70567
70568 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70569
70570         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
70571
70572         alloca modernization/simplification for regex.
70573         * lib/regex.c: Remove portability cruft for alloca.  This no longer
70574         needs to be at the start of the file, and can be moved into
70575         regex_internal.h and simplified.
70576         * lib/regex_internal.h: Include <alloca.h>.
70577         (__libc_use_alloca) [!defined _LIBC]: New macro.
70578         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
70579         now works outside glibc.
70580
70581 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70582
70583         * config/srclist.txt: Add glibc bugs 1241, 1245.
70584
70585 2005-08-25  Jim Meyering  <jim@meyering.net>
70586
70587         * lib/open-safer.c: Include <config.h>.
70588         Otherwise, we'd lose LARGEFILE support in any file using
70589         e.g. "fcntl--.h"
70590
70591 2005-08-25  Bruno Haible  <bruno@clisp.org>
70592
70593         * m4/minmax.m4: Require autoconf 2.52.
70594         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
70595         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
70596         alternatives of translit over the alphabet.
70597         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
70598
70599 2005-08-24  Simon Josefsson  <jas@extundo.com>
70600
70601         * tests/test-getpass.c: New file.
70602
70603 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70604
70605         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
70606         for GNU regex features.
70607
70608 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70609
70610         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
70611         * lib/regex.h (regerror): Likewise.
70612
70613         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
70614         requires this.  (The code never needed it.)
70615
70616         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
70617         All uses of recently-renamed identifiers changed to use the new,
70618         POSIX-compliant names.  The code will build and run just fine
70619         without these changes, but it's better to eat our own dog food
70620         and use the standard-conforming names.
70621
70622         * lib/regex.h: Fix a multitude of POSIX name space violations.
70623         These changes have an effect only for programs that define
70624         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
70625         do not change anything for programs compiled in the normal way.
70626         Also, there is no effect on the ABI.
70627
70628         (_REGEX_SOURCE): New macro.
70629         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
70630         defined and _GNU_SOURCE is not; this fixes a name space violation.
70631
70632         Rename the following macros to obey POSIX requirements.
70633         The old names are still visible as macros if _REGEX_SOURCE is defined.
70634         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
70635         RE_BACKSLASH_ESCAPE_IN_LISTS.
70636         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
70637         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
70638         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
70639         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
70640         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
70641         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
70642         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
70643         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
70644         (REG_INTERVALS): renamed from RE_INTERVALS.
70645         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
70646         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
70647         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
70648         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
70649         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
70650         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
70651         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
70652         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
70653         RE_UNMATCHED_RIGHT_PAREN_ORD.
70654         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
70655         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
70656         (REG_DEBUG): renamed from RE_DEBUG.
70657         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
70658         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
70659         unusual, since we can't clash with the POSIX REG_ICASE.
70660         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
70661         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
70662         (REG_NO_SUB): renamed from RE_NO_SUB.
70663         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
70664         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
70665         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
70666         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
70667         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
70668         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
70669         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
70670         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
70671         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
70672         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
70673         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
70674         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
70675         RE_SYNTAX_POSIX_MINIMAL_BASIC.
70676         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
70677         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
70678         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
70679         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
70680         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
70681         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
70682         (REG_FIXED): Renamed from REGS_FIXED.
70683         (REG_NREGS): Renamed from RE_NREGS.
70684
70685         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
70686         of other REG_* macros, since POSIX says the user is allowed to
70687         #undef these macros selectively.
70688
70689         (reg_errcode_t): Update comment stating what other tables need
70690         to be consistent.
70691
70692         Rename the following enum values to obey POSIX requirements.
70693         The old names are still visible as macros.
70694         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
70695         is not defined, since GNU is supposed to be a superset of POSIX as
70696         much as possible, and since we want reg_errcode_t to be a signed
70697         type for implementation consistency.
70698         (_REG_NOERROR): Renamed from REG_NOERROR.
70699         (_REG_NOMATCH): Renamed from REG_NOMATCH.
70700         (_REG_BADPAT): Renamed from REG_BADPAT.
70701         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
70702         (_REG_ECTYPE): Renamed from REG_ECTYPE.
70703         (_REG_EESCAPE): Renamed from REG_EESCAPE.
70704         (_REG_ESUBREG): Renamed from REG_ESUBREG.
70705         (_REG_EBRACK): Renamed from REG_EBRACK.
70706         (_REG_EPAREN): Renamed from REG_EPAREN.
70707         (_REG_EBRACE): Renamed from REG_EBRACE.
70708         (_REG_BADBR): Renamed from REG_BADBR.
70709         (_REG_ERANGE): Renamed from REG_ERANGE.
70710         (_REG_ESPACE): Renamed from REG_ESPACE.
70711         (_REG_BADRPT): Renamed from REG_BADRPT.
70712         (_REG_EEND): Renamed from REG_EEND.
70713         (_REG_ESIZE): Renamed from REG_ESIZE.
70714         (_REG_ERPAREN): Renamed from REG_ERPAREN.
70715         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
70716         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
70717         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
70718         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
70719
70720         (_REG_RE_NAME, _REG_RM_NAME): New macros.
70721         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
70722         changed.  But support the old name if the new one is not defined
70723         and if _REGEX_SOURCE.
70724
70725         Change the following member names in struct re_pattern_buffer.
70726         The old names are still supported if !_REGEX_SOURCE.
70727         The new names are always supported, regardless of _REGEX_SOURCE.
70728         (re_buffer): Renamed from buffer.
70729         (re_allocated): Renamed from allocated.
70730         (re_used): Renamed from used.
70731         (re_syntax): Renamed from syntax.
70732         (re_fastmap): Renamed from fastmap.
70733         (re_translate): Renamed from translate.
70734         (re_can_be_null): Renamed from can_be_null.
70735         (re_regs_allocated): Renamed from regs_allocated.
70736         (re_fastmap_accurate): Renamed from fastmap_accurate.
70737         (re_no_sub): Renamed from no_sub.
70738         (re_not_bol): Renamed from not_bol.
70739         (re_not_eol): Renamed from not_eol.
70740         (re_newline_anchor): Renamed from newline_anchor.
70741
70742         Change the following member names in struct re_registers.
70743         The old names are still supported if !_REGEX_SOURCE.
70744         The new names are always supported, regardless of _REGEX_SOURCE.
70745         (rm_num_regs): Renamed from num_regs.
70746         (rm_start): Renamed from start.
70747         (rm_end): Renamed from end.
70748
70749         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
70750         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
70751         Prepend __ to parameter names.
70752
70753         Undo yesterday's changes.
70754
70755 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70756
70757         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
70758         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
70759         lib/regex.c.
70760
70761 2005-08-24  Jim Meyering  <jim@meyering.net>
70762
70763         Sync from coreutils.
70764         * m4/fcntl-safer.m4: New file.
70765
70766         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
70767         and object files for this module.
70768
70769 2005-08-24  Jim Meyering  <jim@meyering.net>
70770
70771         Sync from coreutils.
70772         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
70773
70774 2005-08-24  Jim Meyering  <jim@meyering.net>
70775
70776         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
70777         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
70778
70779 2005-08-24  Jim Meyering  <jim@meyering.net>
70780
70781         * modules/fcntl-safer: New module.
70782         * modules/fts (Depends-on): Add fcntl-safer.
70783         * MODULES.html.sh (File descriptor based Input/Output):
70784         Add fcntl-safer.
70785
70786 2005-08-24  Bruno Haible  <bruno@clisp.org>
70787
70788         Support for unit test modules.
70789         * modules/README: Mention tests modules.
70790         * modules/TEMPLATE-TESTS: New file.
70791         * gnulib-tool: New options --extract-tests-module, --with-tests and
70792         --tests-base (unused for the moment).
70793         (testsbase, inctests): New variables.
70794         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
70795         (func_verify_module): Exclude TEMPLATE-TESTS.
70796         (func_verify_nontests_module, func_verify_tests_module): New functions.
70797         (func_get_dependencies): Add implicit dependency for tests modules.
70798         (func_get_tests_module): New function.
70799         (func_modules_transitive_closure): When --with-tests was specified,
70800         include the unit tests as well, unless explicitly avoided.
70801         (func_emit_lib_Makefile_am): Ignore the tests modules here.
70802         (func_emit_tests_Makefile_am): New function.
70803         (func_create_testdir): When --with-tests was specified, emit a
70804         tests/ directory.
70805         * MODULES.html.sh (Future developments): Update.
70806
70807 2005-08-24  Bruno Haible  <bruno@clisp.org>
70808
70809         * modules/tls-tests: New file.
70810         * tests/test-tls.c: New file, from GNU gettext.
70811
70812 2005-08-24  Bruno Haible  <bruno@clisp.org>
70813
70814         * modules/lock-tests: New file.
70815         * tests/test-lock.c: New file, from GNU gettext.
70816
70817 2005-08-24  Bruno Haible  <bruno@clisp.org>
70818
70819         * lib/lock.h: Add multiple inclusion guard.
70820         * lib/tls.h: Add multiple inclusion guard.
70821
70822 2005-08-24  Bruno Haible  <bruno@clisp.org>
70823
70824         * gnulib-tool: Add support for the --aux-dir option to
70825         --create-testdir, --create-megatestdir, --test, --megatest.
70826         (func_create_testdir, func_create_megatestdir): Optionally emit a
70827         AC_CONFIG_AUX_DIR directive.
70828         (create-testdir, create-megatestdir, test, megatest): Provide a
70829         default value for $auxdir.
70830
70831 2005-08-24  Bruno Haible  <bruno@clisp.org>
70832
70833         * gnulib-tool (import): Use compound statement instead of subshell
70834         where possible.
70835
70836 2005-08-24  Bruno Haible  <bruno@clisp.org>
70837
70838         * gnulib-tool (import): Change --aux-dir default to "build-aux".
70839
70840 2005-08-24  Bruno Haible  <bruno@clisp.org>
70841
70842         * gnulib-tool (func_version): Update.
70843
70844 2005-08-24  Bruno Haible  <bruno@clisp.org>
70845
70846         * gnulib-tool (func_import, func_create_testdir,
70847         func_create_megatestdir): Quote all autoconf macro arguments.
70848
70849 2005-08-24  Bruno Haible  <bruno@clisp.org>
70850
70851         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
70852         option --force, because --force causes the aclocal.m4 of each
70853         subdirectory to be newer than the corresponding config.h.in.
70854
70855 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70856
70857         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
70858         All contents moved to gl_REGEX.
70859         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
70860         assume that it does.
70861
70862 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70863
70864         * lib/regex.h (REG_NOSYS)
70865         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
70866         Define, since POSIX requires it as of 2001.
70867         (_REG_ENOSYS)
70868         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
70869         New private symbol, used to keep the enum signed in all cases.
70870         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
70871         Youngman in
70872         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
70873
70874         * lib/regex_internal.c (re_string_skip_chars, register_state):
70875         (calc_state_hash):
70876         Remove forward decls; no longer needed now that we use prototypes.
70877         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
70878         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
70879         (clean_state_log_if_needed): Likewise.
70880
70881 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70882
70883         * config/srclist.txt: Add glibc bugs 1231-1233.
70884
70885 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70886
70887         Fix problems reported by Sam Steingold in
70888         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
70889         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
70890         assumed that reg_errcode_t is a signed type, which is not
70891         necessarily true if _XOPEN_SOURCE is not defined.
70892         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
70893         since some compilers warn about it otherwise.
70894
70895 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70896
70897         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
70898         (init_word_char, create_initial_state, duplicate_node_closure):
70899         (fetch_token, peek_token_bracket, build_range_exp):
70900         (build_collating_symbol): Remove forward decls; no longer needed
70901         now that we use prototypes.
70902
70903         * lib/regcomp.c:
70904         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
70905         (re_compile_fastmap_iter, regcomp, regerror, regfree):
70906         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
70907         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
70908         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
70909         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
70910         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
70911         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
70912         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
70913         (build_range_exp, build_collating_symbol, parse_bracket_exp):
70914         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
70915         (build_charclass, build_charclass_op, fetch_number, create_tree):
70916         (create_token_tree, mark_opt_subexp, duplicate_tree):
70917         Use prototypes rather than old-style definitions.
70918
70919         * lib/regex_internal.c:
70920         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
70921         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
70922         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
70923         (re_string_reconstruct, re_string_peek_byte_case):
70924         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
70925         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
70926         (re_node_set_init_copy, re_node_set_add_intersect):
70927         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
70928         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
70929         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
70930         (re_acquire_state, re_acquire_state_context, register_state):
70931         (create_ci_newstate, create_cd_newstate, free_state):
70932         Likewise.
70933         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
70934         re_search_2):
70935         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
70936         (re_search_internal, prune_impossible_nodes):
70937         (acquire_init_state_context, check_matching, static):
70938         (check_halt_node_context, check_halt_state_context, proceed_next_node):
70939         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
70940         (update_regs, sift_states_backward, build_sifted_states):
70941         (clean_state_log_if_needed, merge_state_array):
70942         (update_cur_sifted_state, add_epsilon_src_nodes):
70943         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
70944         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
70945         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
70946         (find_recover_state, check_subexp_matching_top, transit_state_mb):
70947         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
70948         (check_arrival, check_arrival_add_next_nodes):
70949         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
70950         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
70951         (check_node_accept_bytes, check_node_accept, extend_buffers):
70952         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
70953         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
70954         (sift_ctx_init):
70955         Likewise.
70956
70957         * lib/regex_internal.h:
70958         (re_string_allocate, re_string_construct, re_string_reconstruct):
70959         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
70960         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
70961         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
70962         (re_string_context_at, re_string_peek_byte_case):
70963         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
70964         is defined, since we now use prototypes always.
70965
70966         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
70967         C89 or better.  All uses removed.
70968
70969 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70970
70971         * config/srclist.txt: Add glibc bugs 1220-1227.
70972
70973 2005-08-20  Jim Meyering  <jim@meyering.net>
70974
70975         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
70976         of unused local, dfa.
70977
70978 2005-08-20  Bruno Haible  <bruno@clisp.org>
70979
70980         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
70981
70982 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70983
70984         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
70985         (re_node_set_insert_last, re_dfa_add_node):
70986         Rename local variables to avoid GCC shadowing warnings.
70987
70988 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70989
70990         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
70991         [defined lint]: Suppress bogus uninitialized-variable warnings.
70992
70993         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
70994         and let the caller return REG_ESPACE if out of space.  This
70995         removes an uninitialied-variable warning with GCC 4.0.1, and also
70996         avoids taking the address of a local variable.  All callers
70997         changed.
70998
70999 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71000
71001         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
71002         $LIBCSRC/posix/regexec.c.
71003         Add glibc bug 1217 for regcomp.c.
71004
71005 2005-08-19  Jim Meyering  <jim@meyering.net>
71006
71007         * lib/regexec.c (proceed_next_node): Redo local variables to
71008         avoid GCC shadowing warnings.
71009
71010 2005-08-18  Bruno Haible  <bruno@clisp.org>
71011
71012         * lib/strstr.c (strstr): Fix return value in multibyte case.
71013         * lib/strcasestr.c (strcasestr): Likewise.
71014
71015 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71016
71017         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
71018
71019 2005-08-17  Jim Meyering  <jim@meyering.net>
71020
71021         Make the %s format (seconds since the epoch) work for a negative
71022         number and when used with a zero-padded field width, e.g. %015s.
71023
71024         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
71025         label so that it precedes the code to set `digits'.  Otherwise,
71026         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
71027         print `00-22'.  Now, it prints `-0022', as it should.
71028
71029 2005-08-17  Bruno Haible  <bruno@clisp.org>
71030
71031         * modules/strstr (Files): Add m4/mbrtowc.m4.
71032         (Depends-on): Add mbuiter.
71033
71034 2005-08-17  Bruno Haible  <bruno@clisp.org>
71035
71036         * modules/strcasestr: New file.
71037         * MODULES.html.sh (String handling, based on ANSI C 89): Add
71038         strcasestr.
71039
71040 2005-08-17  Bruno Haible  <bruno@clisp.org>
71041
71042         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
71043
71044 2005-08-17  Bruno Haible  <bruno@clisp.org>
71045
71046         * modules/mbuiter: New file.
71047         * MODULES.html.sh (Extended multibyte and wide character utilities):
71048         Add mbuiter.
71049
71050 2005-08-17  Bruno Haible  <bruno@clisp.org>
71051
71052         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
71053         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
71054
71055 2005-08-17  Bruno Haible  <bruno@clisp.org>
71056
71057         * m4/strcasestr.m4: New file.
71058
71059 2005-08-17  Bruno Haible  <bruno@clisp.org>
71060
71061         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
71062         * lib/strstr.c: Completely rewritten, with multibyte locale support.
71063
71064 2005-08-17  Bruno Haible  <bruno@clisp.org>
71065
71066         * lib/strcasestr.h: New file.
71067         * lib/strcasestr.c: New file.
71068
71069 2005-08-17  Bruno Haible  <bruno@clisp.org>
71070
71071         * lib/strcasecmp.c: Use mbuiter.h.
71072
71073 2005-08-17  Bruno Haible  <bruno@clisp.org>
71074
71075         * lib/mbuiter.h: New file.
71076
71077 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
71078
71079         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
71080         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
71081         and gl_GETOPT are both invoked via different paths (as happens
71082         with GNU tar CVS because it uses both argp and getopt), the former
71083         wins.
71084
71085 2005-08-16  Bruno Haible  <bruno@clisp.org>
71086
71087         * modules/tls: New file.
71088         * MODULES.html.sh (Multithreading): Add tls.
71089
71090 2005-08-16  Bruno Haible  <bruno@clisp.org>
71091
71092         * modules/strnlen1: New file.
71093         * MODULES.html.sh (String handling): Add strnlen1.
71094
71095 2005-08-16  Bruno Haible  <bruno@clisp.org>
71096
71097         * modules/strcase (Files): Add m4/mbrtowc.m4.
71098         (Depends-on): Add strnlen1, mbchar.
71099
71100 2005-08-16  Bruno Haible  <bruno@clisp.org>
71101
71102         * modules/mbiter: New file.
71103         * MODULES.html.sh (Extended multibyte and wide character utilities):
71104         Add mbiter.
71105
71106 2005-08-16  Bruno Haible  <bruno@clisp.org>
71107
71108         * modules/mbfile: New file.
71109         * MODULES.html.sh (Extended multibyte and wide character utilities):
71110         Add mbfile.
71111
71112 2005-08-16  Bruno Haible  <bruno@clisp.org>
71113
71114         * modules/mbchar: New file.
71115         * MODULES.html.sh (Extended multibyte and wide character utilities):
71116         New section.
71117
71118 2005-08-16  Bruno Haible  <bruno@clisp.org>
71119
71120         * m4/tls.m4: New file, from GNU gettext.
71121
71122 2005-08-16  Bruno Haible  <bruno@clisp.org>
71123
71124         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
71125         always.
71126         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
71127
71128 2005-08-16  Bruno Haible  <bruno@clisp.org>
71129
71130         * m4/mbiter.m4: New file.
71131
71132 2005-08-16  Bruno Haible  <bruno@clisp.org>
71133
71134         * m4/mbfile.m4: New file.
71135
71136 2005-08-16  Bruno Haible  <bruno@clisp.org>
71137
71138         * m4/mbchar.m4: New file.
71139
71140 2005-08-16  Bruno Haible  <bruno@clisp.org>
71141
71142         * lib/tls.h: New file, from GNU gettext.
71143         * lib/tls.c: New file, from GNU gettext.
71144
71145 2005-08-16  Bruno Haible  <bruno@clisp.org>
71146
71147         * lib/strnlen1.h: New file.
71148         * lib/strnlen1.c: New file.
71149
71150 2005-08-16  Bruno Haible  <bruno@clisp.org>
71151
71152         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
71153         (mbi_init): Update.
71154         (mbi_avail, mbi_advance): Let the iteration end before the terminating
71155         NUL byte, not after it.
71156
71157 2005-08-16  Bruno Haible  <bruno@clisp.org>
71158
71159         * lib/strcase.h (strcasecmp): Add note in comments.
71160         * lib/strncasecmp.c: Use code from strcasecmp.c.
71161         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
71162         (strcasecmp): Work correctly in multibyte locales.
71163
71164 2005-08-16  Bruno Haible  <bruno@clisp.org>
71165
71166         * lib/mbiter.h: New file.
71167
71168 2005-08-16  Bruno Haible  <bruno@clisp.org>
71169
71170         * lib/mbfile.h: New file.
71171
71172 2005-08-16  Bruno Haible  <bruno@clisp.org>
71173
71174         * lib/mbchar.h: New file.
71175         * lib/mbchar.c: New file.
71176
71177 2005-08-16  Bruno Haible  <bruno@clisp.org>
71178
71179         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
71180         the valid ones. Makes the comparison operations transitive:
71181         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
71182         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
71183
71184 2005-08-15  Simon Josefsson  <jas@extundo.com>
71185
71186         * modules/ssize_t (License): Change to 'unlimited'.
71187
71188         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
71189
71190 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71191
71192         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
71193         Add comments for each pending glibc patch.
71194
71195 2005-08-15  Bruno Haible  <bruno@clisp.org>
71196
71197         * lib/regex.h (__restrict_arr): Don't define to __restrict if
71198         __cplusplus is defined.
71199
71200 2005-08-14  Jim Meyering  <jim@meyering.net>
71201
71202         Sync from coreutils.
71203
71204         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
71205         Use the hash-table-based cycle-detection code not just when
71206         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
71207         Reported by James Youngman in
71208         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
71209         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
71210         FTS_TIGHT_CYCLE_CHECK.
71211         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
71212         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
71213         once again.
71214         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
71215         * lib/fts.c (fd_safer): Remove decl.
71216         Include fcntl--.h rather than unistd-safer.h
71217         (fts_safe_changedir): Don't call fd_safer; no longer needed
71218         now that we include fcntl--.h.
71219
71220 2005-08-12  Simon Josefsson  <jas@extundo.com>
71221
71222         * modules/getndelim2: Use ssize_t module.
71223         * modules/getnline: Likewise.
71224         * modules/safe-read: Likewise.
71225         * modules/xreadlink: Likewise.
71226
71227         * modules/ssize_t: New file.
71228
71229 2005-08-12  Simon Josefsson  <jas@extundo.com>
71230
71231         * m4/readline.m4: Look for termcap, curses or ncurses if required.
71232
71233 2005-08-12  Simon Josefsson  <jas@extundo.com>
71234
71235         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71236         ssize_t.
71237
71238 2005-08-12  Simon Josefsson  <jas@extundo.com>
71239
71240         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
71241         readline, getdelim and check_version.
71242         (Support for systems lacking ISO C 99: Sizes of integer types):
71243         Add size_max.
71244
71245 2005-08-12  Bruno Haible  <bruno@clisp.org>
71246
71247         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
71248
71249 2005-08-11  Simon Josefsson  <jas@extundo.com>
71250
71251         * modules/readline: New file.
71252
71253         * modules/strnlen (Files): Add strnlen.h.
71254
71255 2005-08-11  Simon Josefsson  <jas@extundo.com>
71256
71257         * m4/readline.m4: New file.
71258
71259 2005-08-11  Simon Josefsson  <jas@extundo.com>
71260
71261         * lib/readline.h, readline.c: New file.
71262
71263 2005-08-11  Simon Josefsson  <jas@extundo.com>
71264
71265         * doc/gnulib.texi (Initial import, Finishing touches): Mention
71266         gl_AVOID.
71267
71268 2005-08-11  Bruno Haible  <bruno@clisp.org>
71269
71270         * lib/strnlen.h (strnlen): Change parameter name to match comment.
71271
71272 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
71273
71274         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
71275
71276 2005-08-10  Simon Josefsson  <jas@extundo.com>
71277
71278         * tests/test-iconvme.c: New file.
71279
71280 2005-08-10  Simon Josefsson  <jas@extundo.com>
71281
71282         * m4/strnlen.m4: New file.
71283
71284         * m4/strndup.m4: Don't check for strnlen declaration, done in
71285         strnlen.m4.
71286
71287 2005-08-10  Simon Josefsson  <jas@extundo.com>
71288
71289         * lib/strndup.c: Use strnlen.h.
71290
71291         * lib/strnlen.h: New file.
71292
71293 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71294
71295         * README: Typos.
71296
71297 2005-08-02  Simon Josefsson  <jas@extundo.com>
71298
71299         * modules/readline: New file.
71300
71301 2005-08-02  Simon Josefsson  <jas@extundo.com>
71302
71303         * modules/getdelim: New file.
71304
71305         * modules/getline: Rewrite, don't use getndelim2.
71306
71307 2005-08-02  Simon Josefsson  <jas@extundo.com>
71308
71309         * m4/getline.m4: Separate out getdelim stuff into separate module.
71310
71311         * m4/getdelim.m4: New file.
71312
71313 2005-08-02  Simon Josefsson  <jas@extundo.com>
71314
71315         * lib/getline.h, getline.c: Rewrite.
71316
71317         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
71318
71319 2005-07-31  Bruno Haible  <bruno@clisp.org>
71320
71321         * lib/lock.h (gl_lock_initializer): New macro.
71322         (gl_lock_define_initialized): Use it.
71323         (gl_rwlock_initializer): New macro.
71324         (gl_rwlock_define_initialized): Use it.
71325         (gl_recursive_lock_initializer): New macro.
71326         (gl_recursive_lock_define_initialized): Use it.
71327
71328 2005-07-30  Karl Berry  <karl@gnu.org>
71329
71330         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
71331         Report from Ben Pfaff, regarding getopt.
71332
71333 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
71334
71335         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
71336         normal way.
71337         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
71338         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
71339         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
71340         (gl_GETOPT): Use the new macros.  Most of the implementation
71341         is moved to the new macros.  This is for programs like Emacs
71342         that don't want all the functionality of gl_GETOPT.
71343
71344 2005-07-26  Bruno Haible  <bruno@clisp.org>
71345
71346         * m4/lock.m4: Update from GNU gettext.
71347
71348 2005-07-26  Bruno Haible  <bruno@clisp.org>
71349
71350         * lib/lock.h: Update from GNU gettext.
71351         * lib/lock.c: Update from GNU gettext.
71352
71353 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
71354
71355         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
71356         obsolescent AC_TRY_RUN.  Include the default includes files, for
71357         'exit'.
71358
71359 2005-07-24  Bruno Haible  <bruno@clisp.org>
71360
71361         * modules/visibility: New file.
71362         * MODULES.html.sh (Misc): Add visibility.
71363
71364 2005-07-24  Bruno Haible  <bruno@clisp.org>
71365
71366         * m4/visibility.m4: New file.
71367
71368 2005-07-24  Bruno Haible  <bruno@clisp.org>
71369
71370         * doc/visibility.texi: New file.
71371
71372 2005-07-22  Bruno Haible  <bruno@clisp.org>
71373
71374         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
71375         $(ALLOCA_H), redundant through BUILT_SOURCES.
71376         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
71377         redundant through BUILT_SOURCES.
71378         * modules/byteswap (Makefile.am): Remove explicit dependency on
71379         $(BYTESWAP_H), redundant through BUILT_SOURCES.
71380         * modules/fnmatch (Makefile.am): Remove explicit dependency on
71381         $(FNMATCH_H), redundant through BUILT_SOURCES.
71382         * modules/getopt (Makefile.am): Remove explicit dependency on
71383         $(GETOPT_H), redundant through BUILT_SOURCES.
71384         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
71385         redundant through BUILT_SOURCES.
71386         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
71387         redundant through BUILT_SOURCES.
71388         * modules/stdbool (Makefile.am): Remove explicit dependency on
71389         $(STDBOOL_H), redundant through BUILT_SOURCES.
71390         * modules/stdint (Makefile.am): Remove explicit dependency on
71391         $(STDINT_H), redundant through BUILT_SOURCES.
71392         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
71393         Remove explicit dependency on $(SYSEXITS_H).
71394         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
71395
71396 2005-07-18  Simon Josefsson  <jas@extundo.com>
71397
71398         * lib/check-version.c (check_version): Accept identical versions too.
71399
71400 2005-07-18  Bruno Haible  <bruno@clisp.org>
71401
71402         * modules/lock: New file.
71403         * MODULES.html.sh (Multithreading): New section.
71404
71405 2005-07-18  Bruno Haible  <bruno@clisp.org>
71406
71407         * m4/lock.m4: New file, from GNU gettext.
71408
71409 2005-07-18  Bruno Haible  <bruno@clisp.org>
71410
71411         * lib/lock.h: New file, from GNU gettext.
71412         * lib/lock.c: New file, from GNU gettext.
71413
71414 2005-07-18  Bruno Haible  <bruno@clisp.org>
71415
71416         * lib/lock.h (gl_once_t): New type.
71417         (gl_once_define, gl_once): New macros.
71418         * lib/lock.c (fresh_once): New variable.
71419         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
71420         functions.
71421
71422 2005-07-16  Simon Josefsson  <jas@extundo.com>
71423
71424         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
71425         workaround, suggested by Bruno.
71426
71427 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
71428
71429         * modules/xalloc (Depends-on): Add xalloc-die.
71430         * modules/xvasprintf (Depends-on): Add xalloc-die.
71431
71432 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
71433
71434         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
71435         with a minor change.
71436
71437 2005-07-15  Bruno Haible  <bruno@clisp.org>
71438
71439         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
71440         When using lib/poll.c, define poll as rpl_poll.
71441
71442 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
71443
71444         * modules/argp (Depends-on): Remove unlocked-io.
71445
71446 2005-07-14  Derek Price  <derek@ximbiot.com>
71447
71448         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
71449         for glob symlink bug.
71450
71451 2005-07-14  Bruno Haible  <bruno@clisp.org>
71452
71453         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
71454         Instead, test for *_unlocked function declarations directly.
71455
71456 2005-07-11  Simon Josefsson  <jas@extundo.com>
71457
71458         * modules/size_max: New file.
71459
71460         * modules/xsize: Depend on size_max module for size_max.m4.
71461
71462 2005-07-11  Simon Josefsson  <jas@extundo.com>
71463
71464         * lib/size_max.h: New file.
71465
71466 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
71467
71468         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
71469         copyright symbol and the year.
71470         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
71471         (version_etc_va): Use parameterized copyright notice.
71472         Reword to conform to the current GNU coding standards.
71473
71474 2005-07-11  Karl Berry  <karl@gnu.org>
71475
71476         * doc/gnulib.texi (Quoting): new node.
71477         (Initial import): more info, from Patrice.
71478
71479 2005-07-11  Bruno Haible  <bruno@clisp.org>
71480
71481         * gnulib-tool (func_usage): Document option --avoid.
71482         (Command line options): Handle --avoid.
71483         (func_acceptable): New function.
71484         (func_modules_transitive_closure): Use it.
71485
71486 2005-07-11  Bruno Haible  <bruno@clisp.org>
71487
71488         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
71489         Reported by Jim Meyering.
71490
71491 2005-07-10  Bruno Haible  <bruno@clisp.org>
71492
71493         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
71494         Needed when size_t is smaller than 'unsigned int'.
71495         Reported by Paul Eggert.
71496
71497 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
71498
71499         * modules/argp (Depends-on): Add unlocked-io
71500
71501 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
71502
71503         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
71504         block of defines.
71505
71506 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
71507
71508         * config/srclist.txt: Comment out regcomp.c, since we have a porting
71509         fix now.
71510
71511 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
71512         and Paul Eggert  <eggert@cs.ucla.edu>
71513
71514         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
71515         in wint_t, not wchar_t.  Remove now-unnecessary cast.
71516
71517 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
71518
71519         * modules/regex (Files): Add lib/regex_internal.c,
71520         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
71521         (Depends-on): Add extensions.
71522         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
71523
71524 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
71525
71526         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
71527         pathconf.
71528         * m4/same.m4 (gl_SAME): Likewise.
71529         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
71530
71531         * m4/regex.m4: Adjust to new libc regex implementation.
71532         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
71533         all the .c and .h parts of (the new) regex.
71534         Quote the m4 stuff better.
71535         Check for RE_ICASE bug of old gnulib.
71536         Check for REG_STARTEND of recent libc.
71537         Rename local variables from jm_* to gl_*.
71538         Quote operand of "test -f".
71539         Say "recent enough" version of libc, not "version 2".
71540         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
71541         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
71542         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
71543         Remove check for btowc, isascii.
71544         Require AM_LANGINFO_CODESET.
71545
71546 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
71547
71548         * lib/regex.c, regex.h: Sync from libc.
71549         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
71550         * lib/regexec.c:
71551         New files, synced from libc, except that regex_internal.h
71552         currently has a small porting fix.
71553
71554 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
71555
71556         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
71557         regex_internal.c, regexec.c.
71558         Add regex_internal.h too, but as a comment, since the libc version
71559         is currently broken in gnulib mode.
71560
71561 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71562
71563         Support programs like Emacs that use gnulib but not gettext.
71564         * MODULES.html.sh (Internationalization functions): Add gettext-h.
71565         * modules/gettext-h: New file.
71566         * modules/gettext (Files): Remove lib/gettext.h.
71567         (Depends-on): Add gettext-h.
71568         (Makefile.am): Remove lib_SOURCES.
71569         * modules/argmatch, modules/c-stack, modules/closeout:
71570         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
71571         * modules/execute, modules/file-type, modules/getaddrinfo:
71572         * modules/getopt, modules/human, modules/javacomp:
71573         * modules/javaexec, modules/mkdir-p, modules/obstack:
71574         * modules/openat, modules/pagealign_alloc, modules/pipe:
71575         * modules/quotearg, modules/regex, modules/rpmatch:
71576         * modules/unicodeio, modules/userspec, modules/version-etc:
71577         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
71578         * modules/xsetenv:
71579         Depend on gettext-h, not gettext.
71580
71581 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71582
71583         * gnulib-tool (func_import): Add support for 'public domain' license.
71584         * modules/alloca, modules/atexit, modules/memmove:
71585         Now public domain, not GPL.
71586         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
71587         * modules/realloc, modules/strerror, modules/strtod:
71588         Now LGPL, not GPL.
71589
71590 2005-07-05  Bruno Haible  <bruno@clisp.org>
71591
71592         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
71593         autoconf CVS. Needed for mingw.
71594
71595 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71596
71597         Remove the dependency of the strftime module on the tzset module.
71598         * modules/strftime (Depends-on): Remove dependency on tzset.
71599
71600 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71601
71602         Remove the dependency of the strftime module on the tzset module.
71603         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
71604         gl_FUNC_TZSET_CLOBBER.
71605
71606 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71607
71608         Remove the dependency of the strftime module on the tzset module.
71609         * lib/strftime.c (my_strftime)
71610         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
71611         Copy the input structure, to work around some of the bug with
71612         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
71613         Solaris releases, you should also use the tzset module, but we won't
71614         require it as a dependency any more since we don't want LGPLed code
71615         to depend on GPLed code.
71616
71617 2005-07-02  Jim Meyering  <jim@meyering.net>
71618
71619         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
71620         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
71621         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
71622         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
71623
71624 2005-07-02  Jim Meyering  <jim@meyering.net>
71625
71626         * lib/backupfile.c (backup_args): Change a `0' to NULL.
71627
71628 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71629
71630         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
71631         declares only 'struct timespec;' (!).
71632
71633 2005-07-01  Jim Meyering  <jim@meyering.net>
71634
71635         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
71636         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
71637         * lib/save-cwd.c, tempname.c:
71638         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
71639         and don't include <sys/file.h>).
71640
71641 2005-06-29  Jim Meyering  <jim@meyering.net>
71642
71643         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
71644         type name.  Use the variable name instead.
71645         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
71646         Likewise.
71647
71648 2005-06-28  Simon Josefsson  <jas@extundo.com>
71649
71650         * modules/check-version (Files): Add check-version.m4.
71651
71652 2005-06-28  Simon Josefsson  <jas@extundo.com>
71653
71654         * m4/check-version.m4: New file, suggested by Jim Meyering
71655         <jim@meyering.net>.
71656
71657 2005-06-28  Simon Josefsson  <jas@extundo.com>
71658
71659         * lib/check-version.h, lib/check-version.c: New files.
71660
71661 2005-06-28  Simon Josefsson  <jas@extundo.com>
71662
71663         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
71664         collision with global variable.  Better indentation.  Don't
71665         increment buffer pointer beyond buffer end.  Based on comments
71666         from Paul Eggert <eggert@cs.ucla.edu>.
71667
71668         * lib/base64.h: Indent.
71669
71670 2005-06-28  Simon Josefsson  <jas@extundo.com>
71671
71672         * doc/gnulib.texi (Library version handling): New section.
71673
71674 2005-06-28  Jim Meyering  <jim@meyering.net>
71675
71676         * check-module (find_included_lib_files): Hard-code another
71677         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
71678         but modules/fts-lgpl (correctly) does not list those files.
71679
71680         * modules/canonicalize (Files): Add lib/pathmax.h.
71681
71682 2005-06-25  Simon Josefsson  <jas@extundo.com>
71683
71684         * modules/check-version: New file.
71685
71686 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
71687
71688         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
71689         initializer of struct addrinfo, as an indication that we don't
71690         care how many members the structure has.
71691
71692 2005-06-24  Derek Price  <derek@ximbiot.com>
71693         and Bruno Haible  <bruno@clisp.org>
71694
71695         Remove stat module & update lstat.
71696         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
71697         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71698         * m4/stat.m4: Remove this file.
71699
71700 2005-06-24  Derek Price  <derek@ximbiot.com>
71701         and Bruno Haible  <bruno@clisp.org>
71702
71703         Remove stat module & update lstat.
71704         * lib/stat.c: Remove this file...
71705         (slash_aware_lstat): ...moving this content and its support...
71706         * lib/lstat.c (rpl_lstat): ...into here.
71707         * lib/lstat.h: New file.
71708
71709 2005-06-24  Derek Price  <derek@ximbiot.com>
71710         and Bruno Haible  <bruno@clisp.org>
71711
71712         Remove stat module & update lstat.
71713         * config/srclist.txt (libc sources): Remove stat.
71714
71715 2005-06-24  Derek Price  <derek@ximbiot.com>
71716         and Bruno Haible  <bruno@clisp.org>
71717
71718         Remove stat module & update lstat.
71719         * MODULES.html.sh (stat): Remove.
71720         * MODULES.html: Regenerated.
71721         * modules/lstat (Description): Correct function name.
71722         (Files): Add "lstat.h".
71723         (Depends-on): Remove stat, add xalloc, stat-macros.
71724         * modules/stat: Remove this file.
71725         (Include): Add "lstat.h", remove <sys/stat.h>.
71726
71727 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
71728
71729         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
71730         (ranged_convert): Don't save conversion in a temporary struct.
71731         This causes a warning with GCC 4.0.0, and anyway in the typical
71732         case it's not worth the extra 100 bytes or so of code.
71733         (ranged_convert, __mktime_internal): When calling a function via a
71734         pointer P, use P () rather than (*P) (), as we now assume C89 or
71735         better.
71736
71737 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71738
71739         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
71740         "who -r" failed to give output.  Problem reported by Tim Waugh.
71741
71742         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
71743         (xcalloc): Use it to avoid needless tests.
71744         Problem reported by Jim Meyering.
71745
71746 2005-06-20  Derek Price  <derek@ximbiot.com>
71747
71748         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
71749         unnecessary for Autoconfs > 2.59c.
71750
71751 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71752
71753         * lib/argp.h (__option_is_short): Check upper limit of
71754         __key. Isprint() requires its argument to have the value
71755         of an unsigned char or EOF.
71756
71757 2005-06-16  Jim Meyering  <jim@meyering.net>
71758
71759         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
71760         when either N or S is zero.
71761
71762 2005-06-16  Derek Price  <derek@ximbiot.com>
71763
71764         * m4/bison.m4: Declare YACC & YFLAGS precious.
71765
71766 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
71767
71768         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
71769         multibyte string or pattern, fall back on unibyte matching.
71770         Problem reported by James Youngman.
71771
71772 2005-06-08  Bruno Haible  <bruno@clisp.org>
71773
71774         * modules/csharpcomp: New file.
71775         * MODULES.html.sh (C#): Add csharpcomp.
71776
71777 2005-06-08  Bruno Haible  <bruno@clisp.org>
71778
71779         * m4/csharpcomp.m4: New file, from GNU gettext.
71780
71781 2005-06-08  Bruno Haible  <bruno@clisp.org>
71782
71783         * lib/csharpcomp.h: New file, from GNU gettext.
71784         * lib/csharpcomp.c: New file, from GNU gettext.
71785         * lib/csharpcomp.sh.in: New file, from GNU gettext.
71786
71787 2005-06-08  Bruno Haible  <bruno@clisp.org>
71788
71789         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
71790         warning on mingw.
71791
71792 2005-06-07  Derek Price  <derek@ximbiot.com>
71793
71794         Sync from CVS.
71795         * lib/glob_.h: Indent nested #ifdef.
71796
71797 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71798
71799         Sync from coreutils.
71800         Use "file name" when talking about file names, instead of "filename"
71801         or "path", as per the GNU coding standards.
71802         * lib/mkdir-p.c: Renamed from makepath.c.
71803         (make_dir_parents): Renamed from make_path.  All callers changed.
71804         * lib/mkdir-p.h: Likewise.  All includers changed.
71805         * lib/filenamecat.c: Renamed from path-concat.c.
71806         (file_name_concat): Renamed from path_concat.  All callers changed.
71807         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
71808         * lib/filenamecat.h: Likewise.  All includers changed.
71809         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
71810         in comments or local variable names.
71811         * lib/basename.c: Likewise.
71812         * lib/canonicalize.c, canonicalize.h: Likewise.
71813         * lib/dirname.c, dirname.h: Likewise.
71814         * lib/euidaccess.c: Likewise.
71815         * lib/exclude.c: Likewise
71816         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
71817         * lib/fsusage.c, fsuage.h: Likewise.
71818         * lib/fts.c, fts_.h: Likewise.
71819         * lib/getcwd.c: Likewise.
71820         * lib/getloadavg.c: Likewise.
71821         * lib/mkstemp.c: Likewise.
71822         * lib/mountlist.c, mountlist.h: Likewise.
71823         * lib/openat.c, openat.h: Likewise.
71824         * lib/readlink-stub.c: Likewise.
71825         * lib/readutmp.c, readutmp.h: Likewise.
71826         * lib/rename.c: Likewise.
71827         * lib/rmdir.c: Likewise.
71828         * lib/same.c: Likewise.
71829         * lib/savedir.c: Likewise.
71830         * lib/stripslash.c: Likewise.
71831         * lib/tempname.c: Likewise.
71832         * lib/xreadlink.c: Likewise.
71833         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
71834         All uses changed.
71835         * lib/exclude.h: Likewise.
71836
71837         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
71838         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71839         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
71840         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71841         * lib/pathmax.h: Include <limits.h> unconditionally, since other
71842         files have been getting away with it for years (MORE/BSD 4.3
71843         is extinct now).
71844         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
71845         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71846
71847         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
71848         Define to 256, not 255, as per modern POSIX.
71849
71850 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71851
71852         Sync from coreutils.
71853         Use "file name" when talking about file names, instead of "filename"
71854         or "path", as per the GNU coding standards.
71855         * MODULES.html.sh: mkdir-p renamed from makepath.
71856         filenamecat renamed from path-concat.
71857         * modules/filenamecat: Renamed from modules/path-concat.
71858         (Files): filenamecat.h and filenamecat.c renamed from
71859         path-concat.h and path-concat.c.
71860         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
71861         (Include): filenamecat.h, not path-concat.h.
71862         * modules/mkdir-p: Renamed from modules/makepath.
71863         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
71864         makepath.c.
71865         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
71866         (Include): mkdir-p.h, not makepath.h.
71867
71868 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71869
71870         Sync from coreutils.
71871         * m4/mkdir-p.m4: Renamed from makepath.m4.
71872         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
71873         Rename files from makepath.c to mkdir-p.c, and from
71874         makepath.h to mkdir-p.h.
71875         * m4/filenamecat.m4: Renamed from path-concat.m4.
71876         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
71877         Rename files from path-concat.c to filenamecat.c,
71878         and from path-concat.h to filenamecat.h.
71879         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
71880         "file name" in local variables or comments.
71881         * m4/rename.m4: Likewise.
71882
71883 2005-06-01  Bruno Haible  <bruno@clisp.org>
71884
71885         * modules/csharpexec: New file.
71886         * MODULES.html.sh (C#): New section.
71887
71888 2005-06-01  Bruno Haible  <bruno@clisp.org>
71889
71890         * m4/csharp.m4: New file, from GNU gettext.
71891         * m4/csharpexec.m4: New file, from GNU gettext.
71892
71893 2005-06-01  Bruno Haible  <bruno@clisp.org>
71894
71895         * lib/csharpexec.h: New file, from GNU gettext.
71896         * lib/csharpexec.c: New file, from GNU gettext.
71897         * lib/csharpexec.sh.in: New file, from GNU gettext.
71898
71899 2005-05-31  Derek Price  <derek@ximbiot.com>
71900             Paul Eggert  <eggert@cs.ucla.edu>
71901
71902         Sync from cvs.
71903         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
71904
71905 2005-05-31  Derek Price  <derek@ximbiot.com>
71906             Paul Eggert  <eggert@cs.ucla.edu>
71907
71908         Sync from cvs.
71909         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
71910
71911 2005-05-29  Derek Price  <derek@ximbiot.com>
71912
71913         * config/srclist.txt (glob_.h, glob.c): Add these files.
71914
71915 2005-05-29  Derek Price  <derek@ximbiot.com>
71916
71917         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
71918         * modules/glob: New file.
71919         * modules/getlogin_r: Add link to POSIX spec in description.
71920
71921 2005-05-29  Derek Price  <derek@ximbiot.com>
71922             Paul Eggert  <eggert@cs.ucla.edu>
71923
71924         * m4/glob.m4: New file.
71925
71926 2005-05-29  Derek Price  <derek@ximbiot.com>
71927             Paul Eggert  <eggert@cs.ucla.edu>
71928
71929         * lib/glob_.h, lib/glob.c: New files.
71930
71931 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71932
71933         * modules/fts (Files): Remove m4/inttypes-pri.m4.
71934         * modules/fts-lgpl (Depends-on): Remove gettext.
71935
71936 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71937
71938         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
71939         and don't require gt_INTTYPES_PRI.
71940
71941 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71942
71943         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
71944
71945         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
71946         the configuration hassle isn't worth it.
71947         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
71948         (LONGEST_MODIFIER, PRIuMAX): Remove.
71949
71950 2005-05-27  Bruno Haible  <bruno@clisp.org>
71951
71952         * lib/getlogin_r.h: Remove second include of <stddef.h>.
71953
71954 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
71955
71956         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
71957         _POSIX_PTHREAD_SEMANTICS for Solaris.
71958
71959 2005-05-25  Derek Price  <derek@ximbiot.com>
71960
71961         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
71962
71963 2005-05-25  Derek Price  <derek@ximbiot.com>
71964             Paul Eggert  <eggert@cs.ucla.edu>
71965
71966         * modules/getlogin_r, m4/getlogin_r.m4: New files.
71967         * lib/getlogin_r.c, getlogin_r.h: New files.
71968
71969 2005-05-25  Bruno Haible  <bruno@clisp.org>
71970             Derek Price  <derek@ximbiot.com>
71971
71972         * lib/getlogin_r.h: Simplify API documentation.
71973
71974 2005-05-23  Derek Price  <derek@ximbiot.com>
71975
71976         * modules/minmax (Files): Add m4/minmax.m4.
71977         (configure.ac): Add gl_MINMAX.
71978
71979 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71980
71981         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
71982         so that unistd-safer.h (GPL'ed code) need not be included.
71983
71984 2005-05-22  Bruno Haible  <bruno@clisp.org>
71985
71986         * m4/minmax.m4: New file.
71987         Based on a patch by Derek Price <derek@ximbiot.com>.
71988
71989 2005-05-22  Bruno Haible  <bruno@clisp.org>
71990
71991         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
71992         (INT64_MIN): Fix definition.
71993         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
71994
71995         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
71996         NEED_SIGNED_INT_TYPES.
71997
71998         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
71999         HAVE_SYSTEM_INTTYPES.
72000
72001 2005-05-22  Bruno Haible  <bruno@clisp.org>
72002
72003         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
72004         Also include <sys/param.h> if it defines MIN, MAX.
72005         Based on a patch by Derek Price <derek@ximbiot.com>.
72006
72007 2005-05-21  Jim Meyering  <jim@meyering.net>
72008
72009         * modules/fts (Files): Add m4/inttypes-pri.m4.
72010         (Depends-on): Add lstat and remove gettext.  Alphabetize.
72011
72012 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
72013
72014         New fts module.
72015         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
72016         (setup_dir, free_dir): New functions.
72017         (enter_dir, leave_dir): Define trivial
72018         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
72019         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
72020         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
72021         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
72022         Move to fts-cycle.c.
72023         (fts_open): Use setup_dir.
72024         (fts_close): Use free_dir.
72025         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
72026         This adds a label and some gotos, but the alternatives were messier.
72027         Check for memory allocation failure when entering a dir.
72028         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
72029         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
72030         (FTS): New member fts_cycle, that is a union that contains the
72031         old active_dir_ht and cycle_state.  All uses changed to mention
72032         fts_cycle.ht and fts_cycle.state.
72033         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
72034         fts.c, with the following changes:
72035         (setup_dir, free_dir): New functions.
72036         (enter_dir): Now returns bool.  Return true if successful, false
72037         if memory exhausted.  All callers changed.
72038         Do not bother partly cleaning up on
72039         memory allocation failure; that is free_dir's job.
72040         However, free ad if hash_insert fails, to avoid memory leak.
72041         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
72042         fts->fts_options to see which union member to use.
72043
72044 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
72045
72046         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
72047         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
72048
72049 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
72050
72051         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
72052
72053 2005-05-20  Jim Meyering  <jim@meyering.net>
72054
72055         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
72056         Now a macro, to pacify GCC.
72057
72058 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
72059
72060         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
72061         of -1.
72062
72063 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
72064
72065         * lib/chown.c (rpl_chown): Return -1 on failure.
72066
72067 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
72068
72069         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
72070         Don't check for stddef.h.
72071         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
72072         don't use its results.
72073         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
72074         since we include them unconditionally.  Don't require
72075         AM_STDBOOL_H, since stdbool is a prerequisite.
72076         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
72077         since we assume C89 or better.
72078         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
72079         as we don't use their results.
72080         Don't check for fchdir, memmove, memset, strrchr, as we use
72081         them unconditionally.
72082         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
72083         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
72084
72085 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
72086
72087         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
72088         Include <stddef.h> unconditionally, since we assume C89 now.
72089         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
72090         * lib/fts.c: Include fts_.h first, to check interface.
72091         Do not include intprops.h; no longer needed.
72092         Include cycle-check.h and hash.h, since fts_.h no longer does.
72093         Remove unnecessary casts of closedir to void.
72094         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
72095         decide whether to decrement nlinks.
72096         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
72097         (FTS): Use struct hash_table * instead of Hash_table, so that
72098         we no longer need to include hash.h here.
72099
72100 2005-05-18  Jim Meyering  <jim@meyering.net>
72101
72102         * modules/dirfd (License): Change to LGPL.  Most of the code
72103         is already in the public domain.
72104
72105 2005-05-18  Jim Meyering  <jim@meyering.net>
72106
72107         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
72108         Reported by Yoann Vandoorselaere.
72109
72110 2005-05-17  Jim Meyering  <jim@meyering.net>
72111
72112         * m4/fts.m4: New file, from coreutils.
72113
72114 2005-05-17  Jim Meyering  <jim@meyering.net>
72115
72116         * lib/fts.c, lib/fts_.h: New files, from coreutils.
72117
72118 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72119
72120         Sync from coreutils.
72121         * m4/unlinkdir.m4: New file.
72122
72123 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72124
72125         Sync from coreutils.
72126         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
72127         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
72128         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
72129         White space changes only.
72130         * lib/makepath.c (make_path): Port to hosts where leading "//" is
72131         special.
72132         * lib/yesno.c: Include getline.h, not ctype.h.
72133         (yesno): Don't remove leading white space; POSIX doesn't allow it.
72134         Use getline to remove arbitrary restriction on response length.
72135
72136 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72137
72138         * config/srclist-update: Spell out "Street" in FSF postal
72139         mail address; this is the style the FSF seems to prefer.
72140
72141         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
72142         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
72143         this updates FSF postal mail address.
72144
72145         Sync from coreutils.
72146         * modules/unlinkdir: New file.
72147         * modules/yesno (Depends-on): Add getline.
72148         * MODULES.html.sh (File system functions): Add unlinkdir.
72149
72150 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
72151
72152         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
72153         lib/strsep.h:
72154         Change the initial comment to refer to GPL, not LGPL.
72155         gnulib-tool will change it to LGPL as needed.
72156
72157         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
72158         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
72159         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
72160         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
72161         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
72162         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
72163         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
72164         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
72165         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
72166         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
72167         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
72168         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
72169         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
72170         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
72171         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
72172         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
72173         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
72174         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
72175         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
72176         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
72177         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
72178         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
72179         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
72180         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
72181         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
72182         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
72183         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
72184         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
72185         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
72186         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
72187         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
72188         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
72189         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
72190         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
72191         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
72192         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
72193         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
72194         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
72195         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
72196         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
72197         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
72198         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
72199         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
72200         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
72201         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
72202         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
72203         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
72204         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
72205         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
72206         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
72207         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
72208         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
72209         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
72210         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
72211         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
72212         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
72213         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
72214         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
72215         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
72216         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
72217         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
72218         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
72219         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
72220         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
72221         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
72222         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
72223         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
72224         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
72225         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
72226         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
72227         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
72228         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
72229         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
72230         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
72231         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
72232         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
72233         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
72234         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
72235         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
72236         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
72237         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
72238         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
72239         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
72240         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
72241         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
72242         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
72243         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
72244         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
72245         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
72246         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
72247         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
72248         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
72249         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
72250         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
72251         lib/yesno.c, lib/yesno.h:
72252         Update FSF postal mail address.
72253
72254 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
72255
72256         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
72257         tests/test-memmem.c, tests/test-stpncpy.c:
72258         Update FSF postal mail address.
72259
72260 2005-05-13  Bruno Haible  <bruno@clisp.org>
72261
72262         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
72263         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
72264         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
72265         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
72266         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
72267         Add support for 64-bit integers in the MSVC compiler.
72268
72269 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72270
72271         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
72272
72273 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
72274
72275         * gnulib-tool (func_import): Sort and uniquify recommended includes.
72276
72277 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
72278
72279         * doc/getdate.texi (General date syntax): Don't say that date
72280         date --iso-8601=ns generates acceptable dates; it doesn't yet.
72281         Problem reported by Nic Ferrier.
72282
72283 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72284
72285         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
72286         specified in ai_socktype. Fix invalid ai_protocol
72287         check. ai_protocol is usually set to 0 or depending on
72288         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
72289         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
72290         ai_socktype / ai_protocol in the returned addrinfo structure.
72291
72292 2005-05-10  Simon Josefsson  <jas@extundo.com>
72293
72294         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
72295         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72296
72297 2005-05-10  Karl Berry  <karl@gnu.org>
72298
72299         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
72300         (from http://www.gnu.org/licenses).
72301         * doc/COPYING.LIB: also rename to COPYING.LESSER.
72302         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
72303         fdl.texi suffices.
72304
72305 2005-05-10  Karl Berry  <karl@gnu.org>
72306
72307         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
72308         (COPYING.DOC): remove.
72309
72310         * config/srclist-update: new FSF address.
72311
72312 2005-05-10  Derek Price  <derek@ximbiot.com>
72313
72314         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
72315         possible.
72316
72317 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72318             Bruno Haible  <bruno@clisp.org>
72319
72320         * modules/inet_ntop: New file.
72321         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72322         inet_ntop.
72323
72324 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72325             Bruno Haible  <bruno@clisp.org>
72326
72327         * m4/inet_ntop.m4: New file.
72328
72329 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72330             Bruno Haible  <bruno@clisp.org>
72331
72332         * lib/inet_ntop.h: New file.
72333         * lib/inet_ntop.c: New file, from glibc with modifications.
72334
72335 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
72336
72337         * modules/time_r (License): Change to LGPL.
72338         * modules/extensions (License): Change to LGPL.  Actually,
72339         the license is more permissive than that, but currently gnulib-tool
72340         doesn't know how to handle more-permissive licenses.
72341
72342         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
72343         Problem reported by Dave Love.
72344
72345 2005-05-08  Jim Meyering  <jim@meyering.net>
72346
72347         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
72348         blank.
72349
72350 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
72351
72352         * modules/argmatch (Depends-on): Add stdbool.
72353         * modules/backupfile (Depends-on): Likewise.
72354         * modules/chdir-long (Depends-on): Likewise.
72355         * modules/closeout (Depends-on): Likewise.
72356         * modules/cycle-check (Depends-on): Likewise.
72357         * modules/dirname (Depends-on): Likewise.
72358         * modules/fnmatch (Depends-on): Likewise.
72359         * modules/fsusage (Depends-on): Likewise.
72360         * modules/fwriteerror (Depends-on): Likewise.
72361         * modules/getcwd (Depends-on): Likewise.
72362         * modules/getloadavg (Depends-on): Likewise.
72363         * modules/hard-locale (Depends-on): Likewise.
72364         * modules/makepath (Depends-on): Likewise.
72365         * modules/mountlist (Depends-on): Likewise.
72366         * modules/nanosleep (Depends-on): Likewise.
72367         * modules/posixtm (Depends-on): Likewise.
72368         * modules/quotearg (Depends-on): Likewise.
72369         * modules/readtokens (Depends-on): Likewise.
72370         * modules/readtokens0 (Depends-on): Likewise.
72371         * modules/readutmp (Depends-on): Likewise.
72372         * modules/save-cwd (Depends-on): Likewise.
72373         * modules/strftime (Depends-on): Likewise.
72374         * modules/userspec (Depends-on): Likewise.
72375         * modules/utimecmp (Depends-on): Likewise.
72376         * modules/xgetcwd (Depends-on): Likewise.
72377         * modules/xnanosleep (Depends-on): Likewise.
72378         * modules/xstrtod (Depends-on): Likewise.
72379         * modules/yesno (Depends-on): Likewise.
72380
72381 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
72382
72383         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
72384         needless checks.
72385
72386 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
72387
72388         Merge from coreutils.  Among other things,
72389         add bulletproofing for cases where stdin, stdout, or stderr are closed.
72390         * lib/fd-safer.c: New file.
72391         * lib/fcntl-safer.h, open-safer.c: Remove.
72392         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
72393         * lib/dup-safer.c: Include unistd-safer.h first.
72394         Don't include errno.h.
72395         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
72396         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
72397         * lib/file-type.c: Rely on file-type.h change.
72398         * lib/getloadavg.c: Include unistd-safer.h.
72399         (getloadavg): Use safer open.
72400         * lib/getusershell.c: Include "stdio-safer.h".
72401         (getusershell): Use safer fopen.
72402         * lib/long-options.c (long_options): Use NULL rather than 0.
72403         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
72404         'free'.
72405         * lib/modechange.c: Likewise.
72406         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
72407         (MODE_DONE): New constant.
72408         (struct mode_change): Remove 'next' member.
72409         (make_node_op_equals): New function; like the old one of the
72410         same name, except it allocates an array.
72411         (mode_compile, mode_create_from_ref): Use it.
72412         (mode_compile): Allocate result as an array, not a linked list.
72413         Parse octal string ourself, so that we catch mistakes like "+0".
72414         (mode_adjust): Arg is an array, not a linked list.
72415         * lib/modechange.c: Include stat-macros.h, xalloc.h.
72416         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
72417         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
72418         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
72419         Remove.  This is now stat-macros.h's job.
72420         (talloc): Remove.  All callers replaced by xalloc, so that
72421         our invokers don't have to worry about reporting memory failures.
72422         (make_node_op_equals): Remove.
72423         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
72424         New constants.
72425         (struct mode_change): Moved here from modechange.h.
72426         (mode_append_entry): Remove.
72427         (mode_compile): Remove MASKED_OPS arg, since it encouraged
72428         apps to have incorrect behavior.  Use simpler algorithm for head
72429         and tail.  Don't futz with umask; that's now the job of mode_adjust.
72430         Detect more invalid usages rather than having somewhat-random behavior.
72431         Don't insert an "a=" action, as that leads to incorrect behavior.
72432         (mode_compile, mode_create_from_ref): Return NULL on error instead
72433         of an enum, since now there's only one way to have an error.  All
72434         callers changed.
72435         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
72436         at the correct time.  Simplify calculation of "+u" and its ilk.
72437         Don't mishandle "+X".
72438         (mode_free): Remove "register" and localize decls.
72439         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
72440         (struct mode_change): Move to modechange.c; callers don't
72441         need to see this stuff.
72442         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
72443         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
72444         (mode_change, mode_adjust): Reflect the new signatures noted above.
72445         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
72446         that might redefine system include files.
72447         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
72448         (my_usleep): Use NULL rather than (void *) 0.
72449         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
72450         Use siginterrupt to specify that system calls should be interrupted.
72451         (rpl_nanosleep): Move initialization of suspended closer to call of
72452         my_usleep.
72453         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
72454         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
72455         (desirable_utmp_entry): New function.
72456         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
72457         using x2nrealloc, to simplify logic.
72458         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
72459         size calculation.  Do not assume utmp file is a regular file.
72460         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
72461         (READ_UTMP_CHECK_PIDS): New constant.
72462         * lib/save-cwd.c: Include unistd-safer.h.
72463         (save_cwd): Use fd_safer.
72464         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
72465         [!_LIBC] Include "stat-macros.h" instead.
72466         * lib/unistd-safer.h (fd_safer): New decl.
72467
72468 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
72469
72470         * modules/getloadavg (Depends-on): Add unistd-safer.
72471         * modules/getusershell (Depends-on): Add stdio-safer.
72472         * modules/lstat (Depends-on): Remove xalloc.
72473         * modules/mkstemp (Depends-on): Add stat-macros.
72474         * modules/modechange (Depends-on): Remove xstrtol.
72475         Add stat-macros, xalloc.
72476         * modules/save-cwd (Depends-on): Add unistd-safer.
72477         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
72478         * modules/unistd-safer (Files): Add lib/fd-safer.c
72479         (Makefile.am): Remove lib_SOURCES.
72480
72481         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
72482         Remove fcntl-safer; unistd-safer supersedes it.
72483
72484 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
72485
72486         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
72487         AC_HEADER_STAT.
72488         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
72489         (gl_PREREQ_CHOWN): Remove.
72490         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
72491         it.  Don't require AC_HEADER_STAT.
72492         (gl_PREREQ_LSTAT): Remove.
72493         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
72494         Don't require AC_HEADER_STAT.
72495         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
72496         (gl_PREREQ_RMDIR): Remove.
72497         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
72498         mention stat-macros.h or AC_HEADER_STAT, since we'll make
72499         the stat-macros module a prerequisite.
72500         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
72501         * m4/filemode.m4 (gl_FILEMODE): Likewise.
72502         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
72503         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
72504         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
72505         variable names.
72506         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
72507         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
72508         variable prefixes.
72509         * m4/fcntl-safer.m4: Remove.
72510         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
72511         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
72512         Invoke gl_PREREQ_FD_SAFER.
72513         (gl_PREREQ_FD_SAFER): New macro.
72514         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
72515         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
72516         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
72517         Remove duplicate call to AC_LIBOBJ(readutmp).
72518         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
72519
72520         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
72521         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
72522
72523 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
72524
72525         * MODULES.html.sh (Misc): Add byteswap.
72526
72527 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
72528
72529         * modules/getcwd (Depends-on): Add extensions.
72530         * modules/openat (Depends-on): Likewise.
72531
72532 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
72533
72534         * modules/byteswap: New file.
72535
72536 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
72537
72538         * m4/byteswap.m4: New file.
72539
72540 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
72541
72542         * lib/byteswap_.h: New file.
72543
72544 2005-04-25  Karl Berry  <karl@gnu.org>
72545
72546         * m4/gettext.m4: Update from GNU gettext 0.14.4.
72547
72548 2005-04-25  Albert Chin  <china@thewrittenword.com>
72549
72550         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
72551         Toolkit C bug.
72552
72553 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
72554
72555         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
72556         (func_ln_if_changed): Remove forcibly for no error message
72557         in case file does not exist.
72558
72559 2005-04-19  Simon Josefsson  <jas@extundo.com>
72560
72561         * gnulib-tool (Options): Make --symlink mean --symbolic.
72562
72563 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
72564
72565         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
72566
72567 2005-04-16  Simon Josefsson  <jas@extundo.com>
72568
72569         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
72570
72571 2005-04-15  Simon Josefsson  <jas@extundo.com>
72572
72573         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
72574
72575 2005-04-15  Simon Josefsson  <jas@extundo.com>
72576
72577         * gnulib-tool: Rename --symlink to --symbolic.
72578
72579 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
72580
72581         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
72582         symbolic links to files instead of copying/moving.  Add --aux-dir,
72583         specifying directory relative --dir where auxiliary build tools
72584         are placed.
72585
72586 2005-04-14  Bruno Haible  <bruno@clisp.org>
72587
72588         * modules/allocsa (License): Change to LGPL.
72589         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
72590
72591 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
72592
72593         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
72594         that "UTC +1 second" continues to work.  Problem reported
72595         by Dmitry V. Levin.
72596         (relunit_snumber): New rule.
72597         (relunit): Use it.
72598
72599 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
72600
72601         * lib/getdate.y (universal_time_zone_table): New constant.
72602         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
72603         universal_time_zone_table.
72604         (lookup_zone): Prefer universal_time_zone_table to
72605         local_time_zone_table, so that "GMT" time stamps are allowed in
72606         London during the summer.  Problem reported by Ian Abbott.
72607
72608 2005-04-12  Jim Meyering  <jim@meyering.net>
72609
72610         * lib/human.c (humblock): Set *options even when returning due to
72611         xstrtoumax conversion failure.  Thanks to a used-uninitialized
72612         warning from gcc-4.
72613
72614 2005-04-09  Jim Meyering  <jim@meyering.net>
72615
72616         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
72617         -Wuninitialized: initialize tm0.tm_year.
72618
72619 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
72620
72621         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
72622         count, since there's no maximum.  All uses changed.
72623         Add member dsts_seen.
72624         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
72625         not being INT_MAX.
72626         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
72627         Use pc_rels_seen to decide whther a date is absolute.
72628
72629         * lib/getdate.y (number): Don't overwrite year.
72630         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
72631         check.
72632
72633 2005-04-02  Simon Josefsson  <jas@extundo.com>
72634
72635         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
72636         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
72637
72638 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
72639
72640         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
72641         where no absolute path name can be longer than PATH_MAX.
72642
72643 2005-03-27  Jim Meyering  <jim@meyering.net>
72644
72645         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
72646
72647 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
72648
72649         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
72650         "one's complement" -> "ones' complement" in comment, as per Knuth.
72651         "value of type" -> "type or expression" in comment.
72652         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
72653
72654 2005-03-26  Jim Meyering  <jim@meyering.net>
72655
72656         Comment nits.
72657         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
72658         Correct typos: s/or/of/.
72659
72660 2005-03-26  Jim Meyering  <jim@meyering.net>
72661
72662         * modules/check-include-files: Move to ../ and rename to...
72663         * check-module: ...this.
72664
72665 2005-03-25  Jim Meyering  <jim@meyering.net>
72666
72667         * modules/xvasprintf (Files): Add xalloc.h.
72668
72669 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
72670
72671         * modules/gettext (Files): config/config.rpath ->
72672         build-aux/config.rpath
72673         * modules/iconv (Files): Likewise.
72674         Problem reported by Oskar Liljeblad.
72675
72676 2005-03-23  Jim Meyering  <jim@meyering.net>
72677
72678         * modules/check-include-files: New script to check for
72679         missing dependencies, multiple includes, etc.
72680
72681         * modules/c-strtold (Depends-on): Add xalloc.
72682         * modules/c-strtod (Depends-on): Add xalloc.
72683         * modules/hash (Depends-on): Add xalloc.
72684         (Files): Remove lib/xalloc.h.
72685
72686         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
72687         * modules/userspec (Files): Add lib/inttostr.h.
72688
72689 2005-03-23  Jim Meyering  <jim@meyering.net>
72690
72691         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
72692
72693 2005-03-22  Jim Meyering  <jim@meyering.net>
72694
72695         * modules/stat-macros: New module.
72696         * modules/canonicalize, modules/euidaccess, modules/file-type,
72697         * modules/filemode, modules/lchown, modules/makepath,
72698         * modules/rmdir, modules/stat: Depend on new stat-macros module
72699         rather than listing lib/stat-macros.h manually.
72700         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
72701
72702 2005-03-22  Jim Meyering  <jim@meyering.net>
72703
72704         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
72705
72706 2005-03-22  Bruno Haible  <bruno@clisp.org>
72707
72708         * config/srclist.txt: Replace target directory 'config' with
72709         'build-aux'.
72710         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
72711         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
72712         ../build-aux/.
72713
72714 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
72715
72716         * modules/chdir-long (Depends-on): Add mempcpy.
72717
72718         * modules/acl, modules/backupfile, modules/c-strtod,
72719         modules/c-strtold, modules/canon-host, modules/canonicalize,
72720         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
72721         modules/exclude, modules/exitfail, modules/file-type,
72722         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
72723         modules/getdate, modules/getline, modules/getpagesize,
72724         modules/getpass, modules/getugroups, modules/group-member,
72725         modules/hard-locale, modules/hash, modules/human, modules/idcache,
72726         modules/inttostr, modules/long-options, modules/makepath,
72727         modules/md5, modules/memcasecmp, modules/memcoll,
72728         modules/modechange, modules/mountlist, modules/path-concat,
72729         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
72730         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
72731         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
72732         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
72733         modules/strftime, modules/strndup, modules/strverscmp,
72734         modules/timespec, modules/unlocked-io, modules/userspec,
72735         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
72736         modules/yesno:
72737         Remove lib_SOURCES line from Makefile.am section, as this is now
72738         done automatically by the corresponding Autoconf macro.
72739
72740 2005-03-21  Jim Meyering  <jim@meyering.net>
72741
72742         Changes imported from coreutils.
72743
72744         * lib/cycle-check.c: Don't include xalloc.h.
72745
72746         * lib/path-concat.c: Don't include assert.h.
72747         (path_concat): Remove assertion that would have triggered
72748         for ABASE starting with more than one slash.
72749         Reported by Andreas Schwab.
72750
72751         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
72752         properly when ABASE is an absolute file name.
72753         Correct the description of this function.
72754         Include <assert.h>.
72755         Add an assertion and a test driver.
72756         This fixes a bug introduced on 2004-07-02.
72757         Andreas Schwab reported the resulting failure of cp --parents:
72758         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
72759
72760 2005-03-21  Jim Meyering  <jim@meyering.net>
72761
72762         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
72763         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
72764
72765 2005-03-21  Jim Meyering  <jim@meyering.net>
72766         and  Paul Eggert  <eggert@cs.ucla.edu>
72767
72768         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
72769         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
72770         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
72771         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
72772         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
72773         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
72774         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
72775         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
72776         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
72777         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
72778         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
72779         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
72780         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
72781         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
72782         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
72783         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
72784         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
72785         for these modules.
72786
72787 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
72788
72789         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
72790         (which shouldn't happen), generate nothing instead of returning 0
72791         immediately, so that nstrftime (NULL, ...) doesn't return 0.
72792
72793 2005-03-16  Bruno Haible  <bruno@clisp.org>
72794
72795         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
72796         HAVE_LONGLONG_64BIT.
72797
72798 2005-03-16  Bruno Haible  <bruno@clisp.org>
72799
72800         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
72801         HAVE_LONGLONG_64BIT.
72802
72803 2005-03-16  Bruno Haible  <bruno@clisp.org>
72804
72805         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
72806         HAVE_LONGLONG_64BIT.
72807
72808 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
72809
72810         * lib/strftime.c (my_strftime): Prepend space to format so that we can
72811         reliably distinguish strftime failure from empty output on POSIX
72812         hosts.
72813
72814 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
72815
72816         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
72817         (iconv_string): Don't guess a size-zero buffer, as that might cause
72818         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
72819         result would be 'too large', where 'too large' is (heuristically)
72820         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
72821         overflow concerns.  This will prevent some unwanted malloc failures
72822         when the inputs are very large.
72823
72824 2005-03-15  Karl Berry  <karl@gnu.org>
72825
72826         * config/srclist.txt (config.rpath): from gettext.
72827         * config/config.rpath: update.
72828
72829 2005-03-15  Bruno Haible  <bruno@clisp.org>
72830
72831         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
72832         to 'negate'.
72833
72834         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
72835         variable.
72836
72837         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
72838         results.
72839
72840 2005-03-14  Simon Josefsson  <jas@extundo.com>
72841
72842         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
72843         <fx@gnu.org>.
72844
72845 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
72846
72847         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
72848         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
72849         intprops.h.
72850         * lib/strtol.c: Likewise.
72851
72852 2005-03-14  Jim Meyering  <jim@meyering.net>
72853
72854         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
72855         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
72856         to be nonzero so that we (and caller) can detect the difference
72857         between a valid zero-length expansion and an error return, even
72858         when the underlying strftime fails before writing anything into
72859         that location.
72860
72861 2005-03-14  Bruno Haible  <bruno@clisp.org>
72862
72863         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
72864         Update from GNU gettext 0.14.3.
72865
72866 2005-03-10  Jim Meyering  <jim@meyering.net>
72867
72868         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
72869
72870 2005-03-10  Jim Meyering  <jim@meyering.net>
72871
72872         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
72873         so that this module works on systems without fchdir.
72874
72875 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
72876
72877         Factor int-properties macros into a single file, except for
72878         glibc-related files.
72879         * lib/intprops.h: New file.
72880         * lib/getloadavg.c: Include it instead of limits.h.
72881         (INT_STRLEN_BOUND): Remove.
72882         * lib/human.c: Include intprops.h.
72883         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
72884         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
72885         302/1000.
72886         * lib/inttostr.h: Include intprops.h instead of limits.h.
72887         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
72888         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
72889         for consistency with intprops.h.
72890         (time_t_is_integer, twos_complement_arithmetic): Use them.
72891         * lib/sig2str.h: Include <signal.h>, intprops.h.
72892         (INT_STRLEN_BOUND): Remove.
72893         * lib/strftime.c (TYPE_SIGNED): Remove.
72894         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
72895         * lib/strtol.c: Adjust comments to match intprops.h.
72896         * lib/userspec.c: Include intprops.h.
72897         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
72898         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
72899         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
72900         instead of rolling our own expressions.
72901         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
72902
72903         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
72904         instead of int.
72905         (my_strftime): Do not mishandle years close to INT_MAX, by doing
72906         the right thing even if adding 1900 would overflow.  Similarly
72907         for tm_mon + 1 and tm_yday + 1.
72908         Make %Y always equivalent to %C%y, and similarly for %G and %g.
72909         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
72910         (DO_SIGNED_NUMBER): New macro.
72911         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
72912
72913 2005-03-07  Bruno Haible  <bruno@clisp.org>
72914
72915         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
72916
72917 2005-03-07  Bruno Haible  <bruno@clisp.org>
72918
72919         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
72920
72921 2005-03-04  Derek R. Price  <derek@ximbiot.com>
72922
72923         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
72924         (func_import): Only replace files via --import when they have actually
72925         changed.
72926
72927 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72928
72929         * m4/mmap-anon.m4: New file.
72930         * m4/pagealign_alloc.m4: New file.
72931
72932 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72933             Bruno Haible  <bruno@clisp.org>
72934
72935         * modules/pagealign_alloc: New file.
72936         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
72937
72938 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72939             Bruno Haible  <bruno@clisp.org>
72940
72941         * lib/pagealign_alloc.h: New file.
72942         * lib/pagealign_alloc.c: New file.
72943
72944 2005-03-03  Bruno Haible  <bruno@clisp.org>
72945
72946         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
72947         Use an all-permissive copyright notice, recommended by RMS.
72948
72949 2005-03-02  Bruno Haible  <bruno@clisp.org>
72950
72951         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
72952         of AIX, the replacement has to be done only after <string.h> is
72953         included, therefore not in config.h. stpncpy.h does the replacement,
72954         and stpncpy.c uses it.
72955
72956 2005-03-02  Bruno Haible  <bruno@clisp.org>
72957
72958         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
72959         stpncpy.c uses it.
72960
72961 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72962
72963         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
72964         The workaround isn't strictly needed for POSIX conformance, and
72965         it's too much of a pain to configure and maintain.  We'll ask
72966         people to fix their kernels instead.
72967         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
72968         (NANOSLEEP_BUG_WORKAROUND): Remove.
72969         (xnanosleep): Remove the workaround.
72970
72971 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72972
72973         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
72974         Reported by Derek Price.
72975         (Include): Add "timespec.h".
72976
72977         * modules/xnanosleep (Depends-on): Remove gethrxtime.
72978
72979 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72980
72981         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
72982         to detect nanosleep bug.
72983
72984 2005-03-01  Bruno Haible  <bruno@clisp.org>
72985
72986         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
72987
72988 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72989
72990         * modules/gethrxtime: New file.
72991         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
72992         (Depends-on): Add gethrxtime.
72993         (configure.ac): Add gl_XNANOSLEEP.
72994         (Makefile.am): Remove lib_SOURCES line.
72995
72996 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72997
72998         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
72999         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
73000
73001 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
73002
73003         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
73004         * lib/timespec.h (gettime): Return void, since it always
73005         succeeds now.  All uses changed.
73006         * lib/gettime.c (gettime): Likewise.
73007         [HAVE_NANOTIME]: Prefer nanotime.
73008         Assume gettimeofday succeeds, as POSIX requires.
73009         Assime time () succeeds, since other code already does.
73010         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
73011         (timespec_subtract): Remove.
73012         (NANOSLEEP_BUG_WORKAROUND): New constant.
73013         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
73014         things considerably.  Use it only on GNU/Linux hosts, since the
73015         workaround shouldn't be needed elsewhere.
73016
73017 2005-02-24  Bruno Haible  <bruno@clisp.org>
73018
73019         * modules/gettext (Files): Add m4/glibc2.m4.
73020
73021 2005-02-24  Bruno Haible  <bruno@clisp.org>
73022
73023         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
73024         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
73025         * m4/progtest.m4:
73026         Update from GNU gettext 0.14.2.
73027         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
73028
73029 2005-02-24  Bruno Haible  <bruno@clisp.org>
73030
73031         * lib/localcharset.c: Update from GNU gettext 0.14.2.
73032         * lib/config.charset: Update from GNU gettext 0.14.2.
73033
73034 2005-02-24  Bruno Haible  <bruno@clisp.org>
73035
73036         * lib/gettext.h: Update from GNU gettext 0.14.2.
73037
73038 2005-02-23  Simon Josefsson  <jas@extundo.com>
73039
73040         * m4/iconvme.m4: New file.
73041
73042 2005-02-23  Jim Meyering  <jim@meyering.net>
73043
73044         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
73045         change.
73046         Thanks to Bruno Haible for catching it.
73047
73048 2005-02-22  Simon Josefsson  <jas@extundo.com>
73049
73050         * modules/iconvme: New file.
73051
73052         * MODULES.html.sh: Add iconvme.
73053
73054 2005-02-22  Simon Josefsson  <jas@extundo.com>
73055
73056         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
73057
73058 2005-02-22  Simon Josefsson  <jas@extundo.com>
73059
73060         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
73061
73062 2005-02-22  Jim Meyering  <jim@meyering.net>
73063
73064         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
73065         s/ifndef/ifdef/.
73066
73067 2005-02-20  Neil Conway  <neilc@samurai.com>
73068
73069         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
73070         returned by OSX/Darwin if the specified buffer is not large
73071         enough for the hostname.
73072
73073 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73074
73075         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
73076         pass it to _help, otherwise the latter coredumps trying to
73077         dereference state.root_argp.
73078
73079 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73080
73081         * modules/chdir-long (Depends-on): Add memrchr.
73082         * modules/memrchr (Files): Add lib/memrchr.h.
73083         (Include): "memrchr.h".
73084
73085 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73086
73087         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
73088
73089 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73090
73091         * lib/memrchr.h: New file.
73092         * lib/chdir-long.c: Include it.
73093         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
73094         Don't bother including stddef.h.
73095
73096 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
73097
73098         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
73099         inclusion.
73100         Include <sys/types.h>, for dev_t.
73101         (ME_DUMMY, ME_REMOTE): Move from here....
73102         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
73103         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
73104         Dmitry V. Levin.
73105         Include mountlist.h first, to test the interface.
73106
73107 2005-01-29  Bruno Haible  <bruno@clisp.org>
73108
73109         * lib/progname.c (program_name): Initialize.
73110         Needed when linking statically on MacOS X.
73111
73112 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
73113
73114         Sync from coreutils.
73115         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
73116         (Depends-on): Add c-strtod.
73117         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
73118
73119 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
73120
73121         Sync from coreutils.
73122         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
73123
73124         Remove files that are specific to coreutils.
73125         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
73126
73127 2005-01-28  Bruno Haible  <bruno@clisp.org>
73128
73129         * modules/javacomp: New file.
73130         * MODULES.html.sh (Java): Add javacomp.
73131
73132 2005-01-28  Bruno Haible  <bruno@clisp.org>
73133
73134         * m4/javacomp.m4: New file, from GNU gettext.
73135
73136 2005-01-28  Bruno Haible  <bruno@clisp.org>
73137
73138         * lib/javacomp.sh.in: New file, from GNU gettext.
73139         * lib/javacomp.h: New file, from GNU gettext.
73140         * lib/javacomp.c: New file, from GNU gettext.
73141
73142 2005-01-26  Simon Josefsson  <jas@extundo.com>
73143
73144         * lib/gai_strerror.c: Use GPL in header.
73145
73146 2005-01-26  Bruno Haible  <bruno@clisp.org>
73147
73148         * modules/javaexec: New file.
73149         * MODULES.html.sh (Java): Add javaexec.
73150
73151 2005-01-26  Bruno Haible  <bruno@clisp.org>
73152
73153         * m4/javaexec.m4: New file, from GNU gettext.
73154
73155 2005-01-26  Bruno Haible  <bruno@clisp.org>
73156
73157         * lib/javaexec.sh.in: New file, from GNU gettext.
73158         * lib/javaexec.h: New file, from GNU gettext.
73159         * lib/javaexec.c: New file, from GNU gettext.
73160
73161 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73162
73163         * modules/lchown (Depends-on): Remove lchown.h
73164
73165 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73166
73167         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
73168         must be defined if the header file was not found, in order
73169         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
73170
73171 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73172
73173         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
73174         initializers for struct pentry_state.
73175         (__argp_error): Check return value of __asprintf
73176         (__argp_failure): Translate error message
73177
73178         * lib/argp-parse.c: Removed braces around the expansion of N_()
73179
73180 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73181
73182         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
73183         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
73184         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
73185         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
73186         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
73187         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
73188         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
73189         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
73190         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
73191         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
73192         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
73193         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
73194         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
73195         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
73196         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
73197         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
73198         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
73199         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
73200         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
73201         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
73202         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
73203         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
73204         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
73205         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
73206         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
73207         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
73208         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
73209         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
73210         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
73211         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
73212         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
73213         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
73214         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
73215         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
73216         xstrtol.m4, xstrtoumax.m4, yesno.m4:
73217         Use an all-permissive copyright notice, recommended by RMS.
73218
73219 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
73220
73221         * modules/chdir-long (Depends-on): Remove mempcpy.
73222
73223 2005-01-21  Jim Meyering  <jim@meyering.net>
73224
73225         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
73226         same value as for Solaris 9.
73227
73228         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
73229         component length.  This included changing the parameter to be
73230         of type `char *' rather than `char const *'.
73231         * lib/chdir-long.h (chdir_long): Update prototype.
73232
73233         * lib/openat.c (fdopendir, fstatat): New functions.
73234         * lib/openat.h: Include headers required for use of DIR and struct
73235         stat.
73236         [AT_SYMLINK_NOFOLLOW]: Define.
73237         (fdopendir, fstatat): Add prototypes.
73238
73239 2005-01-21  Bruno Haible  <bruno@clisp.org>
73240
73241         * modules/classpath: New file.
73242         * MODULES.html.sh (Java): Add classpath.
73243
73244 2005-01-21  Bruno Haible  <bruno@clisp.org>
73245
73246         * lib/classpath.h: New file, from GNU gettext.
73247         * lib/classpath.c: New file, from GNU gettext.
73248
73249 2005-01-20  Simon Josefsson  <jas@extundo.com>
73250
73251         * modules/version-etc-fsf: New file.
73252
73253 2005-01-20  Simon Josefsson  <jas@extundo.com>
73254
73255         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
73256         * lib/version-etc.c: Remove version_etc_copyright.
73257         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
73258         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
73259
73260 2005-01-20  Simon Josefsson  <jas@extundo.com>
73261
73262         * lib/base64.h (isbase64): Add.
73263
73264         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
73265         using a unsigned prototype, don't inline.
73266         (base64_decode): Use it.
73267
73268 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73269
73270         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
73271         it.
73272
73273 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73274
73275         * lib/save-cwd.c (save_cwd): Remove code to support the case
73276         where fchdir is missing or flaky.
73277
73278 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73279
73280         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
73281
73282 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
73283
73284         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
73285         AC_LIBSOURCES now does this.
73286         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
73287         with new ullong_max module.
73288
73289 2005-01-19  Bruno Haible  <bruno@clisp.org>
73290
73291         * modules/sh-quote: New file.
73292         * MODULES.html.sh (Executing programs): Add sh-quote.
73293
73294 2005-01-19  Bruno Haible  <bruno@clisp.org>
73295
73296         * lib/sh-quote.h: New file, from GNU gettext.
73297         * lib/sh-quote.c: New file, from GNU gettext.
73298
73299 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
73300
73301         Merge from coreutils.
73302         * m4/ullong_max.m4: New file.
73303         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
73304         (gl_MACROS): Assume localeconv exists.
73305
73306 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
73307
73308         Merge changes from coreutils, as described below in several
73309         changelogs dated today.
73310
73311         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
73312         (O_DIRECTORY): Remove; not needed here, since "." must be
73313         a directory.  All uses removed.
73314         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
73315         universal on Suns, and we also need to test for IRIX.
73316         Revamp code to use 'if' rather than '#if'.
73317         Avoid unnecessary comparison of cwd->desc to 0.
73318
73319         * lib/utimens.c (futimens): Robustify the previous patch, by checking
73320         for known valid error numbers rather than observed invalid ones.
73321
73322 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
73323
73324         * modules/ullong_max: New file.
73325
73326         * modules/chdir-long, modules/openat: New files.
73327         * modules/save-cwd (Depends-on): Depend on chdir-long.
73328         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
73329
73330 2005-01-18  Jim Meyering  <jim@meyering.net>
73331
73332         Merge from coreutils.
73333         * m4/chdir-long.m4, m4/openat.m4: New files.
73334         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
73335         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
73336         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
73337         is sane and DOES follow symlinks.  Besides, testing 20 different
73338         systems found no broken chown implementations.
73339         Prompted by a change in rsync's copy of this macro.
73340         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
73341
73342         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
73343
73344         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
73345         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
73346         NULL-means-set-to-current-time semantics.
73347         Remove temporary file immediately, rather than waiting
73348         for configure's at-exit trap code to do it.
73349
73350 2005-01-18  Jim Meyering  <jim@meyering.net>
73351
73352         * lib/version-etc.c (version_etc_copyright): Update copyright date.
73353
73354         * lib/utimens.c (futimens): Account for the fact that futimes
73355         can also fail with errno == ENOSYS or errno == ENOENT.
73356         Patch from Dmitry V. Levin.
73357
73358         Change the name of the robust chdir function from chdir to chdir_long.
73359         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
73360         (restore_cwd): Use chdir_long, not chdir.
73361         * lib/chdir-long.c: Renamed from chdir.c.
73362         * lib/chdir-long.h: Renamed from chdir.h.
73363         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
73364         Hurd.
73365
73366 2005-01-18  Bruno Haible  <bruno@clisp.org>
73367
73368         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
73369         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
73370         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
73371         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
73372         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
73373         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
73374         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
73375         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
73376         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
73377         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
73378         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
73379         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
73380         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
73381         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
73382         Use an all-permissive copyright notice, recommended by RMS.
73383
73384 2005-01-18  Bob Proulx  <bob@proulx.com>
73385
73386         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
73387         simplify offsetof() macro construct to avoid compile failure with
73388         native HP-UX 11.0 ANSI C compiler.
73389
73390 2005-01-17  Bruno Haible  <bruno@clisp.org>
73391
73392         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
73393         redundant because stpncpy.m4 takes care of it.
73394
73395 2005-01-17  Bruno Haible  <bruno@clisp.org>
73396
73397         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
73398
73399 2005-01-17  Bruno Haible  <bruno@clisp.org>
73400
73401         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
73402         used.
73403
73404 2005-01-17  Bruno Haible  <bruno@clisp.org>
73405
73406         * lib/fwriteerror.h (fwriteerror): Change specification to include
73407         fclose.
73408         * lib/fwriteerror.c: Include <stdbool.h>.
73409         (fwriteerror): At the end, close the file stream. Record whether
73410         stdout was already closed.
73411
73412 2005-01-17  Bruno Haible  <bruno@clisp.org>
73413
73414         * lib/execute.c (environ): Declare if needed.
73415         * lib/pipe.c (environ): Likewise.
73416         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
73417
73418 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73419
73420         * modules/argp: Depend on vsnprintf
73421
73422 2005-01-10  Jim Meyering  <jim@meyering.net>
73423
73424         * modules/closeout (Depends-on): Add atexit.
73425
73426 2005-01-06  Bruno Haible  <bruno@clisp.org>
73427
73428         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
73429
73430 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73431
73432         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
73433         definitions to be after all include files, to avoid collisions.
73434         Problem reported by Bob Proulx.
73435
73436 2005-01-04  Jim Meyering  <jim@meyering.net>
73437
73438         Changes imported from coreutils.
73439         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
73440         as the mkstemp template, use a temporary directory and an
73441         8.3-friendly template to avoid trouble on systems like DJGPP.
73442         Reported by Juan M. Guerrero via Stepan Kasal.
73443         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
73444         close. Remove the temporary directory right away, rather than waiting
73445         for configure's at-exit trap code to do it.
73446         Suggestion from Stepan Kasal.
73447
73448 2005-01-01  Simon Josefsson  <jas@extundo.com>
73449
73450         * gnulib-tool: Print #include directives when --import'ing.
73451
73452 2004-12-28  Simon Josefsson  <jas@extundo.com>
73453
73454         * tests/test-base64.c: Include required header files.  Remove
73455         unused variables.
73456
73457 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
73458
73459         * modules/error (Depends-on): Remove gettext.
73460
73461 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
73462
73463         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
73464         not needed.  This removes a dependency on the gettext module.
73465         [defined _LIBC]: Do not include <libintl.h>; not needed.
73466
73467 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
73468
73469         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
73470         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
73471
73472 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
73473
73474         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
73475         HAVE_DECL_STRTOLD.
73476
73477 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
73478
73479         * modules/getdate (Depends-on): Remove alloca-opt.
73480
73481 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
73482
73483         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
73484
73485 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
73486
73487         * lib/argp-parse.c: Include <stddef.h>.
73488         (alignof, alignto): New macros.
73489         (parser_init): Don't assume that void * is aligned sufficiently
73490         for struct option.
73491
73492         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
73493         need to extend the stack.
73494         (YYINITDEPTH): New macro, so that the initial stack isn't overly
73495         large.
73496
73497 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73498
73499         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
73500
73501 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
73502
73503         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
73504         (2004-10-24) change.  Apparently this was a false alarm.
73505
73506         * modules/getdate: Depend on alloca-opt, not alloca.
73507
73508 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
73509
73510         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
73511         Remove now-obsolete comment about AIX.
73512         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
73513         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
73514         (YYMAXDEPTH): New macro.
73515
73516 2004-12-18  Simon Josefsson  <jas@extundo.com>
73517
73518         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
73519
73520 2004-12-18  Bruno Haible  <bruno@clisp.org>
73521
73522         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
73523
73524 2004-12-18  Bruno Haible  <bruno@clisp.org>
73525
73526         * lib/fatal-signal.c (fatal_signals): Make non-const.
73527         (init_fatal_signals): New function.
73528         (uninstall_handlers, install_handlers): Ignore signals that were set to
73529         SIG_IGN.
73530         (at_fatal_signal): Call init_fatal_signals.
73531         (init_fatal_signal_set): Likewise. Ignore signals that were set to
73532         SIG_IGN.
73533         Reported by Paul Eggert.
73534
73535 2004-12-18  Bruno Haible  <bruno@clisp.org>
73536
73537         * doc/alloca.texi: New file.
73538         * doc/alloca-opt.texi: New file.
73539
73540 2004-12-17  Jim Meyering  <jim@meyering.net>
73541
73542         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
73543         Otherwise, install-sh could exit with improper exit status when
73544         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
73545
73546 2004-12-16  Simon Josefsson  <jas@extundo.com>
73547
73548         * tests/test-base64.c: Add license.
73549
73550 2004-12-15  Stepan Kasal  <address@hidden>
73551
73552         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
73553
73554 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
73555
73556         * modules/getcwd (Files): Add m4/d-ino.m4.
73557         Suggested by Mark D. Baushke.
73558
73559 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
73560
73561         * lib/getdate.y (textint): New member "negative".
73562         (time_zone_hhmm): New function.
73563         Expect 14 shift-reduce conflicts, not 13.
73564         (o_colon_minutes): New rule.
73565         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
73566         (yylex): Set the "negative" member of signed numbers.
73567
73568 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
73569
73570         * doc/getdate.texi (Time of day items, Time zone items):
73571         Describe new formats +00:00, UTC+00:00.
73572
73573 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73574
73575         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
73576         spurious "-l"s.  Problem reported by Stepan Kasal.
73577
73578 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
73579
73580         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
73581         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
73582
73583 2004-12-04  Simon Josefsson  <jas@extundo.com>
73584
73585         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
73586         Vandoorselaere <yoann@prelude-ids.org>.
73587
73588 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
73589
73590         Changes imported from coreutils.
73591         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
73592         exist.
73593         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
73594
73595 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
73596
73597         Changes imported from coreutils.
73598         * lib/hard-locale.c: Assume <locale.h> exists.
73599         Include "strdup.h".
73600         (GLIBC_VERSION): New macro.
73601         (hard_locale): Assume setlocale exists.
73602         Rewrite to avoid #ifdef.
73603         Use strdup rather than malloc + strcpy.
73604         * lib/human.c: Assume <locale.h> exists.
73605         (human_readable): Assume localeconv exists.
73606
73607 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
73608
73609         * modules/hard-locale (Depends-on): Add strdup.
73610
73611 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
73612
73613         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
73614         convert T2, not T.  (Imported from libc.)
73615
73616 2004-11-30  Simon Josefsson  <jas@extundo.com>
73617
73618         * modules/restrict (License): Change to LGPL.
73619
73620 2004-11-30  Simon Josefsson  <jas@extundo.com>
73621
73622         * m4/restrict.m4: Add copyright and copying conditions.
73623
73624 2004-11-30  Simon Josefsson  <jas@extundo.com>
73625
73626         * m4/base64.m4: New file.
73627
73628 2004-11-30  Simon Josefsson  <jas@extundo.com>
73629
73630         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
73631         base64.
73632
73633         * tests/test-base64.c: New file.
73634
73635         * modules/base64: New file.
73636
73637 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
73638
73639         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
73640         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
73641
73642         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
73643
73644 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
73645
73646         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
73647         (__getcwd.c): Don't restore errno; glibc doesn't.
73648         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
73649         first, falling back to our code only if its results look suspicious.
73650         Ensure that the resulting buffer is only as large as necessary.
73651
73652         * lib/readutmp.c: Include readutmp.h first.
73653         Include <errno.h>, since readutmp.h no longer does that.
73654         * lib/readutmp.h: Don't include <errno.h>,
73655         <sys/param.h>, <time.h>; not needed to establish interface.
73656         (errno): Remove decl.
73657         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
73658         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
73659         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
73660
73661 2004-11-28  Simon Josefsson  <jas@extundo.com>
73662
73663         * lib/base64.h, base64.c: New file.
73664
73665 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
73666
73667         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
73668
73669 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
73670
73671         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
73672         (Depends-on): Remove pathmax, same.  Add mempcpy.
73673         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
73674         (Makefile.am): Append getcwd.h to lib_SOURCES.
73675         (Include): Add getcwd.h.
73676         (Maintainer): Change from Jim Meyering to "all, glibc",
73677         since getdate now uses intended-for-glibc code.
73678         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
73679         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
73680
73681 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73682
73683         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
73684         HP's ANSI C compiler.
73685         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
73686         Declaring int functions causes warnings on some modern systems and
73687         shouldn't be needed to compile on ancient ones.
73688         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
73689         defined.
73690
73691         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
73692         with the following changes.
73693         (__set_errno): Parenthesize properly.
73694         Include <stdbool.h>.
73695         (MIN, MAX, MATCHING_INO): New macros.
73696         (__getcwd): Define with prototype, not K&R form.
73697         Use heuristics to allocate default buffer on stack if possible.
73698         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
73699         behavior, and to avoid the PATH_MAX limit when computing
73700         ../../../../...
73701         Use MATCHING_INO to compare inode number to file.
73702         Check for arithmetic overflow in size calculations.
73703         Fix bug in reallocation of dot array that caused getcwd to fail
73704         on directories nested deeper than 75.
73705         Be more careful about saving errno on error.
73706         Do not use realloc; use only free+malloc, as this is a bit
73707         more flexible and avoids a needless copy operation.
73708         Do not inspect st_dev and st_ino for symbolic links; POSIX
73709         doesn't specify the latter.
73710         Check for closedir errors.
73711         Avoid needless casts.
73712         Use "#ifdef weak_alias" around weak_alias, to be like other
73713         glibc code.
73714         The following changes to getcwd.c have effect only when used in
73715         gnulib; they have no effect inside glibc proper.
73716         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
73717         as alloca isn't used.
73718         (alloca, __alloca): Likewise.
73719         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
73720         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
73721         unconditionally, as gnulib assumes C89 or better.
73722         Do not include <sys/param.h>.
73723         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
73724         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
73725         better.
73726         (NULL) [!defined NULL]: Remove; we assume C89 or better.
73727         Include <dirent.h> in a way that is compatible with modern Autoconf.
73728         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
73729         New macros, if not already defined.
73730         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
73731         Use "_LIBC", not "defined _LIBC", for consistency.
73732         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
73733         a mempcpy module.
73734         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
73735         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
73736         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
73737         credit only to Jim Meyering and adjust the copyright dates.
73738         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
73739         <stdlib.h>, <unistd.h>, "pathmax.h".
73740         Instead, include "xgetcwd.h" (first) and "getcwd.h".
73741         (INITIAL_BUFFER_SIZE): Remove.
73742         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
73743
73744 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73745
73746         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
73747         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
73748         Use the _ONCE methods, for efficiency.
73749         Check for fcntl.h.  In test program, include <errno.h>
73750         and <fcntl.h> if available.  Remove old K&R cruft from
73751         test program.  Check for common errors in GNU/Linux,
73752         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
73753         don't do AC_LIBOBJ, as that's getcwd.m4's job.
73754         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
73755         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
73756         name accordingly.
73757         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
73758         accommodate new getcwd.c.
73759         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
73760         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
73761         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
73762         that's all we need now.
73763
73764 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73765
73766         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
73767         argp-parse.c depends on getopt internals, that means we should
73768         always use our getopt, to be on the safe side.
73769         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
73770         order not to spoil the result of an eventual previous invocation
73771         of gl_GETOPT_SUBSTITUTE.
73772
73773 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73774
73775         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
73776         redefinition warnings. To avoid them, include the defines
73777         in `#if !defined __need_getopt ... #endif'. The only place
73778         where __getopt_argv_const is used is in definitions
73779         of getopt_long and getopt_long_only below, which are as well
73780         protected by `#ifndef __need_getopt'.
73781         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
73782         __need_getopt after including <stdio.h> and <unistd.h> These
73783         headers might have defined it.
73784
73785 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
73786
73787         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
73788
73789 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
73790
73791         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
73792         (futimens): New function, which uses futimes if available.
73793         (futimens, utimens): Support timespec==NULL, with same semantics
73794         as utime and utimens.
73795         * lib/utimens.h (futimens): New decl.
73796
73797 2004-11-23  Jim Meyering  <jim@meyering.net>
73798
73799         * lib/getopt_.h: Remove trailing blanks.
73800
73801 2004-11-23  Jim Meyering  <jim@meyering.net>
73802
73803         * lib/__fpending.c: Add comment.
73804
73805 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
73806
73807         * modules/canonicalize (Depends-on): Add xreadlink.
73808         Problem reported by James Youngman.
73809
73810 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
73811
73812         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
73813         New macros.
73814         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
73815         optopt): Use them instead of invoking ## directly; otherwise, the
73816         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
73817
73818 2004-11-19  Bruno Haible  <bruno@clisp.org>
73819
73820         * lib/strtok_r.c: Move comments from here...
73821         * lib/strtok_r.h: ... to here.
73822
73823 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73824
73825         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
73826         implementations that mishandle size_t overflow.
73827
73828 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73829
73830         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
73831         might fail.  Problem reported by Yoann Vandoorselaere.
73832         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
73833         implementations that mishandle size_t overflow.
73834
73835 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73836
73837         * modules/canon-host (Depends-on): Add strdup.
73838
73839 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73840
73841         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
73842
73843 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73844
73845         * lib/canon-host.c: Include "strdup.h".
73846         (canon_host): Use getaddrinfo if available, so that IPv6 works.
73847         Use strdup instead of malloc/strcpy to duplicate strings.
73848
73849         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
73850         (human_space_before_unit): New constant.
73851         * lib/human.c (human_readable): Support it.
73852
73853         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
73854         (xgetcwd): Set errno correctly when failing.
73855         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
73856         the failure is actually due to a PATH_MAX problem.
73857
73858         Further getopt changes to make it more likely that glibc will
73859         buy the changes back.
73860         * lib/getopt.c (POSIXLY_CORRECT): New constant.
73861         (getopt): Use it, so to preserve glibc semantic
73862         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
73863         when compiling for libc.
73864         * lib/getopt_.h (__getopt_argv_const): Bring it back.
73865         (getopt_long, getopt_long_only): Use it.
73866
73867         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
73868         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
73869         (getopt): Argv is now char * const *, as per standard.
73870         (_getopt_internal_r, _getopt_internal): Argv is now char **,
73871         not char *__getopt_argv_const *.
73872         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
73873         _getopt_long_only_r): Likewise.
73874         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
73875         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
73876         _getopt_long_r, _getopt_long_only_r): Likewise.
73877         * lib/getopt_.h (__getopt_argv_const): Remove.
73878         (getopt): Argv is now char * const *, as per standard.
73879
73880         * lib/getdate.y (tORDINAL): New token.
73881         (day, relunit): Allow it for relative times.
73882         (relative_time_table): Use tORDINAL for ordinals.
73883
73884 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73885
73886         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
73887         Document that "second" isn't allowed as an ordinal number.
73888
73889 2004-11-16  Jim Meyering  <jim@meyering.net>
73890
73891         * modules/closeout (Depends-on): Add fpending.
73892
73893 2004-11-15  Jim Meyering  <jim@meyering.net>
73894
73895         * lib/closeout.c: Include "__fpending.h" once again.
73896         Include <stdbool.h>.
73897         (close_stdout): Don't fail just because stdout was closed initially,
73898         since some programs don't write to stdout in the normal course of
73899         operation (other than --version and --help), and we don't want this
73900         function to make e.g. `touch file >&-' fail.
73901         But do fail if it was closed and someone has tried to write to it.
73902         E.g., `printf foo >&-' must fail.
73903
73904 2004-11-13  Jim Meyering  <jim@meyering.net>
73905
73906         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
73907
73908 2004-11-12  Simon Josefsson  <jas@extundo.com>
73909
73910         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
73911         small doc fix is still pending.
73912
73913 2004-11-11  Simon Josefsson  <jas@extundo.com>
73914
73915         * modules/strtok_r: New file.
73916
73917         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73918         strtok_r.
73919
73920 2004-11-11  Simon Josefsson  <jas@extundo.com>
73921
73922         * m4/strtok_r.m4: New file.
73923
73924         * m4/getopt.m4: Replace opterr.
73925
73926 2004-11-11  Simon Josefsson  <jas@extundo.com>
73927
73928         * lib/strtok_r.h, strtok_r.c: New file.
73929
73930 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
73931
73932         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
73933         of replacing opterr, getopt, etc.  This should handle the
73934         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
73935
73936 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
73937
73938         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
73939         we can stop lying to compilers about the constness of argv when we
73940         are compiled outside glibc.
73941         (getopt, getopt_long, getopt_long_only): Use it.
73942         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
73943         _getopt_internal, getopt): Likewise.
73944         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
73945         _getopt_long_only_r): Likewise.
73946         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
73947         _getopt_long_r, _getopt_long_only_r): Likewise.
73948
73949         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
73950         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
73951         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
73952         the other external symbols.
73953         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
73954         declaration, since the above renaming now works around collisions.
73955
73956 2004-11-11  Jim Meyering  <jim@meyering.net>
73957
73958         * lib/linebreak.c: Remove trailing blanks.
73959         * lib/alloca_.h: Likewise.
73960         * lib/acosl.c: Likewise.
73961         * lib/euidaccess.c: Likewise.
73962         * lib/allocsa.h: Likewise.
73963
73964 2004-11-10  Simon Josefsson  <jas@extundo.com>
73965
73966         * m4/getaddrinfo.m4: New file.
73967
73968 2004-11-10  Simon Josefsson  <jas@extundo.com>
73969
73970         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
73971
73972 2004-11-10  Simon Josefsson  <jas@extundo.com>
73973
73974         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73975         getaddrinfo.
73976
73977         * modules/getaddrinfo: New file.
73978
73979 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73980
73981         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
73982
73983 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73984
73985         * lib/mktime.c (SHR): New macro, which is a portable
73986         substitute for >> that should work even on Crays.
73987         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
73988         Problem reported by Mark D. Baushke in
73989         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
73990         * lib/getdate.y (SHR): Likewise.
73991         (tm_diff): Use it.
73992         * lib/strftime.c (SHR): Likewise.
73993         (tm_diff): Use it.
73994         * lib/quotearg.c (struct quoting_options): Use unsigned int for
73995         quote_these_too, so that right shifts are well defined.  All uses
73996         changed.
73997
73998 2004-11-10  Jim Meyering  <jim@meyering.net>
73999
74000         Ensure that no close failure goes unreported.
74001         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
74002         return early when it seems there's nothing to flush.
74003         Don't include __fpending.h.
74004
74005 2004-11-10  Jim Meyering  <jim@meyering.net>
74006
74007         * modules/closeout (Depends-on): Remove fpending.
74008
74009 2004-11-10  Jim Meyering  <jim@meyering.net>
74010
74011         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
74012
74013 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74014
74015         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
74016         gl_FUNC_STRFTIME.
74017         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
74018         and AC_REQUIRE when possible, to avoid duplicate checks.
74019         Check for <wchar.h>.
74020
74021 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74022
74023         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
74024
74025 2004-11-09  Bruno Haible  <bruno@clisp.org>
74026
74027         * m4/sockpfaf.m4: New file.
74028
74029 2004-11-05  Bruno Haible  <bruno@clisp.org>
74030
74031         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
74032         Reported by Mark D. Baushke <mdb@cvshome.org>.
74033
74034 2004-11-04  Bruno Haible  <bruno@clisp.org>
74035
74036         2004-09-11  Bruno Haible  <bruno@clisp.org>
74037                 * allocsa.valgrind: New file.
74038         2004-02-06  Bruno Haible  <bruno@clisp.org>
74039                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
74040                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
74041                 Reported by Christopher Seip <chris.seip@hp.com>.
74042
74043 2004-11-04  Bruno Haible  <bruno@clisp.org>
74044
74045         * modules/allocsa (Files): Add lib/allocsa.valgrind.
74046         (Makefile.am): Distribute it.
74047
74048 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
74049
74050         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
74051         with errno == ERANGE if the buffer is too small.
74052         Problem reported by Mark D. Baushke.
74053
74054 2004-11-03  Albert Chin  <china@thewrittenword.com>
74055             Paul Eggert  <eggert@cs.ucla.edu>
74056
74057         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
74058         equivalent, substitute $ac_type for equivalent type rather than
74059         blindly using uint32_t *always* which won't work if uint32_t is not
74060         available.  Define _UINT32_T to work around typedef of uint32_t if
74061         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
74062         2.5.1.
74063
74064 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
74065
74066         * m4/jm-macros.m4: Sync from coreutils.
74067         (gl_MACROS): Check for mbrlen, for pathchk.
74068         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
74069
74070 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
74071
74072         * lib/xreadlink.c (MAXSIZE): New macro.
74073         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
74074         size does not exceed MAXSIZE.  Avoid cast.
74075         As suggested by Mark D. Baushke in
74076         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
74077         if readlink fails with buffer size just under MAXSIZE, try again
74078         with MAXSIZE.
74079
74080 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
74081
74082         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
74083
74084 2004-11-02  Derek R. Price  <derek@ximbiot.com>
74085         and  Paul Eggert  <eggert@cs.ucla.edu>
74086
74087         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
74088         (get_date): Overparenthesize to avoid GCC warning.
74089
74090 2004-11-02  Bruno Haible  <bruno@clisp.org>
74091
74092         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
74093         returns void.
74094
74095 2004-11-02  Bruno Haible  <bruno@clisp.org>
74096
74097         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
74098         function returns void.
74099
74100 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
74101
74102         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
74103         fflush_unlocked, flockfile, funlockfile, funlockfile,
74104         fputs_unlocked, putc_unlocked.
74105
74106 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
74107
74108         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
74109         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
74110         already declared.
74111
74112 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
74113
74114         * modules/getdate (Files): Add doc/getdate.texi.
74115         (Depends-on): Add setenv, xalloc.
74116
74117 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
74118
74119         * lib/getdate.y: Add support for TZ="foo" within a date string.
74120         Fix some bugs near time_t boundaries.  Reject dates with
74121         out-of-range components, e.g., "Sept 31".
74122         Include <stdlib.h>, "setenv.h", "xalloc.h".
74123         (ISDIGIT_LOCALE): Remove; unused.
74124         Note that the TZ and time functions used here are not reentrant.
74125         (mktime_ok, get_tz): New functions.
74126         (TZBUFSIZE): New constant.
74127         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
74128         This requires that we sometimes generate our own TZ="XXX..." setting.
74129
74130 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
74131
74132         * doc/getdate.texi: New file, from coreutils with modifications for
74133         the new TZ parsing.
74134
74135 2004-10-27  Derek R. Price  <derek@ximbiot.com>
74136
74137         * lib/mktime.c (not_equal_tm): Remove redundant check.
74138
74139 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74140
74141         * modules/regex (lib_SOURCES): Add regex.c.
74142         Reported by James Youngman in
74143         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
74144
74145 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74146
74147         * lib/getdate.y: Use Bison 1.875 features, and some minor
74148         code cleanups.  This change does not affect semantics.
74149         Don't include <stdlib.h>; no longer needed.
74150         Don't include unlocked-io.h; only the "#if TEST" code uses
74151         stdio, and performance isn't crucial there.
74152         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
74153         Bison 1.875 features as described below.
74154         All uses of "PC." replaced by "pc->".
74155         (YYSTYPE): Add a forward declaration.
74156         (yylex, yyerror): Use full prototypes in forward decls.
74157         Use "%pure-parser" rather than obsolescent "%pure_parser".
74158         Use %parse-param and %lex-param instead of obsolescent
74159         YYPARSE_PARAM and YYLEX_PARAM.
74160         (meridian_table, month_and_day_table, time_units_table,
74161         relative_time_table, time_zone_table, military_table,
74162         lookup_zone, lookup_word, get_date):
74163         Use NULL instead of 0 where appropriate.
74164         (to_hour): Avoid abort (), to avoid a dependency on
74165         stdlib.h.
74166         (yyerror, yylex): Now accepts parser_control * arg.
74167         (main) [TEST]: Use '\0' rather than 0 for char.
74168
74169 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
74170
74171         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
74172
74173 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
74174
74175         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
74176         It's now the caller's responsibility to handle the case where
74177         !HAVE_GETPAGESIZE && !defined getpagesize.
74178
74179         * lib/mktime.c (leapyear): Arg is long int, not int.
74180
74181 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
74182
74183         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
74184
74185 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
74186
74187         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
74188         missing.  Problem reported by James Youngman.
74189
74190 2004-10-16  Simon Josefsson  <jas@extundo.com>
74191
74192         * gnulib-tool: Fix comments.  Fix parse problem.
74193         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
74194
74195 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
74196
74197         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
74198         implementation of getopt_long.  Problem reported by Alexander Taler in:
74199         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
74200
74201 2004-10-15  Bruno Haible  <bruno@clisp.org>
74202
74203         * gnulib-tool: Untabify. Initialize supplied_libname.
74204         (func_usage): More homogenous output.
74205         (func_modules_transitive_closure, func_modules_to_filelist,
74206         func_emit_lib_Makefile_am): New functions.
74207         (func_import): New function, extracted from big case statement. Use
74208         func_get_license, func_modules_transitive_closure,
74209         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
74210         opt_lgpl. Don't use test -a, as it's not portable.
74211         (func_create_testdir): Use func_modules_transitive_closure,
74212         func_modules_to_filelist, func_emit_lib_Makefile_am.
74213
74214 2004-10-15  Bruno Haible  <bruno@clisp.org>
74215
74216         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
74217
74218 2004-10-15  Bruno Haible  <bruno@clisp.org>
74219
74220         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
74221         the portions belonging to each module.
74222         Suggested by Derek Robert Price <derek@ximbiot.com>.
74223
74224 2004-10-12  Simon Josefsson  <jas@extundo.com>
74225
74226         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
74227         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
74228         to real functions.
74229
74230 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74231
74232         * modules/vsnprintf: New file.
74233
74234 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74235
74236         * m4/vsnprintf.m4: New file.
74237
74238 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74239
74240         * lib/vsnprintf.h: New file.
74241         * lib/vsnprintf.c: New file.
74242
74243 2004-10-11  Bruno Haible  <bruno@clisp.org>
74244
74245         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
74246         vsnprintf.
74247
74248 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74249
74250         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
74251
74252 2004-10-07  Bruno Haible  <bruno@clisp.org>
74253
74254         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
74255         fits into the provided buffer.
74256
74257 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74258
74259         * lib/diacrit.c, diacrit.h: Add GPL notice.
74260
74261         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
74262         notice.
74263         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
74264         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
74265         This avoids a potential constant-folding bug.
74266
74267 2004-10-05  Bruno Haible  <bruno@clisp.org>
74268
74269         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
74270         for the declaration of strsep.
74271
74272 2004-10-05  Bruno Haible  <bruno@clisp.org>
74273
74274         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
74275
74276 2004-10-04  Simon Josefsson  <jas@extundo.com>
74277
74278         * modules/memmem: New file.
74279         * tests/test-memmem.c: New file.
74280         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
74281
74282 2004-10-04  Simon Josefsson  <jas@extundo.com>
74283
74284         * m4/memmem.m4: New file.
74285
74286 2004-10-04  Simon Josefsson  <jas@extundo.com>
74287
74288         * lib/memmem.h: New file.
74289         * lib/memmem.c: New file, taken from glibc.
74290
74291 2004-10-04  Simon Josefsson  <jas@extundo.com>
74292
74293         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
74294         '#ifdef USE_UNLOCKED_IO'.
74295
74296 2004-10-04  Simon Josefsson  <jas@extundo.com>
74297
74298         * config/srclist.txt: Add memmem from glibc.
74299
74300 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
74301
74302         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
74303
74304         * modules/argmatch, modules/argp, modules/closeout, modules/error,
74305         modules/exclude, modules/getdate, modules/getline,
74306         modules/getndelim2, modules/getpass, modules/getpass-gnu,
74307         modules/getusershell, modules/linebuffer, modules/md5,
74308         modules/mountlist, modules/posixtm, modules/readtokens,
74309         modules/readutmp, modules/regex, modules/sha1,
74310         modules/version-etc, modules/yesno:
74311         Remove dependency on unlocked-io.
74312
74313 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
74314
74315         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
74316
74317         * m4/unlocked-io.m4: Add copyright notice.
74318         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
74319
74320 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
74321
74322         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
74323         * lib/xmalloc.c (xmemdup): Likewise.
74324         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
74325         XFREE): Remove these long-obsolescent macros.
74326         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
74327         * lib/xstrdup.c: Remove.
74328
74329         * lib/regex.c (re_comp): Cast gettext return value to char *,
74330         Problem reported by Martin Neitzel via Mark D. Baushke.
74331
74332 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
74333
74334         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
74335         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
74336         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
74337         regex.c, sha1.c, version-etc.c, yesno.c:
74338         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
74339         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
74340         the includer's responsibility.
74341
74342         Sync from coreutils.
74343
74344         * lib/modechange.c (mode_compile): Don't decrement a pointer that
74345         points to the start of a string, as the C Standard says the
74346         resulting behavior is undefined.
74347
74348         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
74349         simple -> simple_backups, numbered_existing ->
74350         numbered_existing_backups, numbered -> numbered_backups
74351         to avoid shadowing problems.  All uses changed.
74352         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
74353         * lib/backupfile.c (check_extension, numbered_backup):
74354         Rename locals to avoid shadowing 'basename'.
74355         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
74356         once.
74357
74358         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
74359         * lib/.cvsignore: Add getopt.h.
74360
74361 2004-10-04  Bruno Haible  <bruno@clisp.org>
74362
74363         * modules/README: New file.
74364         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
74365         not a module.
74366
74367 2004-10-02  Jim Meyering  <jim@meyering.net>
74368
74369         * lib/dirfd.h, getpagesize.h: Add copyright notice.
74370
74371 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74372
74373         * modules/strsep: New file.
74374
74375 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74376
74377         * m4/strsep.m4: New file.
74378
74379 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74380
74381         * lib/strsep.h: New file.
74382         * lib/strsep.c: New file.
74383
74384 2004-10-01  Simon Josefsson  <jas@extundo.com>
74385
74386         * lib/snprintf.c (snprintf): Handle size==0.
74387
74388 2004-10-01  Simon Josefsson  <jas@extundo.com>
74389             Bruno Haible  <bruno@clisp.org>
74390
74391         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
74392         (snprintf): Declare 'args'.
74393
74394 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
74395
74396         * lib/snprintf.c: Remove comments as to why each header is needed.
74397
74398 2004-10-01  Bruno Haible  <bruno@clisp.org>
74399
74400         * MODULES.html.sh: Add strsep.
74401
74402 2004-09-30  Simon Josefsson  <jas@extundo.com>
74403
74404         * modules/snprintf: New file.
74405
74406 2004-09-30  Simon Josefsson  <jas@extundo.com>
74407
74408         * m4/snprintf.m4: New file.
74409
74410 2004-09-30  Simon Josefsson  <jas@extundo.com>
74411
74412         * lib/snprintf.h, lib/snprintf.c: New files.
74413
74414 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74415
74416         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
74417         (hol_entry_help): Never translate an empty string.
74418         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
74419         * lib/argp.h (OPTION_NO_TRANS): New option.
74420
74421 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
74422
74423         * modules/argp (Maintainer): Replace Simon Josefsson
74424         by Sergey Poznyakoff.
74425
74426 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
74427
74428         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
74429         changes merged back into glibc.
74430
74431 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
74432
74433         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
74434
74435 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
74436
74437         * lib/xvasprintf.c: Include xalloc.h.
74438         (xvasprintf): Use xalloc_die, not xmalloc_die.
74439
74440 2004-09-29  Bruno Haible  <bruno@clisp.org>
74441
74442         * modules/alloca-opt: New file, derived from modules/alloca.
74443         * modules/allocsa: Depend on alloca-opt instead of alloca.
74444         * modules/setenv: Likewise.
74445         * modules/vasnprintf: Likewise.
74446         * MODULES.html.sh: Add alloca-opt.
74447
74448 2004-09-28  Simon Josefsson  <jas@extundo.com>
74449
74450         * gnulib-tool: New parameter --lgpl, to asseert that modules are
74451         LGPL, and to replace license template from GPL to LGPL.
74452
74453 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
74454
74455         * modules/dummy: Change license to LGPL.
74456
74457 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
74458
74459         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
74460
74461 2004-09-24  Simon Josefsson  <jas@extundo.com>
74462
74463         * modules/minmax (License): Change from GPL to LGPL.
74464
74465 2004-09-23  Simon Josefsson  <jas@extundo.com>
74466
74467         * gnulib-tool (--import): Typo.
74468
74469 2004-09-23  Simon Josefsson  <jas@extundo.com>
74470
74471         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
74472
74473 2004-09-22  Bruno Haible  <bruno@clisp.org>
74474
74475         * modules/*: Add 'License' field.
74476         * gnulib-tool: Accept --extract-license option.
74477         (func_get_license): New function.
74478
74479 2004-09-21  Bruno Haible  <bruno@clisp.org>
74480
74481         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
74482         Reported by Simon Josefsson.
74483
74484 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
74485
74486         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
74487         gl_AC_TYPE_LONG_LONG.
74488
74489 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
74490
74491         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
74492
74493 2004-09-18  Simon Josefsson  <jas@extundo.com>
74494         and  Paul Eggert  <eggert@cs.ucla.edu>
74495
74496         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
74497         calls with autoreconf.  Define GL_LIB.
74498
74499 2004-09-14  Karl Berry  <karl@gnu.org>
74500
74501         * config/srclist.txt: unsync setenv.c, sigh.
74502
74503 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74504
74505         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
74506         Problem reported by Bruno Haible in:
74507         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
74508
74509 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74510
74511         * config/srclist.txt: Comment out argp-pvh.c.
74512
74513 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
74514
74515         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
74516         in case some system header has #define'd it.  Problem reported by
74517         Soeren D. Schulze in
74518         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
74519
74520 2004-09-09  Karl Berry  <karl@gnu.org>
74521
74522         * regex.[ch]: delete from the root.  These were supposed to be
74523                 synced with emacs cvs, but this has not happened for about
74524                 a year, and anyway nothing else uses emacs regex.[ch].
74525                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
74526                 lib/regex[.ch] is untouched.
74527
74528 2004-09-09  Bruno Haible  <bruno@clisp.org>
74529
74530         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
74531
74532 2004-09-09  Bruno Haible  <bruno@clisp.org>
74533
74534         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
74535         modifications.
74536         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
74537
74538 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
74539
74540         * modules/xvasprintf: New file.
74541         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
74542
74543 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
74544
74545         * lib/xvasprintf.h: New file.
74546         * lib/xvasprintf.c: New file.
74547         * lib/xasprintf.c: New file.
74548
74549 2004-09-08  Bruno Haible  <bruno@clisp.org>
74550
74551         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
74552
74553 2004-09-08  Bruno Haible  <bruno@clisp.org>
74554
74555         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
74556         length is > INT_MAX.
74557         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
74558         more.
74559
74560 2004-09-08  Bruno Haible  <bruno@clisp.org>
74561
74562         * lib/stdint_.h: New file, taken from GNU clisp.
74563
74564 2004-09-08  Bruno Haible  <bruno@clisp.org>
74565             Oskar Liljeblad  <oskar@osk.mine.nu>
74566
74567         * modules/stdint: New file.
74568         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
74569
74570 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74571
74572         Import from coreutils.
74573         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
74574         strings on unbounded length.  alloca's performance benefits aren't
74575         that important here.
74576         (V_STRDUP): Remove.
74577         (parse_with_separator): New function, with most of the internals
74578         of the old parse_user_spec.  Allow user to omit both user and group,
74579         for compatibility with FreeBSD.
74580         Clone only the user name, not the entire spec.
74581         Do not set *uid, *gid unless entirely successful.
74582         Avoid memory leak in some failing cases.
74583         Fix regression for USER.GROUP reported by Dmitry V. Levin in
74584         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
74585         (parse_user_spec): Rewrite to use parse_with_separator.
74586
74587 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74588
74589         * modules/userspec: Don't depend on alloca.
74590
74591 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74592
74593         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
74594
74595 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74596
74597         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
74598         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
74599         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
74600
74601 2004-08-16  Simon Josefsson  <jas@extundo.com>
74602
74603         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
74604         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
74605         Add --dry-run for --import.
74606         Let user provided command line parameters override configure.ac
74607         settings.
74608
74609 2004-08-12  Simon Josefsson  <jas@extundo.com>
74610
74611         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
74612         as discussed with Paul Eggert in threads rooted at
74613         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
74614         and
74615         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
74616         Before, the test was empty, and relied on ELIDE_CODE in source
74617         code.)
74618         (gl_PREREQ_GETOPT): New macro.
74619         (gl_GETOPT): Use them.
74620
74621 2004-08-12  Simon Josefsson  <jas@extundo.com>
74622
74623         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
74624         * lib/getopt_.h: Renamed from getopt.h.
74625
74626 2004-08-12  Simon Josefsson  <jas@extundo.com>
74627
74628         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
74629         Change default library name from libfoo to libgnu.
74630         Now, if you have a configure.ac that says:
74631                 gl_SOURCE_BASE(gl)
74632                 gl_M4_BASE(gl/m4)
74633                 gl_MODULES(error getopt etcetera)
74634                 gl_INIT
74635         you can import all you need by running:
74636                 ../gnulib/gnulib-tool --import
74637
74638         * modules/getopt (Files): Rename getopt.h to getopt_.h.
74639         (Makefile.am): Rewrite, use logic from argz.
74640         (Include): Use <getopt.h> instead of "getopt.h".
74641
74642 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74643
74644         * modules/argp (Files): Add m4/unlocked-io.m4.
74645         (Depends-on): Add extensions.
74646
74647 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74648
74649         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
74650         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
74651         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
74652         Check for program_invocation_name, program_invocation_short_name,
74653         flockfile, funlockfile, features.h, _getopt_long_only_r.
74654
74655 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74656
74657         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
74658         its complicated substitute.
74659         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
74660         and program_invocation_name.
74661         (__argp_basename) [!_LIBC]: Remove; the only use was
74662         replaced by its body.
74663         (__argp_short_program_name): Change condition from
74664         !defined __argp_short_program_name to
74665         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
74666         to match argp-namefrob.h.
74667         (__argp_failure): Don't assume strerror_r returns char *.
74668         * lib/argp-parse.c (N_): Define unconditionally.
74669         (argp_default_options): Fill out initializers with 0 to avoid
74670         gcc warnings.
74671
74672 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74673
74674         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
74675         getopt1.c.
74676
74677 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74678
74679         Merge from coreutils.
74680
74681         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
74682
74683         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
74684         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
74685
74686 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74687
74688         Merge from coreutils.
74689
74690         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
74691         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
74692         for Reliant Unix 5.43.
74693
74694         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
74695         (union fooround): Use uintmax_t, not long int.
74696         The rest is a merge from libc:
74697         [defined _LIBC]: Include <shlib-compat.h>.
74698         (_obstack) [defined _LIBC]: Remove after 2.3.4.
74699
74700         * lib/settime.c (settime): Recode to avoid warning with
74701         Sun Forte C 6U2.
74702
74703         * lib/strverscmp.c: Convert to UTF-8.
74704
74705 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74706
74707         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
74708         m4/uintmax_t.m4.
74709
74710 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74711
74712         * modules/xalloc-die: New file.
74713         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
74714
74715         * modules/md5 (Files): Add m4/uint32_t.m4.
74716         * modules/sha1: Renamed from modules/sha.
74717         (Files):
74718         Rename lib/sha.h to lib/sha1.h.
74719         Rename lib/sha.c to lib/sha1.c.
74720         Rename m4/sha.m4 to m4/sha1.m4.
74721         (lib_SOURCES): Likewise.
74722         (configure.ac): Rename gl_SHA to gl_SHA1.
74723         (Include): sha.h -> sha1.h.
74724
74725 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74726
74727         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
74728         * m4/sha1.m4: Renamed from sha.m4.
74729         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
74730
74731 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74732
74733         * lib/obstack.h (obstack_empty_p):
74734         Don't assume that chunk->contents is suitably aligned.
74735         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
74736         Likewise. Problem reported by Benno in
74737         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
74738
74739         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
74740         readable.  This could be improved further but it'd take some work.
74741
74742 2004-08-08  Simon Josefsson  <jas@extundo.com>
74743
74744         * modules/xgethostname (Depends-on): Remove exit and error (not
74745         used).
74746
74747         * modules/getpass-gnu: Add getpass.h.
74748         (Depends-on): Add stdbool.
74749         * modules/getpass: Add getpass.h.
74750
74751 2004-08-08  Simon Josefsson  <jas@extundo.com>
74752
74753         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
74754         Check getpass declaration.
74755
74756 2004-08-08  Simon Josefsson  <jas@extundo.com>
74757
74758         * lib/xgethostname.c: Don't include error.h (not used).
74759
74760         * lib/getpass.h: Add.
74761         * lib/getpass.c: Include getpass.h first.
74762
74763 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
74764
74765         * lib/xalloc-die.c: New file.
74766         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
74767         All uses removed.
74768         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
74769         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
74770         xalloc-die.c.
74771         (_, N_, xalloc_die): Move to xalloc-die.c.
74772         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
74773         so that we needn't mess with xalloc_msg_memory_exhausted.
74774
74775         * lib/sha1.h: Renamed from sha.h.
74776         (SHA1_H): Renamed from _SHA_H.
74777         (sha1_ctx): Renamed from sha_ctx.
74778         (sha1_init_ctx): Renamed from sha_init_ctx.
74779         (sha1_process_block): Renamed from sha_process_block.
74780         (sha1_process_bytes): Renamed from sha_process_bytes.
74781         (sha1_finish_ctx): Renamed from sha_finish_ctx.
74782         (sha1_read_ctx): Renamed from sha_read_ctx.
74783         (sha1_stream): Renamed from sha_stream.
74784         (sha1_buffer): Renamed from sha_buffer.
74785         * lib/sha1.c: Likewise; renamed from sha.c.
74786         Do not include <sys/types.h>.
74787         Include <stddef.h> rather than <stdlib.h>.
74788
74789 2004-08-08  Bruno Haible  <bruno@clisp.org>
74790
74791         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
74792         FILESYSTEM_PREFIX_LEN.
74793         * lib/progreloc.c: Likewise.
74794         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
74795
74796 2004-08-06  Simon Josefsson  <jas@extundo.com>
74797
74798         * modules/progname (Depends-on): Don't depend on stdbool.
74799
74800 2004-08-06  Simon Josefsson  <jas@extundo.com>
74801
74802         * modules/getsubopt: New file.
74803         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74804         getsubopt.
74805
74806 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74807
74808         More merge from coreutils.
74809
74810         * m4/utimens.m4, m4/utimecmp.m4: New files.
74811         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
74812         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
74813         prereq.m4, sha.m4: Import changes from coreutils.
74814
74815 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74816
74817         More merge from coreutils.
74818         * modules/raise, modules/readtokens0, modules/utimens:
74819         * modules/utimecmp, module/xnanosleep: New files.
74820         * modules/strftime: Add lib/strftime.h.
74821         Change include from <time.h> to "strftime.h".
74822         * modules/yesno: Add lib/yesno.h.
74823         * modules/backupfile: Remove lib/addext.c.
74824         * modules/euidaccess: Add stat-macros.h.
74825         * modules/canonicalize, modules/euidaccess,
74826         modules/filemode, modules/lchown, modules/makepath,
74827         modules/rmdir, modules/stat: Likewise.
74828
74829 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74830
74831         Merge from tar.
74832         * lib/argp-help.c (make_hol, hol_append): Don't assume that
74833         SIZE_MAX is a valid preprocessor constant.
74834         (__argp_basename): Change from "#ifndef _LIBC"
74835         to "#ifndef __argp_short_program_name", so that
74836         we don't compile these functions for tar.
74837
74838         More merges from coreutils.
74839         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
74840         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
74841         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
74842         * lib/addext.c: Remove; no longer needed.
74843         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
74844         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
74845         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
74846         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
74847         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
74848         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
74849         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
74850         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
74851         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
74852         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
74853         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
74854         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
74855         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
74856         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
74857         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
74858         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
74859         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
74860         Import changes from coreutils.
74861
74862 2004-08-05  Simon Josefsson  <jas@extundo.com>
74863
74864         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
74865
74866 2004-08-05  Simon Josefsson  <jas@extundo.com>
74867
74868         * m4/getsubopt.m4: New file.
74869
74870 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74871
74872         Merge from coreutils.
74873
74874         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
74875         * m4/getcwd-path-max.m4: New files.
74876
74877         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
74878         FILESYSTEM_PREFIX_LEN ->
74879         FILE_SYSTEM_PREFIX_LEN.
74880         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
74881         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
74882         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
74883         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
74884
74885         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
74886         prerequisite modules now handle the DOS stuff.
74887         Don't check for unistd.h.
74888
74889 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74890
74891         Merge from coreutils.
74892
74893         * lib/.gdb-history: Remove; this doesn't belong here.
74894
74895         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
74896         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
74897         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
74898         * lib/getcwd.c: New files.
74899
74900         * lib/dirname.h: Include <stdbool.h>.
74901         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
74902         for consistency with POSIX terminology.  All uses changed.
74903         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
74904         (strip_trailing_slashes): Use bool for booleans.
74905         * lib/stripslash.c (strip_trailing_slashes): Likewise.
74906
74907         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
74908         sometimes returns a positive errno value even when it succeeds.
74909         (print_errno_message) [!LIBC]: Fall back on strerror if
74910         __strerror_r fails.
74911
74912         * lib/path-concat.c (mempcpy): Don't define if a system header defines
74913         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
74914         (longest_relative_suffix): New function.
74915         (path_concat): Use it.  Assume first argument is not NULL.
74916         Port to DOS.  Omit redundant separators.
74917         Report an error instead of returning NULL.
74918         Use mempcpy instead of memcpy.
74919         (xpath_concat): Remove: not declared or used.
74920
74921         * lib/same.h: Include <stdbool.h>
74922         (same_name): Return bool, not int.
74923         * lib/same.c (same_name): Likewise.
74924         (errno): Don't declare; we assume C89 or better now.
74925
74926         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
74927         if not already defined.
74928
74929         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
74930         * lib/dup-safer.c (errno): Likewise.
74931
74932 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74933
74934         Merge from coreutils.
74935         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
74936         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
74937         * modules/path-concat: Don't depend on strdup.
74938
74939 2004-08-03  Simon Josefsson  <jas@extundo.com>
74940
74941         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
74942         * lib/progname.h: Don't include stdbool.h.
74943
74944 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74945
74946         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
74947         * MODULES.html.sh (func_all_modules): Remove fatal.
74948
74949 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74950
74951         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
74952
74953 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74954
74955         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
74956         working.
74957
74958 2004-08-02  Simon Josefsson  <jas@extundo.com>
74959
74960         * lib/getsubopt.h: New file, with comments from Bruno Haible.
74961         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
74962         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
74963
74964 2004-08-01  Simon Josefsson  <jas@extundo.com>
74965
74966         * lib/xgetdomainname.c: Include stdlib.h, for free().
74967
74968 2004-07-19  Bruno Haible  <bruno@clisp.org>
74969
74970         * MODULES.html.sh (func_all_modules): Add dummy.
74971
74972 2004-07-16  Simon Josefsson  <jas@extundo.com>
74973
74974         * modules/dummy: New file.
74975
74976 2004-07-16  Simon Josefsson  <jas@extundo.com>
74977
74978         * lib/dummy.c: New file.
74979
74980 2004-07-16  Bruno Haible  <bruno@clisp.org>
74981
74982         * lib/backupfile.h: Add extern "C" for C++.
74983         * lib/closeout.h: Likewise.
74984         * lib/copy-file.h: Likewise.
74985         * lib/findprog.h: Likewise.
74986         * lib/full-write.h: Likewise.
74987         * lib/pathname.h: Likewise.
74988         * lib/progname.h: Likewise.
74989         * lib/stpcpy.h: Likewise.
74990         * lib/stpncpy.h: Likewise.
74991         * lib/strcase.h: Likewise.
74992         * lib/strstr.h: Likewise.
74993         * lib/xalloc.h: Likewise.
74994
74995         * lib/mbswidth.h: Add extern "C" for C++.
74996         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
74997
74998 2004-07-13  Robert Millan  <robertmh@gnu.org>
74999
75000         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
75001
75002 2004-07-09  Simon Josefsson  <jas@extundo.com>
75003
75004         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
75005         failed without this.)
75006
75007 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75008
75009         * modules/chown (Files): Add lib/fchown-stub.c, since
75010         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
75011
75012 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75013
75014         * lib/fchown-stub.c: New file.
75015
75016 2004-06-24  Jim Meyering  <jim@meyering.net>
75017
75018         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
75019
75020 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75021
75022         * modules/argz: Omit "#include".
75023
75024         * MODULES.html.sh (func_all_modules): Add calloc, to match
75025         2004-06-01 addition of calloc module.
75026
75027 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75028
75029         * m4/argz.m4: New file, which is autoupdated from libtool.
75030
75031 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75032
75033         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
75034         libtool.
75035
75036 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75037
75038         * config/srclist-update: Don't insist on "USA." before the
75039         close-comment, as libtool omits the period and puts the */ on a
75040         separate line.
75041         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
75042         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
75043
75044 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
75045
75046         * modules/argz: New file.
75047         * MODULES.html.sh (func_all_modules): Add argz.
75048
75049 2004-06-12  Jim Meyering  <jim@meyering.net>
75050         and  Paul Eggert  <eggert@cs.ucla.edu>
75051
75052         * modules/hash (Files): Add lib/xalloc.h.
75053         * modules/pipe (Depends-on): Add wait-process.
75054         * modules/stat (Depends-on): Add xalloc.
75055         * modules/userspec (Files): Add lib/userspec.h.
75056         * modules/xstrto
75057
75058         Upgrade from gettext-0.13.
75059         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
75060         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
75061         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
75062
75063 2004-06-10  Jim Meyering  <jim@meyering.net>
75064
75065         * lib/calloc.c: New file.
75066
75067 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
75068
75069         * lib/getdate.y (yylex): Allow space between sign and number.
75070         Problem reported by Dan Jacobson.
75071
75072 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
75073
75074         Merge from coreutils CVS.
75075
75076         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
75077         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
75078         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
75079         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
75080         xstrtol.m4: Fix copyright date and/or serial number.
75081
75082         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
75083         See if we need an fchown replacement.
75084         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
75085         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
75086         and use the replacement function if we detect either defect.
75087
75088         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
75089         gl_UTIMECMP.
75090
75091 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
75092         and  Jim Meyering  <jim@meyering.net>
75093
75094         Merge from coreutils CVS.
75095
75096         * lib/stat-macros.h: New file, with contents from file-type.h
75097         and coreutils' system.h.
75098         * lib/file-type.c: Include "stat-macros.h".
75099         * lib/file-type.h (file_type): Move all macro definitions to new file,
75100         stat-macros.h.
75101
75102         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
75103         Wrap old code with this conditional.
75104         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
75105         function that does not dereference symlinks.
75106         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
75107
75108         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
75109         dependency problems.
75110         (xreadlink): Accept new arg SIZE, for efficiency.
75111         All decls and uses changed.
75112         * lib/xreadlink.h: Include <stddef.h>, for size_t.
75113
75114         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
75115         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
75116
75117         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
75118         sysexits.h.
75119
75120 2004-06-01  Jim Meyering  <jim@meyering.net>
75121
75122         * m4/calloc.m4: New file.
75123
75124 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
75125
75126         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
75127         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
75128         Also, fix a typo in a diagnostic.
75129
75130 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
75131
75132         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
75133         or AC_FUNC_REALLOC.
75134
75135 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
75136
75137         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
75138         macros to be defined.
75139         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
75140         the allocator returns NULL because the requested size is zero.
75141
75142 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75143
75144         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
75145         var.  Add comment explaining why libc still defines it.  This
75146         merges the following patch from glibc:
75147         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
75148
75149 2004-05-20  Andreas Schwab  <schwab@suse.de>
75150
75151         * m4/free.m4: Replace free if it not known to work, not the other
75152         way round.
75153
75154 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
75155
75156         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
75157         present in glibc since revision 1.1 of this file.
75158         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
75159         obstack_alignment_mask, obstack_alloc, obstack_base,
75160         obstack_blank, obstack_blank_fast, obstack_chunk_size,
75161         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
75162         obstack_grow0, obstack_init, obstack_int_grow,
75163         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
75164         obstack_next_free, obstack_object_size, obstack_ptr_grow,
75165         obstack_ptr_grow_fast, obstack_room): Remove declarations of
75166         nonexistent functions.
75167
75168 2004-05-18  Karl Berry  <karl@gnu.org>
75169
75170         * config/srclist.txt: break link for vasnprintf.c.
75171
75172 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
75173
75174         Port obstack to the AS/400, where pointers are 16 bytes wide and
75175         you cannot cast an integer to a valid pointer.  This patch is
75176         currently waiting to be integrated into glibc; see
75177         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
75178
75179         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
75180         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
75181         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
75182         (struct obstack): temp member is now a union of a pointer and
75183         an integer, instead of an integer.  All integer uses changed.
75184         This does not affect the physical layout of struct obstack,
75185         except on hosts (like the AS/400) where the size or alignment of
75186         void * is greater than that of ptrdiff_t.
75187         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
75188         __STDC__)]: Store temporary in pointer member of union, not
75189         integer member.
75190         * lib/obstack.c: Include <stddef.h>, for offsetof.
75191         (struct fooalign): Remove; it doesn't need a name.
75192         (union fooround): Change double to long double, and add void *.
75193         (DEFAULT_ALIGNMENT): Use offsetof to compute.
75194         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
75195         not a macro.  Hence the values are always int; so remove all
75196         casts-to-int in uses.
75197
75198 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
75199
75200         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
75201         we can get this patch merged into glibc.
75202
75203 2004-05-17  Derek R. Price  <derek@ximbiot.com>
75204             Paul Eggert  <eggert@cs.ucla.edu>
75205
75206         * m4/argp: Depend on alloca.
75207
75208 2004-05-17  Derek R. Price  <derek@ximbiot.com>
75209             Paul Eggert  <eggert@cs.ucla.edu>
75210
75211         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
75212         freecoding.
75213
75214 2004-05-17  Bruno Haible  <bruno@clisp.org>
75215
75216         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
75217         precision that consists of a '.' followed by an empty digit string.
75218         Patch by Tor Lillqvist <tml@iki.fi>.
75219
75220 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
75221
75222         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
75223         for backward compatibility with older code.  We need our own
75224         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
75225         it under some other name, and our alloca.h will define it.
75226
75227 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
75228             Derek Price  <derek@ximbiot.com>
75229
75230         * lib/alloca.c: Include <alloca.h>, to get our interface.
75231         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
75232         include <alloca.h> first.  Use C89 prototype for alloca; this
75233         requires including <stddef.h> for size_t.  Use extern "C" if C++.
75234         Use #elif for simplicity, since we can assume C89 now.
75235         Don't try to source the system alloca.h since it will not be found
75236         and to prevent recursively including its replacement.
75237         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
75238         * lib/regex.c: Likewise.
75239
75240 2004-05-16  Derek Price  <derek@ximbiot.com>
75241             Paul Eggert  <eggert@cs.ucla.edu>
75242
75243         getline cleanup.  This changes the getndelim2 API: both order of
75244         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
75245         no delimiter).
75246
75247         * lib/getline.c: Don't include stddef.h or stdio.h, since our
75248         interface does that.
75249         (getline): Always use getdelim, so that we don't have two
75250         copies of this code.
75251         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
75252         if available.
75253         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
75254         (GETNDELIM2_MAXIMUM): New macro.
75255         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
75256         instead of the old practice of delim2==0.  All callers changed.
75257         Return -1 on overflow, instead of returning junk.
75258         Do not set *linesize unless allocation succeeds.
75259         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
75260         that we include sys/types.h.
75261         * lib/getnline.h: Likewise.
75262         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
75263         (getndelim2): Reorder arguments.
75264         * lib/getnline.c (getnline, getndelim):
75265         Don't discard the NMAX argument.
75266         (getnline): Invoke getndelim, to avoid code duplication.
75267         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
75268         of (size_t) -1 by callers of the getnline family.
75269
75270 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
75271
75272         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
75273         Check for gettimeofday.
75274         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
75275         Check for settimeofday, stime.
75276
75277 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
75278
75279         * lib/nanosleep.c (suspended): Change its type from int to
75280         sig_atomic_t volatile.
75281         (first_call): Make it private to rpl_nanosleep, and have it
75282         be zero initially as that's a bit faster.
75283         (my_usleep): Round up fractional times instead of truncating them,
75284         as this is the usual meaning for 'sleep'.
75285
75286         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
75287         doesn't work.
75288         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
75289         (ENOSYS): Define if not defined.
75290         (settime): Fall back on stime if it exists and settimeofday fails.
75291         But don't bother with fallbacks if a method fails with errno == EPERM.
75292
75293 2004-05-11  Jim Meyering  <jim@meyering.net>
75294
75295         Prior to this change, the save_cwd caller required read access to the
75296         current directory on most systems (ones with the fchdir function).
75297
75298         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
75299         fails, try write-only, and finally, resort to using xgetcwd.
75300
75301 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
75302
75303         * lib/obstack.c, obstack.h: Import changes from libc.
75304
75305 2004-04-28  Bruno Haible  <bruno@clisp.org>
75306
75307         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
75308         also implicitly appends .exe to executables.
75309         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
75310         accepts Windows pathnames.
75311         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
75312         Treat Cygwin like Windows, since it now accepts Windows pathnames.
75313         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
75314         Treat Cygwin like Windows, since it now accepts Windows pathnames.
75315         Reported by Derek Robert Price <derek@ximbiot.com>.
75316
75317 2004-04-21  Karl Berry  <karl@gnu.org>
75318
75319         * config/srclist.txt (localcharset.c): break sync.
75320
75321 2004-04-20  Paul Eggert  <eggert@twinsun.com>
75322
75323         * m4/host-os.m4: Add a copyright notice.
75324
75325 2004-04-20  Jim Meyering  <jim@meyering.net>
75326
75327         Change UTILS_ to gl_ in AC_DEFINE'd names.
75328         Change utils_- and jm_-prefixed variables, too.
75329         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
75330         UTILS_FUNC_MKDIR_TRAILING_SLASH.
75331         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
75332
75333         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
75334         Don't emit trailing blanks.
75335         Also rename jm_-prefixed variables to have gl_ prefix.
75336
75337         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
75338         Also rename jm_-prefixed variables to have gl_ prefix.
75339
75340         * m4/jm-macros.m4: Reflect the renamings.
75341         * m4/prereq.m4: Likewise.
75342
75343 2004-04-20  Jim Meyering  <jim@meyering.net>
75344
75345         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
75346         memory.
75347
75348 2004-04-20  Jim Meyering  <jim@meyering.net>
75349             Bruno Haible  <bruno@clisp.org>
75350
75351         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
75352         memory when realloc fails.
75353
75354 2004-04-19  Jim Meyering  <jim@meyering.net>
75355
75356         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
75357         now that readutmp.c may call `free (0)'.
75358
75359 2004-04-19  Bruno Haible  <bruno@clisp.org>
75360
75361         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
75362         * m4/inttypes_h.m4: Likewise.
75363         * m4/stdint_h.m4: Likewise.
75364         * m4/intmax_t.m4: Likewise.
75365         * m4/uintmax_t.m4: Likewise.
75366
75367 2004-04-18  Jim Meyering  <jim@meyering.net>
75368
75369         * m4/prereq.m4: Don't forbid jm_ prefix.
75370
75371         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
75372         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
75373         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
75374         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
75375         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
75376         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
75377         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
75378         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
75379         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
75380         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
75381         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
75382         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
75383         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
75384         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
75385         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
75386         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
75387         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
75388         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
75389         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
75390
75391 2004-04-18  Jim Meyering  <jim@meyering.net>
75392
75393         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
75394         failure, don't leak memory and do call END_UTMP_ENT.
75395
75396 2004-04-16  Jim Meyering  <jim@meyering.net>
75397
75398         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
75399         coreutils' stat program.
75400         (gl_PREREQ): Don't require jm_PREREQ_STAT.
75401
75402 2004-04-11  Paul Eggert  <eggert@twinsun.com>
75403
75404         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
75405         C89.
75406         (CHAR_BIT): Remove, since we assume C89.
75407         Include <stdint.h> if available, as per current Autoconf CVS advice.
75408
75409 2004-03-31  Jim Meyering  <jim@meyering.net>
75410
75411         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
75412         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
75413         * m4/xalloc.m4: Likewise.
75414
75415 2004-03-30  Paul Eggert  <eggert@twinsun.com>
75416
75417         Merge from coreutils.
75418
75419         * m4/inttostr.m4: New file.
75420         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
75421         Require AM_STDBOOL_H and gl_TIMESPEC instead.
75422         Require gl_CLOCK_TIME.
75423         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
75424
75425 2004-03-30  Paul Eggert  <eggert@twinsun.com>
75426
75427         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
75428         not bool, to be more consistent with Unix conventions.
75429         Suggested by Bruno Haible.
75430
75431         Merge from coreutils.
75432
75433         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
75434         * lib/umaxtostr.c: New files.
75435
75436         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
75437         the usual <time.h> dance.
75438         (get_date): Change signature to support fractional time stamps.
75439         All callers changed.
75440         * lib/getdate.y: Include "getdate.h" first, as we can now
75441         assume C89 and don't need to worry about 'const'.
75442         Similarly, include "unlocked-io.h" near start, not in middle.
75443         Include <limits.h>.
75444         (textint.value): Use long int rather than int.
75445         (textint.digits): Use size_t rather than int.
75446         (BILLION, LOG10_BILLION): New constants.
75447         (parser_control): New member rel_ns.  Members day_ordinal,
75448         time_zone, month, day, hour, minutes, rel_year, rel_month,
75449         rel_day, rel_hour, rel_minutes, rel_seconds
75450         are now long int, not int.  Member seconds is now struct timespec,
75451         not int.  New member timespec_seen.  Members dates_seen, days_seen,
75452         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
75453         not int.
75454         (%union.intval): Now long int, not int.
75455         New member timespec.
75456         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
75457         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
75458         (spec): Now is a timespec or an item list.
75459         (timespec, items): New nonterminals.
75460         (time, rel, relunit, number, get_date):
75461         Add support for fractional seconds.
75462         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
75463         (gmtime, localtime, mktime): Remove decls; not needed with C89.
75464         (to_hour): First arg is now long int, not int.
75465         (to_year): Returns long int, not int.
75466         Don't treat year -70 like 70.
75467         (tm_diff): Returns long int, not int.
75468         (lookup_word): Use bool instead of int when appropriate.
75469         (yylex): Use size_t for count, not int.
75470         Detect overflow when parsing large integer constants.
75471         Add support for fractions.
75472         (get_date): Make pointers 'const' if possible.
75473         Use more-portable code to detect integer overflow.
75474         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
75475         Don't use ctime; it's not reliable if the year has >4 digits.
75476
75477         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
75478         This is for compatibility with BSD.
75479
75480         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
75481         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
75482         From coreutils' system.h.
75483
75484         * lib/userspec.c: Don't include "posixver.h".
75485         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
75486         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
75487         compatible extension.  Simplify code by removing a boolean int
75488         that was always nonzero if a string was nonnull.
75489
75490 2004-03-30  Jim Meyering  <jim@meyering.net>
75491
75492         Merge from coreutils.
75493
75494         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
75495         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
75496         on some systems one must include <grp.h> before it.
75497         Reported by Christian Krackowizer.
75498
75499 2004-03-30  Jim Meyering  <jim@meyering.net>
75500
75501         Merge from coreutils.
75502
75503         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
75504
75505         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
75506         an empty input stream.
75507
75508         * lib/readtokens.c: Include <stdbool.h>.
75509         (readtoken): Use `size_t' rather than int/long.
75510         All callers adjusted.
75511         Use `bool' rather than `int' where appropriate.
75512         Use memset rather than an explicit loop.
75513         Use x2nrealloc rather than xrealloc.
75514         Allow the use of `\0' as a delimiter.
75515         (readtokens): Likewise.
75516         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
75517
75518 2004-03-30  Jim Meyering  <jim@meyering.net>
75519
75520         * m4/realloc.m4: Remove file, since now it does no more than
75521         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
75522         the `configure.ac' section of module/realloc.
75523         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
75524
75525 2004-03-30  Bruno Haible  <bruno@clisp.org>
75526
75527         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
75528         nonnull.
75529
75530 2004-03-29  Paul Eggert  <eggert@twinsun.com>
75531
75532         Merge changes to getloadavg.c from coreutils and Emacs.
75533
75534         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
75535         Define to an expression, not to the empty string.
75536         Include cloexec.h and xalloc.h.
75537         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
75538         Use set_cloexec_flag rather than rolling our own.
75539         * lib/cloexec.c, lib/cloexec.h: New files.
75540
75541 2004-03-29  Paul Eggert  <eggert@twinsun.com>
75542
75543         * m4/cloexec.m4: New file.
75544
75545 2004-03-18  Paul Eggert  <eggert@twinsun.com>
75546
75547         * lib/getopt.h: Sync with libc CVS.
75548
75549 2004-03-18  Paul Eggert  <eggert@twinsun.com>
75550             Bruno Haible  <bruno@clisp.org>
75551
75552         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
75553         mbswidth.
75554
75555 2004-03-18  Paul Eggert  <eggert@twinsun.com>
75556             Bruno Haible  <bruno@clisp.org>
75557
75558         * lib/mbswidth.h: Include <wchar.h> only if
75559         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
75560         <wchar.h>.
75561         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
75562
75563 2004-03-09  Paul Eggert  <eggert@twinsun.com>
75564
75565         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
75566         Sync with libc CVS.
75567         * lib/getopt_int.h: New file, also synced from libc.
75568
75569 2004-03-09  Paul Eggert  <eggert@twinsun.com>
75570
75571         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
75572         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
75573         Bring back getopt.c, getopt.h, getopt1.c.
75574
75575 2004-03-07  Paul Eggert  <eggert@twinsun.com>
75576
75577         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
75578         All uses changed.  Check for sa_sigaction member; this fixes
75579         a bug first reported by Jason Andrade in
75580         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
75581
75582 2004-03-07  Paul Eggert  <eggert@twinsun.com>
75583
75584         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
75585         '#if' expressions.  Unlike the code it replaces, it does not
75586         depend on (defined _SC_PAGESIZE).  However, it does depend on
75587         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
75588         first reported by Jason Andrade in
75589         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
75590
75591 2004-02-25  Simon Josefsson  <jas@extundo.com>
75592
75593         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
75594
75595 2004-02-25  Simon Josefsson  <jas@extundo.com>
75596
75597         * lib/strdup.h: New file.
75598         * lib/strdup.c: Include it.
75599         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
75600         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
75601
75602 2004-02-23  Karl Berry  <karl@gnu.org>
75603
75604         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
75605         (from fencepost.gnu.org:/gd/gnuorg).
75606
75607 2004-02-23  Karl Berry  <karl@gnu.org>
75608
75609         * config/srclistvars.sh (GNUORG) [karl]: redefine.
75610         * config/srclist.txt: add maintain/standards documents.
75611
75612 2004-02-18  Bruno Haible  <bruno@clisp.org>
75613
75614         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
75615         Reported by Derek Robert Price <derek@ximbiot.com>.
75616
75617 2004-02-16  Karl Berry  <karl@gnu.org>
75618
75619         * config/mkinstalldirs, install-sh: update from automake.
75620
75621 2004-02-06  Karl Berry  <karl@gnu.org>
75622
75623         * m4/po.m4: update from gettext 0.14.1.
75624
75625 2004-02-06  Karl Berry  <karl@gnu.org>
75626
75627         * lib/config.charset: update from gettext 0.14.1.
75628
75629 2004-02-05  Paul Eggert  <eggert@twinsun.com>
75630
75631         Add comments and code, prompted by suggestions from Bruno Haible
75632         for sh-quote.
75633         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
75634         describing the enum quoting_style values.
75635         * lib/quotearg.c (quotearg_alloc): New function.
75636         (quotearg_buffer_restyled): Treat lone { and } as special.
75637         Treat = as special.  Work around bug with older shells
75638         that "see" a '\' that is really the 2nd byte of a multibyte char.
75639         Quote empty string with shell_quoting_style.
75640
75641 2004-02-03  Bruno Haible  <bruno@clisp.org>
75642
75643         * m4/pipe.m4: New file, from GNU gettext.
75644
75645 2004-02-03  Bruno Haible  <bruno@clisp.org>
75646
75647         * lib/pipe.h: New file, from GNU gettext.
75648         * lib/pipe.c: New file, from GNU gettext.
75649
75650 2004-01-27  Bruno Haible  <bruno@clisp.org>
75651
75652         * m4/execute.m4: New file, from GNU gettext.
75653
75654 2004-01-27  Bruno Haible  <bruno@clisp.org>
75655
75656         * lib/execute.h: New file, from GNU gettext.
75657         * lib/execute.c: New file, from GNU gettext.
75658         * lib/w32spawn.h: New file, from GNU gettext.
75659
75660 2004-01-24  Paul Eggert  <eggert@twinsun.com>
75661
75662         Merge from diffutils.
75663
75664         * lib/file-type.c (file_type): Add typed memory objects.
75665         * lib/file-type.h (S_TYPEISTMO): New macro.
75666
75667         * lib/c-stack.h (c_stack_action): Remove argv argument.
75668         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
75669         (die): Don't calculate message unless segv_action returns.
75670         (get_stack_location, min_address_from_argv, max_address_from_argv,
75671         volatile stack_base, volatile_stack_size): Remove.
75672         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
75673         that every segmentation violation is a stack overflow.  (Ouch!)
75674         See Debian bug 136249 (still outstanding) for more info about why
75675         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
75676
75677 2004-01-24  Paul Eggert  <eggert@twinsun.com>
75678
75679         Exit-status fix from coreutils.
75680
75681         Use exit_failure consistently in place of EXIT_FAILURE,
75682         so that program exit statuses are consistent on failure.
75683
75684         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
75685         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
75686         * lib/argmatch.h: Comment fix to match the above.
75687         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
75688         Now a macro referring to exit_failure, instead of a separate
75689         variable.  Include "exitfail.h" to get it.
75690         * lib/xstrtol.h: Include "exitfail.h".
75691         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
75692
75693         * lib/long-options.c (parse_long_options): Use prototype
75694         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
75695         for clarity.
75696
75697 2004-01-21  Jim Meyering  <jim@meyering.net>
75698
75699         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
75700         so as not to conflict with a different-sized __mktime_internal
75701         function in GNU libc.
75702         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
75703         Problem building statically-linked `ls' reported by Michael Brunnbauer.
75704
75705 2004-01-20  Karl Berry  <karl@gnu.org>
75706
75707         * config/config.guess: update from config.
75708
75709         * config/srclistvars.sh: GNUWWWLICENSES for karl.
75710
75711 2004-01-20  Bruno Haible  <bruno@clisp.org>
75712
75713         Safer stack allocation.
75714         * lib/setenv.c: Include allocsa.h.
75715         (alloca): Remove fallback definition.
75716         (freea): Remove macro.
75717         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
75718         instead of freea.
75719
75720 2004-01-20  Bruno Haible  <bruno@clisp.org>
75721
75722         * m4/eealloc.m4: New file, from GNU gettext.
75723
75724 2004-01-20  Bruno Haible  <bruno@clisp.org>
75725
75726         * m4/allocsa.m4: New file, from GNU gettext.
75727
75728 2004-01-20  Bruno Haible  <bruno@clisp.org>
75729
75730         * lib/xallocsa.h: New file, from GNU gettext.
75731         * lib/xallocsa.c: New file, from GNU gettext.
75732
75733 2004-01-20  Bruno Haible  <bruno@clisp.org>
75734
75735         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
75736
75737 2004-01-20  Bruno Haible  <bruno@clisp.org>
75738
75739         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
75740         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
75741         specially.
75742
75743 2004-01-20  Bruno Haible  <bruno@clisp.org>
75744
75745         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
75746         patch.
75747
75748 2004-01-20  Bruno Haible  <bruno@clisp.org>
75749
75750         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
75751
75752 2004-01-20  Bruno Haible  <bruno@clisp.org>
75753
75754         * lib/eealloc.h: New file.
75755
75756 2004-01-20  Bruno Haible  <bruno@clisp.org>
75757
75758         * lib/binary-io.h: Avoid warnings on Cygwin.
75759
75760 2004-01-20  Bruno Haible  <bruno@clisp.org>
75761
75762         * lib/allocsa.h: New file, from GNU gettext.
75763         * lib/allocsa.c: New file, from GNU gettext.
75764
75765 2004-01-18  Karl Berry  <karl@gnu.org>
75766
75767         * doc/gpl.texi, doc/lgpl.texi: new files.
75768
75769 2004-01-18  Karl Berry  <karl@gnu.org>
75770
75771         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
75772         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
75773
75774 2004-01-15  Paul Eggert  <eggert@twinsun.com>
75775
75776         Merge from coreutils.
75777
75778         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
75779         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
75780         (gl_DEFAULT_POSIX2_VERSION): Move
75781         the documentation from 'configure' into 'config.hin',
75782         so that 'configure --help' isn't burdened by it and
75783         we don't have to worry about its formatting there.
75784         Reword the documentation so that it's more succinct
75785         and can be run together into a single paragraph.
75786         * m4/same.m4 (gl_SAME): Check for pathconf.
75787
75788 2004-01-15  Paul Eggert  <eggert@twinsun.com>
75789
75790         Merge from coreutils.
75791
75792         * lib/posixver.c: Include posixver.h.
75793
75794         * lib/same.c: Include <stdbool.h>, <limits.h>.
75795         (_POSIX_NAME_MAX): Define if not defined.
75796         (MIN): New macro.
75797         (same_name): If file names are silently truncated, report
75798         that the file names are the same if they are the same after
75799         the silent truncation.
75800
75801         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
75802         conversion function.
75803         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
75804         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
75805         longer needed.
75806
75807 2004-01-15  Jim Meyering  <jim@meyering.net>
75808
75809         Merge from coreutils.
75810
75811         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
75812         if no library is required.
75813         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
75814         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
75815         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
75816         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
75817         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
75818         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
75819         value, $ac_cv_search_crypt, if it's "none required".
75820         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
75821         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
75822         not gl_FUNC_GETLOADAVG.
75823         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
75824         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
75825
75826 2004-01-15  Jim Meyering  <jim@meyering.net>
75827
75828         Merge from coreutils.
75829
75830         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
75831         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
75832         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
75833
75834         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
75835         optional configure-time default.
75836
75837         * lib/version-etc.c (version_etc_copyright): Update copyright date.
75838
75839         * lib/xreadlink.c (xreadlink): Correct outdated comment.
75840
75841 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
75842
75843         Merge from coreutils.
75844
75845         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
75846         value, $ac_cv_search_nanosleep, if it's "none required".
75847
75848 2004-01-14  Paul Eggert  <eggert@twinsun.com>
75849
75850         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
75851         with like-named macro in fnmatch.c.
75852         (EXT): Use an internal constant instead.
75853
75854         Merge fnmatch patches from glibc.
75855         * lib/fnmatch.c (mbsinit): Remove define.
75856         Add libc_hidden_ver (__fnmatch, fnmatch).
75857         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
75858         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
75859
75860 2004-01-14  Karl Berry  <karl@gnu.org>
75861
75862         * config/install-sh: update from automake.
75863
75864 2004-01-13  Karl Berry  <karl@gnu.org>
75865
75866         * config/install-sh: update from automake.
75867
75868 2004-01-09  Karl Berry  <karl@gnu.org>
75869
75870         * config/install-sh: update from automake.
75871
75872 2004-01-05  Karl Berry  <karl@gnu.org>
75873
75874         * config/config.{sub,guess}: update from config.
75875
75876 2003-12-31  Karl Berry  <karl@gnu.org>
75877
75878         * config/depcomp: update from automake.
75879
75880 2003-12-14  Karl Berry  <karl@gnu.org>
75881
75882         * lib/config.charset: update from gettext-runtime.
75883
75884 2003-12-03  Paul Eggert  <eggert@twinsun.com>
75885
75886         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
75887         Bug reported by Alfred M. Szmidt.
75888
75889 2003-12-03  Bruno Haible  <bruno@clisp.org>
75890
75891         * m4/gettext.m4: Upgrade from gettext-0.13.
75892         * m4/po.m4: Upgrade from gettext-0.13.
75893         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
75894         * m4/intmax.m4: New file, from gettext-0.13.
75895         * m4/printf-posix.m4: New file, from gettext-0.13.
75896
75897 2003-11-29  Karl Berry  <karl@gnu.org>
75898
75899         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
75900
75901 2003-11-25  Paul Eggert  <eggert@twinsun.com>
75902             Bruno Haible  <bruno@clisp.org>
75903
75904         * lib/printf-parse.h: Don't include sys/types.h.
75905         (ARG_NONE): New macro.
75906         (char_directive): Change type of *arg_index fields to size_t.
75907         * lib/printf-parse.c: Don't include sys/types.h.
75908         (SSIZE_MAX): Remove macro.
75909         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
75910         Remove unnecessary overflow check.
75911         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
75912         fields.
75913
75914 2003-11-25  Bruno Haible  <bruno@clisp.org>
75915
75916         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
75917
75918 2003-11-25  Bruno Haible  <bruno@clisp.org>
75919
75920         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
75921         gt_TYPE_SSIZE_T.
75922
75923 2003-11-24  Paul Eggert  <eggert@twinsun.com>
75924
75925         * modules/alloca: Remove dependency on xalloc.
75926
75927 2003-11-24  Paul Eggert  <eggert@twinsun.com>
75928
75929         * lib/alloca.c: Remove dependency on xalloc module.
75930         (xalloc_die): Remove.
75931         (memory_full) [!defined emacs]: New macro.
75932         [!defined emacs]: Don't include xalloc.h.
75933         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
75934         address arithmetic overflows.  Change datatypes a bit to avoid
75935         unnecessary casts.
75936
75937 2003-11-22  Jim Meyering  <jim@meyering.net>
75938
75939         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
75940         s/size/size_t/.
75941
75942 2003-11-21  Karl Berry  <karl@gnu.org>
75943
75944         * config/config.{sub,guess}: update from config.
75945
75946 2003-11-18  Karl Berry  <karl@gnu.org>
75947
75948         * config/config.{sub,guess}: update from config.
75949
75950         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
75951
75952 2003-11-17  Paul Eggert  <eggert@twinsun.com>
75953
75954         * README: Mention that S+T cannot overflow if S is the size of
75955         an existing object and T is sufficiently small.
75956
75957 2003-11-17  Jim Meyering  <jim@meyering.net>
75958
75959         On systems without utime and without a utimes function capable of
75960         dealing with a NULL struct utimbuf* argument, this utime replacement
75961         could -- in unusual circumstances -- leak a file descriptor.
75962         * lib/utime.c: Include <unistd.h> and <errno.h>.
75963         (utime_null): Be sure to close `fd' and to preserve errno.
75964         Reported by Geoff Collyer via Arnold Robbins.
75965
75966 2003-11-17  Bruno Haible  <bruno@clisp.org>
75967
75968         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
75969         (Depends-on): Add xsize.
75970
75971 2003-11-17  Bruno Haible  <bruno@clisp.org>
75972
75973         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
75974
75975 2003-11-17  Bruno Haible  <bruno@clisp.org>
75976
75977         * lib/vasnprintf.c (alloca): Remove fallback definition.
75978         (freea): Remove definition.
75979         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
75980         Reported by Paul Eggert.
75981
75982 2003-11-16  Paul Eggert  <eggert@twinsun.com>
75983             Bruno Haible  <bruno@clisp.org>
75984
75985         Protect against address arithmetic overflow.
75986         * lib/printf-args.h: Include stddef.h.
75987         (arguments): Change type of field 'count' to size_t.
75988         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
75989         'unsigned int' where appropriate.
75990         * lib/printf-parse.h: Include sys/types.h.
75991         (char_directive): Change type of *arg_index fields to ssize_t.
75992         (char_directives): Change type of fields 'count', max_*_length to
75993         size_t.
75994         * lib/printf-parse.c: Include sys/types.h and xsize.h.
75995         (SSIZE_MAX): Define fallback value.
75996         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
75997         instead of 'int' where appropriate. Check a_allocated, d_allocated
75998         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
75999         * lib/vasnprintf.c: Include xsize.h.
76000         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
76001         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
76002         overflow. Avoid wraparound when converting a width or precision from
76003         decimal to binary.
76004
76005 2003-11-16  Bruno Haible  <bruno@clisp.org>
76006
76007         Update from GNU gettext.
76008         * lib/printf-parse.c: Generalize to it can be compiled for wide
76009         strings.
76010         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
76011         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
76012         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
76013         SNPRINTF): New macros.
76014         Don't include <alloca.h> if the file is used inside libintl.
76015         (local_wcslen): New function, for Solaris 2.5.1.
76016         (VASNPRINTF): Use it instead of wcslen.
76017
76018 2003-11-16  Bruno Haible  <bruno@clisp.org>
76019
76020         * lib/xsize.h (xmax): New function.
76021         (xsum, xsum3, xsum4): Declare as "pure" functions.
76022
76023 2003-11-12  Paul Eggert  <eggert@twinsun.com>
76024
76025         * modules/xalloc (Files): Undo latest change, since xalloc.h
76026         no longer needs SIZE_MAX or PTRDIFF_MAX.
76027
76028 2003-11-12  Paul Eggert  <eggert@twinsun.com>
76029
76030         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
76031         gl_PTRDIFF_MAX.
76032
76033 2003-11-12  Paul Eggert  <eggert@twinsun.com>
76034
76035         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
76036         "return", to pacify some unknown compiler.  Problem reported
76037         by Joerg Schilling.
76038
76039 2003-11-12  Paul Eggert  <eggert@twinsun.com>
76040
76041         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
76042         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
76043         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
76044         heuristic is just as accurate as far as we know, and it removes a
76045         dependency on size_max.m4 and ptrdiff_max.m4.
76046
76047 2003-11-11  Bruno Haible  <bruno@clisp.org>
76048
76049         * modules/xsize (Files): Add m4/size_max.m4.
76050         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
76051
76052 2003-11-11  Bruno Haible  <bruno@clisp.org>
76053
76054         * m4/size_max.m4: New file.
76055         * m4/ptrdiff_max.m4: New file.
76056         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
76057         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
76058         (gl_XALLOC): Invoke it.
76059
76060 2003-11-11  Bruno Haible  <bruno@clisp.org>
76061
76062         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
76063         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
76064         defined.
76065
76066 2003-11-10  Paul Eggert  <eggert@twinsun.com>
76067
76068         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
76069         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
76070         rejected some allocations of exactly SIZE_MAX - 2 bytes.
76071         From Bruno Haible.
76072         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
76073         not (size_t) -1, since it's defined here.
76074
76075 2003-11-09  Karl Berry  <karl@gnu.org>
76076
76077         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
76078
76079 2003-11-06  Paul Eggert  <eggert@twinsun.com>
76080
76081         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
76082         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
76083         Reject sizes of exactly SIZE_MAX bytes.
76084         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
76085         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
76086
76087 2003-11-05  Bruno Haible  <bruno@clisp.org>
76088
76089         * lib/xsize.h: Include limits.h, to avoid a possible collision with
76090         SIZE_MAX defined in <limits.h> on Solaris.
76091
76092 2003-11-04  Jim Meyering  <jim@meyering.net>
76093
76094         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
76095         variable names, rather than @VAR@.
76096         * modules/poll: Likewise.
76097
76098 2003-11-04  Bruno Haible  <bruno@clisp.org>
76099
76100         * modules/xsize: New file.
76101         * modules/linebreak: Depend on xsize.
76102         * MODULES.html.sh (func_all_modules): Add xsize.
76103
76104 2003-11-04  Bruno Haible  <bruno@clisp.org>
76105
76106         * m4/xsize.m4: New file.
76107
76108 2003-11-04  Bruno Haible  <bruno@clisp.org>
76109
76110         * lib/xsize.h: New file.
76111         * lib/linebreak.c: Include xsize.h.
76112         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
76113         argument for overflow.
76114         Suggested by Paul Eggert.
76115
76116 2003-11-03  Karl Berry  <karl@gnu.org>
76117
76118         * config/config.{guess,sub}: update from config.
76119
76120 2003-11-03  Jim Meyering  <jim@meyering.net>
76121
76122         * modules/userspec (lib_SOURCES): Add userspec.h.
76123         (Include): Add "userspec.h".
76124         Improve description.
76125
76126 2003-11-03  Jim Meyering  <jim@meyering.net>
76127
76128         * lib/userspec.c: Include "userspec.h".
76129         * lib/userspec.h: New file.
76130
76131 2003-11-03  Bruno Haible  <bruno@clisp.org>
76132
76133         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
76134
76135 2003-11-03  Bruno Haible  <bruno@clisp.org>
76136
76137         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
76138         available, to avoid (extremely rare) race condition.
76139         Suggested by Paul Eggert.
76140
76141 2003-11-02  Karl Berry  <karl@gnu.org>
76142
76143         * config/srclist.txt (vasprintf.c): sync broken, sigh.
76144
76145 2003-10-31  Paul Eggert  <eggert@twinsun.com>
76146
76147         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
76148         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
76149         (read_filesystem_list): Set and use me_type_malloced.
76150         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
76151         whatever the type happens to be), for brevity and consistency.
76152         Check for size calculation overflow on Alphas running OSF/1.
76153
76154 2003-10-31  Jim Meyering  <jim@meyering.net>
76155
76156         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
76157
76158         * lib/linebuffer.c: Include <string.h> for declaration of memset.
76159
76160 2003-10-30  Paul Eggert  <eggert@twinsun.com>
76161             Bruno Haible  <bruno@clisp.org>
76162
76163         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
76164         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
76165
76166 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
76167
76168         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
76169         netbsd*-gnu*.  Suggested by Robert Millan.
76170
76171 2003-10-29  Paul Eggert  <eggert@twinsun.com>
76172
76173         * modules/group-member: Depend on stdbool.
76174
76175 2003-10-29  Paul Eggert  <eggert@twinsun.com>
76176
76177         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
76178
76179 2003-10-29  Paul Eggert  <eggert@twinsun.com>
76180
76181         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
76182         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
76183         after the 'gnu' in these cases.  This fixes some bugs in the
76184         previous change, and is based on suggestions by Robert Millan.
76185
76186 2003-10-29  Paul Eggert  <eggert@twinsun.com>
76187
76188         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
76189         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
76190         no longer needed.
76191         * lib/quotearg.c (quotearg_n_options): Use it.
76192         * lib/group-member.c: Include <stdbool.h>.
76193         (free_group_info): Arg is now const *; don't free arg.
76194         (get_group_info): Now returns bool and accepts struct group_info *,
76195         rather than returning a malloc'ed struct group_info *.
76196         All uses changed.  Check for overflow in internal size calculation.
76197
76198         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
76199         rather than xmalloc/xrealloc.
76200         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
76201         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
76202         conformance bug: the old code used a pointer after freeing the
76203         storage that it addressed.
76204         * lib/hash.c (hash_initialize): Simplify the code by using
76205         xalloc_oversized rather than doing it by hand.
76206         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
76207         the buffer preserved.  Use free and xmalloc instead.
76208         * lib/quotearg.c (quotearg_n_options): Likewise.
76209         Use a simpler test for size overflow.  Don't use xalloc_oversized
76210         because unsigned int might be wider than size_t (!); this suggests
76211         that we should switch from unsigned int to size_t for slot numbers.
76212
76213 2003-10-28  Paul Eggert  <eggert@twinsun.com>
76214
76215         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
76216         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
76217         NetBSD kernels.  Requested by Richard Stallman.
76218
76219 2003-10-27  Paul Eggert  <eggert@twinsun.com>
76220
76221         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
76222         to allocate the returned structure.  Do not allocate a subarray,
76223         as x2nrealloc will do that.
76224         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
76225         instead of xnrealloc.
76226         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
76227
76228 2003-10-27  Bruno Haible  <bruno@clisp.org>
76229
76230         * lib/stdbool_.h: Better support for BeOS.
76231
76232 2003-10-26  Paul Eggert  <eggert@twinsun.com>
76233
76234         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
76235         now uses inline.
76236
76237 2003-10-26  Paul Eggert  <eggert@twinsun.com>
76238
76239         * lib/xalloc.h (xalloc_oversized): New static inline function, for
76240         callers that want to do their own size-overflow checking.  Include
76241         <stdbool.h>, since xalloc_oversized returns bool.
76242         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
76243         to use xalloc_oversized.
76244
76245         Add two functions x2realloc, x2nrealloc, for programs that grow
76246         arrays dynamically by doubling their sizes.
76247         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
76248         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
76249         New functions.
76250
76251         Port to C99 semantics for 'inline' of external functions.
76252         Bug reported by Bruno Haible.
76253         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
76254         with the old contents of xnmalloc.
76255         (xnmalloc, xmalloc): Use it.
76256         (xnrealloc_inline): New static inline function,
76257         with the old contents of xnrealloc.
76258         (xnrealloc, xrealloc): Use it.
76259
76260         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
76261         that.
76262
76263 2003-10-26  Karl Berry  <karl@gnu.org>
76264
76265         * config/srclist.txt (COPYING.DOC): no longer available from
76266         /gd/gnuorg; don't know where the ultimate source is.
76267
76268 2003-10-25  Paul Eggert  <eggert@twinsun.com>
76269
76270         Fix several address-calculation bugs in the hash modules,
76271         plus some minor code cleanup.
76272
76273         * lib/hash.h: Include <stdbool.h>, for bool.
76274         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
76275         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
76276         hash_get_n_entries, hash_get_max_bucket_length,
76277         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
76278         hash_rehash): Use size_t rather than unsigned.
76279         * lib/hash.c (struct hash_table, hash_get_n_buckets,
76280         hash_get_n_buckets_used, hash_get_n_entries,
76281         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
76282         hash_get_entries, hash_do_for_each, hash_string, is_prime,
76283         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
76284         Likewise.
76285         (SIZE_MAX): Define if not defined.
76286         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
76287         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
76288         hash_print):
76289         Use const * when possible.
76290         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
76291         (check_tuning): Fix bug: if tuning parameters were very close to
76292         0 or 1, rounding errors could have caused subscript violations.
76293         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
76294         (hash_initialize): Add 'fail:' label
76295         to free table and return NULL, and use it to simplify code.
76296         Use calloc rather than clearing the storage ourself.
76297         (hash_initialize, hash_rehash): Check for arithmetic overflow in
76298         buffer size calculations.
76299         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
76300         Include <stddef.h>, for size_t.
76301         * lib/hash-pjw.c (hash_pjw): Likewise.
76302         Switch to method described by Bruno Haible.
76303         Include <limits.h>, for CHAR_BIT.
76304         (SIZE_BITS): New macro.
76305
76306 2003-10-23  Paul Eggert  <eggert@twinsun.com>
76307
76308         * m4/getline.m4 (AM_FUNC_GETLINE):
76309         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
76310         hosts.  Problem reported by Derek Robert Price in
76311         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
76312         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
76313         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
76314
76315 2003-10-21  Paul Eggert  <eggert@twinsun.com>
76316
76317         * lib/getndelim2.c (getndelim2): When size calculation overflows,
76318         ceiling the allocation at NMAX bytes rather than silently
76319         discarding input bytes before NMAX is reached.  This makes
76320         a difference only if NMAX exceeds SIZE_MAX / 2.
76321
76322         * lib/obstack.c: Merge from glibc.
76323         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
76324         Add libc_hidden_def (_obstack_newchunk).
76325         (_obstack_free) [! defined _LIBC]: Remove.
76326         [defined _LIBC]: Make a strong alias from obstack_free, rather than
76327         a clone of the function body.
76328         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
76329         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
76330
76331         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
76332         glibc.
76333         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
76334         arg to memcpy.
76335
76336         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
76337         (obstack_ptr_grow_fast, obstack_int_grow_fast):
76338         Don't use lvalue casts, as GCC plans to remove support for them
76339         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
76340         was also present in the non-GCC version, indicating that this
76341         code had always been buggy and had never been widely used.
76342         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
76343         Use the fast variant of each macro, rather than copying the
76344         definiens of the fast variant; that way, we'll be more likely to
76345         catch future bugs in the fast variants.
76346
76347 2003-10-20  Bruno Haible  <bruno@clisp.org>
76348
76349         * modules/wait-process: New file.
76350         * MODULES.html.sh (func_all_modules): Add wait-process.
76351
76352 2003-10-20  Bruno Haible  <bruno@clisp.org>
76353
76354         * m4/wait-process.m4: New file.
76355
76356 2003-10-20  Bruno Haible  <bruno@clisp.org>
76357
76358         * lib/wait-process.h: New file, from GNU gettext.
76359         * lib/wait-process.c: New file, from GNU gettext.
76360
76361 2003-10-19  Jim Meyering  <jim@meyering.net>
76362
76363         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
76364         HPUX 10.20.
76365
76366 2003-10-18  Karl Berry  <karl@gnu.org>
76367
76368         * config/config.guess: update from config.
76369
76370 2003-10-16  Paul Eggert  <eggert@twinsun.com>
76371
76372         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
76373         (getgroups): First arg is int, not size_t.
76374         Don't let 'free' mangle errno.
76375
76376 2003-10-16  Paul Eggert  <eggert@twinsun.com>
76377
76378         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
76379
76380 2003-10-16  Karl Berry  <karl@gnu.org>
76381
76382         * config/config.{guess,sub}: update from config.
76383
76384 2003-10-16  Jim Meyering  <jim@meyering.net>
76385
76386         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
76387         memcpy.
76388
76389 2003-10-15  Paul Eggert  <eggert@twinsun.com>
76390
76391         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
76392         (SIZE_MAX): Remove.
76393         (new_exclude, add_exclude_file): Initial size no longer needs to
76394         be a power of 2.
76395         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
76396         our own address arithmetic overflow checking.
76397
76398         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
76399         (fnmatch): Do not alloca more than 2000 wide characters;
76400         instead, use malloc for large buffers.
76401         Check for address arithmetic overflow, and return -1
76402         with errno set to ENOMEM in that case.
76403         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
76404         (NEW_PATTERN): Do not alloca more than 8000 bytes;
76405         instead, return -1.  Check for address arithmetic overflow.
76406
76407 2003-10-14  Paul Eggert  <eggert@twinsun.com>
76408
76409         Handle invalid suffixes and overflow independently, so that
76410         callers can treat them independently as needed.  Fix some bugs in
76411         suffix handling, e.g., "100k@" was not diagnosed as an invalid
76412         suffix for a human-readable blocksize.  The major caller-visible
76413         change is the addition of a new
76414         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
76415         that both overflow and suffix chars were found.
76416
76417         * lib/human.c (humblock): Don't check separately for invalid suffix
76418         char; that is xstrtoumax's job (now that its bug is fixed).
76419         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
76420         INTMAX_MAX]: New macros.
76421         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
76422         TYPE_MAXIMUM): New macros.
76423         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
76424         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
76425         if overflow occurs, as it's what __strtol does and it's more useful
76426         in practice.
76427         (__xstrtol): If __strtol reports some error other than ERANGE,
76428         reflect it to the caller as LONGINT_INVALID.  If it reports
76429         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
76430         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
76431         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
76432         value.
76433         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
76434         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
76435         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
76436         [defined UINTMAX_MAX]: New macros.
76437
76438 2003-10-14  Bruno Haible  <bruno@clisp.org>
76439
76440         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
76441
76442 2003-10-14  Bruno Haible  <bruno@clisp.org>
76443
76444         * m4/sig_atomic_t: New file, from GNU gettext.
76445         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
76446
76447 2003-10-14  Bruno Haible  <bruno@clisp.org>
76448
76449         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
76450         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
76451         Also use volatile where needed.
76452
76453 2003-10-12  Paul Eggert  <eggert@twinsun.com>
76454
76455         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
76456         Change maintainer from Bruno Haible to 'all'.
76457
76458 2003-10-12  Paul Eggert  <eggert@twinsun.com>
76459
76460         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
76461
76462 2003-10-12  Paul Eggert  <eggert@twinsun.com>
76463
76464         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
76465         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
76466         and define in terms of the other primitives.
76467         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
76468         (SIZE_MAX): Define if not already defined.
76469         (array_size_overflow): New function.
76470         (xalloc_die): Abort instead of exiting if 'error' returns.
76471         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
76472         (xmalloc, xrealloc): Use them.
76473         (xcalloc): Check for address arithmetic overflow.
76474         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
76475         a bit faster than strcpy.
76476
76477 2003-10-10  Simon Josefsson  <jas@extundo.com>
76478
76479         * modules/argp (Depends-on): Add restrict and strcase.
76480
76481 2003-10-10  Simon Josefsson  <jas@extundo.com>
76482
76483         * m4/argp.m4: Add AC_C_INLINE.
76484
76485 2003-10-08  Paul Eggert  <eggert@twinsun.com>
76486
76487         Merge getpass from libc, plus a few fixes.
76488
76489         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
76490         Include <stdbool.h>.
76491         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
76492         __fsetlocking to empty.
76493         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
76494         do include <bits/libc-lock.h>.
76495         Do not include <fcntl.h>; not needed.
76496         [_LIBC]: Include <wchar.h>.
76497         (NOTCANCEL_MODE): New macro.
76498         (flockfile, funlockfile) [_LIBC]: New macros.
76499         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
76500         [!_LIBC]: New macros.
76501         (call_fclose): New function.
76502         (getpass): Use it.  Save tty stream separately; this simplifies the
76503         code and makes it more reliable if stdin happens to equal stdout.
76504         Invoke __fsetlocking on tty.
76505         Handle thread cancellation if needed.
76506         Namespace cleanup (use __tcgetattr, __getline).
76507         Use bool for Booleans.
76508         [USE_IN_LIBIO]: Handle wide streams.
76509         [!_LIBC]: Unconditionally do the fseek, since we don't know what
76510         stream might go where.
76511
76512         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
76513         doesn't have to include <stdio.h> before us.
76514         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
76515         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
76516         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
76517         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
76518         if not declared, so that we can use getpass.c code from libc without
76519         rewriting it.
76520         (flockfile, ftrylockfile, funlockfile): New macros.
76521
76522 2003-10-08  Paul Eggert  <eggert@twinsun.com>
76523
76524         * modules/getpass: Depend on stdbool.
76525
76526 2003-10-08  Paul Eggert  <eggert@twinsun.com>
76527
76528         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
76529
76530 2003-10-07  Karl Berry  <karl@gnu.org>
76531
76532         * config/config.{guess,sub}: update from config.
76533
76534 2003-10-06  Jim Meyering  <jim@meyering.net>
76535             Bruno Haible  <bruno@clisp.org>
76536
76537         This lets translators provide better translations for the
76538         "Written by ..." part of --version output.
76539         * lib/version-etc.h: Include stdarg.h.
76540         (version_etc_copyright): Declare as readonly.
76541         (version_etc): Make this function variadic with a NULL-terminated list
76542         of author name strings.
76543         (version_etc_va): New declaration.
76544         * lib/version-etc.c: Include stdarg.h, stdlib.h.
76545         (version_etc_copyright): Declare as readonly.
76546         (version_etc_va): New function. Provide a different translatable string
76547         for each possible number of authors < 10. Abbreviate when there are 10
76548         authors or more.
76549         (version_etc): Make this function variadic. Call version_etc_va.
76550         Suggestion from Gary V. Vaughan.
76551
76552         * lib/long-options.h (parse_long_options): Change prototype: the
76553         authors string is moved to the end and becomes variadic.
76554         * lib/long-options.c: Include stdarg.h.
76555         (parse_long_options): Make this function variadic, too.
76556         Call version_etc_va, not version_etc.
76557
76558 2003-10-06  Bruno Haible  <bruno@clisp.org>
76559
76560         * modules/version-etc-2: Remove file.
76561         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
76562
76563 2003-10-06  Bruno Haible  <bruno@clisp.org>
76564
76565         * modules/fatal-signal: New file.
76566         * MODULES.html.sh (func_all_modules): Add fatal-signal.
76567
76568 2003-10-06  Bruno Haible  <bruno@clisp.org>
76569
76570         * m4/fatal-signal.m4: New file.
76571         * m4/signalblocking.m4: New file, from GNU gettext.
76572
76573 2003-10-06  Bruno Haible  <bruno@clisp.org>
76574
76575         * lib/version-etc-2.h: Remove file.
76576         * lib/version-etc-2.c: Remove file.
76577
76578 2003-10-06  Bruno Haible  <bruno@clisp.org>
76579
76580         * lib/fatal-signal.h: New file, from GNU gettext.
76581         * lib/fatal-signal.c: New file, from GNU gettext.
76582
76583 2003-10-05  Paul Eggert  <eggert@twinsun.com>
76584
76585         * README: Rework advice for preventing empty .o files.
76586         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
76587         not <sys/types.h>.
76588
76589 2003-10-04  Karl Berry  <karl@gnu.org>
76590
76591         * lib/argp*: update from libc.
76592
76593 2003-10-04  Karl Berry  <karl@gnu.org>
76594
76595         * config/config.{guess,sub}: update from config.
76596
76597 2003-10-02  Bruno Haible  <bruno@clisp.org>
76598
76599         * modules/lchown (Include): Add lchown.h.
76600         * modules/time_r (Include): Use "..." syntax.
76601         * modules/xgetdomainname (Include): Add xgetdomainname.h.
76602
76603 2003-10-01  Simon Josefsson  <jas@extundo.com>
76604
76605         * MODULES.html.sh (func_all_modules): Move gethostname from section
76606         'based on' to section 'lacking' POSIX:2001.
76607
76608 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
76609
76610         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
76611         to output mode on the same stream.
76612
76613 2003-09-29  Paul Eggert  <eggert@twinsun.com>
76614
76615         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
76616         Fix arg typo in previous patch.
76617
76618 2003-09-28  Jim Meyering  <jim@meyering.net>
76619
76620         * lib/error.c: Correct cpp indentation.
76621
76622 2003-09-27  Paul Eggert  <eggert@twinsun.com>
76623
76624         * modules/free: New file.
76625
76626 2003-09-27  Paul Eggert  <eggert@twinsun.com>
76627
76628         * m4/free.m4: New file.
76629
76630 2003-09-27  Paul Eggert  <eggert@twinsun.com>
76631
76632         * lib/minmax.h (MIN, MAX)
76633         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
76634         Omit the special code that used __typeof__, since we worry that
76635         it could be more trouble than it's worth.  See:
76636         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
76637         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
76638
76639         * lib/free.c: New file.
76640
76641 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
76642
76643         Trivial fixes to Makefile.am parts of module listings.
76644         * modules/strstr: Append strstr.h to lib_SOURCES.
76645         * modules/strcase: Likewise, for strcase.h.
76646
76647 2003-09-27  Karl Berry  <karl@gnu.org>
76648
76649         * config/mkinstalldirs: update from automake.
76650
76651 2003-09-26  Paul Eggert  <eggert@twinsun.com>
76652
76653         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
76654         (error_tail): Do not loop, reallocating temporary buffer, since
76655         the output cannot contain more wide characters than the input
76656         contains bytes, the size must be big enough already.  This avoids
76657         one potential size overflow calculation.  Check for size overflow
76658         when calculating temporary buffer size.  Free temporary buffer
76659         when done, if it was allocated with malloc; this plugs a memory
76660         leak.  Remove casts from void * to pointers, that are no longer
76661         needed now that we're assuming C89 or better.
76662
76663         Merge error changes from glibc.
76664
76665         * lib/error.c, error.h: Update copyright notice header to match glibc.
76666         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
76667         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
76668         Disable cancellation while printing error.
76669         * lib/error.h: Prepend __ to parameter names.
76670
76671 2003-09-26  Jim Meyering  <jim@meyering.net>
76672
76673         * lib/error.c (error_tail): Move some declarations
76674         into inner scope where the local variables are used.
76675
76676 2003-09-26  Bruno Haible  <bruno@clisp.org>
76677
76678         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
76679         stpncpy().
76680         Don't define stpncpy through config.h; it's now done through stpncpy.h.
76681
76682 2003-09-26  Bruno Haible  <bruno@clisp.org>
76683
76684         * lib/stpncpy.h (gnu_stpncpy): New declaration.
76685         (stpncpy): Define as alias for gnu_stpncpy.
76686         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
76687
76688 2003-09-25  Simon Josefsson  <jas@extundo.com>
76689
76690         * lib/xgetdomainname.h: New file.
76691         * lib/xgetdomainname.c: New file.
76692
76693 2003-09-25  Simon Josefsson  <jas@extundo.com>
76694             Bruno Haible  <bruno@clisp.org>
76695
76696         * modules/getdomainname: New file.
76697         * modules/xgetdomainname: New file.
76698         * MODULES.html.sh (func_all_modules): Add getdomainname,
76699         xgetdomainname.
76700
76701 2003-09-25  Simon Josefsson  <jas@extundo.com>
76702             Bruno Haible  <bruno@clisp.org>
76703
76704         * m4/getdomainname.m4: New file.
76705
76706 2003-09-25  Simon Josefsson  <jas@extundo.com>
76707             Bruno Haible  <bruno@clisp.org>
76708
76709         * lib/getdomainname.h: New file.
76710         * lib/getdomainname.c: New file.
76711
76712 2003-09-25  Karl Berry  <karl@gnu.org>
76713
76714         * lib/argp-fmtstream.c, argp-help.c: update from libc.
76715
76716 2003-09-25  Karl Berry  <karl@gnu.org>
76717
76718         * config/install-sh: update from automake.
76719
76720 2003-09-25  Bruno Haible  <bruno@clisp.org>
76721
76722         * modules/version-etc-2: New file, from modules/version-etc with
76723         modifications.
76724         * MODULES.html.sh (func_all_modules): Add version-etc-2.
76725
76726 2003-09-25  Bruno Haible  <bruno@clisp.org>
76727
76728         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
76729         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
76730
76731 2003-09-24  Simon Josefsson  <jas@extundo.com>
76732
76733         * modules/xgethostname: Add xgethostname.h.
76734
76735 2003-09-24  Paul Eggert  <eggert@twinsun.com>
76736
76737         * lib/linebuffer.c (freebuffer): Don't free the argument, just
76738         the buffer associated with the argument.  Bug reported by
76739         Simon Josefsson.
76740
76741 2003-09-24  Paul Eggert  <eggert@twinsun.com>
76742
76743         * README: Document assumptions that 'int' is at least 32 bits
76744         wide, that integer arithmetic is 2's complement without overflow,
76745         that there are no holes in integer values, that adding sizes of
76746         two nonoverlapping objects can't overflow, and that all-bits-zero
76747         yields scalar zero.  Fix spelling and capitalization typos.
76748
76749 2003-09-19  Karl Berry  <karl@gnu.org>
76750
76751         * lib/argp.h: update from libc.
76752
76753 2003-09-17  Paul Eggert  <eggert@twinsun.com>
76754
76755         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
76756         to avoid spurious warnings like "AC_RUN_IFELSE was called before
76757         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
76758
76759 2003-09-17  Paul Eggert  <eggert@twinsun.com>
76760
76761         * gnulib-tool: Use "test -h", not "test -L", for portability
76762         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
76763         (tags_regexp): Remove, since \| doesn't conform to POSIX.
76764         (sed_extract_prog): Issue s commands one-by-one, rather than
76765         using \| in one s command.
76766
76767 2003-09-16  Paul Eggert  <eggert@twinsun.com>
76768
76769         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
76770         input error, instead of returning NULL the next time we are called
76771         (and therefore losing track of errno).
76772
76773 2003-09-16  Bruno Haible  <bruno@clisp.org>
76774
76775         * gnulib-tool (func_create_testdir): Warn about duplicated
76776         dependencies.
76777
76778 2003-09-15  Paul Eggert  <eggert@twinsun.com>
76779
76780         * modules/argmatch, modules/fatal, modules/obstack,
76781         modules/xalloc, modules/xgethostname: Sort dependencies by
76782         importance, not alphabetically.
76783
76784 2003-09-15  Paul Eggert  <eggert@twinsun.com>
76785
76786         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
76787         fails, so that the caller gets the proper errno.
76788
76789         * lib/readutmp.c (read_utmp): Likewise.
76790         Check for fstat error.  Close stream and free storage
76791         when failing.
76792
76793 2003-09-14  Karl Berry  <karl@gnu.org>
76794
76795         * config/srclist.txt (strdup.c): disable for c89 changes.
76796
76797 2003-09-14  Jim Meyering  <jim@meyering.net>
76798
76799         * lib/getloadavg.c: Correct cpp indentation.
76800         * lib/strdup.c: Likewise.
76801         * lib/vasnprintf.c: Likewise.
76802
76803 2003-09-14  Bruno Haible  <bruno@clisp.org>
76804
76805         * modules/fwriteerror: New file.
76806         * MODULES.html.sh (func_all_modules): Add fwriteerror.
76807
76808 2003-09-14  Bruno Haible  <bruno@clisp.org>
76809
76810         * lib/fwriteerror.h: New file.
76811         * lib/fwriteerror.c: New file.
76812
76813 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76814
76815         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
76816         modules/xgethostname, modules/xalloc: Depend on exit.
76817
76818 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76819
76820         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
76821
76822         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
76823         and AC_MINIX, too, so that their extensions are available.
76824
76825         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
76826         This macro has been superseded by gl_BACKUPFILE.
76827
76828         More patches to assume C89 or better.
76829
76830         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
76831
76832         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
76833         unconditionally.
76834         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
76835         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
76836         Include <string.h>, <stdlib.h> unconditionally.
76837         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
76838         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
76839         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
76840         headers or for string.h.
76841         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
76842         or strtoul.
76843
76844         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
76845         headers.
76846         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
76847         * m4/userspec.m4 (gl_USERSPEC): Likewise.
76848         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
76849         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
76850         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76851         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
76852         memcpy, memset.
76853         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
76854         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
76855         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
76856         strtol.
76857         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
76858         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
76859         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
76860         strtoul.
76861
76862 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76863
76864         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
76865         * lib/obstack.c [!defined _LIBC]: Likewise.
76866         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
76867         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
76868         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
76869
76870         More changes to assume C89 or better.
76871
76872         * lib/error.c (error_tail): Assume vprintf.
76873
76874         * lib/argmatch.c (getenv): Remove decl.
76875         * lib/progreloc.c (get_full_program_name): Define via prototype.
76876         * lib/setenv.c (clearenv): Likewise.
76877         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
76878         needed.
76879         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
76880         (malloc, memcpy): Remove decls.
76881         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
76882         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
76883         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
76884         (memcpy): Remove macro.
76885         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
76886         (__P): Remove.  All uses removed.
76887         (PTR): Remove.  All uses changed to void *.
76888         (CHAR_BIT, NULL): Remove.
76889         (spaces, zeros, memset_space, memset_zero)
76890         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
76891         Remove.
76892         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
76893         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
76894         Define with prototype.
76895         Remove now-unnecessary prototype decl.
76896         (extra_args_spec): Assume ANSI C.  All uses changed.
76897         (extra_args_spec_iso): Remove.
76898         (my_strftime, emacs_strftimeu): Define via prototype.
76899         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
76900         unconditionally.
76901         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
76902         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
76903         (strtoul, strtol): Remove decls.
76904         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
76905         LONG_MAX): Remove.
76906         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
76907         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
76908         (LOCALE_PARAM_PROTO): New macro.
76909         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
76910         (INTERNAL (strtol), strtol): Define with a prototype.
76911         (PARAMS): Remove.  All uses removed.
76912         * lib/tempname.c: Include <string.h> unconditionally.
76913         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
76914         * lib/xgethostname.c (main): Define with a prototype.
76915         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
76916         Include <stdlib.h> unconditionally.
76917         (calloc, malloc, realloc, free): Remove decls.
76918         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
76919         Include <stdlib.h> unconditionally.  Sort include file names.
76920         (strtod): Remove.
76921         (xstrtod): Define with a prototype.
76922         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
76923         (strtol, strtoul): Remove decls.
76924
76925 2003-09-11  Paul Eggert  <eggert@twinsun.com>
76926
76927         More patches to assume C89 or better.
76928         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
76929         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
76930         string.h, memchr, STDC_HEADERS.
76931
76932 2003-09-11  Paul Eggert  <eggert@twinsun.com>
76933
76934         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
76935         Include <stdlib.h>, <string.h> unconditionally.
76936         Remove now-unnecessary cast to char *.
76937         * lib/strnlen.c: Include <string.h> unconditionally.
76938         * lib/yesno.c (yesno): Define with a prototype.
76939
76940 2003-09-11  Bruno Haible  <bruno@clisp.org>
76941
76942         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
76943
76944 2003-09-10  Jim Meyering  <jim@meyering.net>
76945
76946         * lib/error.c: Correct indentation of cpp directives.
76947
76948 2003-09-10  Bruno Haible  <bruno@clisp.org>
76949
76950         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
76951         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
76952         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
76953         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
76954         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
76955         <stdlib.h> and <string.h> checks.
76956         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
76957         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
76958
76959 2003-09-10  Bruno Haible  <bruno@clisp.org>
76960
76961         * lib/strcspn.c: Include <string.h> unconditionally.
76962         * lib/strpbrk.c: Include <string.h> unconditionally.
76963         * lib/strstr.c: Include <string.h> unconditionally.
76964         * lib/unicodeio.c: Include <string.h> unconditionally.
76965         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
76966         * lib/unsetenv.c: Likewise.
76967         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
76968         * lib/yesno.c: Include <stdlib.h> unconditionally.
76969         (rpmatch): Add prototype.
76970
76971 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76972
76973         More patches to assume C89 or better.
76974         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
76975         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
76976         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
76977         or for string.h.
76978         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
76979         stdlib.h.
76980         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
76981         C headers.
76982         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
76983         string.h.
76984         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
76985         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
76986         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
76987         or for string.h.
76988         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
76989         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
76990         C headers.
76991         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
76992         memcpy.
76993         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
76994         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
76995         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
76996         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
76997         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
76998         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
76999         string.h, free.
77000         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
77001         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
77002         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
77003         C headers, or for string.h.
77004         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
77005         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
77006         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
77007         headers, memory.h, stdlib.h, string.h, strings.h.
77008         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
77009         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
77010         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
77011         strchr.
77012         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
77013         headers, memory.h, string.h.
77014         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
77015         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
77016         free.
77017         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
77018         headers.
77019         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
77020         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
77021         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
77022         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
77023         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
77024
77025 2003-09-09  Paul Eggert  <eggert@twinsun.com>
77026
77027         More K&R removal.
77028
77029         * lib/acosl.c (main): Use a prototype.
77030         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
77031         tanl.c: Likewise.
77032
77033         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
77034
77035         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
77036         (getopt, etopt_long, getopt_long_only, _getopt_internal)
77037         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
77038         with a prototype.
77039         * lib/getopt.c (const): Remove macro.
77040         Include <string.h> unconditionally.
77041         (my_index): Remove; all uses changed to strchr.
77042         (strlen): Remove decl.
77043         (exchange): Remove forward decl; no longer needed.
77044         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
77045         Define with prototype.
77046         * lib/getopt1.c (const): Remove macro.
77047         (getopt_long, getopt_long_only, main): Define with prototype.
77048
77049         * lib/getugroups.c: Include <string.h> unconditionally.
77050
77051         * lib/getusershell.c: Include <stdlib.h> unconditionally.
77052         (getusershell, setusershell, endusershell, readname, main):
77053         Define with prototypes.
77054
77055         * lib/group-member.c: Include group-member.h first.
77056         Include <stdlib.h> unconditionally.
77057
77058         * lib/hard-locale.c: Include hard-locale.h first.
77059         Include <stdlib.h>, <string.h> unconditionally.
77060
77061         * lib/hash.c (free, malloc): Remove decls.
77062         Include <stdlib.h> unconditionally.
77063
77064         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
77065         (getenv): Do not declare.
77066
77067         * lib/idcache.c: Include <string.h> unconditionally.
77068
77069         * lib/long-options.c: Include long-options.h first, to test interface.
77070         Include <stdlib.h> unconditionally.
77071
77072         * lib/makepath.c: Include makepath.h first, to test interface.
77073         Include <stdlib.h> and <string.h> unconditionally.
77074
77075         * lib/linebuffer.c: Include <stdlib.h>.
77076         (free): Remove decl.
77077
77078         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
77079         stddef.h. rpl_malloc returns void *, not char *.
77080         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
77081         prototype.
77082
77083         * lib/md5.h: Include <limits.h> unconditionally.
77084         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
77085         (__P): Remove; all uses removed.
77086         * lib/md5.c: Include "md5.h" first.
77087         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
77088         md5_buffer, md5_process_bytes, md5_process_block):
77089         Define with prototypes.
77090         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
77091         * lib/sha.c: Include "sha.h" first.
77092         Include <stdlib.h>, <string.h> unconditionally.
77093
77094         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
77095         * lib/memcmp.c (__ptr_t): Likewise.
77096         * lib/memrchr.c (__ptr_t): Likewise.
77097         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
77098         Include <string.h> unconditionally.
77099         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
77100         * lib/memchr.c: Include <stdlib.h> unconditionally.
77101         * lib/memchr.c (LONG_MAX): Remove.
77102         * lib/memrchr.c (LONG_MAX): Likewise.
77103         * lib/memchr.c (__memchr): Define via a prototype.
77104         * lib/memrchr.c (__memrchr): Likewise.
77105         * lib/memcmp.c (__P): Remove, and remove all uses.
77106         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
77107         Remove forward decls; no longer needed.
77108         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
77109         Use types required by C89 in prototype.
77110
77111         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
77112         * lib/savedir.c: Likewise.
77113         * lib/mkdir.c (free): Remove decl.
77114         * lib/rmdir.c (rmdir): Define with a prototype.
77115         * lib/savedir.c: Include savedir.h first, to test interface.
77116
77117         * lib/mktime.c (STDC_HEADERS): Remove.
77118         Include <stdlib.h>, <string.h> unconditionally.
77119
77120         * lib/modechange.c: Include <stdlib.h> unconditionally.
77121         (malloc): Remove decl.
77122
77123         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
77124         (free): Remove decl.
77125
77126         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
77127         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
77128         (This type really should be intptr_t, but that's a C99ism.)
77129         (_obstack_memcpy): Remove: all uses changed to memcpy.
77130         Include <string.h> unconditionally.
77131         (struct obstack): Assume __STDC__ for types of members
77132         chunkfun, freefun, extra_arg.
77133         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
77134         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
77135         obstack_begin, obstack_specify_allocation,
77136         obstack_specify_allocation_with_arg, obstack_chunkfun,
77137         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
77138         Remove unprototyped decls and the macros that use them.
77139         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
77140         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
77141         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
77142         (defined __STDC__ && __STDC__)]:
77143         Remove nonprototyped code.
77144         Include <stdlib.h> unconditionally.
77145         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
77146         _obstack_allocated_p, _obstack_free, obstack_free,
77147         _obstack_memory_used, print_and_abort):
77148         Define using prototypes.
77149         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
77150         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
77151         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
77152         obstack_next_free, obstack_object_size, obstack_room) [0]:
77153         Remove unused, unprototyped code.
77154
77155         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
77156
77157         * lib/physmem.c (physmem_total, physmem_available, main): Define
77158         with prototypes.
77159
77160         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
77161         (main): Define with a prototype.
77162
77163         * lib/posixver.c (getenv): Remove decl.
77164
77165         * lib/putenv.c (malloc): Returns void *, not char *.
77166         Include <string.h> unconditionally.
77167         (strchr, memcpy, NULL): Do not define.
77168
77169         * lib/readtokens.c: Include readtokens.h first, to test interface.
77170         Include <stdlib.h>, <string.h> unconditionally.
77171         (init_tokenbuffer): Define with a prototype.
77172
77173         * lib/regex.c (PARAMS): Remove.  All uses removed.
77174         All uses of _RE_ARGS removed, too.
77175         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
77176         unconditionally.
77177         (bzero): Assume memset exists.
77178         (memcmp, memcpy, NULL): Remove.
77179         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
77180         char, or assignments to local vars of type signed char.
77181         (init_syntax_once, PREFIX(extract_number_and_incr),
77182         PREFIX(print_partial_compiled_pattern),
77183         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
77184         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
77185         PREFIX(regex_grow_registers), PREFIX(regex_compile),
77186         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
77187         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
77188         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
77189         wcs_compile_range, byte_compile_range, truncate_wchar,
77190         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
77191         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
77192         count_mbs_length, wcs_re_match_2_internal,
77193         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
77194         PREFIX(alt_match_null_string_p),
77195         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
77196         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
77197         regfree, PREFIX(extract_number)): Define with prototype.  Remove
77198         now-unnecessary declaration, if any.
77199         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
77200         regcomp, regexec):
77201         Remove now-unnecessary casts among pointer types.
77202         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
77203
77204         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
77205         (free): Remove decl.
77206
77207         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
77208
77209         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
77210         (free): Remove decl.
77211
77212         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
77213         * lib/xgetcwd.c: Likewise.
77214
77215         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
77216         (free): Remove decl.
77217
77218         * lib/strchrnul.c (strchrnul): Define with a prototype.
77219         Fix bug: c_in was not converted to char before searching.
77220
77221         The following changes are not K&R related:
77222
77223         * lib/group-member.h: Include <sys/types.h>, so that this file is
77224         self-contained.
77225         * lib/makepath.h: Likewise.
77226
77227         * lib/getusershell.c (readname, default_index, line_size, readname):
77228         Use size_t, not int, for sizes.
77229         (readname): If the size overflows, report an error instead of
77230         looping forever.
77231
77232 2003-09-09  Paul Eggert  <eggert@twinsun.com>
77233
77234         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
77235         libc.
77236
77237 2003-09-09  Paul Eggert  <eggert@twinsun.com>
77238
77239         * README: New section: portability guidelines.
77240
77241 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
77242
77243         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
77244         C89 spec.
77245
77246 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
77247
77248         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
77249
77250 2003-09-08  Paul Eggert  <eggert@twinsun.com>
77251
77252         Assume C89 or better; remove K&R cruft.
77253         A few of these changes were first proposed by Derek Robert Price
77254         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
77255
77256         * lib/addext.c: Include <string.h> unconditionally.
77257         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
77258         Don't declare getenv or malloc.
77259
77260         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
77261         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
77262         (NULL): Remove.
77263         (find_stack_direction, alloca): Use prototypes.
77264
77265         * lib/atexit.c (atexit): Define using a prototype.
77266
77267         * lib/basename.c, dirname.c, stripslash.c:
77268         Include <string.h> unconditionally.
77269
77270         * lib/bcopy.c: Include <stddef.h>.
77271         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
77272
77273         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
77274
77275         * lib/error.h (error, error_at_line, error_print_progname)
77276         [! (defined (__STDC__) && __STDC__)]: Remove decls.
77277         * lib/error.c: Include error.h first, to check interface.
77278         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
77279         (VA_START): Remove; all uses changeed to va_start.
77280         (exit, strerror): Remove decls.
77281         (error_print_progname): Prototype uncondionally.
77282         Don't include <errno.h>; no longer needed.
77283         (private_strerror): Remove.
77284         (error_tail): Always define.
77285         (error, error_at_line): Assume C89 or better; always use prototypes.
77286         * lib/fatal.c: Include "fatal.h" first, to test interface.
77287         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
77288         (VA_START): Remove; all uses changed to va_start.
77289         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
77290         this case.
77291         (exit): Remove decl.
77292         (fatal): Prototype unconditionally.  Assume va_start works.
77293         Abort at end, to pacify gcc.
77294
77295         * lib/euidaccess.c (main): Define with a prototype.
77296
77297         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
77298
77299         * lib/exitfail.c: Include <stdlib.h> unconditionally.
77300
77301         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
77302         prototypes.
77303         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
77304         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
77305         (getenv): Remove decl.
77306         (fnmatch): Define using a prototype.
77307         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
77308         (FCT): Define using a prototype.
77309
77310         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
77311
77312         * lib/gethostname.c: Include <stddef.h>.
77313         (gethostname): Define with prototype.  Length is size_t, not int.
77314
77315 2003-09-08  Paul Eggert  <eggert@twinsun.com>
77316
77317         Assume C89 or better; remove K&R cruft.
77318         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
77319         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
77320         string.h, getenv, malloc.
77321         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
77322         headers.
77323         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
77324         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
77325         do not check for strerror.
77326         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
77327         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
77328         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
77329         do not check for doprnt or vprintf.
77330         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
77331         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
77332
77333 2003-09-08  Paul Eggert  <eggert@twinsun.com>
77334
77335         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
77336         getversion.c should have been removed then, but was accidentally
77337         preserved.
77338
77339         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
77340         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
77341
77342 2003-09-08  Karl Berry  <karl@gnu.org>
77343
77344         * config/config.sub, config.guess, srclistvars.sh: update from savannah
77345                 config, forget about prep.
77346
77347         * config/depcomp, missing: update from automake.
77348
77349 2003-09-07  Paul Eggert  <eggert@twinsun.com>
77350
77351         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
77352         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
77353
77354 2003-09-07  Paul Eggert  <eggert@twinsun.com>
77355
77356         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
77357         copy_tm_result.  Bug reported by Simon Josefsson in
77358         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
77359
77360 2003-09-06  Paul Eggert  <eggert@twinsun.com>
77361
77362         * m4/time_r.m4: New file.
77363         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
77364         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
77365         is. Check for timegm declaration.
77366         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
77367         Do not check for gmtime_r.
77368         Replace mktime if __mktime_internal does not exist and if mktime
77369         hasn't been replaced already.
77370
77371 2003-09-06  Paul Eggert  <eggert@twinsun.com>
77372
77373         * lib/time_r.c, lib/time_r.h: New files.
77374
77375         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
77376         __localtime_r.
77377         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
77378         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
77379
77380         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
77381         __gmtime_r.
77382         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
77383         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
77384         Include <time_r.h>.
77385
77386         * lib/timegm.c: Switch to glibc implementation, with the following
77387         changes:
77388         [defined HAVE_CONFIG_H]: Include <config.h>.
77389         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
77390         (__mktime_internal) [!defined _LIBC]: New decl.
77391         (__gmtime_r) [!defined _LIBC]: New macro and function.
77392         (timegm): Use a prototype, since gnulib assumes C89.
77393         Do not bother declaring tmp to be const, as it's not really usefu.
77394         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
77395         (timegm): Declare only if HAVE_DECL_TIMEGM.
77396
77397 2003-09-06  Paul Eggert  <eggert@twinsun.com>
77398
77399         * MODULES.html.sh (func_all_modules): Add time_r.
77400         * modules/time_r: New file.
77401         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
77402         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
77403
77404 2003-09-03  Paul Eggert  <eggert@twinsun.com>
77405
77406         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
77407         Bug reported by Lute Kamstra in
77408         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
77409
77410         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
77411         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
77412         course with correspondingly smaller numbers for tomorrow and
77413         yesterday.  From Tadayoshi Funaba.  Originally installed into
77414         sh-utils on 1999-08-07, but the patch got lost (I guess during the
77415         coreutils merge?).
77416
77417 2003-08-31  Simon Josefsson  <jas@extundo.com>
77418
77419         * modules/timegm: New file.
77420         * MODULES.html.sh (func_all_modules): Add timegm.
77421
77422 2003-08-31  Simon Josefsson  <jas@extundo.com>
77423
77424         * m4/timegm.m4: New file.
77425
77426 2003-08-31  Simon Josefsson  <jas@extundo.com>
77427
77428         * lib/timegm.h: New file.
77429         * lib/timegm.c: New file.  Based on
77430         wget-1.8.2/src/http.c:mktime_from_utc.
77431
77432 2003-08-31  Karl Berry  <karl@gnu.org>
77433
77434         * lib/argp.h: update from libc.
77435
77436 2003-08-28  Bruno Haible  <bruno@clisp.org>
77437
77438         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
77439         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
77440         followed by '#define fnmatch fnmatch_posix' gives an error.
77441
77442 2003-08-28  Bruno Haible  <bruno@clisp.org>
77443
77444         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
77445         warning on QNX, which defines O_BINARY to 000000.
77446
77447 2003-08-27  Jim Meyering  <jim@meyering.net>
77448
77449         * m4/mkstemp.m4: Require that the system mkstemp be able to create
77450         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
77451         would fail after 32.  Reported by Danny Levinson.  Details here:
77452         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
77453
77454 2003-08-24  Bruno Haible  <bruno@clisp.org>
77455
77456         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
77457         MSVC7 <stdio.h> is included later.
77458
77459 2003-08-22  Simon Josefsson  <jas@extundo.com>
77460
77461         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
77462
77463 2003-08-20  Karl Berry  <karl@gnu.org>
77464
77465         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
77466
77467 2003-08-20  Bruno Haible  <bruno@clisp.org>
77468
77469         * modules/progname: New file.
77470         * MODULES.html.sh (func_all_modules): Add progname.
77471
77472 2003-08-20  Bruno Haible  <bruno@clisp.org>
77473
77474         * lib/progname.h: New file, from GNU gettext.
77475         * lib/progname.c: New file, from GNU gettext.
77476         * lib/progreloc.c: New file, from GNU gettext.
77477
77478 2003-08-19  Jim Meyering  <jim@meyering.net>
77479
77480         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
77481         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
77482
77483 2003-08-19  Bruno Haible  <bruno@clisp.org>
77484
77485         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
77486         more.
77487
77488 2003-08-19  Bruno Haible  <bruno@clisp.org>
77489
77490         * lib/xstrdup.c: Assume <string.h> exists.
77491
77492 2003-08-18  Paul Eggert  <eggert@twinsun.com>
77493
77494         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
77495         in makefile rules.
77496
77497 2003-08-18  Jim Meyering  <jim@meyering.net>
77498
77499         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
77500         * m4/lib-ld.m4: Likewise.
77501
77502 2003-08-18  Jim Meyering  <jim@meyering.net>
77503
77504         * lib/setenv.h: Indent nested cpp directive.
77505         * lib/vasnprintf.c: Remove trailing blanks.
77506
77507 2003-08-17  Simon Josefsson  <jas@extundo.com>
77508
77509         * modules/xstrndup: New file.
77510         * MODULES.html.sh (func_all_modules): Add xstrndup.
77511
77512 2003-08-17  Simon Josefsson  <jas@extundo.com>
77513
77514         * modules/argp: Fix autoconf macro name. Add more dependencies.
77515
77516 2003-08-17  Simon Josefsson  <jas@extundo.com>
77517
77518         * m4/xstrndup.m4: New file.
77519
77520 2003-08-17  Simon Josefsson  <jas@extundo.com>
77521
77522         * m4/argp.m4: New file.
77523
77524 2003-08-17  Simon Josefsson  <jas@extundo.com>
77525             Bruno Haible  <bruno@clisp.org>
77526
77527         * lib/xstrndup.h: New file.
77528         * lib/xstrndup.c: New file.
77529
77530 2003-08-17  Bruno Haible  <bruno@clisp.org>
77531
77532         * modules/strndup (Files, Include): Add lib/strndup.h.
77533
77534 2003-08-17  Bruno Haible  <bruno@clisp.org>
77535
77536         * modules/euidaccess (Files): Add lib/euidaccess.h.
77537
77538 2003-08-17  Bruno Haible  <bruno@clisp.org>
77539
77540         * lib/strndup.h: New file.
77541
77542 2003-08-17  Bruno Haible  <bruno@clisp.org>
77543
77544         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
77545         like AC_GNU_SOURCE.
77546         * modules/extensions (configure.ac): Comment out the invocation of
77547         gl_USE_SYSTEM_EXTENSIONS.
77548
77549 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77550
77551         Merges from coreutils, etc.
77552         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
77553         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
77554         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
77555         fixing a typo.
77556         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
77557         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
77558
77559 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77560
77561         Document merge from coreutils.
77562         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
77563         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
77564         * modules/utime: Add m4/utimes-null.m4.
77565
77566 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77567
77568         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
77569         space, undoing this 2003-08-12 change:
77570         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
77571
77572 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77573
77574         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
77575         strtoul.c from libc, undoing this 2003-08-12 change:
77576         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
77577
77578 2003-08-16  Jim Meyering  <jim@meyering.net>
77579
77580         Merges from coreutils.
77581         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
77582         prefix.  Adjust cache variables similarly.  Create 500 rather than
77583         just 300 files, to exercise bug on Darwin6.5, too.
77584         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
77585         $missing_dir.
77586         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
77587         AM_SYS_POSIX_TERMIOS.
77588         Reported by mkc@mathdogs.com.
77589         Also change use of $am_cv_sys_posix_termios
77590         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
77591         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
77592         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
77593         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
77594         in /proc/mounts until it finds one with matching device number.  This
77595         is unnecessary when the FILE argument *is* a mount point.  No stat call
77596         is necessary in that case.  So, disable the statvfs-testing code on
77597         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
77598         as RedHat bug# 84846.
77599         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
77600         to 1MB, so as not to render systems with no stack size limit (e.g.,
77601         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
77602         Include <unistd.h>.  On some systems,
77603         it is required for the definition of _SC_PAGESIZE.
77604
77605 2003-08-16  Jim Meyering  <jim@meyering.net>
77606
77607         Merge from coreutils.
77608         * lib/xstrtoimax.c: #else #if -> #elif.
77609         * lib/xstrtoumax.c: Likewise.
77610
77611 2003-08-16  Jim Meyering  <jim@meyering.net>
77612
77613         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
77614         * m4/utimes.m4: Removed.
77615         * m4/utimes-null.m4: Renamed from utimes.m4.
77616
77617         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
77618         to 1MB, so as not to render systems with no stack size limit (e.g.,
77619         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
77620         Include <unistd.h>.  On some systems,
77621         it is required for the definition of _SC_PAGESIZE.
77622
77623 2003-08-16  Jim Meyering  <jim@meyering.net>
77624         and Paul Eggert  <eggert@cs.ucla.edu>
77625
77626         Merges from coreutils, etc.
77627
77628         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
77629         using the latest version from cvs.  This avoids problems with #line
77630         directives using a vendor (Sun) compiler.
77631         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
77632         Don't set GETGROUPS_LIB here; now it's
77633         done via getgroups.m4's wrapper function.
77634         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
77635         rather than just in sh-util/configure.in, so that the
77636         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
77637         same.
77638         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
77639         AC_FUNC_GETLOADAVG where to find getloadavg.c.
77640         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
77641         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
77642         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
77643         Remove code that is now done by the newly-required macros.
77644         Append $(EXEEXT) to DF_PROG.
77645         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
77646         Do not invoke or require the following here,
77647         since prereq.m4 or some gnulib .m4 now does this for us:
77648         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
77649         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
77650         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
77651         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
77652         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
77653         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
77654         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
77655         AC_FUNC_OBSTACK.
77656         Do not replace the following functions, as this is now the job
77657         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
77658         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
77659         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
77660         atexit getpass, strdup, getpagesize.
77661         Replace 'raise'.
77662         Do not check for the following functions, as this is now the job
77663         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
77664         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
77665         setregid.
77666         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
77667         Check for sys/sysctl.h.
77668         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
77669         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
77670         of checking for ssize_t ourselves.
77671
77672         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
77673         Require every macro that gnulib/modules/* suggests for us.
77674         (jm_PREREQ_ADDEXT): New macro.
77675         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
77676         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
77677
77678         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
77679         (gl_PHYSMEM): Use it.
77680         Also check for `table' function.
77681         Check for new headers and functions.
77682         Add check for sys/sysmp.h.
77683         With suggestions from Kaveh Ghazi.
77684         Ignore headers that are present but cannot be compiled.  This
77685         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
77686         C 5.4.
77687
77688 2003-08-15  Paul Eggert  <eggert@twinsun.com>
77689
77690         Document merge from coreutils.
77691         * modules/userspec: Depend on posixver.
77692         * modules/strftime: Depend on tzset.
77693
77694 2003-08-15  Paul Eggert  <eggert@twinsun.com>
77695
77696         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
77697         rather than tab, after '#' in shell-script copyright notices.
77698         Suggested by Bruno Haible.
77699
77700 2003-08-15  Paul Eggert  <eggert@twinsun.com>
77701
77702         * config/srclist-update: Use three spaces, rather than tab, after '#'
77703         in shell-script copyright notices.  Suggested by Bruno Haible.
77704         Remove unnecessary parenthesization in regular expression.
77705
77706 2003-08-15  Jim Meyering  <jim@meyering.net>
77707
77708         Merge from coreutils.
77709         * lib/xgethostname.c: Include <stdlib.h>.
77710         (xghostname): Don't exit for anything other than memory-related
77711         failure; just return NULL.
77712         * lib/userspec.c: Include "posixver.h".
77713         (parse_user_spec): Accept `.' as a separator only
77714         in pre-POSIX-200112 mode.
77715         * lib/strtoimax.c: Use #elif rather than #else #if.
77716         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
77717         Remove function, now that we can rely on a working tzset function.
77718         [!_LIBC]: Ensure that the required autoconf test has been run.
77719         [!defined _NL_CURRENT && HAVE_STRFTIME]:
77720         Use underlying_strftime for %r.
77721         * lib/sha.c: Merge in some clean-up and optimization changes from
77722         glibc.
77723         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
77724         Ensure that it is a multiple of 64.
77725         Rearrange loop exit tests so as to avoid performing an
77726         additional fread after encountering an error or EOF.
77727         * lib/realloc.c: Update copyright date.
77728
77729 2003-08-15  Jim Meyering  <jim@meyering.net>
77730         and Paul Eggert  <eggert@twinsun.com>
77731
77732         Merge from coreutils.
77733         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
77734         member but strut utmpx does not.  Needed for AIX 4.3.3.
77735         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
77736
77737 2003-08-15  Jim Meyering  <jim@meyering.net>
77738         and Paul Eggert  <eggert@cs.ucla.edu>
77739
77740         Merges from coreutils, etc.
77741         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
77742         Require gl_FUNC_TZSET_CLOBBER.
77743         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
77744         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
77745         members.
77746
77747 2003-08-14  Paul Eggert  <eggert@twinsun.com>
77748
77749         Help the merge from coreutils.
77750         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
77751         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
77752         * m4/tzset.m4: Use it too.
77753
77754 2003-08-14  Paul Eggert  <eggert@twinsun.com>
77755
77756         * modules/tzset: New file.
77757
77758 2003-08-14  Jim Meyering  <jim@meyering.net>
77759
77760         Merges from coreutils.
77761         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
77762         variable names, rather than @FNMATCH_H@.
77763         * modules/alloca: Likewise for $(ALLOCA_H).
77764
77765         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
77766         the three copies of the literal target, `fnmatch.h'.
77767         * modules/alloca (alloca.h): Likewise.
77768
77769 2003-08-14  Jim Meyering  <jim@meyering.net>
77770
77771         Merge from coreutils.
77772         * m4/tzset.m4: New file.
77773         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
77774         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
77775         otherwise, AIX 5.1 systems would end up using the latter.
77776         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
77777         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
77778         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
77779         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
77780
77781 2003-08-14  Jim Meyering  <jim@meyering.net>
77782
77783         Merge from coreutils.
77784         * lib/obstack.h: Whitespace changes.
77785         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
77786         and xcalloc return values.
77787         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
77788         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
77789         hang on OSF/1 5.1 for DIR on both local and remote file systems.
77790         Reported by (and fix confirmed by) Nelson H. F. Beebe.
77791         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
77792         error from mntctl.
77793         Use mntctl's return value to drive the entry-processing loop, since
77794         we can't rely on the value of the vmt_length member in the last
77795         entry.  On some systems doing so could result in exhausting
77796         virtual memory.  Based in part on a patch from Mike Jetzer.
77797
77798 2003-08-14  Jim Meyering  <jim@meyering.net>
77799         and Paul Eggert  <eggert@twinsun.com>
77800
77801         Merges from coreutils, plus other fixes.
77802         * lib/physmem.c: Merge in portability changes from gcc/libiberty
77803         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
77804         for credits and details.  Thanks to Kaveh Ghazi for helping
77805         to keep these files in sync.
77806         (ARRAY_SIZE): Define it.
77807         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
77808         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
77809         (memcasecmp): Don't assume size_t fits in unsigned int.
77810         Remove casts and duplicate code.
77811         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
77812         (memcpy): Remove definition.
77813         Merge in some clean-up and optimization changes from glibc.
77814         [BLOCKSIZE]: Move definition to top of file.
77815         Ensure that it is a multiple of 64.
77816         Rearrange loop exit tests so as to avoid performing an
77817         additional fread after encountering an error or EOF.
77818         * lib/md5.h (md5_uintptr): Define.
77819         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
77820         return to the initial working directory.  Preserve errno
77821         for caller.
77822         * lib/idcache.c: Include "xalloc.h".
77823         (xmalloc, xrealloc): Remove decls.
77824         (getuser): Remove casts no longer required in C89.
77825         * lib/human.c: Include stdio.h, for sprintf.
77826         * lib/group-member.c: Include "xalloc.h".
77827         (xmalloc, xrealloc): Remove decls.
77828         (get_group_info): Remove casts no longer required in C89.
77829         * lib/getusershell.c (readname): Remove casts no longer required in
77830         C89.
77831         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
77832         * lib/getline.c: Whitespace fix, from coreutils.
77833
77834 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77835
77836         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
77837         Check for isascii.
77838
77839         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
77840         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
77841         Undo previous (whitespace-only) change.
77842
77843 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77844
77845         * lib/exclude.c: Include <ctype.h>
77846         (IN_CTYPE_DOMAIN): New macro.
77847         (is_space): New fn.
77848         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
77849         and empty lines.
77850
77851         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
77852         Undo previous (whitespace-only) change.
77853
77854 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77855
77856         * config/srclist-update: Change update back to the old behavior,
77857         leaving whitespace alone.  Use one 'sed' command rather than a
77858         pipeline.
77859         (fixlicense): Now a variable, not a function.
77860         (remove_trailing_blanks): Remove.
77861         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
77862         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
77863         Undo previous (whitespace-only) change.
77864
77865 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77866
77867         Merge from coreutils.
77868         * modules/euidaccess: Add lib_SOURCES, include for new
77869         file euidaccess.h
77870
77871 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77872
77873         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
77874         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
77875         Normalize leading white space and remove trailing white space.
77876
77877         Merge from coreutils
77878         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
77879
77880         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
77881         0.12.1.  These files are now being upgraded automatically by
77882         ../config/srclist-update.
77883
77884 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77885
77886         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
77887         Normalize leading white space and remove trailing white space.
77888         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
77889         notice, as per ../config/srclist-update.
77890
77891         Merge from coreutils.
77892         * lib/euidaccess.h: New file.
77893         * lib/euidaccess.c: Include it.
77894         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
77895         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
77896         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
77897
77898 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77899
77900         * config/srclist-update: Add copyright notice.
77901         (remove_id_lines, remove_trailing_blanks): New constants.
77902         (fixfile): Use them to normalize spacing a bit in copied files.
77903         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
77904         Normalize leading white space and remove trailing white space.
77905
77906         * config/texinfo.tex: Sync with texinfo.
77907
77908         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
77909         strtoul.c from libc, to merge coreutils whitespace changes.
77910
77911         * config/srclist.txt: Get the following m4 files from gettext:
77912         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
77913         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
77914         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
77915         wint_t.m4.
77916
77917 2003-08-12  Karl Berry  <karl@gnu.org>
77918
77919         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
77920         been made.
77921
77922 2003-08-11  Paul Eggert  <eggert@twinsun.com>
77923
77924         * modules/gnu-source, m4/gnu-source.m4:
77925         Remove; we're assuming Autoconf 2.54 or later now.
77926         Suggested by Bruno Haible.
77927         * MODULES.html.sh (func_all_modules): Remove gnu-source.
77928
77929 2003-08-11  Bruno Haible  <bruno@clisp.org>
77930
77931         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
77932
77933 2003-08-11  Bruno Haible  <bruno@clisp.org>
77934
77935         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
77936         (vasnprintf): Use it instead of wcslen.
77937
77938 2003-08-11  Bruno Haible  <bruno@clisp.org>
77939
77940         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
77941         value to ensure that _Bool promotes to int. Use #define for _Bool when
77942         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
77943
77944 2003-08-10  Karl Berry  <karl@gnu.org>
77945
77946         * lib/regex.h: update from libc (whitespace fix).
77947
77948 2003-08-09  Paul Eggert  <eggert@twinsun.com>
77949
77950         Merge some files from coreutils.  These changes were
77951         originally made by Jim Meyering.
77952         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
77953         many older Unixes require this.
77954         * lib/alloca.c (alloca): Remove cast to argument of free;
77955         no longer needed in C89.
77956         * lib/alloca_.h, regex.h: Fix white space to match
77957         what GNU indent does.
77958
77959 2003-08-09  Paul Eggert  <eggert@twinsun.com>
77960
77961         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
77962         apparently Emacs's Unicode mode got confused before my 2003-08-05
77963         checkin.
77964
77965 2003-08-08  Paul Eggert  <eggert@twinsun.com>
77966
77967         * m4/extensions.m4: New file.
77968         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
77969         Require gl_USE_SYSTEM_EXTENSIONS.
77970         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
77971         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
77972
77973 2003-08-08  Paul Eggert  <eggert@twinsun.com>
77974
77975         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
77976         * modules/extensions, modules/gnu-source: New files.
77977         * modules/timespec, modules/unlocked-io: Depend on extensions.
77978
77979 2003-08-07  Paul Eggert  <eggert@twinsun.com>
77980
77981         * modules/restrict: New file.
77982         * MODULES.html.sh (func_all_modules): Add restrict.
77983         * modules/regex: Depend on restrict.
77984
77985 2003-08-07  Paul Eggert  <eggert@twinsun.com>
77986
77987         * m4/restrict.m4: New file.
77988         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
77989
77990 2003-08-07  Bruno Haible  <bruno@clisp.org>
77991
77992         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
77993         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
77994
77995 2003-08-07  Bruno Haible  <bruno@clisp.org>
77996
77997         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
77998         makes the module 'getndelim2' compatible with the module 'getline'.
77999
78000 2003-08-05  Paul Eggert  <eggert@twinsun.com>
78001
78002         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
78003         byte with "\201" to avoid glitches when editing that source file
78004         with multi-gnome-terminal.
78005
78006 2003-08-05  Paul Eggert  <eggert@twinsun.com>
78007
78008         * lib/bumpalloc.h: Remove.
78009
78010 2003-08-05  Paul Eggert  <eggert@twinsun.com>
78011
78012         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
78013         * modules/bumpalloc: Remove.
78014
78015 2003-08-04  Paul Eggert  <eggert@twinsun.com>
78016
78017         * lib/getloadavg.c: Change copyright notice and spacing to conform to
78018         GNU coding style.
78019
78020         Merge from coreutils.
78021         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
78022         1. From glibc.
78023         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
78024         from Karl Berry, implemented by Jim Meyering.
78025         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
78026         from Dmitry V. Levin.
78027         Remove anachronistic cast of xrealloc.
78028         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
78029         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
78030         type. Otherwise, it wouldn't compile with at least /bin/cc on
78031         ymp-cray-unicos9.0.2.X.
78032         Combine two mostly-identical uses of alloca into one.
78033         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
78034
78035 2003-08-04  Dave Love  <d.love@dl.ac.uk>
78036
78037         [From Emacs.]
78038
78039         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
78040         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
78041         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
78042         obsolete NLIST_NAME_UNION.
78043         [__GNU__]: Undef BSD and FSCALE.
78044         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
78045
78046 2003-08-03  Paul Eggert  <eggert@twinsun.com>
78047
78048         * lib/stdbool_.h (_Bool): Make it signed char, instead of
78049         an enum type, so that it's guaranteed to promote to int.  See:
78050         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
78051
78052 2003-08-03  Karl Berry  <karl@gnu.org>
78053
78054         * config/depcomp: update from automake.
78055
78056 2003-07-31  Paul Eggert  <eggert@twinsun.com>
78057
78058         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
78059         (strerror): Don't assume that a printable int fits in 14 bytes.
78060
78061 2003-07-31  Bruno Haible  <bruno@clisp.org>
78062
78063         * modules/getpass-gnu: New file.
78064         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
78065
78066 2003-07-31  Bruno Haible  <bruno@clisp.org>
78067
78068         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
78069
78070 2003-07-24  Karl Berry  <karl@gnu.org>
78071
78072         * config/missing: update from automake.
78073
78074 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
78075             Bruno Haible  <bruno@clisp.org>
78076
78077         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
78078         * lib/getline.c (getline, getdelim): Likewise.
78079         Remove _GNU_SOURCE define; now it's defined in config.h through
78080         m4/getline.m4.
78081
78082 2003-07-23  Karl Berry  <karl@gnu.org>
78083
78084         * config/config.sub: update from prep.
78085
78086 2003-07-22  Paul Eggert  <eggert@twinsun.com>
78087
78088         * modules/xalloc (Depends-on): Add exitfail.
78089         * modules/xmemcoll: Likewise.
78090
78091 2003-07-22  Paul Eggert  <eggert@twinsun.com>
78092
78093         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
78094         over-parenthesization in macros.
78095
78096         Sync with coreutils.
78097
78098         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
78099         required by C99.
78100
78101         Use `exit_failure' for xalloc and xmemcoll instead of their own
78102         private exit-failure variables.
78103         * lib/xalloc.h (xalloc_exit_failure): Remove.
78104         * lib/xmalloc.c: Likewise.  Include exitfail.h.
78105         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
78106         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
78107         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
78108         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
78109
78110 2003-07-20  Jim Meyering  <jim@meyering.net>
78111
78112         * modules/closeout (Depends-on): Add exitfail.
78113         Suggestion from Bruno Haible.
78114
78115 2003-07-19  Karl Berry  <karl@gnu.org>
78116
78117         * config/config.sub: update from prep.
78118
78119 2003-07-18  Paul Eggert  <eggert@twinsun.com>
78120
78121         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
78122         Remove.
78123         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
78124         to test that it can stand by itself.  Include "exitfail.h".
78125         Clients should set exit_failure instead.
78126         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
78127
78128 2003-07-18  Bruno Haible  <bruno@clisp.org>
78129
78130         * modules/getndelim2: New file.
78131         * modules/getline: Share files with module getndelim2.
78132         * modules/getnline: Depend on getndelim2 instead of sharing files with
78133         it. Add getnline.c to lib_SOURCES.
78134         * MODULES.html.sh (func_all_modules): Add getndelim2.
78135
78136 2003-07-18  Bruno Haible  <bruno@clisp.org>
78137
78138         * m4/getndelim2.m4: New file.
78139         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
78140         invoke gl_PREREQ_GETNDELIM2.
78141         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
78142         gl_PREREQ_GETNDELIM2.
78143         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
78144         gl_GETNDELIM2.
78145
78146 2003-07-18  Bruno Haible  <bruno@clisp.org>
78147
78148         * lib/getndelim2.h: New file.
78149         * lib/getndelim2.c: Make into a module of its own. Include config.h,
78150         getndelim2.h.
78151         (getndelim2): Make non-static. Change return type to ssize_t.
78152         * lib/getline.h: Change argument names.
78153         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
78154         * lib/getnline.c: Include getndelim2.h.
78155
78156 2003-07-18  Andreas Schwab  <schwab@suse.de>
78157
78158         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
78159
78160 2003-07-17  Karl Berry  <karl@gnu.org>
78161
78162         * config/config.sub: update from prep.
78163
78164 2003-07-17  Bruno Haible  <bruno@clisp.org>
78165
78166         * modules/getnline: New file.
78167         * modules/getline: Add lib/getndelim2.c to source file list.
78168         * MODULES.html.sh (func_all_modules): Add getnline.
78169
78170 2003-07-17  Bruno Haible  <bruno@clisp.org>
78171
78172         * m4/getnline.m4: New file.
78173
78174 2003-07-17  Bruno Haible  <bruno@clisp.org>
78175
78176         * m4/Makefile.am.in: Remove file.
78177         * m4/Makefile.am: Remove file.
78178         * m4/Makefile.in: Remove file.
78179
78180 2003-07-17  Bruno Haible  <bruno@clisp.org>
78181
78182         * lib/getnline.h: New file.
78183         * lib/getnline.c: New file.
78184         * lib/getndelim2.c: New file, extracted from getline.c.
78185         (getndelim2): Renamed from getdelim2, with added nmax argument.
78186         * lib/getline.c: Include getndelim2.c.
78187         (getdelim2): Moved out to getndelim2.c.
78188         (getline, getdelim): Update.
78189
78190 2003-07-17  Bruno Haible  <bruno@clisp.org>
78191
78192         * lib/Makefile.am: Remove file.
78193         * lib/Makefile.in: Remove file.
78194
78195 2003-07-17  Bruno Haible  <bruno@clisp.org>
78196
78197         * configure.in: Remove file.
78198         * Makefile.in: Remove file.
78199
78200 2003-07-17  Bruno Haible  <bruno@clisp.org>
78201
78202         * MODULES.html.sh: Put the </BODY> right before </HTML>.
78203
78204 2003-07-16  Karl Berry  <karl@gnu.org>
78205
78206         * config/srclist-update: was running fixlicense twice, which caused
78207                 texinfo.tex to be nullified for some reason.  Simplify,
78208                 $gplsrc is no longer needed as far as I can see?
78209
78210 2003-07-16  Jim Meyering  <jim@meyering.net>
78211
78212         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
78213
78214 2003-07-15  Paul Eggert  <eggert@twinsun.com>
78215
78216         * config/srclist.txt: Get the following files from gettext-runtime/intl
78217         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
78218         ref-del.sin.  From Bruno Haible.
78219         * config/srclist-update (fixfile): Change grep pattern again, since the
78220         previous fix didn't work (there was another trailing $).  Use
78221         '[$]' to escape the $s.
78222
78223 2003-07-15  Karl Berry  <karl@gnu.org>
78224
78225         * lib/vasnprintf.c: update from gettext.
78226
78227 2003-07-15  Karl Berry  <karl@gnu.org>
78228
78229         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
78230         gets expanded when surrounded by '$'.
78231
78232 2003-07-15  Jim Meyering  <jim@meyering.net>
78233
78234         * modules/save-cwd: Don't depend on error.  From Derek Price.
78235
78236 2003-07-15  Jim Meyering  <jim@meyering.net>
78237
78238         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
78239
78240 2003-07-14  Simon Josefsson  <jas@extundo.com>
78241
78242         * modules/mempcpy: New file.
78243         * MODULES.html.sh (func_all_modules): Add mempcpy.
78244
78245 2003-07-14  Simon Josefsson  <jas@extundo.com>
78246
78247         * m4/mempcpy.m4: New file.
78248
78249 2003-07-14  Simon Josefsson  <jas@extundo.com>
78250
78251         * lib/mempcpy.h: New file.
78252         * lib/mempcpy.c: New file.
78253
78254 2003-07-14  Paul Eggert  <eggert@twinsun.com>
78255
78256         * modules/getdate, modules/posixtm: Depend on mktime.
78257
78258 2003-07-14  Paul Eggert  <eggert@twinsun.com>
78259
78260         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
78261         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
78262         unicodeio.c, unicodeio.h, unlocked-io.h:
78263         Switch from LGPL to GPL.
78264
78265 2003-07-14  Paul Eggert  <eggert@twinsun.com>
78266
78267         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
78268         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
78269         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
78270         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
78271         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
78272         updated automatically by ../config/srclist-update.  This changes
78273         their license from LPGL to GPL.
78274
78275 2003-07-14  Paul Eggert  <eggert@twinsun.com>
78276
78277         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
78278         assumed to refer to the root of the most recent stable gettext version.
78279         * config/srclistvars.sh: Add defaults for eggert.
78280         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
78281         Match "This program" as well as "The program".  This is needed
78282         for gettext.
78283
78284 2003-07-14  Jim Meyering  <jim@meyering.net>
78285
78286         Don't emit diagnostics.  Let callers do that.
78287         * lib/save-cwd.c: Don't include "error.h".
78288         (save_cwd): Don't call error.  Ensure that errno is valid
78289         when returning nonzero.
78290
78291         * lib/save-cwd.h (restore_cwd): Update prototype.
78292         * lib/save-cwd.c (restore_cwd): Remove two parameters.
78293         Simplify.  Don't call error upon failure.  Let callers do that.
78294         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
78295         when auditing is enabled.  But don't bother updating the #if.
78296
78297 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
78298
78299         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
78300         it breaks C++ compilation.
78301         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
78302
78303 2003-07-10  Simon Josefsson  <jas@extundo.com>
78304
78305         * modules/strchrnul (Makefile.am): Add strchrnul.h.
78306
78307 2003-07-10  Jim Meyering  <jim@meyering.net>
78308
78309         * m4/clock_time.m4: Remove trailing blank.
78310         * m4/intmax_t.m4: Likewise.
78311
78312 2003-07-10  Jim Meyering  <jim@meyering.net>
78313
78314         * lib/vasnprintf.c: Remove trailing blanks.
78315         Make cpp indentation consistent.
78316
78317 2003-07-09  Paul Eggert  <eggert@twinsun.com>
78318
78319         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
78320         posixver.c, strftime.c, strnlen.c, strverscmp.c:
78321         Switch from LGPL to GPL.
78322
78323 2003-07-09  Paul Eggert  <eggert@twinsun.com>
78324
78325         * config/srclist.txt: Sort sublists.  Add
78326         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
78327         that differ from gnulib for one reason or another; we'd like this list
78328         to be smaller but for now let's document what we have.
78329
78330 2003-07-08  Paul Eggert  <eggert@twinsun.com>
78331
78332         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
78333         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
78334         and sweeter "eval x=$x".
78335         * config/srclist.txt: Get lib/argp* from glibc.
78336
78337 2003-07-07  Paul Eggert  <eggert@twinsun.com>
78338
78339         * lib/mktime.c: Fix some boundary cases and remove need for floating
78340         point.
78341
78342         Issue a compile-time diagnostic if time_t is floating point, or if
78343         two's complement arithmetic is not in effect, or if arithmetic
78344         right shift does not propagate the sign.  These assumptions were
78345         all in the original code but they weren't checked.
78346
78347         (TIME_T_MIDPOINT, verify): New macros.
78348         (__isleap): Remove; it has integer overflow problems.
78349         (leapyear): New function, without those problems.
78350         (ydhms_tm_diff): Remove; splitting into two parts.
78351         (ydhms_diff): New function, containing the arithmetic part of
78352         the old ydhms_tm_diff function.  Issue a compile-time
78353         diagnostic if we are not using C99 integer division.
78354         Avoid casts when possible.
78355         (guess_time_tm): New function, containing the checking part of
78356         the old ydhms_tm_diff function.  Return the new value, rather than
78357         the difference between it and the old.  Accept a new argument T
78358         so that *T specifies the old value.  Check for overflow in the result.
78359
78360         (__mktime_internal): Use a time_t offset, not a long int offset.
78361         This undoes the 2003-06-04 change, which is no longer needed now
78362         that we have better overflow checking.
78363         (localtime_offset): Likewise.
78364
78365         (__mktime_internal): Avoid harmful overflow on hosts where time_t
78366         and long are 64-bit but int is only 32-bit.
78367         (ydhms_diff): Use long int to store year1 and yday1.
78368         Issue a compile-time diagnostic if long int is not wide enough.
78369
78370         (__mktime_internal): Use long int to store adjusted year and yday.
78371         Use plain C rather than preprocessor commands, if that doesn't
78372         affect efficiency.
78373         Check for overflow (and try to repair) after each probe
78374         rather than checking only at the very end.  This avoids some bugs
78375         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
78376         does not equal GMT offset at maximum time).
78377         Use integer to check for overflow rather than floating point; this
78378         is more portable to non-IEEE hosts, and is a tad faster.
78379         When we detect that we are oscillating between two values,
78380         don't check whether tm_isdst has the requested value, since
78381         we already know the answer.  When tm_isdst has the wrong value,
78382         use a different heuristic to find the right one, based on the
78383         extreme values actually observed in practice in tz2003a,
78384         rather than the (overly optimistic) "previous 3 calendar quarters".
78385
78386         (not_equal_tm, print_tm, check_result): Use "const T" rather than
78387         "T const" to accommodate glibc style.
78388         (check_result): Use less-confusing report format.  "long" -> "long int.
78389         (main): Likewise.
78390         Don't loop if the iteration overflows time_t.
78391         Allow a negative step in the iteration.
78392
78393 2003-07-06  Karl Berry  <karl@gnu.org>
78394
78395         * config/depcomp: update from automake.
78396         * config/config.sub: update from prep.
78397
78398 2003-07-03  Karl Berry  <karl@gnu.org>
78399
78400         * config/config.guess: update from prep.
78401
78402 2003-07-01  Paul Eggert  <eggert@twinsun.com>
78403
78404         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
78405         xreadlink.c now includes it unconditionally.
78406
78407 2003-07-01  Paul Eggert  <eggert@twinsun.com>
78408
78409         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
78410         having it depend on HAVE_SYS_TYPES_H.
78411
78412 2003-07-01  Bruno Haible  <bruno@clisp.org>
78413
78414         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
78415         <sys/types.h> should be sufficient.
78416         Reported by Paul Eggert.
78417
78418 2003-06-26  Karl Berry  <karl@gnu.org>
78419
78420         * config/depcomp: update from automake.
78421
78422 2003-06-26  Bruno Haible  <bruno@clisp.org>
78423
78424         * modules/human: Depend on module stdbool.
78425
78426 2003-06-25  Bruno Haible  <bruno@clisp.org>
78427
78428         * modules/readlink: New file.
78429         * modules/xreadlink: Depend on it.
78430         * MODULES.html.sh (func_all_modules): Add readlink.
78431
78432 2003-06-25  Bruno Haible  <bruno@clisp.org>
78433
78434         * m4/readlink.m4: New file.
78435
78436 2003-06-25  Bruno Haible  <bruno@clisp.org>
78437
78438         * lib/readlink.c: New file.
78439
78440 2003-06-22  Karl Berry  <karl@gnu.org>
78441
78442         * config/srclist.txt: update mkinstalldirs from automake.
78443         * config/mkinstalldirs: update.
78444
78445 2003-06-22  Bruno Haible  <bruno@clisp.org>
78446
78447         Portability to mingw32.
78448         * m4/ssize_t.m4: New file, from GNU gettext.
78449         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
78450         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
78451
78452 2003-06-22  Bruno Haible  <bruno@clisp.org>
78453
78454         * modules/safe-read: Add m4/ssize_t.m4.
78455         * modules/xreadlink: Add m4/ssize_t.m4.
78456
78457 2003-06-20  Bruno Haible  <bruno@clisp.org>
78458
78459         Assume C89, so PARAMS isn't needed.
78460         * lib/unicodeio.h (PARAMS): Remove.
78461         * lib/unicodeio.c: Don't use PARAMS.
78462
78463 2003-06-18  Karl Berry  <karl@gnu.org>
78464
78465         * config/config.{guess,sub}: update from prep.
78466
78467 2003-06-18  Jim Meyering  <jim@meyering.net>
78468
78469         Merge changes from coreutils.
78470         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
78471         Remove explicit declarations of xmalloc and realloc.
78472         Include xalloc.h.
78473         (read_utmp): Remove anachronistic cast of xmalloc.
78474
78475 2003-06-17  Paul Eggert  <eggert@twinsun.com>
78476
78477         Assume C89, so PARAMS isn't needed.
78478         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
78479         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
78480         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
78481         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
78482         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
78483         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
78484         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
78485         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
78486         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
78487         lib/xstrtod.h, lib/xstrtol.h: Likewise.
78488         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
78489         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
78490         no longer needed. Anyway, config.h should always be included before any
78491         other file.
78492
78493 2003-06-11  Simon Josefsson  <jas@extundo.com>
78494
78495         * modules/sysexits: New file.
78496         * MODULES.html.sh (func_all_modules): Add sysexits.
78497
78498 2003-06-11  Simon Josefsson  <jas@extundo.com>
78499
78500         * lib/sysexit_.h: New file.
78501
78502 2003-06-11  Derek Price  <derek@ximbiot.com>
78503
78504         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
78505         necessary.
78506
78507 2003-06-11  Bruno Haible  <bruno@clisp.org>
78508
78509         * m4/sysexits.m4: New file.
78510
78511 2003-06-10  Simon Josefsson  <jas@extundo.com>
78512
78513         * lib/argp.h: New file, from glibc.
78514         * lib/argp-ba.c: New file, from glibc.
78515         * lib/argp-eexst.c: New file, from glibc.
78516         * lib/argp-fmtstream.c: New file, from glibc.
78517         * lib/argp-fmtstream.h: New file, from glibc.
78518         * lib/argp-fs-xinl.c: New file, from glibc.
78519         * lib/argp-help.c: New file, from glibc.
78520         * lib/argp-namefrob.h: New file, from glibc.
78521         * lib/argp-parse.c: New file, from glibc.
78522         * lib/argp-pv.c: New file, from glibc.
78523         * lib/argp-pvh.c: New file, from glibc.
78524         * lib/argp-xinl.c: New file, from glibc.
78525
78526 2003-06-10  Simon Josefsson  <jas@extundo.com>
78527
78528         * modules/strchrnul: New file.
78529
78530 2003-06-10  Simon Josefsson  <jas@extundo.com>
78531
78532         * modules/argp: New file.
78533
78534 2003-06-10  Simon Josefsson  <jas@extundo.com>
78535
78536         * m4/strchrnul.m4: New file.
78537
78538 2003-06-10  Simon Josefsson  <jas@extundo.com>
78539
78540         * lib/strchrnul.h: New file.
78541         * lib/strchrnul.c: New file.
78542
78543 2003-06-10  Bruno Haible  <bruno@clisp.org>
78544
78545         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
78546
78547 2003-06-07  Karl Berry  <karl@gnu.org>
78548
78549         * config/config.{guess,sub}: update from prep.
78550
78551 2003-06-07  Jim Meyering  <jim@meyering.net>
78552
78553         * modules/strtod: Use $(...) notation, not @...@ for
78554         AC_REPLACE'd variables.
78555         * modules/localcharset: Likewise.
78556
78557 2003-06-07  Jim Meyering  <jim@meyering.net>
78558
78559         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
78560         in place of my name in the copyright comment.
78561         Remove definition and uses of __P.
78562
78563         From coreutils.
78564         * lib/stat.c: Don't declare xmalloc explicitly.
78565         Instead, include "xalloc.h".
78566         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
78567         xrealloc, and xcalloc return values.
78568         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
78569         Improve comment.
78570         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
78571
78572 2003-06-07  Bruno Haible  <bruno@clisp.org>
78573
78574         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
78575         avoid AC_CONFIG_LINKS.
78576         * modules/fnmatch (Makefile.am): Use explicit creation rule for
78577         fnmatch.h, to avoid AC_CONFIG_LINKS.
78578         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
78579
78580 2003-06-07  Bruno Haible  <bruno@clisp.org>
78581
78582         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
78583         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
78584         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
78585         directory.
78586         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
78587         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
78588         directory.
78589
78590 2003-06-06  Jim Meyering  <jim@meyering.net>
78591
78592         Merge from coreutils.
78593         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
78594         Consolidate declarations and initializations of *_base* locals.
78595
78596         Merge from coreutils.
78597         This avoids a core dump on systems without GNU putenv,
78598         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
78599         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
78600         (unsetenv): New static function, from GNU libc.
78601         (rpl_putenv): Use it.
78602
78603         * lib/modechange.c: Remove trailing blanks.
78604
78605         Merge from coreutils.
78606         * lib/fsusage.c: Remove declaration of statfs.
78607         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
78608
78609         * lib/posixtm.c: Include <stdbool.h> unconditionally.
78610
78611 2003-06-06  Jim Meyering  <jim@meyering.net>
78612
78613         * lib/stdbool_.h: Renamed from stdbool.h.in.
78614
78615 2003-06-06  Jim Meyering  <jim@meyering.net>
78616             Bruno Haible  <bruno@clisp.org>
78617
78618         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
78619         Adjust Makefile.am snippet not to redirect directly to target.
78620         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
78621
78622 2003-06-05  Paul Eggert  <eggert@twinsun.com>
78623
78624         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
78625         mismatch, look in future quarters as well as past.  This fixes a
78626         bug when processing fall-backwards gaps immediately after a long
78627         period of daylight-saving time.
78628
78629         * lib/mktime.c: Assume freestanding C89 or better.
78630         (HAVE_LIMITS_H): Remove.  Assume it's 1.
78631         (__P): Remove; not used.
78632         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
78633         (mktime, not_equal_tm, print_tm, check_result,
78634         main): Use prototypes.  Use const * where appropriate.
78635         (main): Fix typo in testing code that uncovered by above changes.
78636         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
78637
78638 2003-06-04  Paul Eggert  <eggert@twinsun.com>
78639
78640         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
78641         locale.h, localeconv.  This merges changes from coreutils.
78642
78643         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
78644         It can be removed after the next Autoconf is released.
78645         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
78646         needed.
78647
78648 2003-06-04  Paul Eggert  <eggert@twinsun.com>
78649
78650         * lib/mktime.c: Fix Debian bug 177940
78651         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
78652         (localtime_offset): Now long int, not time_t, because we want it
78653         to be guaranteed to be signed.  All uses changed.
78654         (__mktime_internal): If overflow would occur when adding offset,
78655         don't add it.
78656
78657         Merge 'human' changes from coreutils.  Rewrite to support
78658         locale-specific notations like thousands separators.
78659         * lib/human.c: Simplify authorship notice.
78660         Include human.h immediately after config.h.
78661         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
78662         <limits.h>: Do not include, since human.h does.
78663         (SIZE_MAX, UINTMAX_MAX): New macros.
78664         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
78665         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
78666         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
78667         (power_letter): Renamed from suffixes.
78668         (generate_suffix_backwards): Remove.
78669         (adjust_value): Now takes int style (because of human.h changes)
78670         and long double value (for greater precision on some platforms).
78671         (group_number): New function.
78672         (human_readable): Use it.  Use integer options, not enum.
78673         Put the options before the sizes in the arg list.
78674         Support all the new options.
78675         The old human_readable function has been removed;
78676         use inttostr.h instead.
78677         (human_readable, default_block_size, humblock):
78678         Use uintmax_t, not int, for block sizes.
78679         (human_readable_inexact, block_size_types): Remove.
78680         (block_size_opts): New constant.
78681         (human_options): Renamed from human_block_size, with new signature
78682         that allows block sizes up to UINTMAX_MAX.  All callers changed.
78683         * lib/human.h: Add copyright and authorship notice.
78684         Include <limits.h> and <stdbool.h> unconditionally.
78685         (PARAMS): Remove.  All uses removed.
78686         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
78687         (enum human_inexact_style): Remove tag; now a nameless enum.
78688         (human_floor, human_ceiling, human_round_to_even): Now have
78689         values 2, 0, 1 rather than -1, 1, 0.
78690         (human_group_digits, human_suppress_point_zero, human_autoscale,
78691         human_base_1024, human_SI, human_B): New constants.
78692         (human_readable_inexact, human_block_size): Remove.
78693         (human_readable): Size args are now uintmax_t, not int.
78694         (human_options): New decl.
78695
78696         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
78697         unnecessary now that we assume C89 or better.  This change
78698         imported from coreutils.
78699
78700         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
78701         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
78702         in the 2003-05-30 sync from glibc.
78703
78704         .h files should stand alone, but we shouldn't include <sys/types.h>
78705         if we can get away with just <stddef.h>.
78706
78707         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
78708         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
78709         rather than <sys/types.h>, as we merely need size_t.
78710         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
78711         to get size_t.
78712         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
78713         Include <stdio.h>, to get FILE.
78714         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
78715         memcasecmp.h has included <stddef.h> and all we need is size_t.
78716         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
78717         our interface, instead of including <sys/types.h>
78718
78719 2003-06-04  Paul Eggert  <eggert@twinsun.com>
78720
78721         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
78722         now, as glibc mktime is buggy on non-glibc systems.
78723
78724 2003-06-03  Karl Berry  <karl@gnu.org>
78725
78726         * config/config.sub: update from prep.
78727
78728 2003-06-02  Paul Eggert  <eggert@twinsun.com>
78729
78730         [from coreutils]
78731         Fix some minor time-related bugs with POSIX time arguments.
78732         Some valid time stamps were being rejected (notably -1, and
78733         time stamps before 1900 on 64-bit hosts).  And some invalid
78734         time stamps were being accepted, e.g. September 31.
78735
78736         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
78737         that we can return (time_t) -1 successfully.
78738         * lib/posixtm.c: Likewise.
78739         [HAVE_STDBOOL_H]: Include <stdbool.h>.
78740         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
78741         (t): Remove static var.
78742         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
78743         of static var.  All uses changed.
78744         (year): Do not reject years before 1900; they can occur with
78745         64-bit time_t.
78746         (posix_time_parse): Do not check for out-of-range components;
78747         that is now the caller's responsibility, since our checks were
78748         only approximations.
78749         (posixtime): Use mktime to check for out-of-range components,
78750         since it knows them exactly.
78751         If mktime returns (time_t) -1, check whether an error actually occurred
78752         by invoking localtime on -1.
78753         (main) [TEST_POSIXTIME]: Check for input data errors, and report
78754         posixtime failures better.
78755         Improve the test data (in comments only).
78756
78757 2003-06-02  Karl Berry  <karl@gnu.org>
78758
78759         * config/mkinstalldirs (version): new variable.
78760         (--version): new option.
78761         (usage): improve message.
78762
78763 2003-05-30  Karl Berry  <karl@gnu.org>
78764
78765         * lib/mktime.c: update from libc.
78766
78767 2003-05-30  Bruno Haible  <bruno@clisp.org>
78768
78769         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
78770         * config/config.rpath: Upgrade to gettext-0.12.1.
78771
78772 2003-05-30  Bruno Haible  <bruno@clisp.org>
78773
78774         * m4/gettext.m4: Upgrade to gettext-0.12.1.
78775         * m4/nls.m4: New file, from gettext-0.12.1.
78776         * m4/po.m4: New file, from gettext-0.12.1.
78777         * m4/progtest.m4: Upgrade to gettext-0.12.1.
78778
78779 2003-05-30  Bruno Haible  <bruno@clisp.org>
78780
78781         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
78782         * lib/localcharset.h: Likewise.
78783         * lib/localcharset.c: Likewise.
78784
78785 2003-05-29  Karl Berry  <karl@gnu.org>
78786
78787         * config/config.rpath: update from gettext.
78788
78789 2003-05-28  Paul Eggert  <eggert@twinsun.com>
78790
78791         Assume the headers required for C89 freestanding compilers.
78792         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
78793         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
78794         * m4/human.m4 (gl_HUMAN): Likewise.
78795         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
78796         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
78797         * m4/userspec.m4 (gl_USERSPEC): Likewise.
78798         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
78799         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78800         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
78801
78802 2003-05-28  Paul Eggert  <eggert@twinsun.com>
78803
78804         Assume the headers required for C89 freestanding compilers.
78805         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
78806         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
78807         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
78808         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
78809         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
78810         define, since <limits.h> is guaranteed to do that.
78811         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
78812         * lib/exclude.c: Include <stdbool.h> unconditionally.
78813         * lib/tempname.c: Include <stddef.h> unconditionally.
78814         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
78815         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
78816         <stddef.h> does that.
78817         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
78818         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
78819         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
78820         needed.
78821         * lib/xstrtol.c: Likewise.
78822         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
78823         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
78824
78825         * lib/addext.c (addext): Use assignment rather than cast, to avoid
78826         warnings on some platforms.
78827
78828         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
78829         arbitrarily.
78830
78831 2003-05-26  Jim Meyering  <jim@meyering.net>
78832
78833         Merge in a change from coreutils:
78834         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
78835         that is guaranteed to be `no'.  Use `no_such_member' to indicate
78836         that condition, rather than `-1' which is slightly misleading.
78837         Change the name of the cache variable to have the gl_ prefix.
78838         Prompted by a patch from Richard Dawe for DJGPP.
78839
78840 2003-05-24  Karl Berry  <karl@gnu.org>
78841
78842         * config/config.guess: update from prep.
78843
78844 2003-05-22  Karl Berry  <karl@gnu.org>
78845
78846         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
78847
78848 2003-05-20  Karl Berry  <karl@gnu.org>
78849
78850         * config/config.guess: update from prep.
78851
78852 2003-05-18  Karl Berry  <karl@gnu.org>
78853
78854         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
78855         might actually be set by the user.
78856
78857         * config/depcomp, install-sh, mdate-sh: update from automake.
78858
78859 2003-05-17  Bruno Haible  <bruno@clisp.org>
78860
78861         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
78862         invalid expansion for AC_EGREP_CPP.
78863         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
78864         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
78865         Suggested by Akim Demaille <akim@epita.fr> in
78866         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
78867
78868 2003-05-12  Jim Meyering  <jim@meyering.net>
78869
78870         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
78871         the space-padded-by-default conversion specifiers, %e, %k, %l.
78872
78873 2003-05-12  Bruno Haible  <bruno@clisp.org>
78874
78875         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
78876         the string is longer than 4 KB.
78877
78878 2003-05-11  Karl Berry  <karl@gnu.org>
78879
78880         * config/config.{guess,sub}: update from prep.
78881
78882 2003-05-09  Bruno Haible  <bruno@clisp.org>
78883
78884         * modules/error: Add m4/strerror_r.m4 to file list.
78885
78886 2003-05-03  Bruno Haible  <bruno@clisp.org>
78887
78888         Upgrade to Unicode-4.0.
78889         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
78890         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
78891         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
78892         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
78893         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
78894         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
78895         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
78896         Change width of U+E0100..U+E01EF from 1 to 0.
78897
78898 2003-04-25  Jim Meyering  <jim@meyering.net>
78899
78900         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
78901         of type size_t, not int.
78902
78903 2003-04-25  Bruno Haible  <bruno@clisp.org>
78904
78905         * lib/copy-file.c: Include <stddef.h>, for size_t.
78906
78907 2003-04-21  Paul Eggert  <eggert@twinsun.com>
78908
78909         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
78910         code which expansion is under static control.  Patch imported from
78911         Akim Demaille's patch to Bison; see
78912         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
78913
78914 2003-04-14  Bruno Haible  <bruno@clisp.org>
78915
78916         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
78917
78918 2003-04-11  Jim Meyering  <jim@meyering.net>
78919
78920         Merge changes from Coreutils.
78921
78922         2003-03-22  Jim Meyering  <jim@meyering.net>
78923
78924         * lib/strftime.c (widen): Cast alloca return value to proper type.
78925
78926         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
78927
78928         From GNU libc.
78929         * lib/strftime.c (my_strftime): Handle very large width
78930         specifications for numeric values correctly.  Improve checks for
78931         overflow.
78932
78933         2003-01-19  Jim Meyering  <jim@meyering.net>
78934
78935         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
78936         definitions.
78937         (nl_get_alt_digit) [! defined my_strftime]: Define.
78938         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
78939         _nl_get_alt_digit and _nl_get_walt_digit.
78940
78941         * lib/strftime.c (my_strftime): Merge in locale-related changes from
78942         libc. These changes have no effect outside of _LIBC.
78943
78944 2003-04-10  Bruno Haible  <bruno@clisp.org>
78945
78946         * modules/findprog: New file.
78947         * MODULES.html.sh (func_all_modules): Add it.
78948
78949 2003-04-10  Bruno Haible  <bruno@clisp.org>
78950
78951         * m4/findprog.m4: New file.
78952         * m4/eaccess.m4: New file.
78953
78954 2003-04-10  Bruno Haible  <bruno@clisp.org>
78955
78956         * lib/findprog.h: New file, from GNU gettext.
78957         * lib/findprog.c: New file, from GNU gettext.
78958
78959 2003-04-05  Jim Meyering  <jim@meyering.net>
78960
78961         Merge changes from Coreutils.
78962
78963         * lib/exclude.h (PARAMS): Remove definition and uses.
78964         * lib/exclude.c: Remove uses of `PARAMS'.
78965
78966         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
78967         Add test-cases for DOS filenames. Declare program_name.
78968         (main): Set up program_name.  Patch by Rich Dawe.
78969
78970         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
78971         error from mntctl.
78972         Use mntctl's return value to drive the entry-processing loop, since
78973         we can't rely on the value of the vmt_length member in the last
78974         entry.  On some systems doing so could result in exhausting
78975         virtual memory.  Based in part on a patch from Mike Jetzer.
78976
78977 2003-04-04  Bruno Haible  <bruno@clisp.org>
78978
78979         * modules/linebreak: New file.
78980         * MODULES.html.sh (func_all_modules): Add it.
78981
78982 2003-04-04  Bruno Haible  <bruno@clisp.org>
78983
78984         * m4/linebreak.m4: New file.
78985
78986 2003-04-04  Bruno Haible  <bruno@clisp.org>
78987
78988         * lib/linebreak.h: New file, from GNU gettext.
78989         * lib/linebreak.c: New file, from GNU gettext with slight
78990         modifications.
78991         * lib/lbrkprop.h: New file, from GNU gettext.
78992
78993 2003-04-03  Bruno Haible  <bruno@clisp.org>
78994
78995         * modules/utf8-ucs4: New file.
78996         * modules/utf16-ucs4: New file.
78997         * modules/ucs4-utf8: New file.
78998         * modules/ucs4-utf16: New file.
78999         * MODULES.html.sh (func_all_modules): Add them.
79000
79001 2003-04-03  Bruno Haible  <bruno@clisp.org>
79002
79003         * m4/utf-ucs4.m4: New file.
79004         * m4/ucs4-utf.m4: New file.
79005
79006 2003-04-03  Bruno Haible  <bruno@clisp.org>
79007
79008         * lib/utf8-ucs4.h: New file, from GNU gettext.
79009         * lib/utf16-ucs4.h: New file, from GNU gettext.
79010         * lib/ucs4-utf8.h: New file, from GNU gettext.
79011         * lib/ucs4-utf16.h: New file, from GNU gettext.
79012
79013 2003-04-02  Bruno Haible  <bruno@clisp.org>
79014
79015         * modules/binary-io: New file.
79016         * MODULES.html.sh (func_all_modules): Add it.
79017
79018 2003-04-02  Bruno Haible  <bruno@clisp.org>
79019
79020         * lib/binary-io.h: New file, from GNU gettext.
79021
79022 2003-04-01  Bruno Haible  <bruno@clisp.org>
79023
79024         * modules/pathname: New file.
79025         * MODULES.html.sh (func_all_modules): Add it.
79026
79027 2003-04-01  Bruno Haible  <bruno@clisp.org>
79028
79029         * lib/pathname.h: New file, from GNU gettext.
79030         * lib/concatpath.c: New file, from GNU gettext.
79031
79032 2003-03-30  Bruno Haible  <bruno@clisp.org>
79033
79034         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
79035
79036 2003-03-30  Bruno Haible  <bruno@clisp.org>
79037
79038         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
79039         function chown() doesn't exist.
79040
79041 2003-03-28  Bruno Haible  <bruno@clisp.org>
79042
79043         * modules/copy-file: New file.
79044         * MODULES.html.sh (func_all_modules): Add it.
79045
79046 2003-03-28  Bruno Haible  <bruno@clisp.org>
79047
79048         * m4/copy-file.m4: New file.
79049
79050 2003-03-28  Bruno Haible  <bruno@clisp.org>
79051
79052         * lib/copy-file.h: New file, from GNU gettext.
79053         * lib/copy-file.c: New file, from GNU gettext.
79054
79055 2003-03-18  Jim Meyering  <jim@meyering.net>
79056
79057         * lib/quote.c (quote_n): Fix typo in comment.
79058
79059 2003-03-18  Bruno Haible  <bruno@clisp.org>
79060
79061         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
79062         checking.
79063         * m4/onceonly_2_57.m4: Likewise.
79064
79065 2003-03-17  Bruno Haible  <bruno@clisp.org>
79066
79067         * m4/onceonly.m4: Require autoconf 2.54 or newer.
79068         (m4_quote): Remove macro.
79069         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
79070
79071 2003-03-14  Jim Meyering  <jim@meyering.net>
79072
79073         Merge changes from Coreutils.
79074         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
79075         to be const, in order to avoid warnings.
79076         (obstack_room): Likewise.
79077         (obstack_empty_p): Likewise.
79078
79079 2003-03-14  Bruno Haible  <bruno@clisp.org>
79080
79081         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
79082         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
79083
79084 2003-03-13  Paul Eggert  <eggert@twinsun.com>
79085
79086         Merge changes from Bison.
79087         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
79088         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
79089         when compiling Bison 1.875's `bitset bset = obstack_alloc
79090         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
79091         * lib/hash.c: Include <stdbool.h> unconditionally.
79092
79093 2003-03-13  Paul Eggert  <eggert@twinsun.com>
79094
79095         * m4/onceonly.m4 (m4_quote): New macro.
79096         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
79097         Quote AC_FOREACH variable-expansions properly.
79098
79099 2003-03-13  Paul Eggert  <eggert@twinsun.com>
79100
79101         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
79102
79103 2003-03-09  Paul Eggert  <eggert@twinsun.com>
79104
79105         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
79106         Reported by Bruce Becker; see:
79107         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
79108
79109 2003-03-03  Paul Eggert  <eggert@twinsun.com>
79110             Bruno Haible  <bruno@clisp.org>
79111
79112         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
79113         Reported by John Hughes, see
79114         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
79115
79116 2003-02-20  Bruno Haible  <bruno@clisp.org>
79117
79118         * MODULES.html.sh (func_all_modules): Add poll.
79119
79120 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
79121
79122         * modules/poll: New file.
79123
79124 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
79125
79126         * lib/poll_.h: New file.
79127         * lib/poll.c: New file.
79128
79129 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
79130
79131         * m4/poll.m4: New file.
79132
79133 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
79134
79135         * modules/mathl: New file.
79136
79137 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
79138
79139         * lib/mathl.h: New file.
79140         * lib/acosl.c: New file.
79141         * lib/asinl.c: New file.
79142         * lib/atanl.c: New file.
79143         * lib/ceill.c: New file.
79144         * lib/cosl.c: New file.
79145         * lib/expl.c: New file.
79146         * lib/floorl.c: New file.
79147         * lib/frexpl.c: New file.
79148         * lib/ldexpl.c: New file.
79149         * lib/logl.c: New file.
79150         * lib/sincosl.c: New file.
79151         * lib/sinl.c: New file.
79152         * lib/sqrtl.c: New file.
79153         * lib/tanl.c: New file.
79154         * lib/trigl.c: New file.
79155         * lib/trigl.h: New file.
79156
79157 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
79158
79159         * m4/mathl.m4: New file.
79160
79161 2003-02-18  Bruno Haible  <bruno@clisp.org>
79162
79163         * MODULES.html.sh (func_all_modules): Add mathl.
79164
79165 2003-02-17  Bruno Haible  <bruno@clisp.org>
79166
79167         * modules/mkdtemp: New module.
79168         * MODULES.html.sh (func_all_modules): Add it.
79169
79170 2003-02-17  Bruno Haible  <bruno@clisp.org>
79171
79172         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
79173
79174 2003-02-17  Bruno Haible  <bruno@clisp.org>
79175
79176         * lib/mkdtemp.h: New file, from GNU gettext.
79177         * lib/mkdtemp.c: New file, from GNU gettext.
79178
79179 2003-02-02  Jim Meyering  <jim@meyering.net>
79180
79181         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
79182         e.g. glibc-2.2.93.
79183
79184 2003-01-31  Bruno Haible  <bruno@clisp.org>
79185
79186         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
79187         'rpl_rename'.
79188         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
79189         'rpl_strnlen'.
79190         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
79191         'rpl_strtod'.
79192         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
79193         'rpl_utime'.
79194
79195 2003-01-31  Bruno Haible  <bruno@clisp.org>
79196
79197         * lib/rename.c: #undef rename before defining rpl_rename.
79198         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
79199
79200 2003-01-30  Bruno Haible  <bruno@clisp.org>
79201
79202         * modules/vasnprintf, modules/vasprintf: New modules.
79203         * MODULES.html.sh (func_all_modules): Add them.
79204
79205 2003-01-30  Bruno Haible  <bruno@clisp.org>
79206
79207         * m4/signed.m4: New file, from GNU gettext.
79208         * m4/longdouble.m4: New file, from GNU gettext.
79209         * m4/wchar_t.m4: New file, from GNU gettext.
79210         * m4/wint_t.m4: New file, from GNU gettext.
79211         * m4/vasnprintf.m4: New file.
79212         * m4/vasprintf.m4: New file.
79213
79214 2003-01-30  Bruno Haible  <bruno@clisp.org>
79215
79216         * lib/printf-args.h: New file, from GNU gettext.
79217         * lib/printf-args.c: New file, from GNU gettext.
79218         * lib/printf-parse.h: New file, from GNU gettext.
79219         * lib/printf-parse.c: New file, from GNU gettext.
79220         * lib/vasnprintf.h: New file, from GNU gettext.
79221         * lib/vasnprintf.c: New file, from GNU gettext.
79222         * lib/asnprintf.c: New file, from GNU gettext.
79223         * lib/vasprintf.h: New file, from GNU gettext with modifications.
79224         * lib/vasprintf.c: New file, from GNU gettext.
79225         * lib/asprintf.c: New file, from GNU gettext.
79226
79227 2003-01-29  Bruno Haible  <bruno@clisp.org>
79228
79229         * modules/stpncpy: New module.
79230         * MODULES.html.sh (func_all_modules): Add it.
79231
79232 2003-01-29  Bruno Haible  <bruno@clisp.org>
79233
79234         * m4/stpncpy.m4: New file.
79235
79236 2003-01-29  Bruno Haible  <bruno@clisp.org>
79237
79238         * lib/stpncpy.h: New file, from GNU gettext with modifications.
79239         * lib/stpncpy.c: New file, from GNU gettext with modifications.
79240
79241 2003-01-28  Bruno Haible  <bruno@clisp.org>
79242
79243         * modules/c-ctype: New module.
79244         * MODULES.html.sh (func_all_modules): Add it.
79245
79246 2003-01-28  Bruno Haible  <bruno@clisp.org>
79247
79248         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
79249         Paul Eggert.
79250         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
79251         Paul Eggert.
79252
79253 2003-01-27  Bruno Haible  <bruno@clisp.org>
79254
79255         * modules/xsetenv: New module.
79256         * MODULES.html.sh (func_all_modules): Add it.
79257
79258 2003-01-27  Bruno Haible  <bruno@clisp.org>
79259
79260         * lib/xsetenv.h: New file, from GNU gettext.
79261         * lib/xsetenv.c: New file, from GNU gettext.
79262
79263 2003-01-23  Jim Meyering  <jim@meyering.net>
79264
79265         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
79266         from working on systems without dirfd (at least Irix and OSF1/Tru64).
79267
79268 2003-01-23  Bruno Haible  <bruno@clisp.org>
79269
79270         * modules/minmax: New module.
79271         * MODULES.html.sh (func_all_modules): Add it.
79272
79273 2003-01-23  Bruno Haible  <bruno@clisp.org>
79274
79275         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
79276         Eggert.
79277
79278 2003-01-22  Bruno Haible  <bruno@clisp.org>
79279
79280         * modules/exit: New module.
79281         * MODULES.html.sh (func_all_modules): Add it.
79282
79283 2003-01-22  Bruno Haible  <bruno@clisp.org>
79284
79285         * lib/exit.h: New file, from GNU gettext.
79286
79287 2003-01-19  Bruno Haible  <bruno@clisp.org>
79288
79289         * gnulib-tool: Recognize option --extract-maintainer.
79290         (func_get_maintainer): New function.
79291         * modules/*: Add Maintainer entry.
79292
79293 2003-01-16  Jim Meyering  <jim@meyering.net>
79294
79295         * m4/regex.m4: The `regex' struct is both input and output.
79296         Initialize it before each use.  Patch by Tim Waugh.
79297
79298 2003-01-16  Bruno Haible  <bruno@clisp.org>
79299
79300         * MODULES.html.sh: Add a table of contents. Add the module name as
79301         leftmost column. Add hyperlinks.
79302
79303 2003-01-15  Bruno Haible  <bruno@clisp.org>
79304
79305         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
79306
79307 2003-01-15  Bruno Haible  <bruno@clisp.org>
79308
79309         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
79310         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
79311         suffix.
79312
79313 2003-01-15  Bruno Haible  <bruno@clisp.org>
79314
79315         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
79316
79317 2003-01-15  Bruno Haible  <bruno@clisp.org>
79318
79319         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
79320         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
79321
79322 2003-01-14  Jim Meyering  <jim@meyering.net>
79323
79324         * lib/same.c (same_name): Tweak a comment.
79325
79326 2003-01-14  Bruno Haible  <bruno@clisp.org>
79327
79328         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
79329         when a string comparison is sufficient.
79330
79331 2003-01-14  Bruno Haible  <bruno@clisp.org>
79332
79333         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
79334         'unsigned int'.
79335
79336 2003-01-14  Bruno Haible  <bruno@clisp.org>
79337
79338         * lib/hash-pjw.c: Add comment about low quality of this function.
79339
79340 2003-01-13  Bruno Haible  <bruno@clisp.org>
79341
79342         * modules/stpcpy: Distribute lib/stpcpy.h.
79343         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
79344
79345 2003-01-13  Bruno Haible  <bruno@clisp.org>
79346
79347         * modules/*: Add a description.
79348         * modules/strpbrk: Fix Makefile.am snippet.
79349         * modules/strtoimax: Fix dependencies.
79350         * modules/strtoumax: Likewise.
79351
79352 2003-01-13  Bruno Haible  <bruno@clisp.org>
79353
79354         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
79355         * modules/alloca (Makefile.am): All object files depend on alloca.h.
79356         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
79357
79358 2003-01-13  Bruno Haible  <bruno@clisp.org>
79359
79360         * gnulib-tool (func_create_testdir): Store config/* files in the main
79361         directory.
79362         * config.rpath: Move to ...
79363         * config/config.rpath: ... here.
79364         * modules/gettext: Contains config/config.rpath, not config.rpath.
79365         * modules/iconv: Likewise.
79366
79367 2003-01-12  Paul Eggert  <eggert@twinsun.com>
79368
79369         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
79370         to avoid collisions with libcurses and libreadline.
79371
79372         * m4/getstr.m4: Remove.
79373         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
79374
79375 2003-01-12  Paul Eggert  <eggert@twinsun.com>
79376
79377         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
79378         to avoid collisions with libcurses and libreadline.
79379
79380         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
79381         * lib/getstr.h, getstr.c: Remove.
79382         * lib/getline.c: Include "getline.h", to check interface.
79383         Move body of old getstr.c here: this defines MIN_CHUNK and
79384         declares getdelim2, which is renamed from getstr.
79385         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
79386
79387         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
79388         All uses changed.
79389         * lib/linebuffer.h: Likewise.
79390         (readline): Remove backward-compatibility macro.
79391
79392 2003-01-12  Paul Eggert  <eggert@twinsun.com>
79393
79394         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
79395         to avoid collisions with libcurses and libreadline.
79396         * getstr: Remove.
79397         * MODULES.html.sh: Remove getstr.
79398         * modules/getline: Depend on unlocked-io, not getstr.
79399
79400 2003-01-12  Jim Meyering  <jim@meyering.net>
79401
79402         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
79403
79404 2003-01-10  Bruno Haible  <bruno@clisp.org>
79405
79406         * modules/alloca: Change Makefile.am requirements. Simplify Include
79407         requirements. Add lib/alloca_.h to file list.
79408
79409 2003-01-10  Bruno Haible  <bruno@clisp.org>
79410
79411         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
79412
79413 2003-01-10  Bruno Haible  <bruno@clisp.org>
79414
79415         * lib/alloca_.h: New file.
79416         * lib/getdate.y: Unconditionally include alloca.h.
79417         * lib/makepath.c: Likewise.
79418         * lib/setenv.c: Likewise.
79419         * lib/userspec.c: Likewise.
79420
79421 2003-01-09  Karl Berry  <karl@gnu.org>
79422
79423         * MODULES.html.sh: include `dirname $0` in PATH, to find
79424         gnulib-tool.
79425
79426 2003-01-09  Bruno Haible  <bruno@clisp.org>
79427
79428         * modules/stdbool: Change configure.ac, Makefile.am requirements.
79429         Simplify Include requirements. Add lib/stdbool.h.in to file list.
79430
79431 2003-01-09  Bruno Haible  <bruno@clisp.org>
79432
79433         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
79434
79435 2003-01-09  Bruno Haible  <bruno@clisp.org>
79436
79437         * lib/stdbool.h.in: New file.
79438
79439 2003-01-09  Bruno Haible  <bruno@clisp.org>
79440
79441         * gnulib-tool (func_all_modules): Ignore files ending in ~.
79442         * MODULES.html.sh: Likewise.
79443
79444 2003-01-08  Jim Meyering  <jim@meyering.net>
79445
79446         * lib/full-write.c: Undefine and define-away `const' after inclusion
79447         of errno.h, not before.  Suggestion from Bruno Haible.
79448
79449 2003-01-08  Bruno Haible  <bruno@clisp.org>
79450
79451         * modules/full-read: Depend on full-write.
79452
79453 2003-01-08  Bruno Haible  <bruno@clisp.org>
79454
79455         * lib/safe-read.c: Include specification header first, to ensure its
79456         selfcontainedness.
79457         * lib/full-write.c: Likewise.
79458
79459 2003-01-07  Jim Meyering  <jim@meyering.net>
79460
79461         * lib/full-write.c: Rework so that it may serve to define full_read,
79462         too.
79463         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
79464
79465 2003-01-07  Bruno Haible  <bruno@clisp.org>
79466
79467         * lib/strtoimax.c: Include <stdint.h> as an alternative to
79468         <inttypes.h>.
79469         * lib/xstrtol.h: Likewise.
79470         * lib/xstrtoimax.c: Likewise.
79471         * lib/xstrtoumax.c: Likewise.
79472         * lib/human.h: Likewise.
79473
79474         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
79475         on systems that have <inttypes.h> but not <stdint.h>.
79476
79477 2003-01-07  Bruno Haible  <bruno@clisp.org>
79478
79479         * MODULES.html.sh: Add copyright notice.
79480         (missed_files): Omit CVS directory entries.
79481         (func_module): Make it work with sed-3.02.
79482         * MODULES.txt: Remove file.
79483
79484 2003-01-06  Jim Meyering  <jim@meyering.net>
79485
79486         * lib/version-etc.c: Update year in translatable copyright string.
79487
79488 2003-01-03  Karl Berry  <karl@gnu.org>
79489
79490         * config/config.{guess,sub}: update from prep.
79491
79492 2003-01-02  Karl Berry  <karl@gnu.org>
79493
79494         * doc/COPYING.DOC: belatedly updated to 1.2.
79495
79496 2003-01-01  Karl Berry  <karl@gnu.org>
79497
79498         * gnulib-tool (func_verify_module): report module name $module in
79499         error message, not $1.
79500         * gnulib-tool (create-testdir): don't complain if destdir couldn't
79501         be created, only if it doesn't exist.
79502         * gnulib-tool (last_checkin_date): don't expand the $Date here.
79503
79504 2002-12-31  Paul Eggert  <eggert@twinsun.com>
79505
79506         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
79507
79508 2002-12-31  Paul Eggert  <eggert@twinsun.com>
79509
79510         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
79511         memcmp if strcoll doesn't work.
79512
79513 2002-12-31  Bruno Haible  <bruno@clisp.org>
79514
79515         * lib/utime.c (utime_null): No need to call ftruncate if the file was
79516         nonempty.
79517
79518 2002-12-31  Bruno Haible  <bruno@clisp.org>
79519
79520         * lib/memcoll.c (STRCOLL): New macro.
79521         (memcoll): Use it.
79522
79523 2002-12-31  Bruno Haible  <bruno@clisp.org>
79524
79525         * lib/localcharset.h: New file.
79526         * lib/localcharset.c: Include it.
79527         * lib/unicodeio.c: Likewise.
79528
79529 2002-12-31  Bruno Haible  <bruno@clisp.org>
79530
79531         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
79532         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
79533
79534 2002-12-31  Bruno Haible  <bruno@clisp.org>
79535
79536         * lib/getline.h: Include <stddef.h>, for size_t.
79537
79538         * lib/unicodeio.h: Include <stddef.h>, for size_t.
79539         * lib/unicodeio.c: Don't include <stddef.h>.
79540
79541 2002-12-31  Bruno Haible  <bruno@clisp.org>
79542
79543         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
79544         HAVE_TM_ZONE.
79545
79546 2002-12-24  Karl Berry  <karl@gnu.org>
79547
79548         * config/config.guess: update from prep.
79549
79550 2002-12-24  Bruno Haible  <bruno@clisp.org>
79551
79552         General infrasructure.
79553         * m4/README: Rewritten.
79554         * m4/onceonly.m4: New file.
79555         * m4/onceonly_2_57.m4: New file.
79556
79557         Module atexit.
79558         * m4/atexit.m4: New file.
79559
79560         Module strtod.
79561         * m4/strtod.m4: New file.
79562
79563         Module strtol.
79564         * m4/strtol.m4: New file.
79565
79566         Module strtoul.
79567         * m4/strtoul.m4: New file.
79568
79569         Module memchr.
79570         * m4/memchr.m4: New file.
79571
79572         Module memcmp.
79573         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
79574         (jm_FUNC_MEMCMP): Invoke it.
79575
79576         Module memcpy.
79577         * m4/memcpy.m4: New file.
79578
79579         Module memmove.
79580         * m4/memmove.m4: New file.
79581
79582         Module memset.
79583         * m4/memset.m4: New file.
79584
79585         Module strcspn.
79586         * m4/strcspn.m4: New file.
79587
79588         Module strpbrk.
79589         * m4/strpbrk.m4: New file.
79590
79591         Module strstr.
79592         * m4/strstr.m4: New file.
79593
79594         Module strerror.
79595         * m4/strerror.m4: New file.
79596
79597         Module mktime.
79598         * m4/mktime.m4: Renamed from jm-mktime.m4.
79599         (gl_PREREQ_MKTIME): New macro.
79600         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
79601
79602         Module malloc.
79603         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
79604         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
79605         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
79606
79607         Module realloc.
79608         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
79609         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
79610         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
79611
79612         Module strftime.
79613         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
79614         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
79615         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
79616         gl_TM_GMTOFF.
79617         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
79618
79619         Module xalloc.
79620         * m4/xalloc.m4: New file.
79621
79622         Module alloca.
79623         * m4/alloca.m4: New file.
79624
79625         Module putenv.
79626         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
79627         (jm_FUNC_PUTENV): Invoke it.
79628
79629         Module setenv.
79630         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
79631         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
79632         when invoked twice.
79633         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
79634         gt_FUNC_SETENV.
79635
79636         Module memrchr.
79637         * m4/memrchr.m4: New file.
79638
79639         Module stpcpy.
79640         * m4/stpcpy.m4: New file.
79641
79642         Module strcase.
79643         * m4/strcase.m4: New file.
79644
79645         Module strdup.
79646         * m4/strdup.m4: New file.
79647
79648         Module strnlen.
79649         * m4/strnlen.m4: New file.
79650
79651         Module strndup.
79652         * m4/strndup.m4: New file.
79653
79654         Module xstrtod.
79655         * m4/xstrtod.m4: New file.
79656
79657         Module xstrtol.
79658         * m4/xstrtol.m4: New file.
79659
79660         Module getdate.
79661         * m4/getdate.m4: New file.
79662
79663         Module unlocked-io.
79664         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
79665         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
79666         * m4/jm-glibc-io.m4n: Remove file.
79667
79668         Module long-options.
79669         * m4/long-options.m4: New file.
79670
79671         Module md5.
79672         * m4/md5.m4: New file.
79673
79674         Module sha.
79675         * m4/sha.m4: New file.
79676
79677         Module getstr.
79678         * m4/getstr.m4: New file.
79679
79680         Module getline.
79681         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
79682         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
79683         <sys/types.h>, for size_t. Use the function name gnu_getline, not
79684         simply getline. Infoke gl_PREREQ_GETLINE.
79685
79686         Module obstack.
79687         * m4/obstack.m4: New file.
79688
79689         Module hash.
79690         * m4/hash.m4: New file.
79691
79692         Module readtokens.
79693         * m4/readtokens.m4: New file.
79694
79695         Module strverscmp.
79696         * m4/strverscmp.m4: New file.
79697
79698         Module stdbool.
79699         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
79700         OSF/1.
79701
79702         Module strtoll.
79703         * m4/strtoll.m4: New file.
79704
79705         Module strtoull.
79706         * m4/strtoull.m4: New file.
79707
79708         Module strtoimax.
79709         * m4/strtoimax.m4: New file.
79710
79711         Module strtoumax.
79712         * m4/strtoumax.m4: New file.
79713
79714         Module xstrtoimax.
79715         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
79716         jm_AC_PREREQ_XSTRTOIMAX.
79717         Moved the strtol prerequisites to strtol.m4.
79718         Moved the strtoll prerequisites to strtoll.m4.
79719         Moved the strtoimax prerequisites to strtoimax.m4.
79720
79721         Module xstrtoumax.
79722         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
79723         jm_AC_PREREQ_XSTRTOUMAX.
79724         Moved the strtoul prerequisites to strtoul.m4.
79725         Moved the strtoull prerequisites to strtoull.m4.
79726         Moved the strtoumax prerequisites to strtoumax.m4.
79727
79728         Module chown.
79729         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
79730         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
79731
79732         Module dup2.
79733         * m4/dup2.m4: New file.
79734
79735         Module ftruncate.
79736         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
79737         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
79738
79739         Module getgroups.
79740         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
79741         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
79742
79743         Module gettimeofday.
79744         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
79745         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
79746         gl_PREREQ_GETTIMEOFDAY.
79747
79748         Module mkdir.
79749         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
79750         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
79751
79752         Module mkstemp.
79753         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
79754         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
79755         jm_AC_TYPE_UINTMAX_T.
79756         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
79757
79758         Module stat.
79759         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
79760         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
79761
79762         Module lstat.
79763         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
79764         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
79765
79766         Module timespec.
79767         * m4/timespec.m4 (gl_TIMESPEC): New macro.
79768         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
79769         * m4/st_mtim.m4: Indentation.
79770
79771         Module nanosleep.
79772         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
79773         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
79774         gl_PREREQ_NANOSLEEP.
79775
79776         Module regex.
79777         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
79778         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
79779         (gl_REGEX): New macro.
79780
79781         Module rename.
79782         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
79783         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
79784
79785         Module rmdir.
79786         * m4/rmdir.m4: New file.
79787
79788         Module utime.
79789         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
79790         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
79791         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
79792
79793         Module dirname.
79794         * m4/dirname.m4: New file.
79795
79796         Module getopt.
79797         * m4/getopt.m4: New file.
79798
79799         Module unistd-safer.
79800         * m4/unistd-safer.m4: New file.
79801
79802         Module fnmatch.
79803         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
79804         declaration.
79805         (gl_PREREQ_FNMATCH_EXTRA): New macro.
79806         (gl_FUNC_FNMATCH_POSIX): New macro.
79807         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
79808         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
79809         simply fnmatch.
79810
79811         Module exclude.
79812         * m4/exclude.m4: New file.
79813
79814         Module human.
79815         * m4/human.m4: New file.
79816
79817         Module acl.
79818         * m4/acl.m4: Nop.
79819
79820         Module backupfile.
79821         * m4/backupfile.m4: New file.
79822         * m4/d-ino.m4: Indentation.
79823
79824         Module fsusage.
79825         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
79826         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
79827         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
79828
79829         Module dirfd.
79830         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
79831         requirements.
79832
79833         Module euidaccess.
79834         * m4/euidaccess.m4: New file.
79835
79836         Module file-type.
79837         * m4/file-type.m4: New file.
79838
79839         Module fileblocks.
79840         * m4/fileblocks.m4: New file.
79841
79842         Module filemode.
79843         * m4/filemode.m4: New file.
79844
79845         Module isdir.
79846         * m4/isdir.m4: New file.
79847
79848         Module lchown.
79849         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
79850         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
79851
79852         Module makepath.
79853         * m4/makepath.m4: New file.
79854
79855         Module modechange.
79856         * m4/modechange.m4: New file.
79857
79858         Module mountlist.
79859         * m4/mountlist.m4: New file.
79860         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
79861         Indentation.
79862
79863         Module path-concat.
79864         * m4/path-concat.m4: New file.
79865
79866         Module pathmax.
79867         * m4/pathmax.m4: New file.
79868
79869         Module same.
79870         * m4/same.m4: New file.
79871
79872         Module save-cwd.
79873         * m4/save-cwd.m4: New file.
79874
79875         Module savedir.
79876         * m4/savedir.m4: New file.
79877
79878         Module xgetcwd.
79879         * m4/xgetcwd.m4: New file.
79880         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
79881
79882         Module xreadlink.
79883         * m4/xreadlink.m4: New file.
79884
79885         Module safe-read.
79886         * m4/safe-read.m4: New file.
79887
79888         Module safe-write.
79889         * m4/safe-write.m4: New file.
79890
79891         Module closeout.
79892         * m4/closeout.m4: New file.
79893
79894         Module stdio-safer.
79895         * m4/stdio-safer.m4: New file.
79896
79897         Module getpass.
79898         * m4/getpass.m4: New file.
79899
79900         Module getugroups.
79901         * m4/getugroups.m4: New file.
79902
79903         Module group-member.
79904         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
79905         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
79906
79907         Module idcache.
79908         * m4/idcache.m4: New file.
79909
79910         Module userspec.
79911         * m4/userspec.m4: New file.
79912
79913         Module gettime.
79914         * m4/clock_time.m4: New file.
79915         * m4/gettime.m4: New file.
79916
79917         Module settime.
79918         * m4/settime.m4: New file.
79919
79920         Module posixtm.
79921         * m4/posixtm.m4: New file.
79922
79923         Module gethostname.
79924         * m4/gethostname.m4: New file.
79925
79926         Module canon-host.
79927         * m4/canon-host.m4: New file.
79928
79929         Module gettext.
79930         * m4/codeset.m4: New file, from gettext-0.11.5.
79931         * m4/gettext.m4: New file, from gettext-0.11.5.
79932         * m4/glibc21.m4: New file, from gettext-0.11.5.
79933         * m4/iconv.m4: New file, from gettext-0.11.5.
79934         * m4/intdiv0.m4: New file, from gettext-0.11.5.
79935         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
79936         * m4/inttypes.m4: New file, from gettext-0.11.5.
79937         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
79938         * m4/isc-posix.m4: New file, from gettext-0.11.5.
79939         * m4/lcmessage.m4: New file, from gettext-0.11.5.
79940         * m4/lib-ld.m4: New file, from gettext-0.11.5.
79941         * m4/lib-link.m4: New file, from gettext-0.11.5.
79942         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
79943         * m4/progtest.m4: New file, from gettext-0.11.5.
79944         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
79945         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
79946         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
79947
79948         Module localcharset.
79949         * m4/localcharset.m4: New file.
79950
79951         Module hard-locale.
79952         * m4/hard-locale.m4: New file.
79953
79954         Module mbswidth.
79955         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
79956         onceonly macros.
79957         * m4/mbrtowc.m4: Add comment.
79958
79959         Module memcasecmp.
79960         * m4/memcasecmp.m4: New file.
79961
79962         Module memcoll.
79963         * m4/memcoll.m4: New file.
79964
79965         Module unicodeio.
79966         * m4/unicodeio.m4: New file.
79967
79968         Module rpmatch.
79969         * m4/rpmatch.m4: New file.
79970
79971         Module yesno.
79972         * m4/yesno.m4: New file.
79973
79974         Module exitfail.
79975         * m4/exitfail.m4: New file.
79976
79977         Module c-stack.
79978         * m4/c-stack.m4 (gl_C_STACK): New macro.
79979         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
79980
79981         Module error.
79982         * m4/error.m4 (gl_ERROR): New macro.
79983         (jm_PREREQ_ERROR): Use onceonly macros.
79984
79985         Module fatal.
79986         * m4/fatal.m4: New file.
79987
79988         Module getloadavg.
79989         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
79990         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
79991
79992         Module getpagesize.
79993         * m4/getpagesize.m4: New file.
79994
79995         Module getusershell.
79996         * m4/getusershell.m4: New file.
79997
79998         Module physmem.
79999         * m4/physmem.m4: New file.
80000
80001         Module posixver.
80002         * m4/posixver.m4: New file.
80003
80004         Module quotearg.
80005         * m4/quotearg.m4: New file.
80006
80007         Module quote.
80008         * m4/quote.m4: New file.
80009
80010         Module readutmp.
80011         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
80012
80013         Module sig2str.
80014         * m4/sig2str.m4: New file.
80015
80016         Other.
80017         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
80018         ulonglong.m4.
80019         * m4/intmax_t.m4: New file.
80020         * m4/d-type.m4: Indentation.
80021         * m4/jm-macros.m4: Update.
80022         * m4/prereq.m4 (jm_PREREQ): Update.
80023         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
80024         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
80025         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
80026         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
80027         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
80028         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
80029         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
80030         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
80031         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
80032         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
80033         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
80034         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
80035         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
80036         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
80037         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
80038         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
80039         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
80040         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
80041         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
80042
80043 2002-12-24  Bruno Haible  <bruno@clisp.org>
80044
80045         * MODULES.txt: Update according to m4/ changes.
80046
80047         Module gettext.
80048         * config.rpath: New file, from gettext-0.11.5.
80049
80050         * modules/*: New module descriptions.
80051         * gnulib-tool: New file.
80052         * MODULES.html.sh: New file.
80053
80054 2002-12-21  Karl Berry  <karl@gnu.org>
80055
80056         * doc/fdl.texi: update to version 1.2.
80057
80058 2002-12-19  Karl Berry  <karl@gnu.org>
80059
80060         * config/config.guess: update from prep.
80061
80062 2002-12-18  Bruno Haible  <bruno@clisp.org>
80063
80064         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
80065         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
80066
80067 2002-12-17  Bruno Haible  <bruno@clisp.org>
80068
80069         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
80070         stdlib.h, string.h.
80071
80072 2002-12-17  Bruno Haible  <bruno@clisp.org>
80073
80074         * lib/canon-host.c (strdup): Remove unused declaration.
80075
80076         * lib/fsusage.c: Include full_read.h.
80077         (get_fs_usage): Use full_read instead of safe_read.
80078
80079         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
80080
80081 2002-12-12  Karl Berry  <karl@gnu.org>
80082
80083         * config/config.guess: update from prep.
80084
80085 2002-12-11  Bruno Haible  <bruno@clisp.org>
80086
80087         * m4/setenv.m4: New file, from gettext-0.11.5.
80088
80089 2002-12-11  Bruno Haible  <bruno@clisp.org>
80090
80091         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
80092         not unsetenv().
80093         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
80094         modifications:
80095
80096         2002-12-11  Bruno Haible  <bruno@clisp.org>
80097
80098                 * setenv.c (alloca): Fall back to malloc.
80099                 (freea): New macro.
80100                 (setenv): Use freea() to free memory allocated with alloca().
80101
80102         2002-11-13  Bruno Haible  <bruno@clisp.org>
80103
80104                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
80105                 function declarations.
80106                 * unsetenv.c (unsetenv): Likewise.
80107
80108         2002-03-04  Bruno Haible  <bruno@clisp.org>
80109
80110                 Portability to AIX 4.3.3.
80111                 * unsetenv.c: New file, extracted from setenv.c.
80112                 * setenv.c: Move the unsetenv() function to unsetenv.c.
80113
80114         2001-12-20  Bruno Haible  <bruno@clisp.org>
80115
80116                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
80117                 use malloc instead. For SunOS 4.
80118
80119         2001-12-11  Bruno Haible  <bruno@clisp.org>
80120
80121                 * setenv.c: Declare alloca.
80122                 (compar_fn_t): New typedef.
80123                 (KNOWN_VALUE, STORE_VALUE): Use it.
80124
80125         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
80126         setenv.h.
80127
80128 2002-12-10  Paul Eggert  <eggert@twinsun.com>
80129
80130         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
80131         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
80132         Choose values that are less likely to collide with system fnmatch
80133         options.
80134         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
80135         defined (e.g., a pure POSIX system).
80136         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
80137         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
80138
80139 2002-12-06  Paul Eggert  <eggert@twinsun.com>
80140
80141         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
80142         a pain in practice to deal with generated m4 files.  This change
80143         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
80144
80145         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
80146         and jm-glibc-io.m4, as they are no longer a special case.
80147         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
80148         kludge and the auto-generation stuff.  Check only whether the
80149         functions are declared, not whether they exist, since older hosts
80150         that don't declare the functions can't use the optimization anyway.
80151
80152 2002-12-06  Jim Meyering  <jim@meyering.net>
80153
80154         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
80155
80156         Merge in changes from libc's misc/error.c, in preparation
80157         for the merge of gnulib's changes back into libc.
80158
80159         * lib/error.c (_): Define only if not already defined.
80160         Move definition to follow all #include directives.
80161         Include unlocked-io.h only if !_LIBC.
80162         [_LIBC]: Include <libio/libioP.h>.
80163         [USE_IN_LIBIO]: Include <libio/iolibio.h>
80164         (fflush): Tweak definition to use INTUSE.
80165         (putc): Define.
80166
80167 2002-12-05  Paul Eggert  <eggert@twinsun.com>
80168
80169         * lib/alloca.c [defined emacs]: Include "lisp.h".
80170         (xalloc_die) [defined emacs]: New macro.
80171         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
80172         [! defined emacs]: Include <xalloc.h>.
80173         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
80174         (pointer): Typedef to POINTER_TYPE *.
80175         (malloc): Remove decl; we now always use xmalloc.
80176         (alloca): Use old-style definition, since Emacs needs this.
80177         Check for arithmetic overflow when computing combined size.
80178
80179 2002-12-04  Paul Eggert  <eggert@twinsun.com>
80180
80181         Do not generate unlocked-io.h automatically, since it's easier to
80182         maintain it by hand.
80183
80184         * lib/unlocked-io.h: New file, from GNU diffutils,
80185         but with proper copyright notice and attribution.
80186         * lib/gen-uio: Remove.
80187         * lib/Makefile.am: Add copyright notice.
80188         (libfetish_a_SOURCES): Add unlocked-io.h.
80189         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
80190         (DISTCLEANFILES, io_functions): Remove macros.
80191         (EXTRA_DIST): Remove gen_uio.
80192         (unlocked-io.h): Remove rule.
80193
80194 2002-12-04  Jim Meyering  <jim@meyering.net>
80195
80196         Reflect the fact that stat.c and lstat.c are no longer generated.
80197         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
80198         (DISTCLEANFILES): Likewise.
80199         (EXTRA_DIST): Likewise.
80200         (all_local): Don't depend on stat.c or lstat.c.
80201         (stat.c, lstat.c): Remove rules.
80202         (EXTRA_DIST): Remove xstat.in.
80203
80204         * lib/xstat.in: Remove file.  Contents moved into stat.c.
80205         * lib/stat.c: New file.  Contents mostly from xstat.in.
80206         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
80207         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
80208
80209         * lib/safe-read.c: Rework so that it may serve to define safe_write,
80210         too.
80211         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
80212
80213 2002-12-03  Jim Meyering  <jim@meyering.net>
80214
80215         * lib/safe-read.c, safe-write.c: Change variable names and comments,
80216         but not semantics, to minimize the differences between these two files.
80217         (safe_read): Change comment to mention SAFE_READ_ERROR.
80218
80219         * lib/safe-read.c (IS_EINTR): Define.
80220         (safe_read): Use IS_EINTR in place of in-function cpp directives.
80221
80222 2002-12-02  Jim Meyering  <jim@meyering.net>
80223
80224         * lib/safe-read.c (EINTR): Define.
80225         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
80226         (INT_MAX): Provide fallback.
80227         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
80228
80229         * lib/safe-read.h (SAFE_READ_ERROR): Define.
80230
80231 2002-12-02  Bruno Haible  <bruno@clisp.org>
80232
80233         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
80234         Define, taken from safe-read.c.
80235         (INT_MAX): Provide fallback.
80236         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
80237         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
80238
80239         * lib/safe-read.c (EINTR): Remove definition.
80240         (safe_read): Don't use EINTR if it is absent.
80241
80242 2002-12-01  Jim Meyering  <jim@meyering.net>
80243
80244         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
80245         zero.
80246         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
80247
80248 2002-11-27  Paul Eggert  <eggert@twinsun.com>
80249
80250         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
80251         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
80252         with `if (! (value < limit)) abort ();', for readability.
80253
80254 2002-11-26  Karl Berry  <karl@gnu.org>
80255
80256         * lib/strdup.c: copy from libc again, with jim's ok.
80257         * lib/.cppi-disable: re-add strdup.c
80258
80259 2002-11-25  Karl Berry  <karl@gnu.org>
80260
80261         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
80262         instead of "strtol.c".
80263
80264 2002-11-25  Karl Berry  <karl@gnu.org>
80265
80266         * config/install-sh: update from automake for variable quoting, $0 in
80267         error msgs, etc.
80268
80269         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
80270         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
80271         entry.
80272
80273 2002-11-25  Jim Meyering  <jim@meyering.net>
80274
80275         * lib/mktime.c: Sync from libc, now that it has the latest fix.
80276
80277 2002-11-24  Karl Berry  <karl@gnu.org>
80278
80279         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
80280         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
80281
80282 2002-11-24  Jim Meyering  <jim@meyering.net>
80283
80284         Update from coreutils:
80285
80286         * lib/mktime.c: Merge in changes from libc.
80287
80288         Avoid a link-time failure on some Linux systems.
80289         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
80290         (otherwise).
80291         (__mon_yday): Declare with the STATIC attribute.
80292         (__mktime_internal): Likewise.
80293         Based on a report from Greg Schafer.
80294
80295 2002-11-23  Jim Meyering  <jim@meyering.net>
80296
80297         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
80298         Use `unsigned', not `int', as type of index.
80299
80300         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
80301
80302         * lib/fsusage.c: Remove unneeded parentheses around operands of
80303         `defined'.
80304
80305 2002-11-22  Paul Eggert  <eggert@twinsun.com>
80306
80307         * lib/quotearg.h: Allow multiple inclusion by surrounding with
80308         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
80309         so that we can be included first.
80310         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
80311         * lib/quotearg.c: Include quotearg.h immediately after config.h.
80312         No need to include stddef.h or sys/types.h any more.
80313         Surround local include files with "", not "<>".
80314         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
80315         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
80316         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
80317         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
80318         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
80319         (ISPRINT): Remove; no longer needed now that we assume C89.
80320
80321         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
80322         Preserve errno.
80323
80324         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
80325         quotearg_char): Use SIZE_MAX rather than
80326         (size_t) -1 when we are talking about "infinity".
80327
80328         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
80329
80330 2002-11-22  Paul Eggert  <eggert@twinsun.com>
80331
80332         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
80333         hint that one should use `if (! x) abort ();' rather than `assert
80334         (x);', and anyway it's one less thing to worry about configuring.
80335         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
80336         hash_rehash, hash_insert): Use abort rather than assert.
80337
80338 2002-11-22  Bruno Haible  <bruno@clisp.org>
80339
80340         * lib/safe-read.h: Assume C89. Add comments.
80341         (safe_read): Change return type to size_t.
80342         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
80343         byte counts > SSIZE_MAX correctly.
80344         * lib/safe-write.h: New file.
80345         * lib/safe-write.c: New file.
80346         * lib/full-read.h: New file.
80347         * lib/full-read.c: New file.
80348         * lib/full-write.h: Assume C89. Add comments.
80349         * lib/full-write.c: Include safe-write.h.
80350         (full_write): Rewritten to use safe_write.
80351         Suggested by Jim Meyering and Paul Eggert.
80352
80353 2002-11-21  Jim Meyering  <jim@meyering.net>
80354
80355         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
80356
80357         Merge in changes from the coreutils.
80358
80359         2002-09-25  Paul Eggert  <eggert@twinsun.com>
80360         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
80361         <stdint.h>.
80362         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
80363         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
80364         int.  Work more efficiently if X is the same width as uintmax_t.
80365         Do not compare X to -1, to avoid bogus compiler warning.
80366         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
80367         Don't assume that f_frsize and f_bsize are the same type.
80368
80369         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
80370         warning on FreeBSD.
80371
80372         * lib/makepath.c (make_path): Restore umask *before* creating the final
80373         component.
80374         (make_path): Minor reformatting.
80375
80376         * lib/xmalloc.c: Adjust to work with new autoconf macros,
80377         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
80378         HAVE_MALLOC/HAVE_REALLOC.
80379
80380         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
80381         dummy ones.  At least on GNU/Linux systems, `auto' means something
80382         else.
80383         From Michael Stone.
80384
80385 2002-11-21  Bruno Haible  <bruno@clisp.org>
80386
80387         Remove case insensitive option matching.
80388         * lib/argmatch.h (argcasematch): Remove declaration.
80389         (ARGCASEMATCH): Remove macro.
80390         (__xargmatch_internal): Remove case_sensitive argument.
80391         (XARGMATCH): Update.
80392         (XARGCASEMATCH): Remove macro.
80393         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
80394         case_sensitive argument.
80395         (argcasematch): Remove function.
80396         (__xargmatch_internal): Remove case_sensitive argument.
80397         (main): Use XARGMATCH instead of XARGCASEMATCH.
80398
80399         * lib/xmalloc.c: Change compile-time error message. Add comment about
80400         required autoconf version.
80401
80402 2002-11-20  Paul Eggert  <eggert@twinsun.com>
80403
80404         Merge argmatch cleanups from Bison.  Assume C89.
80405
80406         * lib/argmatch.c: Include config.h here, not in argmatch.h.
80407         Include stdlib.h, for EXIT_FAILURE.
80408         Always include <string.h>, since we assume C89.
80409         (EXIT_FAILURE): Remove pre-C89 bug workaround.
80410         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
80411         Include <stddef.h> instead, since it's all we need for size_t.
80412         (PARAMS): Remove.  All uses removed.
80413         (ARRAY_CARDINALITY): Do not bother to #undef.
80414         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
80415         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
80416         Remove unnecessary parentheses.
80417         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
80418         Insert necessary parentheses.
80419         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
80420         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
80421
80422 2002-11-19  Bruno Haible  <bruno@clisp.org>
80423
80424         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
80425         * lib/mbswidth.h: Include <stddef.h>, for size_t.
80426
80427         * lib/mbswidth.h (PARAMS): Remove macro.
80428         (mbswidth, mbsnwidth): Use ANSI C function declarations.
80429         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
80430
80431         * lib/gcd.h (PARAMS): Remove macro.
80432         (gcd): Use ANSI C function declarations.
80433         * lib/gcd.c (gcd): Likewise.
80434
80435 2002-11-15  Bruno Haible  <bruno@clisp.org>
80436
80437         * lib/strcspn.c: Include <stddef.h>.
80438         (strcspn): Use ANSI C function declaration. Change return type to
80439         size_t. Use NULL.
80440         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
80441         (strpbrk): Use NULL.
80442         * lib/strpbrk.h (PARAMS): Remove macro.
80443         (strpbrk): Use ANSI C function declaration.
80444         * lib/strstr.c: Don't include <sys/types.h>.
80445         * lib/strstr.h (PARAMS): Remove macro.
80446         (strstr): Use ANSI C function declarations.
80447
80448 2002-11-14  Karl Berry  <karl@gnu.org>
80449
80450         * config/mkinstalldirs: `do' on separate line, instead of
80451         `for var; do'.
80452
80453 2002-11-06  Bruno Haible  <bruno@clisp.org>
80454
80455         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
80456         * lib/gcd.c (gcd): Likewise.
80457
80458 2002-11-05  Bruno Haible  <bruno@clisp.org>
80459
80460         * lib/gcd.h: New file, from gettext-0.11.5.
80461         * lib/gcd.c: New file, from gettext-0.11.5.
80462
80463 2002-11-05  Bruno Haible  <bruno@clisp.org>
80464
80465         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
80466         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
80467         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
80468         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
80469
80470         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
80471         <libintl.h>.
80472         * lib/makepath.c: Include gettext.h instead of <locale.h> and
80473         <libintl.h>.
80474
80475         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
80476         * lib/human.c: Include gettext.h instead of <libintl.h>.
80477         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
80478         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
80479         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
80480         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
80481         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
80482         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
80483         (textdomain): Remove definition.
80484         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
80485
80486         * lib/long-options.c: Remove include of <libintl.h> and definition of
80487         _.
80488         * lib/same.c: Remove include of <libintl.h> and definition of _.
80489
80490 2002-11-04  Owen Taylor  <otaylor@redhat.com>
80491
80492         * lib/config.charset: A few additions for Solaris.
80493
80494 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
80495
80496         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
80497         * lib/localcharset.c (locale_charset): Declare as extern "C".
80498
80499 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
80500
80501         * lib/config.charset: msdos in uk_UA uses CP1125.
80502
80503 2002-11-04  Bruno Haible  <bruno@clisp.org>
80504
80505         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
80506         * lib/strcase.h: New file, from GNU gettext-0.11.5.
80507         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
80508         * lib/strstr.h: New file, from GNU gettext-0.11.5.
80509         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
80510
80511 2002-11-04  Bruno Haible  <bruno@clisp.org>
80512
80513         * lib/localcharset.c (locale_charset): Don't return an empty string.
80514
80515 2002-11-04  Bruno Haible  <bruno@clisp.org>
80516
80517         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
80518         aliases.
80519
80520 2002-11-04  Bruno Haible  <bruno@clisp.org>
80521
80522         * lib/config.charset: Update for newest glibc. Add canonical names
80523         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
80524
80525 2002-11-04  Bruno Haible  <bruno@clisp.org>
80526
80527         * lib/config.charset: Add support for NetBSD.
80528
80529 2002-11-04  Bruno Haible  <bruno@clisp.org>
80530
80531         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
80532
80533 2002-11-01  Bruno Haible  <bruno@clisp.org>
80534
80535         * configure.in: Add AC_CONFIG_AUX_DIR call.
80536         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
80537         test/Makefile.
80538         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
80539
80540 2002-09-28  Karl Berry  <karl@gnu.org>
80541
80542         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
80543         installed automake until the next release, since changes have been
80544         made.
80545
80546 2002-09-25  Karl Berry  <karl@gnu.org>
80547
80548         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
80549         * lib/getopt*: copy from libc/posix.
80550         * lib/gettext.h: copy from gettext.
80551         * lib/.cppi-disable: add strdup.c, gettext.h.
80552
80553 2002-09-25  Karl Berry  <karl@gnu.org>
80554
80555         * config/srclist.txt: enable gettext.h check.
80556         * config/config.{guess,sub}: update from prep.
80557         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
80558                 from automake 1.6.3.
80559         See srclist*.
80560
80561 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
80562
80563         * regex.c (PATFETCH): Remove the translating fetch.
80564         (PATFETCH_RAW): Rename to PATFETCH.
80565         (set_image_of_range): New fun.
80566         (SET_RANGE_TABLE_WORK_AREA): Use it.
80567         (regex_compile): Don't translate the pattern chars so eagerly.
80568         Only do it when inserting an `exactn' bytecode or when handling
80569         a char-range.
80570         (mutually_exclusive_p): Avoid empty statement.
80571
80572 2002-07-06  Jim Meyering  <meyering@lucent.com>
80573
80574         * m4/README: Don't mention Makefile.am.in.
80575         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
80576
80577 2002-07-01  Jim Meyering  <meyering@lucent.com>
80578
80579         * lib/c-stack.c: Include sys/time.h.
80580         From Volker Borchert.
80581
80582 2002-06-26  Paul Eggert  <eggert@twinsun.com>
80583
80584         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
80585
80586 2002-06-26  Paul Eggert  <eggert@twinsun.com>
80587
80588         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
80589         New macro.  Use it uniformly instead of
80590         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
80591         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
80592         reported by Vin Shelton.
80593
80594 2002-06-22  Paul Eggert  <eggert@twinsun.com>
80595
80596         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
80597         Do not assume SA_SIGINFO behavior.
80598         Bug reported by Jim Meyering on NetBSD 1.5.2.
80599
80600 2002-06-22  Jim Meyering  <meyering@lucent.com>
80601
80602         * m4/c-stack.m4: New file, from diffutils-2.8.2.
80603         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
80604
80605         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
80606         now that configure.ac uses AC_GNU_SOURCE.
80607         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
80608         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
80609
80610         Update to latest tools.  Suggestions from Paul Eggert.
80611         * m4/stdbool.m4: New file, from diffutils-2.8.2.
80612         * m4/gnu-source.m4: Update from diffutils-2.8.2.
80613         * m4/fnmatch.m4: Likewise.
80614         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
80615         to AC_HEADER_STDBOOL
80616
80617 2002-06-22  Jim Meyering  <meyering@lucent.com>
80618
80619         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
80620         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
80621
80622 2002-06-22  Jim Meyering  <meyering@lucent.com>
80623
80624         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
80625
80626         * lib/exitfail.c, exitfail.h: Likewise.
80627         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
80628
80629         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
80630         of fnmatch.h.
80631         (EXTRA_DIST): Add fnmatch_loop.c.
80632         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
80633
80634         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
80635         * lib/fnmatch.c: Update from diffutils-2.8.2.
80636         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
80637         * lib/fnmatch.h: Remove file.
80638
80639 2002-06-21  Jim Meyering  <meyering@lucent.com>
80640
80641         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
80642         * m4/mbrtowc.m4: Likewise.
80643
80644         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
80645         * m4/mbswidth.m4: Reflect name change:
80646         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
80647         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
80648
80649         * m4/lib-link.m4: Update from gettext-0.11.2.
80650         * m4/gettext.m4: Likewise.
80651
80652         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
80653         From Alfred M. Szmidt.
80654
80655 2002-06-18  Paul Eggert  <eggert@twinsun.com>
80656
80657         * lib/file-type.h: Report an error if neither S_ISREG nor
80658         S_IFREG is defined, instead of using a test specific to glibc
80659         2.2.  This should be safe, since POSIX requires S_ISREG and
80660         Unix Version 7 had S_IFREG.  We don't need to check for
80661         <sys/types.h> since we don't use any symbols that it defines.
80662
80663 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
80664
80665         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
80666         $@-t, so that each temporary file name is unique and valid in the first
80667         8 characters, for operation under DOS.
80668
80669 2002-06-15  Paul Eggert  <eggert@twinsun.com>
80670
80671         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
80672
80673 2002-06-15  Jim Meyering  <meyering@lucent.com>
80674
80675         Work even with DJGPP 2.03, which lacks support for symlinks.
80676         From Richard Dawe.
80677         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
80678         is defined.
80679         * lib/lchown.c (S_ISLNK): Likewise.
80680
80681 2002-06-15  Jim Meyering  <meyering@lucent.com>
80682
80683         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
80684         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
80685         have been included before this file.
80686
80687 2002-06-14  Jim Meyering  <meyering@lucent.com>
80688
80689         * lib/file-type.h: Use the version from diffutils-2.8.2.
80690         * lib/file-type.c: Likewise.
80691
80692 2002-06-07  Jim Meyering  <meyering@lucent.com>
80693
80694         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
80695         They're needed at least for NetBSD 1.5.2.
80696         ($statxfs_includes): Include those same headers.
80697         ($statxfs_includes): Include sys/vfs.h if available.
80698         ($statxfs_includes): Likewise for sys/statvfs.h.
80699         Check for the following members in both structs statfs and statvfs:
80700         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
80701
80702 2002-06-01  Jim Meyering  <meyering@lucent.com>
80703
80704         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
80705         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
80706
80707 2002-05-28  Jim Meyering  <meyering@lucent.com>
80708
80709         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
80710         Reported by Volker Borchert.
80711
80712 2002-05-27  Jim Meyering  <meyering@lucent.com>
80713
80714         Fix a problem seen only on nonconforming systems whereby ls.c's
80715         use of localtime, and then of gettimeofday would cause trouble:
80716         the localtime call used to initialize rpl_gettimeofday's save
80717         mechanism would clobber ls's current local time information so
80718         that in any long listing the first file would always be listed
80719         with date 1970-01-01.  Analysis by Volker Borchert.
80720
80721         * lib/gettimeofday.c (localtime): Undefine.
80722         (rpl_localtime): New function.
80723
80724 2002-05-27  Jim Meyering  <meyering@lucent.com>
80725
80726         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
80727         localtime.
80728
80729         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
80730         use the replacement function; it wouldn't resolve at link time.
80731         Reported by Volker Borchert.
80732
80733 2002-05-22  Jim Meyering  <meyering@lucent.com>
80734
80735         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
80736         file-type.h.
80737         * lib/file-type.h: New file.
80738         * lib/file-type.c (file_type): New file/function.  Extracted from
80739         diffutils.
80740
80741 2002-04-30  Jim Meyering  <meyering@lucent.com>
80742
80743         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
80744
80745 2002-04-29  Paul Eggert  <eggert@twinsun.com>
80746
80747         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
80748
80749 2002-04-29  Paul Eggert  <eggert@twinsun.com>
80750
80751         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
80752         Do not check for alloca.h (no longer used) or stdbool.h (was never
80753         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
80754
80755 2002-04-29  Paul Eggert  <eggert@twinsun.com>
80756
80757         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
80758
80759 2002-04-29  Jim Meyering  <meyering@lucent.com>
80760
80761         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
80762         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
80763         Use AC_FUNC_STRNLEN here instead.
80764
80765         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
80766         With autoconf-2.53a, it's part of AC_PROG_CC.
80767
80768 2002-04-28  Paul Eggert  <eggert@twinsun.com>
80769
80770         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
80771         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
80772
80773 2002-04-28  Paul Eggert  <eggert@twinsun.com>
80774
80775         * lib/sig2str.h, lib/sig2str.c: New files.
80776         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
80777
80778 2002-04-28  Paul Eggert  <eggert@twinsun.com>
80779
80780         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
80781         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
80782         of 127, since 64 is the largest conceivable number for ancient
80783         nonstandard hosts.
80784         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
80785
80786 2002-04-28  Jim Meyering  <meyering@lucent.com>
80787
80788         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
80789
80790 2002-04-24  Jim Meyering  <meyering@lucent.com>
80791
80792         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
80793         (jm_PREREQ): Use it.
80794
80795         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
80796         mach/mach.h fcntl.h.
80797         Check for this function: setlocale.
80798
80799 2002-04-24  Jim Meyering  <meyering@lucent.com>
80800
80801         * lib/gettext.h: New file, from Gettext.
80802         * lib/Makefile.am (INCLUDES): Remove -I../intl.
80803         (libfetish_a_SOURCES): Add gettext.h.
80804
80805 2002-04-16  Jim Meyering  <meyering@lucent.com>
80806
80807         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
80808         ut_pid, ut_id, ut_exit.
80809
80810 2002-04-16  Jim Meyering  <meyering@lucent.com>
80811
80812         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
80813         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
80814         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
80815
80816 2002-04-12  Jim Meyering  <meyering@lucent.com>
80817
80818         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
80819         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
80820         existence of the getmntinfo function.  Needed for Darwin 5.3.
80821
80822         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
80823         This is necessary at least on Darwin 5.3.
80824
80825         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
80826         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
80827         strnlen.o in the library, and that makes some versions of ranlib
80828         object.
80829
80830 2002-04-12  Jim Meyering  <meyering@lucent.com>
80831
80832         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
80833
80834 2002-04-09  Jim Meyering  <meyering@lucent.com>
80835
80836         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
80837         to be more precise.  Rather than saying we're checking whether the
80838         function `works', say what we're testing.
80839         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
80840         Reported by Bruno Haible.
80841
80842 2002-03-10  Jim Meyering  <meyering@lucent.com>
80843
80844         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
80845         Suggestion from Santiago Vila.
80846
80847 2002-03-08  Jim Meyering  <meyering@lucent.com>
80848
80849         * lib/rename.c: Mention that this wrapper is needed also on
80850         mips-dec-ultrix4.4 systems.
80851
80852 2002-03-02  Jim Meyering  <meyering@lucent.com>
80853
80854         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
80855         not HAVE_CLOCK_SETTIME.
80856
80857 2002-02-27  Paul Eggert  <eggert@twinsun.com>
80858
80859         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
80860         Check for clock_settime.
80861
80862 2002-02-27  Paul Eggert  <eggert@twinsun.com>
80863
80864         * lib/nanosleep.h: Rename to....
80865         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
80866
80867         * lib/gettime.c: New file.
80868         * lib/settime.c: New file.
80869         * lib/stime.c: Remove.
80870
80871         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
80872         timespec.h.  Remove nanosleep.h.
80873
80874 2002-02-25  Paul Eggert  <eggert@twinsun.com>
80875
80876         * m4/acl.m4: New file.
80877         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
80878         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
80879
80880 2002-02-25  Paul Eggert  <eggert@twinsun.com>
80881
80882         * lib/acl.c, lib/acl.h: New files.
80883         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
80884
80885 2002-02-24  Jim Meyering  <meyering@lucent.com>
80886
80887         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
80888         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
80889         cause trouble.  Reported by Nelson Beebe.
80890
80891 2002-02-23  Paul Eggert  <eggert@twinsun.com>
80892
80893         * lib/path-concat.c (xpath_concat): Reorder code to pacify
80894         compilers that don't know that xalloc_die never returns.
80895
80896 2002-02-20  Jim Meyering  <meyering@lucent.com>
80897
80898         * lib/getdate.c: Regenerate using bison-1.33.
80899
80900 2002-02-17  Jim Meyering  <meyering@lucent.com>
80901
80902         * config/config.guess (main): Don't use `head -1'; it's no longer
80903         portable. Use `sed 1q' instead.
80904
80905 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
80906
80907         * m4/codeset.m4: Upgrade to gettext-0.11.
80908         * m4/gettext.m4: Upgrade to gettext-0.11.
80909         * m4/glibc21.m4: Upgrade to gettext-0.11.
80910         * m4/iconv.m4: Upgrade to gettext-0.11.
80911         * m4/isc-posix.m4: Upgrade to gettext-0.11.
80912         * m4/lcmessage.m4: Upgrade to gettext-0.11.
80913         * m4/lib-ld.m4: New file, from gettext-0.11.
80914         * m4/lib-link.m4: New file, from gettext-0.11.
80915         * m4/lib-prefix.m4: New file, from gettext-0.11.
80916         * m4/progtest.m4: Upgrade to gettext-0.11.
80917
80918 2002-02-15  Paul Eggert  <eggert@twinsun.com>
80919
80920         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
80921         (jm_PREREQ): Use it.
80922
80923 2002-02-15  Paul Eggert  <eggert@twinsun.com>
80924
80925         * lib/posixver.c, lib/posixver.h: New files.
80926         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
80927
80928 2002-02-02  Paul Eggert  <eggert@twinsun.com>
80929             Bruno Haible  <bruno@clisp.org>
80930
80931         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
80932         (fwrite_success_callback): New declaration.
80933         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
80934         print_unicode_char. Call failure callback instead of error.
80935         (fwrite_success_callback): New function.
80936         (exit_failure_callback): New function.
80937         (fallback_failure_callback): New function.
80938         (print_unicode_char): Call unicode_to_mb.
80939
80940 2002-01-26  Jim Meyering  <meyering@lucent.com>
80941
80942         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
80943         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
80944
80945 2002-01-26  Jim Meyering  <meyering@lucent.com>
80946
80947         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
80948
80949 2002-01-22  Paul Eggert  <eggert@twinsun.com>
80950
80951         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
80952
80953 2002-01-22  Jim Meyering  <meyering@lucent.com>
80954
80955         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
80956         Otherwise, some versions of automake would omit the rule that makes
80957         Makefile from Makefile.in.
80958
80959 2002-01-21  Paul Eggert  <eggert@twinsun.com>
80960
80961         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
80962         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
80963         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
80964         (memcoll): Set errno to zero if there is no error.
80965
80966         * lib/quotearg.c (quotearg_buffer_restyled):
80967         Fix bug with quoting buffers containing NUL when backslashing escapes.
80968         This bug was exposed by the other changes in this patch.
80969         (quotearg_n_options): New arg ARGSIZE.
80970         All callers changed.
80971         (quoting_options_from_style): New function.
80972         (quotearg_n_style): Use it.
80973         (quotearg_n_style_mem): New function.
80974
80975         * lib/quotearg.h (quotearg_n_style_mem): New function.
80976
80977 2002-01-19  Jim Meyering  <meyering@lucent.com>
80978
80979         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
80980         Remove useless quotes: DF_PROG="df".
80981         * m4/strnlen.m4: New file.
80982
80983 2002-01-16  Paul Eggert  <eggert@twinsun.com>
80984
80985         * lib/backupfile.c (ISDIGIT): Comment fix.
80986         * lib/getdate.y (ISDIGIT): Likewise.
80987         * lib/posixtm.c (ISDIGIT, year): Likewise.
80988         * lib/strverscmp.c (ISDIGIT): Likewise.
80989         * lib/userspec.c (ISDIGIT): Likewise.
80990
80991 2002-01-16  Jim Meyering  <meyering@lucent.com>
80992
80993         * lib/getdate.y: Add three semicolons, each just before a closing
80994         brace. Bison (as of version 1.31) no longer papers over that mistake.
80995
80996 2002-01-05  Jim Meyering  <meyering@lucent.com>
80997
80998         * lib/version-etc.c (version_etc_copyright): Update copyright year.
80999
81000 2001-12-19  Paul Eggert  <eggert@twinsun.com>
81001
81002         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
81003         not silently exit merely because the output buffer happens to
81004         have nothing pending.
81005
81006 2001-12-18  Paul Eggert  <eggert@twinsun.com>
81007
81008         See the big note in ../ChangeLog.
81009         * lib/human.c (suffixes): Prefer K to k for 1024.
81010         (generate_suffix_backwards): New function.
81011         (human_readable_inexact): Use it.
81012         * lib/xstrtol.c (__xstrtol): If there is no number but there
81013         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
81014         Accept 'K' as well as 'k'.
81015
81016 2001-12-15  Jim Meyering  <meyering@lucent.com>
81017
81018         * lib/regex.h (__restrict_arr): Update from libc.
81019
81020         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
81021         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
81022         (STREQ): Define.
81023
81024 2001-12-14  Jim Meyering  <meyering@lucent.com>
81025
81026         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
81027         Suggestion from Bruno Haible.
81028
81029 2001-12-10  Jim Meyering  <meyering@lucent.com>
81030
81031         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
81032         xrealloc, Instead, include "xalloc.h".
81033         (initbuffer): Don't cast xmalloc return value to char*.
81034         (readline): Reword comment.
81035         Don't cast xrealloc return value to char*
81036         Return NULL, not 0.
81037
81038 2001-12-09  Jim Meyering  <meyering@lucent.com>
81039
81040         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
81041         about `signed and unsigned type in conditional expression'.
81042         * lib/posixtm.c (posix_time_parse): Likewise.
81043
81044         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
81045
81046         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
81047         to avoid a pedantic warning.
81048
81049         * lib/getstr.c: Don't include assert.h.
81050         (getstr): Remove warning-evoking assertions.
81051         Return -1 if offset parameter is out of bounds.
81052         Change the type of a local from int to size_t.
81053
81054         * lib/strftime.c (my_strftime_localtime_r): Include this function
81055         definition in the `#if ! HAVE_TM_GMTOFF' block.
81056
81057         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
81058         Include xalloc.h instead.
81059
81060 2001-12-02  Jim Meyering  <meyering@lucent.com>
81061
81062         * lib/tempname.c: Don't declare getenv, thus reverting the change of
81063         2001-11-18.  It's no longer necessary, now that stdlib.h is always
81064         included.
81065
81066         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
81067         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
81068
81069 2001-11-30  Akim Demaille  <akim@epita.fr>
81070
81071         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
81072         before being defined.
81073
81074 2001-11-27  Paul Eggert  <eggert@twinsun.com>
81075
81076         * lib/quotearg.h (quotearg_n, quotearg_n_style):
81077         First arg is int, not unsigned.
81078         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
81079         (SIZE_MAX, UINT_MAX): New macros.
81080         (quotearg_n_options): Abort if N is negative.
81081         Avoid overflow check on hosts where size_t is 64 bits and int
81082         is 32 bits, as overflow is impossible there.
81083         Fix off-by-one typo that caused unnecessary reallocation.
81084
81085 2001-11-27  Jim Meyering  <meyering@lucent.com>
81086
81087         * lib/tempname.c: Merge with version from libc.
81088         * lib/regex.c: Likewise.
81089
81090         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
81091         systems for which STDC_HEADERS is 0, it was not included, resulting in
81092         a warning about an integer-to-pointer conversion problem with getenv.
81093         Reported by Volker Borchert.
81094
81095 2001-11-26  Jim Meyering  <meyering@lucent.com>
81096
81097         * lib/gtod.h: Remove file.
81098         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
81099         * lib/gettimeofday.c: Don't include gtod.h.
81100         (GTOD_init): Remove function.
81101         (rpl_gettimeofday): Do its job here instead, rather than aborting.
81102         Suggestion from Volker Borchert.
81103
81104 2001-11-23  Jim Meyering  <meyering@lucent.com>
81105
81106         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
81107         it.
81108         * lib/hash.c (struct hash_table): Define it here instead.
81109
81110 2001-11-22  Jim Meyering  <meyering@lucent.com>
81111
81112         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
81113
81114 2001-11-20  Jim Meyering  <meyering@lucent.com>
81115
81116         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
81117         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
81118
81119 2001-11-19  Jim Meyering  <meyering@lucent.com>
81120
81121         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
81122         directory.  Use "conftestXXXXXX" as the template.
81123         Suggestion from Paul Eggert.
81124
81125         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
81126         immediately, so the test doesn't mistakenly hit the max-open-files
81127         limit.
81128
81129 2001-11-18  Paul Eggert  <eggert@twinsun.com>
81130
81131         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
81132         (TEMPORARIES): New macro.
81133         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
81134         removes an artificial limitation (e.g. HP-UX 10.20, where
81135         TMP_MAX is 17576).
81136
81137 2001-11-18  Jim Meyering  <meyering@lucent.com>
81138
81139         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
81140
81141 2001-11-18  Jim Meyering  <meyering@lucent.com>
81142
81143         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
81144         on SunOS 4.
81145
81146         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
81147         files will be created before anything else.
81148
81149 2001-11-17  Paul Eggert  <eggert@twinsun.com>
81150
81151         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
81152         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
81153
81154 2001-11-17  Jim Meyering  <meyering@lucent.com>
81155
81156         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
81157         Prompted by a report from Bob Proulx.
81158
81159         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
81160         Instead, require UTILS_FUNC_MKSTEMP.
81161
81162 2001-11-17  Jim Meyering  <meyering@lucent.com>
81163
81164         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
81165         Now, that's done as part of AC_FUNC_STRTOD.
81166
81167 2001-11-17  Jim Meyering  <meyering@lucent.com>
81168
81169         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
81170         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
81171         rather than group writable.  Patch by Juan F. Codagnone.
81172
81173         * lib/readtokens.c: Remove explicit declarations of xmalloc and
81174         xrealloc, Instead, include "xalloc.h".
81175
81176         * lib/mountlist.c: Include unlocked-io.h after all system headers.
81177         Remove explicit declarations of xmalloc, xrealloc,
81178         and xstrdup.  Instead, include "xalloc.h".
81179
81180         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
81181         unlocked-io.h.
81182         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
81183         Likewise.
81184         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
81185
81186         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
81187         Reported by Padraig Brady.
81188
81189         * lib/mkstemp.c: #undef mkstemp.
81190         Include config.h.
81191         (rpl_mkstemp): Rename from mkstemp.
81192         Protoize.
81193
81194 2001-11-16  Jim Meyering  <meyering@lucent.com>
81195
81196         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
81197         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
81198         determine the amount of total physical memory, use pstat_getstatic.
81199         HPUX-11 doesn't define _SC_PHYS_PAGES.
81200         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
81201         If sysconf couldn't be used to determine the amount of available
81202         physical memory, use both pstat_getstatic and pstat_getdynamic.
81203         Based on a patch from Bob Proulx.
81204
81205 2001-11-10  Jim Meyering  <meyering@lucent.com>
81206
81207         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
81208         (jm_PREREQ): Use it.
81209
81210 2001-11-09  Jim Meyering  <meyering@lucent.com>
81211
81212         * m4/jm-macros.m4: Require autoconf-2.52f.
81213         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
81214         Use these AC_-prefixed names, not the AM_-prefixed ones.
81215
81216         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
81217
81218 2001-11-05  Jim Meyering  <meyering@lucent.com>
81219
81220         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
81221
81222 2001-11-04  Jim Meyering  <meyering@lucent.com>
81223
81224         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
81225         $DEFS.
81226
81227 2001-11-03  Jim Meyering  <meyering@lucent.com>
81228
81229         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
81230         of AC_DEFUN.
81231
81232         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
81233         know the name of the variable in the macro definition.
81234
81235 2001-11-03  Jim Meyering  <meyering@lucent.com>
81236
81237         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
81238         in argmatch_to_argument call.
81239
81240         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
81241         argument.
81242
81243         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
81244         e.g., a fault due to an attempt to free a NULL pointer.
81245
81246 2001-11-01  Jim Meyering  <meyering@lucent.com>
81247
81248         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
81249         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
81250
81251 2001-11-01  Jim Meyering  <meyering@lucent.com>
81252
81253         * lib/dirfd.c, lib/dirfd.h: New files.
81254         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
81255
81256         * lib/hash.c (hash_print) [TESTING]: Clean up.
81257
81258 2001-10-22  Paul Eggert  <eggert@twinsun.com>
81259
81260         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
81261         to avoid a warning if -Wall.
81262
81263 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
81264
81265         * README: New file
81266         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
81267         (per RMS's instructions, this is now the canonical source)
81268         * lgpl/, gpl/: New directories.
81269
81270 2001-10-21  Paul Eggert  <eggert@twinsun.com>
81271
81272         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
81273
81274 2001-10-21  Jim Meyering  <meyering@lucent.com>
81275
81276         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
81277         this code would end up calling gettext even in packages built
81278         with --disable-nls.
81279         * lib/getopt.c (_): Likewise.
81280         * lib/regex.c (_): Likewise.
81281
81282 2001-10-20  Paul Eggert  <eggert@twinsun.com>
81283
81284         * m4/error.m4 (jm_PREREQ_ERROR):
81285         Do not invoke AC_CHECK_FUNCS with strerror_r, as
81286         AC_FUNC_STRERROR_R does that.
81287         Check for strerror declaration.
81288
81289         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
81290         are supposed to have them these days.
81291         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
81292         Merge changes from latest Autoconf CVS.
81293         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
81294         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
81295         POSIX decided to standardize on the int flavor of strerror_r.
81296
81297 2001-10-20  Paul Eggert  <eggert@twinsun.com>
81298
81299         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
81300         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
81301         Use strerror_r that is only a macro, even if it is not a function.
81302         (strerror): Check for HAVE_DECL_STRERROR before declaring.
81303         (private_strerror): Use prototypes, not old-style function definition.
81304         (print_errno_message): New function.
81305         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
81306         char*-flavored one.
81307         (error_tail, error, error_at_line): Use it.
81308
81309 2001-10-11  Jim Meyering  <meyering@lucent.com>
81310
81311         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
81312         and quote_n (1, ... to avoid clobbering a buffer.
81313
81314 2001-10-05  Jim Meyering  <meyering@lucent.com>
81315
81316         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
81317         hash-pjw.h.
81318         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
81319         * lib/hash-pjw.h: New file.
81320
81321 2001-09-30  Jim Meyering  <meyering@lucent.com>
81322
81323         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
81324         `struct fsstat' has the `f_fstypename' member.
81325         Use that to define FS_TYPE, which is now used to make
81326         the getfsstat link test tighter.
81327
81328 2001-09-30  Jim Meyering  <meyering@lucent.com>
81329
81330         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
81331         Include <sys/ucred.h>, for Apple Darwin.
81332         Include sys/mount.h and sys/fs_types.h only if available.
81333         (FS_TYPE): Define.
81334         (read_filesystem_list): Use FS_TYPE.
81335
81336 2001-09-29  Paul Eggert  <eggert@twinsun.com>
81337
81338         * lib/exclude.c (excluded_filename): 0 -> false, since it's
81339         a boolean context.
81340
81341 2001-09-29  Jim Meyering  <meyering@lucent.com>
81342
81343         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
81344         [one-argument getmntent function]): Include stdio.h before mntent.h.
81345         SunOS 4.1.x needs it for the declaration of `FILE'.
81346         Patch by Volker Borchert.
81347
81348         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
81349         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
81350         sys/fs_types.h, and make the link-test for getfsstat guard #include
81351         directives with appropriate #if HAVE_*_H tests so that we can
81352         detect getfsstat on Apple Darwin1.3.7 systems.
81353         Reported by Nelson Beebe.
81354         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
81355
81356 2001-09-28  Paul Eggert  <eggert@twinsun.com>
81357
81358         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
81359         #defines strtoimax.  Also treat the other strto* functions
81360         like strtoimax.
81361
81362         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
81363         Check for strtoul and strtoumax,
81364         as those declarations are made even in the signed case.
81365         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
81366         Likewise, for strtol and strtoimax.
81367
81368 2001-09-28  Paul Eggert  <eggert@twinsun.com>
81369
81370         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
81371         #defines strtoimax.  Also treat the other strto* functions
81372         like strtoimax.
81373
81374         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
81375         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
81376         (strtoimax, strtoumax): Do not declare if already defined as a macro.
81377
81378 2001-09-26  Jim Meyering  <meyering@lucent.com>
81379
81380         Most macros in unlocked-io.h had the wrong number of arguments.
81381         * lib/gen-uio: New script.
81382         (USE_UNLOCKED_IO): Define to 1 if not already defined.
81383         * lib/unlocked-io.hin: Remove file.
81384         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
81385         rather than trying to embed it here.
81386         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
81387         Reported by Padraig Brady.
81388
81389 2001-09-25  Volker Borchert  <bt@teknon.de>
81390
81391         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
81392         `result'.
81393
81394 2001-09-24  Jim Meyering  <meyering@lucent.com>
81395
81396         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
81397
81398 2001-09-23  Jim Meyering  <meyering@lucent.com>
81399
81400         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
81401         instead of the mere test for existence of mntent.h.  The latter
81402         would get a false-positive on AIX 3.4 systems.
81403         In the outer getmntent if-block, don't die if neither of the getmntent
81404         tests succeeds.  Instead, just fall through and continue with the
81405         remaining tests.
81406
81407 2001-09-23  Jim Meyering  <meyering@lucent.com>
81408
81409         * lib/mountlist.c: Remove useless parentheses in #if directives.
81410         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
81411         the deprecated MOUNTED symbol is no longer defined in mntent.h.
81412
81413 2001-09-22  Jim Meyering  <meyering@lucent.com>
81414
81415         * m4/gettext.m4: New file.  From gettext.
81416         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
81417         * m4/progtest.m4: Likewise
81418         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
81419         * m4/glibc21.m4: Likewise.
81420
81421         * m4/libintl.m4: Remove.  No longer used.
81422
81423 2001-09-22  Jim Meyering  <meyering@lucent.com>
81424
81425         * lib/localcharset.c: Update from latest gettext.
81426         * lib/config.charset: Likewise.
81427
81428 2001-09-20  Jim Meyering  <meyering@lucent.com>
81429
81430         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
81431         strtoimax.
81432         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
81433         strtoumax.
81434
81435 2001-09-20  Jim Meyering  <meyering@lucent.com>
81436
81437         * lib/xstrtol.c (strtoimax): Guard declaration with
81438         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
81439         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
81440         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
81441         (strtoumax): Likewise, for completeness (it wasn't necessary).
81442
81443 2001-09-17  Paul Eggert  <eggert@twinsun.com>
81444
81445         * lib/strtoimax.c (HAVE_LONG_LONG):
81446         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
81447         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
81448         to work around bug in IBM C compiler.
81449
81450 2001-09-17  Jim Meyering  <meyering@lucent.com>
81451
81452         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
81453         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
81454         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
81455         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
81456         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
81457         whenever the right hand side need not be expanded by the shell.
81458
81459 2001-09-16  Paul Eggert  <eggert@twinsun.com>
81460
81461         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
81462         library.  It's not correct, as some older glibcs are buggy.
81463         fnmatch wasn't fixed until glibc 2.2.
81464
81465         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
81466         special shell magic here.
81467
81468 2001-09-16  Jim Meyering  <meyering@lucent.com>
81469
81470         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
81471         * m4/jm-macros.m4: Require it.
81472
81473 2001-09-16  Jim Meyering  <meyering@lucent.com>
81474
81475         * lib/mkdir.c: New file.
81476
81477 2001-09-15  Jim Meyering  <meyering@lucent.com>
81478
81479         * m4/jm-macros.m4: Check for help2man.
81480
81481 2001-09-11  Jim Meyering  <meyering@lucent.com>
81482
81483         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
81484         The body, by Paul Eggert, was moved here from configure.in.
81485         * m4/jm-macros.m4: Require UTILS_HOST_OS.
81486
81487 2001-09-04  Paul Eggert  <eggert@twinsun.com>
81488
81489         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
81490         (jm_PREREQ): Use it.
81491
81492 2001-09-04  Paul Eggert  <eggert@twinsun.com>
81493
81494         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
81495         Use ssize_t, not int, to store result of readlink.
81496         Check for ssize_t overflow as well as size_t overflow,
81497         as POSIX says the result of readlink is implementation-defined
81498         when ssize_t overflows.
81499         Remove unnecessary cast to char*.
81500         Use free+malloc instead of realloc, as the storage doesn't need
81501         to be preserved and it's clearer and can be more efficient that way.
81502         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
81503         * lib/xreadlink.h (xreadlink): Update prototype.
81504
81505 2001-09-04  Paul Eggert  <eggert@twinsun.com>
81506
81507         * lib/xgetcwd.c: Revert some of the previous change; intead,
81508         fix the HAVE_GETCWD_NULL code to behave more like the
81509         !HAVE_GETCWD_NULL code used to.
81510
81511         Include "xalloc.h".
81512         (xgetcwd): Do not return NULL when memory is exhausted; instead,
81513         invoke xalloc_die.
81514
81515 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81516
81517         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
81518         sys/param.h, as pathmax.h includes them.
81519
81520 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81521
81522         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
81523         (jm_PREREQ_XGETCWD): New macro.
81524
81525         * m4/getcwd.m4: New file.
81526
81527 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81528
81529         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
81530         like the HAVE_GETCWD_NULL code.
81531         Include pathmax.h if not HAVE_GETCWD.
81532         Do not include xalloc.h.
81533         (INITIAL_BUFFER_SIZE): New symbol.
81534         Do not use xmalloc / xrealloc, since the caller is responsible for
81535         handling errors.  Preserve errno around `free' during failure.
81536         Do not overrun buffer when using getwd.
81537
81538 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81539
81540         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
81541         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
81542         getcwd (NULL, 0).
81543
81544 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81545
81546         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
81547         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
81548         spotted by Jim Meyering.
81549
81550 2001-09-03  Jim Meyering  <meyering@lucent.com>
81551
81552         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
81553         failure.
81554
81555 2001-09-02  Jim Meyering  <meyering@lucent.com>
81556
81557         * lib/error.c: Update from GNU libc.
81558
81559 2001-09-01  Jim Meyering  <meyering@lucent.com>
81560
81561         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
81562         Used by df.
81563
81564 2001-09-01  Jim Meyering  <meyering@lucent.com>
81565
81566         * lib/xreadlink.c: New file.
81567         * lib/xreadlink.h: New file.
81568         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
81569         xreadlink.h.
81570
81571         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
81572         doesn't conflict with sparc Solaris 7's definition in
81573         /usr/include/sys/int_types.h.
81574
81575         * lib/exclude.c: Use `""', not `<>' to #include non-system header
81576         files.
81577         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
81578         and strncasecmp as r-values.  Unixware didn't have declarations.
81579
81580 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81581
81582         * lib/xstrtol.h: Add copyright notice.
81583         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
81584         LONGINT_INVALID_SUFFIX_CHAR.
81585
81586 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81587
81588         * lib/xstrtol.c (strtoimax): New decl.
81589
81590 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81591
81592         * lib/xgetcwd.c: Don't include pathmax.h.
81593         Include stdlib.h and unistd.h if available.
81594         Include xalloc.h.
81595         (xmalloc, xstrdup, free): Remove decls.
81596         (xgetcwd): Don't assume sizes fit in unsigned.
81597         Check for overflow when computing sizes.
81598         Simplify reallocation code.
81599
81600 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81601
81602         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
81603         a directory's st_size can have an arbitrary value, so the old
81604         usage could waste an arbitrary amount of memory.  All uses
81605         changed.
81606         * lib/savedir.h: Update prototype.
81607
81608 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81609
81610         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
81611
81612         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
81613         old strtoimax.c.
81614
81615         Also, make the following further changes to make this file's
81616         configuration more similar to that of strtol.c:
81617         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
81618         (strtoumax, uintmax_t, strtoull, strtol): Remove.
81619         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
81620         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
81621         changed to signed values.
81622
81623         And make the following changes as well:
81624         Fix copyright notice, as 1999 was missing.
81625         (verify): New macro.
81626         (strtoimax): Check sizes at compile-time, not run-time.
81627         Prefer strtol to strtoll if both work.
81628         (main): Remove; it was not that useful and was a pain to maintain.
81629
81630         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
81631
81632 2001-08-31  Jim Meyering  <meyering@lucent.com>
81633
81634         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
81635         Use an initial, malloc'd, buffer of length 128 rather than
81636         a statically allocated one of length 1024.
81637
81638 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81639
81640         Simplify code, partly by assuming autoconf 2.52 semantics.
81641
81642         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
81643
81644         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
81645         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
81646         All uses removed.
81647         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
81648         Move AC_REQUIRE to next-to-top level, to avoid confusion.
81649         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
81650         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
81651         jm_AC_HEADER_INTTYPES_H.
81652         * m4/jm-macros.m4 (jm_MACROS): Likewise.
81653
81654         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
81655
81656         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
81657         Quote first arg of AC_DEFUN.
81658         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
81659         since they are needed to parse the include file even if we need
81660         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
81661         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
81662         but with opposite signedness.
81663
81664 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81665
81666         Merge 'exclude' changes from tar 1.13.22.
81667         This fixes one or two unlikely storage allocation overflow bugs,
81668         but doesn't change user-visible behavior otherwise.
81669
81670 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81671
81672         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
81673         (jm_PREREQ_EXCLUDE): New macro.
81674
81675 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81676
81677         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
81678         tm to be declared.
81679
81680 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81681
81682         * lib/hash.c: Remove '2001' from copyright notice.
81683
81684 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81685
81686         * lib/full-write.h: New file.
81687         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
81688         * lib/full-write.c: Correct credits, as cccp.c no longer
81689         exists and anyway it was so heavily changed from the old cccp
81690         code as to be unrecognizable.  Include full-write.h.
81691         (full_write): Return size_t, with short writes meaning failure.
81692         All callers changed.  This fixes a bug with large buffers
81693         on 64-bit hosts.
81694         * lib/utime.c: Include full-write.h.
81695
81696 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81697
81698         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
81699         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
81700         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
81701         Include if available.
81702         (<xalloc.h>): Include
81703         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
81704         (verify): New macro.  Use it to verify that EXCLUDE macros do not
81705         collide with FNM macros.
81706         (struct patopts): New struct.
81707         (struct exclude): Use it, as exclude patterns now come with options.
81708         (new_exclude): Support above changes.
81709         (new_exclude, add_exclude_file):
81710         Initial size must now be a power of two to simplify overflow checking.
81711         (free_exclude, fnmatch_no_wildcards): New function.
81712         (excluded_filename): No longer requires options arg, as the options
81713         are determined by add_exclude.  Now returns bool, not int.
81714         (excluded_filename, add_exclude):
81715         Add support for the fancy new exclusion options.
81716         (add_exclude, add_exclude_file): Now takes int options arg.
81717         Check for arithmetic overflow when computing sizes.
81718         (add_exclude_file): xrealloc might modify errno, so don't
81719         realloc until after errno might be used.
81720
81721         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
81722         New macros.
81723         (free_exclude): New decl.
81724         (add_exclude, add_exclude_file): Now takes int options arg.
81725         (excluded_filename): No longer requires options arg, as the options
81726         are determined by add_exclude.  Now returns bool, not int.
81727
81728 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81729
81730         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
81731
81732 2001-08-27  Jim Meyering  <meyering@lucent.com>
81733
81734         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
81735
81736         * lib/version-etc.c (N_): Remove definition.
81737         Revert most of last change.
81738         Instead, simply don't mark the `Copyright...' string for translation.
81739         Based on advice from Paul Eggert.
81740
81741         * lib/strtoxmax.c: Tweak comment.
81742
81743 2001-08-26  Jim Meyering  <meyering@lucent.com>
81744
81745         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
81746
81747         * m4/xstrtoimax.m4: New file.
81748         * m4/xstrtoumax.m4: Add comments explaining why we
81749         AC_REPLACE_FUNCS(strtol).
81750
81751 2001-08-26  Jim Meyering  <meyering@lucent.com>
81752
81753         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
81754         of copyright with `%s' so translators don't get an untranslated
81755         message in 2002.
81756         (COPYRIGHT_YEAR): Define.
81757         (version_etc): Use fprintf rather than fputs.
81758         Suggestion from Ulrich Drepper.
81759
81760         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
81761
81762         * lib/strtoll.c: New file, from GNU libc.
81763         * lib/xstrtoimax.c: New file.
81764
81765         * lib/xstrtol.h: Add xstrtoimax.
81766         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
81767         * lib/strtoimax.c: New file.  Likewise, but first define
81768         STRTOUXMAX_SIGNED.
81769
81770         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
81771         ...
81772         * lib/strtoxmax.c: ... then renamed to this.
81773
81774 2001-08-18  Paul Eggert  <eggert@twinsun.com>
81775
81776         * m4/inttypes.m4: Add AC_PREREQ(2.13).
81777         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
81778         (jm_AC_TYPE_INTMAX_T): New macro.
81779         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
81780
81781         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
81782
81783         * m4/longlong.m4: Renamed from ulonglong.m4.
81784         * m4/inttypes.m4: Renamed from inttypes_h.m4.
81785         * m4/uintmax_t.m4: Removed.
81786
81787 2001-08-13  Paul Eggert  <eggert@twinsun.com>
81788
81789         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
81790         Port to Solaris 8, where 'sed' requires a space after the 'r'
81791         command, and where sh dislikes "$/".  Clean up the spacing a bit.
81792         Redirect output to $tmp just once.
81793
81794 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
81795
81796         * lib/addext.c (<errno.h>): Include.
81797         (errno): Declare if not defined.
81798         (addext): Work correctly when pathconf returns -1 and leaves
81799         errno alone because there is no limit.  Also, work even if
81800         pathconf returns a value greater than SIZE_MAX.
81801
81802 2001-08-12  Jim Meyering  <meyering@lucent.com>
81803
81804         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
81805         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
81806         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
81807         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
81808         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
81809         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
81810         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
81811         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
81812         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
81813         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
81814         utime.m4, utimes.m4, xstrtoumax.m4:
81815         Quote the first argument in each use of AC_DEFUN.
81816
81817 2001-08-12  Jim Meyering  <meyering@lucent.com>
81818
81819         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
81820         Simply `return getcwd (NULL, 0);'.
81821         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
81822         Use 1300 as initial value for length, not PATH_MAX.
81823
81824         * lib/pathmax.h: Clean up cpp syntax.
81825
81826 2001-08-12  Jim Meyering  <meyering@lucent.com>
81827
81828         * lib/gettimeofday.c: New file.
81829         * lib/gtod.h: New file.
81830         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
81831
81832 2001-08-05  Jim Meyering  <meyering@lucent.com>
81833
81834         * m4/jm-macros.m4: Require autoconf-2.52.
81835
81836 2001-08-04  Jim Meyering  <meyering@lucent.com>
81837
81838         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
81839         stmt, to get in sync with glibc.
81840
81841 2001-08-03  Paul Eggert  <eggert@twinsun.com>
81842
81843         The following changes are from gettext 0.10.39 as maintained by
81844         Bruno Haible.
81845
81846         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
81847         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
81848         with inverted sense.  All uses changed.
81849
81850         * lib/mbswidth.c: Don't include <limits.h>.
81851         Include <stdlib.h> and <string.h> unconditionally.
81852         (iswcntrl, mbsinit, ISCNTRL): New macros.
81853         (mbsnwidth): Use K&R style function declarations.
81854         Don't bother checking for MB_LEN_MAX == 1, since the compiler
81855         can optimize it when MB_CUR_MAX == 1.
81856         The width of control characters is zero, not 1.
81857
81858 2001-08-03  Paul Eggert  <eggert@twinsun.com>
81859
81860         The following changes are from gettext 0.10.39 as maintained by
81861         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
81862
81863         * m4/codeset.m4: Upgrade to serial AM1.
81864         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
81865         all uses changed.  Quote first arg of AC_DEFUN.
81866         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
81867
81868         * m4/iconv.m4: Upgrade to serial AM2.
81869         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
81870         Add --with-libconv-prefix.
81871         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
81872         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
81873         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
81874         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
81875         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
81876
81877         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
81878         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
81879         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
81880         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
81881         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
81882         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
81883         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
81884         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
81885         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
81886
81887         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
81888         string.h any more.
81889
81890         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
81891         not the default value.
81892
81893         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
81894         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
81895         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
81896         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
81897         Also check for iswcntrl, used for wcwidth fallback.
81898         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
81899         to Autoconf 2.13.
81900
81901 2001-08-03  Jim Meyering  <meyering@lucent.com>
81902
81903         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
81904         as it was in the original.  Reported by Paul Eggert.
81905
81906 2001-07-16  Jim Meyering  <meyering@lucent.com>
81907
81908         * m4/gettimeofday.m4: New file.
81909         Prompted by a report from Bernhard Baehr.
81910
81911 2001-07-15  Jim Meyering  <meyering@lucent.com>
81912
81913         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
81914         stuff. Now it's in ../Makefile.cfg.
81915
81916 2001-07-15  Jim Meyering  <meyering@lucent.com>
81917
81918         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
81919         (BUILT_SOURCES): Add unlocked-io.h.
81920         (io_functions): Define.
81921         (unlocked-io.h): New rule.
81922         (DISTCLEANFILES): Add unlocked-io.h.
81923         (all-local): Depend on unlocked-io.h, to ensure it is created.
81924
81925         * lib/unlocked-io.hin: New file
81926
81927         * lib/regex.c: Update from glibc.
81928
81929 2001-07-05  Jim Meyering  <meyering@lucent.com>
81930
81931         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
81932         recommendation.
81933         (libfetish_a_SOURCES): Put all .h files here instead.
81934         Remove a thus-exposed (better checks in automake) duplicate and
81935         two unnecessary .h files.
81936
81937 2001-07-04  Jim Meyering  <meyering@lucent.com>
81938
81939         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
81940         that generates jm-glibc-io.m4 so that it doesn't trigger any make
81941         distcheck failure.
81942
81943 2001-07-02  Jim Meyering  <meyering@lucent.com>
81944
81945         The following changes were prompted by suggestions from Bruno Haible.
81946
81947         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
81948         is now generated.
81949         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
81950         definition of EXTRA_DIST.
81951         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
81952         ensure that the generated file is created/updated whenever the list
81953         of $(unlocked_functions) is changed.
81954         (jm-glibc-io.m4): New rule.
81955         (unlocked-io.h): New rule -- currently unused.
81956
81957 2001-06-24  Jim Meyering  <meyering@lucent.com>
81958
81959         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
81960         unmatched right bracket, rather than kludging it with an extra,
81961         falsely-matching quote in a comment.  Patch by Akim Demaille.
81962
81963 2001-06-11  Jim Meyering  <meyering@lucent.com>
81964
81965         * lib/regex.c: Update from GNU libc.
81966
81967 2001-05-27  Jim Meyering  <meyering@lucent.com>
81968
81969         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
81970         Check for ut_type in struct utmp.
81971
81972 2001-05-27  Jim Meyering  <meyering@lucent.com>
81973
81974         * lib/readutmp.h (UT_TYPE): Define.
81975
81976 2001-05-24  Jim Meyering  <meyering@lucent.com>
81977
81978         * lib/argmatch.c: Include "quote.h".
81979         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
81980         quote function.  Reported by Göran Uddeborg.
81981
81982 2001-05-22  Jim Meyering  <meyering@lucent.com>
81983
81984         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
81985         now that we use the package-supplied version unconditionally.
81986         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
81987
81988 2001-05-21  Jim Meyering  <meyering@lucent.com>
81989
81990         * m4/regex.m4: Change a couple backticks to single quotes to avoid
81991         shell syntax errors.
81992
81993 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
81994
81995         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
81996
81997 2001-05-20  Paul Eggert  <eggert@twinsun.com>
81998
81999         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
82000         Don't bother to check library strftime, since
82001         we'll be using our own my_strftime function anyway.
82002         Define my_strftime instead of strftime.
82003
82004 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
82005
82006         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
82007         which is not yet declared.
82008
82009 2001-05-15  Jim Meyering  <meyering@lucent.com>
82010
82011         * m4/regex.m4: Use proper quoting so brackets appear in the test
82012         program.
82013         Reported by, and with help from, Bruno Haible.
82014
82015 2001-05-13  Jim Meyering  <meyering@lucent.com>
82016
82017         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
82018         undefined.
82019
82020 2001-05-11  Paul Eggert  <eggert@twinsun.com>
82021
82022         dirname code cleanup.  base_name now behaves more compatibly
82023         with POSIX basename when given file names that have trailing
82024         slashes, and similarly for dir_name.  Add new primitives
82025         base_len and dir_len.  Put the directory-name-related decls
82026         into dirname.h.
82027
82028         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
82029         * lib/backupfile.c (base_name): Likewise.
82030         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
82031         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
82032         * lib/makepath.c (strip_trailing_slashes): Likewise.
82033         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
82034         ISSLASH): Likewise.
82035         * lib/rename.c (strip_trailing_slashes): Likewise.
82036         * lib/same.c (base_name): Likewise.
82037         * lib/stripslash.c (ISSLASH): Likewise.
82038
82039         * lib/addext.c: Include <dirname.h> after size_t is defined.
82040         * lib/backupfile.c: Likewise.
82041
82042         * lib/addext.c (addext): Use base_len to trim redundant
82043         trailing slashes instead of doing it ourselves.
82044         But do not trim the last slash if it is not redundant.
82045
82046         * lib/backupfile.c (find_backup_file_name,
82047         max_backup_version): Use base_len instead of rolling it ourselves.
82048         Handle the case of "" and (on DOS) "C:" correctly.
82049
82050         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
82051         needed. Include <string.h>, <dirname.h>.
82052         (base_name): Allow file names ending in slashes, other than names
82053         that are all slashes.  In this case, return the basename followed
82054         by the slashes.  This is more general, and can be used in places
82055         where the original base_name purposely had an assertion failure.
82056         (base_len): New function.
82057
82058         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
82059         Do not include <assert.h>; no longer needed.
82060         Include xalloc.h.
82061         (memrchr): Remove decl.
82062         (dir_name_r): Remove.
82063         (dir_len): Renamed from dirlen.  All callers changed.
82064         Rewrite in terms of base_name, for simplicity and consistency.
82065         (dir_name): Never return NULL.  All callers changed.
82066         Do not include <stdlib.h> in test program; no longer needed.
82067         return 0; is fine for test program.
82068
82069         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
82070         New macros.
82071         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
82072
82073         * lib/path-concat.c (path_concat): Use base_len to compute
82074         base length, not strlen; this means we cannot rely on memcpy
82075         to null-terminate.
82076
82077         * lib/same.c (STREQ): Remove.
82078         (same_name): Handle the case where the basename ends in trailing '/'.
82079
82080         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
82081         a slash was stripped.  Do not strip the last slash after a
82082         file system prefix.
82083
82084 2001-05-11  Paul Eggert  <eggert@twinsun.com>
82085
82086         * lib/Makefile.am (libfetish_a_SOURCES):
82087         Add strftime.c, since we now compile it on all hosts.
82088
82089         * lib/strftime.c (my_strftime):
82090         Define to nstrftime if emacs, but only if my_strftime is not defined.
82091         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
82092         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
82093         Add one more extra argument: a nanoseconds value.
82094         All uses changed.
82095         (ns): New macro.
82096         (my_strftime function): Add %N format.
82097         (emacs_strftimeu): Renamed from emacs_strftime,
82098         with extra ut argument.
82099
82100 2001-05-09  Paul Eggert  <eggert@twinsun.com>
82101
82102         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
82103
82104 2001-04-21  Jim Meyering  <meyering@lucent.com>
82105
82106         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
82107         doesn't interfere.
82108
82109 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
82110
82111         * m4/ftruncate.m4: Check for chsize.
82112         Link with ftruncate.o unconditionally if ftruncate is missing.
82113         This was required when cross-compiling to i586-mingw32msvc.
82114
82115 2001-04-08  Jim Meyering  <meyering@lucent.com>
82116
82117         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
82118         recomputed; that's necessary when the offset spans a DST transition.
82119         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
82120
82121 2001-04-02  Jim Meyering  <meyering@lucent.com>
82122
82123         * lib/regex.h, regex.c: Update from GNU libc.
82124
82125 2001-03-24  Jim Meyering  <meyering@lucent.com>
82126
82127         * m4/jm-macros.m4: Require autoconf-2.49d.
82128
82129 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
82130
82131         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
82132
82133 2001-03-19  Paul Eggert  <eggert@twinsun.com>
82134
82135         * lib/version-etc.c (version_etc_copyright): Update to 2001.
82136
82137 2001-03-17  Jim Meyering  <meyering@lucent.com>
82138
82139         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
82140         now that the version in autoconf is equivalent.
82141         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
82142
82143         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
82144         Suggestion from Akim Demaille.
82145
82146         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
82147         (jm_PREREQ_TEMPNAME): New function.
82148
82149 2001-03-16  Paul Eggert  <eggert@twinsun.com>
82150
82151         * lib/tempname.c (uint64_t): Define to uintmax_t if
82152         not defined, and if UINT64_MAX is not defined.
82153         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
82154         Reported by John David Anglin.
82155
82156 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
82157
82158         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
82159         resolve alias if codeset is empty.
82160         * lib/config.charset (BeOS): Use wildcard syntax.
82161
82162 2001-03-13  Jim Meyering  <meyering@lucent.com>
82163
82164         * lib/path-concat.c (path_concat)
82165         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
82166         concatenating e.g., `C:' and `foo'.
82167         From Bruno Haible.
82168
82169 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
82170
82171         * lib/localcharset.c (locale_charset): Don't use
82172         setlocale(LC_CTYPE,NULL). Don't return NULL.
82173         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
82174
82175 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
82176
82177         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
82178         support for DOS/DJGPP.
82179
82180 2001-03-01  Paul Eggert  <eggert@twinsun.com>
82181
82182         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
82183         lacks mkstemp.  Compile our own tempname.c if we compile our own
82184         mkstemp.c, as mkstemp relies on tempname.
82185
82186 2001-03-01  Jim Meyering  <meyering@lucent.com>
82187
82188         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
82189         AH_VERBATIM really does output its argument verbatim.
82190
82191 2001-02-28  Paul Eggert  <eggert@twinsun.com>
82192
82193         * lib/Makefile.am (libfetish_a_SOURCES):
82194         Add dup-safer.c, fopen-safer.c.
82195         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
82196
82197         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
82198         * lib/unistd-safer.h: New files.
82199
82200 2001-02-25  Paul Eggert  <eggert@twinsun.com>
82201
82202         The mkstemp replacement is taken from glibc 2.2.2, with some
82203         portability fixes for use outside glibc, as follows:
82204
82205         * lib/tempname.c (struct_stat64): New macro.
82206         (direxists, __gen_tempname): Use it.
82207         This avoids a portability problem with Solaris 8.
82208
82209         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
82210         (<stddef.h>, <stdint.h>, <string.h>):
82211         Include only if STDC_HEADERS || _LIBC.
82212         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
82213         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
82214         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
82215         (__set_errno): Define this macro if <errno.h> doesn't.
82216         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
82217         Define these macros if <stdio.h> doesn't.
82218         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
82219         Define these macros if <sys/stat.h>
82220         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
82221         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
82222         __xstat64): Define if not _LIBC.
82223         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
82224         (__gen_tempname): Invoke gettimeofday only if
82225         HAVE_GETTIMEOFDAY || _LIBC;
82226         otherwise, fall back on plain "time".
82227         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
82228
82229         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
82230
82231         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
82232
82233 2001-02-18  Paul Eggert  <eggert@twinsun.com>
82234
82235         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
82236
82237 2001-02-17  Paul Eggert  <eggert@twinsun.com>
82238
82239         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
82240         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
82241         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
82242         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
82243
82244 2001-02-17  Paul Eggert  <eggert@twinsun.com>
82245
82246         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
82247         Remove workaround macros for hosts that have mbrtowc but not
82248         mbstate_t, as we now insist on proper declarations for both
82249         before using mbrtowc.
82250
82251 2001-02-17  Jim Meyering  <meyering@lucent.com>
82252
82253         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
82254         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
82255         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
82256         UnixWare 7.1.1.
82257
82258         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
82259         rather than AC_CACHE_VAL.
82260
82261 2001-02-17  Jim Meyering  <meyering@lucent.com>
82262
82263         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
82264         around included file name.
82265
82266         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
82267
82268         * lib/strftime.c: Update from GNU libc (the only changes were to
82269         comments).
82270
82271 2001-02-17  Jim Meyering  <meyering@lucent.com>
82272
82273         * lib/regex.c: Update from libc.
82274
82275 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
82276
82277         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
82278         clash.
82279
82280 2001-02-16  Paul Eggert  <eggert@twinsun.com>
82281
82282         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
82283         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
82284         Reported by Mark Hounschell via Paul Eggert.
82285
82286 2001-02-07  Jim Meyering  <meyering@lucent.com>
82287
82288         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
82289
82290 2001-02-05  Jim Meyering  <meyering@lucent.com>
82291
82292         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
82293         it includes the patch required for `large file' support with at least
82294         HP-UX's 10.20 /bin/cc.
82295
82296 2001-02-03  Jim Meyering  <meyering@lucent.com>
82297
82298         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
82299         AS_IF, now that it works once again (mysteriously).
82300         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
82301
82302 2001-01-30  Jim Meyering  <meyering@lucent.com>
82303
82304         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
82305         * m4/chown.m4: Rename conftestchown to conftest.chown.
82306         * m4/rename.m4: s/conftestdir/conftest.d1/ and
82307         s/conftestdir2/conftest.d2/.
82308         * m4/utimes.m4: s/conftestdata/conftest.data/
82309         Inspired by Pavel Roskin's change in autoconf.
82310
82311 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
82312
82313         * lib/config.charset: Update for FreeBSD 4.2.
82314
82315 2001-01-27  Jim Meyering  <meyering@lucent.com>
82316
82317         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
82318         a use of AS_IF.
82319         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
82320
82321 2001-01-26  Jim Meyering  <meyering@lucent.com>
82322
82323         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
82324         quotearg.c includes it.
82325
82326 2001-01-26  Jim Meyering  <meyering@lucent.com>
82327
82328         * lib/quotearg.c: Include stddef.h.
82329         * lib/quote.c: Include stddef.h.
82330         Reported by Axel Kittenberger.
82331
82332         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
82333         line in double quotes so that it evokes a better diagnostic.
82334         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
82335         Reported by Axel Kittenberger.
82336
82337 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
82338
82339         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
82340         as if it was a `charset'.
82341
82342 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
82343
82344         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
82345         has const.
82346
82347 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
82348
82349         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
82350         to avoid a warning.  Add back 'const' to inptr.
82351
82352 2001-01-20  Jim Meyering  <meyering@lucent.com>
82353
82354         Be sure that headers are checked before used in code compiled
82355         for the type checks.
82356         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
82357         In place of that, invoke jm_CHECK_ALL_TYPES.
82358         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
82359         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
82360         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
82361         The check for ssize_t was mistakenly run before the test for unistd.h.
82362
82363         The configure-time check for stdbool.h was missing.
82364         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
82365         (jm_PREREQ_HASH): New function.
82366
82367 2001-01-17  Jim Meyering  <meyering@lucent.com>
82368
82369         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
82370         for autoconf-2.49c.
82371         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
82372
82373 2001-01-16  Jim Meyering  <meyering@lucent.com>
82374
82375         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
82376         From Bruno Haible.
82377
82378 2001-01-14  Jim Meyering  <meyering@lucent.com>
82379
82380         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
82381         foo and bar.  Create conftestdir/ in the script, not in the C code.
82382         Remove directories in the script, not in the C code.
82383         Remove conftestdir{,2} before trying to create the directory.
82384         Make the entire configure script fail if the mkdir fails.
82385
82386 2001-01-14  Jim Meyering  <meyering@lucent.com>
82387
82388         * lib/rename.c: New file.  From Volker Borchert.
82389         Include stdlib.h, string.h or strings.h, and xalloc.h.
82390         Use strip_trailing_slashes rather than open-coding it.
82391
82392 2001-01-03  Paul Eggert  <eggert@twinsun.com>
82393
82394         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
82395
82396 2001-01-03  Jim Meyering  <meyering@lucent.com>
82397
82398         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
82399         of local `inptr' to avoid warning with some system declarations of
82400         iconv.
82401
82402 2001-01-02  Volker Borchert  <bt@teknon.de>
82403
82404         * m4/rename.m4: New file.
82405         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
82406
82407 2001-01-01  Jim Meyering  <meyering@lucent.com>
82408
82409         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
82410         even on systems with utmpx.h.  It's necessary for the declaration of
82411         utmp's ut_user member.  Reported by Andreas Jaeger.
82412
82413         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
82414         available. They are required for the declarations of getgrgid and
82415         getpwuid resp.
82416         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
82417         Reported by Andreas Jaeger.
82418
82419 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
82420
82421         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
82422         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
82423         so `make install' also works in VPATH builds.
82424
82425 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
82426
82427         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
82428         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
82429         can be used in subdirectories.
82430
82431 2000-12-29  Paul Eggert  <eggert@twinsun.com>
82432
82433         * lib/modechange.c: Do not assume that mode_t uses the
82434         traditional octal encoding.  E.g. "chmod 1 FOO" should set
82435         the other-execute bit of FOO even if S_IXOTH != 1.
82436
82437         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
82438         WOTH, XOTH, ALLM): New macros.
82439         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
82440          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
82441         Use them.
82442         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
82443         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
82444         (mode_compile):
82445         No need to use uintmax_t; unsigned long is long enough.
82446         Don't bother to get suffix since we don't use it.
82447
82448 2000-12-26  Jim Meyering  <meyering@lucent.com>
82449
82450         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
82451         better with autoheader.
82452
82453 2000-12-24  Jim Meyering  <meyering@lucent.com>
82454
82455         * lib/hash.c (is_prime): Return explicit boolean values.
82456         (hash_get_first): Return NULL to appease Irix5.6's 89.
82457         Reported by Nelson Beebe.
82458
82459 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
82460
82461         * lib/localcharset.c (locale_charset): Add support for Win32.
82462
82463 2000-12-18  Paul Eggert  <eggert@twinsun.com>
82464
82465         * lib/physmem.h, lib/physmem.c: New files.
82466
82467         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
82468         (noinst_HEADERS): Add physmem.h.
82469
82470         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
82471         't' for compatibility with Solaris 8 sort.
82472
82473 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
82474
82475         * lib/config.charset: Add support for BeOS.
82476
82477 2000-12-17  Jim Meyering  <meyering@lucent.com>
82478
82479         * m4/dos.m4 (jm_AC_DOS): New file and macro.
82480         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
82481
82482 2000-12-16  Jim Meyering  <meyering@lucent.com>
82483
82484         This bug had a serious impact on chown: `chown N:M FILE' (for integer
82485         N and M) would have treated it like `chown N:N FILE'.
82486
82487         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
82488
82489 2000-12-16  Jim Meyering  <meyering@lucent.com>
82490
82491         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
82492         SHELLS_FILE to a file name that's useful on djgpp systems.
82493         Include stdlib.h.
82494         (ADDITIONAL_DEFAULT_SHELLS): Define.
82495         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
82496         Based mostly on a patch from Prashant TR.
82497
82498 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
82499
82500         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
82501         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
82502         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
82503
82504 2000-12-08  Andreas Schwab  <schwab@suse.de>
82505
82506         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
82507         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
82508
82509 2000-12-07  Jim Meyering  <meyering@lucent.com>
82510
82511         * lib/stripslash.c (ISSLASH): Define.
82512         (strip_trailing_slashes): Use ISSLASH rather than comparing against
82513         `/'.
82514         From Prashant TR.
82515
82516         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
82517         (dir_name_r): Declare this function as static.
82518         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
82519         manifest itself on a name containing a mix of slashes and
82520         backslashes.
82521         Make this function work with names starting with a DOS-style
82522         drive letter and colon prefix.
82523         (dir_name): Append `.' if necessary.
82524         Based mostly on patches from Prashant TR and Eli Zaretskii.
82525
82526         * lib/dirname.h (dir_name_r): Remove prototype.
82527
82528 2000-12-06  Paul Eggert  <eggert@twinsun.com>
82529
82530         * m4/off_t-format.m4: Remove this file.
82531         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
82532
82533 2000-12-06  Jim Meyering  <meyering@lucent.com>
82534
82535         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
82536         replacement strtoull, we may well need the replacement strtoul, too.
82537         Check for declarations of strtoul and strtoull.
82538         Check for strtol.  Mainly as a cue to cause automake to include
82539         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
82540         Check for limits.h -- strtol.c needs it.
82541
82542 2000-12-05  Jim Meyering  <meyering@lucent.com>
82543
82544         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
82545
82546 2000-12-04  Jim Meyering  <meyering@lucent.com>
82547
82548         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
82549         Also include memory.h, stdlib.h, unistd.h if appropriate.
82550         Reported by Andreas Jaeger (conflicting declaration of malloc).
82551
82552 2000-12-02  Jim Meyering  <meyering@lucent.com>
82553
82554         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
82555         * m4/jm-macros.m4 (jm_MACROS): require it.
82556
82557 2000-12-02  Jim Meyering  <meyering@lucent.com>
82558
82559         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
82560
82561 2000-12-01  Paul Eggert  <eggert@twinsun.com>
82562
82563         * lib/memrchr.c: Include <config.h> before any system include file.
82564
82565 2000-11-30  Jim Meyering  <meyering@lucent.com>
82566
82567         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
82568
82569 2000-11-30  Jim Meyering  <meyering@lucent.com>
82570
82571         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
82572
82573 2000-11-29  Paul Eggert  <eggert@twinsun.com>
82574
82575         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
82576
82577 2000-11-26  Jim Meyering  <meyering@lucent.com>
82578
82579         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
82580
82581 2000-11-22  Paul Eggert  <eggert@twinsun.com>
82582
82583         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
82584         size of (size_t) -1; it's not portable.
82585
82586 2000-11-17  Jim Meyering  <meyering@lucent.com>
82587
82588         * lib/strstr.c: Update from GNU libc.
82589
82590 2000-11-17  Akim Demaille  <akim@epita.fr>
82591
82592         * lib/obstack.h: Formatting changes.
82593         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
82594         prevent type checking.
82595         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
82596         cast the value to (void *): assigning a `foo *' to a `void *'
82597         variable is valid.
82598         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
82599
82600 2000-11-16  Jim Meyering  <meyering@lucent.com>
82601
82602         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
82603
82604 2000-11-11  Jim Meyering  <meyering@lucent.com>
82605
82606         * lib/error.c: Add a couple #includes, merging from GNU libc version.
82607
82608 2000-11-10  Jim Meyering  <meyering@lucent.com>
82609
82610         * lib/obstack.h: Update from GNU libc.
82611         * lib/obstack.c: Likewise.
82612
82613 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
82614
82615         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
82616
82617 2000-11-06  Paul Eggert  <eggert@twinsun.com>
82618
82619         * lib/getusershell.c (setusershell): Use rewind rather than
82620         fseek/fseeko, to avoid configuration hassles with fseeko.
82621         Don't bother opening SHELLS_FILE if shellstream is NULL;
82622         it's not necessary.
82623
82624 2000-11-05  Jim Meyering  <meyering@lucent.com>
82625
82626         * lib/makepath.h (make_dir): Declare.
82627         * lib/makepath.c (make_dir): Remove `static' attribute.
82628         Tweak a comment.
82629
82630 2000-11-04  Jim Meyering  <meyering@lucent.com>
82631
82632         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
82633
82634 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
82635
82636         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
82637         last one in a bucket, advance to the next bucket.
82638
82639 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
82640
82641         * lib/fnmatch.c: Do not comment out all the code if we are using
82642         the GNU C library, because in some cases we are replacing buggy
82643         code in the GNU C library itself.
82644
82645 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
82646
82647         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
82648         (regex_compile): Catch bogus \(\1\).
82649
82650 2000-10-30  Paul Eggert  <eggert@twinsun.com>
82651
82652         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
82653         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
82654         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
82655
82656 2000-10-30  Paul Eggert  <eggert@twinsun.com>
82657
82658         * lib/error.h, getline.h, modechange.h:
82659         Remove "2000" from Copyright line, as the file hasn't been
82660         changed this year other than in the copyright notice.
82661
82662         * lib/xalloc.h: Add "2000" to Copyright line, as this file
82663         was changed this year.
82664
82665 2000-10-29  Jim Meyering  <meyering@lucent.com>
82666
82667         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
82668         renaming.
82669         * m4/ls-mntd-fs.m4: Likewise
82670
82671 2000-10-29  Jim Meyering  <meyering@lucent.com>
82672
82673         * lib/xstat.in: Fix grammar in comment.
82674
82675 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
82676
82677         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
82678         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
82679         doesn't define __restrict_arr.
82680
82681 2000-10-28  Jim Meyering  <meyering@lucent.com>
82682
82683         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
82684         (jm_PREREQ_MEMCHR): New function.
82685
82686 2000-10-28  Jim Meyering  <meyering@lucent.com>
82687
82688         * lib/memchr.c: Update from libc.
82689         Adjust for portability:
82690         [HAVE_STDLIB_H]: Include stdlib.h.
82691         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
82692         Undef __memchr, too.
82693         [!weak_alias]: Define __memchr to memchr.
82694
82695         * lib/regex.c: Update from libc.
82696         * lib/regex.h: Likewise.
82697         * lib/getopt1.c: Likewise.
82698         * lib/memcmp.c: Likewise.
82699
82700         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
82701         Avoid using fseek, when possible -- it's broken by design.
82702         Patch by Ulrich Drepper.
82703
82704 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
82705
82706         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
82707         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
82708         Giving in to popular pressure to shut up the compiler with casts.
82709
82710 2000-10-26  Jim Meyering  <meyering@lucent.com>
82711
82712         * lib/strftime.c: Update from libc.
82713
82714 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
82715
82716         * regex.c: More `unsigned char' -> `re_char' changes.
82717         Also change several `int' into `re_wchar_t'.
82718         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
82719         (PUSH_FAILURE_POINTER): Don't cast any more.
82720         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
82721         We want GCC to complain, since this piece of code makes
82722         re_match non-reentrant, which *should* be fixed.
82723         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
82724         (EXTEND_BUFFER): Use RETALLOC.
82725         (SET_LIST_BIT): Don't cast.
82726         (re_wchar_t): New type.
82727         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
82728         that those two functions will always properly return.
82729         (IMMEDIATE_QUIT_CHECK): Cast to void.
82730         (analyse_first): Use recursion rather than an explicit stack.
82731         (re_compile_fastmap): Can't fail anymore.
82732         (re_search_2): Don't check re_compile_fastmap for failure.
82733         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
82734         Now also sets the new value (passed in a new argument).
82735         (re_match_2_internal): Use it.
82736         Also, use a new var `reg' of type size_t when looping through regs
82737         rather than reuse the inappropriate `mcnt'.
82738
82739 2000-10-25  Jim Meyering  <meyering@lucent.com>
82740
82741         * lib/obstack.c: Update from libc.
82742
82743 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
82744
82745         * regex.c (regex_compile): Change the way of handling a range from
82746         a char less than 256 to a char not less than 256.
82747
82748 2000-10-24  Andrew Innes  <andrewi@gnu.org>
82749
82750         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
82751         NT-Emacs only.
82752         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
82753         so that re_search functions only quit when callers expect them to.
82754
82755 2000-10-23  Jim Meyering  <meyering@lucent.com>
82756
82757         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
82758         wrong.  That set_locale call must not have any side effects.
82759         From Paul Eggert.
82760
82761 2000-10-22  Jim Meyering  <meyering@lucent.com>
82762
82763         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
82764         [CYCLIC]: Remove now-unused definition.
82765
82766         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
82767         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
82768         Suggestion from Ulrich Drepper.
82769
82770 2000-10-21  Jim Meyering  <meyering@lucent.com>
82771
82772         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
82773         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
82774         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
82775
82776 2000-10-21  Jim Meyering  <meyering@lucent.com>
82777
82778         * lib/dirname.c (memrchr): Declare if necessary.
82779         (dir_name): Remove the restriction that there be no
82780         trailing slashes.  Now, this code skips past them, effectively
82781         ignoring them.
82782         [TEST_DIRNAME] (main): New unit tests.
82783
82784         * lib/memrchr.c: New file from GNU libc.
82785         Undef __memrchr, too.
82786         [!weak_alias]: Define __memrchr to memrchr.
82787         Guard weak_alias use with `#ifdef weak_alias'.
82788
82789 2000-10-21  Jim Meyering  <meyering@lucent.com>
82790
82791         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
82792         (dir_name): Use dir_name_r.
82793         * lib/dirname.h (dir_name_r): Declare it.
82794
82795 2000-10-17  Jim Meyering  <meyering@lucent.com>
82796
82797         * lib/quote.h (PARAMS): Define and use.
82798         Reported by Akim Demaille.
82799
82800         * lib/getopt.c: Update from libc.
82801
82802 2000-10-16  Jim Meyering  <meyering@lucent.com>
82803
82804         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
82805         setlocale.
82806         From Jan Fedak.
82807
82808 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
82809
82810         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
82811
82812 2000-09-25  Jim Meyering  <meyering@lucent.com>
82813
82814         * lib/md5.h (rol): Define (from GnuPG).
82815
82816         * lib/sha.c: Give credit (GnuPG) where due.
82817         (M): Use rol rather than open-coding it.
82818         Add a FIXME comment.
82819
82820 2000-09-21  Jim Meyering  <meyering@lucent.com>
82821
82822         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
82823         Reported by Michael Stone.
82824
82825 2000-09-20  Jim Meyering  <meyering@lucent.com>
82826
82827         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
82828         (noinst_HEADERS): Add sha.h.
82829         Based on code from Scott G. Miller and from GnuPG.
82830
82831 2000-09-18  Jim Meyering  <meyering@lucent.com>
82832
82833         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
82834         LIBS. Otherwise, everyone ends up linking with -lelf for some
82835         configurations.
82836         Reported by Mike Stone.
82837
82838 2000-09-15  Jim Meyering  <meyering@lucent.com>
82839
82840         * lib/regex.c: Update from libc.
82841
82842 2000-09-10  Jim Meyering  <meyering@lucent.com>
82843
82844         * lib/getopt.c (_getopt_internal): Update from glibc.
82845
82846 2000-09-09  Jim Meyering  <meyering@lucent.com>
82847
82848         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
82849         think it should be used as a general replacement for isascii.
82850         * lib/fnmatch.c: Likewise.
82851         * lib/mbswidth.c: Likewise
82852         * lib/regex.c: Likewise.
82853
82854         Don't use atoi.
82855         * lib/userspec.c: Include sys/param.h and limits.h.
82856         Include xstrtol.h.
82857         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
82858         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
82859         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
82860         UID, GID.  Check range.
82861
82862 2000-09-06  Jim Meyering  <meyering@lucent.com>
82863
82864         * lib/getopt.c (_getopt_internal): Update from glibc.
82865
82866 2000-08-30  Jim Meyering  <meyering@lucent.com>
82867
82868         * lib/strftime.c: Merge in changes from GNU libc.
82869
82870 2000-08-26  Jim Meyering  <meyering@lucent.com>
82871
82872         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
82873         * m4/fpending.m4: New file.
82874
82875 2000-08-26  Jim Meyering  <meyering@lucent.com>
82876
82877         * lib/closeout.c: Include "__fpending.h".
82878         (close_stdout_status): Return right away if there's nothing to flush.
82879
82880         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
82881         * lib/__fpending.c: New file.
82882         * lib/__fpending.h: New file.
82883
82884 2000-08-20  Jim Meyering  <meyering@lucent.com>
82885
82886         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
82887         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
82888         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
82889
82890 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
82891
82892         Improve fileutils installation on systems where running
82893         programs (like install) can't be unlinked.
82894         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
82895         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
82896
82897 2000-08-07  Paul Eggert  <eggert@twinsun.com>
82898
82899         Standardize on "memory exhausted" instead of "Memory exhausted"
82900         or "virtual memory exhausted".
82901         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
82902         "virtual memory exhausted".
82903         * lib/same.c (same_name): Invoke xalloc_die instead of printing
82904         our own message.
82905         * lib/userspec.c (parse_user_spec): Likewise.
82906         * lib/bumpalloc.h: comment fix
82907         * lib/same.c, userspec.c: Include xalloc.h.
82908
82909         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
82910         not char *const and pointing to a constant array.
82911         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
82912         (xrealloc): Comment fix.
82913
82914         * lib/userspec.c (parse_user_spec):
82915         Don't translate a message until just before returning,
82916         to avoid unnecessary translation.
82917
82918 2000-08-07  Jim Meyering  <meyering@lucent.com>
82919
82920         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
82921         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
82922         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
82923         getgroups.c, gethostname.c, getopt.h, group-member.c,
82924         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
82925         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
82926         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
82927         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
82928         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
82929         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
82930         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
82931         yesno.c: Back out Copyright date changes for each file with no change
82932         this year.  This eases coordination with other programs using the same
82933         source code modules.  From Paul Eggert.
82934
82935 2000-08-06  Paul Eggert  <eggert@twinsun.com>
82936
82937         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
82938         not char, for compatibility with glibc 2.1.3 strftime.c.
82939
82940 2000-08-03  Greg McGary  <greg@mcgary.org>
82941
82942         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
82943         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
82944         (EXTEND_BUFFER): Use them.
82945
82946 2000-08-01  Jim Meyering  <meyering@lucent.com>
82947
82948         * lib/dirname.c (ISSLASH): Define.
82949         (BACKSLASH_IS_PATH_SEPARATOR): Define.
82950         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
82951         both `\' and `/' may be use as path separators.
82952         Based on a patch from Prashant TR.
82953
82954 2000-07-31  Paul Eggert  <eggert@twinsun.com>
82955
82956         * lib/quotearg.c (quotearg_n_options): Don't make the initial
82957         slot vector a constant, since it might get modified.
82958
82959 2000-07-31  Jim Meyering  <meyering@lucent.com>
82960
82961         * lib/xmalloc.c: Use `virtual memory exhausted', not
82962         `Memory exhausted'.
82963         * lib/obstack.c (print_and_abort): Likewise.
82964
82965 2000-07-30  Paul Eggert  <eggert@twinsun.com>
82966
82967         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
82968         buffer, so that the caller can always quote one small
82969         component of a "memory exhausted" message in slot 0.
82970         From a suggestion by Jim Meyering.
82971
82972 2000-07-30  Jim Meyering  <meyering@lucent.com>
82973
82974         * lib/makepath.c (make_path): Quote the other instance, too.
82975
82976         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
82977         (STATIC_BUF_SIZE): Define.
82978         (quotearg_n_options): Use only statically allocated storage when
82979         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
82980         than STATIC_BUF_SIZE.
82981
82982 2000-07-29  Jim Meyering  <meyering@lucent.com>
82983
82984         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
82985         * lib/dirname.c (dir_name): Likewise.
82986
82987         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
82988         `/'.
82989
82990         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
82991         (dir_name): Assert that there are no trailing slashes.
82992
82993 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
82994
82995         * lib/mbswidth.h (mbswidth): Add a flags argument.
82996         (mbswidth): New declaration.
82997         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
82998         * lib/mbswidth.c (mbswidth): Add a flags argument.
82999         (mbsnwidth): New function.
83000
83001 2000-07-24  Jim Meyering  <meyering@lucent.com>
83002
83003         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
83004
83005 2000-07-23  Paul Eggert  <eggert@twinsun.com>
83006
83007         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
83008
83009 2000-07-23  Paul Eggert  <eggert@twinsun.com>
83010
83011         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
83012         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
83013         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
83014         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
83015         invoke multibyte primitives.
83016
83017 2000-07-23  Paul Eggert  <eggert@twinsun.com>
83018
83019         * lib/quotearg.c:
83020         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
83021         so that mbstate_t is always defined.
83022
83023         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
83024         be 1 in at least one GCC installation, and this configuration
83025         error is likely to be common.  Ignoring MB_LEN_MAX hurts
83026         performance on hosts that have mbrtowc but have only unibyte
83027         locales, but I assume these hosts are rare.
83028
83029 2000-07-23  Paul Eggert  <eggert@twinsun.com>
83030
83031         * lib/mbswidth.c (_XOPEN_SOURCE):
83032         Don't define; this causes problems on Solaris 7.
83033         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
83034
83035 2000-07-23  Jim Meyering  <meyering@lucent.com>
83036
83037         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
83038         too: getgrgid, getpwuid, getuid.
83039
83040 2000-07-23  Jim Meyering  <meyering@lucent.com>
83041
83042         * lib/basename.c (base_name): Add an assertion.
83043
83044 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
83045
83046         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
83047         shadow its mbsinit function.
83048
83049 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
83050
83051         * lib/mbswidth.h: New file.
83052         * lib/mbswidth.c: New file.
83053         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
83054         (noinst_HEADERS): Add mbswidth.h.
83055
83056 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
83057
83058         * lib/config.charset: Add support for FreeBSD. Improve support for
83059         HP-UX and IRIX 6.
83060
83061 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
83062
83063         * m4/mbswidth.m4: New file.
83064         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
83065
83066 2000-07-15  Jim Meyering  <meyering@lucent.com>
83067
83068         * lib/makepath.c: Include quote.h.
83069         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
83070         corresponding argument in a `quote (...)' call.
83071         Give better diagnostics.
83072
83073         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
83074         (noinst_HEADERS): Add quote.h.
83075
83076         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
83077         from tar's src/misc.c.
83078         * lib/quote.h: New file.  Prototypes for same.
83079
83080 2000-07-14  Paul Eggert  <eggert@twinsun.com>
83081
83082         From a suggestion by Bruno Haible.
83083         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
83084         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
83085         to decide whether to define the BeOS workaround macro;
83086         this adjusts to the change to AC_MBSTATE_T.
83087
83088 2000-07-14  Jim Meyering  <meyering@lucent.com>
83089
83090         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
83091         jm_AC_TYPE_UINTMAX_T.
83092
83093 2000-07-13  Paul Eggert  <eggert@twinsun.com>
83094
83095         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
83096
83097         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
83098         quotearg_buffer_restyled): Add support for
83099         clocale_quoting_style.  Undo previous change to
83100         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
83101         and "{RIGHT QUOTATION MARK}" msgids.
83102
83103 2000-07-10  Paul Eggert  <eggert@twinsun.com>
83104
83105         From a suggestion by Bruno Haible.
83106         * m4/mbstate_t.m4 (AC_MBSTATE_T):
83107         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
83108         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
83109         and mbstate_t, to a single-part test that simply defines mbstate_t.
83110         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
83111         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
83112
83113 2000-07-10  Jim Meyering  <meyering@lucent.com>
83114
83115         * m4/strerror_r.m4: Mirror the correction made in autoconf.
83116
83117         * m4/gnu-source.m4: Output to confdefs.h directly.
83118         Suggestion from Akim Demaille.
83119
83120 2000-07-09  Paul Eggert  <eggert@twinsun.com>
83121
83122         The old behavior of quoting `like this' doesn't look good with
83123         newer, ISO-style fonts.  See:
83124         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
83125
83126         Instead, quote "like this" by default.  Let the translator
83127         tailor the locale-specific quoting behavior by providing
83128         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
83129
83130         * lib/quotearg.c (N_): New macro.
83131         (gettext_default): New function.
83132         (quotearg_buffer_restyled): Use
83133         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
83134         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
83135
83136 2000-07-09  Jim Meyering  <meyering@lucent.com>
83137
83138         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
83139         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
83140
83141         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
83142         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
83143
83144 2000-07-09  Jim Meyering  <meyering@lucent.com>
83145
83146         * lib/Most files: Update copyright dates to include 2000.
83147
83148 2000-07-08  Jim Meyering  <meyering@lucent.com>
83149
83150         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
83151         if not defined.
83152         (xgethostname): Remove now-unnecessary #ifdef.
83153         Move declaration of `err' into loop where it's used.
83154
83155 2000-07-05  Paul Eggert  <eggert@twinsun.com>
83156         and Bruno Haible  <haible@clisp.cons.org>
83157
83158         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
83159         only if the test for an object-type mbstate_t fails.  This
83160         prevents us from mistakenly reporting that mbstate_t is a
83161         system object type after we "#define mbstate_t int" to work
83162         around its lack.
83163
83164 2000-07-05  Paul Eggert  <eggert@twinsun.com>
83165         and Bruno Haible  <haible@clisp.cons.org>
83166
83167         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
83168
83169 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
83170
83171         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
83172         to strerror_r.
83173         Include <ctype.h> for use of isalpha.
83174
83175 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
83176
83177         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
83178         by allocating a larger buffer. Test the gethostname return value for
83179         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
83180         returns an error and ENAMETOOLONG isn't defined.
83181
83182 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
83183
83184         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
83185         dimension.
83186
83187 2000-07-04  Jim Meyering  <meyering@lucent.com>
83188
83189         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
83190         of the deprecated AC_CHECKING.
83191
83192 2000-07-04  Jim Meyering  <meyering@lucent.com>
83193
83194         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
83195         Reported by Bruno Haible.
83196
83197 2000-07-04  Jim Meyering  <meyering@lucent.com>
83198
83199         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
83200         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
83201         lacks mbrtowc.
83202
83203 2000-07-03  Paul Eggert  <eggert@twinsun.com>
83204
83205         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
83206         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
83207
83208 2000-07-03  Paul Eggert  <eggert@twinsun.com>
83209         and Bruno Haible  <haible@clisp.cons.org>
83210
83211         * lib/quotearg.c (mbrtowc):
83212         Assign to *pwc, and return 1 only if result is nonzero.
83213         (iswprint): Use ISPRINT when substituting our own mbrtowc.
83214
83215 2000-07-03  Jim Meyering  <meyering@lucent.com>
83216
83217         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
83218
83219 2000-07-03  Jim Meyering  <meyering@lucent.com>
83220
83221         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
83222         This is necessary to get a definition of e.g., UTMP_FILE on
83223         HP-UX 10.20.
83224         From Bob Proulx.
83225
83226 2000-07-02  Jim Meyering  <meyering@lucent.com>
83227
83228         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
83229
83230         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
83231         AC_LIBOBJ(function_name).
83232         * m4/chown.m4: Likewise.
83233         * m4/fnmatch.m4: Likewise.
83234         * m4/ftruncate.m4: Likewise.
83235         * m4/getgroups.m4: Likewise.
83236         * m4/getline.m4: Likewise.
83237         * m4/group-member.m4: Likewise.
83238         * m4/jm-macros.m4: Likewise.
83239         * m4/lstat.m4: Likewise.
83240         * m4/malloc.m4: Likewise.
83241         * m4/memcmp.m4: Likewise.
83242         * m4/nanosleep.m4: Likewise.
83243         * m4/putenv.m4: Likewise.
83244         * m4/realloc.m4: Likewise.
83245         * m4/regex.m4: Likewise.
83246         * m4/stat.m4: Likewise.
83247         * m4/strftime.m4: Likewise.
83248
83249 2000-07-02  Jim Meyering  <meyering@lucent.com>
83250
83251         * lib/quotearg.c (mbstate_t): Don't define here.
83252
83253 2000-07-02  Jim Meyering  <meyering@lucent.com>
83254
83255         * lib/nanosleep.c (SIGCONT): Define if not already defined.
83256
83257 2000-07-01  Jim Meyering  <meyering@lucent.com>
83258
83259         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
83260
83261 2000-07-01  Jim Meyering  <meyering@lucent.com>
83262
83263         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
83264         problem.
83265
83266 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
83267
83268         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
83269         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
83270
83271 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
83272
83273         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
83274         per change in ../m4/ls-mntd-fs.m4.
83275         (read_filesystem_list): Ignore symbolic links.
83276
83277 2000-06-29  Jim Meyering  <meyering@lucent.com>
83278
83279         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
83280         for declaration of strcmp.
83281
83282         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
83283
83284         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
83285         Avoid warning by casting result to `char *' to remove `const'.
83286
83287 2000-06-28  Jim Meyering  <meyering@lucent.com>
83288
83289         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
83290         included by quotearg.c, for which we perform this test.  From
83291         Bruno Haible.
83292
83293 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
83294
83295         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
83296         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
83297         <utmpx.h> exists, put readutmp.o into LIBOBJS.
83298
83299 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
83300
83301         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
83302
83303 2000-06-26  Paul Eggert  <eggert@twinsun.com>
83304
83305         savedir now sets errno on failure and invokes xmalloc to get memory.
83306         Fix a couple of other minor bugs while we're at it.
83307
83308         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
83309         (NAMLEN): Remove macro.
83310         (malloc, realloc): Remove decls.
83311         (stpcpy): Likewise.
83312         ("xalloc.h"): Include.
83313         (NAME_SIZE_DEFAULT): New macro.
83314         (savedir): Use xmalloc / xrealloc to allocate memory.
83315         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
83316         Skip "" directory entries.
83317         Use strlen to calculate directory entry length, since the old method
83318         is rarely used these days and isn't worth supporting.
83319         Don't use a pointer after freeing it.
83320         Check for integer overflow when calculating allocation size.
83321         Use memcpy to copy entries, instead of stpcpy.
83322         Set errno properly when returning NULL.
83323         Check for readdir error.
83324
83325 2000-06-26  Jim Meyering  <meyering@lucent.com>
83326
83327         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
83328
83329 2000-06-25  Jim Meyering  <meyering@lucent.com>
83330
83331         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
83332         Linux header bug when _XOPEN_SOURCE is defined to 500.
83333
83334 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
83335
83336         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
83337         deficiency.
83338
83339 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
83340
83341         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
83342         Include xalloc.h.
83343         Don't include <stdlib.h>.  Don't declare malloc, realloc.
83344
83345 2000-06-24  Jim Meyering  <meyering@lucent.com>
83346
83347         * m4/strerror_r.m4: Revive this file -- to try out an experimental
83348         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
83349         for which strerror does return char*, but which lacks a conveniently
83350         accessible declaration of the function.  If the compile-test says
83351         strerror_r doesn't work, then resort to a `run'-test that works on
83352         BeOS and segfaults on DEC Unix.
83353
83354 2000-06-24  Jim Meyering  <meyering@lucent.com>
83355
83356         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
83357
83358 2000-06-23  Paul Eggert  <eggert@twinsun.com>
83359
83360         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
83361         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
83362
83363 2000-06-23  Paul Eggert  <eggert@twinsun.com>
83364
83365         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
83366         (mbrtowc, mbstate_t): Define substitutes if
83367         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
83368         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
83369         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
83370
83371 2000-06-23  Jim Meyering  <meyering@lucent.com>
83372
83373         * m4/afs.m4: Add missing AC_MSG_RESULT.
83374         Reported by Bruno Haible.
83375
83376         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
83377         Suggestion from Bruno Haible.
83378
83379 2000-06-23  Jim Meyering  <meyering@lucent.com>
83380
83381         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
83382
83383 2000-06-21  Jim Meyering  <meyering@lucent.com>
83384
83385         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
83386
83387 2000-06-21  Jim Meyering  <meyering@lucent.com>
83388
83389         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
83390         (noinst_HEADERS): Add getstr.h.
83391
83392         * lib/getline.c (getstr): Move into a separate file.
83393         * lib/getstr.c (getstr): New file, extracted from getline.c, with
83394         the following changes: new parameter, delim2; both delim[12]
83395         parameters have type `int', not `char'.  The latter would lose
83396         with 8-bit delimiters.
83397         * lib/getstr.h: New file.
83398
83399 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
83400
83401         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
83402         than 1024, return a memory chunk of least possible size, instead
83403         of size PATH_MAX + 2. In the loop, increment the size proportionally.
83404         Use free/xmalloc instead of xrealloc to avoid copying for very long
83405         paths.
83406
83407 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
83408
83409         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
83410         the empty string.
83411
83412 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
83413
83414         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
83415         address, not strdup.  Include <stdlib.h> and don't declare free().
83416
83417 2000-06-19  Jim Meyering  <meyering@lucent.com>
83418
83419         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
83420
83421 2000-06-18  Jim Meyering  <meyering@lucent.com>
83422
83423         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
83424
83425         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
83426         `checking whether...' message to be consistent with that of the
83427         lstat test.
83428
83429 2000-06-18  Jim Meyering  <meyering@lucent.com>
83430
83431         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
83432         Besides, these days every porting target provides a mkdir function.
83433
83434         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
83435         needed. (this snippet comes from src/system.h).
83436
83437 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
83438
83439         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
83440
83441 2000-06-15  Paul Eggert  <eggert@twinsun.com>
83442
83443         * lib/human.c (adjust_value): New function.
83444         (human_readable_inexact): Apply rounding style even when
83445         printing approximate values.
83446
83447 2000-06-14  Paul Eggert  <eggert@twinsun.com>
83448
83449         * lib/human.c (human_readable_inexact): Allow an input block
83450         size that is not a multiple of the output block size, and vice versa.
83451         Reported by Piergiorgio Sartor.
83452
83453 2000-06-14  Paul Eggert  <eggert@twinsun.com>
83454
83455         * lib/getdate.y (get_date): Apply relative times after time
83456         zone indicator, not before.  Reported by Todd A. Jacobs.
83457
83458 2000-06-13  Jim Meyering  <meyering@lucent.com>
83459
83460         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
83461
83462         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
83463
83464 2000-06-12  Paul Eggert  <eggert@twinsun.com>
83465
83466         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
83467
83468 2000-06-12  Jim Meyering  <meyering@lucent.com>
83469
83470         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
83471         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
83472         optional argument.
83473         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
83474         the optional argument, `lib'.
83475
83476 2000-06-08  Jim Meyering  <meyering@lucent.com>
83477
83478         * m4/largefile.m4: Remove file (now that it's part of autoconf).
83479
83480 2000-06-04  Paul Eggert  <eggert@twinsun.com>
83481
83482         Rewrite largefile configuration so that we don't need to run
83483         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
83484         AC_CANONICAL_HOST in configure.in -- jmm]
83485
83486         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
83487         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
83488         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
83489         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
83490         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
83491         All uses changed.
83492         Instead of inspecting the output of getconf, try to compile the
83493         test program without and with the macro definition.
83494         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
83495         for getconf.  Instead, check for the needed flags by compiling
83496         test programs.
83497
83498 2000-06-04  Paul Eggert  <eggert@twinsun.com>
83499
83500         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
83501
83502 2000-06-04  Jim Meyering  <meyering@lucent.com>
83503
83504         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
83505         SunOS 4.1.4 for which gid_t is an unsigned type.
83506
83507 2000-06-03  Jim Meyering  <meyering@lucent.com>
83508
83509         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
83510         now that autoconf requires that.
83511
83512         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
83513         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
83514         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
83515
83516 2000-06-03  Jim Meyering  <meyering@lucent.com>
83517
83518         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
83519
83520 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
83521
83522         * m4/glibc21.m4: New file.
83523         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
83524
83525 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
83526
83527         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
83528         newer, don't install charset.alias.
83529         * lib/config.charset: Change the Linux/glibc rules so they become empty
83530         on glibc-2.1 or newer.
83531
83532 2000-06-02  Jim Meyering  <meyering@lucent.com>
83533
83534         * lib/mountlist.c: Back out last change.  Instead, do this...
83535         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
83536         me_dummy member using the same `ignore'-testing code.
83537         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
83538         fs_type strings.
83539         From Mark D. Roth.
83540
83541 2000-05-29  Jim Meyering  <meyering@lucent.com>
83542
83543         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
83544         mounts with the `ignore' attribute.  Based on a patch from
83545         Mark D. Roth.
83546
83547 2000-05-28  Jim Meyering  <meyering@lucent.com>
83548
83549         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
83550         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83551         * m4/stat.m4: Likewise.
83552         * m4/lstat.m4: Likewise.
83553         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
83554
83555         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
83556         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
83557
83558 2000-05-26  Jim Meyering  <meyering@lucent.com>
83559
83560         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
83561
83562 2000-05-24  Jim Meyering  <meyering@lucent.com>
83563
83564         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
83565         autoconf requires that.
83566         * m4/lib-check.m4: Likewise.
83567         * m4/jm-macros.m4: Likewise.
83568         * m4/strftime.m4: Likewise.
83569
83570         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
83571         AC_CHECK_DECLS, now that autoconf requires that.
83572
83573 2000-05-22  Jim Meyering  <meyering@lucent.com>
83574
83575         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83576         * m4/lstat.m4: Likewise.
83577
83578 2000-05-22  Jim Meyering  <meyering@lucent.com>
83579
83580         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
83581
83582 2000-05-20  Jim Meyering  <meyering@lucent.com>
83583
83584         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
83585         (jm_PREREQ): Use it.
83586
83587 2000-05-18  Jim Meyering  <meyering@lucent.com>
83588
83589         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
83590         back, too, since it may have been modified by allocate_entry.
83591         (hash_delete): Rewrite to use neither the assignment operator
83592         nor the comma operator in an if-expression.
83593
83594 2000-05-15  Paul Eggert  <eggert@twinsun.com>
83595
83596         * lib/closeout.c:
83597         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
83598         Remove; no longer needed.
83599         "quotearg.h": Add include.
83600         (file_name): Do not bother to explicitly initialize to NULL; it's less
83601         efficient on some hosts.
83602         (close_stdout_status): Remove test as to whether stdout was already
83603         closed; it breaks for the case "echo x | sort >&-".
83604         Quote file name colons.
83605         Do not assume that _("write error") lacks format strings.
83606
83607 2000-05-15  Jim Meyering  <meyering@lucent.com>
83608
83609         * lib/version-etc.c (version_etc_copyright): Update the copyright
83610         string used in all --version output.
83611
83612 2000-05-14  Jim Meyering  <meyering@lucent.com>
83613
83614         * lib/closeout.c (close_stdout_set_file_name): New function.
83615         (close_stdout_status): Use new file-scoped global.
83616         Return right away if fstat says the stdout file descriptor is invalid.
83617         * lib/closeout.h (close_stdout_set_file_name): Declare.
83618
83619 2000-05-10  Jim Meyering  <meyering@lucent.com>
83620
83621         * lib/closeout.c [default_exit_status]: New file-scoped variable.
83622         (close_stdout_set_status): New function.
83623         * lib/closeout.h (close_stdout_set_status): Declare.
83624
83625 2000-05-09  Jim Meyering  <meyering@lucent.com>
83626
83627         * m4/gettext.m4: Rename this...
83628         * m4/libintl.m4: ...to this.
83629
83630 2000-05-08  Jim Meyering  <meyering@lucent.com>
83631
83632         * lib/long-options.c: Don't include closeout.h.
83633         (parse_long_options): Don't call close_stdout for --version.
83634
83635 2000-05-06  Paul Eggert  <eggert@twinsun.com>
83636
83637         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
83638         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
83639         2.1.3 bug.  This avoids a clash when files like regex.c define
83640         _GNU_SOURCE.
83641
83642 2000-05-06  Jim Meyering  <meyering@lucent.com>
83643
83644         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
83645         (AC_REPLACE_FUNCS): Add strnlen.
83646
83647         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
83648         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
83649
83650         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
83651         AC_SEARCH_LIBS call for nanosleep.
83652         (LIB_NANOSLEEP): Set and AC_SUBST.
83653
83654 2000-05-06  Jim Meyering  <meyering@lucent.com>
83655
83656         * lib/strnlen.c: Undefine __strnlen and strnlen.
83657         [!weak_alias]: Define __strnlen to strnlen.
83658
83659         * lib/atexit.c: New file, from libiberty.
83660
83661 2000-05-06  Jim Meyering  <meyering@lucent.com>
83662
83663         * lib/closeout.c (close_stdout_status): Also check for errors on the
83664         stderr stream.
83665
83666 2000-05-05  Jim Meyering  <meyering@lucent.com>
83667
83668         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
83669         AC_SEARCH_LIBS call for clock_gettime.
83670         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
83671
83672         * m4/search-libs.m4: Update from autoconf.
83673
83674         su doesn't work on Solaris 2.6.
83675         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
83676         <shadow.h>.  Reported by Dragos Harabor.
83677
83678 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
83679
83680         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
83681         memcpy instead of xmalloc, xrealloc, path_concat.
83682         (locale_charset): Treat empty environment variables as absent.
83683         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
83684
83685 2000-05-04  Jim Meyering  <meyering@lucent.com>
83686
83687         * lib/getopt.c: Update from glibc.
83688         * lib/obstack.c: Likewise.
83689         * lib/obstack.h: Likewise.
83690         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
83691         file
83692
83693         * lib/regex.h: Likewise.
83694         * lib/strndup.c: Likewise.
83695         * lib/strnlen.c: New file, from glibc.
83696
83697 2000-05-03  Jim Meyering  <meyering@lucent.com>
83698
83699         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
83700
83701 2000-05-02  Paul Eggert  <eggert@twinsun.com>
83702
83703         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
83704         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
83705         compile-time test, rather than inspecting host and OS, to
83706         decide whether to define _LARGEFILE_SOURCE.
83707
83708 2000-05-01  Jim Meyering  <meyering@lucent.com>
83709
83710         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
83711
83712         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
83713         Based on a patch from Bruno Haible.
83714
83715 2000-05-01  Jim Meyering  <meyering@lucent.com>
83716
83717         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
83718
83719 2000-04-29  Jim Meyering  <meyering@lucent.com>
83720
83721         * lib/path-concat.c: Declare strdup only if it's not defined.
83722         * lib/canon-host.c: Likewise.
83723
83724 2000-04-28  Jim Meyering  <meyering@lucent.com>
83725
83726         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
83727         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
83728         is included first, then limits.h is included by locale.h by libintl.h.
83729         From John David Anglin.
83730
83731 2000-04-25  Jim Meyering  <meyering@lucent.com>
83732
83733         * lib/makepath.c (S_IRWXUGO): Define.
83734         (make_path): Always perform explicit chmod if MODE specifies any
83735         of the `special' permission bits.  Prompted by a bug report against
83736         install from Mate Wierdl and Joost van Baal.
83737
83738 2000-04-18  Jim Meyering  <meyering@lucent.com>
83739
83740         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
83741         (jm_PREREQ): Use it.
83742
83743 2000-04-18  Jim Meyering  <meyering@lucent.com>
83744
83745         * lib/README: New file.
83746
83747         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
83748         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
83749
83750 2000-04-17  Jim Meyering  <meyering@lucent.com>
83751
83752         Get it right :-)
83753         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
83754         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
83755         Suggestion from Akim Demaille.
83756
83757 2000-04-17  Jim Meyering  <meyering@lucent.com>
83758
83759         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
83760         the definition of it to rpl_strftime also defined-away the system's
83761         declaration.
83762
83763 2000-04-15  Jim Meyering  <meyering@lucent.com>
83764
83765         Use `C' to denote so-called `contiguous' files, the same way
83766         that tar does.
83767         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
83768         (ftypelet): Use S_ISCTG.
83769         From Michael Deutschmann.
83770
83771 2000-04-14  Jim Meyering  <meyering@lucent.com>
83772
83773         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
83774         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
83775         clobbered.
83776
83777 2000-04-14  Jim Meyering  <meyering@lucent.com>
83778
83779         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
83780
83781 2000-04-13  Jim Meyering  <meyering@lucent.com>
83782
83783         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
83784         AH_VERBATIM to insert required #ifndef into config.h.in.
83785         Suggestion from Akim Demaille.
83786
83787 2000-04-12  Jim Meyering  <meyering@lucent.com>
83788
83789         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
83790         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
83791         Christian Krackowizer.
83792
83793         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
83794         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
83795         (AC_SYS_LARGEFILE): Require.
83796         (AM_C_PROTOTYPES): Require.
83797
83798 2000-04-08  Jim Meyering  <meyering@lucent.com>
83799
83800         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
83801         names don't conflict.  Reported by Eli Zaretskii.
83802
83803 2000-04-07  Jim Meyering  <meyering@lucent.com>
83804
83805         * lib/putenv.c: Move inclusion of errno.h so it follows that of
83806         sys/types.h, to work around system header problems on AIX 3.2.5.
83807         From Bruno Haible.
83808
83809 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
83810
83811         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
83812         bug.  Deal with the different error behavior of Irix iconv.
83813
83814 2000-04-05  Paul Eggert  <eggert@twinsun.com>
83815
83816         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
83817         IRIX if the installer said otherwise.
83818
83819 2000-04-05  Jim Meyering  <meyering@lucent.com>
83820
83821         Portability tweaks required for ultrix4.3.
83822         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
83823         (jm_CHECK_DECLS): Add getutent to the list of functions.
83824         (_jm_DECL_HEADERS): Add utmpx.h.
83825         From John David Anglin.
83826
83827         * m4/strftime.m4: Back out the 2000-04-02 change.
83828         Instead of that change, simply undefine putenv in the test program.
83829
83830 2000-04-05  Jim Meyering  <meyering@lucent.com>
83831
83832         Portability tweaks required for ultrix4.3.
83833         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
83834         getutent.
83835         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
83836         * lib/canon-host.c: Declare strdup.
83837         * lib/path-concat.c: Likewise.
83838         From John David Anglin.
83839
83840 2000-04-04  Jim Meyering  <meyering@lucent.com>
83841
83842         Be more DOS 8.3-friendly.
83843         * lib/ref-add.sin: Renamed from ref-add.sed.in.
83844         * lib/ref-del.sin: Renamed from ref-del.sed.in.
83845         * lib/Makefile.am: Reflect renaming.
83846         Reported by Eli Zaretskii.
83847
83848         Use a temporary file name that won't clash with `charset.alias'
83849         in the DOS 8.3 name space.
83850         * lib/Makefile.am (charset_tmp): Define.
83851         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
83852         (uninstall-local): Likewise.
83853         Reported by Eli Zaretskii.
83854
83855 2000-04-03  Jim Meyering  <meyering@lucent.com>
83856
83857         * m4/gettext.m4: Fix typo in comment.
83858
83859         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
83860         textutils/configure.in).  Suggestion from Paul Eggert.
83861         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
83862
83863 2000-04-02  Paul Eggert  <eggert@twinsun.com>
83864
83865         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
83866         variable in the shell rather than using putenv, which isn't
83867         portable.  This avoids the configure-time inter-test dependency
83868         on the potentially-renamed putenv function.
83869
83870 2000-03-30  Paul Eggert  <eggert@twinsun.com>
83871
83872         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
83873         before checking struct stat.st_blksize, so that
83874         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
83875
83876 2000-03-29  Paul Eggert  <eggert@twinsun.com>
83877
83878         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
83879         since strftime.c uses HAVE_STRFTIME to decide whether to use
83880         the underlying strftime.
83881
83882 2000-03-29  Paul Eggert  <eggert@twinsun.com>
83883
83884         * lib/time/strftime.c (my_strftime): Make sure we call the system
83885         strftime, not ourselves, when invoking the underlying strftime.
83886
83887 2000-03-24  Jim Meyering  <meyering@lucent.com>
83888
83889         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
83890         (charset_alias): Define.
83891         (install-exec-local): Factor out common code.
83892         (uninstall-local): Split lines longer than 80.
83893         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
83894         (SUFFIXES): Define.
83895         (.sed.in.sed): New rule.  Don't redirect directly to $@.
83896         (CLEANFILES): Add ref-add.sed and ref-del.sed.
83897
83898 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
83899
83900         * lib/config.charset: Output a line containing "Packages using this
83901         file".
83902         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
83903         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
83904         ref-del.sed): New rules.
83905
83906 2000-03-17  Jim Meyering  <meyering@lucent.com>
83907
83908         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
83909         Otherwise, include <strings.h>
83910
83911 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
83912
83913         * lib/unicodeio.c (utf8_wctomb): New function.
83914         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
83915         format instead of in UCS-4 with platform dependent endianness.
83916
83917 2000-03-10  Jim Meyering  <meyering@lucent.com>
83918
83919         * m4/lib-check.m4: Look for getspnam in -lgen, too.
83920         From Marco Franzen.
83921
83922 2000-03-07  Paul Eggert  <eggert@twinsun.com>
83923
83924         * lib/savedir.c (savedir): Work even if directory size is
83925         negative; this can happen with some screwy NFS configurations.
83926
83927 2000-03-06  Jim Meyering  <meyering@lucent.com>
83928
83929         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
83930         if it's NULL (because we ran out of memory).  From Bruno Haible.
83931
83932 2000-03-05  Jim Meyering  <meyering@lucent.com>
83933
83934         * lib/localcharset.c ("path-concat.h"): Include.
83935         (get_charset_aliases): Use path_concat instead of ANSI string
83936         concatenation.
83937
83938         * lib/unicodeio.h (PARAMS): Define.
83939         Use it to guard prototype.
83940
83941 2000-03-04  Jim Meyering  <meyering@lucent.com>
83942
83943         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
83944         for lib/localcharset.c.
83945
83946 2000-03-04  Jim Meyering  <meyering@lucent.com>
83947
83948         * lib/Makefile.am (install-exec-local): Create $(libdir) before
83949         installing into it.
83950         (uninstall-local): Uncomment this rule so `make distcheck' works
83951         once again.
83952
83953         * lib/unicodeio.c (<errno.h>): Include it.
83954         (errno): Declare if not defined.
83955
83956         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
83957
83958         * lib/config.charset: New version, incorporating remarks from a linux
83959         i18n mailing list.  From Bruno Haible.
83960
83961 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
83962
83963         * m4/codeset.m4: New file.
83964         * m4/iconv.m4: New file.
83965         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
83966
83967 2000-03-03  Jim Meyering  <meyering@lucent.com>
83968
83969         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
83970
83971 2000-03-02  Jim Meyering  <meyering@lucent.com>
83972
83973         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
83974         the messages come out on separate lines.
83975
83976         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
83977         rather than jm_CHECK_DECLARATIONS.
83978         * m4/decl.m4: Remove now-unused file.
83979
83980         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
83981         geteuid.
83982
83983 2000-03-02  Jim Meyering  <meyering@lucent.com>
83984
83985         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
83986
83987 2000-03-01  Jim Meyering  <meyering@lucent.com>
83988
83989         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
83990         * lib/unicodeio.c: Likewise.
83991
83992 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
83993
83994         * lib/config.charset: New file.
83995         * lib/localcharset.c: New file.
83996         * lib/unicodeio.h, lib/unicodeio.c: New files.
83997         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
83998         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
83999         (noinst_HEADERS): Add unicodeio.h.
84000         (all-local, install-exec-local, charset.alias): New targets.
84001
84002 2000-02-28  Paul Eggert  <eggert@twinsun.com>
84003
84004         * lib/quotearg.c (ALERT_CHAR): New macro.
84005         (quotearg_buffer_restyled): Use it.
84006
84007 2000-02-27  Jim Meyering  <meyering@lucent.com>
84008
84009         * m4/check-decl.m4: Add getenv to the list.
84010
84011 2000-02-27  Jim Meyering  <meyering@lucent.com>
84012
84013         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
84014         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
84015
84016         * lib/backupfile.c: Guard inclusion of stdlib.h with
84017         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
84018         Declare malloc if needed.
84019
84020         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
84021         `#ifndef HAVE_DECL..'
84022         now that autoconf always defines the HAVE_DECL_ symbols.
84023         * lib/human.c: Likewise.
84024         * lib/same.c: Likewise.
84025         * lib/strtoumax.c: Likewise.
84026
84027         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
84028         declaration check was not run.
84029         * lib/hash.c: Likewise.
84030         * lib/human.c: Likewise.
84031         * lib/same.c: Likewise.
84032         * lib/strtoumax.c: Likewise.
84033
84034         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
84035         `.', then first look up the entire `.'-containing string as a login
84036         name.
84037
84038 2000-02-23  Jim Meyering  <meyering@lucent.com>
84039
84040         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
84041         in place of my hack.
84042
84043 2000-02-18  Paul Eggert  <eggert@twinsun.com>
84044
84045         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
84046         (textint): New typedef.
84047         (parser_control): Member year changed from int to textint.
84048         All uses changed.
84049         (YYSTYPE): Removed; replaced by %union with int and textint members.
84050         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
84051         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
84052         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
84053         (tSNUMBER, tUNUMBER): Now of type <textintval>.
84054         (date, number, to_year): Use width of number in digits, not its value,
84055         to determine whether it's a 2-digit year, or a 2-digit time.
84056         (yylex): Store number of digits of numeric tokens.
84057         Reported by John Kendall.
84058
84059         (parser_control): Changed from struct parser_control to typedef (for
84060         consistency).  All uses changed.
84061
84062         (tID): Removed; not used.
84063         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
84064
84065 2000-02-14  Paul Eggert  <eggert@twinsun.com>
84066
84067         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
84068         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
84069
84070 2000-02-12  Jim Meyering  <meyering@lucent.com>
84071
84072         * lib/userspec.c (ISDIGIT): Define it.
84073         (isdigit): Remove definition.
84074         (is_number): Use ISDIGIT, not isdigit.
84075         <libintl.h>: Include.
84076         (_ and N_): Define.
84077         (parse_user_spec): Mark translatable strings.
84078
84079 2000-02-10  Jim Meyering  <meyering@lucent.com>
84080
84081         With these changes, nanosleep.[ch] are finally enough like the other
84082         lib/* replacement files to compile on a few more losing systems.
84083
84084         * lib/nanosleep.h: Don't include config.h.
84085         Remove prototype from declaration of nanosleep.
84086         (PARAMS): Remove now-unneeded definition.
84087         * lib/nanosleep.c: #undef nanosleep.
84088         (rpl_nanosleep): Rename from nanosleep.
84089
84090 2000-02-10  Jim Meyering  <meyering@lucent.com>
84091
84092         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
84093         gnu_nanosleep to rpl_nanosleep.
84094
84095 2000-02-09  Jim Meyering  <meyering@lucent.com>
84096
84097         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
84098         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
84099
84100 2000-02-08  Akim Demaille  <akim@epita.fr>
84101
84102         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
84103         `[' and `]' and remove uses of `changequote'.
84104         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
84105         (AC_SYS_LARGEFILE): Likewise.
84106         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
84107         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
84108         of changequote.
84109         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
84110         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
84111         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
84112         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
84113
84114 2000-02-05  Jim Meyering  <meyering@lucent.com>
84115
84116         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
84117         Remove explicit use of AC_HEADER_TIME.  It is required by
84118         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
84119         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
84120         in autoconf whereby the expansion of the latter ended up preceding
84121         the expansion of its prerequisite, AC_HEADER_TIME.
84122         Reported by Volker Borchert.
84123
84124 2000-02-03  Jim Meyering  <meyering@lucent.com>
84125
84126         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
84127
84128 2000-02-03  Jim Meyering  <meyering@lucent.com>
84129
84130         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
84131         rather than with `#if HAVE_UTMPNAME'.
84132
84133 2000-02-02  Jim Meyering  <meyering@lucent.com>
84134
84135         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
84136         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
84137         Reported by Eli Zaretskii.
84138
84139 2000-02-01  Jim Meyering  <meyering@lucent.com>
84140
84141         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
84142
84143 2000-01-31  Jim Meyering  <meyering@lucent.com>
84144
84145         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
84146         functions.  Add the time.h and sys/time.h headers along with the
84147         AC_REQUIRE'ment of AC_HEADER_TIME.
84148
84149 2000-01-31  Jim Meyering  <meyering@lucent.com>
84150
84151         * lib/nanosleep.h (nanosleep): Guard declaration with
84152         `#if ! HAVE_DECL_NANOSLEEP'.
84153         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
84154         the declaration in that vendor's sys/timers.h.
84155         Reported by Christian Krackowizer.
84156
84157         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
84158         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
84159         (ISPRINT): Likewise.
84160         Reported by Tom Tromey.
84161
84162 2000-01-30  Jim Meyering  <meyering@lucent.com>
84163
84164         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
84165
84166         * m4/prereq.m4 (utmp_includes): Define.
84167         Check for ut_user and ut_name members in both struct utmpx
84168         and struct utmp.
84169
84170 2000-01-30  Jim Meyering  <meyering@lucent.com>
84171
84172         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
84173         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
84174         header files where only utmpx.ut_user is declared.
84175
84176         * lib/readutmp.h (UT_USER): Define.
84177
84178 2000-01-29  Jim Meyering  <meyering@lucent.com>
84179
84180         * m4/lib-check.m4: New file containing library-related checks from
84181         fileutils and sh-utils (textutils had none).
84182
84183 2000-01-28  Jim Meyering  <meyering@lucent.com>
84184
84185         * m4/perl.m4: Change format of warning message to look more like that
84186         from the missing script.  Suggestion from François Pinard.
84187
84188 2000-01-25  Jim Meyering  <meyering@lucent.com>
84189
84190         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
84191         well as time.h in the compile check.
84192         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
84193         Fix typo in cross-compiling case: s/yes/no/.
84194
84195 2000-01-23  Jim Meyering  <meyering@lucent.com>
84196
84197         * m4/jm-macros.m4: Move df-related tests here from
84198         fileutils/configure.in
84199
84200         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
84201         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
84202
84203         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
84204         s/space/ac_fsusage_space/.
84205         (jm_FILE_SYSTEM_USAGE): Take two parameters.
84206
84207         * m4/ftruncate.m4: New file (derived from part of
84208         fileutils/configure.in).
84209         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
84210         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
84211
84212         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
84213         AC_SUBST these here, rather than just in sh-util/configure.in, so
84214         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
84215         all the same.
84216         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
84217         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
84218         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
84219         (AC_SUBST(POW_LIBM)): Likewise.
84220         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
84221
84222 2000-01-23  Jim Meyering  <meyering@lucent.com>
84223
84224         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
84225         obstack.c.
84226
84227 2000-01-22  Jim Meyering  <meyering@lucent.com>
84228
84229         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
84230
84231         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
84232
84233         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
84234         configure.in
84235         (AC_CHECK_HEADERS): Likewise for sh-utils.
84236         (AC_CHECK_HEADERS): Likewise for textutils.
84237         Merge the three lists of headers.
84238
84239         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
84240         from fileutils' configure.in.
84241
84242         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
84243         code. Moved tests into their own function (_jm_DECL_HEADERS) in
84244         check-decl.m4.
84245
84246         * m4/check-decl.m4: Use #if rather than #ifdef.
84247         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
84248         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
84249         (_jm_DECL_HEADERS): Define new function.
84250         (jm_CHECK_DECLARATIONS): Require it.
84251
84252 2000-01-22  Jim Meyering  <meyering@lucent.com>
84253
84254         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
84255         [! HAVE_DECL_STRTOULL]: Declare strtoull.
84256         Required for some AIX systems.  Reported by Christian Krackowizer.
84257         [TESTING] (main): New function.
84258
84259         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
84260         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
84261         letters.
84262
84263         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
84264         iswprint.
84265
84266         * lib/strverscmp.c (ISDIGIT): Define.
84267         (strverscmp): Use ISDIGIT, not isdigit.
84268
84269 2000-01-19  Jim Meyering  <meyering@lucent.com>
84270
84271         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
84272         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
84273         defines `struct timespec' in <sys/time.h>
84274
84275         * m4/c-bs-a.m4: Remove uses of changequote altogether.
84276         Thanks to Akim for explaining.
84277
84278 2000-01-17  Paul Eggert  <eggert@twinsun.com>
84279
84280         * lib/nanosleep.c (nanosleep):
84281         Don't use SA_INTERRUPT to decide whether to call sigaction, as
84282         POSIX.1 doesn't require SA_INTERRUPT and some systems
84283         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
84284         it's been part of POSIX.1 since day 1 (in 1988).
84285
84286 2000-01-17  Jim Meyering  <meyering@lucent.com>
84287
84288         * lib/interlock: Remove unused file.  Reported by François Pinard.
84289
84290 2000-01-16  Paul Eggert  <eggert@twinsun.com>
84291
84292         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
84293         alert, backslash, formfeed, and vertical tab unnecessarily in
84294         shell quoting style.
84295
84296 2000-01-16  Jim Meyering  <meyering@lucent.com>
84297
84298         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
84299         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
84300         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
84301         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
84302
84303 2000-01-16  Jim Meyering  <meyering@lucent.com>
84304
84305         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
84306         because the latter didn't work.
84307
84308 2000-01-15  Jim Meyering  <meyering@lucent.com>
84309
84310         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
84311         (AC_REPLACE_FUNCS): Add memcpy and memset.
84312         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
84313         Add strpbrk.
84314         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
84315
84316 2000-01-12  Jim Meyering  <meyering@lucent.com>
84317
84318         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
84319         (jm_PREREQ): Use it.
84320         (jm_PREREQ_READUTMP): New macro.
84321         (jm_PREREQ): Use it.
84322
84323 2000-01-11  Paul Eggert  <eggert@twinsun.com>
84324
84325         Quote multibyte characters correctly.
84326         * m4/c-bs-a.m4: New file.
84327         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
84328         (jm_PREREQ): Use it.
84329
84330 2000-01-11  Paul Eggert  <eggert@twinsun.com>
84331
84332         * m4/uintmax_t.m4: Port to autoconf 2.13.
84333
84334 2000-01-08  Jim Meyering  <meyering@ascend.com>
84335
84336         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
84337         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
84338
84339 2000-01-04  Jim Meyering  <meyering@ascend.com>
84340
84341         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
84342         jm_STRUCT_DIRENT_D_TYPE.
84343         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
84344         jm_STRUCT_DIRENT_D_INO.
84345         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
84346         jm_STRUCT_UTIMBUF.
84347         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
84348         renamings.
84349         * m4/utime.m4: Likewise.
84350
84351         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
84352         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
84353
84354 2000-01-03  Paul Eggert  <eggert@twinsun.com>
84355
84356         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
84357         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
84358
84359 2000-01-02  Jim Meyering  <meyering@ascend.com>
84360
84361         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
84362         remember if this is necessary.
84363
84364 1999-12-26  Jim Meyering  <meyering@ascend.com>
84365
84366         * m4/jm-macros.m4: Use it here.
84367         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
84368
84369 1999-12-23  Jim Meyering  <meyering@ascend.com>
84370
84371         * m4/jm-macros.m4: Check for clock_gettime (moved from
84372         fileutils/configure.in)
84373         Check for gettimeofday.
84374
84375 1999-12-20  Jim Meyering  <meyering@ascend.com>
84376
84377         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
84378         autoconf-2.14a-1999-12-20.
84379
84380 1999-12-19  Jim Meyering  <meyering@ascend.com>
84381
84382         * m4/lstat-slash.m4: New file.
84383         * m4/jm-macros.m4: Use the new macro:
84384         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84385
84386 1999-12-07  Jim Meyering  <meyering@ascend.com>
84387
84388         * m4/perl.m4: Require that File::Compare be available, too.
84389         Too many systems seem to lack it.
84390
84391         * m4/strftime.m4: Add checks for most of the cpp macros tested in
84392         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
84393
84394 1999-11-18  Paul Eggert  <eggert@twinsun.com>
84395
84396         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
84397         problem with the QNX 4.25 shell, which doesn't propagate exit
84398         status of failed commands inside shell assignments.
84399
84400 1999-11-17  Jim Meyering  <meyering@ascend.com>
84401
84402         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
84403
84404 1999-11-07  Jim Meyering  <meyering@ascend.com>
84405
84406         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
84407
84408 1999-11-06  Jim Meyering  <meyering@ascend.com>
84409
84410         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
84411         * m4/jm-macros.m4 (jm_MACROS): Use it here.
84412
84413 1999-11-05  Jim Meyering  <meyering@ascend.com>
84414
84415         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
84416         configure.in of textutils, fileutils, and sh-utils into this one
84417         (shared between those packages) file.
84418         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
84419         AC_STRUCT_ST_BLKSIZE.
84420
84421 1999-11-03  Jim Meyering  <meyering@ascend.com>
84422
84423         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
84424         of AC_CHECK_TYPE checks includes unistd.h.
84425         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
84426         Suggestion from Akim Demaille.
84427
84428 1999-10-30  Jim Meyering  <meyering@ascend.com>
84429
84430         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
84431         m4-quoted string.
84432         * m4/ls-mntd-fs.m4: Likewise.
84433         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
84434         * m4/jm-winsz1.m4: Likewise.
84435
84436         * m4/const.m4: Remove file, since the fix made it into the experimental
84437         version of autoconf.
84438         * m4/mktime.m4: Likewise.
84439
84440         * m4/check-type.m4: Remove file, now that the latest version of
84441         AC_CHECK_TYPE takes a third arg to specify additional #includes.
84442
84443         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
84444         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
84445         AC_CHECK_TYPE.
84446
84447 1999-10-04  Jim Meyering  <meyering@ascend.com>
84448
84449         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
84450
84451 1999-09-22  Paul Eggert  <eggert@twinsun.com>
84452
84453         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
84454         2.95.1 bug with HP-UX 10.20.
84455
84456 1999-09-17  Jim Meyering  <meyering@ascend.com>
84457
84458         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
84459         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
84460         due to missing strdup (against sh-utils-2.0).
84461
84462 1999-08-29  Jim Meyering  <meyering@ascend.com>
84463
84464         * m4/jm-macros.m4: Require jm_BISON.
84465         * m4/bison.m4: New file.
84466
84467 1999-08-17  Paul Eggert  <eggert@twinsun.com>
84468
84469         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
84470         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
84471
84472 1999-08-05  Jim Meyering  <meyering@ascend.com>
84473
84474         * m4/getline.m4: Rename test file from conftestdata to conftest.data
84475         to avoid conflicts with `conftest' on 8+3 filesystems.
84476         Suggestion from Eli Zaretskii.
84477
84478 1999-08-04  Jim Meyering  <meyering@ascend.com>
84479
84480         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
84481         fileutils and sh-utils (textutils's getline test was inadequate).
84482         (AM_FUNC_GETLINE): Run this test.
84483         (AC_CHECK_FUNCS): Check for getdelim.
84484         Reported by Bob Proulx.
84485
84486 1999-08-02  Jim Meyering  <meyering@ascend.com>
84487
84488         * m4/jm-macros.m4: Add a comment.
84489
84490 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84491
84492         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
84493         <inttypes.h> defines strtoumax as a macro (and not as a
84494         function).
84495
84496 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84497
84498         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
84499         that we can shift, multiply and divide unsigned long long
84500         values; Ultrix cc can't do it.
84501
84502 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84503
84504         * m4/mktime.m4: New file, which is a preview of what should appear
84505         in the next public autoconf release.
84506
84507 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84508
84509         * m4/lfs.m4: Remove this file.
84510         * m4/largefile.m4: New file.  It contains the old contents of
84511         lfs.m4, except that all names with prefix AC_LFS have been
84512         changed to use the prefix AC_SYS_LARGEFILE instead, to be
84513         compatible with future autoconf versions.  Also, some minor m4
84514         quoting problems have been fixed.
84515
84516 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84517
84518         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
84519         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
84520         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
84521         and simplify the shell code.
84522
84523 1999-08-01  Jim Meyering  <meyering@ascend.com>
84524
84525         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
84526         m4.
84527
84528 1999-07-20  Jim Meyering  <meyering@ascend.com>
84529
84530         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
84531
84532 1999-07-15  Jim Meyering  <meyering@ascend.com>
84533
84534         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
84535
84536 1999-05-22  Jim Meyering  <meyering@ascend.com>
84537
84538         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
84539
84540 1999-05-20  Jim Meyering  <meyering@ascend.com>
84541
84542         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
84543         Add a colon after each `then' in case $4 is empty.
84544
84545 1999-05-16  Jim Meyering  <meyering@ascend.com>
84546
84547         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
84548
84549 1999-05-10  Jim Meyering  <meyering@ascend.com>
84550
84551         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
84552
84553         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
84554         AC_FUNC_MKTIME.
84555
84556 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
84557
84558         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
84559
84560 1999-05-04  Paul Eggert  <eggert@twinsun.com>
84561
84562         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
84563         not CPPFLAGS, so that linking works correctly in IRIX.
84564
84565 1999-04-30  Paul Eggert  <eggert@twinsun.com>
84566
84567         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
84568
84569 1999-04-20  Paul Eggert  <eggert@twinsun.com>
84570
84571         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
84572         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
84573         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
84574         jm_AC_TYPE_UNSIGNED_LONG_LONG.
84575         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
84576
84577         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
84578
84579 1999-04-20  Jim Meyering  <meyering@ascend.com>
84580
84581         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
84582         AC_REPLACE xstroull if necessary.  From Paul Eggert.
84583         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
84584
84585 1999-04-18  Jim Meyering  <meyering@ascend.com>
84586
84587         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
84588         * m4/jm-macros.m4: Use it.
84589
84590 1999-04-06  Jim Meyering  <meyering@ascend.com>
84591
84592         * m4/strftime.m4: Remove test for %f.
84593
84594 1999-03-29  Jim Meyering  <meyering@ascend.com>
84595
84596         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
84597         superset of the AC_TYPE_* checks in the textutils, fileutils,
84598         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
84599         AC_TYPE_PID_T.
84600
84601 1999-03-28  Jim Meyering  <meyering@ascend.com>
84602
84603         * m4/jm-macros.m4: Define GNU_PACKAGE here.
84604         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
84605         replaced e.g., in the *.sh files of the sh-utils.
84606
84607 1999-03-20  Jim Meyering  <meyering@ascend.com>
84608
84609         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
84610         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
84611         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
84612
84613 1999-03-19  Jim Meyering  <meyering@ascend.com>
84614
84615         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
84616
84617 1999-03-12  Jim Meyering  <meyering@ascend.com>
84618
84619         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
84620
84621 1999-03-07  Jim Meyering  <meyering@ascend.com>
84622
84623         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
84624         declared.
84625
84626 1999-02-17  Jim Meyering  <meyering@ascend.com>
84627
84628         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
84629         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
84630
84631 1999-02-07  Jim Meyering  <meyering@ascend.com>
84632
84633         * m4/group-member.m4: New file -- extracted from sh-utils'
84634         configure.in.
84635
84636         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
84637         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
84638
84639 1999-02-06  Jim Meyering  <meyering@ascend.com>
84640
84641         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
84642         * m4/fnmatch.m4: Likewise.
84643         * m4/getgroups.m4: Likewise.
84644         * m4/lstat.m4: Likewise.
84645         * m4/malloc.m4: Likewise.
84646         * m4/putenv.m4: Likewise.
84647         * m4/realloc.m4: Likewise.
84648         * m4/regex.m4: Likewise.
84649         * m4/stat.m4: Likewise.
84650         * m4/strftime.m4: Likewise.
84651         Suggestion from Alain Magloire.
84652
84653         * m4/chown.m4: Use `.$ac_objext', not `.o'.
84654         * m4/fnmatch.m4: Likewise.
84655         * m4/getgroups.m4: Likewise.
84656         * m4/getline.m4: Likewise.
84657         * m4/lstat.m4: Likewise.
84658         * m4/malloc.m4: Likewise.
84659         * m4/memcmp.m4: Likewise.
84660         * m4/putenv.m4: Likewise.
84661         * m4/realloc.m4: Likewise.
84662         * m4/regex.m4: Likewise.
84663         * m4/stat.m4: Likewise.
84664         * m4/strftime.m4: Likewise.
84665         Suggestion from Alain Magloire.
84666
84667         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
84668         an argument.
84669
84670         * m4/regex.m4: Add a run-time Test for proper operation of
84671         re_compile_pattern.
84672
84673 1999-01-31  Jim Meyering  <meyering@ascend.com>
84674
84675         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
84676
84677 1999-01-30  Jim Meyering  <meyering@ascend.com>
84678
84679         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
84680
84681         * m4/jm-mktime.m4: Make this a wrapper around the official
84682         AM_FUNC_MKTIME rather than my private copy, now that the official one
84683         is up to date.
84684         * m4/mktime.m4: Remove file.
84685
84686         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
84687         * m4/uptime.m4: Likewise.
84688         * m4/uintmax_t.m4: Likewise.
84689
84690 1999-01-28  Jim Meyering  <meyering@ascend.com>
84691
84692         * m4/jm-macros.m4: Use jm_AFS.
84693         * m4/afs.m4: New file (from fileutils' configure.in).
84694
84695         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
84696         * m4/chown.m4: Likewise.
84697         * m4/d-ino.m4: Likewise.
84698         * m4/d-type.m4: Likewise.
84699         * m4/fnmatch.m4: Likewise.
84700         * m4/getgroups.m4: Likewise.
84701         * m4/gettext.m4: Likewise.
84702         * m4/jm-mktime.m4: Likewise.
84703         * m4/jm-winsz2.m4: Likewise.
84704         * m4/lcmessage.m4: Likewise.
84705         * m4/ls-mntd-fs.m4: Likewise.
84706         * m4/malloc.m4: Likewise.
84707         * m4/memcmp.m4: Likewise.
84708         * m4/putenv.m4: Likewise.
84709         * m4/realloc.m4: Likewise.
84710         * m4/st_mtim.m4: Likewise.
84711         * m4/strftime.m4: Likewise.
84712
84713 1999-01-16  Jim Meyering  <meyering@ascend.com>
84714
84715         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
84716         (ARGMATCH_DIE_DECL): Define.
84717
84718 1999-01-12  Jim Meyering  <meyering@ascend.com>
84719
84720         * m4/Makefile.am.in: Rewrite to avoid using fmt.
84721         Reported by Lars Hecking.
84722
84723 1999-01-10  Jim Meyering  <meyering@ascend.com>
84724
84725         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
84726         gross kludge.
84727         * m4/inttypes_h.m4: Likewise.
84728         * m4/lstat.m4: Likewise.
84729         * m4/malloc.m4: Likewise.
84730         * m4/readdir.m4: Likewise.
84731         * m4/realloc.m4: Likewise.
84732         * m4/st_dm_mode.m4: Likewise.
84733         * m4/stat.m4: Likewise.
84734         * m4/utimbuf.m4: Likewise.
84735         * m4/utimes.m4: Likewise.
84736
84737         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
84738         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
84739         comments in config.h.in are meaningful.
84740
84741         * m4/jm-macros.m4: Require autoconf-2.13 here.
84742
84743         * m4/regex.m4: By default, don't use the included regex.c on systems
84744         with glibc 2.  Suggestion from Uli Drepper.
84745
84746 1999-01-02  Jim Meyering  <meyering@ascend.com>
84747
84748         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
84749
84750 1998-12-18  Jim Meyering  <meyering@ascend.com>
84751
84752         * m4/Makefile.am.in (Makefile.am): Simplify rule.
84753         Based on a suggestion from Lars Hecking.
84754
84755 1998-11-16  Paul Eggert  <eggert@twinsun.com>
84756
84757         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
84758
84759 1998-11-16  Jim Meyering  <meyering@ascend.com>
84760
84761         * m4/lfs.m4: Double-quote the `uname...` expression.
84762
84763 1998-11-14  Jim Meyering  <meyering@ascend.com>
84764
84765         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
84766         * m4/stat.m4: Likewise.
84767
84768 1998-11-03  Jim Meyering  <meyering@ascend.com>
84769
84770         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
84771         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
84772
84773 1998-10-18  Jim Meyering  <meyering@ascend.com>
84774
84775         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
84776
84777 1998-10-17  Jim Meyering  <meyering@ascend.com>
84778
84779         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
84780         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
84781         calls for those previously hard-coded headers.  Instead, take a new
84782         parameter.
84783         (jm_CHECK_DECLARATIONS): Reflect interface change.
84784         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
84785         (jm_CHECK_DECL_LOCALTIME_R): New macro.
84786
84787         * m4/mktime.m4: Test for spring-forward gap before long-running test.
84788
84789 1998-10-14  Jim Meyering  <meyering@ascend.com>
84790
84791         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
84792         instead of "TZ=America/Vancouver".  From Paul Eggert.
84793
84794 1998-10-11  Jim Meyering  <meyering@ascend.com>
84795
84796         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
84797         This adds a test for a recently added compatibility fix for mktime.c.
84798         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
84799
84800 1998-09-27  Jim Meyering  <meyering@ascend.com>
84801
84802         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
84803
84804         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
84805         ../configure.in, including a change from Gordon Matzigkeit to allow
84806         cross-compiling for the Hurd.
84807
84808         * m4/glibc.m4: New file/macro to test for the GNU C Library
84809         versions 1 and 2.  From Gordon Matzigkeit.
84810         Indent.
84811
84812 1998-09-21  Jim Meyering  <meyering@ascend.com>
84813
84814         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
84815
84816 1998-08-18  Paul Eggert  <eggert@twinsun.com>
84817
84818         Port nanosecond-resolution times to UnixWare 2.1.2 and
84819         pedantic Solaris 2.6.
84820
84821         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
84822         AC_STRUCT_ST_MTIM.
84823         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
84824         Generate name of ns member, instead of just 1 or undef.
84825         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
84826
84827 1998-08-15  Jim Meyering  <meyering@ascend.com>
84828
84829         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
84830         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
84831         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
84832         instead of jm_TYPE_SSIZE_T.
84833
84834 1998-08-12  Jim Meyering  <meyering@ascend.com>
84835
84836         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
84837
84838 1998-08-02  Jim Meyering  <meyering@ascend.com>
84839
84840         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
84841         in acconfig.h manually.
84842
84843 1998-07-31  Paul Eggert  <eggert@twinsun.com>
84844
84845         * m4/st_mtim.m4: New file.
84846
84847 1998-07-28  Jim Meyering  <meyering@ascend.com>
84848
84849         * m4/utimes.m4: Undef stat.
84850
84851 1998-07-25  Jim Meyering  <meyering@ascend.com>
84852
84853         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
84854         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
84855
84856 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
84857
84858         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
84859         uid and gid actually remain unchanged.
84860
84861 1998-07-07  Jim Meyering  <meyering@ascend.com>
84862
84863         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
84864
84865 1998-07-04  Jim Meyering  <meyering@ascend.com>
84866
84867         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
84868         to prove that this macro can be used in packages without regex.c.
84869
84870 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
84871
84872         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
84873         is to be used.
84874
84875 1998-07-03  Jim Meyering  <meyering@ascend.com>
84876
84877         * m4/gettext.m4: Add -lintl if it's found to be necessary.
84878
84879         * m4/gettext.m4: New file -- from gettext-0.10.35.
84880         * m4/lcmessage.m4: Likewise.
84881         * m4/progtest.m4: Likewise.
84882
84883         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
84884         * m4/jm-macros.m4: Require the new macro.
84885
84886 1998-06-29  Jim Meyering  <meyering@ascend.com>
84887
84888         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
84889         for the definition of NGROUPS (used in a system header included
84890         by sys/mount.h).
84891
84892 1998-06-28  Jim Meyering  <meyering@ascend.com>
84893
84894         * m4/ls-mntd-fs.m4: New file.
84895         * m4/fstypename.m4: New file.
84896
84897         * m4/jm-macros.m4: Require the new macro.
84898         * m4/jm-glibc-io.m4: New file.
84899
84900 1998-05-19  Jim Meyering  <meyering@ascend.com>
84901
84902         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
84903         * m4/lchown.m4: New file.
84904
84905         * m4/Makefile.am.in: New file.
84906         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
84907
84908 1998-05-14  Jim Meyering  <meyering@ascend.com>
84909
84910         * m4/Makefile.am (EXTRA_DIST): Add them.
84911         * m4/jm-macros.m4: New file.
84912         * m4/utimbuf.m4: New file.
84913
84914 1998-05-12  Jim Meyering  <meyering@ascend.com>
84915
84916         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
84917
84918 1998-05-11  Jim Meyering  <meyering@ascend.com>
84919
84920         * m4/isc-posix.m4: New file.
84921
84922 1998-05-10  Jim Meyering  <meyering@ascend.com>
84923
84924         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
84925
84926 1998-05-09  Jim Meyering  <meyering@ascend.com>
84927
84928         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
84929         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
84930         with automake.
84931
84932         * m4/ssize_t.m4: New file.
84933         * m4/mktime.m4: Remove file -- the new automake has this now.
84934
84935 1998-04-26  Jim Meyering  <meyering@ascend.com>
84936
84937         * m4/assert.m4: New file.
84938         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
84939
84940 1998-04-05  Jim Meyering  <meyering@ascend.com>
84941
84942         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
84943         (jm_PREREQ): Use it here.
84944
84945 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
84946
84947         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
84948         in acconfig.h.
84949
84950 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
84951
84952         * m4/prereq.m4: New file.
84953         * m4/error.m4: New file.
84954         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
84955
84956 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
84957
84958         * m4/getline.m4: Don't set am_cv_func_working_getline before the
84959         cache-check for the same variable -- that defeated the purpose of
84960         the test; the test program was never run.  This was a problem only
84961         on systems with losing getline functions -- HP-UX 10.20 is one.
84962         Reported by Bjorn Helgaas.
84963
84964 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
84965
84966         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
84967
84968 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
84969
84970         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
84971
84972         * m4/const.m4: New file.  Use an initializer in this declaration
84973         typedef int charset[2]; const charset x;
84974         Reported by Bob Glickstein.
84975
84976 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
84977
84978         * m4/chown.m4: Fix reversed types on -1 args to chown.
84979         From Kaveh Ghazi.
84980
84981 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
84982
84983         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
84984         Add lseek and memchr.
84985
84986         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
84987         T.E.Dickey <dickey@clark.net> said that some older preprocessors
84988         have a 20-character limit on names.
84989
84990 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
84991
84992         * m4/inttypes_h.m4: New file.
84993         * m4/uintmax_t.m4: New file.
84994         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
84995
84996
84997         -----
84998
84999         Local Variables:
85000         coding: utf-8
85001         End:
85002
85003         Copyright (C) 1997-2011 Free Software Foundation, Inc.
85004
85005         Copying and distribution of this file, with or without
85006         modification, are permitted provided the copyright notice
85007         and this notice are preserved.